/* ============================================================
   RiskEra — space risk-web. Void black, marble bone, electric-violet accent,
   green = rising, red = falling.
   ============================================================ */
:root {
  --void:   #08070E;
  --void-2: #100E18;
  --panel:  #15131F;
  --bone:   #ECE7DD;
  --muted:  #9AA0AA;
  --line:   #262430;

  --uv:     #8B5CF6;   /* electric violet — the one brand accent */
  --uv-hi:  #C084FC;   /* lighter plasma for hovers + glow */
  --cyan:   #5BE6E0;   /* cool secondary spark */
  --up:     #35D29A;   /* rising / money in */
  --down:   #E8694A;   /* falling / money out */

  --maxw: 1080px;
  --gut: clamp(20px, 5vw, 64px);

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: clamp(16px, 1.05vw + 13px, 19px);
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* ---- background stack (bottom → top): footage · stars · plasma glow · grain · content ---- */
.fx-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  /* fade the footage into the void at the edges so it never looks like a panel */
  -webkit-mask: radial-gradient(125% 115% at 50% 38%, #000 32%, transparent 78%);
          mask: radial-gradient(125% 115% at 50% 38%, #000 32%, transparent 78%);
}
.fx-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.5s ease;
  /* monochrome hextech treatment — bone/void, not stock-video color */
  filter: grayscale(1) contrast(1.16) brightness(0.55);
  will-change: opacity, transform;
}
/* slow Ken Burns drift while a clip is up — the cinematic move; GPU-composited */
.fx-video.on { opacity: 0.24; animation: kbDrift 22s ease-in-out infinite alternate; }
@keyframes kbDrift {
  from { transform: scale(1.03) translate3d(-0.6%, 0, 0); }
  to   { transform: scale(1.10) translate3d(0.6%, 0.5%, 0); }
}

.stars { position: fixed; inset: 0; z-index: 1; display: block; pointer-events: none; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(70vw 60vh at 78% -8%, rgba(139,92,246,0.18), transparent 60%),
    radial-gradient(55vw 55vh at 12% 110%, rgba(91,230,224,0.08), transparent 60%),
    radial-gradient(45vw 45vh at 50% 45%, rgba(192,132,252,0.06), transparent 65%);
}

/* scanline + film-grain wash — grain drifts via transform on a child layer
   (compositor-only) instead of repainting a full-viewport background */
.fx-grain { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.5;
  overflow: hidden;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.fx-grain::before {
  content: ""; position: absolute; inset: -30px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/></svg>");
  background-size: 160px 160px;
  animation: grainShift 0.9s steps(3) infinite;
  will-change: transform;
}
@keyframes grainShift {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(24px,14px,0); }
}

.nav, main, .foot { position: relative; z-index: 3; }

/* ---- cut treatment: default is a pure slow crossfade; ~1 in 3 cuts pops the
       signature hextech glitch. One clean look instead of eight competing ones,
       and no blur/drop-shadow work on a full-viewport video (the old jank). ---- */
/* trGlitch listed LAST: both animate transform, and the later animation in the
   list wins the property — glitch first would be silently masked by the drift */
.fx-video.on.tr-glitch {
  animation: kbDrift 22s ease-in-out infinite alternate, trGlitch .6s steps(2) 1;
}
@keyframes trGlitch {
  0%   { transform: translate3d(-6px,0,0) scale(1.03); }
  30%  { transform: translate3d(5px,0,0) scale(1.03); }
  60%  { transform: translate3d(-3px,0,0) scale(1.03); }
  100% { transform: scale(1.03); }
}

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--uv); margin-bottom: 1.4rem;
  display: inline-flex; align-items: center; gap: 9px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.lead {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(28px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.02em;
  max-width: 18ch; margin-bottom: 1.4rem;
}
.body { color: #C7C3BA; max-width: 56ch; font-size: clamp(16px, 1.1vw + 12px, 20px); }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gut); position: sticky; top: 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(var(--void), rgba(6,7,11,0.3));
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.mark { font-family: var(--f-display); font-weight: 900; letter-spacing: 0.18em; font-size: 18px; color: var(--bone); text-decoration: none; }
.mark.small { font-size: 15px; }
.nav-cta {
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bone); text-decoration: none; padding: 9px 18px;
  border: 1px solid var(--line); border-radius: 999px; transition: border-color .25s ease, color .25s ease;
}
.nav-cta:hover { border-color: var(--uv); color: var(--uv-hi); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 88vh; display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gut); max-width: var(--maxw); margin: 0 auto;
}
.hero-title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(44px, 9vw, 116px); line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 1.6rem;
}
/* words flow inline so "Everything is" share a line; the <br> drops "connected." */
.hero-title span { display: inline-block; }
.hero-title .accent { display: block; color: var(--uv); text-shadow: 0 0 36px rgba(139,92,246,0.3); }

