/* Shadows of Cardonia — Homepage V2.2 prototype.
   Scroll moves the page; interaction moves the world. Normal sections in document flow,
   with four signature interactions inside them: Cause & Effect, the 50,000 field, the 168 graph, the rumour. */

:root {
  --ink: #050506;
  --ink-2: #09090b;
  --ink-3: #0e0e11;
  --panel: #07070a;
  --bone: #e7e1d6;
  --bone-2: rgba(231, 225, 214, .76);
  --bone-3: rgba(231, 225, 214, .52);
  --bone-4: rgba(231, 225, 214, .3);
  --hair: rgba(231, 225, 214, .14);
  --hair-2: rgba(231, 225, 214, .07);
  --ash: #8e8a83;
  --ember: #d08a4e;
  --ember-hot: #f0b07a;
  --steel: #8fa0ae;
  --blood: #a1412f;
  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(.16, .84, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 64px);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color: var(--bone); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.is-locked, html.is-locked body { overflow: hidden; height: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6; background: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: rgba(208, 138, 78, .35); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 1px solid var(--ember-hot); outline-offset: 4px; }

.visually-hidden, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 300; top: 12px; left: 12px; padding: 10px 14px; background: var(--bone); color: var(--ink); font-size: 13px; }
.nojs-only { display: none; }
.no-js .nojs-only { display: block; max-width: 640px; margin: 2rem auto; font-size: 15px; color: var(--bone-2); }
.no-js .nojs-only ol { list-style: decimal; padding-left: 1.4em; margin: 1em 0; }
.film-src { position: fixed; width: 2px; height: 2px; opacity: 0; pointer-events: none; left: 0; top: 0; }

/* ---------------- layout ---------------- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: 1520px; }
.block { position: relative; padding: clamp(88px, 12vh, 160px) 0; }
.block + .block { border-top: 1px solid var(--hair-2); }
.block__head { max-width: 860px; margin-bottom: clamp(36px, 5vh, 64px); }

.eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--bone-3); margin-bottom: 22px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--ember); opacity: .8; }
.kicker { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--ember-hot); margin-bottom: 14px; font-weight: 500; }
.display { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.4vw, 86px); line-height: 1.02; letter-spacing: .03em; text-transform: uppercase; color: var(--bone); text-wrap: balance; }
.display--sm { font-size: clamp(30px, 3.6vw, 56px); line-height: 1.06; }
.lead { margin-top: 24px; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.62; color: var(--bone-2); max-width: 62ch; }
.note { margin-top: 16px; font-size: 12px; line-height: 1.55; color: var(--bone-3); max-width: 70ch; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* scroll reveal (a single fade, never pinning) */
.reveal { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.reduced .reveal { transform: none; transition-duration: .5s; }

/* ---------------- buttons ---------------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 14px 28px; font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; border: 1px solid rgba(231, 225, 214, .38); color: var(--bone); transition: border-color .4s, color .4s; overflow: hidden; isolation: isolate; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bone); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--bone); }
.btn--solid { background: rgba(231, 225, 214, .93); color: var(--ink); border-color: transparent; }
.btn--solid::before { background: #fff; }
.btn--line { border-color: rgba(231, 225, 214, .32); }
.btn--act { border-color: rgba(240, 176, 122, .6); color: var(--ember-hot); }
.btn--act::before { background: var(--ember); }
.btn--act:hover, .btn--act:focus-visible { color: #120c08; border-color: var(--ember); }
.btn--link { border: 0; padding: 10px 2px; min-height: 40px; color: var(--bone-2); font-weight: 400; letter-spacing: .2em; }
.btn--link::before { top: auto; height: 1px; bottom: 6px; background: var(--bone-3); transform: scaleX(1); opacity: .5; }
.btn--link:hover, .btn--link:focus-visible { color: var(--bone); }
.btn--link[aria-pressed="true"] { color: var(--ember-hot); }
.btn--big { padding: 18px 36px; font-size: 12px; }
.btn__steam { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.tool { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; padding: 8px 12px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-2); border: 1px solid var(--hair); background: rgba(5, 5, 6, .55); transition: color .3s, border-color .3s; }
.tool svg { width: 16px; height: 16px; flex: none; }
.tool:hover, .tool:focus-visible { color: var(--bone); border-color: var(--bone-3); }
.tool[disabled] { opacity: .32; pointer-events: none; }
.tool--icon { padding: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 12px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--bone-3); border: 1px solid var(--hair-2); transition: color .3s, border-color .3s, background .3s; }
.chip[aria-pressed="true"] { color: var(--bone); border-color: var(--hair); background: rgba(231, 225, 214, .04); }
.chip:hover { color: var(--bone); }

/* ---------------- navigation ---------------- */
.nav { position: fixed; z-index: 120; top: 0; left: 0; right: 0; height: var(--nav-h); display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter); color: var(--bone); opacity: 0; transform: translateY(-8px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), background-color .5s, border-color .5s; pointer-events: none; border-bottom: 1px solid transparent; }
.is-revealed .nav { opacity: 1; transform: none; pointer-events: auto; }
.nav.is-solid { background: rgba(6, 6, 8, .88); border-bottom-color: var(--hair-2); }
.nav__brand { font-family: var(--serif); font-size: 19px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; font-weight: 500; white-space: nowrap; margin-right: auto; }
.nav__brand span { font-size: .62em; letter-spacing: .3em; opacity: .7; margin-right: .3em; }
.nav__list { display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; }
.nav__list a { position: relative; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--bone-2); transition: color .3s; padding: 8px 0; font-weight: 400; }
.nav__list a:hover, .nav__list a.is-current { color: var(--bone); }
.nav__list a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--ember-hot); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.nav__list a.is-current::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__steam { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; border: 1px solid rgba(231, 225, 214, .5); padding: 8px 14px; transition: background .3s, color .3s; }
.nav__steam:hover { background: var(--bone); color: var(--ink); }
.sound { display: flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-3); padding: 8px 0; }
.sound__bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; opacity: .7; transition: height .3s; }
.sound[aria-pressed="true"] { color: var(--bone-2); }
.sound[aria-pressed="true"] .sound__bars i { animation: bar 1.1s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.4s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.8s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.2s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(5) { animation-delay: -.6s; }
@keyframes bar { from { height: 3px; } to { height: 12px; } }
.nav__menu { display: none; width: 34px; height: 30px; position: relative; }
.nav__menu span { position: absolute; left: 6px; right: 6px; height: 1px; background: currentColor; transition: transform .4s var(--ease-out); }
.nav__menu span:first-child { top: 11px; }
.nav__menu span:nth-child(2) { top: 18px; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 110; background: rgba(5, 5, 6, .97); display: flex; align-items: center; justify-content: center; }
.menu[hidden] { display: none; }
.menu ul { display: grid; gap: 18px; text-align: center; }
.menu a { font-family: var(--serif); font-size: 30px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }

/* ---------------- opening ---------------- */
.gate { position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center; transition: opacity 1.1s ease; }
.gate.is-leaving { opacity: 0; pointer-events: none; }
.gate[hidden] { display: none; }
.gate__smoke { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.gate__center { position: relative; display: grid; justify-items: center; gap: 18px; text-align: center; }
.gate__enter { position: relative; padding: 18px 8px 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2.1vw, 28px); letter-spacing: .5em; text-transform: uppercase; color: var(--bone); text-indent: .5em; }
.gate__word { display: inline-block; white-space: nowrap; }
.gate__word .ch { display: inline-block; transition: opacity 1.2s var(--ease-out), transform 1.6s var(--ease-out), filter 1.2s; }
.gate__enter:hover .gate__word, .gate__enter:focus-visible .gate__word { text-shadow: 0 0 22px rgba(240, 176, 122, .28); }
.gate__line { position: absolute; left: 50%; bottom: 8px; width: 46%; height: 1px; background: linear-gradient(90deg, transparent, rgba(231, 225, 214, .55), transparent); transform: translateX(-50%) scaleX(.6); animation: breathe 5s ease-in-out infinite; }
.gate__enter:hover .gate__line { animation-duration: 2.4s; }
@keyframes breathe { 0%, 100% { transform: translateX(-50%) scaleX(.45); opacity: .5; } 50% { transform: translateX(-50%) scaleX(1); opacity: 1; } }
.gate__sound { font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--bone-3); margin-top: -6px; }
.gate__quiet { margin-top: 26px; font-size: 11px; letter-spacing: .14em; color: rgba(231, 225, 214, .3); transition: color .3s; padding: 6px 10px; }
.gate__quiet:hover, .gate__quiet:focus-visible { color: var(--bone-2); }
.gate.is-leaving .gate__word .ch { opacity: 0; filter: blur(10px); }
.gate.is-leaving .gate__sound, .gate.is-leaving .gate__quiet, .gate.is-leaving .gate__line { opacity: 0; transition: opacity .5s; }

