/* ============================================================
   SCHRÖDINGER: a scroll cinema in three chapters
   Chapter 1: the box.  Chapter 2: inside.  Chapter 3: the coin.
   Lime = alive. Magenta = dead. The films carry the page;
   the UI stays out of their way.
   ============================================================ */

:root {
  --void:    #0B0A12;
  --void-2:  #12111D;
  --line:    rgba(255, 246, 232, .14);
  --line-2:  rgba(255, 246, 232, .07);
  --alive:   #B8FF2E;
  --dead:    #FF2E88;
  --flood:   #C6FF4A;
  --bone:    #FFF6E8;
  --paper:   #FFFFFF;
  --ash:     #A3A1B5;

  --display: 'Lilita One', 'Arial Black', sans-serif;
  --body:    'Baloo 2', -apple-system, system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;

  --gut: clamp(1.5rem, 5vw, 5rem);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* ---------- ambient layers ---------- */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #ffffffb0 50%, transparent 51%),
    radial-gradient(1px   1px   at 34% 62%, #ffffff70 50%, transparent 51%),
    radial-gradient(2px   2px   at 58% 31%, #ffffff90 50%, transparent 51%),
    radial-gradient(1px   1px   at 73% 74%, #ffffff60 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 89% 12%, #ffffff90 50%, transparent 51%),
    radial-gradient(1px   1px   at 21% 89%, #ffffff55 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 66% 91%, #ffffff80 50%, transparent 51%),
    radial-gradient(1px   1px   at 44% 8%,  #ffffff70 50%, transparent 51%);
  background-size: 900px 900px;
}

/* hairline crosshair guides, pear-style */
.guides {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}
.guides::before, .guides::after {
  content: '';
  position: absolute;
  background: rgba(255, 246, 232, .09);
}
.guides::before { left: var(--gut); top: 0; bottom: 0; width: 1px; }
.guides::after  { top: 70vh; left: 0; right: 0; height: 1px; }
.guides span {
  position: absolute;
  left: var(--gut);
  top: 70vh;
  transform: translate(-50%, -50%);
  color: rgba(255, 246, 232, .5);
  font-size: .72rem;
}

/* four corner marks, like a film frame */
.corners { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.corners span {
  position: absolute;
  color: rgba(255, 246, 232, .4);
  font-size: .7rem;
}
.corners span:nth-child(1) { top: 1rem; left: 1.1rem; }
.corners span:nth-child(2) { top: 1rem; right: 1.1rem; }
.corners span:nth-child(3) { bottom: 1rem; left: 1.1rem; }
.corners span:nth-child(4) { bottom: 1rem; right: 1.1rem; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .015em; line-height: .95; margin: 0; text-transform: uppercase; }

.sticker {
  -webkit-text-stroke: .085em var(--void);
  paint-order: stroke fill;
  text-shadow: .045em .07em 0 rgba(0, 0, 0, .55);
}
.sticker-ring { position: relative; display: inline-block; }
.sticker-ring::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--paper);
  -webkit-text-stroke: .2em var(--paper);
  text-shadow: .045em .07em 0 rgba(0, 0, 0, .55);
}
.t-alive { color: var(--alive); }
.t-dead  { color: var(--dead); }
.t-bone  { color: var(--bone); }

/* tiny letterspaced label: the pear detail */
.k {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--alive);
}
.k.is-dead { color: var(--dead); }
.k.is-dim  { color: var(--ash); }

/* ---------- buttons: the only loud chrome allowed ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .9rem 2rem;
  border: 3px solid var(--void);
  border-radius: 999px;
  background: var(--alive);
  color: var(--void);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 0 3px var(--paper), .38em .42em 0 var(--dead);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover  { transform: translate(-2px, -2px); box-shadow: 0 0 0 3px var(--paper), .52em .56em 0 var(--dead); }
.btn:active { transform: translate(3px, 4px);  box-shadow: 0 0 0 3px var(--paper), 0 0 0 var(--dead); }
.btn:disabled { opacity: .55; cursor: wait; }

.btn--quiet {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bone);
  box-shadow: none;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  padding: .85rem 1.7rem;
}
.btn--quiet:hover  { transform: none; box-shadow: none; border-color: var(--alive); color: var(--alive); }
.btn--quiet:active { transform: scale(.98); box-shadow: none; }

/* ============================================================
   NAV: nearly invisible until the story lets go
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .4s, backdrop-filter .4s;
}
.nav .wrap {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.nav.is-solid {
  background: color-mix(in oklab, var(--void) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.brand { flex: none; display: block; }
.brand img { height: 44px; width: auto; filter: drop-shadow(0 2px 6px rgba(11, 10, 18, .7)); transition: transform .15s; }
.brand:hover img { transform: scale(1.04); }
.nav-right { display: flex; align-items: center; gap: 1.8rem; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color .15s;
}
.nav-links a:hover { color: var(--alive); }
.nav .btn {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  padding: .6rem 1.25rem;
  border: 0;
  box-shadow: 0 2px 14px rgba(184, 255, 46, .25);
}
.nav .btn:hover  { transform: none; box-shadow: 0 2px 20px rgba(184, 255, 46, .45); }
.nav .btn:active { transform: scale(.97); }

/* ============================================================
   THE SCROLL CINEMA
   Each chapter is a tall scroll region with a sticky stage.
   JS sets --p (0→1) per chapter; CSS does everything else.
   ============================================================ */
.chapter { position: relative; z-index: 1; }
.chapter .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.chapter .stage > video,
.chapter .stage > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}
.chapter .stage > canvas { opacity: 0; transition: opacity .5s; background: var(--void); }
.chapter .stage > canvas.is-ready { opacity: 1; }
/* gentle constant vignette so type always reads */
.chapter .stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(11, 10, 18, .62) 100%),
    linear-gradient(180deg, rgba(11, 10, 18, .55) 0%, transparent 18%, transparent 80%, rgba(11, 10, 18, .55) 100%);
}

