/* ============================================================
   THE PERFECT MATCH — editorial B&W, Red Antler language
   ============================================================ */

:root {
  --black: #0a0a0a;
  --ink: #111110;
  --paper: #f1efe8;
  --white: #f6f4ee;
  --grey: rgba(246, 244, 238, 0.62);
  --grey-ink: rgba(10, 10, 9, 0.62);
  --hair-l: rgba(10, 10, 9, 0.14);
  --hair-d: rgba(246, 244, 238, 0.16);
  --red: #ff1e00;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --pad: clamp(1.5rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* no rubber-band bounce at either end of the page */
html, body { overscroll-behavior-y: none; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--red); color: var(--white); }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; display: block; }

/* ---------------------------------------------- fixed chrome */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 60; mix-blend-mode: difference;
}
.progress span {
  display: block; height: 100%; width: 100%;
  background: var(--white);
  transform-origin: 0 50%; transform: scaleX(0);
}

.chrome {
  position: fixed; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(0.7rem, 1.6vh, 1.1rem) var(--pad);
  pointer-events: none;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.chrome-top { top: 0; }
.chrome-bottom { bottom: 0; }

/* self-contained glass chips — each corner sits on its own surface so
   scrolling content passes beneath it instead of colliding */
.chrome > * {
  pointer-events: auto;
  color: var(--white);
  background: rgba(16, 16, 16, 0.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    0 1px 2px rgba(0, 0, 0, 0.28),
    0 6px 20px rgba(0, 0, 0, 0.24);
}

.brand {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none;
  min-height: 40px; padding: 0.42rem 0.85rem 0.42rem 0.55rem;
}
.brand-mark { width: 18px; height: 18px; filter: invert(1); }
.brand-name { font-weight: 500; }

.counter {
  font-variant-numeric: tabular-nums; display: flex; gap: 0.4em;
  min-height: 40px; align-items: center; padding: 0 0.9rem;
}
.counter-sep { opacity: 0.45; }

.wordmark { font-weight: 500; min-height: 34px; display: flex; align-items: center; padding: 0 0.9rem; }

/* ---------------------------------------------- score UI
   One white pill: "Play Soundtrack". Lives top-center on arrival, glides to
   the bottom-right corner as the visitor scrolls. Click toggles playback. */
.now-playing {
  position: fixed; z-index: 55;
  /* sits where the ON AIR pill used to live — just under the hero subtitle;
     JS measures the exact spot into --hero-top */
  top: var(--hero-top, 63vh); left: 50%; translate: -50% 0;
  display: flex; align-items: center; gap: 0.65rem;
  min-height: 40px; padding: 0 1.1rem;
  border: 0; cursor: pointer;
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(10, 10, 9, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.22);
  font: inherit; font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  /* keeps the label on one line when the docked position constrains width */
  white-space: nowrap;
  transition-property: top, left, translate, scale;
  transition-duration: 700ms, 700ms, 700ms, 200ms;
  transition-timing-function: var(--ease);
}
.now-playing:active { scale: 0.96; }
.now-playing.docked {
  top: calc(100vh - 40px - clamp(0.7rem, 1.6vh, 1.1rem));
  top: calc(100dvh - 40px - clamp(0.7rem, 1.6vh, 1.1rem));
  left: calc(100% - var(--pad));
  translate: -100% 0;
}

.cue-eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.cue-eq i {
  display: block; width: 2px; height: 100%;
  background: currentColor; border-radius: 1px;
  transform: scaleY(0.35); transform-origin: bottom;
  animation: cue-eq 1.1s var(--ease) infinite;
  animation-play-state: paused;
}
.cue-eq i:nth-child(2) { animation-delay: 180ms; }
.cue-eq i:nth-child(3) { animation-delay: 360ms; }
.sound-cue .cue-eq i { animation-play-state: running; }

/* hover swaps the EQ for a pause (or play) glyph */
.np-title {
  transition-property: opacity; transition-duration: 250ms;
  transition-timing-function: var(--ease);
}
.np-icon { position: relative; width: 14px; height: 12px; }
.np-icon > * {
  transition-property: opacity, transform, filter;
  transition-duration: 250ms;
  transition-timing-function: var(--ease);
}
.np-icon .cue-eq { position: absolute; inset: 0; justify-content: center; }
.now-playing.playing .cue-eq i { animation-play-state: running; }
.np-pause {
  position: absolute; inset: 0;
  display: flex; gap: 3px; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.25); filter: blur(4px);
}
.np-pause i { display: block; width: 2.5px; height: 10px; background: currentColor; }
.np-play {
  position: absolute; inset: 0; margin: auto;
  width: 0; height: 0;
  border-left: 7px solid currentColor;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  /* optical centre for a triangle */
  translate: 3px 0;
  opacity: 0; transform: scale(0.25); filter: blur(4px);
}
/* two explicit states: playing → pause bars + "Playing...",
   paused → play triangle + "Play Theme" (icons crossfade on toggle) */
.now-playing.playing .np-pause { opacity: 1; transform: scale(1); filter: blur(0); }
.now-playing:not(.playing) .np-play { opacity: 1; transform: scale(1); filter: blur(0); }

/* STOP THE MUSIC — the room shouts it in bare type over the black scene.
   One-shot staged sequence: pop in (scale 0.25→1.06→1, blur 4→0),
   drift like a voice rising, then a soft small exit. */
.stop-layer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.stop-shout {
  position: absolute; left: var(--x); top: var(--y);
  color: var(--white);
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: var(--fs, 1.6rem);
  letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(0, 10px) scale(0.25) rotate(var(--rot, 0deg));
  filter: blur(4px);
  will-change: transform, opacity, filter;
  animation: stopShout var(--dur, 2200ms) var(--ease) var(--d, 0ms) forwards;
}
.stop-shout.red { color: var(--red); }
@keyframes stopShout {
  0% {
    opacity: 0;
    transform: translate(0, 10px) scale(0.25) rotate(var(--rot));
    filter: blur(4px);
  }
  10% {
    opacity: 1;
    transform: translate(0, 0) scale(1.06) rotate(var(--rot));
    filter: blur(0);
  }
  16% { transform: translate(0, 0) scale(1) rotate(var(--rot)); }
  78% {
    opacity: 1;
    transform: translate(var(--dx, 0), var(--dy, -14px)) scale(1) rotate(var(--rot));
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx, 0), calc(var(--dy, -14px) - 10px)) scale(0.97) rotate(var(--rot));
    filter: blur(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stop-shout { animation: none; opacity: 0; }
}
@keyframes cue-eq {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .cue-eq i { animation: none; }
}
.folio {
  font-variant-numeric: tabular-nums;
  min-height: 34px; min-width: 34px; display: flex;
  align-items: center; justify-content: center; padding: 0 0.6rem;
}

/* ---------------------------------------------- immersion layers */
.grain {
  /* small bleed only — the jitter travels ±3%, a giant surface just burns compositor memory */
  position: fixed; inset: -4%; z-index: 40; pointer-events: none;
  will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

.spotlight {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%),
    rgba(246, 244, 238, 0.065), transparent 70%);
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.spotlight.on { opacity: 1; }

/* ---------------------------------------------- scenes */
.scene {
  position: relative;
  padding: clamp(5rem, 11vh, 8rem) var(--pad);
  overflow: clip;
}
.scene.dark { background: var(--black); color: var(--white); }
.scene.paper { background: var(--paper); color: var(--ink); }

.scene-kicker {
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.55; margin-bottom: clamp(2.2rem, 5vh, 3.6rem);
}

/* ---------------------------------------------- typography */
.serif-h {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.14; letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
.serif-h em { font-style: italic; font-weight: 400; }
.serif-lg {
  font-family: var(--serif); font-weight: 450;
  font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.42;
}
.serif-md { font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.serif-i { font-family: var(--serif); font-style: italic; }
.dim { opacity: 0.62; }
#sc18 > .dim { margin-bottom: clamp(1.6rem, 3vh, 2.4rem); }
.center-t { text-align: center; max-width: 44ch; margin: clamp(2.5rem, 6vh, 4rem) auto 0; font-size: 1.1rem; }

.stmt {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.12; letter-spacing: -0.012em;
  margin-bottom: 1.6rem;
}
.stmt-sub {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.4; opacity: 0.72; max-width: 30ch;
}
.stmt-xl {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.15;
  text-align: center;
}
.stmt-xl em { font-style: italic; font-weight: 400; }

.scene p + p { margin-top: 1.05em; }
.scene .grid-2 p { max-width: 58ch; }

.quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.4;
  margin: 1.4rem 0; padding-left: 1.4rem;
  border-left: 1px solid currentColor;
}
.quote-xl {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.28;
  max-width: 22ch; margin: 1.8rem 0;
}

/* ---------------------------------------------- layout helpers */
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.grid-2.center-v { align-items: center; }
.grid-2.flip figure { order: 2; }
.after-wide { margin-top: clamp(2.5rem, 5vh, 4rem); }

.cols-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2rem, 4vh, 3rem);
}
.col-num {
  font-family: var(--serif); font-style: italic;
  font-size: 0.9rem; opacity: 0.5; margin: 1.1rem 0 0.15rem;
}
.col-title {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.25rem; margin-bottom: 0.4rem;
}
.col p { font-size: 0.92rem; opacity: 0.78; }