.prologue { position: fixed; inset: 0; z-index: 190; display: none; pointer-events: none; background: #000; }
.prologue.is-on { display: block; }
.prologue.is-done { background: transparent; }
.prologue__line { position: absolute; left: 50%; top: 50%; width: min(92vw, 1100px); transform: translate(-50%, -50%); text-align: center; font-family: var(--serif); font-weight: 300; font-size: clamp(27px, 4.1vw, 62px); line-height: 1.16; letter-spacing: .01em; color: var(--bone); }
.prologue__line > span { display: block; }
.prologue__line .w { display: inline-block; opacity: 0; filter: blur(12px); transform: translate3d(0, .18em, 0); transition: opacity .7s var(--ease-out), filter .8s var(--ease-out), transform 1.2s var(--ease-out); white-space: pre; }
.prologue__line.is-on .w { opacity: 1; filter: blur(0); transform: none; }
.prologue__line.is-fading .w { opacity: 0; filter: blur(10px); transform: translate3d(0, -.22em, 0); transition-duration: .8s, .8s, .9s; transition-delay: 0s !important; }
.prologue__line.is-gone .w { opacity: 0; filter: blur(12px); transition-duration: .5s; transition-delay: 0s !important; }
.prologue__line b { font-weight: inherit; }
.prologue__ember { position: absolute; font-family: var(--serif); font-weight: 300; color: var(--bone); opacity: .55; transition: left 2.6s var(--ease-io), top 2.6s var(--ease-io), font-size 2.6s var(--ease-io), opacity 2.2s, filter 2s; filter: blur(.4px); white-space: nowrap; line-height: 1; }
.prologue__ember.is-on { opacity: .3; }
.prologue__ember.is-out { opacity: 0; filter: blur(8px); transition-duration: 1.2s; }
.prologue__skip { position: absolute; right: var(--gutter); bottom: max(26px, env(safe-area-inset-bottom)); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(231, 225, 214, .3); pointer-events: auto; opacity: 0; transition: opacity 1.2s 2s, color .3s; padding: 8px; }
.prologue.is-on .prologue__skip { opacity: 1; }
.prologue__skip:hover, .prologue__skip:focus-visible { color: var(--bone-2); }
.prologue.is-done .prologue__skip { display: none; }

/* ---------------- hero ---------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; display: grid; place-items: center; overflow: hidden; background: #000; }
.film { position: absolute; inset: 0; width: 100%; height: 100%; }
.no-webgl .film { display: none; }
.no-webgl .film-src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: none; }
.hero__ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 22vh; background: linear-gradient(transparent, var(--ink)); pointer-events: none; }
.hero__copy { position: relative; z-index: 3; text-align: center; display: grid; justify-items: center; padding: 0 var(--gutter); }
.hero__title { font-family: var(--serif); font-weight: 400; color: var(--bone); text-transform: uppercase; line-height: .92; display: grid; justify-items: center; }
.hero__of { font-size: clamp(14px, 1.5vw, 22px); letter-spacing: .62em; text-indent: .62em; font-weight: 500; color: var(--bone); opacity: .88; margin-bottom: clamp(8px, 1.1vw, 16px); --d: 0ms; }
.hero__name { font-size: clamp(54px, 11.4vw, 184px); letter-spacing: .14em; text-indent: .14em; font-weight: 300; --d: 650ms; }
.hero__title .ch { display: inline-block; opacity: 0; filter: blur(18px); transform: translate3d(0, .1em, 0) scale(1.06); transition: opacity 2.4s var(--ease-out), filter 2.6s var(--ease-out), transform 3s var(--ease-out); transition-delay: calc(var(--i) * 75ms + var(--d, 0ms)); }
.hero__title.is-on .ch { opacity: 1; filter: blur(0); transform: none; }
.hero__lead { margin-top: clamp(20px, 2.6vw, 34px); font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.1vw, 31px); color: var(--bone); }
.hero__stat { margin-top: 10px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--bone-2); }
.hero__cta { margin-top: clamp(30px, 4vw, 52px); display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.fade-up { opacity: 0; transform: translateY(10px); transition: opacity 1.6s var(--ease-out), transform 1.6s var(--ease-out); }
.fade-up.is-on { opacity: 1; transform: none; }
.hero__cue { position: absolute; z-index: 3; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 10px; font-size: 9.5px; letter-spacing: .4em; text-transform: uppercase; color: var(--bone-3); text-decoration: none; transform: translateX(-50%); }
.hero__cue.is-on { transform: translateX(-50%); }
.hero__cue i { width: 1px; height: 38px; background: linear-gradient(var(--bone-3), transparent); animation: cue 2.6s var(--ease-io) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------------- what is cardonia ---------------- */
.about { background: radial-gradient(ellipse at 18% 0%, rgba(208, 138, 78, .06), transparent 50%), var(--ink); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: end; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--hair); }
.fact { display: grid; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.fact__big { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; text-transform: uppercase; letter-spacing: .04em; }
.fact__small { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ember-hot); }