/* chapters 1 & 2 are frame-scrubbed: the camera motion lives in
   the frames themselves; scroll IS the camera. Longer regions
   give the scrub more runway and a slower, smoother feel. */
#ch-box    { height: 520vh; }
#ch-inside { height: 460vh; }

/* chapter 3: ambient loop with a whisper of scroll zoom */
#ch-coin   { height: 320vh; }
#ch-coin   .stage > video { transform: scale(calc(1 + var(--p, 0) * .08)); }

/* ------------------------------------------------------------
   the green transition: light BLOOMS out of the seam, the scene
   overexposes into it, then chapter 2 un-blooms from the same green
   ------------------------------------------------------------ */
/* the bloom core: a ball of light that grows from the seam */
.flood-core {
  position: absolute;
  inset: -20%;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(closest-side at 50% 56%,
    #FBFFE0 0%, #F2FBC0 30%, #DDF07E 54%, rgba(221, 240, 126, .45) 70%, transparent 82%);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
/* the fill: guarantees a solid green hand-off between chapters.
   FLAT and sampled from the film's own final flood frames
   (#EDF7AC), identical on both sides so no seam line can show. */
.flood {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: #EDF7AC;
}

/* chapter 1: bloom grows p .72→.96, fill seals p .9→1 */
#ch-box .flood-core {
  opacity: clamp(0, (var(--p, 0) - .72) / .1, 1);
  transform: scale(calc(.25 + clamp(0, (var(--p, 0) - .72) / .24, 1) * 2.15));
}
#ch-box .flood { opacity: clamp(0, (var(--p, 0) - .88) / .09, 1); }
/* the scene itself overexposes as the light takes over */
#ch-box .stage > canvas {
  filter: brightness(calc(1 + clamp(0, (var(--p, 0) - .68) / .3, 1) * .9))
          saturate(calc(1 + clamp(0, (var(--p, 0) - .68) / .3, 1) * .35));
}

/* chapter 2: fill lets go fast, bloom shrinks back, exposure settles */
#ch-inside .flood { opacity: clamp(0, (.1 - var(--p, 0)) / .07, 1); }
#ch-inside .flood-core {
  opacity: clamp(0, (.2 - var(--p, 0)) / .16, 1);
  transform: scale(calc(.35 + clamp(0, (.22 - var(--p, 0)) / .22, 1) * 2));
}
#ch-inside .stage > canvas {
  filter: brightness(calc(1 + clamp(0, (.2 - var(--p, 0)) / .2, 1) * .8));
}

/* scroll beats: fade in at --in, fade out at --out */
.beats { position: relative; z-index: 2; width: 100%; display: grid; }
.beat {
  grid-area: 1 / 1;
  pointer-events: none;
  opacity: calc(
    clamp(0, (var(--p, 0) - var(--in)) / .07, 1) *
    clamp(0, (var(--out) - var(--p, 0)) / .07, 1)
  );
  transform: translateY(calc((1 - clamp(0, (var(--p, 0) - var(--in)) / .07, 1)) * 30px));
}
.beat a,
.beat button { pointer-events: auto; }
/* chapter 1 anchors its beats low, like the mockup */
.chapter .stage--low { align-items: flex-end; }
.chapter .stage--low .beats { padding-bottom: clamp(5rem, 14vh, 9rem); }
/* only the SMALL colored labels get a glass pill; the big white
   text stays raw and leans on a heavy layered shadow instead */