/* thin hairline column separators, Red Antler style */
.paper .cols-3 .col { border-left: 1px solid var(--hair-l); padding-left: 1.4rem; }
.dark .cols-3 .col { border-left: 1px solid var(--hair-d); padding-left: 1.4rem; }

/* ---------------------------------------------- images */
.img-card {
  position: relative; overflow: hidden;
  border-radius: 6px;
}
.img-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition-property: transform;
  transition-duration: 1200ms;
  transition-timing-function: var(--ease);
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
  border-radius: 6px;
}
.paper .img-card img { outline-color: rgba(0, 0, 0, 0.1); }
.img-card:hover img { transform: scale(1.025); }
/* over any still, the cursor becomes the wheel mark (the supplied logo file) */
.img-card { cursor: url("images/cursors/mark.png?v=2") 16 16, pointer; }
.chyron-cap { z-index: 2; }

.img-card.wide-card { aspect-ratio: 21 / 9; }
.img-card.wide-card img { height: 100%; }

/* 3D tilt cards */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* chyron captions — the show's lower-thirds */
.chyron-cap {
  position: absolute; left: 0.9rem; bottom: 0.9rem;
  padding: 0.38rem 0.85rem;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white);
  background: rgba(10, 10, 9, 0.66);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  outline: 1px solid rgba(255, 255, 255, 0.18);
  outline-offset: -1px;
}
.chyron-cap.live::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--red); margin-right: 0.5em;
  vertical-align: 1px;
  animation: pulse 2.2s var(--ease) infinite;
}
p.chyron-cap { position: static; display: inline-block; }