/* ---- Arcane / hextech glitch headline ---- */
.glitch span { position: relative; }
.glitch span::before, .glitch span::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
  clip-path: inset(0 0 100% 0); opacity: 0;
}
.glitch span::before { color: #50b4ff; transform: translate3d(-2px,0,0); }  /* blue split */
.glitch span::after  { color: var(--uv); transform: translate3d(2px,0,0); } /* violet split */
/* flicker is driven at RANDOM intervals by the flicker controller — it toggles
   ONE of five glitch styles (fk1..fk5) with a randomized duration (--fkdur), so
   the headline never glitches the same way twice. Idle = clean, sharp text. */
/* fk1 — horizontal chroma split */
.glitch.fk1 span::before { animation: glKickA var(--fkdur,.28s) steps(2) 1; }
.glitch.fk1 span::after  { animation: glKickB var(--fkdur,.28s) steps(2) 1; }
/* fk2 — vertical band slice */
.glitch.fk2 span::before { animation: glBandA var(--fkdur,.34s) steps(3) 1; }
.glitch.fk2 span::after  { animation: glBandB var(--fkdur,.34s) steps(3) 1; }
/* fk3 — hard multi-jag (longer, more steps, both directions) */
.glitch.fk3 span::before { animation: glKickA var(--fkdur,.5s) steps(4) 1; }
.glitch.fk3 span::after  { animation: glBandB var(--fkdur,.5s) steps(4) 1; }
/* fk4 — skew tear: the live text skews while the channels split */
.glitch.fk4 span         { animation: glSkew var(--fkdur,.3s) steps(2) 1; }
.glitch.fk4 span::before { animation: glKickB var(--fkdur,.3s) steps(2) 1; }
.glitch.fk4 span::after  { animation: glKickA var(--fkdur,.3s) steps(2) 1; }
/* fk5 — fast double blink with a tiny shift */
.glitch.fk5 span::before { animation: glBlink var(--fkdur,.22s) steps(2) 2; }
.glitch.fk5 span::after  { animation: glBlink var(--fkdur,.22s) steps(2) 2; }
@keyframes glKickA {
  0% { opacity: 0.8; clip-path: inset(8% 0 70% 0); transform: translate3d(-6px,0,0); }
  30% { clip-path: inset(55% 0 22% 0); transform: translate3d(5px,0,0); }
  60% { clip-path: inset(20% 0 60% 0); transform: translate3d(-3px,0,0); }
  100% { opacity: 0; transform: translate3d(0,0,0); }
}
@keyframes glKickB {
  0% { opacity: 0.7; clip-path: inset(72% 0 6% 0); transform: translate3d(6px,0,0); }
  30% { clip-path: inset(12% 0 64% 0); transform: translate3d(-5px,0,0); }
  60% { clip-path: inset(48% 0 30% 0); transform: translate3d(3px,0,0); }
  100% { opacity: 0; transform: translate3d(0,0,0); }
}
/* vertical slices that jump up/down rather than left/right */
@keyframes glBandA {
  0% { opacity: 0.8; clip-path: inset(0 64% 0 6%); transform: translate3d(0,-7px,0); }
  40% { clip-path: inset(0 18% 0 60%); transform: translate3d(0,5px,0); }
  70% { clip-path: inset(0 50% 0 24%); transform: translate3d(0,-3px,0); }
  100% { opacity: 0; transform: translate3d(0,0,0); }
}
@keyframes glBandB {
  0% { opacity: 0.7; clip-path: inset(0 8% 0 70%); transform: translate3d(0,7px,0); }
  40% { clip-path: inset(0 62% 0 12%); transform: translate3d(0,-5px,0); }
  70% { clip-path: inset(0 30% 0 48%); transform: translate3d(0,3px,0); }
  100% { opacity: 0; transform: translate3d(0,0,0); }
}
@keyframes glSkew {
  0% { transform: skewX(0) translate3d(0,0,0); }
  35% { transform: skewX(-7deg) translate3d(3px,0,0); }
  65% { transform: skewX(5deg) translate3d(-2px,0,0); }
  100% { transform: skewX(0) translate3d(0,0,0); }
}
@keyframes glBlink {
  0% { opacity: 0; transform: translate3d(-3px,0,0); }
  50% { opacity: 0.85; transform: translate3d(3px,0,0); }
  100% { opacity: 0; transform: translate3d(0,0,0); }
}
.hero-sub { color: #C7C3BA; max-width: 52ch; font-size: clamp(17px, 1.2vw + 13px, 22px); margin-bottom: 2.4rem; }
.scroll-hint { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-top: 3rem; }
.scroll-hint::before { content: "↓  "; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; align-self: flex-start;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bone); background: linear-gradient(100deg, var(--uv), var(--uv-hi)); text-decoration: none;
  padding: 14px 30px; border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 0 34px rgba(139,92,246,0.4);
  transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
}
.btn:hover { filter: brightness(1.08); box-shadow: 0 0 46px rgba(139,92,246,0.6); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--uv-hi); outline-offset: 3px; }

