/* Reward Function — neon-noir, humane. */
:root {
  color-scheme: dark;
  --ink: #06080b;
  --ink-2: #0b0f14;
  --panel: #10161d;
  --line: rgba(160, 200, 230, 0.14);
  --line-strong: rgba(160, 200, 230, 0.28);
  --text: #e9e5db;
  --text-dim: #b7b3a8;
  --muted: #8c96a1;
  --scan: #62d4ff;
  --scan-soft: rgba(98, 212, 255, 0.16);
  --amber: #e9b64f;
  --pink: #ff6fa3;
  --green: #86ffa5;
  --hemo: #c8283c;
  --display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --read: 38rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 1.0625rem/1.65 var(--serif); font-optical-sizing: auto;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--scan); text-underline-offset: .2em; }
a:hover { color: var(--scan); }
:focus-visible { outline: 2px solid var(--scan); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--scan); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--scan); color: var(--ink); padding: 8px 14px; font: 500 .8rem var(--mono); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -.01em; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 9vw, 7.5rem); }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
.kicker, .meta, .hud, .btn, label.chip, .nav a, .tag {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
}
.kicker { color: var(--scan); margin-bottom: 1.1rem; display: flex; align-items: center; gap: .7em; }
.kicker::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.lede { font-size: clamp(1.15rem, 1.9vw, 1.4rem); color: var(--text); max-width: 34em; }
.dim { color: var(--text-dim); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
em.ital, .ital { font-family: var(--display); font-style: italic; font-weight: 500; }

/* ---------- layout ---------- */
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(80px, 13vw, 180px); }
.section.tight { padding-block: clamp(56px, 8vw, 110px); }
.grid-2 { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2.flip > :first-child { order: 2; } }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px var(--gutter);
  background: linear-gradient(to bottom, rgba(6, 8, 11, .85), rgba(6, 8, 11, 0));
  transition: background .4s var(--ease), backdrop-filter .4s;
}
.site-header.scrolled { background: rgba(6, 8, 11, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--scan); }
.nav { display: none; gap: 26px; }
.nav a { text-decoration: none; color: var(--text-dim); padding: 6px 0; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--scan); transition: right .35s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
@media (min-width: 980px) { .nav { display: flex; } .menu-btn { display: none; } }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(10, 14, 19, .6); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--scan); color: var(--scan); }
.icon-btn svg { width: 18px; height: 18px; }
.sound-btn[aria-pressed="true"] { color: var(--scan); border-color: var(--scan); box-shadow: 0 0 0 4px var(--scan-soft); }
.sound-bars { display: flex; gap: 2px; align-items: end; height: 14px; }
.sound-bars i { width: 2px; background: currentColor; height: 4px; transition: height .3s; }
.sound-btn[aria-pressed="true"] .sound-bars i { animation: bars 1.1s infinite ease-in-out; }
.sound-bars i:nth-child(2) { animation-delay: -.3s !important; } .sound-bars i:nth-child(3) { animation-delay: -.6s !important; }
@keyframes bars { 0%, 100% { height: 3px; } 50% { height: 13px; } }
.mobile-nav { position: fixed; inset: 0; z-index: 45; background: rgba(6, 8, 11, .97); display: grid; place-content: center; gap: 22px; text-align: center; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { font-family: var(--display); font-size: 2.4rem; text-decoration: none; }
.mobile-nav .close { position: absolute; top: 14px; right: var(--gutter); }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--scan); color: var(--ink); background: var(--scan); text-decoration: none; cursor: pointer;
  border-radius: 2px; font-weight: 500; transition: transform .2s var(--ease), box-shadow .3s, background .3s;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 0 0 6px var(--scan-soft), 0 10px 40px -10px rgba(98, 212, 255, .6); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--scan); color: var(--scan); box-shadow: 0 0 0 6px var(--scan-soft); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.tag { display: inline-block; padding: 4px 9px; border: 1px solid var(--line-strong); color: var(--text-dim); border-radius: 2px; }
.tag.live { color: var(--green); border-color: rgba(134, 255, 165, .4); }
.tag.soon { color: var(--amber); border-color: rgba(233, 182, 79, .45); }