/* caption placed under the image instead of over it — for stills that
   carry their own baked-in lower-third (e.g. Sarah — Bakery Owner) */
.chyron-cap.below {
  position: static;
  display: inline-block;
  margin-top: 0.9rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.detail-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
  margin-top: clamp(1.6rem, 3vh, 2.6rem);
}
.detail-row.tight { margin-top: 1.2rem; }
.img-card.sm { aspect-ratio: 16 / 8; }

.stack { display: flex; flex-direction: column; }

/* ---------------------------------------------- hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: var(--pad);
}
.hero-bg { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.8) brightness(0.5) contrast(1.1);
  animation: heroDrift 24s var(--ease) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-1.2%); }
}
.hero-veil {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 68% at 50% 42%, rgba(10,10,9,0.18) 0%, rgba(10,10,9,0.82) 78%, var(--black) 100%);
}
.beam {
  position: absolute; top: -12%; width: 26vw; height: 82vh;
  background: linear-gradient(to bottom, rgba(246,244,238,0.10), transparent 78%);
  filter: blur(26px);
  transform-origin: top center;
}
.beam-l { left: 12%; transform: rotate(14deg); animation: sway 11s ease-in-out infinite alternate; }
.beam-r { right: 12%; transform: rotate(-14deg); animation: sway 13s ease-in-out infinite alternate-reverse; }
@keyframes sway {
  from { transform: rotate(10deg); opacity: 0.7; }
  to { transform: rotate(17deg); opacity: 1; }
}
.beam-r { animation-name: swayR; }
@keyframes swayR {
  from { transform: rotate(-10deg); opacity: 0.7; }
  to { transform: rotate(-17deg); opacity: 1; }
}

.hero-inner { position: relative; z-index: 3; }
.kicker {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 1.8rem;
}
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.2rem, 10vw, 8.2rem);
  line-height: 1.02; letter-spacing: -0.015em;
}
.hero-title em { font-style: italic; font-weight: 300; }
.hero-sub {
  margin-top: 1.9rem; font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  opacity: 0.72; letter-spacing: 0.01em;
}
.scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%;
  /* centered via `translate` — the reveal animation owns `transform`
     and would otherwise wipe out a translateX(-50%) */
  translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.55;
  z-index: 3;
}
.scroll-cue span {
  display: block; width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--white));
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------------------------------------------- ticker */
.ticker {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--hair-d);
  border-bottom: 1px solid var(--hair-d);
  padding: 0.85rem 0;
  background: var(--black); color: var(--white);
  font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
}
.ticker-track { display: inline-flex; animation: tick 46s linear infinite; }
.ticker-track span { opacity: 0.55; }
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------- director's note */
.note-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.6fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.note-label {
  font-weight: 600; font-size: 0.86rem; line-height: 1.5;
  padding-right: 1.6rem;
  border-right: 1px solid var(--hair-l);
  min-height: 8rem;
}
.note-body p + p { margin-top: 1.2em; }
.note-img { margin-top: 0.3rem; }