/* ---------------- interactive stages ---------------- */
.stage { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #0c0c0f, #050506 78%); border: 1px solid var(--hair); }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__bar { position: absolute; z-index: 7; top: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(rgba(5, 5, 6, .9), rgba(5, 5, 6, 0)); }
.stage__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.stage__hint { position: absolute; z-index: 5; right: 16px; bottom: 12px; font-size: 11px; letter-spacing: .06em; color: var(--bone-3); pointer-events: none; transition: opacity .5s; }

/* ---------------- cause & effect ---------------- */
.cause__stage { height: clamp(560px, 78vh, 840px); }
.cause__stage .stage__canvas { cursor: grab; }
.cause__stage.is-panning .stage__canvas { cursor: grabbing; }
.tabs { display: flex; gap: 6px; }
.tab { display: grid; gap: 2px; text-align: left; padding: 9px 14px; border: 1px solid var(--hair-2); background: rgba(5, 5, 6, .6); color: var(--bone-3); transition: color .3s, border-color .3s, background .3s; }
.tab b { font-weight: 500; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; }
.tab span { font-family: var(--serif); font-size: 16px; letter-spacing: .01em; line-height: 1.1; }
.tab[aria-selected="true"] { color: var(--bone); border-color: rgba(240, 176, 122, .5); background: rgba(208, 138, 78, .07); }
.tab[aria-selected="true"] b { color: var(--ember-hot); }
.tab:hover { color: var(--bone); }
.cause__nodes { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.cnode { position: absolute; left: 0; top: 0; pointer-events: auto; transform: translate3d(var(--x), var(--y), 0); display: flex; align-items: center; gap: 10px; padding: 8px; margin: -20px 0 0 -20px; opacity: 0; transition: opacity .6s var(--ease-out); white-space: nowrap; }
.cnode.is-on { opacity: 1; }
.cnode:not(.is-on) { pointer-events: none; }
.cnode__dot { width: 24px; height: 24px; flex: none; border-radius: 50%; }
.cnode__label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(231, 225, 214, .86); text-shadow: 0 0 12px #000, 0 0 3px #000; transition: color .3s; }
.cnode[data-why] { cursor: pointer; }
.cnode[data-why]:hover .cnode__label, .cnode[data-why]:focus-visible .cnode__label { color: var(--ember-hot); }
.cnode[data-why] .cnode__label::after { content: ' ?'; color: var(--ember); }
.cnode.is-left { flex-direction: row-reverse; transform: translate3d(calc(var(--x) - 100%), var(--y), 0); margin: -20px 0 0 20px; }
.cnode.is-key .cnode__label { color: var(--bone); font-weight: 500; }
.cause__prompt { position: absolute; z-index: 6; left: 50%; bottom: clamp(70px, 12%, 120px); transform: translateX(-50%); display: grid; justify-items: center; gap: 20px; text-align: center; width: min(90%, 600px); opacity: 0; pointer-events: none; transition: opacity .8s var(--ease-out); }
.cause__prompt.is-on { opacity: 1; pointer-events: auto; }
.cause__ask { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.1vw, 30px); }
.cause__prompt .btn--act { animation: pulse 2.6s ease-out infinite; padding: 16px 34px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(208, 138, 78, .38); } 70% { box-shadow: 0 0 0 18px rgba(208, 138, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(208, 138, 78, 0); } }
.cause__caption { position: absolute; z-index: 5; left: 22px; bottom: 74px; max-width: min(560px, 80%); pointer-events: none; opacity: 0; transition: opacity .5s; }
.cause__caption.is-on { opacity: 1; }
.cause__when { font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ember-hot); min-height: 1.4em; }
.cause__what { margin-top: 6px; font-family: var(--serif); font-size: clamp(22px, 2.3vw, 34px); line-height: 1.12; min-height: 2.3em; }
.cause__what .w { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(.2em); animation: wordin .7s var(--ease-out) forwards; animation-delay: calc(var(--i) * 40ms); white-space: pre; }
@keyframes wordin { to { opacity: 1; filter: blur(0); transform: none; } }
.cause__verdict { position: absolute; z-index: 6; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 0 8%; background: radial-gradient(ellipse at 50% 50%, rgba(5, 5, 6, .74), rgba(5, 5, 6, .2) 70%); opacity: 0; pointer-events: none; transition: opacity .9s var(--ease-out); }
.cause__verdict.is-on { opacity: 1; pointer-events: auto; }
.cause__verdict-big { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4vw, 64px); line-height: 1.04; text-transform: uppercase; letter-spacing: .04em; }
.cause__verdict-sub { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.8vw, 26px); color: var(--bone-2); max-width: 36ch; }
.cause__verdict .btn { margin-top: 10px; }
.timeline { position: absolute; z-index: 6; left: 22px; right: 22px; bottom: 14px; opacity: 0; pointer-events: none; transition: opacity .6s; }
.timeline.is-on { opacity: 1; pointer-events: auto; }
.timeline__track { position: relative; height: 44px; touch-action: none; cursor: pointer; }
.timeline__track::before { content: ''; position: absolute; left: 0; right: 0; top: 14px; height: 1px; background: var(--hair); }
.timeline__fill { position: absolute; left: 0; top: 14px; height: 1px; width: calc(var(--t, 0) * 100%); background: linear-gradient(90deg, rgba(208, 138, 78, .2), var(--ember-hot)); }
.timeline__knob { position: absolute; top: 14px; left: calc(var(--t, 0) * 100%); width: 13px; height: 13px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); border: 1px solid var(--ember-hot); box-shadow: 0 0 14px rgba(240, 176, 122, .5); transition: transform .3s var(--ease-out); }
.timeline__track:hover .timeline__knob, .timeline__track.is-drag .timeline__knob { transform: scale(1.35); }
.timeline__marks li { position: absolute; top: 24px; left: calc(var(--x) * 100%); transform: translateX(-50%); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-3); white-space: nowrap; transition: color .4s; }
.timeline__marks li::before { content: ''; position: absolute; left: 50%; top: -14px; width: 1px; height: 7px; background: var(--bone-4); }
.timeline__marks li:first-child { transform: none; }
.timeline__marks li:first-child::before { left: 0; }
.timeline__marks li:last-child { transform: translateX(-100%); }
.timeline__marks li:last-child::before { left: auto; right: 0; }
.timeline__marks li.is-past { color: var(--bone); }
.why { position: absolute; z-index: 8; right: 16px; top: 72px; width: min(360px, calc(100% - 32px)); padding: 24px 24px 20px; background: rgba(8, 8, 10, .94); border-left: 1px solid rgba(240, 176, 122, .5); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.why[hidden] { display: none; }
.why__eyebrow { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--ember-hot); }
.why__who { margin-top: 10px; font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.why__list { margin-top: 16px; display: grid; gap: 10px; }
.why__list div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; opacity: 0; transform: translateX(8px); animation: whyin .6s var(--ease-out) forwards; animation-delay: calc(var(--i) * 60ms); }
@keyframes whyin { to { opacity: 1; transform: none; } }
.why__list dt { font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--bone-3); padding-top: 3px; }
.why__list dd { font-size: 13.5px; line-height: 1.45; }
.why__fine { margin-top: 14px; font-size: 10.5px; color: var(--bone-4); }
.why__close { position: absolute; right: 10px; top: 8px; width: 34px; height: 34px; font-size: 20px; color: var(--bone-3); }
.why__close:hover { color: var(--bone); }
.conclusion { margin-top: clamp(56px, 8vh, 96px); max-width: 920px; }

