/* ==========================================================================
   Be Quiet and Let Them Speak
   Palette sampled from the book cover: moss green title, grass, cream paper.
   ========================================================================== */

:root {
  /* color */
  --paper:      #F7F6F1;
  --paper-2:    #F1F0E8;
  --paper-3:    #E8E7DC;
  --sage:       #D9DDC8;
  --sage-2:     #C3C9AB;
  --moss:       #66713A;   /* 5.3:1 on paper, so the mono labels pass AA */
  --moss-deep:  #4A5527;
  --moss-dark:  #2F3719;
  --ink:        #22261C;
  --ink-2:      #565B4B;
  --ink-3:      #6B6F60;   /* 5.1:1 on paper */
  --dim-ink:    #A6AA97;   /* 6.4:1 on the dark sections */
  --taupe:      #6F6350;
  --white:      #FFFFFF;
  --rule:       #D6D5C7;

  /* type */
  --display: "Fraunces", Georgia, serif;
  --body:    "Karla", "Helvetica Neue", Arial, sans-serif;
  --mono:    "DM Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* layout */
  --shell:  1440px;
  --gut:    clamp(1.25rem, 4vw, 3.5rem);
  --rhythm: clamp(4.5rem, 9vw, 9rem);

  /* motion: slow fades, never abrupt */
  --ease:  cubic-bezier(.22, .61, .36, 1);
  --slow:  1.1s;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .55vw + .88rem, 1.125rem);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  line-height: 1.08;
  letter-spacing: -.014em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--moss-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--moss-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--paper);
  padding: .8rem 1.2rem; font-family: var(--mono); font-size: .8rem;
}
.skip:focus { left: 1rem; top: 1rem; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- shared type helpers ---------- */

.kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 1.4rem;
  display: flex; align-items: center; gap: .8rem;
}
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.lede {
  font-size: clamp(1.15rem, 1.1vw + .95rem, 1.5rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34ch;
}

.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.1em; }

.pull {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw + .8rem, 2.6rem);
  font-style: italic;
  line-height: 1.24;
  color: var(--moss-deep);
  margin: 0;
  text-wrap: balance;
}

/* ---------- header ---------- */