/* ---------------------------------------------- escalation close */
.escalation-close {
  text-align: center;
  margin-top: clamp(3rem, 7vh, 4.5rem);
  padding-top: clamp(2rem, 4vh, 3rem);
  border-top: 1px solid var(--hair-l);
}
.escalation-close .serif-i { opacity: 0.6; max-width: 56ch; margin: 0 auto 0.9rem; }

/* ---------------------------------------------- tone statement */
.tone-stmt {
  margin-top: clamp(3.5rem, 9vh, 6rem);
  padding-top: clamp(2.6rem, 6vh, 4rem);
  border-top: 1px solid var(--hair-d);
}

/* ---------------------------------------------- contestants */
.contestant-no {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  line-height: 1; opacity: 0.28; margin-bottom: 0.6rem;
}
.reaction {
  display: grid; grid-template-columns: 9rem 1fr;
  gap: 1.2rem; align-items: center;
  margin-top: 1.8rem; padding-top: 1.5rem;
  border-top: 1px solid var(--hair-d);
  font-size: 0.9rem;
}
.reaction .img-card { border-radius: 4px; }
.reaction p { opacity: 0.75; }

/* ---------------------------------------------- full bleed (SC10) */
.full-bleed { padding: 0; min-height: 100vh; display: grid; }
.bleed-img {
  grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) brightness(0.55);
}
.bleed-veil {
  grid-area: 1 / 1;
  background: linear-gradient(to right, rgba(10,10,9,0.88) 22%, rgba(10,10,9,0.25) 70%);
}
.bleed-inner {
  grid-area: 1 / 1; position: relative; z-index: 2;
  align-self: center;
  padding: clamp(5rem, 11vh, 8rem) var(--pad);
  max-width: 46rem;
}
.on-bleed { margin-bottom: 2.2rem; }
.bleed-body { max-width: 44ch; opacity: 0.85; }