/* ---------------- 50,000 ---------------- */
.lives { background: radial-gradient(ellipse at 80% 20%, rgba(143, 160, 174, .05), transparent 50%), var(--ink); }
.lives__grid { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.5fr); gap: clamp(32px, 4vw, 72px); align-items: center; }
.field-panel { height: clamp(520px, 72vh, 780px); }
.field-panel.is-exploring { cursor: crosshair; }
.crumbs { position: absolute; z-index: 5; left: 16px; top: 14px; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }
.crumbs li { color: var(--bone-4); display: flex; align-items: baseline; transition: color .4s; }
.crumbs li + li::before { content: '/'; margin: 0 10px; color: var(--bone-4); }
.crumbs li small { margin-left: 8px; font-size: 10px; letter-spacing: .08em; text-transform: none; color: var(--bone-4); }
.crumbs li.is-past { color: var(--bone-3); }
.crumbs li.is-now { color: var(--bone); }
.crumbs li.is-now small { color: var(--ember-hot); }
.crumbs li[hidden] { display: none; }
.field-legend { position: absolute; z-index: 5; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .06em; color: var(--bone-2); pointer-events: none; }
.field-legend i { width: 6px; height: 6px; border-radius: 50%; background: #f4dcc0; box-shadow: 0 0 8px rgba(244, 220, 192, .9); }
.field-back { position: absolute; z-index: 6; right: 16px; top: 12px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-2); border: 1px solid var(--hair); padding: 8px 12px; background: rgba(5, 5, 6, .6); }
.field-back:hover { color: var(--bone); border-color: var(--bone-3); }
.field-back[hidden] { display: none; }
.field-tip { position: absolute; z-index: 5; left: 0; top: 0; pointer-events: none; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone); white-space: nowrap; transform: translate3d(var(--x, -999px), var(--y, -999px), 0); opacity: 0; transition: opacity .2s; text-shadow: 0 0 10px #000, 0 0 4px #000; }
.field-tip.is-on { opacity: 1; }
.person-card { position: absolute; z-index: 6; right: 16px; bottom: 16px; width: min(340px, calc(100% - 32px)); padding: 20px 22px; background: rgba(7, 7, 9, .9); border: 1px solid var(--hair); box-shadow: 0 24px 50px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.person-card[hidden] { display: block; visibility: hidden; }
.person-card.is-on { opacity: 1; transform: none; visibility: visible; }
.person-card__head { display: flex; align-items: center; gap: 14px; }
.person-card__portrait { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(231, 225, 214, .18); }
.person-card__portrait svg { width: 100%; height: 100%; }
.person-card__name { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; text-transform: uppercase; letter-spacing: .1em; }
.person-card__role { margin-top: 6px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--bone-2); }
.person-card__ties { margin-top: 16px; display: grid; gap: 5px; }
.person-card__ties li { font-size: 13px; line-height: 1.4; color: var(--bone-2); display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.person-card__ties b { font-weight: 500; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-3); padding-top: 2px; }
.person-card__one { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ember-hot); }
.person-card__fine { margin-top: 6px; font-size: 10.5px; color: var(--bone-4); }
.matter { margin-top: clamp(80px, 11vh, 140px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
.chain { display: grid; gap: 0; counter-reset: c; border-top: 1px solid var(--hair); }
.chain li { counter-increment: c; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--hair); font-family: var(--serif); font-size: clamp(19px, 1.6vw, 24px); color: var(--bone-3); transition: color .6s; }
.chain li::before { content: counter(c, decimal-leading-zero); font-family: var(--sans); font-size: 10.5px; letter-spacing: .2em; color: var(--bone-4); transition: color .6s; }
.chain li.is-on { color: var(--bone); }
.chain li.is-on::before { color: var(--ember-hot); }
.chain li.is-now { color: var(--ember-hot); }
.punch { grid-column: 1 / -1; margin-top: clamp(48px, 7vh, 90px); display: grid; gap: 4px; text-align: center; font-family: var(--serif); font-weight: 300; text-transform: uppercase; letter-spacing: .05em; }
.punch span { font-size: clamp(22px, 2.4vw, 38px); color: var(--bone-2); }
.punch strong { font-weight: 300; font-size: clamp(36px, 4.4vw, 72px); color: var(--bone); }
.kc { margin-top: clamp(80px, 11vh, 140px); display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.kc__stage { height: clamp(360px, 46vh, 480px); }
.kc__line { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.8vw, 44px); line-height: 1.08; text-transform: uppercase; letter-spacing: .04em; color: var(--bone-4); transition: color .8s; }
.kc__line + .kc__line { margin-top: 10px; }
.kc__line.is-on { color: var(--bone); }
.kc__sub { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.35; color: var(--bone-4); transition: color .8s; max-width: 34ch; }
.kc__sub.is-on { color: var(--bone-2); }
.kc .btn--link { margin-top: 18px; }
.eyebrow--plain::before { display: none; }

/* ---------------- 168 people ---------------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 16px; }
.search input { width: min(280px, 70vw); min-height: 38px; padding: 8px 14px; border: 1px solid var(--hair); background: rgba(5, 5, 6, .6); color: var(--bone); font-size: 13px; letter-spacing: .02em; }
.search input::placeholder { color: var(--bone-4); }
.search input:focus { border-color: var(--ember); outline: none; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.chip__l { width: 18px; height: 0; border-top: 1px solid; }
.chip__l--family { border-color: rgba(231, 225, 214, .85); }
.chip__l--friend { border-color: rgba(231, 225, 214, .45); }
.chip__l--work { border-color: rgba(143, 160, 174, .85); border-top-style: dashed; }
.chip__l--debt { border-color: rgba(240, 176, 122, .95); border-top-style: dotted; border-top-width: 2px; }
.chip__l--hostile { border-color: rgba(186, 78, 58, .95); }
.people__grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 16px; }
.graph { height: clamp(560px, 74vh, 820px); }
.graph__nodes { position: absolute; inset: 0; }
/* the buttons are for the keyboard and screen readers; a pointer picks whoever is nearest (js/relationships.js) */
.gnode { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; transform: translate3d(var(--x, 0), var(--y, 0), 0); pointer-events: none; }
.gnode:focus-visible { outline: 1px solid var(--ember-hot); outline-offset: 2px; }
.graph__tip { position: absolute; left: 0; top: 0; pointer-events: none; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transform: translate3d(var(--x, 0), var(--y, 0), 0); opacity: 0; transition: opacity .2s; text-shadow: 0 0 10px #000, 0 0 4px #000; z-index: 5; }
.graph__tip.is-on { opacity: 1; }
.graph__tip small { display: block; font-size: 9.5px; letter-spacing: .14em; text-transform: none; color: var(--bone-3); margin-top: 2px; }
.viewer { border: 1px solid var(--hair); background: var(--panel); padding: 22px; max-height: clamp(560px, 74vh, 820px); overflow: auto; scrollbar-width: thin; }
.viewer__head { display: flex; gap: 16px; align-items: center; }
.viewer__portrait { width: 78px; height: 96px; flex: none; overflow: hidden; box-shadow: 0 0 0 1px rgba(231, 225, 214, .14); background: #0b0a09; }
.viewer__portrait svg { width: 100%; height: 100%; }
.viewer__eyebrow { font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ember-hot); }
.viewer__name { margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.4vw, 38px); line-height: 1; }
.viewer__role { margin-top: 6px; font-size: 13px; color: var(--bone-2); }
.viewer__facts { margin-top: 20px; display: grid; gap: 11px; }
.viewer__facts > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; }
.viewer__facts dt { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-3); padding-top: 3px; }
.viewer__facts dd { font-size: 13.5px; line-height: 1.45; }
.viewer__facts dd button { text-decoration: underline; text-decoration-color: rgba(231, 225, 214, .3); text-underline-offset: 3px; text-align: left; padding: 7px 0; margin: -7px 0; }
.viewer__facts dd button:hover { color: var(--ember-hot); }
.viewer__facts .is-presented dd::after { content: 'presentation'; margin-left: 8px; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-4); }
.viewer.is-swap .viewer__slot { animation: swap .6s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.rumour { margin-top: clamp(72px, 10vh, 120px); display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.rumour__stage { height: clamp(420px, 56vh, 600px); }
.rumour__who { margin-top: 18px; font-size: 13.5px; color: var(--bone-3); min-height: 1.5em; }
.rumour__who b { font-weight: 500; color: var(--bone); }
.rumour__count { margin-top: 14px; display: grid; gap: 4px; }
.rumour__count li { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 28px); line-height: 1.15; color: var(--bone-3); opacity: 0; transform: translateY(6px); animation: countin .6s var(--ease-out) forwards; }
.rumour__count li:last-child { color: var(--bone); }
.rumour__count li.is-wrong { color: #e07a62; font-style: italic; }
.rumour__count li small { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .1em; color: var(--bone-3); font-style: normal; }
@keyframes countin { to { opacity: 1; transform: none; } }

/* ---------------- systems ---------------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { position: relative; padding: 30px 26px 28px; border: 1px solid var(--hair); background: linear-gradient(180deg, #0b0b0e, #070709); transition: border-color .5s, transform .6s var(--ease-out), background .5s; min-height: 320px; display: flex; flex-direction: column; }
.card:hover { border-color: rgba(240, 176, 122, .45); transform: translateY(-4px); background: linear-gradient(180deg, #100e0d, #08080a); }
.card__glyph { width: 64px; height: 64px; color: var(--bone-3); transition: color .5s; }
.card__glyph svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__glyph { color: var(--ember-hot); }
.card__glyph svg * { stroke-dasharray: 140; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-out); }
.card:hover .card__glyph svg * { animation: draw 1.6s var(--ease-out); }
@keyframes draw { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }
.card__title { margin-top: 26px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 1.9vw, 32px); text-transform: uppercase; letter-spacing: .06em; line-height: 1; }
.card__text { margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: var(--bone-2); }
.card__example { margin-top: auto; padding-top: 22px; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.3; color: var(--bone-3); transition: color .5s; }
.card:hover .card__example { color: var(--bone); }

/* ---------------- world ---------------- */
.world__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 16px; }
.world__map { height: clamp(500px, 70vh, 780px); cursor: crosshair; }
.world__places { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.place { position: absolute; left: 0; top: 0; transform: translate3d(var(--x, -999px), var(--y, -999px), 0) translate(-50%, -100%); pointer-events: auto; display: grid; justify-items: center; gap: 4px; padding: 14px 18px 10px; text-align: center; transition: opacity .5s; cursor: pointer; }
.place::before { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--bone-2); margin-bottom: 6px; animation: ping 3s ease-out infinite; }
.place__name { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 24px); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 0 18px #000, 0 0 4px #000; white-space: nowrap; }
.place__n { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--bone-2); text-shadow: 0 0 8px #000; }
.place[aria-pressed="true"]::before { background: var(--ember-hot); border-color: var(--ember-hot); }
.place[aria-pressed="true"] .place__name { color: var(--ember-hot); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(240, 176, 122, .45); } 80%, 100% { box-shadow: 0 0 0 14px rgba(240, 176, 122, 0); } }
.world__panel { border: 1px solid var(--hair); background: var(--panel); padding: 26px 24px; display: flex; flex-direction: column; }
.world__clock { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--ember-hot); font-variant-numeric: tabular-nums; }
.world__name { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 42px); line-height: 1; text-transform: uppercase; letter-spacing: .08em; }
.world__lives { margin-top: 6px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--bone-3); }
.world__states { margin-top: 18px; display: grid; gap: 10px; }
.world__states li { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.28; opacity: 0; transform: translateY(6px); animation: countin .7s var(--ease-out) forwards; animation-delay: calc(var(--i) * 120ms); }
.world__states li small { font-family: var(--sans); font-style: normal; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-4); margin-left: 6px; }
.world__film { margin-top: 18px; align-self: flex-start; }
.world__pick { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------------- combat ---------------- */
.player { position: relative; aspect-ratio: 16 / 9; max-height: 82vh; width: 100%; background: #000; border: 1px solid var(--hair); overflow: hidden; }
.player:fullscreen { max-height: none; aspect-ratio: auto; width: 100%; height: 100%; border: 0; }
.player:fullscreen .player__video { object-fit: contain; }
.player__video { width: 100%; height: 100%; object-fit: cover; }
.player__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, .55)); pointer-events: none; transition: opacity .6s; }
.player.is-film .player__shade { opacity: .25; }
.player__big { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; text-align: center; transition: opacity .5s, transform .5s var(--ease-out); }
.player__big svg { width: 76px; height: 76px; padding: 20px; border-radius: 50%; border: 1px solid rgba(231, 225, 214, .6); background: rgba(5, 5, 6, .45); transition: background .4s, border-color .4s; }
.player__big span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; margin-top: 8px; }
.player__big small { font-size: 12px; color: var(--bone-2); }
.player__big:hover svg { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.player.is-film .player__big { opacity: 0; pointer-events: none; transform: translate(-50%, -46%); }
.player__bar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.player__now { font-size: 11px; letter-spacing: .14em; color: var(--bone-2); white-space: nowrap; }
.player__progress { position: relative; flex: 1; height: 18px; touch-action: none; }
.player__progress::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); background: rgba(231, 225, 214, .18); transition: height .2s; }
.player__progress > span { position: absolute; left: 0; top: 50%; height: 2px; width: 0; transform: translateY(-50%); background: var(--ember-hot); transition: height .2s; }
.player__progress[role="slider"] { cursor: pointer; }
.player__progress[role="slider"]:hover::before, .player__progress[role="slider"]:hover > span, .player__progress[role="slider"]:focus-visible::before, .player__progress[role="slider"]:focus-visible > span { height: 4px; }
.player__progress:focus-visible { outline-offset: 2px; }
.player__time { font-size: 11px; color: var(--bone-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.films { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.film-card { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--hair-2); text-align: left; transition: border-color .4s, background .4s; }
.film-card img { width: 120px; height: 68px; object-fit: cover; filter: saturate(.8) brightness(.85); }
.film-card b { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.1; }
.film-card small { font-size: 11px; letter-spacing: .08em; color: var(--bone-3); }
.film-card:hover, .film-card.is-current { border-color: rgba(240, 176, 122, .45); background: rgba(208, 138, 78, .05); }

/* ---------------- manifesto ---------------- */
.manifesto { background: radial-gradient(ellipse at 70% 50%, rgba(208, 138, 78, .09), transparent 55%), #040405; padding: clamp(110px, 15vh, 200px) 0; }
.manifesto__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); gap: clamp(40px, 5vw, 96px); align-items: center; }
.manifesto__text .display { font-size: clamp(44px, 6vw, 100px); }
.manifesto__excerpt { margin-top: 36px; padding-left: 22px; border-left: 1px solid rgba(240, 176, 122, .5); display: grid; gap: 14px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.3; color: var(--bone-2); }
.manifesto__light { margin-top: 36px; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.25; text-transform: uppercase; letter-spacing: .05em; color: var(--bone-2); }
.manifesto__light strong { font-weight: 400; color: var(--ember-hot); }
.poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--hair); background: #000; }
.poster img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 2.4s var(--ease-out), filter 1s; filter: brightness(.82); }
.poster:hover img { transform: scale(1.09); filter: brightness(.95); }
.poster__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(240, 160, 100, .16), transparent 45%), linear-gradient(transparent 50%, rgba(0, 0, 0, .7)); }
.poster__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(231, 225, 214, .7); background: rgba(5, 5, 6, .4); transition: background .4s, color .4s; }
.poster__play svg { width: 34px; height: 34px; margin-left: 4px; }
.poster:hover .poster__play { background: var(--bone); color: var(--ink); }
.poster__title { position: absolute; left: 22px; bottom: 18px; font-family: var(--serif); font-size: clamp(20px, 2vw, 30px); letter-spacing: .14em; text-transform: uppercase; }
.manifesto__cta { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.manifesto__meta { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ember-hot); }