.head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}
.head__in { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand__mark { color: var(--moss); display: grid; place-items: center; }
.brand__txt { display: grid; line-height: 1.15; }
.brand__t { font-family: var(--display); font-size: 1.02rem; letter-spacing: -.01em; }
.brand__s { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav__list a {
  display: flex; align-items: baseline; gap: .38rem;
  padding: .55rem .62rem;
  font-size: .855rem; color: var(--ink-2); text-decoration: none;
  border-radius: 3px;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav__list a:hover { color: var(--ink); background: var(--paper-3); }
.nav__list a[aria-current="page"] { color: var(--moss-deep); background: var(--sage); }
.nav__n { font-family: var(--mono); font-size: .62rem; color: var(--moss); letter-spacing: .06em; }
.nav__shop a {
  border: 1px solid var(--moss); color: var(--moss-deep);
  margin-left: .5rem; padding-inline: 1rem;
}
.nav__shop a:hover { background: var(--moss-deep); color: var(--paper); border-color: var(--moss-deep); }

/* Two SVGs swapped by state. No transform arithmetic to drift out of alignment. */
.burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border: 1px solid var(--rule); border-radius: 3px;
  background: none; cursor: pointer; padding: 0;
  color: var(--ink);
  place-items: center;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.burger:hover { border-color: var(--moss); background: var(--paper-3); }
.burger svg { grid-area: 1 / 1; }
.burger__shut,
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__shut { display: block; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .85rem 1.75rem;
  font-family: var(--body); font-size: .95rem; font-weight: 500; letter-spacing: .005em;
  text-decoration: none; border: 1px solid var(--moss-deep); border-radius: 2px;
  background: var(--moss-deep); color: var(--paper);
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { background: var(--moss-dark); border-color: var(--moss-dark); color: var(--paper); transform: translateY(-1px); }
.btn--ghost { background: none; color: var(--moss-deep); }
.btn--ghost:hover { background: var(--moss-deep); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--moss-deep); border-color: var(--paper); }
.btn--light:hover { background: var(--white); color: var(--moss-dark); border-color: var(--white); }
.btn--wide { padding-inline: 2.4rem; }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ==========================================================================
   SCENE 1 - the invitation
   Moment 1 title, 2 philosophy, 3 statement, 4 classroom reveal, 5 video, 6 CTA
   ========================================================================== */

.invite {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(3rem, 8vh, 7rem) var(--gut);
  overflow: hidden;
  text-align: center;
  background: var(--paper);
}

/* Moment 4: the classroom photograph reveals itself behind the words */
.invite__still,
.invite__video { position: absolute; inset: 0; }
.invite__still img,
.invite__video video { width: 100%; height: 100%; object-fit: cover; }

.invite__still { opacity: 0; animation: reveal var(--slow) var(--ease) 6.2s forwards; }
.invite__video { opacity: 0; animation: reveal 2.6s var(--ease) 9.4s forwards; }

/* A paper scrim keeps the mood quiet. Once the film arrives it lightens, so the
   students fill the frame and become the emotional focus, per the brief. */
.invite__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 88% at 50% 46%, rgba(247,246,241,.94) 0%, rgba(247,246,241,.8) 44%, rgba(247,246,241,.62) 100%),
    linear-gradient(to bottom, rgba(247,246,241,.5), rgba(34,38,28,.16));
  animation: soften 3.4s var(--ease) 10.2s forwards;
}
@keyframes soften { to { opacity: .5; } }

.invite__in { position: relative; z-index: 2; max-width: 58rem; }

/* a soft halo of paper travels in with the film so the words keep their contrast */
.invite__in::before {
  content: ""; position: absolute; z-index: -1;
  inset: -14% -12%;
  background: radial-gradient(58% 52% at 50% 46%, rgba(247,246,241,.9) 0%, rgba(247,246,241,.62) 52%, rgba(247,246,241,0) 100%);
  opacity: 0; animation: reveal 3.4s var(--ease) 10.2s forwards;
  pointer-events: none;
}

.invite__title {
  font-size: clamp(2.3rem, 7.4vw, 5.6rem);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  line-height: 1.0;
  letter-spacing: -.028em;
  opacity: 0; animation: rise 1.5s var(--ease) .5s forwards;
}

/* a whisper of paper behind the letterforms, so the film can never eat them */
.invite__title,
.invite__philosophy,
.invite__statement { text-shadow: 0 1px 26px rgba(247, 246, 241, .8); }
.invite__title em { font-style: italic; color: var(--moss-deep); }

.invite__philosophy,
.invite__statement {
  margin-inline: auto;
  color: var(--ink-2);
  opacity: 0;
}
.invite__philosophy {
  max-width: 40ch; margin-top: clamp(1.8rem, 4vh, 3rem);
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.1rem, 1.5vw + .8rem, 1.6rem); line-height: 1.44;
  animation: rise 1.6s var(--ease) 2.5s forwards;
}
.invite__statement {
  max-width: 46ch; margin-top: 1.6rem;
  font-size: clamp(.98rem, .5vw + .86rem, 1.1rem); line-height: 1.62;
  animation: rise 1.6s var(--ease) 4.4s forwards;
}

.invite__cta { margin-top: clamp(2.4rem, 6vh, 4rem); opacity: 0; animation: rise 1.4s var(--ease) 11s forwards; }

.invite__sound {
  position: absolute; z-index: 3; right: var(--gut); bottom: clamp(1.4rem, 4vh, 2.4rem);
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1rem;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border: 1px solid var(--rule); border-radius: 2px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); cursor: pointer;
  opacity: 0; animation: reveal 1.2s var(--ease) 11.4s forwards;
}
.invite__sound:hover { color: var(--ink); border-color: var(--moss); }

.invite__foot {
  position: absolute; z-index: 3; left: var(--gut); bottom: clamp(1.4rem, 4vh, 2.4rem);
  display: inline-block; padding: .55rem 1rem;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border: 1px solid var(--rule);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); margin: 0;
  opacity: 0; animation: reveal 1.2s var(--ease) 11.4s forwards;
}

@keyframes reveal { to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Scene pages
   ========================================================================== */

.scene-head {
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.scene-head__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 5rem); align-items: end;
}
.scene-head__n {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--moss); margin: 0 0 1.2rem;
}
.scene-head h1 { font-size: clamp(2.1rem, 5.4vw, 4.1rem); }
.scene-head h1 em { font-style: italic; color: var(--moss-deep); }

