:root {
  --night: #050505;
  --char: #0d0c0b;
  --paper: #f1ece2;
  --paper-2: #e6dfd1;
  --ink: #1d1a16;
  --ink-2: #4d463d;
  --cream: #f2ece1;
  --ember: #e2622b;
  --rule: rgba(29, 26, 22, 0.22);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--night); color: var(--cream); font-family: var(--serif); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; margin: 0; }

/* film grain over everything */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.16; mix-blend-mode: overlay;
  background-image: var(--grain); background-size: 220px 220px; animation: grain 0.5s steps(1) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); } 12% { transform: translate(-3%, 2%); } 25% { transform: translate(2%, -4%); }
  37% { transform: translate(-4%, -1%); } 50% { transform: translate(3%, 3%); } 62% { transform: translate(-1%, 4%); }
  75% { transform: translate(4%, -2%); } 87% { transform: translate(-2%, -3%); }
}

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 44px); opacity: var(--ui, 0); transform: translateY(calc((1 - var(--ui, 0)) * -8px));
  pointer-events: none; transition: background 0.3s; }
.nav.solid { background: rgba(5, 5, 5, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav.live { pointer-events: auto; }
.nav.solid { opacity: 1; transform: none; }
.nav.on-paper { background: rgba(241, 236, 226, 0.86); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.nav.on-paper .brand svg { color: var(--ember); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 13px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.brand svg { color: var(--ember); }
.nav nav { display: flex; gap: clamp(14px, 2.4vw, 30px); }
.nav nav a { font: 500 14px/1 var(--sans); text-decoration: none; opacity: 0.86; }
.nav nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) { .nav nav { display: none; } }

/* sound toggle */
.sound { position: fixed; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 95; display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px 9px 12px; border-radius: 999px; border: 1px solid rgba(242, 236, 225, 0.28); background: rgba(10, 9, 8, 0.66);
  color: var(--cream); font: 500 12.5px/1 var(--sans); letter-spacing: 0.02em; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sound { transition: transform 0.25s ease, background 0.2s; }
.sound.on-paper { background: rgba(29, 26, 22, 0.82); }
.sound:hover { border-color: rgba(242, 236, 225, 0.6); }
.sound:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.sound .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound .bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; opacity: 0.65; }
.sound.on .bars i { animation: bar 0.9s ease-in-out infinite alternate; opacity: 1; }
.sound.on .bars i:nth-child(2) { animation-delay: -0.3s; } .sound.on .bars i:nth-child(3) { animation-delay: -0.6s; } .sound.on .bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes bar { from { height: 3px; } to { height: 12px; } }
.sound.pending { animation: nudge 2.4s ease-in-out 3.2s 3; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(226, 98, 43, 0); } 50% { box-shadow: 0 0 0 6px rgba(226, 98, 43, 0.25); } }

/* hero */
.hero { position: relative; height: 330vh; height: 330svh; background: var(--night); }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-ui { position: absolute; inset: 0; pointer-events: none; --t: var(--title, 120px); }
.hero-ui > * { opacity: var(--ui, 0); transition: none; }
.hero-ui .date { position: absolute; left: 0; right: 0; text-align: center; top: calc(var(--crest, 55vh) - var(--t) * 1.32 - 12px);
  transform: translateY(calc((1 - var(--ui, 0)) * 10px)); color: rgba(242, 236, 225, 0.86); }
.hero-ui .deck { position: absolute; left: 50%; width: min(520px, calc(100vw - 32px)); transform: translate(-50%, calc((1 - var(--ui, 0)) * 10px));
  top: calc(var(--crest, 55vh) + max(22px, var(--t) * 0.26)); margin: 0; text-align: center; font: 400 clamp(16px, 1.35vw, 20px)/1.38 var(--serif); color: rgba(242, 236, 225, 0.9); }
.toc { position: absolute; left: 50%; width: min(330px, calc(100vw - 48px)); transform: translate(-50%, calc((1 - var(--ui, 0)) * 14px));
  top: calc(var(--crest, 55vh) + max(22px, var(--t) * 0.26) + 72px); margin: 0; padding: 0; list-style: none; pointer-events: auto; }
.toc a { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; text-decoration: none; font: 400 14.5px/1.3 var(--serif); color: rgba(242, 236, 225, 0.92); }
.toc .n { font: 600 11px/1 var(--sans); letter-spacing: 0.04em; }
.toc .dots { flex: 1; border-bottom: 1px dotted rgba(242, 236, 225, 0.4); transform: translateY(-3px); }
.toc a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.scroll-hint { position: absolute; left: 0; right: 0; bottom: 26px; margin: 0; text-align: center; font: 500 12px/1 var(--sans); letter-spacing: 0.08em; color: rgba(242, 236, 225, 0.6); opacity: 0; }
@media (max-width: 720px) { .toc { top: calc(var(--crest, 55vh) + max(22px, var(--t) * 0.26) + 88px); } }

/* sections with a torn top edge */
[data-torn-top] { position: relative; }
.torn-top { position: absolute; left: 0; top: -40px; width: 100%; height: 70px; pointer-events: none; z-index: 2; }

/* the film */
.film { background: var(--char); padding: clamp(70px, 9vw, 120px) clamp(16px, 4vw, 48px) clamp(80px, 10vw, 140px); }
.film-head { max-width: 1180px; margin: 0 auto 34px; text-align: center; }
.film-head .eyebrow { color: rgba(242, 236, 225, 0.72); }
.film-head .sep { opacity: 0.5; padding: 0 4px; }
.film-title { margin: 14px 0 0; font: 400 clamp(30px, 4vw, 54px)/1.05 var(--serif); letter-spacing: -0.01em; }
.player-wrap { position: relative; max-width: 1180px; margin: 0 auto; }
.film-mat { position: absolute; left: -26px; top: -26px; pointer-events: none; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; cursor: pointer; }
.film-play { position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 22px 10px 10px; border: 1px solid rgba(242, 236, 225, 0.35); border-radius: 999px; background: rgba(8, 7, 6, 0.55);
  color: var(--cream); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity 0.3s, transform 0.3s; }
.film-play:hover { border-color: rgba(242, 236, 225, 0.8); transform: translateX(-50%) translateY(-2px); }
.film-play .ring { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cream); color: #111; }
.film-play .txt { font: 400 19px/1 var(--serif); }
.film-play em { font: 600 11px/1 var(--sans); letter-spacing: 0.1em; font-style: normal; opacity: 0.6; margin-left: 8px; }
.player.engaged .film-play { opacity: 0; pointer-events: none; }
.controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 30px 16px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0)); opacity: 0; transition: opacity 0.25s; }
.player.engaged .controls { opacity: 1; }
.player.engaged.playing:not(.awake) .controls { opacity: 0; }
.ctl { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--cream); cursor: pointer; }
.ctl:hover { background: rgba(255, 255, 255, 0.12); }
.ctl:focus-visible, .bar:focus-visible, .film-play:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.ctl .i-pause, .player.playing .ctl .i-play { display: none; }
.player.playing .ctl .i-pause { display: block; }
.ctl .i-mute, .player.audible .ctl .i-vol { display: block; }
.ctl .i-vol, .player.audible .ctl .i-mute { display: none; }
.time { font: 500 12px/1 var(--sans); font-variant-numeric: tabular-nums; min-width: 78px; color: rgba(242, 236, 225, 0.85); }
.bar { position: relative; flex: 1; height: 26px; cursor: pointer; touch-action: none; }
.track { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: rgba(242, 236, 225, 0.25); }
.fill { position: absolute; inset: 0; background: var(--cream); transform-origin: 0 50%; transform: scaleX(0); }
.ticks i, .ticks b { position: absolute; top: 9px; width: 1px; height: 8px; background: rgba(242, 236, 225, 0.35); }
.ticks b { top: 5px; height: 16px; width: 2px; background: var(--ember); }
.film-caption { max-width: 640px; margin: 44px auto 0; text-align: center; font: 400 16px/1.55 var(--serif); color: rgba(242, 236, 225, 0.7); }
@media (max-width: 640px) {
  .film-mat { left: -18px; top: -18px; }
  .film-play { bottom: 50%; transform: translate(-50%, 50%); padding: 6px 16px 6px 6px; gap: 10px; }
  .film-play:hover { transform: translate(-50%, 50%); }
  .film-play .ring { width: 36px; height: 36px; }
  .film-play .txt { font-size: 15px; }
  .time { display: none; }
  .controls { gap: 6px; padding: 24px 8px 6px; }
}