/* ---------- hextech self-drawing line-art (Arcane) ---------- */
/* strokes hide via dash (pathLength=1) then draw to 0 when their .draw box
   scrolls into view (.in added by the reveal observer). Violet, soft glow. */
.draw .ln {
  fill: none;
  stroke: rgba(139,92,246,0.8);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  /* --o (set by draw.js to 1 or -1) picks which END the stroke draws from;
     +1 = forward, -1 = reverse (bottom-up / right-left / inward). */
  stroke-dasharray: 1; stroke-dashoffset: var(--o, 1);
}
/* --d (set by draw.js) staggers each stroke's start so the order is random too. */
.draw.in .ln { transition: stroke-dashoffset 1.3s cubic-bezier(.4,.5,.2,1) var(--d, 0s); stroke-dashoffset: 0; }
.draw .dot-pt { fill: rgba(139,92,246,0.75); opacity: 0; }
.draw.in .dot-pt { transition: opacity .5s ease 1.3s; opacity: 1; }

/* pop-up hextech glyphs (drawn by the glyph spawner, over the page) */
.fx-glyphs { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.glyph {
  position: absolute; transform-origin: 50% 50%;
  opacity: 0.95; transition: opacity .8s ease;
  mix-blend-mode: screen; filter: drop-shadow(0 0 7px rgba(139,92,246,0.55));
}
.glyph.out { opacity: 0; }

/* ---------- orbital planet system (hero centerpiece) ---------- */
.planets {
  position: absolute; right: clamp(-60px, -3vw, -10px);
  top: clamp(40px, 10vh, 140px);
  width: clamp(220px, 34vw, 460px); height: clamp(220px, 34vw, 460px);
  z-index: -1; pointer-events: none;
}
.psys-svg { width: 100%; height: 100%; overflow: visible; mix-blend-mode: screen;
  filter: drop-shadow(0 0 12px rgba(139,92,246,0.45)); }
/* whole system rotates slowly around its centre */
.psys { transform-box: view-box; transform-origin: 100px 100px; animation: runeSpin 110s linear infinite; }
/* each planet's shade re-rolls via a filter swap (smoothly) */
.planet { transition: filter .6s ease; }
.pring { fill: none; stroke: rgba(222,212,255,0.85); stroke-width: 1.4; opacity: 0; transition: opacity .7s ease; }
.pcore { animation: runePulse 6s ease-in-out infinite; }
@keyframes runeSpin { to { transform: rotate(360deg); } }
@keyframes runePulse { 0%,100% { opacity: 0.85; } 50% { opacity: 1; } }
.circuit {
  display: block; width: 100%; height: auto;
  max-width: 1200px; margin: clamp(20px, 5vh, 56px) auto 0;
  padding: 0 var(--gut);
  filter: drop-shadow(0 0 4px rgba(139,92,246,0.3));
  mix-blend-mode: screen;
}

/* ---------- section-header hextech rune (draws in on scroll) ---------- */
.head-rune {
  display: block; width: clamp(34px, 4vw, 48px); height: auto; margin-bottom: 0.7rem;
  filter: drop-shadow(0 0 8px rgba(139,92,246,0.55));
  mix-blend-mode: screen;
}

/* ---------- the risk web ---------- */
.web-wrap { max-width: 1200px; margin: 0 auto; padding: clamp(40px, 8vh, 90px) var(--gut); }
.web-head { max-width: var(--maxw); }
.web-head h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 4vw, 46px); letter-spacing: -0.02em; }
.web-sub { color: #B7B3AB; max-width: 54ch; margin-top: .8rem; }

/* no panel background: the web's canvas is transparent and floats directly on the
   page's void + footage, so the section reads as one continuous space, not a box */
.graph-stage {
  position: relative; margin-top: 1.8rem;
  height: clamp(500px, 78vh, 800px);
  overflow: hidden;
}

/* live dominant-mover readout — plain-English header bar on the web */
.graph-readout {
  position: absolute; left: 14px; right: 14px; top: 12px; z-index: 2; pointer-events: none;
  display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: baseline;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; color: #C7C3BA;
  background: rgba(8,7,14,0.62); border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px;
}
.graph-readout .tag { color: var(--muted); text-transform: uppercase; letter-spacing: 0.16em; }
.graph-readout b { color: var(--uv-hi); }
.graph-readout .up { color: var(--up); } .graph-readout .down { color: var(--down); }
.graph-readout.empty { display: none; }
#graph { position: absolute; inset: 0; }
#graph canvas { display: block; }

/* real detail card — opens on any node / headline click */
.node-card {
  position: absolute; right: 14px; top: 56px; z-index: 4; width: min(320px, calc(100% - 28px));
  max-height: calc(100% - 96px); overflow: auto;
  background: rgba(10,9,16,0.94); border: 1px solid #2a2738; border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(139,92,246,0.12);
  padding: 14px 16px 16px; color: #C7C3BA; font-family: var(--f-body);
  opacity: 0; transform: translateY(6px) scale(0.98); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.node-card.open { opacity: 1; transform: none; pointer-events: auto; }
.node-card h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--bone); margin: 2px 30px 6px 0; line-height: 1.2; }
.node-card .card-meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.node-card .card-head { color: var(--bone); font-size: 1.02rem; line-height: 1.45; margin: 4px 0 8px; }
.node-card .card-track { font-family: var(--f-mono); font-size: 12px; color: var(--uv-hi); }
.node-card .card-sec { margin-top: 10px; }
.node-card .card-sec h4 { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.node-card .card-sec ul { list-style: none; display: grid; gap: 7px; }
.node-card .card-sec li { font-size: .92rem; line-height: 1.4; border-left: 2px solid #2a2738; padding-left: 9px; }
.node-card .card-sec b { color: var(--bone); }
.node-card .why { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.node-card .up { color: var(--up); } .node-card .down { color: var(--down); }
.node-card .card-empty { font-size: .9rem; color: var(--muted); }
.node-card .card-src { display: inline-block; margin-top: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--uv-hi); text-decoration: none; border-bottom: 1px solid rgba(192,132,252,.4); }
.node-card .card-src:hover { color: var(--bone); border-color: var(--bone); }
.node-card .card-x {
  position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 6px;
  background: transparent; border: 1px solid transparent; color: var(--muted);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.node-card .card-x:hover { color: var(--bone); border-color: #2a2738; }
@media (max-width: 560px) {
  .node-card { left: 10px; right: 10px; bottom: 10px; top: auto; width: auto; max-height: 56%; }
}

.graph-state {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--muted);
  pointer-events: none; text-align: center; padding: 0 1rem;
}
.graph-state.hidden { display: none; }

.legend {
  position: absolute; left: 14px; bottom: 12px; list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px 16px; max-width: calc(100% - 28px);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted);
  background: rgba(6,7,11,0.55); padding: 8px 12px; border-radius: 4px; border: 1px solid var(--line);
}
.legend li { display: flex; align-items: center; gap: 7px; }
.legend span { width: 14px; height: 0; display: inline-block; }
.lg-size { width: 12px; height: 12px; border-radius: 50%; background: var(--uv); }
.lg-up { border-top: 2px solid var(--up); }
.lg-down { border-top: 2px solid var(--down); }
.lg-solid { border-top: 2px solid var(--bone); }
.lg-dash { border-top: 2px dashed var(--bone); }

/* accessible list */
.as-list { margin-top: 1.4rem; max-width: var(--maxw); }
.as-list summary { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.as-list summary:hover { color: var(--uv); }
#eventList { list-style: none; margin-top: 1rem; display: grid; gap: 10px; }
#eventList li { border-top: 1px solid var(--line); padding-top: 10px; color: #C7C3BA; font-size: 15px; }
#eventList b { color: var(--bone); font-family: var(--f-display); font-weight: 600; }
#eventList .pct { font-family: var(--f-mono); color: var(--uv); }

/* ---------- bands ---------- */
.band { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 12vh, 150px) var(--gut); }
.join { padding-bottom: clamp(90px, 16vh, 200px); }

/* ---------- node card: crowd bet block ---------- */
.card-bet { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; gap: .35rem; }
.card-bet-bar { position: relative; height: 5px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.card-bet-bar::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: var(--pct, 50%); border-radius: 2px; transition: width .4s ease; }
.yes-lean .card-bet-bar::after { background: #5BE6E0; }
.no-lean  .card-bet-bar::after { background: #F87171; }
.mid-lean .card-bet-bar::after { background: #A78BFA; }
.card-bet-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-bet-pct { font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
.yes-lean .card-bet-pct { color: #5BE6E0; }
.no-lean  .card-bet-pct { color: #F87171; }
.mid-lean .card-bet-pct { color: #A78BFA; }
.card-delta { font-size: .72rem; color: #8C8A82; }
.card-delta.up { color: #5BE6E0; }
.card-delta.dn { color: #F87171; }
.card-verdict { color: #B8B4AC; font-size: .80rem; line-height: 1.45; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-bet-foot { font-size: .72rem; color: #8C8A82; margin-top: .15rem; }
.card-bet-foot a { color: #8C8A82; text-decoration: none; }
.card-bet-foot a:hover { color: #E7E3DA; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- signup ---------- */
.signup { margin-top: 1.75rem; max-width: 520px; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
#email {
  flex: 1 1 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 2px;
  color: var(--bone); font-family: var(--f-body); font-size: 16px; padding: 14px 16px; transition: border-color .2s ease;
}
#email::placeholder { color: #5C606A; }
#email:focus { outline: none; border-color: var(--uv); }
.field .btn { flex: 0 0 auto; }
.form-note { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); margin-top: 14px; }
.form-note.ok { color: var(--up); }
.form-note.err { color: var(--down); }

/* ---------- footer ---------- */
.foot {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 30px var(--gut); border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted);
}
.foot .mark { color: var(--bone); }
.foot-link { color: var(--muted); text-decoration: none; transition: color .25s ease; }
.foot-link:hover { color: var(--uv-hi); }
.foot-copy { margin-left: auto; }

/* ---------- reveal motion (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .nav-cta { display: none; }
  .field { flex-direction: column; }
  .field .btn { width: 100%; text-align: center; }
  .graph-stage { height: clamp(380px, 64vh, 520px); }
  .legend { font-size: 10px; gap: 5px 10px; }
  /* lighter footage + grain on phones (battery + legibility) */
  .fx-video.on { opacity: 0.16; }
  .fx-grain { opacity: 0.35; }
  /* keep the planet system from crowding the headline (and off the right edge) on phones */
  .planets { width: clamp(150px, 46vw, 230px); height: clamp(150px, 46vw, 230px); top: auto; bottom: 6%; right: -4%; opacity: 0.55; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
  .btn { transition: none; }
  /* no footage, no grain drift, no glitch when the user asked for calm */
  .fx-layer { display: none; }
  .fx-grain { opacity: 0.3; }
  .fx-grain::before { animation: none; }
  .glitch span::before, .glitch span::after { animation: none !important; opacity: 0 !important; }
  /* line-art shows fully drawn, no animation; no pop-up glyphs or spinning rune */
  .draw .ln { stroke-dashoffset: 0 !important; transition: none !important; }
  .draw .dot-pt { opacity: 1 !important; transition: none !important; }
  .fx-glyphs { display: none; }
  .psys, .pcore { animation: none; }
}

/* ── Live wire (news feed) ───────────────────────────────────────────── */
.wire { padding-top: 1.5rem; }
.wire-feed { list-style: none; margin: 1.4rem auto 0; padding: 0; max-width: 72ch; display: grid; gap: .55rem; }
.wire-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: .7rem;
  padding: .7rem .9rem; border: 1px solid rgba(139,92,246,.16); border-radius: .6rem;
  background: linear-gradient(180deg, rgba(139,92,246,.05), rgba(139,92,246,.015));
}
.wire-item.is-clickable { cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.wire-item.is-clickable:hover, .wire-item.is-clickable:focus-visible { border-color: rgba(139,92,246,.5); background: linear-gradient(180deg, rgba(139,92,246,.1), rgba(139,92,246,.03)); outline: none; }
.wire-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--uv-hi, #8B5CF6); box-shadow: 0 0 10px rgba(139,92,246,.7); margin-top: .35rem; }
.wire-dot.hl { background: #5BE6E0; box-shadow: 0 0 10px rgba(91,230,224,.6); }
.wire-text { color: #E7E3DA; line-height: 1.4; font-size: .96rem; }
.wire-track { color: var(--muted, #8C8A82); font-size: .76rem; white-space: nowrap; letter-spacing: .02em; }
.wire-topic { color: #9FB4FF; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
@media (max-width: 560px) {
  .wire-item { grid-template-columns: auto 1fr; }
  .wire-track, .wire-topic { grid-column: 2; white-space: normal; }
}