/* ---------------- development / media ---------------- */
.dev-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dev-card { border: 1px solid var(--hair); background: var(--panel); overflow: hidden; display: flex; flex-direction: column; transition: border-color .5s, transform .6s var(--ease-out); }
.dev-card:hover { border-color: rgba(240, 176, 122, .4); transform: translateY(-4px); }
.dev-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.8) brightness(.8); transition: filter .8s; }
.dev-card__media { position: relative; display: block; width: 100%; text-decoration: none; color: inherit; }
.dev-card__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(231, 225, 214, .7); background: rgba(5, 5, 6, .45); transition: background .4s, color .4s; }
.dev-card__play svg { width: 22px; height: 22px; margin-left: 3px; }
.dev-card__media:hover .dev-card__play, .dev-card__media:focus-visible .dev-card__play { background: var(--bone); color: var(--ink); }
.dev-card__len { position: absolute; left: 12px; bottom: 10px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 0 8px #000, 0 0 3px #000; }
.dev-card:hover img { filter: saturate(.9) brightness(.95); }
.dev-card > div { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dev-card__tag { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ember-hot); }
.dev-card h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.12; }
.dev-card p:not(.dev-card__tag) { font-size: 14.5px; line-height: 1.55; color: var(--bone-2); }
.dev-card__soon { margin-top: auto; padding-top: 10px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--bone-3); }
.media { margin-top: clamp(60px, 8vh, 100px); }
.media__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.media__item { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--hair-2); background: var(--ink-3); text-align: left; }
.media__item img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7) saturate(.8); transition: filter .6s, transform 1.4s var(--ease-out); }
.media__item:hover img { filter: brightness(.9); transform: scale(1.04); }
.media__item span { position: absolute; left: 14px; right: 14px; bottom: 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 0 8px #000; }
.media__item--soon { display: grid; place-items: center; }
.media__item--soon span { position: static; color: var(--bone-3); text-align: center; padding: 0 14px; }

/* ---------------- final ---------------- */
.final { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; background: #000; text-align: center; }
.final .film { z-index: 0; }
.final::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 24vh; background: linear-gradient(var(--ink), transparent); z-index: 1; pointer-events: none; }
.final__copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; padding: 0 var(--gutter); }
.final__big { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5.2vw, 84px); line-height: 1.04; text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 0 40px rgba(0, 0, 0, .6); }
.final__sub { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.1vw, 32px); color: var(--bone-2); margin-bottom: 18px; text-shadow: 0 0 30px rgba(0, 0, 0, .6); }
.final__line { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.5vw, 21px); color: var(--bone-2); margin-top: 6px; }