/* ---------------------------------------------- the truth (SC11) */
.truth { min-height: 100vh; display: flex; flex-direction: column; }
.truth-inner {
  margin: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 2rem 0 3rem;
}
.truth-img { width: min(30rem, 72vw); }
.truth-line {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.2;
  margin-top: clamp(2.4rem, 6vh, 3.6rem);
}
.truth-note {
  max-width: 52ch; margin-top: clamp(2rem, 5vh, 3rem);
  font-size: 0.92rem; opacity: 0.6;
}

/* ---------------------------------------------- prompt (SC12) */
.prompt-box {
  position: relative;
  display: flex; align-items: center;
  /* pulled left by its own padding so the typed text lines up with the title */
  margin: 1.6rem 0 1.8rem -1.3rem;
  padding: 1.05rem 3.4rem 1.05rem 1.3rem;
  background: #fbfaf6;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(10, 10, 9, 0.08),
    0 1px 2px rgba(10, 10, 9, 0.05),
    0 8px 24px rgba(10, 10, 9, 0.07);
  font-size: 1.02rem;
  min-height: 3.4rem;
}
.prompt-caret {
  width: 1px; height: 1.25em; margin-left: 2px;
  background: var(--ink);
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.prompt-send {
  position: absolute; right: 0.55rem; top: 50%;
  translate: 0 -50%;
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
  font-size: 1rem;
  transition-property: scale; transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.prompt-box:active .prompt-send { scale: 0.96; }

/* ---------------------------------------------- compare (SC13) */
.compare-hint {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; opacity: 0.5; margin-bottom: 0.9rem;
}
.compare {
  position: relative; overflow: hidden;
  border-radius: 8px; aspect-ratio: 21 / 9;
  cursor: ew-resize; user-select: none;
  touch-action: pan-y;
  outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px;
}
.compare img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.compare-under { filter: none; }
/* faint permanent broadcast grain on the show side of the match cut */
.compare-over::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(8, 8, 8, 0.16) 0px, rgba(8, 8, 8, 0.16) 1px, transparent 1px, transparent 3px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 100% 100%, 140px 140px;
  opacity: 0.28;
}
.compare-over {
  position: absolute; inset: 0; overflow: hidden;
  width: var(--cut, 50%);
  border-right: 1px solid rgba(246, 244, 238, 0.85);
}
.compare-over img { width: calc(100% / (var(--cutf, 0.5))); max-width: none; }
.compare-handle {
  position: absolute; top: 50%; left: var(--cut, 50%);
  translate: -50% -50%;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 10, 9, 0.72); color: var(--white);
  backdrop-filter: blur(6px);
  font-size: 0.7rem; letter-spacing: 0.1em;
  box-shadow: 0 2px 12px rgba(10, 10, 9, 0.4);
  pointer-events: none;
}
.compare-tag {
  position: absolute; bottom: 0.9rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(10, 10, 9, 0.66); color: var(--white);
  border-radius: 999px; backdrop-filter: blur(8px);
}
.tag-l { left: 0.9rem; }
.tag-r { right: 0.9rem; }

/* ---------------------------------------------- match frames (SC14) */
.match-frames {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  margin-top: clamp(2rem, 4vh, 3rem);
}
.gl { position: absolute; pointer-events: none; opacity: 0.55; }
.gl-h { left: 0; right: 0; height: 0; border-top: 1px dashed rgba(246, 244, 238, 0.7); }
.gl-v { top: 0; bottom: 0; width: 0; border-left: 1px dashed rgba(246, 244, 238, 0.7); }