.chapter .beat .k {
  width: fit-content;
  background: color-mix(in oklab, var(--void) 62%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: .45em .95em;
}
.beat .k { display: block; margin-bottom: 1rem; }
.beat-line {
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.25;
  max-width: 22ch;
  margin: 0;
  text-wrap: balance;
  text-shadow:
    0 2px 6px rgba(11, 10, 18, .95),
    0 4px 22px rgba(11, 10, 18, .85),
    0 0 52px rgba(11, 10, 18, .7);
}
.beat-line em { font-style: normal; color: var(--alive); }
.beat-line .dead { color: var(--dead); }

/* the big title beat */
.beat h1 {
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: .85;
  display: grid;
  justify-items: start;
}
.beat h1 .amp { color: var(--bone); font-size: .42em; line-height: 1.1; transform: translateY(.14em); }
.beat .after-title {
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 700;
  color: var(--bone);
  text-shadow:
    0 2px 6px rgba(11, 10, 18, .95),
    0 4px 18px rgba(11, 10, 18, .85);
}

/* icon links: compact so they sit well on mobile */
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--void) 62%, transparent);
  backdrop-filter: blur(8px);
  transition: border-color .15s, transform .15s, opacity .15s;
}
.ico:hover { border-color: var(--alive); transform: translateY(-2px); }
.ico svg { width: 14px; height: 14px; fill: var(--bone); }
.ico img { width: 17px; height: 17px; border-radius: 4px; }
@media (max-width: 520px) { .ico { width: 30px; height: 30px; } .ico svg { width: 12px; height: 12px; } .ico img { width: 15px; height: 15px; } }

/* in the hero the logos sit bare on the art, with no chrome */
.beat-links { display: flex; gap: 1.1rem; margin-top: 1.4rem; align-items: center; }
.beat-links .ico {
  background: none;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.beat-links .ico svg { filter: drop-shadow(0 2px 5px rgba(11, 10, 18, .9)); }
.beat-links .ico img { filter: drop-shadow(0 2px 5px rgba(11, 10, 18, .9)); }
.beat-links .ico:hover { transform: translateY(-2px) scale(1.12); }

/* the buy button IS the cat: pointy ears grow from the pill */
.btn--cat { position: relative; }
.btn--cat::before,
.btn--cat::after {
  content: '';
  position: absolute;
  top: -0.62em;
  width: 1.2em;
  height: .72em;
  background: var(--alive);
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  filter:
    drop-shadow(0 -2.5px 0 var(--void))
    drop-shadow(2.5px 0 0 var(--void))
    drop-shadow(-2.5px 0 0 var(--void));
  transition: transform .15s;
}
.btn--cat::before { left: 1em; transform: rotate(-10deg); }
.btn--cat::after  { right: 1em; transform: rotate(10deg); }
.btn--cat:hover::before { transform: rotate(-16deg) translateY(-1px); }
.btn--cat:hover::after  { transform: rotate(16deg) translateY(-1px); }

/* the huge number beat */
.big-num {
  font-family: var(--display);
  font-size: clamp(4.5rem, 13vw, 11rem);
  line-height: .9;
  color: var(--alive);
}

/* CTA cluster (end of chapter 3, never fades out) */
.cta-beat .pill-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.ca {
  margin-top: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--void) 72%, transparent);
  backdrop-filter: blur(8px);
  padding: .5rem .55rem .5rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  max-width: 560px;
}
.ca-label { font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .26em; color: var(--alive); flex: none; }
.ca-value {
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--bone);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.ca-copy {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: var(--alive);
  border: 0;
  border-radius: 999px;
  color: var(--void);
  padding: .5rem 1.1rem;
  cursor: pointer;
  flex: none;
  transition: transform .12s;
}
.ca-copy:not(:disabled):hover  { transform: scale(1.05); }
.ca-copy:not(:disabled):active { transform: scale(.95); }
.ca-copy:disabled { cursor: not-allowed; opacity: .55; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ash);
  opacity: calc(1 - var(--p, 0) * 8);
  animation: hint 2.2s ease-in-out infinite;
}
@keyframes hint { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ---------- chapter progress rail (right edge) ---------- */
.rail {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2.2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  height: 34vh;
  width: 1px;
  background: rgba(255, 246, 232, .14);
  transition: opacity .5s;
}
.rail.is-gone { opacity: 0; pointer-events: none; }
.rail b {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 246, 232, .45);
  background: var(--void);
  cursor: pointer;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.rail b:nth-of-type(1) { top: 8%; }
.rail b:nth-of-type(2) { top: 50%; }
.rail b:nth-of-type(3) { top: 92%; }
.rail b.on { background: var(--alive); border-color: var(--alive); box-shadow: 0 0 10px 1px color-mix(in srgb, var(--alive) 60%, transparent); }
.rail i {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: var(--alive);
  box-shadow: 0 0 12px 1px color-mix(in srgb, var(--alive) 55%, transparent);
}

/* ---------- loader: sealed until chapter 1 is ready ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--void);
  display: grid;
  place-items: center;
  transition: opacity .6s;
}
#loader.is-done { opacity: 0; pointer-events: none; }
#loader .inner { display: grid; gap: 1.1rem; justify-items: center; }
#loader .k { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
#loader .bar {
  width: 180px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 246, 232, .12);
  overflow: hidden;
}
#loader .bar i { display: block; height: 100%; width: 0; background: var(--alive); transition: width .3s; }

/* ============================================================
   QUIET SECTIONS: hairlines, air, mono labels
   ============================================================ */
.section { position: relative; z-index: 1; padding-block: clamp(5.5rem, 14vh, 10rem); background: var(--void); }
.section--line { border-top: 1px solid var(--line-2); }

.section-head { margin-bottom: clamp(2.8rem, 7vw, 4.5rem); }
.section-head .k { display: block; margin-bottom: 1.3rem; }
.section-head h2 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
.section-head p { color: var(--ash); font-weight: 600; max-width: 56ch; margin: 1.3rem 0 0; }

/* ---------- observe ---------- */
#observe .stage-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--void-2);
}
#observe .stage-bg {
  position: absolute;
  inset: 0;
  background: url('../img/lab-observe.webp') center / cover no-repeat;
  opacity: .3;
  transition: opacity .6s;
}
#observe .stage-wrap.is-alive .stage-bg { opacity: .5; }
#observe .stage-wrap.is-dead  .stage-bg { opacity: .12; filter: hue-rotate(255deg) saturate(1.1); }
#observe .stage-inner {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.box-state {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: .9;
  text-transform: uppercase;
  margin: 1rem 0 0;
}
.box-state[data-state="unknown"] { color: var(--bone); }
.box-state[data-state="alive"]   { color: var(--alive); }
.box-state[data-state="dead"]    { color: var(--dead); }
.box-note { color: var(--ash); font-weight: 600; margin: 1.1rem 0 0; max-width: 44ch; min-height: 3.2em; }

