/* Flying Money. One page, read top to bottom: the note on the front, the pitch a frame at a time
   with its words under each frame, then the brief laid out on a gambling-den table. Nothing waits on the scroll. */

:root {
  color-scheme: dark;
  --ink: #141311;          /* front of the note */
  --den: #0E0A07;          /* the table in shadow */
  --cream: #EFE3C8;
  --cream-dim: rgba(239, 227, 200, 0.72);
  --brass: #B08D57;
  --brass-line: rgba(176, 141, 87, 0.45);
  --card: rgba(17, 12, 8, 0.9);
  --map-ink: #140D07;      /* engraving on dark paper */
  --seal: #C8301F;
  --seal-bright: #E4553E;
  --vermilion: #E8572F;

  --grot: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --fell: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --fell-sc: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --kai: "LXGW WenKai TC", "Kaiti TC", "STKaiti", "Noto Serif TC", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gold: #C7A46B;         /* eyebrows, as on the pitch deck */
  --cream-soft: #CDBFA3;
  --paper: #E9DFC6;        /* photographs and label tabs */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --gut: clamp(16px, 4vw, 56px);
  --brand-h: clamp(28px, 2.6vw, 40px);
  --brand-top: clamp(16px, 3.2vh, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--den); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--den);
  color: var(--cream);
  font-family: var(--fell);
  font-size: clamp(15px, 0.35vw + 13.5px, 18px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--seal-bright); outline-offset: 3px; }

/* ------------------------------------------------------------------ ground */
/* The table lies still behind the page. Chapters are solid and scroll over it; the triangle and the brief sit on it. */
.ground { position: fixed; inset: 0; height: 100lvh; z-index: 0; overflow: clip; background: var(--den); pointer-events: none; }
.layer { position: absolute; inset: 0; overflow: clip; }
main { position: relative; z-index: 1; }

/* The den: table, lamp, smoke */
.layer-den { background: var(--den) url("assets/den-land.3709131e13.jpg") center / cover; }
.lamp, .smoke { position: absolute; inset: 0; pointer-events: none; }
.lamp {
  background:
    radial-gradient(ellipse 60% 55% at 50% 40%, rgba(255, 176, 92, 0.14), transparent 70%),
    radial-gradient(ellipse 95% 90% at 50% 45%, transparent 45%, rgba(6, 4, 2, 0.55) 100%);
  animation: flicker 7s steps(1, end) infinite;
}
@keyframes flicker { 0%, 100% { opacity: 1; } 41% { opacity: 0.94; } 43% { opacity: 1; } 71% { opacity: 0.97; } 72% { opacity: 1; } }
/* Smoke: three contained plates (they fade to black before their own edges), screened over the table */
.smoke { overflow: clip; }
.puff { position: absolute; display: block; background: center / contain no-repeat; mix-blend-mode: screen; will-change: transform; }
.puff-b { background-image: url("assets/smoke-b.c7a0088ff4.jpg"); width: 120vmax; aspect-ratio: 1400 / 933; left: 50%; top: 30%; margin: calc(-40vmax) 0 0 -60vmax; opacity: 0.34; animation: haze 64s ease-in-out infinite alternate; }
.puff-a { background-image: url("assets/smoke-a.2e5b9d4b7e.jpg"); width: 70vmax; aspect-ratio: 3 / 2; left: 4%; bottom: -8%; opacity: 0.4; animation: rise 38s ease-in-out infinite alternate; }
.puff-c { background-image: url("assets/smoke-c.8058474f22.jpg"); height: 110vh; aspect-ratio: 2 / 3; right: 2%; top: -6%; opacity: 0.34; animation: rise2 46s ease-in-out infinite alternate; }
@keyframes haze { from { transform: translateX(-9%) scale(1.05); } to { transform: translateX(9%) scale(1.18) rotate(-2deg); } }
@keyframes rise { from { transform: translate(0, 6%) rotate(-3deg); } to { transform: translate(6%, -10%) rotate(4deg) scale(1.1); } }
@keyframes rise2 { from { transform: translate(0, 4%) scaleX(-1); } to { transform: translate(-7%, -8%) scaleX(-1) rotate(-4deg) scale(1.08); } }
/* Extra dark for reading the note on the table */
.layer-veil {
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(255, 176, 92, 0.07), transparent 70%),
    radial-gradient(ellipse 90% 90% at 50% 50%, rgba(10, 7, 4, 0.42) 25%, rgba(6, 4, 2, 0.9) 100%);
}

/* Shared: seal row + engraved label, lifted from the printed note */
.seals { display: flex; gap: 0.35em; font-size: clamp(15px, 1.3vw, 21px); }
.seals i {
  font-style: normal; font-family: var(--kai); font-weight: 700;
  width: 2em; height: 2em; display: grid; place-items: center;
  border: 1.5px solid rgba(214, 190, 140, 0.6); border-radius: 50%;
  background: rgba(10, 7, 4, 0.55); color: var(--vermilion);
  filter: url(#ink);
}
.label {
  font-family: var(--fell-sc); font-size: clamp(13px, 1vw, 16px);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-dim);
  margin: 0.55em 0 0;
}

/* ------------------------------------------------------------------ 1. hero */
.hero { position: relative; height: 100svh; min-height: 460px; overflow: clip; background: var(--ink); }
.halftone-hero { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-scrim { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 19, 17, 0.62) 0%, rgba(20, 19, 17, 0.3) 34%, rgba(20, 19, 17, 0) 55%),
    linear-gradient(180deg, rgba(20, 19, 17, 0.55) 0%, rgba(20, 19, 17, 0) 16%, rgba(20, 19, 17, 0) 52%, rgba(20, 19, 17, 0.72) 82%, rgba(20, 19, 17, 0.85) 100%); }
.hero-seal {
  position: absolute; width: clamp(64px, 8.5vw, 132px); height: auto;
  right: 8%; top: 44%;
  mix-blend-mode: screen; opacity: 0; transform: scale(1.6) rotate(-8deg);
}
.hero-seal.stamped { animation: stamp 0.55s cubic-bezier(.2, .8, .3, 1.2) forwards; }
@keyframes stamp { 60% { opacity: 1; transform: scale(0.94) rotate(1deg); } 100% { opacity: 0.92; transform: scale(1) rotate(0); } }
/* JUO Pictures lockup, top left of the front */
.brand {
  position: absolute; z-index: 3; left: var(--gut); top: var(--brand-top);
  display: block; line-height: 0;
  filter: drop-shadow(0 1px 10px rgba(8, 6, 4, 0.75)) drop-shadow(0 0 2px rgba(8, 6, 4, 0.6));
}
.brand img { height: var(--brand-h); width: auto; display: block; }
.brand:focus-visible { outline-offset: 6px; }
.hero-kicker { margin: 0 0 16px; font-family: var(--mono); font-size: clamp(11px, 0.78vw, 12px); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream); }
.hero-kicker span { display: inline-block; background: rgba(12, 9, 6, 0.8); padding: 0.45em 0.8em 0.4em; box-shadow: 0 0 0 1px rgba(176, 141, 87, 0.35); }
/* Straight to the facts from anywhere in the story */
.to-sheet {
  position: fixed; z-index: 20; right: var(--gut); top: calc(var(--brand-top) + (var(--brand-h) - 32px) / 2);
  height: 32px; display: inline-flex; align-items: center; gap: 0.5em; padding: 0 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--cream); background: rgba(12, 9, 6, 0.85); border: 1px solid var(--brass-line);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.2s var(--ease);
}
.to-sheet.away { opacity: 0; pointer-events: none; transform: translateY(-8px); }
.to-sheet { transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease); }
@media (hover: hover) { .to-sheet:hover { background: var(--seal); border-color: var(--seal); color: #FBEFDC; } }
.to-sheet:active { transform: translateY(1px) scale(0.98); }
.hero-foot { position: absolute; left: var(--gut); bottom: calc(var(--gut) + 6px); right: var(--gut); max-width: 44rem; }
.hero-title {
  font-family: var(--grot); font-weight: 800; text-transform: uppercase;
  font-size: clamp(64px, 11vw, 176px); line-height: 0.86; letter-spacing: -0.035em;
  color: var(--cream); margin: 0;
  text-shadow: 0 2px 30px rgba(10, 10, 9, 0.55);
}
.hero-hook {
  margin: 0.9em 0 0; max-width: 30ch;
  font-family: var(--fell); font-style: italic; font-size: clamp(17px, 1.5vw, 24px); line-height: 1.3;
  color: var(--cream); text-shadow: 0 1px 14px rgba(10, 10, 9, 0.9);
}
.cue {
  position: absolute; right: var(--gut); bottom: calc(var(--gut) + 6px);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(239, 230, 208, 0.7);
}
.cue::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--cream), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0%, 100% { transform: scaleY(0.3); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }


/* ------------------------------------------------------------------ 2. chapters: a frame, then its words, in order */
.chapter { background: var(--den); padding: clamp(64px, 9vw, 128px) var(--gut) clamp(56px, 8vw, 112px); }
.chapter-head { width: min(var(--measure), 100%); margin: 0 auto clamp(30px, 4.5vw, 60px); display: grid; gap: 12px; justify-items: start; }
.chapter-head h2 { margin: 0; font-weight: 400; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; }
.chapter-head .seals i { background: rgba(10, 7, 4, 0.85); }
.chapter-dek { margin: 0; max-width: 52ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; color: var(--cream-soft); }
/* The opening: the word the pitch turns on, under the name in both scripts */
.lockup { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px); }
.lockup .zh { font-family: var(--kai); font-weight: 700; font-size: clamp(34px, 4.4vw, 68px); line-height: 1; letter-spacing: 0.12em; color: var(--seal-bright); }
.lockup i { font-size: clamp(17px, 1.8vw, 28px); line-height: 1; }
.chapter-head .word { margin-left: -0.04em; font-size: clamp(60px, 10vw, 168px); line-height: 0.92; letter-spacing: 0.12em; text-transform: uppercase; }
.chapter-open .chapter-dek { font-style: italic; font-size: clamp(19px, 1.7vw, 26px); color: var(--cream); }