/* ---------------------------------------------- stair (SC15) */
.stair {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.9rem, 2vw, 1.8rem);
  align-items: end;
  margin-top: clamp(2.2rem, 5vh, 3.4rem);
}
.stair-item { padding-bottom: var(--lift); }
.stair-item .img-card { aspect-ratio: 3 / 2; }
.stair-item.hold { border-left: 1px solid var(--hair-d); padding-left: clamp(0.9rem, 2vw, 1.8rem); }
.angle {
  margin-top: 0.6rem;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6;
}
.stair-item.hold .angle { opacity: 1; }

.triptych-row {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-top: clamp(2.6rem, 6vh, 4rem);
  padding-top: clamp(2rem, 4vh, 3rem);
  border-top: 1px solid var(--hair-d);
}
.triptych {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.triptych .img-card { aspect-ratio: 4 / 3; }
.trip-cap { grid-column: 1 / -1; margin-top: 0.4rem; }
.triptych-row > p { font-size: 0.95rem; opacity: 0.8; }

/* ---------------------------------------------- moves (SC16) */
.moves .img-card { aspect-ratio: 16 / 9; }
.move-arrow {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 2.2rem; color: var(--white);
  text-shadow: 0 2px 14px rgba(10, 10, 9, 0.8);
  opacity: 0; scale: 0.25; filter: blur(4px);
  transition-property: opacity, scale, filter;
  transition-duration: 300ms;
  transition-timing-function: var(--ease);
}
.move:hover .move-arrow { opacity: 1; scale: 1; filter: blur(0px); }
.move:hover .whip { animation: whip 900ms var(--ease) infinite; }
@keyframes whip {
  0% { transform: translateX(-38%); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateX(38%); opacity: 0; }
}
.move:hover .creep { animation: creep 1.6s var(--ease) infinite alternate; }
@keyframes creep {
  from { transform: scale(0.8); }
  to { transform: scale(1.25); }
}
.move:hover .drift { animation: drift 2.6s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(-6px, 3px) rotate(-2deg); }
  to { transform: translate(6px, -3px) rotate(2deg); }
}

/* ---------------------------------------------- palette (SC17) */
.palette {
  display: flex; gap: 1.4rem; flex-wrap: wrap;
  margin-top: 1.8rem; padding-top: 1.5rem;
  border-top: 1px solid var(--hair-l);
}
.swatch {
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75;
}
.swatch span {
  display: block; width: 3.4rem; height: 2.3rem;
  border-radius: 5px; margin-bottom: 0.5rem;
  outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px;
}

/* ---------------------------------------------- props (SC18) */
.prop .img-card { aspect-ratio: 16 / 9; margin-bottom: 1.1rem; }
.prop p { font-size: 0.93rem; opacity: 0.78; max-width: 52ch; }

/* ---------------------------------------------- casting (SC19) */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3vw, 2.8rem);
  margin-top: clamp(2rem, 4vh, 3rem);
}
.cast .img-card { aspect-ratio: 4 / 3; margin-bottom: 0.9rem; }
.cast p { font-size: 0.88rem; opacity: 0.72; }
.cast.featured {
  grid-row: span 2;
  padding-right: clamp(1.4rem, 2.5vw, 2.4rem);
  border-right: 1px solid var(--hair-l);
}
.cast.featured .img-card { aspect-ratio: 3 / 3.4; }

/* wardrobe note folded into each cast card */
.cast-ward { font-size: 0.8rem; opacity: 0.62; margin-top: 0.6rem; }
.cast-ward span {
  display: block;
  font-size: 0.56rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.8; margin-bottom: 0.2rem;
}

/* ---------------------------------------------- pacing (SC21) */
.pacing {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 1fr;
  align-items: center;
  gap: 1.4rem;
  margin-top: clamp(2.8rem, 6vh, 4.4rem);
  padding: 1.8rem 0;
  border-top: 1px solid var(--hair-d);
  min-height: 7rem;
}
/* three acts, left to right: ticks accelerate (the build), the hold stays
   empty (the stop), then four clean beats land one by one (the after) */