/* film block, used for the Building Relationships and trailer videos */
.film { position: relative; background: var(--ink); overflow: hidden; }
.film video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.film__cap {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: baseline;
  padding: .95rem .2rem 0;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.film__cap b { color: var(--moss-deep); font-weight: 500; }

.section { padding-block: var(--rhythm); }
.section--tint { background: var(--paper-2); }
.section--sage { background: var(--sage); }
.section--ink { background: var(--ink); color: var(--paper-3); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink .kicker { color: var(--sage-2); }
.section--ink .kicker::after { background: rgba(247,246,241,.22); }
.section--ink .lede { color: var(--sage); }
.section--ink a { color: var(--sage-2); }

/* Section heads run as two columns so the right half of the page carries weight
   instead of sitting empty. Falls back to one column below 1000px. */
.section__head {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 4.5rem); align-items: end;
  margin-bottom: clamp(2.2rem, 5vw, 4rem);
}
.section__head h2 { font-size: clamp(1.7rem, 3.6vw, 3rem); margin-bottom: 0; }
.section__head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.section__head .lede { max-width: 40ch; }
.section__head--solo { grid-template-columns: 1fr; max-width: 46rem; }

/* Text beside an image, or two columns of text. The workhorse for filling width. */
.duo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4.5vw, 5rem); align-items: start;
}
.duo--wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.duo--narrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.duo > .prose { max-width: 54ch; }

/* A framed, captioned image used as the companion in a .duo */
.plate { margin: 0; }
.plate img { width: 100%; border: 1px solid var(--rule); background: var(--paper-3); }
.plate figcaption {
  margin-top: .9rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
.section--ink .plate img { border-color: rgba(247, 246, 241, .2); }
.section--ink .plate figcaption { color: var(--dim-ink); }

/* Body copy set in two columns when there is no image to pair it with */
.prose--split { max-width: none; columns: 2; column-gap: clamp(2rem, 5vw, 5rem); }
.prose--split p { break-inside: avoid; }

/* ---------- relationship cards (Scene 2) ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 2.6vw, 2.4rem); }

.card { background: var(--paper); border: 1px solid var(--rule); display: flex; flex-direction: column; }
.card__fig { margin: 0; overflow: hidden; background: var(--paper-3); }
.card__fig img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 1.4s var(--ease); /* subtle motion, soft transition */
}
.card:hover .card__fig img { transform: scale(1.035); }
.card__body { padding: clamp(1.3rem, 2vw, 1.9rem); display: flex; flex-direction: column; gap: .85rem; flex: 1; }
.card__n { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; color: var(--moss); }
.card__body h3 { font-size: clamp(1.2rem, 1.4vw + .8rem, 1.55rem); }
.card__body p { font-size: .96rem; color: var(--ink-2); margin: 0; }
.card__truth {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .07em; color: var(--taupe);
  text-transform: uppercase;
}

/* ---------- the reveal (Scene 3) ---------- */

.reveal-list { display: grid; gap: clamp(1.1rem, 2vw, 1.8rem); max-width: 62rem; margin-inline: auto; }

.reveal {
  border: 1px solid var(--rule); background: var(--paper);
  border-left: 3px solid var(--sage-2);
}
.reveal[data-kind="after"] { border-left-color: var(--moss); }
.reveal[open] { background: var(--white); }

.reveal > summary {
  list-style: none; cursor: pointer;
  padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1.2rem, 2.2vw, 2rem);
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.4rem; align-items: center;
}
.reveal > summary::-webkit-details-marker { display: none; }
.reveal > summary:hover .reveal__t { color: var(--moss-deep); }

.reveal__meta { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--moss); margin-bottom: .5rem; }
.reveal__t { font-family: var(--display); font-size: clamp(1.15rem, 1.5vw + .75rem, 1.6rem); line-height: 1.18; transition: color .3s var(--ease); }
.reveal__who { font-family: var(--mono); font-size: .7rem; color: var(--ink-3); margin-top: .5rem; letter-spacing: .04em; }

.reveal__toggle {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%;
  color: var(--moss-deep); font-family: var(--mono); font-size: 1.1rem; line-height: 1;
  transition: background .3s var(--ease), transform .4s var(--ease);
}
.reveal[open] .reveal__toggle { background: var(--sage); transform: rotate(45deg); }