/* ---------- media ---------- */
.frame { position: relative; overflow: hidden; background: var(--ink-2); }
.frame picture, .frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line); }
.ratio-16x9 { aspect-ratio: 16 / 9; } .ratio-3x4 { aspect-ratio: 3 / 4; } .ratio-1x1 { aspect-ratio: 1; } .ratio-2x3 { aspect-ratio: 2 / 3; }
.caption { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.grain::before {
  content: ''; position: absolute; inset: -50%; z-index: 2; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(-1%, 1%); } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 30%; }
.hero-media img { transform: scale(1.06); animation: settle 9s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 8, 11, .92) 0%, rgba(6, 8, 11, .55) 45%, rgba(6, 8, 11, 0) 75%),
              linear-gradient(0deg, var(--ink) 0%, rgba(6, 8, 11, 0) 40%); }
@media (max-width: 760px) {
  .hero::before { background: linear-gradient(0deg, var(--ink) 8%, rgba(6, 8, 11, .7) 55%, rgba(6, 8, 11, .2) 100%); }
  .hero-media picture, .hero-media img { object-position: 72% 20%; }
}
.hero-content { padding: 0 var(--gutter) clamp(64px, 12vh, 120px); max-width: 980px; }
.hero h1 { margin-bottom: .18em; text-shadow: 0 2px 40px rgba(0, 0, 0, .6); }
.hero h1 .line { display: block; }
.hero .tagline { font-family: var(--display); font-style: italic; font-size: clamp(1.5rem, 3.2vw, 2.4rem); color: var(--text); margin-bottom: .8em; }
.hero .byline { font-family: var(--mono); letter-spacing: .2em; text-transform: uppercase; font-size: .74rem; color: var(--text-dim); margin-bottom: 1.6rem; }
.scanline { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.scanline::after {
  content: ''; position: absolute; left: -10%; right: -10%; height: 140px; top: -160px;
  background: linear-gradient(to bottom, rgba(98, 212, 255, 0), rgba(98, 212, 255, .10) 45%, rgba(98, 212, 255, .55) 50%, rgba(98, 212, 255, .10) 55%, rgba(98, 212, 255, 0));
  mix-blend-mode: screen; animation: sweep 11s 2.5s infinite cubic-bezier(.5, 0, .5, 1);
}
@keyframes sweep { 0% { top: -160px; } 22% { top: 105%; } 100% { top: 105%; } }
.spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(98, 212, 255, .16), transparent 70%); mix-blend-mode: screen; }
.hero:hover .spot { opacity: 1; }
.hud { position: absolute; z-index: 3; color: var(--text); text-shadow: 0 1px 2px #000, 0 0 14px rgba(0,0,0,.9); display: flex; flex-direction: column; gap: 6px; font-size: .66rem; }
.hud.tr { top: 86px; right: var(--gutter); text-align: right; }
.hud b { color: var(--scan); font-weight: 500; }
.hud .blink { animation: blink 1.4s steps(2) infinite; color: var(--hemo); }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 760px) { .hud.tr { display: none; } }
.scroll-cue { position: absolute; z-index: 3; bottom: 26px; right: var(--gutter); font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; color: var(--muted); writing-mode: vertical-rl; text-decoration: none; }
.scroll-cue::after { content: ''; display: block; width: 1px; height: 54px; margin: 10px auto 0; background: linear-gradient(var(--scan), transparent); animation: drip 2.2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- cinematic bands ---------- */
.band { position: relative; min-height: 88vh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.band .band-media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.band .band-media picture, .band .band-media img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(6, 8, 11, .35), rgba(6, 8, 11, .9) 75%), linear-gradient(var(--ink), transparent 18%, transparent 82%, var(--ink)); }
.quote-xl { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 5.4vw, 4.6rem); line-height: 1.08; max-width: 18em; margin: 0 auto; text-align: center; text-wrap: balance; }
.quote-xl .who { display: block; margin-top: 1.2em; font: 400 .74rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.quote-xl .hl { color: var(--scan); font-style: italic; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }
.decode { font-variant-ligatures: none; }

/* ---------- characters ---------- */
.dossiers { display: grid; gap: clamp(24px, 4vw, 40px); grid-template-columns: 1fr; }
@media (min-width: 860px) { .dossiers { grid-template-columns: 1fr 1fr; } }
.dossier { position: relative; background: linear-gradient(180deg, var(--panel), var(--ink-2)); border: 1px solid var(--line); overflow: hidden; }
.dossier .frame { aspect-ratio: 4 / 5; }
.dossier .frame img { transition: transform 1.4s var(--ease), filter 1s; filter: saturate(.9) contrast(1.02); }
.dossier:hover .frame img { transform: scale(1.04); filter: saturate(1.05); }
.dossier-body { padding: 26px 26px 30px; }
.dossier h3 { margin-bottom: .2em; }
.readout { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 3; font: 500 .64rem/1.7 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--scan); background: rgba(6, 8, 11, .72); border: 1px solid rgba(98, 212, 255, .35); padding: 10px 12px; opacity: 0; transform: translateY(-6px); transition: .45s var(--ease); }
.dossier:hover .readout, .dossier:focus-within .readout { opacity: 1; transform: none; }
.readout .warn { color: var(--amber); }
@media (hover: none) { .readout { opacity: 1; transform: none; position: static; margin: 0; border-left: 0; border-right: 0; } }
.dossier blockquote { margin: 18px 0 0; padding-left: 16px; border-left: 2px solid var(--scan); font-family: var(--display); font-style: italic; font-size: 1.3rem; line-height: 1.3; color: var(--text); }