.pace-cluster { display: flex; align-items: center; height: 44px; }
.pace-cluster i {
  display: block; width: 1.5px; height: 60%;
  background: var(--hair-d); opacity: 0;
  margin-right: var(--gap);
  transition-property: opacity; transition-duration: 240ms;
  transition-timing-function: var(--ease);
  transition-delay: var(--d);
}
.pacing.in .pace-cluster i { opacity: 1; }
.pace-silence {
  text-align: center;
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.5;
}
.pace-beats {
  display: flex; align-items: center; gap: 0.7rem;
  justify-content: flex-end;
}
.pace-beats i {
  display: block; width: 1.5px; height: 26px; background: var(--hair-d);
  opacity: 0;
  transition-property: opacity; transition-duration: 300ms;
  transition-timing-function: var(--ease);
  transition-delay: var(--d, 0ms);
}
.pace-beats b {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0;
  transition-property: opacity; transition-duration: 300ms;
  transition-timing-function: var(--ease);
  transition-delay: var(--d, 0ms);
}
.pacing.in .pace-beats i { opacity: 1; }
.pacing.in .pace-beats b { opacity: 0.6; }

/* ---------------------------------------------- sound (SC22) */
.sound-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
  margin-top: clamp(2.2rem, 5vh, 3.4rem);
}
.sound { border-left: 1px solid var(--hair-d); padding-left: 1.2rem; }
.sound p { font-size: 0.84rem; opacity: 0.72; }
.sound .col-title { font-size: 1.05rem; }
.eq {
  display: flex; align-items: center; gap: 5px;
  height: 52px; margin-bottom: 1.1rem;
}
.eq i {
  display: block; width: 3px; border-radius: 2px;
  background: var(--white);
  height: calc(52px * var(--h, 0.5));
}
.scene.in-view .eq[data-level] i { animation: eq var(--spd, 1.2s) ease-in-out infinite alternate; animation-delay: var(--ad); }
@keyframes eq {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}
.eq[data-level="show"] i { --h: 0.62; --spd: 1.3s; }
.eq[data-level="peak"] i { --h: 0.95; --spd: 0.55s; }
.eq[data-level="tense"] i { --h: 0.5; --spd: 2.8s; }
.eq[data-level="soft"] i { --h: 0.3; --spd: 1.7s; }
.eq i:nth-child(1) { --ad: 0ms; } .eq i:nth-child(2) { --ad: 120ms; }
.eq i:nth-child(3) { --ad: 240ms; } .eq i:nth-child(4) { --ad: 60ms; }
.eq i:nth-child(5) { --ad: 180ms; }
.eq.flat { align-items: center; }
.eq.flat span { display: block; width: 100%; height: 1px; background: var(--hair-d); }

/* sample play buttons beside each EQ */
.eq-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; margin-bottom: 1.1rem;
}
.eq-row .eq { margin-bottom: 0; flex: 1; }
.sound-play {
  position: relative; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
  color: var(--white);
  box-shadow: inset 0 0 0 1px var(--hair-d);
  transition-property: box-shadow, scale;
  transition-duration: 250ms, 200ms;
  transition-timing-function: var(--ease);
}
.sound-play:hover { box-shadow: inset 0 0 0 1px rgba(246, 244, 238, 0.42); }
.sound-play:active { scale: 0.96; }
/* extend the hit area to 40px */
.sound-play::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; }
/* play triangle, nudged right for optical centre */
.sp-play {
  display: block; width: 0; height: 0; margin-left: 2px;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transition-property: opacity, transform, filter;
  transition-duration: 250ms;
  transition-timing-function: var(--ease);
}
.sp-pause {
  position: absolute; display: flex; gap: 3px;
  opacity: 0; transform: scale(0.25); filter: blur(4px);
  transition-property: opacity, transform, filter;
  transition-duration: 250ms;
  transition-timing-function: var(--ease);
}
.sp-pause i { display: block; width: 2.5px; height: 10px; background: currentColor; }
.sound-play.playing .sp-play { opacity: 0; transform: scale(0.25); filter: blur(4px); }
.sound-play.playing .sp-pause { opacity: 1; transform: scale(1); filter: blur(0); }
.sound.silent .col-title { opacity: 0.95; }