.reveal__body { padding: 0 clamp(1.2rem, 2.2vw, 2rem) clamp(1.4rem, 2.4vw, 2rem); }
.reveal__prompt {
  font-family: var(--mono); font-size: .74rem; line-height: 1.6; color: var(--taupe);
  padding: .8rem 1rem; background: var(--paper-2); border-left: 2px solid var(--sage-2);
  margin-bottom: 1.5rem;
}
.reveal__work {
  font-family: var(--display); font-size: clamp(1rem, .7vw + .9rem, 1.22rem); line-height: 1.66;
  color: var(--ink); max-width: 60ch;
}
.reveal__note {
  margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--rule);
  font-size: .92rem; color: var(--ink-2); max-width: 58ch;
}
.reveal__note b { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moss); display: block; margin-bottom: .4rem; font-weight: 500; }

/* ---------- a portrait film (Scene 2) ---------- */

/* The Building Relationships film the client shot is a vertical 9:16 edit, so
   it gets a portrait player instead of being cropped into the 16:9 frame the
   trailer uses. Its own caption lines sit beside it, because a tall player on
   its own leaves the rest of the row empty. */
.reel {
  display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 30rem);
  gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center;
}
.reel--wide { grid-template-columns: minmax(0, 1fr); }
.film--tall { background: #000; }
.film--tall video { aspect-ratio: 9 / 16; object-fit: contain; }

.reel__beats { list-style: none; margin: 1.7rem 0 0; padding: 0; display: grid; gap: .8rem; }
.reel__beats li {
  font-family: var(--display); font-size: clamp(1.05rem, .6vw + .88rem, 1.3rem);
  line-height: 1.3; color: var(--ink);
  padding-left: 1.1rem; border-left: 2px solid var(--sage-2);
}

/* ---------- the author's letter (Scene 3) ---------- */

/* The opening line runs the full measure and the body flows in two columns
   under it, reusing .prose--split. Side by side, six lines of opening against
   twenty-five of body left half the section empty. */
.letter { display: grid; gap: clamp(1.3rem, 3vw, 2.2rem); }
.letter__lede {
  font-family: var(--display); font-size: clamp(1.4rem, 2vw + .8rem, 2.4rem);
  line-height: 1.22; color: var(--ink); margin: 0; max-width: 34ch;
  text-wrap: balance;
}
.letter__body { color: var(--ink-2); }
.letter__sign {
  font-family: var(--display); font-style: italic; font-size: 1.15rem;
  color: var(--moss-deep); margin: 0;
}

/* ---------- the visiting students, on film (Scene 3) ---------- */

.films { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 2.6vw, 2.4rem); }
.films__one--wide { grid-column: 1 / -1; }
.films__one .film__cap { margin-top: .9rem; }

/* ---------- the nine who came back (Scene 3) ---------- */

.voices {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 2.6vw, 2.2rem);
}
.voice { margin: 0; }
/* Seven clips in three columns leave one hanging off the left of the last row.
   Centre a lone trailing clip instead. Only while there are three columns. */
@media (min-width: 821px) {
  .voices > .voice:last-child:nth-child(3n + 1) { grid-column: 2; }
}
.voice__q {
  font-family: var(--display); font-size: clamp(1rem, .5vw + .88rem, 1.15rem);
  line-height: 1.38; color: var(--ink); margin-top: .9rem;
  padding-left: 1rem; border-left: 2px solid var(--sage-2);
}
/* Her film leads the section, but full width in a 1440 shell it is nearly
   800px tall and swamps everything under it. */
.voice__hero { max-width: 62rem; margin: 0 0 clamp(2.2rem, 4.5vw, 3.6rem); }
.voice__hero .film__cap { margin-top: .9rem; }

.voice__lead {
  font-family: var(--display); font-size: clamp(1.05rem, .6vw + .9rem, 1.3rem);
  color: var(--ink-2); margin: 0 0 clamp(1.2rem, 2.4vw, 1.8rem);
}

/* ---------- an essay, read in full (Scene 3) ---------- */

/* A reading measure. Across the full shell the essay ran to about 110
   characters a line, which is no way to read three paragraphs. */
