/* SAHIL FEAT. CLAUDE — The Cutting Room
   One red. Everything else is black, white and silver. */

@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora-italic.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --black: #0d0d0c;
  --black-2: #171715;
  --black-3: #22221f;
  --silver: #ebe7df;
  --silver-dim: #aaa69d;
  --paper: #efeae0;
  --paper-2: #e4dfd3;
  --ink: #131312;
  --graphite: #4a4843;
  --red-dark: #f0563d;   /* grease pencil on black: 5.6:1 */
  --red-paper: #ad2a1b;  /* grease pencil on paper: 5.6:1 */
  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
  --header-h: 56px;
  --ease-film: cubic-bezier(.7, 0, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--black);
  color: var(--silver);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, .98rem + .35vw, 1.25rem);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; font-weight: 600; }
cite { font-style: italic; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--silver); color: var(--black); padding: 10px 16px; font-family: var(--mono); font-size: .875rem;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red-dark); outline-offset: 3px; }
.theme-paper :focus-visible { outline-color: var(--red-paper); }
#main:focus { outline: none; }

/* ---------- Themes ---------- */
.theme-dark { --fg: var(--silver); --dim: var(--silver-dim); --red: var(--red-dark); --line: rgba(235,231,223,.2); --bg: var(--black); --surface: var(--black-2); background: var(--bg); color: var(--fg); position: relative; }
.theme-paper { --fg: var(--ink); --dim: var(--graphite); --red: var(--red-paper); --line: rgba(19,19,18,.22); --bg: var(--paper); --surface: #f7f3eb; background: var(--bg); color: var(--fg); position: relative; }
.theme-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--grain); opacity: .05;
}
.theme-dark > * { position: relative; }

.wrap { max-width: 1240px; margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter); }
.kicker {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.2em;
}
.section-title { font-size: clamp(2.6rem, 1.6rem + 5vw, 5.75rem); font-weight: 500; letter-spacing: -.02em; margin-bottom: .35em; }
.section-lede { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); max-width: 46ch; color: var(--fg); }
.hint { font-family: var(--mono); font-size: .8125rem; line-height: 1.6; color: var(--dim); }
.step-no {
  display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%;
  border: 1.5px solid var(--red); color: var(--red); font-family: var(--mono); font-size: .8rem; margin-right: .5em; flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em; border: 1.5px solid currentColor; border-radius: 0;
  font-family: var(--mono); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  background: transparent; transition: background-color .2s, color .2s, transform .2s var(--ease-film);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); border-color: var(--red); color: var(--black); }