/* ---------------------------------------------- end (SC24) */
.end {
  min-height: 100vh;
  display: flex; flex-direction: column;
  text-align: center;
  padding-top: clamp(2.5rem, 5vh, 4rem);
  padding-bottom: clamp(2rem, 4vh, 3rem);
}
.end-inner { margin: auto; display: flex; flex-direction: column; align-items: center; }
/* the favicon is a black "A" on transparency — invert paints it white.
   .reveal also sets `filter`, so the invert must ride along in both states */
.end-mark { width: 40px; height: 40px; filter: invert(1); margin-bottom: 2rem; }
.end-mark.reveal { filter: invert(1) blur(5px); }
.end-mark.reveal.in { filter: invert(1) blur(0); }
.end-word {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 8vw, 6.4rem); line-height: 1;
  letter-spacing: -0.01em;
}
.end-tag {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.4;
  margin-top: 1.4rem; opacity: 0.85;
}
.end-tag em { font-style: italic; }
.end-card { width: min(38rem, 80vw); margin-top: clamp(2rem, 5vh, 3.2rem); }
.end-note {
  margin-top: 2.2rem;
  font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.42;
}
.end-footer {
  /* 1fr | auto | 1fr — the title is truly centered, the counter sits left,
     and the right column stays empty so the now-playing chip never collides */
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.5;
  font-variant-numeric: tabular-nums;
}
.end-footer > span:first-child { justify-self: start; }

/* ---------------------------------------------- appendix shot list */
.shot-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1.2rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 4vh, 3rem);
}
.shot { display: flex; flex-direction: column; }
.shot-no {
  font-variant-numeric: tabular-nums;
  font-family: var(--serif); font-style: italic;
  opacity: 0.5;
  margin-bottom: 0.45rem;
}
.shot .img-card { aspect-ratio: 16 / 9; margin-bottom: 0.75rem; }
.shot-beat { font-size: 0.88rem; }
.shot-cam {
  margin-top: 0.5rem;
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.55;
}

/* ---------------------------------------------- reveals */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(5px);
  transition-property: opacity, transform, filter;
  transition-duration: 700ms;
  transition-timing-function: var(--ease);
  transition-delay: var(--rd, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------------------------------------------- responsive */
@media (max-width: 900px) {
  .grid-2, .note-grid, .match-frames, .triptych-row, .pacing { grid-template-columns: 1fr; }
  .grid-2.flip figure { order: 0; }
  .cols-3, .sound-grid { grid-template-columns: 1fr; }
  .stair { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .stair-item { padding-bottom: 0; }
  .stair-item.hold { border-left: none; padding-left: 0; }
  .cast-grid { grid-template-columns: 1fr 1fr; }
  .cast.featured { grid-row: auto; border-right: none; padding-right: 0; }
  .ward-list li { grid-template-columns: 1fr; gap: 0.3rem; }
  .note-label { border-right: none; border-bottom: 1px solid var(--hair-l); min-height: 0; padding: 0 0 1rem; }
  .paper .cols-3 .col, .dark .cols-3 .col, .sound { border-left: none; padding-left: 0; }
  .pace-beats { justify-content: flex-start; }
  .chrome { font-size: 0.6rem; }
  .brand-name { display: none; }
  .shot-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .grain, .beam, .hero-img, .ticker-track, .onair-dot, .scroll-cue span,
  .move-arrow, .eq i, .prompt-caret, .img-card::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
  .spotlight { display: none; }
}
