/* Living Collapse: one long scroll, told like a film. Earth, ash, ochre and blood. */
:root {
  --bg: #0d0c0a;
  --bg-2: #171510;
  --bg-3: #221e17;
  --line: #3a3328;
  --ink: #efe7d6;
  --muted: #b7ac94;
  --ochre: #d7954a;
  --ochre-hi: #f0b46a;
  --blood: #d6573a;
  --moss: #9fab6e;
  --display: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;
  --comic: "Bangers", "Impact", "Saira Condensed", sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 clamp(1.02rem, 0.95rem + 0.35vw, 1.25rem)/1.65 var(--serif); overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: var(--ochre-hi); }
:focus-visible { outline: 3px solid var(--ochre-hi); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ochre); color: #120d07; padding: 8px 14px; font-family: var(--display); font-weight: 700; }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Scroll progress, the only chrome on the page */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 40; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--ochre), var(--blood)); transform-origin: 0 50%; transform: scaleX(0); }

/* Type */
.kicker { font-family: var(--display); font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--ochre); font-size: clamp(.78rem, .7rem + .3vw, 1rem); margin: 0 0 .8rem; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .86; letter-spacing: .005em; margin: 0; }
.big { font-size: clamp(3.2rem, 12vw, 13rem); }
.huge { font-size: clamp(3.6rem, 16vw, 17rem); }
.mid { font-size: clamp(2.2rem, 6.5vw, 6.5rem); }
.lede { font-size: clamp(1.15rem, 1rem + .8vw, 1.7rem); line-height: 1.5; max-width: 40ch; }
.muted { color: var(--muted); }
.ochre { color: var(--ochre-hi); }
.blood { color: var(--blood); }

/* The game's own line of text, quoted as dialogue */
.gameline { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 1rem + 1.4vw, 2.4rem); line-height: 1.25; color: #fff4de; max-width: 30ch; }
.gameline::before { content: "\201C"; color: var(--ochre); }
.gameline::after { content: "\201D"; color: var(--ochre); }
.gameline cite { display: block; font-style: normal; font-size: .42em; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: .7em; font-weight: 600; }

/* Film bands: full bleed, letterboxed */
.band { position: relative; width: 100%; overflow: hidden; background: #000; }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: clamp(18px, 5vh, 64px); background: #000; z-index: 3; }
.band::before { top: 0; } .band::after { bottom: 0; }
.band.no-bars::before, .band.no-bars::after { display: none; }
.cine { aspect-ratio: 21 / 9; }
@media (max-width: 700px) { .cine { aspect-ratio: 4 / 3; } }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shade::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 35%, rgba(0,0,0,.15) 60%, rgba(13,12,10,.95)); }
.band .over { position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 9vh, 110px); }
.slate { position: absolute; z-index: 5; top: clamp(4px, 1.4vh, 20px); left: var(--gutter); font-family: var(--display); font-size: clamp(.68rem, .6rem + .3vw, .9rem); letter-spacing: .3em; text-transform: uppercase; color: #9a907b; }
.slate.right { left: auto; right: var(--gutter); }

/* Ken Burns: slow push on stills */
.kb { animation: kb 26s ease-in-out infinite alternate; transform-origin: var(--kb-origin, 50% 50%); }
@keyframes kb { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.18) translate3d(var(--kb-x, -2%), var(--kb-y, -1%), 0); } }

/* Opening title card */
.open { height: 100vh; min-height: 560px; }
.open > video.fill, .open > img.fill { top: 9vh; bottom: auto; height: calc(100% - 18vh); object-position: 50% 50%; }
.open::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13,12,10,.9) 0%, rgba(13,12,10,.55) 38%, rgba(13,12,10,0) 70%), linear-gradient(180deg, transparent 70%, rgba(13,12,10,.8)); }
@media (max-width: 700px) { .open { min-height: 600px; } .open > video.fill, .open > img.fill { top: 0; bottom: 0; height: 100%; object-position: 70% 50%; } .open .slate.right { display: none; } .open::after { background: linear-gradient(180deg, rgba(13,12,10,.2) 0%, rgba(13,12,10,.35) 45%, rgba(13,12,10,.92) 85%); } .open .over { top: auto; bottom: 14vh; transform: none; } }
.open .over { bottom: auto; top: 50%; transform: translateY(-46%); text-align: left; }
.open h1 { text-shadow: 0 6px 60px rgba(0,0,0,.6); }
.open .tag { font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 1rem + 1.6vw, 2.6rem); color: var(--ochre-hi); margin: 1.2rem 0 0; max-width: 28ch; line-height: 1.15; }
.cue { position: absolute; z-index: 6; left: 50%; bottom: clamp(30px, 7vh, 80px); transform: translateX(-50%); font-family: var(--display); letter-spacing: .4em; font-size: .8rem; text-transform: uppercase; color: var(--muted); text-align: center; }
.cue::after { content: ""; display: block; width: 1px; height: 46px; margin: 10px auto 0; background: linear-gradient(var(--ochre), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Cold open: black screen, lines that arrive one by one */
.coldopen { padding: 18vh var(--gutter) 10vh; display: grid; gap: 22vh; }
.coldopen p { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 1rem + 4vw, 5.2rem); line-height: 1.02; text-transform: uppercase; max-width: 18ch; }
.coldopen p:nth-child(even) { justify-self: end; text-align: right; }
.coldopen p small { display: block; font-family: var(--serif); text-transform: none; font-weight: 400; font-size: .32em; line-height: 1.5; color: var(--muted); margin-top: .9em; max-width: 46ch; }

/* Reveal on scroll */
/* Hidden only when the script is running, so a failed script never hides the story */
.js .rv { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.1,1); }
.js .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .15s; } .rv.d2 { transition-delay: .3s; } .rv.d3 { transition-delay: .45s; }