.theme-paper .btn--red { color: #fff; }
.btn--red:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn--ghost { color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--big { min-height: 56px; font-size: .9375rem; padding: .8em 1.8em; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Tags ---------- */
.tag {
  display: inline-block; font-family: var(--mono); font-size: .6875rem; line-height: 1; letter-spacing: .1em; text-transform: uppercase;
  padding: .38em .6em .34em; border: 1px solid currentColor; vertical-align: .18em; margin-right: .45em; white-space: nowrap; font-style: normal;
}
.tag--evidence { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tag--interp { color: var(--fg); }
.tag--hypo { color: var(--fg); border-style: dashed; }
.tag--spec { color: var(--fg); border-style: dotted; border-width: 2px; }
.tag--meta { color: var(--dim); font-style: italic; }
.tag--fiction { color: var(--red); }

/* ---------- Entrance (≈1s, black & white) ---------- */
.entrance {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  animation: entrance-done 0s linear 1.05s forwards;
}
.entrance__gate { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; will-change: transform; }
.entrance__gate--top { top: 0; animation: gate-up .48s var(--ease-film) .55s forwards; }
.entrance__gate--bottom { bottom: 0; animation: gate-down .48s var(--ease-film) .55s forwards; }
.entrance::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #fff; transform: scaleX(0);
  animation: hairline .62s var(--ease-film) forwards;
}
.entrance__slate {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-100% - 14px)); margin: 0;
  display: flex; gap: 1.5em; font-family: var(--mono); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; white-space: nowrap;
  opacity: 0; animation: slate .62s steps(6, end) .12s forwards;
}
.entrance__slate b { font-weight: 400; }
@keyframes hairline { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes slate { 0% { opacity: 0; } 20% { opacity: 1; } 35% { opacity: .4; } 50%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes gate-up { to { transform: translateY(-101%); } }
@keyframes gate-down { to { transform: translateY(101%); } }
@keyframes entrance-done { to { visibility: hidden; } }
/* the red only arrives once the gate opens */
.site-header, main { animation: colour-in .5s ease-out .62s both; }
@keyframes colour-in { from { filter: grayscale(1); } to { filter: none; } }

/* internal "cut" between reels */
.cut-frame { position: fixed; inset: 0; z-index: 140; background: #000; opacity: 0; pointer-events: none; }
.cut-frame.is-cutting { animation: cut .34s var(--ease-film); }
@keyframes cut { 0% { opacity: 0; } 45%, 55% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; gap: clamp(8px, 2vw, 24px); padding: 0 var(--gutter);
  background: rgba(10,10,9,.94); color: var(--silver); border-bottom: 1px solid rgba(235,231,223,.12);
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .06em;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; min-height: 44px; }
.brand__mark { width: 28px; height: 28px; }
.brand__mark rect:first-child { fill: none; stroke: var(--silver); stroke-width: 1.5; }
.brand__holes rect { fill: var(--silver); }
.brand__circle { fill: none; stroke: var(--red-dark); stroke-width: 2; }
.brand__text { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; }
.brand__feat { font-style: italic; font-weight: 400; color: var(--red-dark); margin: 0 .25em; font-size: .9em; }
.timecode { margin: 0; color: var(--silver-dim); font-variant-numeric: tabular-nums; }
.nav { margin-left: auto; position: relative; }
.nav__toggle { display: none; }
.nav__list { display: flex; gap: clamp(10px, 1.6vw, 22px); list-style: none; margin: 0; padding: 0; }
.nav__list a { text-decoration: none; color: var(--silver); text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; display: inline-flex; min-height: 44px; align-items: center; }
.nav__list a span { color: var(--silver-dim); margin-right: .4em; }
.nav__list a:hover { color: var(--red-dark); }
.sound-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; background: none; border: 1px solid rgba(235,231,223,.25);
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--silver);
}
.sound-toggle__icon { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; }
.sound-toggle[aria-pressed="true"] { border-color: var(--red-dark); color: var(--red-dark); }
.sound-toggle[aria-pressed="true"] .sound-toggle__icon { background: var(--red-dark); animation: reel-spin 1.2s linear infinite; border-style: dashed; background: none; }
@keyframes reel-spin { to { transform: rotate(360deg); } }
.home-link { text-decoration: none; color: var(--black); background: var(--silver); padding: 0 12px; min-height: 36px; display: inline-flex; align-items: center; white-space: nowrap; font-size: .75rem; letter-spacing: .06em; flex: none; }
.home-link:hover { background: var(--red-dark); color: var(--black); }
.home-link--big { font-family: var(--mono); font-size: .9rem; min-height: 52px; padding: 0 22px; }

@media (max-width: 1180px) {
  .timecode { display: none; }
  .sound-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .sound-toggle { width: 44px; justify-content: center; padding: 0; }
}
@media (max-width: 980px) {
  .js .nav__toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: none; border: 1px solid rgba(235,231,223,.25);
    font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  }
  .nav__toggle[aria-expanded="true"] { border-color: var(--red-dark); color: var(--red-dark); }
  .nav__list {
    position: absolute; right: 0; top: calc(100% + 6px); flex-direction: column; gap: 0; min-width: 240px;
    background: #0a0a09; border: 1px solid rgba(235,231,223,.2); padding: 6px 0; display: none;
  }
  .nav__list.is-open { display: flex; }
  .nav__list a { padding: 0 18px; width: 100%; min-height: 48px; }
  .js .nav__list:not(.is-open) { display: none; }
}
@media (max-width: 520px) {
  .home-link__pre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .brand__text { display: none; }
  .site-header { gap: 8px; }
}

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: var(--header-h); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 40% 45%, transparent 40%, rgba(0,0,0,.72) 100%);
}
.grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; image-rendering: auto; }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(40px, 8vh, 96px) var(--gutter); }
.hero__title {
  font-size: clamp(3.4rem, 1rem + 12.5vw, 12.5rem); line-height: .86; font-weight: 600; letter-spacing: -.035em; text-transform: uppercase; margin: 0 0 .25em;
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .18em;
}
.hero__feat { font-style: italic; font-weight: 400; text-transform: lowercase; color: var(--red); font-size: .42em; letter-spacing: 0; transform: translateY(-.15em); }
.hero__lede { font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem); font-style: italic; max-width: 32ch; color: var(--fg); margin-bottom: 1.6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.hero__credits { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 28px; margin: 0; border-top: 1px solid var(--line); padding-top: 20px; max-width: 980px; }
.hero__credits dt { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.hero__credits dd { margin: .2em 0 0; font-size: .95rem; }

/* tagline scrubber */
.scrubber { margin: 0; max-width: 760px; }
.scrubber__caption { font-family: var(--mono); font-size: .75rem; line-height: 1.6; color: var(--dim); margin-bottom: 12px; }
.scrubber__screen {
  position: relative; background: #000; border: 1px solid var(--line); padding: 22px 26px 18px; min-height: 172px;
  box-shadow: inset 0 0 60px rgba(255,255,255,.04);
}
.scrubber__screen::before, .scrubber__screen::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 7px;
  background: repeating-linear-gradient(90deg, rgba(235,231,223,.32) 0 9px, transparent 9px 22px);
}
.scrubber__screen::before { top: 6px; }
.scrubber__screen::after { bottom: 6px; }
.scrubber__meta { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 8px 0 6px; }
.verdict { color: var(--fg); }
.verdict.is-cut { color: var(--red); }
.verdict.is-print { color: #000; background: var(--red); padding: .1em .45em; }
.scrubber__line { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.9rem); line-height: 1.25; margin: 0 0 .4em; transition: opacity .18s; }
.scrubber__line.is-cut { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; color: var(--dim); }
.scrubber__note { font-size: .95rem; font-style: italic; color: var(--dim); margin: 0 0 6px; }
.scrubber__fine { font-family: var(--mono); font-size: .6875rem; color: var(--dim); margin-top: 8px; }