/* the article, on paper */
.paper { background: var(--paper); color: var(--ink); color-scheme: light; padding: clamp(70px, 9vw, 120px) 16px clamp(80px, 10vw, 130px); }
.col { max-width: 700px; margin: 0 auto; }
.sec { padding-top: 12px; margin-bottom: clamp(56px, 8vw, 96px); opacity: 0.001; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .7, .2, 1); }
.sec.in { opacity: 1; transform: none; }
.eyebrow.ink { color: var(--ink-2); margin-bottom: 18px; }
.paper .lead { font: 400 clamp(23px, 2.6vw, 30px)/1.3 var(--serif); letter-spacing: -0.005em; margin: 0 0 28px; }
.paper h2 { font: 400 clamp(28px, 3.4vw, 40px)/1.1 var(--serif); letter-spacing: -0.01em; margin: 0 0 22px; }
.paper p { font-size: 18.5px; line-height: 1.62; margin: 0 0 20px; }
.paper em { font-style: italic; }
.specs { width: 100%; margin: 30px 0 10px; border-collapse: collapse; font: 400 15px/1.4 var(--sans); }
.specs th, .specs td { text-align: left; padding: 11px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 1px solid var(--rule); }
.specs th { font-weight: 600; width: 44%; color: var(--ink-2); }
.plate { margin: 36px 0; }
.plate.wide { margin: 44px -40px; }
.plate-box { position: relative; }
.plate-box img { display: block; width: 100%; height: auto; opacity: 0; }
.plate-canvas { position: absolute; left: -18px; top: -18px; pointer-events: none; }
.plate:not(.drawn) .plate-box img { opacity: 1; }
.plate figcaption { margin-top: 12px; font: 400 13px/1.45 var(--sans); color: var(--ink-2); }
.plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 30px; margin: 34px -40px 28px; }
.plates .plate { margin: 0; }
.plate-box { position: relative; }
.plate-box img { position: relative; }
.plate-box .plate-canvas { z-index: 1; }
.colophon { margin-top: 44px !important; padding-top: 18px; border-top: 1px solid var(--rule); font: 400 13.5px/1.55 var(--sans) !important; color: var(--ink-2); }
@media (max-width: 820px) { .plate.wide, .plates { margin-left: 0; margin-right: 0; } }
@media (max-width: 520px) { .plates { grid-template-columns: 1fr; } .paper p { font-size: 17.5px; } }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } .sec { transition: none; opacity: 1; transform: none; } }
/* torn canvases hang a few px past their boxes; never let that widen the page */
.film, .paper { overflow-x: clip; }