/* Section headers */
.chapter { padding: clamp(80px, 16vh, 200px) var(--gutter) clamp(30px, 6vh, 70px); }
.chapter .num { font-family: var(--display); font-weight: 800; color: var(--ochre); font-size: clamp(1rem, .8rem + .6vw, 1.4rem); letter-spacing: .3em; }
.chapter p.lede { margin: 1.4rem 0 0; color: var(--muted); }

/* The cast: character cards */
.cast { display: grid; gap: clamp(60px, 12vh, 160px); padding: 0 0 clamp(40px, 8vh, 100px); }
.char { display: grid; grid-template-columns: 1fr; gap: 0; position: relative; }
.char[data-requires]:not(.has) { display: none; }
.char .stage { position: relative; aspect-ratio: 21 / 9; background: radial-gradient(70% 90% at 50% 60%, #2a2419 0%, #0d0c0a 70%); overflow: hidden; touch-action: pan-y; }
@media (max-width: 700px) { .char .stage { aspect-ratio: 4 / 3; } }
.char .stage video, .char .stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.char .stage.spin { cursor: grab; }
.char .stage.spin:active { cursor: grabbing; }
.spin-hint { position: absolute; z-index: 4; right: var(--gutter); bottom: clamp(26px, 6vh, 70px); font-family: var(--display); letter-spacing: .24em; text-transform: uppercase; font-size: .78rem; color: #fff1d6; background: rgba(0,0,0,.55); padding: 6px 12px; border-radius: 999px; display: none; }
.stage.spin .spin-hint { display: block; }
.char .bio { position: relative; z-index: 5; margin: clamp(-150px, -14vw, -60px) var(--gutter) 0; display: grid; gap: 18px; }
@media (min-width: 1000px) { .char .bio { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; } .char.flip .bio { direction: rtl; } .char.flip .bio > * { direction: ltr; } }
.char h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(3rem, 9vw, 9.5rem); line-height: .82; margin: 0; text-shadow: 0 6px 40px rgba(0,0,0,.8); }
.char .latin { font-style: italic; color: var(--muted); margin: .5rem 0 0; font-size: 1.05em; }
.char .gone { display: inline-block; font-family: var(--display); letter-spacing: .18em; text-transform: uppercase; font-size: .82rem; font-weight: 700; color: #14100a; background: var(--ochre); padding: 4px 10px 3px; margin-top: .8rem; }
.char .story { background: rgba(23,21,16,.92); border: 1px solid var(--line); padding: clamp(16px, 2vw, 26px); }
.char .story p { margin: 0 0 .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-family: var(--display); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); padding: 5px 10px; color: var(--ink); background: var(--bg-3); }
.chips b { color: var(--ochre-hi); font-weight: 700; }

/* The unseen: animals still in the dark */
.unseen { padding: clamp(40px, 8vh, 90px) var(--gutter) 0; }
.unseen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; margin-top: 28px; }
.ghost { position: relative; min-height: 220px; padding: 18px; background: radial-gradient(120% 80% at 50% 0%, #1f1b14, #0f0d0a); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; }
.ghost::before { content: "?"; position: absolute; right: -6px; top: -36px; font-family: var(--display); font-weight: 800; font-size: 11rem; line-height: 1; color: rgba(215,149,74,.07); }
.ghost h4 { position: relative; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: .95; margin: 0 0 .5rem; }
.ghost p { position: relative; margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.5; }
.ghost .when { position: absolute; left: 18px; bottom: 14px; font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; color: var(--ochre); }

/* Comic pages */
.comic { padding: 0 var(--gutter); display: grid; gap: clamp(10px, 1.2vw, 16px); grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; perspective: 1400px; }
.panel { position: relative; overflow: hidden; background: #000; border: 3px solid #e9dfc9; box-shadow: 0 0 0 3px #000, 0 18px 40px rgba(0,0,0,.6); min-height: 200px; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.1,1); will-change: transform; }
.panel img, .panel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel.s4 { grid-column: span 4; } .panel.s5 { grid-column: span 5; } .panel.s6 { grid-column: span 6; } .panel.s7 { grid-column: span 7; } .panel.s8 { grid-column: span 8; } .panel.s12 { grid-column: span 12; }
.panel.tall { min-height: clamp(260px, 38vw, 560px); } .panel.med { min-height: clamp(220px, 26vw, 420px); } .panel.short { min-height: clamp(180px, 18vw, 300px); }
.panel.skew-l { clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%); } .panel.skew-r { clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%); }
@media (max-width: 800px) { .comic { grid-template-columns: repeat(6, 1fr); } .panel.s4, .panel.s5, .panel.s6, .panel.s7, .panel.s8 { grid-column: span 6; } .panel.skew-l, .panel.skew-r { clip-path: none; } }
.cap { position: absolute; z-index: 3; left: 12px; top: 12px; max-width: min(78%, 34ch); background: #f1e6c8; color: #17120b; font-family: var(--display); font-weight: 600; font-size: clamp(.92rem, .8rem + .35vw, 1.15rem); line-height: 1.22; padding: 8px 11px; border: 2px solid #000; box-shadow: 3px 3px 0 #000; text-transform: none; }
.cap.bottom { top: auto; bottom: 12px; }
.cap.right { left: auto; right: 12px; }
.cap b { text-transform: uppercase; letter-spacing: .05em; }
.balloon { position: absolute; z-index: 3; right: 14px; bottom: 16px; max-width: min(70%, 30ch); background: #fff; color: #111; font-family: var(--display); font-weight: 600; font-size: clamp(.9rem, .8rem + .35vw, 1.1rem); line-height: 1.2; padding: 10px 14px; border-radius: 18px; border: 2px solid #000; }
.balloon::after { content: ""; position: absolute; left: 22px; bottom: -14px; border: 8px solid transparent; border-top: 10px solid #000; }
.balloon.top { bottom: auto; top: 14px; }
.sfx { position: absolute; z-index: 4; font-family: var(--comic); font-size: clamp(2.4rem, 6vw, 6.4rem); line-height: .9; color: #ffd27a; -webkit-text-stroke: 2px #2a1203; text-shadow: 4px 4px 0 #2a1203, 0 0 30px rgba(255,140,40,.35); transform: rotate(-8deg); pointer-events: none; letter-spacing: .02em; }
.sfx.red { color: #ff7a52; }
.panel .tag { position: absolute; z-index: 3; left: 12px; bottom: 12px; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.6rem); text-transform: uppercase; color: #fff3da; text-shadow: 0 3px 16px rgba(0,0,0,.9); line-height: .9; }
.panel .tag small { display: block; font-size: .42em; letter-spacing: .2em; color: var(--ochre-hi); margin-top: .3em; }
.panel.text { background: #15120d; display: flex; flex-direction: column; justify-content: center; padding: clamp(18px, 2.4vw, 34px); }
.panel.text p { margin: 0 0 .8rem; font-size: clamp(1rem, .9rem + .4vw, 1.25rem); }
.panel.text h4 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 1rem + 2.4vw, 3.6rem); text-transform: uppercase; line-height: .9; margin: 0 0 .7rem; color: var(--ochre-hi); }

/* Scroll-scrubbed film */
.scrub { position: relative; }
.scrub .sticky { position: relative; aspect-ratio: 1280 / 580; overflow: hidden; background: #000; }
.js .scrub { height: 300vh; }
.js .scrub .sticky { position: sticky; top: 0; height: 100vh; aspect-ratio: auto; }
.scrub video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.scrub .beats { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.scrub .beat { position: absolute; left: var(--gutter); bottom: 14vh; max-width: 30ch; opacity: 0; transition: opacity .5s ease, transform .5s ease; transform: translateY(20px); }
.scrub .beat.on { opacity: 1; transform: none; }
.scrub .beat p { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 1rem + 2.4vw, 3.6rem); line-height: 1; text-transform: uppercase; text-shadow: 0 4px 30px rgba(0,0,0,.9); }
.scrub .beat small { display: block; font-family: var(--serif); text-transform: none; font-weight: 400; font-size: clamp(1rem, .9rem + .4vw, 1.25rem); line-height: 1.45; color: #e7dcc4; margin-top: .6rem; text-shadow: 0 2px 14px rgba(0,0,0,.95); }
.scrub .meter { position: absolute; z-index: 4; right: var(--gutter); top: 50%; transform: translateY(-50%); width: 3px; height: 30vh; background: rgba(255,255,255,.15); }
.scrub .meter span { display: block; width: 100%; height: 100%; background: var(--blood); transform-origin: 50% 0; transform: scaleY(0); }

/* Film strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78vw, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 18px; }
@media (min-width: 900px) { .strip { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.strip figure { margin: 0; scroll-snap-align: start; background: var(--bg-2); border: 1px solid var(--line); }
.strip img { width: 100%; aspect-ratio: 340 / 200; object-fit: cover; }
.strip figcaption { padding: 12px 14px 16px; font-size: .98rem; color: var(--muted); line-height: 1.45; }
.strip figcaption b { display: block; font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; color: var(--ink); line-height: 1; margin-bottom: .3rem; }
.strip .t { font-family: var(--display); color: var(--ochre); letter-spacing: .2em; font-size: .75rem; }

/* Two-column story text beside media */
.split { display: grid; gap: clamp(20px, 4vw, 60px); padding: clamp(40px, 8vh, 100px) var(--gutter); align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; } .split.r > :first-child { order: 2; } }
.split .media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: #000; }
.split .media video, .split .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 1rem + 4vw, 5rem); line-height: .88; margin: 0 0 1rem; }
.split p { margin: 0 0 1rem; max-width: 46ch; }

/* Map */
.map-wrap { padding: 0 var(--gutter); }
.map { position: relative; display: grid; gap: 18px; }
@media (min-width: 1000px) { .map { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.map-board { position: relative; background: #10130c; border: 1px solid var(--line); overflow: hidden; }
.map-board svg { display: block; width: 100%; height: auto; }
.map-board .base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hot { cursor: pointer; }
.hot circle.ring { fill: rgba(215,149,74,.18); stroke: var(--ochre-hi); stroke-width: 2; transition: r .25s, fill .25s; }
.hot circle.dot { fill: var(--ochre-hi); }
.hot text { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; fill: #f4ead3; paint-order: stroke; stroke: #0b0a08; stroke-width: 4px; }
.hot:hover circle.ring, .hot:focus circle.ring, .hot.on circle.ring { fill: rgba(240,180,106,.45); }
.hot:focus { outline: none; }
.hot:focus-visible circle.ring { stroke-width: 4; }
.map-card { background: var(--bg-2); border: 1px solid var(--line); }
.map-card .media { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.map-card .media img, .map-card .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-card .body { padding: 16px 18px 20px; }
.map-card h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 1rem + 2vw, 3rem); line-height: .9; margin: 0 0 .5rem; }
.map-card .where { font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); font-size: .85rem; margin: 0 0 .7rem; }
.map-card p { margin: 0; color: var(--muted); }
.map-note { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }

/* Night */
.night { background: radial-gradient(90% 60% at 50% 30%, #121822 0%, #07080a 70%); }
.endcard { padding: clamp(80px, 18vh, 220px) var(--gutter); text-align: center; }
.endcard p.card { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 1rem + 3vw, 4.4rem); line-height: 1.08; margin: 0 auto; max-width: 22ch; color: #f2ead9; }
.endcard .btn { display: inline-block; margin-top: 2rem; font-family: var(--display); font-weight: 700; letter-spacing: .14em; background: #2c4a3a; color: #e8f0e4; padding: 14px 26px; font-size: clamp(.9rem, .8rem + .4vw, 1.2rem); }
.endcard .sub { margin: 2.2rem auto 0; max-width: 46ch; color: var(--muted); }

/* 3D depth corridor of frames */
.depth { position: relative; height: 420vh; }
html:not(.js) .depth { height: auto; }
html:not(.js) .depth .world { position: relative; display: grid; gap: 40px; padding: 140px var(--gutter) 60px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); left: auto; top: auto; width: auto; height: auto; }
html:not(.js) .depth .plane { position: relative; width: 100%; }
html:not(.js) .depth .sticky { position: relative; height: auto; }
.depth .sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; perspective: 900px; perspective-origin: 50% 45%; background: radial-gradient(60% 60% at 50% 45%, #1d1912, #070605); }
.depth .world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.depth .plane { position: absolute; width: min(56vw, 760px); aspect-ratio: 932 / 430; left: 0; top: 0; border: 2px solid rgba(240,225,195,.6); box-shadow: 0 30px 80px rgba(0,0,0,.7); background: #000; backface-visibility: hidden; }
.depth .plane img { width: 100%; height: 100%; object-fit: cover; }
.depth .plane span { position: absolute; left: 10px; bottom: -30px; font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; color: var(--ochre-hi); white-space: nowrap; }
.depth .title { position: absolute; z-index: 5; left: var(--gutter); top: clamp(30px, 8vh, 90px); pointer-events: none; }
@media (max-width: 700px) { .depth .plane { width: 84vw; } }

/* Cliffhanger */
.cliff { position: relative; padding: clamp(100px, 20vh, 240px) var(--gutter) clamp(60px, 12vh, 140px); background: linear-gradient(180deg, var(--bg), #120707 60%, #080404); overflow: hidden; }
.cliff .rows { display: grid; gap: clamp(50px, 10vh, 120px); margin-top: clamp(50px, 10vh, 120px); }
.cliff .row { display: grid; gap: 10px; max-width: 54rem; }
.cliff .row:nth-child(even) { justify-self: end; text-align: right; }
.cliff .row h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 1rem + 5vw, 6.4rem); line-height: .86; margin: 0; }
.cliff .row p { margin: 0; color: var(--muted); max-width: 44ch; }
.cliff .row:nth-child(even) p { margin-left: auto; }
.cliff .row .v { font-family: var(--display); letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; color: var(--blood); }
.last { margin-top: clamp(80px, 16vh, 200px); text-align: center; }
.last p { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 1rem + 6vw, 8rem); line-height: .86; margin: 0; }

/* Reels: the full demos */
.reels { padding: clamp(60px, 12vh, 140px) var(--gutter) 30px; }
.reel-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 24px; }
.reel-row figure { margin: 0; background: var(--bg-2); border: 1px solid var(--line); }
.reel-row video { width: 100%; aspect-ratio: 932 / 430; background: #000; }
.reel-row figcaption { padding: 10px 14px 14px; font-size: .95rem; color: var(--muted); }
.reel-row figcaption b { color: var(--ink); font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.1rem; display: block; }

footer { padding: 40px var(--gutter) 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
footer p { margin: 0 0 .6rem; max-width: 70ch; }
footer .mark { display: flex; align-items: center; gap: 10px; font-family: var(--display); color: var(--ink); font-size: 1.1rem; letter-spacing: .04em; }

/* Reduced motion: everything still, nothing autoplaying */
@media (prefers-reduced-motion: reduce) {
  .kb, .cue::after { animation: none !important; }
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .panel { transition: none; }
  .js .scrub { height: auto; } .js .scrub .sticky { position: relative; height: auto; aspect-ratio: 1280 / 580; } .scrub .beat { position: relative; opacity: 1; transform: none; left: auto; bottom: auto; padding: 16px var(--gutter); }
  .scrub .beats { position: relative; background: var(--bg); }
  .depth { height: auto; } .depth .sticky { position: relative; height: auto; perspective: none; padding: 120px var(--gutter) 40px; }
  .depth .world { position: relative; left: auto; top: auto; width: auto; height: auto; display: grid; gap: 40px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); transform: none !important; }
  .depth .plane { position: relative; width: 100%; transform: none !important; }
}

/* Bestiary: a compiled 3D viewer, shown only when published, loaded only on request */
.bestiary { padding: 0 var(--gutter) clamp(50px, 10vh, 120px); }
.bestiary-stage { position: relative; aspect-ratio: 21 / 9; min-height: 420px; background: #000; border: 1px solid var(--line); overflow: hidden; }
.bestiary-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.bestiary-stage .go { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 14px; z-index: 2; }
.bestiary-stage button { font-family: var(--display); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: clamp(1rem, .8rem + .8vw, 1.5rem); background: var(--ochre); color: #140e07; border: 0; padding: 16px 30px; cursor: pointer; }
.bestiary-stage button:hover { background: var(--ochre-hi); }
.bestiary-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Phone title card: the herd in the top half, the title on dark ground below it */
@media (max-width: 700px) {
  .open > video.fill, .open > img.fill { top: 0; bottom: 42%; height: 58%; object-position: 82% 50%; }
  .open::after { background: linear-gradient(180deg, rgba(13,12,10,0) 0%, rgba(13,12,10,0) 40%, rgba(13,12,10,.9) 58%, #0d0c0a 72%); }
  .open .over { top: auto; transform: none; bottom: 9vh; }
}

/* The title's reading gradient lives on ::after, which the letterbox bars otherwise switch off */
.band.open.no-bars::after { display: block; top: 0; bottom: 0; height: auto; z-index: 1; }