/* film-strip range input */
.filmstrip-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 10px 0 0; background: transparent; cursor: ew-resize;
}
.filmstrip-range::-webkit-slider-runnable-track {
  height: 26px; border: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(235,231,223,.35) 6px 12px, transparent 12px 20px) top/100% 5px no-repeat,
              repeating-linear-gradient(90deg, transparent 0 6px, rgba(235,231,223,.35) 6px 12px, transparent 12px 20px) bottom/100% 5px no-repeat, var(--black-3);
}
.filmstrip-range::-moz-range-track {
  height: 26px; border: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(235,231,223,.35) 6px 12px, transparent 12px 20px) top/100% 5px no-repeat,
              repeating-linear-gradient(90deg, transparent 0 6px, rgba(235,231,223,.35) 6px 12px, transparent 12px 20px) bottom/100% 5px no-repeat, var(--black-3);
}
.filmstrip-range::-webkit-slider-thumb { -webkit-appearance: none; width: 6px; height: 40px; margin-top: -8px; background: var(--red); border: 0; box-shadow: 0 0 0 2px var(--bg); }
.filmstrip-range::-moz-range-thumb { width: 6px; height: 40px; background: var(--red); border: 0; border-radius: 0; box-shadow: 0 0 0 2px var(--bg); }
.filmstrip-range--paper::-webkit-slider-runnable-track { background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(19,19,18,.35) 6px 12px, transparent 12px 20px) top/100% 5px no-repeat, repeating-linear-gradient(90deg, transparent 0 6px, rgba(19,19,18,.35) 6px 12px, transparent 12px 20px) bottom/100% 5px no-repeat, var(--paper-2); }
.filmstrip-range--paper::-moz-range-track { background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(19,19,18,.35) 6px 12px, transparent 12px 20px) top/100% 5px no-repeat, repeating-linear-gradient(90deg, transparent 0 6px, rgba(19,19,18,.35) 6px 12px, transparent 12px 20px) bottom/100% 5px no-repeat, var(--paper-2); }
.filmstrip-range:focus-visible { outline-offset: 2px; }

