/* aishk.si — the page is a film being made. Warm, slightly desaturated, grain on top, paper and pencil in the margins. */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/fonts/courier-prime.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0e0c0a;
  --bg-2: #16120f;
  --line: #2c2520;
  --ink: #efe7dc;
  --muted: #a89f93;
  --amber: #e0a15a;
  --ember: #c66a3d;
  --glow: #ffe2b8;
  --paper: #ece3d3;
  --paper-ink: #1f1a15;
  --pencil: #a3401f;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-film: cubic-bezier(.65, 0, .35, 1);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --type: "Courier Prime", "Courier New", ui-monospace, monospace;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(16px, 1.05vw + 12px, 18px)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--bg); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; }

.display { font-family: var(--display); font-weight: 380; letter-spacing: -0.02em; line-height: 1.02; font-optical-sizing: auto; }
.display em { font-style: italic; color: var(--amber); font-weight: 300; }
.slug { margin: 0 0 18px; font: 400 14px/1.4 var(--type); letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.hand { font-family: var(--hand); font-weight: 500; line-height: 1.05; }

/* Film grain over everything. The moving layer is oversized, so it lives inside a clipped fixed box. */
/* No blend mode: a full-screen blended layer made every scroll frame repaint the whole page. */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; opacity: .055; }
.grain::before { content: ""; position: absolute; inset: -50%; background: url("/img/grain.svg"); animation: grain 1s steps(6) infinite; will-change: transform; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 80; background: linear-gradient(90deg, var(--ember), var(--amber), var(--glow)); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }

/* Camera monitor in the corner */
.hud {
  position: fixed; left: var(--gutter); bottom: 18px; z-index: 75; display: none; gap: 14px; align-items: center;
  font: 400 12px/1 var(--type); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; background: rgb(14 12 10 / .7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.js .hud { display: flex; }
.rec { color: #e2553a; display: flex; align-items: center; gap: 6px; }
.rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.tc { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .hud-chapter { display: none; } }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); transition: transform .5s var(--ease-out), background-color .4s; }
.site-header.scrolled { background: rgb(14 12 10 / .62); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.site-header.hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 20px/1 var(--display); letter-spacing: -.01em; }
.brand em { color: var(--amber); font-style: italic; }
.brand-mark { width: 28px; height: 28px; color: var(--amber); transition: transform 1.2s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(120deg); }
nav ul { display: flex; gap: clamp(12px, 2.2vw, 32px); align-items: center; list-style: none; margin: 0; padding: 0; }
nav a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .3s; }
nav a:hover { color: var(--ink); }
nav .nav-cta { color: var(--ink); border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; transition: border-color .3s, background-color .3s; }
nav .nav-cta:hover { border-color: var(--amber); background: rgb(224 161 90 / .08); }
@media (max-width: 820px) { nav li:not(:last-child) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .3s, border-color .3s, color .3s, box-shadow .4s; transform: translate(var(--tx, 0), var(--ty, 0)); }
.btn-primary { background: var(--amber); color: #1a110b; box-shadow: 0 10px 40px -10px rgb(224 161 90 / .6); }
.btn-primary:hover { background: var(--glow); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--amber); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* 00 · HERO */
.hero { position: relative; height: 230vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; align-items: center; padding: 96px var(--gutter) 64px; background: radial-gradient(120% 90% at 70% 40%, #1d1612 0%, var(--bg) 60%); }
.hero-copy { position: relative; z-index: 5; max-width: 720px; opacity: calc(1 - max(0, var(--p, 0) - .55) * 2.6); transform: translateY(calc(var(--p, 0) * -60px)); text-shadow: 0 2px 30px rgb(0 0 0 / .45); }
.hero h1 { margin: 0 0 26px; font-size: clamp(44px, min(5.6vw, 10vh), 96px); line-height: .98; }
.hero h1 .line { display: block; }
@media (min-width: 600px) { .hero h1 .line { white-space: nowrap; } }
.lead { max-width: 52ch; color: var(--muted); font-size: clamp(17px, 1.2vw + 10px, 20px); margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; z-index: 5; margin: 0; transform: translateX(-50%); font: 400 12px/1 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; opacity: calc(1 - var(--p, 0) * 5); }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 40px; margin: 12px auto 0; background: linear-gradient(var(--amber), transparent); animation: hint 2.2s var(--ease-film) infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* The iris: blades are drawn by main.js from the scroll position. */
.iris-wrap { position: absolute; z-index: 2; width: min(78vmin, 720px); aspect-ratio: 1; right: max(-6vmin, calc(50% - 640px)); top: 50%; transform: translateY(-50%) scale(calc(1 + var(--p, 0) * 1.25)); }
/* No filters on the iris: it redraws every frame while scaled, and a filter there cost ~60 ms a frame on a slow CPU. */
.iris { width: 100%; height: 100%; }
.iris-blades polygon { fill: url(#blade); stroke: #4a3e35; stroke-width: .5; }
.iris-wrap::after { content: ""; position: absolute; inset: -10%; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgb(255 226 184 / .4), rgb(224 161 90 / .12) 40%, rgb(0 0 0 / .45) 58%, transparent 72%); opacity: calc(.35 + var(--p, 0) * .8); }
.iris-note { position: absolute; z-index: 6; right: 7%; bottom: 12%; margin: 0; font-size: clamp(26px, 2.4vw, 38px); color: #2a170b; rotate: -6deg; opacity: clamp(0, calc((var(--p, 0) - .3) * 5), 1); transform: translateY(calc((1 - var(--p, 0)) * 30px)); }
@media (max-width: 860px) {
  .iris-wrap { right: 50%; transform: translate(50%, -50%) scale(calc(1 + var(--p, 0) * 1.25)); width: 120vmin; opacity: .55; }
  .iris-note { display: none; }
}

.depth { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.depth span { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgb(224 161 90 / .5), transparent 65%); }
.depth-far { z-index: 1; filter: blur(18px); transform: translateY(calc(var(--p, 0) * 80px)); }
.depth-far span:nth-child(1) { width: 180px; height: 180px; left: 8%; top: 18%; animation: drift 14s ease-in-out infinite; }
.depth-far span:nth-child(2) { width: 120px; height: 120px; left: 42%; top: 72%; animation: drift 18s ease-in-out infinite reverse; opacity: .6; }
.depth-far span:nth-child(3) { width: 90px; height: 90px; left: 88%; top: 12%; animation: drift 11s ease-in-out infinite; opacity: .5; }
.depth-far span:nth-child(4) { width: 220px; height: 220px; left: 60%; top: 40%; animation: drift 20s ease-in-out infinite; opacity: .25; }
.depth-near { z-index: 4; filter: blur(34px); transform: translateY(calc(var(--p, 0) * -220px)); }
.depth-near span:nth-child(1) { width: 300px; height: 300px; left: -80px; bottom: -120px; opacity: .35; animation: drift 16s ease-in-out infinite; }
.depth-near span:nth-child(2) { width: 200px; height: 200px; right: 6%; top: -60px; opacity: .25; animation: drift 22s ease-in-out infinite reverse; }
@keyframes drift { 50% { translate: 30px -24px; } }
.beam { position: absolute; z-index: 1; inset: -30% -10% auto auto; width: 90vmax; height: 90vmax; pointer-events: none; background: conic-gradient(from 200deg at 70% 30%, transparent 0deg, rgb(255 226 184 / .06) 14deg, transparent 30deg, rgb(255 226 184 / .04) 42deg, transparent 62deg); animation: beam 24s ease-in-out infinite alternate; will-change: transform; }
@keyframes beam { to { rotate: 10deg; } }
.vignette { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(130% 100% at 50% 45%, transparent 55%, rgb(0 0 0 / .75)); }

/* Hero entrance, only when JS runs, so crawlers and no-JS readers see the text at once. */
.js .hero h1 .line { animation: rise 1.3s var(--ease-out) both; clip-path: inset(0 0 -20% 0); }
.js .hero h1 .line:nth-child(2) { animation-delay: .15s; }
.js .hero .slug, .js .hero .lead, .js .hero .cta-row { animation: fade 1.2s var(--ease-out) both .5s; }
@keyframes rise { from { transform: translateY(105%); clip-path: inset(0 0 100% 0); } }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } }

/* Chapters */
.chapter { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(110px, 15vw, 200px) var(--gutter); }
.chapter-head { position: relative; margin-bottom: clamp(40px, 6vw, 80px); }
.chapter-num { position: absolute; z-index: -1; top: -.42em; left: -.06em; font: italic 200 clamp(140px, 22vw, 300px)/1 var(--display); color: rgb(224 161 90 / .07); pointer-events: none; }
.h2 { font-size: clamp(38px, 5.6vw, 84px); margin: 0; max-width: 15ch; }
.prose { color: var(--muted); max-width: 58ch; margin: 0; }
.prose p { margin: 0 0 18px; }
.prose .big, p.big { color: var(--ink); font: 400 clamp(22px, 1.6vw + 12px, 30px)/1.35 var(--display); letter-spacing: -.01em; }
.prose-wide { max-width: 68ch; margin-top: 48px; }
.chapter-body { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) {
  .brief-grid { grid-template-columns: .9fr 1.1fr; }
  .story-grid { grid-template-columns: 1fr 1fr; }
}

/* Paper things: index card, tape, script page */
.tilt-l { rotate: -2.2deg; }
.tilt-r { rotate: 1.6deg; }
.card-paper, .script-page {
  position: relative; margin: 0; color: var(--paper-ink);
  background:
    radial-gradient(120% 80% at 20% 0%, rgb(255 255 255 / .35), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgb(120 80 40 / .14), transparent 70%),
    var(--paper);
  box-shadow: 0 1px 0 rgb(255 255 255 / .4) inset, 0 30px 60px -20px rgb(0 0 0 / .7), 0 8px 18px rgb(0 0 0 / .35);
  transition: rotate .8s var(--ease-out);
}
.card-paper:hover, .script-page:hover { rotate: 0deg; }
.card-paper { padding: 44px 40px 28px; border-radius: 3px; background-image: repeating-linear-gradient(transparent 0 37px, rgb(60 110 160 / .18) 37px 38px), radial-gradient(120% 80% at 20% 0%, rgb(255 255 255 / .35), transparent 60%); background-position: 0 62px, 0 0; }
.card-paper::before { content: ""; position: absolute; left: 0; right: 0; top: 52px; height: 1px; background: rgb(200 60 60 / .35); }
.tape { position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; translate: -50% 0; rotate: 3deg; background: rgb(236 222 190 / .55); box-shadow: 0 1px 3px rgb(0 0 0 / .2); backdrop-filter: blur(1px); }
.brief-note { margin: 0; font-size: clamp(30px, 2.6vw + 10px, 42px); line-height: 38px; color: #1c2c5a; }
.brief-note p { margin: 0 0 0; }
.brief-note del { text-decoration-color: var(--pencil); text-decoration-thickness: 3px; color: rgb(28 44 90 / .6); }
.brief-note ins { text-decoration: none; color: var(--pencil); }
.brief-note u { text-decoration-color: var(--pencil); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.card-paper figcaption { margin-top: 22px; font: 400 12px/1.4 var(--type); color: rgb(31 26 21 / .6); letter-spacing: .04em; }

.script-page { padding: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 64px) clamp(36px, 4vw, 56px) clamp(40px, 6vw, 88px); border-radius: 2px; font: 400 clamp(14px, .5vw + 12px, 17px)/1.5 var(--type); }
.script-page::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 10px; background: radial-gradient(circle, rgb(14 12 10 / .85) 4px, transparent 5px) 0 24px / 10px 33% repeat-y; }
.script-page p { margin: 0 0 1.1em; }
.sc-slug { text-transform: uppercase; font-weight: 700; }
.sc-char { text-transform: uppercase; margin: 1.6em 0 0 !important; padding-left: 36%; }
.sc-paren { padding-left: 28%; margin-bottom: 0 !important; }
.sc-line { padding-left: 16%; padding-right: 10%; }
.sc-line del { text-decoration-color: var(--pencil); text-decoration-thickness: 2px; }
.sc-trans { text-align: right; text-transform: uppercase; }
.margin-note { position: absolute; color: var(--pencil); font-size: clamp(22px, 1.5vw + 10px, 28px); white-space: nowrap; }
.note-a { right: 4%; top: 52%; rotate: -5deg; }
.note-b { left: 10%; top: 41%; rotate: -3deg; }
.note-c { right: 6%; top: 1.5%; rotate: 6deg; }
@media (max-width: 600px) { .note-a { top: auto; right: auto; left: 8%; bottom: 5%; } }

/* Handwriting writes itself in when the card arrives. */
.js [data-reveal] .margin-note, .js [data-reveal] .brief-note ins { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-film) .6s; }
.js [data-reveal].in .margin-note, .js [data-reveal].in .brief-note ins { clip-path: inset(0 -10% 0 0); }
.js [data-reveal].in .note-b { transition-delay: 1s; }
.js [data-reveal].in .note-c { transition-delay: 1.4s; }

/* 03 · Voice waveform */
.wave-wrap { position: relative; padding: 70px 0 20px; }
.wave { width: 100%; height: clamp(110px, 14vw, 170px); overflow: visible; }
.wave rect { fill: var(--amber); opacity: clamp(.13, calc(var(--p, 1) * var(--n, 1) - var(--i, 0)), 1); }
.wave line { stroke: var(--pencil); stroke-width: 2; stroke-dasharray: 4 5; }
.wave-marks .mark { position: absolute; top: 0; color: #e98b66; font-size: clamp(20px, 1.4vw + 10px, 27px); white-space: nowrap; translate: -50% 0; rotate: -4deg; }
.wave-marks .mark::after { content: ""; position: absolute; left: 50%; top: 100%; height: 30px; border-left: 2px dashed rgb(233 139 102 / .6); }
.m1 { left: 25%; } .m2 { left: 54%; } .m3 { left: 83%; }
@media (max-width: 640px) { .m2 { display: none; } .m1 { left: 22%; } .m3 { left: 74%; } }

/* 04 · Film strip: scrolls sideways on wide screens, stacks on phones */
.reel { position: relative; }
.reel-stage { padding: clamp(110px, 12vw, 160px) 0 80px; overflow: hidden; }
.reel-head { max-width: var(--max); margin: 0 auto clamp(40px, 5vw, 64px); padding: 0 var(--gutter); }
.reel-head .chapter-num { left: calc(var(--gutter) - .06em); }
/* Unpinned (no JS, reduced motion, phones) the frames simply wrap; main.js adds .pinned to scroll them sideways. */
.strip { display: flex; flex-wrap: wrap; gap: 18px; padding: 0 var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.reel.pinned .strip { flex-wrap: nowrap; width: max-content; max-width: none; margin: 0; transform: translateX(var(--x, 0px)); }
.reel.pinned .film-frame { flex: none; width: min(70vw, 640px); }
.reel.pinned .film-frame { aspect-ratio: 4 / 3; padding: 56px 44px 52px; }
.film-frame {
  position: relative; flex: 1 1 340px; padding: 120px 32px 56px; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: 4px;
  background:
    radial-gradient(circle, var(--bg) 5px, transparent 5.5px) 0 3px / 28px 24px repeat-x,
    radial-gradient(circle, var(--bg) 5px, transparent 5.5px) 0 calc(100% - 3px) / 28px 24px repeat-x,
    linear-gradient(#241c16, #241c16) top / 100% 30px no-repeat,
    linear-gradient(#241c16, #241c16) bottom / 100% 30px no-repeat,
    radial-gradient(90% 70% at 30% 30%, rgb(224 161 90 / .2), transparent 70%),
    #1b1511;
}
.film-frame:nth-child(2) { background-color: #1a1613; }
.film-frame:nth-child(3) { background-color: #1d1410; }
.film-frame .edge { position: absolute; top: 40px; left: 44px; margin: 0; font: 400 11px/1 var(--type); letter-spacing: .12em; color: #d9893f; opacity: .8; }
.film-frame h3 { font: 400 clamp(32px, 3vw, 46px)/1.05 var(--display); letter-spacing: -.015em; margin: 0 0 14px; }
.film-frame p { margin: 0; color: var(--muted); max-width: 46ch; }
.film-frame .frame-note { position: absolute; top: 64px; right: 36px; color: var(--glow); font-size: clamp(22px, 1.5vw + 10px, 30px); rotate: 4deg; max-width: none; }
/* Unpinned frames are narrow, so the note sits on its own line above the title. */
.reel:not(.pinned) .film-frame .edge { left: 32px; }
.reel:not(.pinned) .film-frame .frame-note { top: 66px; right: auto; left: 32px; }
html:not(.js) .site-header { background: rgb(14 12 10 / .92); }
.reel.pinned .reel-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 72px 0 40px; }

/* 05 · The cut: words light up as you scroll */
.manifesto { position: relative; height: 200vh; }
.manifesto-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.manifesto-text { margin: 0 auto; max-width: 1100px; padding: 0 var(--gutter); font-size: clamp(34px, 5vw, 76px); line-height: 1.12; }
.manifesto-text .w { opacity: clamp(.14, calc(var(--p, 1) * var(--n, 1) - var(--w, 0)), 1); transition: opacity .2s linear; }

/* Reveal on scroll, gated by .js so nothing is hidden without JavaScript. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), rotate .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* 06 · Screening room */
.work .prose { margin-bottom: 56px; }
.frames { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.frame { margin: 0; grid-column: span 12; }
@media (min-width: 860px) {
  .frame:nth-child(1) { grid-column: 1 / span 7; }
  .frame:nth-child(2) { grid-column: 8 / span 5; margin-top: 120px; }
  .frame:nth-child(3) { grid-column: 3 / span 8; }
}
.frame-empty, .frame video { aspect-ratio: 16 / 9; width: 100%; border-radius: 6px; overflow: hidden; object-fit: cover; border: 1px solid var(--line); transform: translateY(calc(var(--py, 0) * 1px)); }
.frame-empty { position: relative; display: grid; place-items: center; background: radial-gradient(60% 80% at 30% 30%, rgb(224 161 90 / .12), transparent 70%), #110e0b; }
.frame-empty::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgb(255 255 255 / .018) 0 2px, transparent 2px 4px); }
.frame-empty span { font: 400 clamp(14px, 1.2vw, 17px)/1 var(--type); letter-spacing: .2em; text-transform: uppercase; color: rgb(239 231 220 / .35); border: 1px solid rgb(239 231 220 / .18); padding: 12px 18px; }
.frame figcaption { margin-top: 14px; font: 400 13px/1.4 var(--type); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.frame figcaption .hand { text-transform: none; font-size: 24px; color: var(--amber); letter-spacing: 0; }

/* 07 · Notes */
.faq-list { max-width: 880px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font: 420 clamp(20px, 1.6vw + 10px, 28px)/1.25 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 32px/1 var(--sans); color: var(--amber); transition: transform .4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--muted); max-width: 64ch; }
.faq details[open] p { animation: fade .6s var(--ease-out); }

/* 08 · Clapperboard form */
.contact .prose { margin-top: 24px; }
.slate { max-width: 860px; filter: drop-shadow(0 40px 60px rgb(0 0 0 / .6)); }
.slate-sticks { display: grid; gap: 4px; margin-bottom: 4px; }
.slate-sticks span { height: 34px; border-radius: 4px; background: repeating-linear-gradient(-55deg, #f2ece2 0 34px, #141210 34px 68px); }
.slate-sticks span:first-child { transform-origin: 2% 100%; transform: rotate(var(--clap, -9deg)); transition: transform .5s cubic-bezier(.5, 0, .2, 1.4); }
.slate.in .slate-sticks span:first-child { --clap: 0deg; transition-delay: .6s; }
.slate.sent .slate-sticks span:first-child { animation: clap .5s cubic-bezier(.5, 0, .2, 1.4); }
@keyframes clap { 40% { transform: rotate(-14deg); } 100% { transform: rotate(0deg); } }
.slate-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #141210; border-radius: 6px; border: 1px solid #2f2822; overflow: hidden; }
.slate-row { grid-column: span 2; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-bottom: 1px solid #3a3129; font: 400 13px/1 var(--type); letter-spacing: .1em; color: var(--muted); }
.slate-row span { padding: 16px 20px; border-right: 1px solid #3a3129; }
.slate-row span:last-child { border-right: 0; }
.slate-row b { font: 600 28px/1 var(--hand); color: var(--ink); margin-left: 10px; letter-spacing: 0; }
.field { display: grid; gap: 6px; grid-column: span 2; padding: 18px 20px; border-bottom: 1px solid #3a3129; }
@media (min-width: 640px) { .field:not(.field-wide) { grid-column: span 1; } .field:nth-of-type(1) { border-right: 1px solid #3a3129; } }
.field label { font-size: 14px; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.slate-k { font: 400 12px/1 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.field input, .field select, .field textarea { width: 100%; font: 500 26px/1.25 var(--hand); color: var(--ink); background: transparent; border: 0; border-bottom: 1px dashed transparent; padding: 6px 0; transition: border-color .3s; }
.field select { font: 400 17px/1.4 var(--sans); padding: 10px 0; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--amber); }
.field:focus-within { background: rgb(224 161 90 / .05); }
.field [aria-invalid="true"] { border-bottom-color: var(--ember); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: span 2; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 22px 20px; }
.form-status { margin: 0; color: var(--muted); }
.form-status.ok { color: var(--glow); }
.form-status.err { color: #f0a58a; }

/* End credits */
.site-footer { padding: clamp(90px, 12vw, 160px) var(--gutter) 32px; border-top: 1px solid var(--line); overflow: hidden; }
.credits { text-align: center; margin: 0 auto 80px; max-width: 640px; }
.credits dl { margin: 32px 0 0; display: grid; gap: 22px; }
.credits dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: baseline; }
.credits dt { text-align: right; font: 400 12px/1.4 var(--type); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.credits dd { margin: 0; text-align: left; font: 400 clamp(22px, 2vw, 28px)/1.2 var(--display); }
.fade-out { margin: 64px 0 0; font-size: 36px; color: var(--amber); rotate: -3deg; }
.footer-big { margin: 0 0 24px; font-size: clamp(72px, 19vw, 300px); line-height: .9; text-align: center; color: transparent; -webkit-text-stroke: 1px rgb(224 161 90 / .4); }
.footer-big em { color: transparent; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; padding-bottom: 64px; /* clears the timecode monitor */ }
.footer-row p { margin: 0; }

/* Simple pages (thanks, 404) */
.simple { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 24px; padding: 32px 16px; }
.simple h1 { font-size: clamp(40px, 7vw, 88px); margin: 0; }
.simple p { color: var(--muted); margin: 0 auto; max-width: 46ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal] .margin-note, .js [data-reveal] .brief-note ins { clip-path: none; }
  .manifesto-text .w, .wave rect { opacity: 1; }
  /* No scroll-driven scenes, so no tall scroll runways either. */
  .hero, .manifesto { height: auto; }
  .hero-stage, .manifesto-stage { position: relative; height: auto; min-height: 100svh; }
}
/* The waveform is drawn by main.js; without it the notes would point at nothing. */
html:not(.js) .wave-wrap { display: none; }