.essay {
  max-width: 62rem; margin-inline: auto;
  border: 1px solid var(--rule); border-left: 3px solid var(--moss);
  background: var(--white); padding: clamp(1.3rem, 2.6vw, 2.4rem);
}
.essay__head {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
  padding-bottom: 1.1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule);
}
.essay__head > div:last-child { text-align: right; }
.essay__name { margin: 0; font-weight: 500; }
.essay__meta { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--ink-3); margin: .3rem 0 0; }
.essay__play { padding-bottom: 1.4rem; }
.essay__play audio { width: min(100%, 21rem); height: 38px; }
.essay__body {
  font-family: var(--display); font-size: clamp(1rem, .7vw + .9rem, 1.22rem);
  line-height: 1.7; color: var(--ink); max-width: 72ch;
}
.essay__body p {
  margin: 0 0 1.1rem; border-left: 2px solid transparent;
  padding-left: clamp(.7rem, 1.4vw, 1.1rem);
  transition: opacity .3s var(--ease), border-color .3s var(--ease);
}
.essay__body p:last-child { margin-bottom: 0; }
/* The follow-along only ever dims anything while the recording is playing, so
   the essay stays fully legible the rest of the time. */
[data-reader].is-playing .essay__body p { opacity: .4; }
[data-reader].is-playing .essay__body p.is-live { opacity: 1; border-left-color: var(--moss); }

/* ---------- the three-beat device (Says Means Matters) ---------- */

.beats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); background: var(--paper); }
.beat { padding: clamp(1.5rem, 3vw, 2.6rem); border-right: 1px solid var(--rule); position: relative; }
.beat:last-child { border-right: 0; }
.beat__k {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem); color: var(--moss-deep); margin-bottom: .9rem;
}
.beat__q { font-size: 1rem; color: var(--ink); margin-bottom: .5rem; }
.beat__do { font-family: var(--mono); font-size: .78rem; color: var(--taupe); letter-spacing: .02em; }
.beat__i { position: absolute; top: 1.1rem; right: 1.2rem; font-family: var(--mono); font-size: .68rem; color: var(--sage-2); }

/* ---------- TBEAR ladder ---------- */

.ladder { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.rung {
  display: grid; grid-template-columns: 4.5rem minmax(0, 12rem) minmax(0, 1fr);
  gap: clamp(.8rem, 2vw, 2rem); align-items: baseline;
  padding: clamp(1.1rem, 2vw, 1.6rem) 0; border-bottom: 1px solid var(--rule);
}
.rung__l { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--moss); line-height: 1; }
.rung__k { font-family: var(--display); font-size: clamp(1.05rem, 1vw + .8rem, 1.3rem); }
.rung__d { color: var(--ink-2); font-size: .96rem; }

/* ---------- mirror (QTABO / OBATQ) ---------- */

.mirror { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem, 3vw, 3rem); align-items: start; }
.mirror__col { border: 1px solid var(--rule); background: var(--paper); padding: clamp(1.2rem, 2.4vw, 2rem); }
.mirror__h { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); margin-bottom: 1.2rem; }
.mirror__col ol { margin: 0; padding: 0; list-style: none; counter-reset: m; }
.mirror__col li {
  counter-increment: m; padding: .7rem 0; border-bottom: 1px dashed var(--rule);
  display: flex; gap: .9rem; align-items: baseline; font-size: .98rem;
}
.mirror__col li:last-child { border-bottom: 0; }
.mirror__col li::before { content: counter(m); font-family: var(--mono); font-size: .72rem; color: var(--ink-3); }
.mirror__axis { display: grid; place-items: center; padding-top: 3rem; color: var(--sage-2); font-family: var(--mono); font-size: .8rem; letter-spacing: .2em; writing-mode: vertical-rl; }

/* ---------- lists of offers / services ---------- */

.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem); }
.offer {
  background: var(--paper); border: 1px solid var(--rule);
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
  display: flex; flex-direction: column; gap: .8rem;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.offer:hover { border-color: var(--moss); transform: translateY(-2px); }
.offer h3 { font-size: clamp(1.15rem, 1.2vw + .8rem, 1.4rem); }
.offer p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.offer__cta { margin-top: auto; padding-top: .8rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--moss-deep); }

/* ---------- truths ---------- */