/* ---------- tiers strip ---------- */
.tiers { display: grid; gap: 2px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tier-card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; text-decoration: none; isolation: isolate; }
.tier-card picture, .tier-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tier-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 8, 11, .92), rgba(6, 8, 11, .1) 60%); transition: background .5s; }
.tier-card:hover img { transform: scale(1.07); }
.tier-card:hover::before { background: linear-gradient(0deg, rgba(6, 8, 11, .85), rgba(98, 212, 255, .12)); }
.tier-card .t-in { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.tier-card .alt { font: 500 .62rem var(--mono); letter-spacing: .16em; color: var(--scan); }
.tier-card h3 { font-size: 1.55rem; margin: 6px 0 0; color: var(--text); }

/* ---------- panels / forms ---------- */
.panel { background: linear-gradient(180deg, rgba(16, 22, 29, .92), rgba(11, 15, 20, .96)); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); position: relative; }
.panel.glow { box-shadow: 0 0 0 1px rgba(98, 212, 255, .08), 0 40px 120px -40px rgba(98, 212, 255, .25); }
.corner::before, .corner::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1px solid var(--scan); }
.corner::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.corner::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > label, .legend { font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
input[type=email], input[type=text], textarea, select {
  width: 100%; min-height: 50px; padding: 12px 14px; background: rgba(6, 8, 11, .7); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 2px; font: 400 1rem var(--serif); transition: border-color .25s, box-shadow .25s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--scan); box-shadow: 0 0 0 4px var(--scan-soft); }
input::placeholder, textarea::placeholder { color: #5f6873; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
label.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; color: var(--text-dim); transition: .2s; user-select: none; }
label.chip input { position: absolute; opacity: 0; pointer-events: none; }
label.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; transition: .2s; }
label.chip:hover { border-color: var(--scan); color: var(--text); }
label.chip:has(input:checked) { border-color: var(--scan); color: var(--scan); background: var(--scan-soft); }
label.chip:has(input:checked)::before { background: var(--scan); box-shadow: 0 0 10px var(--scan); }
label.chip:has(input:focus-visible) { outline: 2px solid var(--scan); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .9rem; color: var(--text-dim); }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--scan); }
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font: 500 .78rem/1.6 var(--mono); letter-spacing: .06em; min-height: 1.6em; }
.form-status.err { color: var(--pink); }
.form-status.ok { color: var(--green); }
.success { display: none; }
.form.done .success { display: block; }
.form.done .when-open { display: none; }
.success h3 { color: var(--scan); }

/* ---------- read ---------- */
.transmission { max-width: var(--read); margin-inline: auto; }
.transmission p { font-size: 1.14rem; line-height: 1.78; margin-bottom: 1.05em; }
.transmission p:first-of-type::first-line { font-variant: small-caps; letter-spacing: .05em; color: var(--text); }
.transmission p:first-of-type::first-letter { color: var(--scan); font-family: var(--display); font-size: 1.6em; line-height: 0; }
.t-head { text-align: center; margin-bottom: 48px; }
.t-head h2 { margin-bottom: .2em; }
.locked { position: relative; max-width: var(--read); margin-inline: auto; }
.locked .ghost-lines p { filter: blur(5px); user-select: none; color: var(--text-dim); font-size: 1.1rem; line-height: 1.75; }
.locked .ghost-lines { max-height: 240px; overflow: hidden; mask-image: linear-gradient(#000 20%, transparent); -webkit-mask-image: linear-gradient(#000 20%, transparent); }
.lockbox { margin-top: -40px; text-align: center; position: relative; }
.lockbox .glyph { font: 500 .7rem var(--mono); color: var(--amber); letter-spacing: .2em; }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--scan); z-index: 60; box-shadow: 0 0 10px var(--scan); }
.toc { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; background: var(--ink-2); text-decoration: none; transition: background .3s; }
.toc a:hover { background: var(--panel); color: var(--text); }
.toc .n { font: 500 .72rem var(--mono); color: var(--scan); }
.toc .tt { font-family: var(--display); font-size: 1.5rem; }
.toc .tt small { display: block; font: italic 400 .95rem var(--serif); color: var(--muted); }

