:root {
  --ink: #080908;
  --paper: #e9e5db;
  --muted: #9c9b92;
  --line: rgba(233, 229, 219, 0.18);
  --brass: #b49a6a;
  --acid: #d6d0b0;
  --mono: "DM Mono", ui-monospace, monospace;
  --sans: "Manrope", ui-sans-serif, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --global-progress: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--sans); overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 50; padding: .75rem 1rem; color: var(--ink); background: var(--paper); }
.skip-link:focus { top: 1rem; }
.loader { position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; gap: 1rem; padding: 2rem; background: var(--ink); color: var(--muted); font: 10px var(--mono); letter-spacing: .16em; transition: opacity .8s ease, visibility .8s ease; }
.loader i { display: block; width: min(18rem, 60vw); height: 1px; overflow: hidden; background: var(--line); }
.loader i::after { content: ""; display: block; width: 38%; height: 100%; background: var(--acid); animation: load 1.8s ease-in-out infinite; }
.loader.is-complete { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes load { from { transform: translateX(-120%); } to { transform: translateX(360%); } }
.site-header { position: fixed; inset: 0 0 auto; z-index: 25; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding: 1.5rem clamp(1.2rem, 3vw, 3.8rem); pointer-events: none; mix-blend-mode: difference; }
.site-header a, .site-header .header-meta { pointer-events: auto; }
.wordmark { display: grid; width: max-content; font: 11px/1.2 var(--mono); letter-spacing: .15em; text-decoration: none; }
.wordmark span:last-child { color: var(--brass); }
.header-meta { display: flex; gap: 2rem; color: var(--muted); font: 10px var(--mono); letter-spacing: .12em; }
.header-link { justify-self: end; font: 10px var(--mono); letter-spacing: .15em; text-decoration: none; color: var(--muted); }
.header-link span { color: var(--brass); }
.chapter { min-height: 210vh; position: relative; }
.chapter__stage { position: sticky; top: 0; height: 100svh; min-height: 42rem; overflow: hidden; background: #070807; }
.chapter__stage canvas, .chapter__poster, .chapter__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter__stage canvas { z-index: 1; }
.chapter__poster { z-index: 0; opacity: .001; pointer-events: none; }
.chapter__stage video { z-index: 1; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .7s ease, visibility .7s ease; }
.chapter--video [data-cinematic-canvas] { opacity: 1; transition: opacity .7s ease; }
.chapter--video.is-video-ready [data-cinematic-canvas] { opacity: 0; }
.chapter--video.is-video-ready [data-cinematic-video] { visibility: visible; opacity: 1; }
.stage-vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(7,8,7,.92) 0%, rgba(7,8,7,.48) 28%, rgba(7,8,7,.05) 62%, rgba(7,8,7,.35) 100%), linear-gradient(0deg, rgba(7,8,7,.62), transparent 25%, rgba(7,8,7,.18)); }
.eyebrow { margin: 0 0 1.3rem; color: var(--brass); font: 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.hero-copy { position: absolute; z-index: 4; left: clamp(1.4rem, 8vw, 9rem); top: 50%; width: min(34rem, 38vw); transform: translateY(-44%); }
h1, h2 { margin: 0; font: 400 clamp(3.8rem, 7.8vw, 9.6rem)/.9 var(--serif); letter-spacing: -.055em; }
h1 em, h2 em { color: var(--acid); font-style: italic; }
.hero-copy__body { max-width: 21rem; margin: 2rem 0 0; color: rgba(233,229,219,.68); font-size: clamp(.95rem, 1.25vw, 1.1rem); line-height: 1.65; }
.hero-copy__actions { display: grid; gap: 2rem; margin-top: 3rem; }
.text-link { display: inline-flex; align-items: center; gap: 1rem; width: max-content; padding-bottom: .55rem; border-bottom: 1px solid rgba(233,229,219,.45); font-size: .76rem; letter-spacing: .03em; text-decoration: none; }
.text-link span { color: var(--brass); font-size: 1rem; transition: transform .2s ease; }
.text-link:hover span, .text-link:focus-visible span { transform: translate(3px, 3px); }
.quiet-label { max-width: 15rem; color: rgba(233,229,219,.38); font: 9px/1.5 var(--mono); letter-spacing: .1em; }
.hero-index { position: absolute; z-index: 4; right: clamp(1.4rem, 3vw, 3.8rem); top: 50%; display: grid; gap: .6rem; color: var(--muted); font: 10px var(--mono); transform: translateY(-50%); }
.hero-index span:first-child { color: var(--paper); }
.scrub-cue { position: absolute; z-index: 4; left: clamp(1.4rem, 8vw, 9rem); bottom: 2.2rem; display: flex; align-items: center; gap: 1rem; color: rgba(233,229,219,.46); font: 9px var(--mono); letter-spacing: .14em; }
.scrub-cue i { display: block; width: 6rem; height: 1px; background: var(--brass); transform-origin: left; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleX(.2); opacity: .3; } 50% { transform: scaleX(1); opacity: 1; } }
.chapter-progress { position: absolute; z-index: 4; right: clamp(1.4rem, 3vw, 3.8rem); bottom: 2.2rem; display: grid; gap: .55rem; width: 6rem; color: rgba(233,229,219,.46); font: 9px var(--mono); text-align: right; }
.chapter-progress i { display: block; width: 100%; height: 1px; overflow: hidden; background: var(--line); transform-origin: left; }
.chapter-progress i::after { content: ""; display: block; width: 100%; height: 100%; background: var(--brass); }
.interlude { display: grid; grid-template-columns: minmax(5rem, 1fr) minmax(16rem, 1.8fr) minmax(16rem, 1fr); gap: clamp(1.5rem, 4vw, 5rem); min-height: 68vh; align-items: center; padding: 12rem clamp(1.4rem, 8vw, 9rem); background: linear-gradient(#080908,#0d0e0d); }
.interlude__rule { align-self: start; width: 1px; height: 8rem; margin-top: 1rem; background: var(--brass); }
.interlude h2 { font-size: clamp(3.6rem, 7vw, 8rem); }
.interlude > p:last-child { max-width: 19rem; margin-top: 7rem; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.chapter--anatomy { min-height: 220vh; }
.chapter--anatomy .chapter__stage, .chapter--reassembly .chapter__stage, .chapter--surface .chapter__stage { background: radial-gradient(circle at 76% 45%, #1a1b18 0, #0b0c0b 33%, #070807 72%); }
.chapter__grid { position: absolute; inset: 0; z-index: 2; opacity: .2; background-image: linear-gradient(rgba(233,229,219,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(233,229,219,.12) 1px, transparent 1px); background-size: 5rem 5rem; mask-image: linear-gradient(90deg, #000, transparent 70%); pointer-events: none; }
.chapter__copy { position: absolute; z-index: 4; top: 50%; width: min(27rem, 30vw); transform: translateY(-50%); }
.chapter__copy--left { left: clamp(1.4rem, 8vw, 9rem); }
.chapter__copy--right { right: clamp(1.4rem, 8vw, 9rem); }
.chapter--anatomy .chapter__copy, .chapter--reassembly .chapter__copy, .chapter--surface .chapter__copy { padding: 2rem 4rem 2rem 0; background: linear-gradient(90deg, rgba(7,8,7,.9) 0%, rgba(7,8,7,.72) 68%, transparent 100%); }
.chapter__copy h2 { font-size: clamp(3.4rem, 6.4vw, 8rem); }
.chapter__copy > p:not(.eyebrow) { max-width: 19rem; margin: 2rem 0 0; color: rgba(233,229,219,.62); font-size: .9rem; line-height: 1.8; }
.spec-list { display: grid; gap: .75rem; margin-top: 2.4rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); letter-spacing: .04em; }
.spec-list span { display: flex; gap: .75rem; }
.spec-list b { color: var(--brass); font-weight: 400; }
.ghost-label { position: absolute; z-index: 4; display: flex; align-items: center; gap: .8rem; color: rgba(233,229,219,.5); font: 9px var(--mono); letter-spacing: .12em; }
.ghost-label i { display: block; width: 4rem; height: 1px; background: var(--brass); }
.ghost-label--one { top: 32%; left: 47%; }
.ghost-label--two { bottom: 29%; left: 52%; }
.reassembly-ring { position: absolute; z-index: 3; top: 50%; left: 50%; width: min(34rem, 45vw); aspect-ratio: 1; border: 1px solid rgba(180,154,106,.3); border-radius: 50%; transform: translate(-50%, -50%); color: rgba(180,154,106,.65); font: 9px var(--mono); letter-spacing: .14em; }
.reassembly-ring::before, .reassembly-ring::after { content: ""; position: absolute; inset: 10%; border: 1px dashed rgba(233,229,219,.14); border-radius: 50%; }
.reassembly-ring::after { inset: 48%; background: var(--brass); border: 0; border-radius: 50%; }
.reassembly-ring span { position: absolute; top: 50%; left: -1.5rem; transform: rotate(-90deg); transform-origin: right center; }
.surface-mask { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(7,8,7,.92), transparent 38%, rgba(7,8,7,.1)); pointer-events: none; }
.chapter__copy--bottom { top: auto; bottom: 11rem; transform: none; }
.material-notes { position: absolute; z-index: 4; right: clamp(1.4rem, 8vw, 9rem); bottom: 11rem; display: grid; gap: .7rem; color: rgba(233,229,219,.5); font: 9px var(--mono); letter-spacing: .12em; text-align: right; }
.material-notes span::before { content: "—"; margin-right: .6rem; color: var(--brass); }
.notes { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(15rem, .7fr); gap: 4rem; padding: 12rem clamp(1.4rem, 8vw, 9rem) 10rem; background: var(--paper); color: var(--ink); }
.notes .eyebrow { color: #75613e; }
.notes h2 { max-width: 56rem; font-size: clamp(3.5rem, 7vw, 8.8rem); }
.notes h2 em { color: #75613e; }
.notes__aside { align-self: end; max-width: 22rem; }
.notes__aside p { margin: 0 0 2rem; color: rgba(8,9,8,.62); font-size: .9rem; line-height: 1.8; }
.notes .text-link { border-color: rgba(8,9,8,.45); }
.notes .text-link span { color: #75613e; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(1.4rem, 3vw, 3.8rem); background: var(--paper); color: rgba(8,9,8,.48); font: 9px var(--mono); letter-spacing: .1em; }

@media (max-width: 60rem) {
  .header-meta { display: none; }
  .hero-copy { width: min(30rem, 60vw); }
  .chapter__copy { width: min(24rem, 38vw); }
  .interlude { grid-template-columns: 2rem minmax(14rem, 1fr); }
  .interlude .eyebrow, .interlude h2, .interlude > p:last-child { grid-column: 2; }
  .interlude > p:last-child { margin-top: 0; }
}

@media (max-width: 48rem) {
  .site-header { padding: 1.1rem 1.2rem; }
  .header-link { font-size: 9px; }
  .chapter, .chapter--anatomy { min-height: 145svh; }
  .chapter__stage { height: 100svh; min-height: 38rem; }
  .stage-vignette { background: linear-gradient(0deg, rgba(7,8,7,.9) 0%, rgba(7,8,7,.35) 37%, transparent 75%); }
  .hero-copy { top: auto; bottom: 6rem; left: 1.2rem; width: calc(100% - 2.4rem); transform: none; }
  h1, h2 { font-size: clamp(3.7rem, 17vw, 6.8rem); }
  .hero-copy__body { max-width: 19rem; margin-top: 1.3rem; font-size: .86rem; }
  .hero-copy__actions { gap: 1.3rem; margin-top: 1.8rem; }
  .hero-index { top: 7rem; right: 1.2rem; transform: none; }
  .scrub-cue { left: 1.2rem; bottom: 2rem; }
  .chapter-progress { right: 1.2rem; bottom: 2rem; width: 4rem; }
  .interlude { display: block; min-height: 70vh; padding: 8rem 1.2rem; }
  .interlude__rule { width: 4rem; height: 1px; margin-bottom: 3rem; }
  .interlude h2 { font-size: clamp(3.4rem, 15vw, 5.7rem); }
  .interlude > p:last-child { max-width: 18rem; margin: 2rem 0 0 5rem; font-size: .84rem; }
  .chapter__copy, .chapter__copy--left, .chapter__copy--right { left: 1.2rem; right: auto; top: auto; bottom: 6rem; width: calc(100% - 2.4rem); transform: none; }
  .chapter--anatomy .chapter__copy, .chapter--reassembly .chapter__copy, .chapter--surface .chapter__copy { padding: 1rem 1.2rem 1rem 0; background: linear-gradient(90deg, rgba(7,8,7,.92), rgba(7,8,7,.42) 82%, transparent); }
  .chapter__copy h2 { font-size: clamp(3.4rem, 15vw, 5.7rem); }
  .chapter__copy > p:not(.eyebrow) { max-width: 18rem; margin-top: 1.2rem; font-size: .84rem; }
  .spec-list { max-width: 19rem; margin-top: 1.5rem; }
  .ghost-label { display: none; }
  .reassembly-ring { width: 70vw; top: 39%; left: 50%; }
  .material-notes { right: 1.2rem; bottom: 2rem; gap: .4rem; font-size: 8px; }
  .chapter--surface .chapter__copy--bottom { bottom: 8rem; }
  .notes { display: block; padding: 8rem 1.2rem 6rem; }
  .notes h2 { font-size: clamp(3.5rem, 15vw, 6rem); }
  .notes__aside { margin: 4rem 0 0 5rem; }
  .site-footer { display: grid; gap: .55rem; padding: 1.4rem 1.2rem; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader i::after, .scrub-cue i { animation: none; }
}