.truths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
.truth { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(247,246,241,.14); align-items: baseline; }
.truth__n { font-family: var(--mono); font-size: .72rem; color: var(--sage-2); }
.truth__t { font-family: var(--display); font-size: clamp(1.05rem, 1vw + .8rem, 1.32rem); line-height: 1.3; color: var(--paper); }

/* ---------- book ---------- */

.book { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: start; }
.book__cover { position: relative; }
.book__cover img {
  width: 100%;
  box-shadow: 26px 30px 60px -24px rgba(34,38,28,.4), 2px 2px 0 rgba(34,38,28,.06);
  border: 1px solid rgba(34,38,28,.08);
}
.book__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 1.4rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.book__titles h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
.book__subs { margin-top: 1rem; }
.book__subs span { display: block; }
.book__subs span:first-child { font-family: var(--display); font-style: italic; font-size: clamp(1.05rem, 1.2vw + .8rem, 1.4rem); color: var(--moss-deep); }
.book__subs span + span { font-size: .95rem; color: var(--ink-2); margin-top: .3rem; }
.book__blurb {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.2rem, 1.6vw + .8rem, 1.75rem); line-height: 1.36;
  color: var(--ink); margin: clamp(1.6rem, 3vw, 2.4rem) 0;
  padding-left: 1.4rem; border-left: 2px solid var(--moss);
}
.book__buy { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin-top: 2rem; }
.book__note { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2.2rem); }
.act { border-top: 2px solid var(--moss); padding-top: 1.2rem; }
.act__n { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); margin-bottom: .7rem; }
.act h3 { font-size: clamp(1.1rem, 1.2vw + .8rem, 1.4rem); margin-bottom: .6rem; }
.act p { font-size: .93rem; color: var(--ink-2); margin: 0; }

/* ---------- praise ---------- */

.praise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 2.6rem); }
.quote { display: flex; flex-direction: column; gap: 1.2rem; }
.quote__q { font-family: var(--display); font-size: clamp(1.02rem, .8vw + .85rem, 1.22rem); line-height: 1.54; color: var(--ink); }
.quote__q::before { content: "\201C"; color: var(--sage-2); }
.quote__q::after { content: "\201D"; color: var(--sage-2); }
.quote__by { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--rule); }
.quote__n { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--moss-deep); display: block; }
.quote__r { font-size: .85rem; color: var(--ink-3); }
.section--ink .quote__q { color: var(--paper); }
.section--ink .quote__by { border-top-color: rgba(247,246,241,.18); }
.section--ink .quote__n { color: var(--sage-2); }
.section--ink .quote__r { color: var(--sage); }

/* ---------- about ---------- */

.bio { display: grid; grid-template-columns: minmax(0, .68fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.bio__portrait img { width: 100%; border: 1px solid var(--rule); }
.bio__cap { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--ink-3); margin-top: .9rem; text-transform: uppercase; }

.career { border-top: 1px solid var(--rule); }
.career__row {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(.6rem, 2vw, 2rem); padding: 1.15rem 0; border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.career__y { font-family: var(--mono); font-size: .78rem; color: var(--moss); letter-spacing: .04em; }
.career__r { font-size: 1rem; }
.career__o { font-size: .9rem; color: var(--ink-3); }

/* ---------- pathways (Scene 9) ---------- */

.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 2.6vw, 2rem); }
.path {
  border: 1px solid var(--rule); background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; gap: 1rem;
  text-decoration: none; color: var(--ink);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.path:hover { background: var(--white); border-color: var(--moss); color: var(--ink); }
.path h3 { font-size: clamp(1.25rem, 1.6vw + .8rem, 1.7rem); }
.path p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.path__go { margin-top: auto; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--moss-deep); display: flex; align-items: center; gap: .5rem; }
.path:hover .path__go .btn__arrow { transform: translateX(4px); }

/* ---------- form ---------- */

.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.form__row { display: grid; gap: .45rem; }
.form label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.form input, .form select, .form textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 2px;
  padding: .8rem .9rem; min-height: 48px; width: 100%;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--moss); }
.form__fine { font-size: .82rem; color: var(--ink-3); }

/* ---------- next scene rail ---------- */

.next { border-top: 1px solid var(--rule); background: var(--paper-2); }
.next__in {
  padding-block: clamp(2.6rem, 6vw, 5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.6rem 3rem; align-items: center;
}
.next__n { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--moss); margin-bottom: .9rem; }
.next__t { font-size: clamp(1.5rem, 3.2vw, 2.6rem); }
.next__k { color: var(--ink-2); margin-top: .8rem; font-size: 1.02rem; }