/* ---------- Call sheet ---------- */
.callsheet__grid { display: grid; gap: clamp(20px, 3vw, 36px); margin-top: clamp(36px, 5vw, 64px); }
@media (min-width: 1000px) { .callsheet__grid { grid-template-columns: 1fr 1fr 1fr; } }
.role { border-top: 3px solid var(--fg); padding-top: 18px; }
.role--human { border-top-color: var(--red); }
.role--machine { border-top-style: double; border-top-width: 5px; }
.role__line { font-family: var(--mono); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: .6em; }
.role h3 { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.3rem); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.role h3 span { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; color: var(--dim); }
.role--human h3 span { color: var(--red); }
.role__summary { font-style: italic; color: var(--dim); }
.duties { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.duties li { border-bottom: 1px solid var(--line); }
.duties summary {
  list-style: none; cursor: pointer; padding: 12px 34px 12px 0; position: relative; font-weight: 500; min-height: 48px; display: flex; align-items: center;
}
.duties summary::-webkit-details-marker { display: none; }
.duties summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.2rem; color: var(--dim); transition: transform .25s var(--ease-film); }
.duties details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--red); }
.duties details p { font-size: .95rem; color: var(--dim); padding: 0 0 14px; margin: 0; }
.role--both { background: var(--ink); color: var(--paper); padding: 24px clamp(18px, 2.4vw, 30px) 18px; border-top-color: var(--ink); --fg: var(--paper); --bg: var(--ink); --dim: #b9b4a9; --red: var(--red-dark); }
.role--both .role__line { color: #b9b4a9; }
.tag-line { margin: 0; }
.disclaimer { margin-top: clamp(40px, 6vw, 72px); border: 1px dashed var(--line); padding: 22px clamp(18px, 3vw, 32px); max-width: 860px; }
.disclaimer h3 { font-family: var(--mono); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.disclaimer p { margin: 0; color: var(--dim); }

/* ---------- Cutting room ---------- */
.sim-notice {
  font-family: var(--mono); font-size: .8125rem; line-height: 1.6; border-left: 3px solid var(--red); padding: 12px 16px; background: var(--surface); max-width: 880px; margin: 28px 0 40px;
}
.sim-notice strong { color: var(--red); letter-spacing: .1em; text-transform: uppercase; font-weight: 400; }
.pitch { display: grid; gap: 34px; }
.pitch__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.pitch__step > legend { display: flex; align-items: center; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 600; margin-bottom: 14px; padding: 0; }
.pitch__label { display: block; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.pitch__row input {
  width: 100%; max-width: 760px; background: transparent; border: 0; border-bottom: 2px solid var(--fg); padding: 10px 0; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); font-style: italic; border-radius: 0;
}
.pitch__row input::placeholder { color: var(--dim); opacity: .75; }
.pitch__row input:focus-visible { outline: none; border-bottom-color: var(--red); box-shadow: 0 2px 0 var(--red); }
.chip {
  font-family: var(--mono); font-size: .75rem; background: transparent; border: 1px solid var(--line); padding: 8px 12px; margin: 6px 6px 0 0; min-height: 40px; color: var(--fg);
}
.chip:hover { border-color: var(--red); color: var(--red); }
.notes__grid { display: grid; gap: 18px 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.note { border: 0; border-top: 1px solid var(--line); padding: 10px 0 0; margin: 0; min-width: 0; }
.note legend { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 0 0 6px; float: left; width: 100%; }
.note label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 12px 4px 8px; margin: 0 6px 6px 0; border: 1px solid var(--line); font-size: .95rem; cursor: pointer;
}
.note input { accent-color: var(--red); width: 16px; height: 16px; margin: 0; }
.note label:has(input:checked) { border-color: var(--red); color: var(--fg); box-shadow: inset 0 0 0 1px var(--red); }
.note label:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.note input:focus-visible { outline: none; }
.pitch__go { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; }
.pitch__go .hint { margin: 0; flex-basis: 100%; }

.sheet { margin-top: 56px; }
.sheet__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.sheet__title { display: flex; align-items: center; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.sheet__stats { font-family: var(--mono); font-size: .75rem; color: var(--dim); margin: 0; }
.sheet__stats.is-flash { animation: flash .6s ease 2; }
@keyframes flash { 50% { color: var(--red); } }
.sheet__grid { list-style: none; padding: 14px; margin: 16px 0 24px; display: grid; gap: 14px; background: #000; border: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 600px) { .sheet__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .sheet__grid { grid-template-columns: 1fr 1fr 1fr; } }
.take {
  position: relative; background: var(--black-2); border: 1px solid rgba(235,231,223,.14); padding: 16px 16px 12px; display: flex; flex-direction: column; min-height: 100%;
  opacity: 0; transform: translateY(8px); animation: develop .5s var(--ease-film) forwards; animation-delay: calc(var(--i) * 55ms);
}
@keyframes develop { from { opacity: 0; transform: translateY(8px); filter: brightness(2.2) contrast(.6); } to { opacity: 1; transform: none; filter: none; } }
.take__meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.take__angle { font-size: 1.25rem; margin: 0 0 .4em; }
.take__line { font-size: 1rem; line-height: 1.5; margin-bottom: .8em; }
.take__q { font-size: .9rem; font-style: italic; color: var(--dim); margin-top: auto; padding-top: 8px; border-top: 1px dashed rgba(235,231,223,.18); }
.take__tools { display: flex; gap: 8px; margin-top: 12px; position: relative; z-index: 3; }
.take__tools button {
  flex: 1; min-height: 44px; background: transparent; border: 1px solid rgba(235,231,223,.3); font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
}
.take__tools button:hover { border-color: var(--red); color: var(--red); }
.take__tools button[aria-pressed="true"] { background: var(--red); color: #000; border-color: var(--red); }
.take__mark { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); max-width: none; pointer-events: none; z-index: 2; overflow: visible; }
.take__mark path { fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.take.is-circled .take__mark--circle path, .take.is-struck .take__mark--strike path { animation: draw .45s var(--ease-film) forwards; }
.take.is-struck .take__mark--strike path:nth-child(2) { animation-delay: .12s; }
.take.is-struck .take__body { opacity: .38; }
.take.is-circled { border-color: rgba(240,86,61,.6); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.edl {
  margin-top: 48px; background: var(--paper); color: var(--ink); padding: clamp(22px, 4vw, 44px); --fg: var(--ink); --bg: var(--paper); --dim: var(--graphite); --red: var(--red-paper);
  border-top: 10px solid #000; box-shadow: 0 30px 60px rgba(0,0,0,.45); max-width: 920px;
}
.edl:focus { outline: none; }
.edl__title { display: flex; align-items: center; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.edl__ratio { font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); font-style: italic; border-left: 3px solid var(--red-paper); padding-left: 14px; }
.edl__ratio strong { font-style: normal; color: var(--red-paper); font-variant-numeric: tabular-nums; }
.edl__brief { font-family: var(--mono); font-size: .8125rem; line-height: 1.7; white-space: pre-wrap; word-wrap: break-word; background: #fff8ee; border: 1px solid rgba(19,19,18,.15); padding: 18px; margin: 18px 0; max-height: 520px; overflow: auto; }
.edl__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.edl .btn--ghost { color: var(--ink); }
.edl .btn--red { color: #fff; }
.edl__fine { font-family: var(--mono); font-size: .75rem; color: var(--graphite); margin: 14px 0 0; }

/* ---------- Reels (essays) ---------- */
.legend { border: 1px solid var(--line); padding: 18px 22px; margin: 36px 0 clamp(48px, 7vw, 96px); max-width: 980px; background: var(--surface); }
.legend__title { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; color: var(--dim); }
.legend__list { margin: 0; display: grid; gap: 10px 26px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.legend__list div { display: flex; gap: 10px; align-items: baseline; }
.legend__list dt { flex: none; width: 128px; }
.legend__list dd { margin: 0; font-size: .9rem; color: var(--dim); }
.reel { display: grid; gap: 0 clamp(20px, 4vw, 64px); padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .reel { grid-template-columns: 160px minmax(0, 1fr); } }
.reel__no {
  font-size: clamp(4.5rem, 3rem + 6vw, 9rem); line-height: .8; font-style: italic; font-weight: 400; margin: 0 0 .1em;
  color: transparent; -webkit-text-stroke: 1.5px var(--fg);
}
.reel:target .reel__no, .reel:hover .reel__no { -webkit-text-stroke-color: var(--red); }
.reel__body { max-width: 70ch; }
.reel__body h3 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.7rem); font-weight: 500; letter-spacing: -.01em; margin-bottom: .6em; }
.reel__sub { font-family: var(--mono); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; margin-top: 2em; }
.margin-note { font-style: italic; color: var(--red); border-left: 2px solid var(--red); padding-left: 14px; margin-top: 1.4em; }
.margin-note__mark { font-style: normal; margin-right: .3em; }
.checklist { padding-left: 0; list-style: none; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.checklist li::before { content: "□"; position: absolute; left: 0; top: -.05em; font-family: var(--mono); color: var(--red); }

.iterate { margin: 2em 0 0; border: 1px solid var(--line); padding: 18px clamp(16px, 3vw, 26px); background: var(--surface); }
.iterate figcaption { font-family: var(--mono); font-size: .75rem; line-height: 1.6; color: var(--dim); margin-bottom: 12px; }
.iterate__screen { min-height: 170px; }
.iterate__meta { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.iterate__line { font-size: clamp(1.2rem, 1rem + 1vw, 1.65rem); line-height: 1.3; margin-bottom: .5em; }
.iterate__line ins { text-decoration: none; background: linear-gradient(transparent 62%, rgba(173,42,27,.22) 62%); }
.iterate__note { font-size: .95rem; color: var(--dim); font-style: italic; margin: 0; }
.iterate__note-label { font-style: normal; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }

.continuity { margin: 2.2em 0 0; border: 2px solid var(--fg); padding: 22px clamp(16px, 3vw, 30px); }
.continuity__title { font-size: 1.5rem; }
.continuity__list { padding-left: 1.3em; margin: 0 0 18px; }
.continuity__list > li { margin-bottom: 18px; padding-left: 4px; }
.continuity fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.continuity legend { padding: 0; margin-bottom: 8px; font-style: italic; }
.continuity label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 2px 12px 2px 8px; margin: 0 6px 6px 0; border: 1px solid var(--line); font-family: var(--mono); font-size: .8125rem; cursor: pointer; }
.continuity input { accent-color: var(--red); width: 16px; height: 16px; margin: 0; }
.continuity label:has(input:checked) { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.continuity label:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }
.continuity input:focus-visible { outline: none; }
.continuity__answer { font-size: .95rem; border-left: 3px solid var(--fg); padding: 6px 0 6px 12px; margin: 6px 0 0; }
.continuity__answer.is-right::before { content: "✓ Correct · "; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; }
.continuity__answer.is-wrong { border-left-color: var(--red); }
.continuity__answer.is-wrong::before { content: "✕ Not quite · "; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; color: var(--red); }
.continuity__answer.is-skipped::before { content: "— Unanswered · "; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; }
.continuity__go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.continuity__score { margin: 0; font-family: var(--mono); font-size: .875rem; }

.outtakes { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.outtake { border: 1px solid var(--fg); padding: 16px 16px 14px; display: flex; flex-direction: column; background: var(--surface); position: relative; }
.outtake::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(135deg, var(--fg) 0 10px, transparent 10px 20px); }
.outtake__take { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 8px 0 4px; }
.outtake h4 { font-size: 1.3rem; margin-bottom: .4em; }
.outtake p { font-size: .95rem; }
.outtake__flip { margin-top: auto; align-self: flex-start; min-height: 44px; padding: 0 14px; background: none; border: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.outtake__flip[aria-expanded="true"] { background: var(--fg); color: var(--bg); }
.outtake__fix { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--red); font-style: italic; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sequels { padding: 0; margin: 1.4em 0 0; list-style: none; counter-reset: s; }
.sequels li { counter-increment: s; position: relative; padding: 14px 0 14px 56px; border-top: 1px solid var(--line); }
.sequels li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--mono); font-size: .875rem; color: var(--red); }
.sequels em { font-style: normal; font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }

/* ---------- Field guide ---------- */
.guide__inner { display: grid; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 940px) { .guide__inner { grid-template-columns: 1.25fr .75fr; } }
.guide__list { padding: 0; list-style: none; margin: 0 0 32px; }
.guide__list li { padding: 8px 0 8px 28px; border-top: 1px solid var(--line); position: relative; }
.guide__list li::before { content: "▸"; position: absolute; left: 4px; color: var(--red); font-family: var(--mono); }
.guide__cover { display: grid; place-items: center; perspective: 1000px; }
.guide__paper {
  width: min(320px, 78vw); aspect-ratio: 210 / 297; background: var(--paper); color: var(--ink); padding: 26px 24px; display: flex; flex-direction: column;
  transform: rotate(-3deg); box-shadow: 0 30px 70px rgba(0,0,0,.6); transition: transform .5s var(--ease-film); border-top: 18px solid #000;
}
.guide__cover:hover .guide__paper { transform: rotate(0deg) translateY(-6px); }
.guide__paper-kicker { font-family: var(--mono); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--graphite); }
.guide__paper-title { font-size: 1.85rem; line-height: 1.05; font-weight: 600; margin-top: 8px; }
.guide__paper-mark { margin-top: auto; }
.guide__paper-mark ellipse { fill: none; stroke: var(--red-paper); stroke-width: 3; }
.guide__paper-by { font-family: var(--mono); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; margin: 10px 0 0; }

/* ---------- Worlds ---------- */
.worlds__grid { list-style: none; padding: 0; margin: clamp(32px, 5vw, 56px) 0 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .worlds__grid { grid-template-columns: 1fr 1fr; } }
.world { border: 1px solid var(--line); padding: 22px clamp(18px, 2.5vw, 28px); background: var(--surface); position: relative; transition: border-color .2s; }
.world:hover, .world:focus-within { border-color: var(--fg); }
.world--home { background: var(--ink); color: var(--paper); --fg: var(--paper); --dim: #b9b4a9; --red: var(--red-dark); border-color: var(--ink); }
.world__role { font-family: var(--mono); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: .6em; }
.world h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.world h3 a { text-decoration: none; }
.world h3 a::after { content: ""; position: absolute; inset: 0; }
.world h3 a:hover { text-decoration: underline; }
.world p:last-child { margin: 0; color: var(--dim); font-size: .98rem; }

/* ---------- Credits ---------- */
.credits__inner { text-align: center; }
.credits__inner .section-lede, .credits__inner .kicker { margin-left: auto; margin-right: auto; }
.credits__list { margin: 40px auto 0; max-width: 680px; display: grid; gap: 22px; }
.credits__list dt { font-family: var(--mono); font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.credits__list dd { margin: .25em 0 0; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); }
.contact { margin: clamp(56px, 8vw, 96px) auto 0; max-width: 640px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; }
.contact__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); font-style: italic; font-weight: 500; }
.contact .btn { text-transform: none; letter-spacing: .02em; font-size: 1rem; }
.sources { text-align: left; max-width: 860px; margin: clamp(48px, 7vw, 80px) auto 0; }
.sources h3 { font-family: var(--mono); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; color: var(--dim); }
.sources ol { padding-left: 1.4em; font-size: .9rem; color: var(--dim); }
.sources li { margin-bottom: .6em; }
.sources a { color: var(--fg); word-break: break-word; }
.credits__end { margin: 56px 0 18px; }
.credits__fine { font-family: var(--mono); font-size: .75rem; color: var(--dim); max-width: 70ch; margin: 0 auto; }

/* ---------- Scroll reveal (JS adds .reveal) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--ease-film); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .entrance { animation: entrance-fade .25s linear forwards !important; animation-duration: .25s !important; background: #000; }
  .entrance > *, .entrance::after { display: none; }
  @keyframes entrance-fade { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
  .site-header, main { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .take { opacity: 1; transform: none; animation: none !important; }
  .take__mark path { stroke-dashoffset: 0; animation: none !important; }
  .take:not(.is-circled) .take__mark--circle, .take:not(.is-struck) .take__mark--strike { display: none; }
  .guide__paper { transform: none; }
  .cut-frame { display: none; }
  .sound-toggle[aria-pressed="true"] .sound-toggle__icon { animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .entrance, .cut-frame, .site-header, .grain, .scrubber input, .sound-toggle { display: none !important; }
  body, .theme-dark, .theme-paper { background: #fff !important; color: #000 !important; }
  .theme-dark::before, .hero::after { display: none; }
  .wrap { padding: 24px 0; }
}

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: flex; align-items: center; }
.lost__inner { width: 100%; }
.page-404 main { animation: none; }
.lost__frame { margin: 24px 0 8px; }
.lost__frame span {
  display: inline-block; font-size: clamp(5rem, 3rem + 12vw, 13rem); line-height: 1; font-style: italic; color: transparent; -webkit-text-stroke: 2px var(--silver);
  position: relative; padding: 0 .1em;
}
.lost__frame span::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 50%; height: 4px; background: var(--red-dark); transform: rotate(-8deg);
}