/* ---------- world ---------- */
.descent { position: relative; }
.altimeter { position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 5; display: none; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
@media (min-width: 1580px) { .altimeter { display: block; } }
.altimeter.show { opacity: 1; }
.altimeter ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.altimeter li { font: 500 .6rem var(--mono); letter-spacing: .16em; color: var(--muted); padding: 7px 0 7px 12px; position: relative; text-transform: uppercase; }
.altimeter li.on { color: var(--scan); }
.altimeter li.on::before { content: ''; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background: var(--scan); border-radius: 50%; box-shadow: 0 0 10px var(--scan); }
.tier { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(48px, 8vw, 100px); }
@media (min-width: 900px) { .tier { grid-template-columns: 1.25fr 1fr; } .tier:nth-child(even) .frame { order: 2; } }
.tier .logs { margin-top: 18px; font: 400 .78rem/1.8 var(--mono); color: var(--muted); border-top: 1px dashed var(--line-strong); padding-top: 12px; }
.tier .logs b { color: var(--green); font-weight: 500; }
.notices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.notice { background: #e9ebe6; color: #1b232b; padding: 22px 22px 18px; border-radius: 3px; font: 400 .92rem/1.5 var(--mono); position: relative; box-shadow: 0 20px 50px -25px rgba(0, 0, 0, .8); }
.notice h4 { font: 600 .74rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
.notice h4::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #2a8bff; box-shadow: 0 0 0 0 rgba(42, 139, 255, .7); animation: diode 2s infinite; }
@keyframes diode { 70% { box-shadow: 0 0 0 8px rgba(42, 139, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(42, 139, 255, 0); } }
.notice small { display: block; margin-top: 12px; color: #6b7480; font-size: .68rem; letter-spacing: .08em; }
.glossary { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); background: var(--line); border: 1px solid var(--line); }
.glossary div { background: var(--ink-2); padding: 18px 20px; }
.glossary dt { font: 500 .78rem var(--mono); color: var(--scan); letter-spacing: .08em; }
.glossary dd { margin: 6px 0 0; color: var(--text-dim); font-size: .98rem; }
.bf-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-top: 20px; }
.bf-scale div { padding: 14px 10px; text-align: center; font: 500 .62rem var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--panel); }
.bf-scale div:nth-child(1) { color: var(--green); } .bf-scale div:nth-child(2) { color: var(--scan); } .bf-scale div:nth-child(3) { color: var(--amber); }
.bf-scale div:nth-child(4) { color: var(--pink); } .bf-scale div:nth-child(5) { color: var(--hemo); }
@media (max-width: 560px) { .bf-scale { grid-template-columns: 1fr; } }

/* ---------- score ---------- */
.score-shell { max-width: 760px; margin-inline: auto; }
.q { display: none; } .q.on { display: block; animation: fadeup .6s var(--ease); }
@keyframes fadeup { from { opacity: 0; transform: translateY(12px); } }
.q h3 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.answers { display: grid; gap: 10px; margin-top: 22px; }
.answer { text-align: left; padding: 16px 18px; background: rgba(6, 8, 11, .6); border: 1px solid var(--line-strong); color: var(--text); font: 400 1.02rem/1.45 var(--serif); cursor: pointer; border-radius: 2px; transition: .2s; }
.answer:hover, .answer:focus-visible { border-color: var(--scan); background: var(--scan-soft); }
.meter { height: 3px; background: var(--line); margin-bottom: 26px; }
.meter i { display: block; height: 100%; width: 0; background: var(--scan); transition: width .6s var(--ease); box-shadow: 0 0 10px var(--scan); }
.badge { display: inline-grid; place-items: center; width: 168px; height: 168px; border-radius: 50%; border: 1px solid currentColor; font: 600 .78rem var(--mono); letter-spacing: .18em; text-transform: uppercase; position: relative; margin-bottom: 18px; }
.badge::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; border: 1px dashed currentColor; opacity: .5; animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge .num { display: block; font-family: var(--display); font-size: 2.7rem; letter-spacing: 0; }
.tier-trusted { color: var(--green); } .tier-standard { color: var(--scan); } .tier-watched { color: var(--amber); } .tier-restricted { color: var(--pink); } .tier-penalized { color: var(--hemo); }
.result { display: none; text-align: center; } .result.on { display: block; animation: fadeup .8s var(--ease); }
.share { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- formats / book ---------- */
.book-stage { perspective: 1600px; display: grid; place-items: center; padding: 30px 0; }
.book { position: relative; width: min(320px, 70vw); aspect-ratio: 2 / 3; transform-style: preserve-3d; transform: rotateY(-24deg) rotateX(4deg); transition: transform 1.2s var(--ease); }
.book:hover { transform: rotateY(-8deg) rotateX(2deg); }
.book .cover { position: absolute; inset: 0; overflow: hidden; box-shadow: 30px 40px 80px -20px rgba(0, 0, 0, .9); background: #000; border-radius: 2px 4px 4px 2px; }
.book .cover picture, .book .cover img { width: 100%; height: 100%; object-fit: cover; }
.book .cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .12), transparent 6%, transparent 94%, rgba(0, 0, 0, .3)); }
.book .spine { position: absolute; top: 0; bottom: 0; left: 0; width: 34px; transform: rotateY(-90deg) translateZ(17px) translateX(-17px); transform-origin: left; background: linear-gradient(90deg, #05070a, #10161d); }
.book .title-plate { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 9% 8%; text-align: center; z-index: 2; }
.book .title-plate .t { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: .95; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }
.book .title-plate .a { font: 500 .62rem var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--text-dim); }
.formats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.format { border: 1px solid var(--line); padding: 22px; background: var(--ink-2); }
.format h3 { font-size: 1.6rem; margin: 10px 0 6px; }
.tiers-support { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.support { position: relative; border: 1px solid var(--line-strong); padding: 26px 22px; background: var(--ink-2); display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: .25s; }
.support input { position: absolute; opacity: 0; }
.support:hover { border-color: var(--scan); }
.support:has(input:checked) { border-color: var(--scan); box-shadow: 0 0 0 4px var(--scan-soft); background: linear-gradient(180deg, rgba(98, 212, 255, .06), var(--ink-2)); }
.support:has(input:focus-visible) { outline: 2px solid var(--scan); outline-offset: 3px; }
.support .price { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.support .price small { font: 400 .8rem var(--mono); color: var(--muted); }
.support ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--text-dim); font-size: .95rem; }
.strength { display: flex; align-items: center; gap: 14px; font: 500 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.strength .bars { display: flex; gap: 3px; align-items: end; }
.strength .bars i { width: 5px; background: var(--line-strong); }
.strength .bars i.on { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ---------- teaser player ---------- */
.teaser { position: fixed; inset: 0; z-index: 80; background: #000; display: grid; place-items: center; overflow: hidden; }
.teaser[hidden] { display: none; }
.teaser .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.teaser .slide.on { opacity: 1; }
.teaser .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 9s linear; }
.teaser .slide.on img { transform: scale(1); }
.teaser .card { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--gutter); z-index: 3; pointer-events: none; }
.teaser .card p { font-family: var(--display); font-size: clamp(1.8rem, 4.6vw, 3.6rem); line-height: 1.1; max-width: 18em; opacity: 0; transition: opacity 1.2s ease; text-shadow: 0 2px 30px #000; margin: 0; }
.teaser .card p.on { opacity: 1; }
.teaser .card p small { display: block; font: 500 .8rem var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--scan); margin-top: 14px; }
.teaser .vignette { position: absolute; inset: 0; z-index: 2; background: radial-gradient(ellipse, transparent 40%, rgba(0, 0, 0, .85)); }
.teaser .controls { position: absolute; z-index: 4; top: 18px; right: 18px; display: flex; gap: 10px; }
.teaser .letterbox::before, .teaser .letterbox::after { content: ''; position: absolute; left: 0; right: 0; height: 9vh; background: #000; z-index: 3; }
.teaser .letterbox::before { top: 0; } .teaser .letterbox::after { bottom: 0; }
.play-tile { position: relative; display: block; overflow: hidden; text-decoration: none; cursor: pointer; border: 1px solid var(--line); background: #000; width: 100%; padding: 0; color: var(--text); }
.play-tile img { transition: transform 1.4s var(--ease), opacity .6s; opacity: .78; }
.play-tile:hover img { transform: scale(1.04); opacity: .95; }
.play-tile .pi { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; }
.play-tile .ring { width: 86px; height: 86px; border-radius: 50%; border: 1px solid var(--scan); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--scan-soft); transition: .4s; }
.play-tile:hover .ring { box-shadow: 0 0 0 18px var(--scan-soft); }
.play-tile .ring svg { width: 26px; margin-left: 4px; color: var(--scan); }

/* ---------- boot overlay ---------- */
.boot { position: fixed; inset: 0; z-index: 90; background: radial-gradient(ellipse at 50% 120%, #0b1a24, #030405 70%); display: grid; place-items: center; padding: var(--gutter); }
.boot[hidden] { display: none; }
.boot.leaving { animation: bootout .9s var(--ease) forwards; }
@keyframes bootout { to { opacity: 0; transform: scale(1.04); filter: blur(6px); visibility: hidden; } }
.boot-inner { width: min(620px, 100%); font: 400 .86rem/1.9 var(--mono); color: var(--green); }
.boot-lines p { margin: 0; white-space: pre-wrap; opacity: 0; }
.boot-lines p.on { opacity: 1; }
.boot-lines .dimline { color: #4f8d62; }
.boot-lines .cy { color: var(--scan); }
.boot-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; transition: opacity .6s; }
.boot-actions.on { opacity: 1; }
.boot .note { margin-top: 18px; color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.cursor::after { content: '▌'; animation: blink 1s steps(2) infinite; margin-left: 2px; }

/* ---------- terminal ---------- */
.terminal { position: fixed; z-index: 85; right: var(--gutter); bottom: var(--gutter); width: min(560px, calc(100vw - 2 * var(--gutter))); max-height: min(70vh, 520px); display: flex; flex-direction: column;
  background: rgba(3, 8, 5, .96); border: 1px solid rgba(134, 255, 165, .35); box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .9), 0 0 40px -10px rgba(134, 255, 165, .25); font: 400 .82rem/1.6 var(--mono); color: var(--green); }
.terminal[hidden] { display: none; }
.terminal header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid rgba(134, 255, 165, .2); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; }
.terminal header button { background: none; border: 0; color: var(--green); cursor: pointer; font: inherit; }
.term-out { padding: 12px; overflow-y: auto; flex: 1; white-space: pre-wrap; text-shadow: 0 0 6px rgba(134, 255, 165, .35); }
.term-in { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(134, 255, 165, .2); }
.term-in input { flex: 1; min-height: 0; padding: 4px; background: transparent; border: 0; color: var(--green); font: inherit; box-shadow: none; }
.term-in input:focus { box-shadow: none; }
.term-trigger { background: none; border: 0; padding: 4px; font: 500 .9rem var(--mono); color: var(--green); cursor: pointer; opacity: .7; }
.term-trigger:hover { opacity: 1; text-shadow: 0 0 8px var(--green); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px var(--gutter) 40px; background: linear-gradient(var(--ink), #030405); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; max-width: var(--max); margin-inline: auto; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer nav { display: grid; gap: 8px; }
.site-footer nav a { text-decoration: none; color: var(--text-dim); font-size: .95rem; }
.site-footer .legal { max-width: var(--max); margin: 36px auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 400 .68rem var(--mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* ---------- misc pages ---------- */
.page-head { padding: clamp(140px, 20vw, 220px) 0 clamp(40px, 6vw, 70px); position: relative; }
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.5rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .4em; }
.note-adult { border-left: 2px solid var(--amber); padding: 14px 18px; background: rgba(233, 182, 79, .06); font-size: .95rem; color: var(--text-dim); }
.pull-rail { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pull { font-family: var(--display); font-size: 1.45rem; line-height: 1.25; font-style: italic; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.pull cite { display: block; font: normal 500 .64rem var(--mono); letter-spacing: .16em; color: var(--muted); margin-top: 10px; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .scanline, .grain::before { display: none; }
}