/* The picture is pinned to the screen and dissolves from one frame to the next. The words are ordinary page content:
   they scroll at the reader's pace, on their own solid ground, and are never hidden or timed. */
.chapter { padding-inline: 0; padding-bottom: 0; }
.chapter-head { width: min(1180px, calc(100% - 2 * var(--gut))); }
.reel { position: relative; }
.reel-pin { position: sticky; top: 0; height: 100svh; overflow: clip; background: #060403; }
.shots { position: absolute; inset: 0; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.9s ease; }
.shot:first-child, .shot.on { opacity: 1; }
.reel-pin::after { /* a little weight at the foot of the picture, where the words pass */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 10, 7, 0.5) 0%, rgba(14, 10, 7, 0) 14%, rgba(14, 10, 7, 0) 60%, rgba(14, 10, 7, 0.5) 100%);
}
.steps { position: relative; margin-top: -100svh; padding-bottom: 34svh; }
.step { min-height: 88svh; display: flex; align-items: flex-end; padding: 0 var(--gut); }
.step:first-child { min-height: 100svh; padding-bottom: 9svh; }
.card { width: min(31rem, 42vw); padding: clamp(20px, 2.2vw, 30px) clamp(20px, 2.4vw, 32px) clamp(22px, 2.4vw, 32px); }
.card > * { margin: 0; }
.beat-eyebrow { font-size: clamp(11.5px, 0.95vw, 14px); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.beat-h { margin-top: 0.4em !important; font-weight: 400; font-style: italic; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.12; text-wrap: balance; }
.beat-h span { display: inline-block; } /* a line may only break between sentences */
.beat-name { margin-top: 0.35em !important; font-weight: 400; font-size: clamp(23px, 2.3vw, 34px); line-height: 1.05; letter-spacing: 0.14em; text-transform: uppercase; }
.beat-line { margin-top: 0.35em !important; font-style: italic; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.2; text-wrap: balance; }
.beat-p { margin-top: 0.8em !important; max-width: 58ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: var(--cream); text-wrap: pretty; }
.beat-wants { display: inline-block; margin-top: 1em !important; padding-top: 0.75em; border-top: 1px solid var(--brass-line); font-style: italic; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.35; }
.beat-wants b { margin-right: 1em; font-family: var(--mono); font-style: normal; font-weight: 500; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.beat-wants i { margin: 0 0.35em; font-style: normal; color: var(--gold); }

/* ------------------------------------------------------------------ 3. the triangle: one more pinned frame in the People chapter, built live on the table */
.shot-web { background: var(--den) url("assets/den-land.3709131e13.jpg") center / cover; }
.shot-web::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 90% 90% at 60% 45%, rgba(10, 7, 4, 0.3) 20%, rgba(6, 4, 2, 0.86) 100%); }
.web { position: absolute; right: max(var(--gut), 6vw); top: 50%; transform: translateY(-50%); width: min(640px, 50vw); perspective: 1400px; }
.web-note { display: inline-block; margin-top: 1.1em !important; padding: 0.35em 0.7em 0.3em; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); background: rgba(12, 9, 6, 0.8); box-shadow: 0 0 0 1px rgba(176, 141, 87, 0.3); }
.web-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.web-lines path { fill: none; stroke: #E0492E; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; filter: url(#ink); }
.web-lines, .tab { opacity: 0; transition: opacity 0.7s var(--ease); }
.web.tied .web-lines, .web.tied .tab { opacity: 1; }
/* A photograph taped to the table. Its size comes from the script as --sw, so type and tape scale with it. */
.snap {
  --sw: 180px;
  position: absolute; width: var(--sw); margin: 0;
  padding: calc(var(--sw) * 0.06) calc(var(--sw) * 0.06) 0;
  background: var(--paper); color: #2B1B10;
  box-shadow: inset 0 0 calc(var(--sw) * 0.16) rgba(90, 62, 24, 0.26), 0 1px 0 rgba(0, 0, 0, 0.4),
    0 calc(18px + 30px * var(--lift, 0)) calc(34px + 44px * var(--lift, 0)) rgba(6, 4, 2, calc(0.72 - 0.26 * var(--lift, 0)));
}
.snap img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; background: #1C140C; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); }
.snap figcaption { display: grid; justify-items: center; gap: 0.12em; padding: calc(var(--sw) * 0.05) 0 calc(var(--sw) * 0.065); text-align: center; line-height: 1.1; }
.snap b { font-weight: 400; font-size: clamp(11.5px, calc(var(--sw) * 0.098), 22px); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.snap em { font-size: clamp(11px, calc(var(--sw) * 0.08), 17px); color: #7E1A0E; white-space: nowrap; }
.tape {
  position: absolute; z-index: 2; left: 50%; top: calc(var(--sw) * -0.05); width: 36%; height: calc(var(--sw) * 0.105);
  transform: translateX(-50%) rotate(-2.5deg);
  background: linear-gradient(180deg, rgba(226, 211, 170, 0.84), rgba(203, 186, 144, 0.8)); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}
.snap:nth-of-type(2) .tape { transform: translateX(-46%) rotate(3deg); } .snap:nth-of-type(3) .tape { transform: translateX(-54%) rotate(-1deg); }
/* The back of a dealt photograph: cream border, ink panel, brass lattice, the seal in the middle */
.card-back {
  position: absolute; inset: 0; z-index: 4; display: none;
  background: var(--paper); box-shadow: inset 0 0 40px rgba(70, 45, 15, 0.35);
}
.card-back::before {
  content: ""; position: absolute; inset: calc(var(--sw) * 0.05); border: 1px solid rgba(176, 141, 87, 0.75); outline: 1px solid rgba(176, 141, 87, 0.35); outline-offset: -5px;
  background:
    repeating-linear-gradient(45deg, rgba(176, 141, 87, 0.26) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(-45deg, rgba(176, 141, 87, 0.26) 0 1px, transparent 1px 10px),
    #1C140C;
}
.card-back::after {
  content: "飛錢"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  writing-mode: vertical-rl; padding: 0.45em 0.3em; letter-spacing: 0.08em;
  font-family: var(--kai); font-weight: 700; font-size: clamp(16px, calc(var(--sw) * 0.16), 34px); line-height: 1;
  color: var(--seal-bright); background: #1C140C; border: 2px solid var(--seal-bright); border-radius: 3px;
  box-shadow: 0 0 0 6px #1C140C; filter: url(#ink);
}
.snap.face-down .card-back { display: block; }
.snap.face-down .tape { visibility: hidden; }
/* What ties them: a slip of paper on each arrow */
.tab {
  position: absolute; left: 0; top: 0; padding: 0.32em 0.75em 0.28em;
  font-style: italic; font-size: clamp(13px, 1.25vw, 19px); line-height: 1.1; white-space: nowrap;
  color: #7E1A0E; background: #E7DCC2; box-shadow: 0 2px 8px rgba(6, 4, 2, 0.6);
}
/* Paper waits off the table only when the script is running; without it everything is simply there. */
.js .deal { opacity: 0; }
@media print { .js .deal { opacity: 1 !important; } }

/* ------------------------------------------------------------------ 4. the cost of trust: the portrait, torn, with the question between the halves */
.turn { position: relative; height: min(100svh, 900px); min-height: 520px; overflow: clip; background: var(--ink); --sep: 27vw; }
.half-l { transform: translateX(calc(-1 * var(--sep))) rotate(-2.2deg); }
.half-r { transform: translateX(var(--sep)) rotate(2.2deg); }
.half { transition: transform 1.2s var(--ease); }
/* closed until it comes into view, then it tears once */
.turn.shut .half { transform: none; }
.half { position: absolute; inset: 0; will-change: transform; filter: drop-shadow(0 0 22px rgba(0, 0, 0, 0.7)); }
.half canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.half-cap {
  position: absolute; bottom: calc(var(--gut) + 4px);
  font-family: var(--mono); font-size: clamp(10px, 0.8vw, 12px); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); max-width: 18ch; font-size: clamp(11px, 0.8vw, 12px);
  text-shadow: 0 0 4px #141311, 0 1px 12px #141311;
}
.turn-copy {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(36rem, calc(100% - 2 * var(--gut)));
  text-align: center; color: var(--cream);
}
.turn-copy .seals { justify-content: center; }
.turn-copy h2 { font-weight: 400; font-style: italic; font-size: clamp(26px, min(3.1vw, 7vh), 50px); line-height: 1.1; margin: 0.5em 0 0.5em; text-wrap: balance; }
.turn-copy p { margin: 0 auto; max-width: 46ch; font-size: clamp(15.5px, 1.1vw, 18px); color: rgba(239, 230, 208, 0.92); text-shadow: 0 0 4px #141311, 0 1px 14px #141311, 0 0 24px #141311; }

/* ------------------------------------------------------------------ rail: stepped progress, a square per beat */
.rail {
  --sq: 7px; --sq-gap: 4px;
  position: fixed; right: 11px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 9px; z-index: 20;
  padding: 6px 3px; background: rgba(14, 10, 7, 0.5); border-radius: 2px;
}
.rail button { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--sq-gap); padding: 3px; }
.rail i {
  width: var(--sq); height: var(--sq); display: block;
  border: 1px solid rgba(239, 227, 200, 0.55); background: rgba(14, 10, 7, 0.55);
  box-shadow: 0 0 0 1px rgba(8, 6, 4, 0.35);
}
/* on: no easing, the square snaps full, overshoots and settles in three hard frames */
.rail i.on { background: var(--seal-bright); border-color: var(--seal-bright); animation: tick 0.24s steps(3, end); }
.rail i.cur { box-shadow: 0 0 0 2px rgba(228, 85, 62, 0.3), 0 0 9px rgba(228, 85, 62, 0.75); }
@keyframes tick { from { transform: scale(1.9); background: #FFE7CF; border-color: #FFE7CF; } to { transform: scale(1); } }
.rail-label {
  position: absolute; right: calc(100% + 4px); top: 50%; transform: translate(6px, -50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
  color: var(--cream); text-shadow: 0 0 3px #0E0A07, 0 1px 8px #0E0A07;
  opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none;
}
.rail button:hover .rail-label, .rail button:focus-visible .rail-label { opacity: 1; transform: translate(0, -50%); }

/* ------------------------------------------------------------------ 5. the brief, on the table */
.finale-wrap { position: relative; overflow-x: clip; } /* cards dealt in from the side must not widen the page */
.finale {
  color: var(--cream);
  padding-block: clamp(84px, 8.5vw, 116px) 40px;
  padding-inline: var(--gut);
  display: grid; justify-items: center; gap: clamp(48px, 6.5vw, 88px);
}
.project {
  width: min(44rem, 100%); display: grid; justify-items: center; text-align: center;
  padding: clamp(22px, 3vw, 36px);
  background: var(--card) url("assets/paper-dark.386629cef5.jpg") center / cover; background-blend-mode: multiply;
  border: 1px solid var(--brass-line);
  box-shadow: 0 0 0 5px rgba(17, 12, 8, 0.9), 0 0 0 6px rgba(176, 141, 87, 0.25), 0 30px 70px rgba(0, 0, 0, 0.7);
}
.spec { margin: 22px 0 0; width: 100%; display: grid; gap: 0; border-top: 1px solid var(--brass-line); }
.spec div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1em; padding: 11px 0; border-bottom: 1px solid rgba(176, 141, 87, 0.22); text-align: left; }
.spec dt { font-family: var(--fell-sc); letter-spacing: 0.14em; font-size: 14px; color: var(--brass); padding-top: 2px; }
.spec dd { margin: 0; font-size: clamp(16px, 1.2vw, 19px); color: rgba(239, 227, 200, 0.92); }
.spec dd.contacts { display: grid; gap: 6px; font-size: clamp(15px, 1.1vw, 17px); }
.spec dd.contacts b { font-weight: 400; color: var(--cream); margin-right: 0.5em; font-family: var(--fell-sc); letter-spacing: 0.08em; }
.spec dd.contacts a { color: inherit; text-decoration: underline; text-decoration-color: var(--brass-line); text-underline-offset: 3px; transition: color 0.25s var(--ease); }
.spec dd.contacts a:hover { color: var(--seal-bright); }
h2.label { font-weight: 400; }
.spec dd.num { font-variant-numeric: tabular-nums; }

/* Comps: the shows Flying Money sits beside, dealt onto the table like the files */
.comps { width: min(72rem, 100%); display: grid; justify-items: center; gap: clamp(22px, 3vw, 34px); }
.comps-head, .dossier-head { display: grid; justify-items: center; gap: 12px; text-align: center; }
.comps-head h2, .dossier-head h2 {
  margin: 0; font-weight: 400; font-size: clamp(30px, 3.2vw, 50px); line-height: 1.06;
  text-wrap: balance; color: var(--cream); text-shadow: 0 0 4px #0E0A07, 0 1px 16px #0E0A07, 0 0 30px #0E0A07;
}
.comp-deck { display: flex; justify-content: center; align-items: flex-start; gap: clamp(18px, 3vw, 44px); width: 100%; }
.comp {
  width: clamp(200px, min(22vw, calc((100svh - 380px) * 0.62)), 300px);
  padding: 12px 12px 16px;
  background: #CFBF9C; color: #1C140C;
  box-shadow: inset 0 0 40px rgba(70, 45, 15, 0.35), 0 1px 0 rgba(0, 0, 0, 0.4),
    0 calc(26px + 34px * var(--lift, 0)) calc(50px + 46px * var(--lift, 0)) rgba(0, 0, 0, calc(0.7 - 0.26 * var(--lift, 0)));
  border: 1px solid rgba(0, 0, 0, 0.35);
  transform: rotate(var(--tilt, 0deg));
}
.comp:nth-child(1) { --tilt: -2.4deg; }
.comp:nth-child(2) { --tilt: 1.5deg; margin-top: 22px; }
.comp:nth-child(3) { --tilt: -1deg; margin-top: 8px; }
.comp-art { position: relative; aspect-ratio: 2 / 3; background: #1C140C; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45); }
.comp-art img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.92) contrast(1.03); }
.comp-art::after { /* lamp falloff on the print */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 95% 85% at 50% 42%, transparent 55%, rgba(30, 18, 6, 0.38) 100%);
}
.comp-where { margin: 10px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #6A150B; }
.comp h3 { font-weight: 400; font-size: clamp(21px, 1.8vw, 28px); margin: 3px 0 6px; line-height: 1.08; }
.comp p:last-child { margin: 0; font-size: clamp(13.5px, 0.95vw, 15.5px); line-height: 1.42; }
.comps-for {
  margin: 4px 0 0; max-width: 44ch; padding: 14px 28px; text-align: center; text-wrap: balance;
  font-style: italic; font-size: clamp(16px, 1.2vw, 19px); color: var(--cream);
  background: radial-gradient(closest-side, rgba(9, 6, 3, 0.85), rgba(9, 6, 3, 0.6) 65%, rgba(9, 6, 3, 0) 100%);
}

/* The brief: the facts laid on the table under the lamp */
.dossier { width: min(64rem, 100%); display: grid; justify-items: center; gap: clamp(20px, 2.6vw, 30px); }
.dossier-head { padding: 10px 28px 16px; background: radial-gradient(closest-side, rgba(9, 6, 3, 0.86), rgba(9, 6, 3, 0.62) 70%, rgba(9, 6, 3, 0) 100%); }
.dossier-dek { margin: 0; max-width: 50ch; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.45; color: var(--cream); text-wrap: balance; text-shadow: 0 1px 10px #0E0A07; }
.paper-card {
  background: #CFBF9C; color: #1C140C; border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 40px rgba(70, 45, 15, 0.35), 0 1px 0 rgba(0, 0, 0, 0.4),
    0 calc(22px + 32px * var(--lift, 0)) calc(44px + 44px * var(--lift, 0)) rgba(0, 0, 0, calc(0.65 - 0.24 * var(--lift, 0)));
}
.dark-card {
  background: var(--card) url("assets/paper-dark.386629cef5.jpg") center / cover; background-blend-mode: multiply;
  border: 1px solid var(--brass-line);
  box-shadow: 0 0 0 5px rgba(17, 12, 8, 0.9), 0 0 0 6px rgba(176, 141, 87, 0.25), 0 30px 70px rgba(0, 0, 0, 0.7);
}
/* Why now: three clippings */
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); width: 100%; }
.clip { padding: 18px 18px 16px; text-align: left; transform: rotate(var(--tilt, 0deg)); }
.clip:nth-child(1) { --tilt: -1.2deg; } .clip:nth-child(2) { --tilt: 0.9deg; } .clip:nth-child(3) { --tilt: -0.6deg; }
.clip-where { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #6A150B; }
.clip-n { margin: 8px 0; font-family: var(--caps); font-weight: 600; font-size: clamp(30px, 3vw, 46px); line-height: 1; color: #8E1D10; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clip-n span { font-family: var(--fell); font-weight: 400; font-style: italic; font-size: 0.56em; }
.clip-text { margin: 0; font-size: clamp(15px, 1.05vw, 17px); line-height: 1.42; }
.clip-src { margin: 12px 0 0; padding-top: 8px; border-top: 1px dashed rgba(28, 20, 12, 0.35); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: #4A3A26; }
.pull { margin: 6px 0 0; max-width: 42rem; padding: 14px 32px; text-align: center; background: radial-gradient(closest-side, rgba(9, 6, 3, 0.86), rgba(9, 6, 3, 0.62) 70%, rgba(9, 6, 3, 0) 100%); }
.pull p { margin: 0; font-style: italic; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.35; color: var(--cream); text-wrap: balance; }
.pull footer { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #D6B882; }
/* Season one: the eight hours on one index card */
.episodes {
  list-style: none; margin: 0; width: 100%; padding: clamp(14px, 2.2vw, 28px) clamp(18px, 2.6vw, 34px);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: clamp(20px, 3vw, 44px);
}
.episodes li { display: grid; grid-template-columns: clamp(96px, 10.5vw, 150px) 1.7em 1fr; column-gap: 0.85em; align-items: start; padding: 13px 0; border-bottom: 1px solid rgba(176, 141, 87, 0.22); text-align: left; }
/* a frame to each hour, kept like a small print */
.episodes img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 3px solid #E4D8BC; box-shadow: 0 6px 14px rgba(6, 4, 2, 0.55); transition: transform 0.6s var(--ease); }
.episodes li:hover img { transform: scale(1.05) rotate(-0.8deg); }
.episodes li:nth-child(4), .episodes li:nth-child(8) { border-bottom: 0; }
.episodes b { font-family: var(--caps); font-weight: 600; font-size: 19px; line-height: 1.2; color: var(--seal-bright); font-variant-numeric: tabular-nums; }
.episodes p { margin: 0; font-size: clamp(15px, 1.05vw, 17px); line-height: 1.42; color: rgba(239, 227, 200, 0.92); }
/* Season two: one wide frame with its line under it */
.s2 { margin: 0; width: min(46rem, 100%); padding: clamp(8px, 1vw, 12px); }
.s2 img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.s2 figcaption { padding: 14px clamp(6px, 1.4vw, 18px) 8px; text-align: center; font-style: italic; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.45; color: var(--cream); text-wrap: balance; }
.s2 span { display: block; margin-bottom: 6px; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #F2735A; }
/* Where it shoots: the one map, a still sheet dealt onto the table */
.atlas {
  --tilt: -0.5deg; margin: 0; width: min(58rem, 100%); transform: rotate(var(--tilt));
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5), 0 calc(30px + 36px * var(--lift, 0)) calc(70px + 50px * var(--lift, 0)) rgba(6, 4, 2, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.55);
}
.atlas img { display: block; width: 100%; height: auto; }
/* The team: personnel files */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 17rem)); justify-content: center; gap: clamp(16px, 2.4vw, 32px); width: 100%; }
.person { padding: 12px 12px 16px; text-align: left; transform: rotate(var(--tilt, 0deg)); }
.person:nth-child(1) { --tilt: -1.4deg; } .person:nth-child(2) { --tilt: 0.8deg; margin-top: 14px; } .person:nth-child(3) { --tilt: -0.7deg; margin-top: 4px; }
.person-photo { aspect-ratio: 440 / 528; overflow: hidden; background: #C9B893; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45); }
.person-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.person-role { margin: 10px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #6A150B; }
.person h3 { margin: 3px 0 8px; font-weight: 400; font-size: clamp(21px, 1.8vw, 27px); line-height: 1.08; }
.credits { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: clamp(13.5px, 0.95vw, 15px); line-height: 1.38; }
.credits li { position: relative; padding-left: 0.95em; }
.credits li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 0.36em; height: 0.36em; background: #8E1D10; }
/* Closing: the handout beside the way back to JUO */
.closing { display: grid; grid-template-columns: auto minmax(0, 30rem); align-items: center; justify-content: center; gap: clamp(28px, 5vw, 72px); width: min(64rem, 100%); }
.closing .note { width: min(360px, 84vw, calc((100svh - 64px) * 0.619)); }
.closing .note-hint { max-width: 32ch; text-align: center; line-height: 1.6; }

.note-stage { display: grid; justify-items: center; gap: 14px; perspective: 1800px; width: 100%; }
.note {
  position: relative;
  width: min(560px, 92vw, calc((100svh - 64px) * 0.619));
  aspect-ratio: 1748 / 2824;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  cursor: pointer;
  container-type: inline-size;
  --rx: 0deg; --ry: 0deg;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.note-card { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(.3, .7, .2, 1); }
.note.flipped .note-card { transform: rotateY(180deg); }
.note-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.75), 0 6px 14px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.note-back { background: #CDBE9C url("assets/noteframe.270ef1b43a.jpg") center / 100% 100% no-repeat; }
.note-back::after { /* lamp falloff on the paper */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 38%, transparent 45%, rgba(30, 18, 6, 0.38) 100%);
}
.note-front { background: #222 url("assets/note-front.45a8c9a332.jpg") center / 100% 100% no-repeat; transform: rotateY(180deg); }
.sheen {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at var(--sx, 30%) var(--sy, 20%), rgba(255, 236, 200, 0.3), transparent 45%);
  mix-blend-mode: soft-light;
}
.note-in {
  position: absolute; inset: 9.5% 17% 8% 17%; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  color: #3A2E20;
}
.note-title {
  font-family: var(--caps); font-weight: 600; font-size: 5cqw; letter-spacing: 0.13em; text-transform: uppercase; white-space: nowrap;
  padding: 0.35em 0.9em 0.3em; border: 1px solid rgba(58, 46, 32, 0.7); outline: 1px solid rgba(58, 46, 32, 0.4); outline-offset: 3px;
  color: #4A2A18;
}
.note-callig { width: 14.5cqw; height: auto; margin: 3.6cqw 0 3cqw; filter: drop-shadow(0 0 0.5px rgba(120, 40, 10, 0.4)); }
.note-sec { display: grid; justify-items: center; }
.seals-note { font-size: 3cqw; gap: 1.3cqw; }
.seals-note i { background: rgba(250, 244, 228, 0.9); border: 1px solid #3A2E20; }
.note-label { margin: 0.35em 0 0; font-family: var(--fell-sc); font-size: 3.7cqw; letter-spacing: 0.06em; color: #3E2A18; }
.note-log { margin: 2.6cqw 0 4cqw; font-size: 3.05cqw; line-height: 1.4; text-align: left; }
.note-contacts { display: flex; justify-content: space-around; width: 100%; gap: 4cqw; margin-top: 2.4cqw; font-size: 2.8cqw; line-height: 1.3; }
.note-contacts p { margin: 0; }
.note-contacts b { display: block; font-weight: 400; font-size: 3.9cqw; }
.note-mark { margin-top: auto; line-height: 0; }
.note-mark img { height: 6.6cqw; width: auto; display: block; }
.note-hint { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(239, 227, 200, 0.85); text-shadow: 0 1px 8px #0E0A07; }
.signoff {
  display: grid; justify-items: center; gap: 14px; text-align: center; max-width: 38rem;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 5vw, 64px);
  /* a pool of shadow on the table so the sign-off reads over the lamp light */
  background: radial-gradient(closest-side, rgba(9, 6, 3, 0.9), rgba(9, 6, 3, 0.72) 62%, rgba(9, 6, 3, 0) 100%);
}
.signoff-mark { line-height: 0; filter: drop-shadow(0 1px 10px rgba(8, 6, 4, 0.75)); }
.signoff-mark img { height: clamp(40px, 3.6vw, 52px); width: auto; display: block; }
.signoff > p { margin: 0; font-size: clamp(16px, 1.15vw, 18px); color: var(--cream); text-shadow: 0 1px 10px #0E0A07; text-wrap: balance; }
.signoff-link {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--cream); padding: 11px 16px; border: 1px solid var(--brass); background: rgba(14, 10, 7, 0.8);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
}
@media (hover: hover) { .signoff-link:hover { background: var(--seal); border-color: var(--seal); color: #FBEFDC; } }
.signoff-link:active { transform: translateY(1px) scale(0.98); }
.signoff > p.signoff-line { margin-bottom: 12px; font-style: italic; font-size: clamp(21px, 1.8vw, 28px); line-height: 1.28; }
.signoff .colophon { margin-top: 18px; }
.colophon { text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--cream); text-shadow: 0 1px 8px #0E0A07; }
.colophon p { margin: 4px 0; }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 760px) {
  .hero-seal { right: 6%; top: 34%; }
  .rail { --sq: 5px; --sq-gap: 3px; right: 2px; gap: 7px; padding: 4px 2px; }
  .rail button { padding: 0; }
  .rail-label { display: none; }
  .half-cap { max-width: 14ch; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .comp-deck { flex-direction: column; align-items: center; gap: 36px; }
  .clips, .people { grid-template-columns: minmax(0, 24rem); justify-content: center; }
  .episodes { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .episodes li { grid-template-columns: 104px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; }
  .episodes li img { grid-row: 1 / span 2; margin-top: 3px; }
  .episodes li b, .episodes li p { grid-column: 2; }
  .episodes li:nth-child(4) { border-bottom: 1px solid rgba(176, 141, 87, 0.22); }
  .person { display: grid; grid-template-columns: 104px 1fr; column-gap: 12px; align-items: start; }
  .person:nth-child(n) { margin-top: 0; }
  .person-photo { grid-column: 1; grid-row: 1 / span 3; }
  .person > :not(.person-photo) { grid-column: 2; }
  .person-role { margin-top: 0; }
  .closing { grid-template-columns: 1fr; justify-items: center; }
  .comp, .comp:nth-child(n) { width: min(92vw, 420px); margin-top: 0; display: grid; grid-template-columns: 40% 1fr; column-gap: 12px; align-items: start; }
  .comp-art { grid-column: 1; grid-row: 1 / span 3; }
  .comp > :not(.comp-art) { grid-column: 2; }
  .comp-where { margin-top: 0; }
  .comp h3 { margin-top: 2px; }
  .atlas { --tilt: 0deg; }
}
@media (max-width: 760px) and (orientation: portrait) {
  .layer-den { background-image: url("assets/den-port.e3625e29d3.jpg"); }
  .hero-kicker { letter-spacing: 0.08em; }
}
/* Upright: the torn halves sit behind the words */
@media (max-aspect-ratio: 21 / 20) {
  .turn { --sep: 34vw; }
  .turn:not(.shut) .half { opacity: 0.28; }
  .half { transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); }
}
/* Upright screens work the same way: the frame fills the screen and the words scroll over it in a card. */
@media (max-aspect-ratio: 21 / 20) {
  .card { width: calc(100% - 14px); }
  .step { min-height: 92svh; }
  .shot-web { background-image: url("assets/den-port.e3625e29d3.jpg"); }
  .web { left: var(--gut); right: calc(var(--gut) + 10px); width: auto; top: clamp(48px, 9svh, 84px); transform: none; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .hero-title { font-size: clamp(44px, 8vw, 110px); }
  .note { width: min(420px, 92vw); }
  .card { width: min(30rem, 46vw); padding: 16px 20px 18px; }
  .web { width: 42vw; right: var(--gut); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cue::after, .puff, .lamp, .rail i.on { animation: none; }
  .note, .note-card, .half, .turn-copy, .web-lines, .tab, .episodes img, .shot { transition: none; }
}

/* ================================================================== v4: the pitch bible additions */
:root { --deep-red: #961A12; --yuji: "Yuji Boku", var(--kai); }

/* Front: the key art, title over its dark left third */
.hero { background: #050403; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; display: block; }
.hero-scrim {
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.55) 0%, rgba(5, 4, 3, 0.2) 40%, rgba(5, 4, 3, 0) 60%),
    linear-gradient(180deg, rgba(5, 4, 3, 0.5) 0%, rgba(5, 4, 3, 0) 18%, rgba(5, 4, 3, 0) 50%, rgba(5, 4, 3, 0.75) 84%, rgba(5, 4, 3, 0.9) 100%);
}
.hero-lockup { display: flex; align-items: flex-end; gap: clamp(10px, 1.6vw, 26px); }
.hero-brush { width: auto; height: clamp(96px, 15vw, 250px); display: block; filter: drop-shadow(0 0 1px rgba(239, 227, 200, 0.25)); }
@media (max-aspect-ratio: 21 / 20) { .hero-art { object-position: 66% 30%; } }

/* At a glance: logline and four facts on the table, straight after the front */
.glance {
  background: var(--den); border-top: 1px solid var(--brass-line);
  padding: clamp(40px, 6vw, 84px) var(--gut);
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px);
  align-items: start; max-width: 1280px; margin: 0 auto;
}
.glance-log { margin: 0; font-style: italic; font-size: clamp(20px, 1.9vw, 29px); line-height: 1.38; color: var(--cream); text-wrap: pretty; max-width: 38ch; }
.glance-facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--brass-line); }
.glance-facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1em; padding: 10px 0; border-bottom: 1px solid rgba(176, 141, 87, 0.22); }
.glance-facts dt { font-family: var(--fell-sc); letter-spacing: 0.14em; font-size: 14px; color: var(--gold); padding-top: 3px; }
.glance-facts dd { margin: 0; font-size: clamp(16px, 1.2vw, 19px); font-variant-numeric: tabular-nums; }

/* 一諾千金 in the brush face, inside its card */
.beat-h .yinuo { display: block; margin-bottom: 0.15em; font-family: var(--yuji); font-style: normal; font-size: 1.9em; line-height: 1.05; letter-spacing: 0.08em; color: #C2301E; }

/* Follow the money: a broker's ledger, five ruled lines */
.flow { width: min(52rem, 100%); }
.ledger { list-style: none; margin: 0; width: 100%; padding: clamp(10px, 1.6vw, 20px) clamp(18px, 2.6vw, 34px); }
.ledger li {
  display: grid; grid-template-columns: 1.6em 8.5rem 1fr 4.2rem; column-gap: 1em; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid rgba(176, 141, 87, 0.22); text-align: left;
}
.ledger li:last-child { border-bottom: 0; }
.ledger b { font-family: var(--caps); font-weight: 600; font-size: 19px; color: var(--seal-bright); font-variant-numeric: tabular-nums; }
.ledger .where { font-family: var(--fell-sc); letter-spacing: 0.1em; font-size: 15px; color: var(--gold); }
.ledger p { margin: 0; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.45; color: var(--cream); }
.ledger .cur { justify-self: end; font-family: var(--mono); font-size: 15px; color: var(--cream-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger-foot { margin: 0; max-width: 40ch; padding: 10px 28px; text-align: center; font-style: italic; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.35; text-wrap: balance;
  background: radial-gradient(closest-side, rgba(9, 6, 3, 0.86), rgba(9, 6, 3, 0.62) 70%, rgba(9, 6, 3, 0) 100%); }

/* Four clippings: two by two */
.real .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; }
.clip:nth-child(4) { --tilt: 1.1deg; }

/* The season index sits close under its reel */
.finale-tight { padding-top: clamp(56px, 6vw, 84px); }

/* Why this story: a photograph taped to the table beside the statement */
.statement { width: min(64rem, 100%); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.print { --tilt: -2deg; position: relative; margin: 24px 0 0; padding: 12px 12px 0; background: var(--paper); transform: rotate(var(--tilt));
  box-shadow: inset 0 0 40px rgba(70, 45, 15, 0.3), 0 1px 0 rgba(0, 0, 0, 0.4), 0 calc(24px + 30px * var(--lift, 0)) calc(50px + 40px * var(--lift, 0)) rgba(0, 0, 0, 0.7); }
.print .tape { --sw: 260px; }
.print img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(0.15); }
.print figcaption { padding: 10px 2px 12px; font-style: italic; font-size: 15px; color: #4A3A26; text-align: center; }
.statement-copy { padding: clamp(22px, 3vw, 36px); display: grid; gap: 0.9em;
  background: var(--card) url("assets/paper-dark.386629cef5.jpg") center / cover; background-blend-mode: multiply; border: 1px solid var(--brass-line);
  box-shadow: 0 0 0 5px rgba(17, 12, 8, 0.9), 0 0 0 6px rgba(176, 141, 87, 0.25), 0 30px 70px rgba(0, 0, 0, 0.7); }
.statement-copy h2 { margin: 0.2em 0 0; font-weight: 400; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; }
.statement-copy p { margin: 0; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; max-width: 60ch; text-wrap: pretty; }
.statement-copy .lede { font-style: italic; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.35; }
.statement-copy .sig { margin-top: 0.4em; font-family: var(--fell-sc); letter-spacing: 0.1em; font-size: 18px; color: var(--cream); }
.statement-copy .sig span { margin-left: 0.6em; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* What each country brings */
.countries { list-style: none; margin: 0; width: min(46rem, 100%); padding: clamp(10px, 1.4vw, 18px) clamp(18px, 2.6vw, 30px); }
.countries li { display: grid; grid-template-columns: 10rem 1fr; gap: 1em; padding: 11px 0; border-bottom: 1px solid rgba(176, 141, 87, 0.22); text-align: left; align-items: baseline; }
.countries li:last-child { border-bottom: 0; }
.countries b { font-weight: 400; font-family: var(--fell-sc); letter-spacing: 0.08em; font-size: clamp(16px, 1.2vw, 19px); }
.countries span { font-size: clamp(15.5px, 1.1vw, 18px); color: rgba(239, 227, 200, 0.92); }

/* Two people on the team */
.team .people { grid-template-columns: repeat(2, minmax(0, 17rem)); }

@media (max-width: 760px) {
  .glance { grid-template-columns: 1fr; }
  .glance-facts div, .countries li { grid-template-columns: 1fr; gap: 2px; }
  .ledger li { grid-template-columns: 1.6em 1fr auto; row-gap: 4px; }
  .ledger .where { grid-column: 2; }
  .ledger .cur { grid-column: 3; grid-row: 1; }
  .ledger p { grid-column: 2 / span 2; }
  .real .clips { grid-template-columns: minmax(0, 24rem); }
  .statement { grid-template-columns: 1fr; }
  .print { max-width: 24rem; justify-self: center; }
  .team .people { grid-template-columns: minmax(0, 24rem); }
}
@media (prefers-reduced-motion: reduce) { .print { transition: none; } }

/* ================================================================== v4.1: every title is a page of its own */
/* Chapter titles open over the chapter's first frame, a full screen each */
.chapter { padding-top: 0; }
.title-step { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 var(--gut) 13svh; }
.title-step::before { /* a pool of shadow behind the title so it reads on any frame */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 75%; pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 18% 100%, rgba(8, 6, 4, 0.82), rgba(8, 6, 4, 0.45) 55%, rgba(8, 6, 4, 0) 100%);
}
.title-step .chapter-head { position: relative; margin: 0; width: min(1180px, 100%); }
.title-step .chapter-head h2, .title-step .chapter-dek, .title-step .lockup i { text-shadow: 0 1px 3px rgba(6, 4, 2, 0.9), 0 2px 24px rgba(6, 4, 2, 0.8); }
.title-step .chapter-dek { color: var(--cream); }
.title-step .chapter-head h2 { font-size: clamp(48px, 7vw, 112px); }
.title-step .chapter-head .word { font-size: clamp(60px, 10vw, 168px); }

/* At a glance: its own page over the torn note */
.glance { position: relative; display: block; max-width: none; margin: 0; padding: 0; border-top: 0; min-height: 100svh; overflow: clip; background: #060403; }
.glance-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.glance::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 4, 3, 0.75) 0%, rgba(6, 4, 3, 0.35) 55%, rgba(6, 4, 3, 0.1) 100%); }
.glance-in { position: relative; z-index: 1; min-height: 100svh; display: flex; align-items: center; padding: 12svh var(--gut); }
.glance-card { width: min(64rem, 100%); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(22px, 3.2vw, 44px); align-items: start; }
.glance-label { grid-column: 1 / -1; margin: 0; font-size: clamp(11.5px, 0.95vw, 14px); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }

/* Casting ideas: one row per role, the first choice larger */
.casting { width: min(72rem, 100%); gap: clamp(40px, 5vw, 64px); }
.role { width: 100%; display: grid; gap: 18px; }
.role-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4em 1em; padding: 8px 20px 10px; justify-self: start;
  background: radial-gradient(closest-side, rgba(9, 6, 3, 0.86), rgba(9, 6, 3, 0.6) 70%, rgba(9, 6, 3, 0) 100%); }
.role-head h3 { margin: 0; font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: 0.12em; text-transform: uppercase; text-shadow: 0 1px 12px #0E0A07; }
.role-head p { margin: 0; font-style: italic; font-size: clamp(16px, 1.2vw, 19px); color: var(--cream); text-shadow: 0 1px 10px #0E0A07; }
.role-picks { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(14px, 2vw, 26px); align-items: start; }
.role:last-child .role-picks { grid-template-columns: 1.1fr 1.1fr 1fr; }
.pick { padding: 10px 10px 14px; text-align: left; transform: rotate(var(--tilt, 0deg)); }
.pick:nth-child(1) { --tilt: -1deg; } .pick:nth-child(2) { --tilt: 0.8deg; margin-top: 12px; } .pick:nth-child(3) { --tilt: -0.5deg; margin-top: 4px; }
.pick-photo { aspect-ratio: 4 / 5; overflow: hidden; background: #2A1F14; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45); }
.pick-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.85); }
.pick-none { display: grid; place-items: center; padding: 20px; }
.pick-none span { font-style: italic; font-size: 16px; color: #CDBFA3; text-align: center; }
.pick > p, .pick h4 { margin: 0; }
.pick-tag { margin-top: 10px !important; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #8E1D10; }
.pick h4 { margin-top: 2px !important; font-weight: 400; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.1; }
.pick.lead h4 { font-size: clamp(23px, 2vw, 30px); }
.pick-meta { margin-top: 4px !important; font-size: clamp(13.5px, 0.95vw, 15px); line-height: 1.35; color: #4A3A26; }
.pick-acc { margin-top: 6px !important; font-size: clamp(13.5px, 0.95vw, 15px); line-height: 1.38; }
.pick-line { margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed rgba(28, 20, 12, 0.35); font-style: italic; font-size: clamp(14.5px, 1.05vw, 16.5px); line-height: 1.38; }

/* Chrome: contents and the project sheet, top right */
.chrome { position: fixed; z-index: 20; right: var(--gut); top: calc(var(--brand-top) + (var(--brand-h) - 32px) / 2); display: flex; gap: 8px; align-items: flex-start;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.chrome.away { opacity: 0; pointer-events: none; transform: translateY(-8px); }
.chrome .to-sheet { position: static; }
.toc { position: relative; }
.toc summary { list-style: none; height: 32px; display: inline-flex; align-items: center; gap: 0.5em; padding: 0 12px; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream);
  background: rgba(12, 9, 6, 0.85); border: 1px solid var(--brass-line); transition: background 0.3s var(--ease), border-color 0.3s var(--ease); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.toc[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.toc[open] summary { background: var(--seal); border-color: var(--seal); color: #FBEFDC; }
@media (hover: hover) { .toc summary:hover { background: var(--seal); border-color: var(--seal); color: #FBEFDC; } }
.toc nav { position: absolute; right: 0; top: calc(100% + 6px); min-width: 15rem; display: grid; padding: 6px 0;
  background: rgba(14, 10, 7, 0.97); border: 1px solid var(--brass-line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7); }
.toc nav a { padding: 9px 16px; font-size: 17px; color: var(--cream); text-decoration: none; }
.toc nav a:hover, .toc nav a:focus-visible { background: rgba(176, 141, 87, 0.16); color: #fff; outline-offset: -2px; }
.toc nav a.here { color: var(--seal-bright); }
.credits-small { max-width: 60ch; margin-inline: auto !important; font-size: 10px; line-height: 1.5; opacity: 0.8; }

@media (max-width: 760px) {
  .chrome .to-sheet { display: none; }
  .cue { display: none; }
  .glance-card { grid-template-columns: 1fr; }
  .role-picks, .role:last-child .role-picks { grid-template-columns: minmax(0, 24rem); justify-content: center; }
  .pick:nth-child(n) { margin-top: 0; }
  .pick:not(.lead) { display: grid; grid-template-columns: 104px 1fr; column-gap: 12px; align-items: start; }
  .pick:not(.lead) .pick-photo { grid-column: 1; grid-row: 1 / span 5; }
  .pick:not(.lead) > :not(.pick-photo) { grid-column: 2; }
  .pick:not(.lead) .pick-tag { margin-top: 0 !important; }
  .title-step { padding-bottom: 16svh; }
}
.glance-card { width: min(40rem, 100%); grid-template-columns: 1fr; gap: 22px; }
.glance-bg { object-position: 78% 50%; }
.glance::after { background: linear-gradient(90deg, rgba(6, 4, 3, 0.7) 0%, rgba(6, 4, 3, 0.3) 50%, rgba(6, 4, 3, 0) 75%); }
@media (max-aspect-ratio: 21 / 20) { .glance-bg { object-position: 72% 50%; } .glance::after { background: rgba(6, 4, 3, 0.45); } }
.glance-bg { object-position: 80% 40%; }
h2.glance-label { font-weight: 400; font-family: var(--fell); }
@media (pointer: coarse) {
  .toc summary, .to-sheet { height: 40px; padding: 0 14px; }
  .toc nav a { padding: 12px 18px; }
  .chrome { top: calc(var(--brand-top) + (var(--brand-h) - 40px) / 2); }
}
@media (max-width: 760px) {
  .glance-in { align-items: flex-end; padding: 18svh 10px 6svh; }
  .glance-card { padding: 20px; gap: 16px; background-color: rgba(17, 12, 8, 0.82); }
  .glance-log { font-size: 18px; }
  .glance-facts div { padding: 7px 0; }
}

/* ================================================================== v4.2: a simpler rail, and no hard picture edges */
/* Rail: one dot per chapter on a thin line that fills as you read. The label shows on hover or focus. */
.rail { --dot: 9px; right: 14px; gap: 18px; padding: 10px 6px; background: none; border-radius: 0; }
.rail .rail-track { position: absolute; left: 50%; top: 14px; bottom: 14px; width: 1px; transform: translateX(-50%); background: rgba(239, 227, 200, 0.22); }
.rail .rail-fill { position: absolute; inset: 0; width: 1px; height: auto; border: 0; box-shadow: none; display: block; background: var(--seal-bright); transform-origin: top; transform: scaleY(0); animation: none; }
.rail button { position: relative; padding: 4px; gap: 0; }
.rail-dot { display: block; width: var(--dot); height: var(--dot); border-radius: 50%; border: 1px solid rgba(239, 227, 200, 0.6); background: #0E0A07; transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s; }
.rail button.past .rail-dot { background: var(--seal-bright); border-color: var(--seal-bright); }
.rail button.on .rail-dot { background: var(--seal-bright); border-color: #FFE7CF; transform: scale(1.45); box-shadow: 0 0 10px rgba(228, 85, 62, 0.7); }
.rail button:hover .rail-dot, .rail button:focus-visible .rail-dot { transform: scale(1.45); }
.rail .rail-label { font-size: 11px; padding: 4px 8px; background: rgba(14, 10, 7, 0.9); border: 1px solid var(--brass-line); text-shadow: none; }
.readbar { display: none; position: fixed; z-index: 21; left: 0; right: 0; top: 0; height: 2px; background: rgba(239, 227, 200, 0.12); pointer-events: none; }
.readbar i { display: block; height: 100%; background: var(--seal-bright); transform-origin: left; transform: scaleX(0); }
@media (max-width: 760px) { .rail { display: none; } .readbar { display: block; } }

/* Soft edges: a picture never ends on a hard line. Each chapter fades in from the table colour and back out to it,
   and the table sections fade from that colour, so pinned frames dissolve into the next section as they leave. */
.chapter { position: relative; }
.chapter::before, .chapter::after { content: ""; position: absolute; left: 0; right: 0; height: 32svh; z-index: 1; pointer-events: none; }
.chapter::before { top: 0; background: linear-gradient(180deg, var(--den) 0%, rgba(14, 10, 7, 0.6) 40%, rgba(14, 10, 7, 0) 100%); }
.chapter::after { bottom: 0; background: linear-gradient(0deg, var(--den) 0%, rgba(14, 10, 7, 0.6) 40%, rgba(14, 10, 7, 0) 100%); }
.steps { z-index: 2; }
.finale-wrap::before, .finale-wrap::after { content: ""; position: absolute; left: 0; right: 0; height: 22svh; z-index: 0; pointer-events: none; }
.finale-wrap::before { top: 0; background: linear-gradient(180deg, var(--den), rgba(14, 10, 7, 0)); }
.finale-wrap::after { bottom: 0; background: linear-gradient(0deg, var(--den), rgba(14, 10, 7, 0)); }
.finale { position: relative; z-index: 1; }
.glance::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24svh; z-index: 1; pointer-events: none; background: linear-gradient(180deg, #050403, rgba(5, 4, 3, 0)); }
.glance-in { z-index: 2; }
.turn::before, .turn::after { content: ""; position: absolute; left: 0; right: 0; height: 18svh; z-index: 3; pointer-events: none; }
.turn::before { top: 0; background: linear-gradient(180deg, var(--den), rgba(14, 10, 7, 0)); }
.turn::after { bottom: 0; background: linear-gradient(0deg, var(--den), rgba(14, 10, 7, 0)); }
.turn-copy { z-index: 4; }
.print { padding-bottom: 12px; }
.glance::after { background: linear-gradient(0deg, var(--den) 0%, rgba(14, 10, 7, 0) 24%), linear-gradient(90deg, rgba(6, 4, 3, 0.7) 0%, rgba(6, 4, 3, 0.3) 50%, rgba(6, 4, 3, 0) 75%); }
@media (max-aspect-ratio: 21 / 20) { .glance::after { background: linear-gradient(0deg, var(--den) 0%, rgba(14, 10, 7, 0) 24%), rgba(6, 4, 3, 0.45); } }


/* ================================================================== v4.3: audit fixes (2026-10-09) */
/* Crops: each frame keeps its desktop crop; upright screens use a second value that keeps the subject in view */
.shot { object-position: var(--pos, 50% 50%); }
@media (max-aspect-ratio: 21 / 20) { .shot { object-position: var(--pos-up, var(--pos, 50% 50%)); } }

/* The pinned frame is as tall as the largest viewport, so it never stops short when a phone's toolbar collapses */
.reel-pin { height: 100lvh; }
.steps { margin-top: -100lvh; }

/* Phones: the last People card scrolls clear of the triangle before the chapter ends, so the photos are seen whole */
@media (max-aspect-ratio: 21 / 20) { #people .steps { padding-bottom: 140svh; } }

/* Desktop: where a card would sit over a face, it sits on the right */
@media (min-aspect-ratio: 21 / 20) { .step-r { justify-content: flex-end; } }

/* The cost of trust: the words never wait for the tear; the captions stay still above the fade */
.turn > .half-cap { position: absolute; z-index: 4; bottom: calc(18svh + 8px); }
.cap-l { left: var(--gut); }
.cap-r { right: var(--gut); text-align: right; }
@media (max-width: 760px) { .turn > .half-cap { max-width: 40vw; } }
@media (max-aspect-ratio: 21 / 20) {
  .turn { --sep: 22vw; }
  .turn:not(.shut) .half { opacity: 0.42; }
  .turn-copy { padding: 28px 14px; background: radial-gradient(closest-side, rgba(20, 19, 17, 0.92), rgba(20, 19, 17, 0.75) 60%, rgba(20, 19, 17, 0) 100%); }
}

/* Figures in a lining face, so budgets, years and phone numbers read cleanly */
.fig { font-family: var(--caps); font-weight: 600; font-size: 0.84em; letter-spacing: 0.03em; white-space: nowrap; }
.beat-wants span { display: inline-block; }

/* Casting: photos capped so a card fits a laptop screen; phones crop the lead photo landscape */
.pick-photo { max-height: 44svh; }
.pick-photo img { object-position: 50% 22%; }
@media (max-width: 760px) { .pick.lead .pick-photo { aspect-ratio: 4 / 3; } }

/* Smallest reading text brought up */
.pick-meta, .pick-acc, .comp p:last-child, .credits { font-size: clamp(15px, 1.05vw, 16px); }
.pick-line { font-size: clamp(15.5px, 1.1vw, 17px); }

/* At a glance fits one phone screen with the picture showing */
@media (max-width: 760px) {
  .glance-in { padding: 10svh 10px 5svh; }
  .glance-card { gap: 14px; }
  .glance-log { font-size: 17px; line-height: 1.36; }
  .glance-facts div { grid-template-columns: 5.2rem 1fr; gap: 0.75em; padding: 6px 0; }
  .glance-facts dt { padding-top: 2px; }
}

/* Phone cards centred now the old rail is gone */
@media (max-width: 760px) and (max-aspect-ratio: 21 / 20) { .card { width: 100%; } .web { right: var(--gut); } }

/* Hero: the falling notes end in full shadow, so there is no line where the next page begins */
.hero-scrim { background:
  linear-gradient(90deg, rgba(5, 4, 3, 0.55) 0%, rgba(5, 4, 3, 0.2) 40%, rgba(5, 4, 3, 0) 60%),
  linear-gradient(180deg, rgba(5, 4, 3, 0.5) 0%, rgba(5, 4, 3, 0) 18%, rgba(5, 4, 3, 0) 50%, rgba(5, 4, 3, 0.75) 84%, rgba(5, 4, 3, 1) 100%); }

/* Rail: the line meets each dot exactly; dots hold up on bright frames; touch screens use the top bar and Contents */
.rail .rail-track { top: 18.5px; bottom: 18.5px; background: rgba(239, 227, 200, 0.35); box-shadow: 0 0 0 1px rgba(14, 10, 7, 0.4); }
.rail-dot { border-color: rgba(239, 227, 200, 0.8); box-shadow: 0 0 0 2px rgba(14, 10, 7, 0.45); }
@media (hover: none) { .rail { display: none; } .readbar { display: block; } }

/* Contents: the current entry gets a dot as well as colour; a long list scrolls on short screens */
.toc nav { max-height: calc(100svh - 80px); overflow-y: auto; overscroll-behavior: contain; }
.toc nav a { position: relative; padding-left: 30px; }
.toc nav a.here::before { content: ""; position: absolute; left: 14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: currentColor; }

/* Keyboard: the top bar comes back whenever it holds focus; a jump target takes focus without a ring */
.chrome.away:focus-within { opacity: 1; pointer-events: auto; transform: none; }
[tabindex="-1"]:focus { outline: none; }

/* The closing note's paper loads only when the note is near */
.js .closing:not(.near) .note-face { background-image: none; }

/* Idle animations rest while a chapter covers the table */
.ground.covered .puff, .ground.covered .lamp, .cue.gone::after { animation-play-state: paused; }

/* Landscape phones */
@media (orientation: landscape) and (max-height: 560px) {
  .closing .note { width: min(320px, 40vw); }
  .hero { min-height: 0; }
  .glance-card { width: min(60rem, 100%); grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .chrome, .rail-dot, .rail-label, .toc summary::after { transition: none; }
  .chrome.away { transform: none; }
  .episodes li:hover img { transform: none; }
}

/* The closing asks for the conversation; JUO's site is the quiet second link */
.signoff-more { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-dim); text-underline-offset: 3px; }
@media (hover: hover) { .signoff-more:hover { color: var(--seal-bright); } }

/* ================================================================== v5: pacing and soft edges (2026-10-10) */
/* Jordan: no layer may end on a hard line, every shadow eases into the scroll; the whole site in about ten long scrolls;
   every character on one page. Fades use an eased curve (no kink where a linear ramp starts or stops). */
:root {
  --fade: rgba(14, 10, 7, 1) 0%, rgba(14, 10, 7, 0.91) 10%, rgba(14, 10, 7, 0.79) 20%, rgba(14, 10, 7, 0.64) 31%, rgba(14, 10, 7, 0.48) 43%,
          rgba(14, 10, 7, 0.33) 55%, rgba(14, 10, 7, 0.2) 67%, rgba(14, 10, 7, 0.1) 79%, rgba(14, 10, 7, 0.035) 90%, rgba(14, 10, 7, 0) 100%;
  --pool: rgba(8, 6, 4, 0.8) 0%, rgba(8, 6, 4, 0.74) 18%, rgba(8, 6, 4, 0.6) 36%, rgba(8, 6, 4, 0.42) 54%, rgba(8, 6, 4, 0.24) 70%,
          rgba(8, 6, 4, 0.1) 84%, rgba(8, 6, 4, 0.03) 94%, rgba(8, 6, 4, 0) 100%;
}
.chapter::before, .chapter::after { height: 42svh; }
.chapter::before { background: linear-gradient(180deg, var(--fade)); }
.chapter::after { background: linear-gradient(0deg, var(--fade)); }
.finale-wrap::before, .finale-wrap::after { height: 30svh; }
.finale-wrap::before { background: linear-gradient(180deg, var(--fade)); }
.finale-wrap::after { background: linear-gradient(0deg, var(--fade)); }
.turn::before, .turn::after { height: 26svh; }
.turn::before { background: linear-gradient(180deg, var(--fade)); }
.turn::after { background: linear-gradient(0deg, var(--fade)); }
.glance::before { height: 30svh; background: linear-gradient(180deg, var(--fade)); }
.glance::after { background: linear-gradient(0deg, var(--fade)) bottom / 100% 30% no-repeat, linear-gradient(90deg, rgba(6, 4, 3, 0.7) 0%, rgba(6, 4, 3, 0.3) 50%, rgba(6, 4, 3, 0) 75%); }
@media (max-aspect-ratio: 21 / 20) { .glance::after { background: linear-gradient(0deg, var(--fade)) bottom / 100% 30% no-repeat, rgba(6, 4, 3, 0.45); } }
.reel-pin::after { background: linear-gradient(180deg, rgba(14, 10, 7, 0.45) 0%, rgba(14, 10, 7, 0.2) 8%, rgba(14, 10, 7, 0) 18%, rgba(14, 10, 7, 0) 55%, rgba(14, 10, 7, 0.18) 75%, rgba(14, 10, 7, 0.45) 100%); }

/* The title's shadow is a pool that thins out on every side, so nothing is cut off as the page moves under it */
.title-step::before { left: -25%; right: auto; width: 115%; top: -10%; bottom: -45%; height: auto;
  background: radial-gradient(closest-side, var(--pool)); }

/* Reels: a title, then a card about every half screen; the frame still changes with each card */
.title-step { min-height: 74svh; padding-bottom: 8svh; }
.step { min-height: 54svh; }
.steps { padding-bottom: 18svh; }
.chapter { padding-bottom: 0; }
@media (max-aspect-ratio: 21 / 20) { .step { min-height: 66svh; } .title-step { min-height: 80svh; padding-bottom: 10svh; } }

/* The brief: tighter between sections */
.finale { padding-block: clamp(56px, 6vw, 84px) 32px; gap: clamp(40px, 4.5vw, 64px); }
.finale-tight { padding-top: clamp(40px, 4vw, 60px); }

/* ------------------------------------------------------------------ The people: everyone on one page */
.cast-page { gap: clamp(18px, 2.2vw, 30px); padding-top: clamp(40px, 5vw, 72px); }
.cast-head { padding-bottom: 6px; }
.who-grid { width: min(92rem, 100%); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 16px); align-items: stretch; }
.who { display: flex; flex-direction: column; overflow: hidden; }
.who-img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: var(--pos-up, var(--pos, 50% 50%));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0, 0, 0, 0.6) 86%, rgba(0, 0, 0, 0) 100%); mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0, 0, 0, 0.6) 86%, rgba(0, 0, 0, 0) 100%); }
.who-copy { display: grid; align-content: start; gap: 0; padding: 0 clamp(12px, 1vw, 16px) clamp(14px, 1.2vw, 18px); margin-top: -18px; position: relative; }
.who-copy > * { margin: 0; }
.who .beat-eyebrow { font-size: 10.5px; letter-spacing: 0.2em; }
.who .beat-name { margin-top: 0.2em !important; font-size: clamp(17px, 1.35vw, 22px); letter-spacing: 0.1em; }
.who .beat-line { margin-top: 0.3em !important; font-size: clamp(14.5px, 1.05vw, 16.5px); line-height: 1.25; }
.who .beat-p { margin-top: 0.6em !important; font-size: clamp(13px, 0.9vw, 14.5px); line-height: 1.42; }
.who .beat-wants { margin-top: 0.7em !important; padding-top: 0.55em; font-size: clamp(13px, 0.88vw, 14.5px); }
.who .beat-wants b { display: block; margin: 0 0 0.2em; font-size: 10px; }
.who .beat-wants i { display: none; }
.who .beat-wants span { display: block; }
.holds { width: min(72rem, 100%); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: center; margin-top: clamp(8px, 2vw, 28px); }
.holds-copy { padding: clamp(18px, 2vw, 28px); background: radial-gradient(closest-side, var(--pool)); }
.holds-copy > * { margin: 0; }
.holds-web { position: relative; }
.holds-web .web { position: relative; right: auto; top: auto; left: auto; transform: none; width: 100%; }

@media (max-width: 1180px) and (min-width: 761px) {
  .who-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(60rem, 100%); }
  .who-img { aspect-ratio: 16 / 10; }
}
/* Phones: the six side by side in a strip you swipe, so the page stays short */
@media (max-width: 760px) {
  .who-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; width: calc(100% + 2 * var(--gut)); margin-inline: calc(-1 * var(--gut));
    padding: 4px var(--gut) 16px; scroll-padding-inline: var(--gut); overscroll-behavior-x: contain; scrollbar-width: none; }
  .who-grid::-webkit-scrollbar { display: none; }
  .who { flex: 0 0 78%; scroll-snap-align: start; }
  .who-img { aspect-ratio: 16 / 11; }
  .holds { grid-template-columns: 1fr; }
  .cast-head::after { content: "Swipe for all six"; display: block; margin-top: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
}

/* ------------------------------------------------------------------ Casting: one column per role */
.casting { width: min(84rem, 100%); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; justify-items: stretch; gap: clamp(18px, 2.2vw, 32px); }
.casting > .dossier-head { grid-column: 1 / -1; justify-self: center; }
.role { gap: 12px; align-content: start; }
.role-head { flex-direction: column; gap: 4px; justify-self: stretch; }
.role-head h3 { font-size: clamp(22px, 2vw, 30px); }
.role-head p { font-size: clamp(14px, 1vw, 16px); }
.role-picks, .role:last-child .role-picks { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pick:nth-child(n) { margin-top: 0; }
.pick:first-child .pick-photo { aspect-ratio: 4 / 3.4; max-height: 32svh; }
.pick:not(:first-child) { display: grid; grid-template-columns: 84px 1fr; column-gap: 12px; align-items: start; padding: 8px 10px 10px; }
.pick:not(:first-child) .pick-photo { grid-column: 1; grid-row: 1 / span 6; aspect-ratio: 4 / 5; }
.pick:not(:first-child) > :not(.pick-photo) { grid-column: 2; }
.pick:not(:first-child) .pick-tag { margin-top: 0 !important; }
.pick:not(:first-child) h4 { font-size: clamp(18px, 1.35vw, 21px); }
.pick-meta, .pick-acc { font-size: clamp(13.5px, 0.95vw, 15px); }
.pick-line { font-size: clamp(14px, 1vw, 16px); }
@media (max-width: 1000px) {
  .casting { grid-template-columns: minmax(0, 30rem); justify-content: center; }
}

/* ------------------------------------------------------------------ Wide screens: pairs share a row */
.pair { width: 100%; display: grid; justify-items: center; gap: inherit; }
@media (min-width: 1100px) {
  .pair { width: min(88rem, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(28px, 3vw, 48px); }
  .pair-flow .ledger li { grid-template-columns: 1.6em 1fr auto; row-gap: 2px; }
  .pair-flow .ledger .where { grid-column: 2; }
  .pair-flow .ledger .cur { grid-column: 3; grid-row: 1; }
  .pair-flow .ledger p { grid-column: 2 / span 2; font-size: clamp(15px, 1.05vw, 17px); }
  .pair-flow .real .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .pair-sheet { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .pair-sheet .project { width: 100%; }
  .pair-sheet .spec div { padding: 8px 0; }
  .where { width: min(80rem, 100%); grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; }
  .where > .dossier-head { grid-column: 1 / -1; }
  .where .countries { width: 100%; }
  .where .countries li { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }
  .season .s2 { width: min(64rem, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 4px; }
  .season .s2 figcaption { text-align: left; padding: 8px clamp(12px, 1.6vw, 22px); }
}
.step { min-height: 48svh; }
@media (max-aspect-ratio: 21 / 20) { .step { min-height: 62svh; } }
/* Phones: casting is a strip too, one role per swipe */
@media (max-width: 760px) {
  .casting { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory;
    width: calc(100% + 2 * var(--gut)); margin-inline: calc(-1 * var(--gut)); padding: 4px var(--gut) 18px; scroll-padding-inline: var(--gut);
    overscroll-behavior-x: contain; scrollbar-width: none; justify-content: start; }
  .casting::-webkit-scrollbar { display: none; }

  .casting .role { scroll-snap-align: start; }
  .pick:first-child .pick-photo { max-height: 34svh; }
}
#casting .finale { gap: clamp(14px, 1.8vw, 24px); }
@media (max-width: 760px) {
  #casting .dossier-head::after { content: "Swipe for each role"; display: block; margin-top: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
}


/* ================================================================== v4.4: the trailer opens the page, then dissolves into the key art */
.hero-film { position: absolute; inset: 0; z-index: 4; background: #050403; transition: opacity 1.8s ease; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero.film-done .hero-film { opacity: 0; pointer-events: none; }
.hero-foot, .brand, .cue { transition: opacity 1.2s ease 1.1s; }
.hero.filming .hero-foot, .hero.filming .brand, .hero.filming .cue { opacity: 0; transition: opacity 0.3s ease; }
.js .hero:not(.filming):not(.film-done) .hero-film { display: none; }
.film-controls { position: absolute; right: var(--gut); bottom: calc(var(--gut) + 6px); display: flex; gap: 8px; z-index: 1; }
.film-controls button, .film-replay {
  height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream); background: rgba(12, 9, 6, 0.7); border: 1px solid var(--brass-line); cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.film-sound::before { content: ""; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.film-sound[aria-pressed="true"]::before { width: 7px; height: 9px; border: 0; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
@media (hover: hover) { .film-controls button:hover, .film-replay:hover { background: var(--seal); border-color: var(--seal); color: #FBEFDC; } }
.film-replay { margin-top: 18px; }
.film-replay::before { content: ""; width: 0; height: 0; border-left: 7px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.hero:not(.film-done) .film-replay { visibility: hidden; }
@media (pointer: coarse) { .film-controls button, .film-replay { height: 44px; } }

/* Phones held upright: the whole 16:9 film across the screen (nothing cropped, the end title included), centred in black */
@media (max-aspect-ratio: 1 / 1) {
  .hero-video { object-fit: contain; }
  .film-controls { left: var(--gut); right: var(--gut); justify-content: center; bottom: max(calc(var(--gut) + 6px), 7svh); }
}

/* v4.5 (2026-10-11): the seal is the show's logo mark and stands in for every 飛錢; page 2 is the first cover again */
.hero-mark { height: clamp(78px, 10.5vw, 172px); width: auto; filter: none; }
.lockup img.zh { height: clamp(52px, 5.6vw, 92px); width: auto; display: block; letter-spacing: 0; }
.mark-inline { height: 1.7em; width: auto; vertical-align: middle; margin-left: 0.35em; }
.note-callig { width: 13cqw; filter: none; }
.card-back::after { content: ""; width: clamp(34px, calc(var(--sw) * 0.36), 80px); aspect-ratio: 316 / 311; padding: 0; border: 0; border-radius: 0; background: url("assets/seal.dc6c72a547.png") center / contain no-repeat; box-shadow: none; filter: none; writing-mode: horizontal-tb; }
/* Page 2 (v4.6): the first cover, torn open by the scroll to show the Trust page underneath */
.glance-pin { position: relative; min-height: 100svh; overflow: clip; }
.glance-in { z-index: 2; }
.tear-half { position: absolute; inset: 0; z-index: 1; background: rgb(14, 10, 7); will-change: transform; filter: drop-shadow(0 0 22px rgba(0, 0, 0, 0.7)); }
.tear-half canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  --m: radial-gradient(ellipse 52% 80% at 72% 46%, #000 60%, transparent 100%); -webkit-mask-image: var(--m); mask-image: var(--m); }
@media (max-aspect-ratio: 21 / 20) { .tear-half canvas { --m: radial-gradient(ellipse 85% 60% at 50% 40%, #000 55%, transparent 100%); } }
.tear-half::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, var(--fade)) bottom / 100% 30% no-repeat; }
.tear-l::after { background: linear-gradient(0deg, var(--fade)) bottom / 100% 30% no-repeat, linear-gradient(90deg, rgba(6, 4, 3, 0.7) 0%, rgba(6, 4, 3, 0.3) 50%, rgba(6, 4, 3, 0) 75%); }
@media (max-aspect-ratio: 21 / 20) { .tear-l::after { background: linear-gradient(0deg, var(--fade)) bottom / 100% 30% no-repeat, rgba(6, 4, 3, 0.45); } }
.glance::after { display: none; }
.glance { background: rgb(14, 10, 7); }
/* while it tears: the page pins for one screen, and the Trust page sits under it */
.glance.tearing { height: 200svh; min-height: 0; margin-bottom: -100svh; z-index: 3; overflow: visible; background: transparent; }
.glance.tearing .glance-pin { position: sticky; top: 0; height: 100svh; }
.glance.tearing.open .glance-pin { visibility: hidden; }
#trust { position: relative; z-index: 1; }