/* ---------- footer ---------- */

.foot { background: var(--ink); color: var(--sage); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.foot__top { padding-bottom: clamp(2.2rem, 5vw, 3.6rem); border-bottom: 1px solid rgba(247,246,241,.16); }
.foot__quote {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.25rem, 2.4vw + .7rem, 2.3rem); line-height: 1.3;
  color: var(--paper); max-width: 34ch; margin: 0;
}
.foot__sig { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-2); margin: 1.2rem 0 0; }
.foot__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; padding-block: clamp(2.2rem, 5vw, 3.4rem); }
.foot__h { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-2); font-weight: 500; margin-bottom: 1.1rem; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot__col a { color: var(--sage); text-decoration: none; font-size: .94rem; }
.foot__col a:hover { color: var(--paper); text-decoration: underline; }
.foot__fine { font-size: .8rem; color: var(--dim-ink); border-top: 1px solid rgba(247,246,241,.16); padding-top: 1.6rem; margin: 0; max-width: 70ch; }

/* ==========================================================================
   Scroll-in: slow fades, never abrupt
   ========================================================================== */

/* Scoped to .js so a script failure can never leave content invisible. */
.js .fade { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .fade.in { opacity: 1; transform: none; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (max-width: 1180px) {
  .nav__list a { padding-inline: .48rem; font-size: .82rem; }
  .nav__n { display: none; }
}

@media (max-width: 1000px) {
  .cards, .offers, .praise { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beats { grid-template-columns: 1fr; }
  .beat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .beat:last-child { border-bottom: 0; }
  .book, .bio { grid-template-columns: 1fr; }
  .book__cover { max-width: 22rem; }
  .bio__portrait { max-width: 18rem; }
  .mirror { grid-template-columns: 1fr; }
  .mirror__axis { writing-mode: horizontal-tb; padding: 0; }
  .scene-head__grid { grid-template-columns: 1fr; align-items: start; }
  .next__in { grid-template-columns: 1fr; }
  .section__head,
  .duo, .duo--wide, .duo--narrow { grid-template-columns: 1fr; align-items: start; }
  .section__head h2 { margin-bottom: .3rem; }
  .prose--split { columns: 1; }

  /* drawer nav */
  .burger { display: grid; }
  .nav {
    position: fixed; inset: 74px 0 auto; z-index: 39;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    max-height: 0; overflow: hidden; transition: max-height .45s var(--ease);
  }
  .nav.open { max-height: calc(100svh - 74px); overflow-y: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .8rem var(--gut) 1.6rem; }
  .nav__list a { padding: .95rem .2rem; font-size: 1.02rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav__n { display: inline; }
  .nav__shop a { margin: 1rem 0 0; border-radius: 2px; justify-content: center; }
}

@media (max-width: 820px) {
  .voices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel { grid-template-columns: 1fr; }
  .films { grid-template-columns: 1fr; }
  .essay__head { grid-template-columns: 1fr; gap: .7rem; }
  .essay__head > div:last-child { text-align: left; }
}

@media (max-width: 720px) {
  .truths { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 2rem; }
  .career__row { grid-template-columns: 1fr; gap: .2rem; }
  .rung { grid-template-columns: 2.6rem 1fr; }
  .rung__d { grid-column: 2; }
  .reveal > summary { grid-template-columns: 1fr; }
  .reveal__toggle { display: none; }
  .paths { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .cards, .offers, .praise, .acts, .voices { grid-template-columns: 1fr; }
  .invite__title { font-size: clamp(2rem, 10vw, 3rem); }
  .invite__sound, .invite__foot { position: static; margin-top: 1.6rem; display: inline-flex; }
  .invite__foot { display: block; }
}

/* ==========================================================================
   Reduced motion: show everything at once, no fades
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .invite__still, .invite__video, .invite__title, .invite__philosophy,
  .invite__statement, .invite__cta, .invite__sound, .invite__foot { opacity: 1; transform: none; }
  .invite__scrim { opacity: .5; }
  .invite__in::before { opacity: 1; }
  .js .fade { opacity: 1; transform: none; }
}