.observe-side { display: grid; gap: 1.6rem; justify-items: center; text-align: center; }
.box-result {
  width: clamp(180px, 22vw, 260px);
  border-radius: 20px;
  border: 1px solid var(--line);
  display: none;
}
.is-resolved .box-result { display: block; }

.tally {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  font-family: var(--mono);
}
.tally > div { display: flex; align-items: baseline; gap: .5rem; }
.tally b { font-size: 1.35rem; font-weight: 700; }
.tally span { font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ash); }
.tally .t-alive b { color: var(--alive); }
.tally .t-dead b  { color: var(--dead); }
.ratio {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--dead) 55%, var(--void));
  overflow: hidden;
}
.ratio i {
  display: block;
  height: 100%;
  background: var(--alive);
  transition: width .6s cubic-bezier(.16, 1, .3, 1);
}

/* ---------- evidence ---------- */
.evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 28px; overflow: hidden; }
.exhibit {
  background: var(--void);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  transition: background .3s;
}
.exhibit:hover { background: var(--void-2); }
/* the embedded post: styled like the real thing, real text,
   real numbers, linked to the original */
.tweet {
  background: #000;
  border: 1px solid #2F3336;
  border-radius: 16px;
  padding: 1.1rem 1.2rem 1rem;
  font-family: -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  display: block;
  transition: border-color .2s, transform .2s;
}
.tweet:hover { border-color: #536471; transform: translateY(-2px); }
.tw-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .75rem; }
.tw-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #16181C;
  border: 1px solid #2F3336;
  display: grid;
  place-items: center;
  color: #E7E9EA;
  font-size: 1.05rem;
  font-weight: 700;
  flex: none;
}
.tw-names { display: grid; line-height: 1.25; }
.tw-names b {
  color: #E7E9EA;
  font-size: .95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.tw-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1D9BF0;
  color: #fff;
  font-size: .6rem;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.tw-names span { color: #71767B; font-size: .85rem; }
.tw-x { margin-left: auto; color: #E7E9EA; font-size: 1.1rem; font-weight: 700; }
.tw-text {
  margin: 0 0 .8rem;
  color: #E7E9EA;
  font-size: 1.02rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.tw-time { display: block; color: #71767B; font-size: .82rem; margin-bottom: .8rem; }
.tw-stats {
  display: flex;
  gap: 1.6rem;
  padding-top: .75rem;
  border-top: 1px solid #2F3336;
  color: #71767B;
  font-size: .8rem;
}
.tw-stats b { color: #E7E9EA; font-weight: 600; }
.exhibit-meta {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--ash);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: auto;
}
.exhibit-meta a { color: var(--alive); }
.exhibit-meta a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 28px; overflow: hidden; }
.stat { background: var(--void); padding: 2.2rem 1.6rem; transition: background .3s; }
.stat:hover { background: var(--void-2); }
.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1;
}
.stat:nth-child(odd) b  { color: var(--alive); }
.stat:nth-child(even) b { color: var(--dead); }
.stat span {
  display: block;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: .9rem;
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 5vw, 3.5rem); }
.step { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.step i {
  position: absolute;
  top: -0.7rem;
  left: 0;
  font-style: normal;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--alive);
  background: var(--void);
  padding-right: .8rem;
}
.step:nth-child(2) i { color: var(--dead); }
.step h3 { font-size: 1.25rem; margin: .4rem 0 .6rem; }
.step p { color: var(--ash); font-weight: 600; margin: 0; font-size: .95rem; }

/* ---------- gallery ---------- */
.gallery-hint {
  display: none;
  margin: -1.5rem 0 1.2rem;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--alive);
}
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery:focus-visible { outline: 2px solid var(--alive); outline-offset: 6px; }
.gallery figure {
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--void-2);
}
.gallery img, .gallery video { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.gallery figure:hover img, .gallery figure:hover video { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 1.8rem 1rem .8rem;
  background: linear-gradient(transparent, rgba(11, 10, 18, .92));
  color: var(--bone);
}
.gallery figure.wide { grid-column: span 2; }
.gallery figure.wide img { aspect-ratio: 2 / 1; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; background: var(--void); border-top: 1px solid var(--line-2); padding-block: 4.5rem 3rem; }
.footer-word { width: 100%; max-width: 480px; margin: 0 auto 2.8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
.footer-links a {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color .15s;
}
.footer-links a:hover { color: var(--alive); }
.footer-ico { display: inline-flex; align-items: center; gap: .55rem; }
.footer-ico svg { width: 15px; height: 15px; fill: currentColor; }
.footer-ico img { width: 17px; height: 17px; border-radius: 4px; }
.disclaimer {
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: .66rem;
  line-height: 1.9;
  color: var(--ash);
  max-width: 86ch;
  text-align: center;
}

/* ---------- reveal on scroll (quiet sections only) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  #observe .stage-inner { grid-template-columns: 1fr; }
  .observe-side { justify-items: start; text-align: left; }
  .evidence { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  #ch-box {
    height: 360vh;
    height: 360svh;
  }
  #ch-inside {
    height: 320vh;
    height: 320svh;
  }
  #ch-coin {
    height: 190vh;
    height: 190svh;
  }
  #ch-coin .beat:first-child { --in: .02 !important; --out: .34 !important; }
  #ch-coin .cta-beat { --in: .38 !important; --out: 1.08 !important; }

  .rail,
  .guides { display: none; }

  .section { padding-block: 4.5rem; }

  .gallery-hint { display: block; }
  .gallery {
    grid-template-columns: none;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-flow: column;
    grid-auto-columns: min(74vw, 280px);
    gap: .8rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scroll-padding-inline: .25rem;
    padding: .25rem .25rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--alive) var(--line-2);
    -webkit-overflow-scrolling: touch;
  }
  .gallery figure,
  .gallery figure.wide {
    grid-column: auto;
    scroll-snap-align: start;
  }
  .gallery figure.wide img { aspect-ratio: 1; }

  .footer { padding-block: 3.5rem 2.5rem; }
}
@media (max-width: 520px) {
  .ca { flex-wrap: wrap; border-radius: 20px; }
  .brand { font-size: 1.15rem; }
  .nav .wrap { gap: .6rem; }
  .nav-right { gap: .7rem; }
  .nav .btn { font-size: .58rem; padding: .5rem .9rem; letter-spacing: .14em; }
}
@media (max-width: 360px) {
  .stats { grid-template-columns: 1fr; }
  .stats .stat:last-child:nth-child(odd) { grid-column: auto; }
}