.footer { position: relative; padding: 56px 0 44px; border-top: 1px solid var(--hair-2); background: var(--ink); }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; }
.footer__brand { font-family: var(--serif); font-size: 22px; letter-spacing: .14em; text-transform: uppercase; }
.footer__brand span { font-size: .6em; letter-spacing: .3em; color: var(--bone-3); }
.footer__nav { display: flex; gap: 24px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; }
.footer__nav a { text-decoration: none; color: var(--bone-2); }
.footer__fine { grid-column: 1 / -1; font-size: 12px; color: var(--bone-3); max-width: 76ch; }
.footer__top { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--bone-3); text-decoration: none; }

/* ---------------- manifesto film ---------------- */
.mfilm { position: fixed; inset: 0; z-index: 260; background: #000; display: grid; place-items: center; }
.mfilm[hidden] { display: none; }
.mfilm__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mfilm__text { position: relative; z-index: 2; max-width: min(1000px, 90vw); text-align: center; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3.4vw, 54px); line-height: 1.18; letter-spacing: .02em; text-shadow: 0 0 40px rgba(0, 0, 0, .9); opacity: 0; transition: opacity 1.6s var(--ease-out), filter 1.6s; filter: blur(6px); }
.mfilm__text.is-on { opacity: 1; filter: blur(0); }
.mfilm__text--title { font-size: clamp(22px, 2.6vw, 40px); letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; }
.mfilm__text--light { color: var(--ember-hot); font-size: clamp(34px, 4.6vw, 72px); }
html.is-film-open, html.is-film-open body { overflow: hidden; }
.mfilm__bar { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: max(22px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; }
/* any film played over the page */
.vfilm__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.vfilm__title { position: absolute; z-index: 3; left: var(--gutter); top: 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(18px, 1.8vw, 26px); letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 0 12px #000; }
.vfilm .mfilm__bar { padding: 10px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.vfilm:fullscreen { width: 100%; height: 100%; }
.mfilm__close { position: absolute; z-index: 3; right: var(--gutter); top: 20px; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--bone-2); padding: 10px 0; }
.mfilm__close:hover { color: var(--bone); }

.toast { position: fixed; z-index: 280; left: 50%; bottom: 30px; transform: translate(-50%, 20px); padding: 12px 18px; background: rgba(12, 12, 14, .96); border: 1px solid var(--hair); font-size: 12.5px; opacity: 0; transition: opacity .4s, transform .4s var(--ease-out); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- small screens ---------------- */
@media (max-width: 1100px) {
  .nav__list { display: none; }
  .nav__menu { display: block; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lives__grid, .kc, .rumour, .matter, .manifesto__grid, .about__grid { grid-template-columns: 1fr; }
  .people__grid { grid-template-columns: 1fr; }
  .viewer { max-height: none; order: 2; }
  .world__grid { grid-template-columns: 1fr; }
  .films { grid-template-columns: 1fr; }
  .dev-cards { grid-template-columns: 1fr; }
  .media__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --nav-h: 58px; }
  .nav__brand { font-size: 15px; }
  .nav__steam { display: none; }
  .sound__label { display: none; }
  .gate__enter { font-size: 18px; letter-spacing: .3em; text-indent: .3em; }
  .hero__name { font-size: clamp(40px, 12.2vw, 84px); letter-spacing: .1em; text-indent: .1em; }
  .hero__cta { flex-direction: column; align-items: stretch; width: min(320px, 86vw); }
  .hero__cta .btn { justify-content: center; }
  .display { font-size: clamp(34px, 9.6vw, 52px); }
  .display--sm { font-size: clamp(26px, 7.4vw, 38px); }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .cause__stage { height: 78vh; min-height: 520px; }
  .stage__bar { padding: 10px; }
  .tab { padding: 7px 10px; }
  .tab span { font-size: 14px; }
  .stage__tools .tool span { display: none; }
  .stage__tools .tool { padding: 8px; min-width: 44px; justify-content: center; }
  .tool { min-height: 44px; }
  .tool--icon { min-width: 44px; justify-content: center; }
  .chip { min-height: 40px; }
  .tab { min-height: 44px; }
  .search input { min-height: 44px; }
  .sound { min-width: 44px; min-height: 44px; justify-content: center; }
  .nav__menu { width: 44px; height: 44px; }
  .nav__menu span { left: 11px; right: 11px; }
  .nav__menu span:first-child { top: 18px; }
  .nav__menu span:nth-child(2) { top: 25px; }
  .footer__top { display: inline-block; padding: 12px 0; }
  .vfilm .mfilm__bar { gap: 8px; }
  .player__progress { height: 30px; }
  .vfilm .player__time { display: none; }
  .cause__caption { left: 14px; right: 14px; bottom: 70px; max-width: none; }
  .cause__what { font-size: 21px; }
  .timeline { left: 14px; right: 14px; }
  .why { top: auto; bottom: 10px; right: 10px; left: 10px; width: auto; max-height: 62%; overflow: auto; }
  .stage__hint { display: none; }
  .field-panel { height: 74vh; min-height: 480px; }
  .person-card { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 16px; }
  .person-card__name { font-size: 28px; }
  .person-card__ties li { grid-template-columns: 84px 1fr; font-size: 12.5px; }
  .crumbs { left: 10px; top: 10px; font-size: 9.5px; letter-spacing: .14em; }
  .crumbs li small { display: none; }
  .crumbs li + li::before { margin: 0 6px; }
  .field-back { top: 40px; left: 10px; right: auto; padding: 6px 10px; }
  .graph { height: 64vh; min-height: 440px; }
  .filters { margin-left: 0; }
  .viewer__facts > div { grid-template-columns: 92px 1fr; }
  .kc__stage { height: 360px; }
  .rumour__stage { height: 400px; }
  .world__map { height: 62vh; min-height: 420px; }
  .place { padding: 10px 8px 6px; }
  .place__name { font-size: 15px; }
  .player { aspect-ratio: 16 / 11; }
  .player__big svg { width: 58px; height: 58px; padding: 15px; }
  .player__big small { display: none; }
  .player__big span { margin-top: 2px; }
  .player__now { display: none; }
  .film-card { grid-template-columns: 96px 1fr; }
  .film-card img { width: 96px; height: 54px; }
  .media__list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__nav { flex-wrap: wrap; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .gate__line { animation: none; transform: translateX(-50%); }
  .hero__cue i { animation: none; }
}
.reduced .hero__title .ch { transition-duration: 1.2s; transform: none; filter: none; }
.reduced .prologue__line .w { transform: none; filter: none; transition-duration: .8s; }
