/* v2 · one connected world. Base style: Studio A (luminous glass, dark reflective floors, neon #E8FF3A,
   coral for wrong claims). Readable cards after Studios C (dark glass readouts) and B (paper documents). */
:root {
  --void: #02070F; --ink: #030A15; --deep: #061528; --navy: #0B2546; --tint: #1A3A6B; --blue: #006FBA; --mid: #4B9CD3; --pale: #E6F1F9;
  --text: #E6F1F9; --muted: #A9C0D6; --quiet: #7E9BB8; --line: rgba(75,156,211,.2); --panel: #071830; --panel2: #0B2546;
  --neon: #E8FF3A; --neon-core: #F7FFC2; --coral: #FF6B57; --teal: #2FA7A0; --teal-d: #157375;
  /* the answer-card family (answers, the Spire's source document, the inbox note, the brief): cool blue-gray paper,
     navy text, neon only for highlights, coral for struck claims (v5 W2) */
  --paper: #F4F7FA; --paper-ink: #0B2546; --paper-line: #D3DEEA; --paper-muted: #55667D; --paper-edge: #D6E0EA;
  --paper-k: #1F5E99; --paper-soft: #DCE6F1; --paper-strike: #D63C2E; --paper-up: #157375;
  /* the hold bar: the world's neon on a navy track (option B of two; the other was a navy fill on a pale track) */
  --paper-track: #0B2546; --paper-fill: linear-gradient(90deg, #E8FF3A, #F7FFC2); --paper-bar-h: 4px;
  --head: "Rubik", "Segoe UI", system-ui, sans-serif;
  --body: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;
  --col: 640px; --navh: 46px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 56px; -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.55 var(--body); overflow-x: clip; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3 { font-family: var(--head); margin: 0 0 12px; text-wrap: balance; color: #fff; }
h2 { font-size: clamp(1.45rem, 6vw, 2.05rem); line-height: 1.14; font-weight: 700; }
h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 12px; }
code { font: .86em/1.4 var(--mono); background: rgba(75,156,211,.16); color: #DCEAF5; padding: 1px 5px; border-radius: 4px; }
.kicker { font: 700 .74rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--neon); margin-bottom: 12px; }
.note { color: var(--muted); font-size: .9rem; }
#fps { position: fixed; right: 8px; top: 54px; z-index: 99; background: rgba(0,0,0,.7); color: #7CFC9A; font: 12px var(--mono); padding: 4px 6px; border-radius: 4px; display: none; pointer-events: none; }

/* chapter nav */
.chapters { position: sticky; top: 0; z-index: 30; height: var(--navh); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; align-items: center;
  padding: 0 12px; background: rgba(3,10,21,.94); border-bottom: 1px solid var(--line); }
.chapters::-webkit-scrollbar { display: none; }
.chapters a { flex: none; color: #fff; text-decoration: none; font: 600 .8rem/1 var(--head); padding: 8px 11px; border-radius: 8px; opacity: .72; }
.chapters a.on { background: rgba(232,255,58,.14); color: var(--neon); opacity: 1; }

/* cover */
.cover { background: radial-gradient(120% 80% at 100% 0%, var(--tint) 0%, var(--navy) 40%, var(--deep) 75%, var(--ink) 100%); color: #fff;
  min-height: calc(92svh - var(--navh)); display: flex; flex-direction: column; justify-content: center; padding: 40px 16px; position: relative; overflow: hidden; }
.cover > * { max-width: var(--col); margin-left: auto; margin-right: auto; width: 100%; position: relative; }
.cover::after { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -110px; border: 2px solid rgba(232,255,58,.28); border-radius: 50%; }
.cover-logo { width: 190px; height: auto; margin-bottom: 36px; }
.cover h1 { font-size: clamp(2.5rem, 12vw, 4.4rem); line-height: .98; font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.cover .lede { font-size: 1.15rem; color: #DCEAF5; }
.byline { color: var(--mid); font-weight: 600; font-size: .92rem; margin-top: 12px; }
.scroll-hint { margin-top: 36px; color: #fff; opacity: .7; font: 600 .9rem var(--head); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* bands */
.band { padding: 56px 16px; border-top: 1px solid var(--line); }
.band > * { max-width: var(--col); margin-left: auto; margin-right: auto; }
.band.soft { background: linear-gradient(#061528, #04101F); }
.aside { background: rgba(7,24,48,.85); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: .95rem; margin-top: 16px; }
.aside b { color: #fff; }

/* map layers */
.layers { list-style: none; padding: 0; margin: 24px auto 0; position: relative; counter-reset: l; }
.layers::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 60px; width: 2px; background: var(--tint); }
.layers li { position: relative; padding: 0 0 18px 50px; counter-increment: l; }
.layers li::before { content: counter(l); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); border: 2px solid var(--mid);
  color: var(--mid); font: 700 .95rem/32px var(--head); text-align: center; transition: background .4s, color .4s, border-color .4s; }
.layers li.lit::before { background: var(--neon); border-color: var(--neon); color: #10170A; }
.layers li.loop::before { content: "↺"; }
.layers b { display: inline; font: 600 1.02rem/1.3 var(--head); padding-top: 6px; color: #fff; }
.layers i { font-style: normal; font: 700 .68rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--neon); margin-left: 8px; }
.layers span { display: block; color: var(--muted); font-size: .93rem; margin-top: 2px; }

/* ===================== journeys: sticky world stage ===================== */
.journey { position: relative; background: var(--void); border-top: 1px solid var(--line); }
.j-head { padding: 48px 16px 28px; max-width: var(--col); margin: 0 auto; }
.j-head h2 { font-size: clamp(1.35rem, 5.4vw, 1.85rem); }
.j-head h2 .h2-more { display: block; margin-top: .3em; font-size: .7em; line-height: 1.35; }
.who { color: var(--muted); margin: 0; }
.j-run { position: relative; }
/* the stage fills the visible viewport as the mobile URL bar hides and shows (dvh); svh left a black band under the world
   once the bar hid. The world SVG covers it (slice), so a taller stage crops the sides a little rather than letterboxing. */
.stage { position: sticky; top: var(--navh); height: calc(100svh - var(--navh)); height: calc(100dvh - var(--navh)); max-width: 560px; margin: 0 auto; overflow: hidden; background: var(--void); contain: layout paint; }
@supports not (height: 100svh) { .stage { height: calc(100vh - var(--navh)); } }
.stage svg.world { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; will-change: transform; }
/* every overlay rides its own compositor layer: the world repaints every frame, and anything sharing its layer (a
   card's blurred shadow, the HUD's text shadow) was re-rasterized with it every frame */
.hud, .counter, .phrases p, .beat, .olcap, .card, .question, .ending, .gauge-h { will-change: transform, opacity; }
.hud { position: absolute; left: 12px; top: 10px; z-index: 3; display: flex; gap: 10px; align-items: center; pointer-events: none; }
.hud-n { font: 800 26px/1 var(--head); color: rgba(232,255,58,.92); min-width: 18px; }
/* five quick taps on the stop number toggle the debug overlay (debug.js); cursor:pointer lets iOS deliver the click */
.hud-n { pointer-events: auto; cursor: pointer; padding: 8px; margin: -8px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.ol-on .hud { background: rgba(3,10,21,.78); padding: 6px 10px 6px 8px; margin: -6px 0 0 -6px; border-radius: 10px; }
.hud-t { display: flex; flex-direction: column; gap: 2px; }
.hud-name { font: 700 11px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--neon); }
.hud-layer { font: 600 14px/1.25 var(--head); color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.counter { position: absolute; right: 12px; top: 12px; z-index: 3; text-align: right; opacity: 0; visibility: hidden; pointer-events: none; }
.counter-k { display: block; font: 700 9.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
.counter-v { font: 700 22px/1.1 var(--head); color: #fff; }
.counter-of { font: 600 12px var(--body); color: var(--mid); margin-left: 4px; }

/* the three phrases at the gate */
.phrases { position: absolute; left: 0; right: 0; bottom: 9%; z-index: 4; text-align: center; pointer-events: none; padding: 0 16px; }
.phrases p { margin: 0 0 10px; font: 700 clamp(20px, 6.2vw, 26px)/1.2 var(--head); color: #fff; opacity: 0; visibility: hidden; text-shadow: 0 2px 16px rgba(0,0,0,.9); }
.phrases p:last-child { color: var(--neon); }

.js .rv { opacity: 0; }
.still .rv { opacity: 1 !important; }
/* the agent's decision after the prompt condenses */
.beat { position: absolute; left: 16px; right: 16px; bottom: 11%; z-index: 4; margin: 0 auto; max-width: 400px; text-align: center; font: 600 16.5px/1.38 var(--head); color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.9); opacity: 0; visibility: hidden; pointer-events: none; }
.beat-k { display: block; font: 700 10px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--neon); margin-bottom: 6px; }
/* the Outer Loop's beats, as captions at the foot of the stage (the screen it zooms into is at the top) */
.olcaps { position: absolute; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 4; pointer-events: none; }
.olcaps .olcap { bottom: 0; }
.olcap { position: absolute; left: 0; right: 0; margin: 0 auto; max-width: 440px; padding: 9px 12px; border-radius: 10px; background: rgba(3,10,21,.8);
  border: 1px solid rgba(111,224,210,.35); font-size: 13.5px; line-height: 1.4; color: #DCEAF5; opacity: 0; visibility: hidden; }
.olcap b { display: block; font: 700 10.5px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #6FE0D2; margin-bottom: 3px; }
/* blinking caret (session start, the prompt) */
.caret-blink { animation: caret 1.06s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* cards: readable panels over the world */
.cards { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.card { position: absolute; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto;
  border-radius: 14px; padding: 14px 15px; opacity: 0; visibility: hidden; font-size: 14.5px; line-height: 1.45; pointer-events: auto; }
.card.glass { background: rgba(7,24,48,.94); border: 1px solid rgba(75,156,211,.4); color: var(--text); box-shadow: 0 10px 22px rgba(0,0,0,.55), inset 0 1px 0 rgba(230,241,249,.12); }
.card.paper { background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper-edge); box-shadow: 0 10px 22px rgba(0,0,0,.6); }
.card.top { bottom: auto; top: 58px; }
/* hold progress: a faint light along the card's top edge fills while the card holds (keep scrolling). The fill is a
   transform on its own layer, so ticking it never repaints the card. */
.card.holding::before, .card.holding::after { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; border-radius: 2px; pointer-events: none; }
.card.holding::before { background: rgba(232,255,58,.14); }
.card.holding::after { background: linear-gradient(90deg, rgba(232,255,58,.9), rgba(247,255,194,1)); transform-origin: 0 50%; transform: scaleX(var(--hold, 0)); will-change: transform; }
.card.paper.holding::before, .card.paper.holding::after { top: 0; height: var(--paper-bar-h); }
.card.paper.holding::before { background: var(--paper-track); }
.card.paper.holding::after { background: var(--paper-fill); }
.card h3 { font-size: 1.04rem; margin: 0 0 8px; }
.card.paper h3 { color: var(--paper-ink); }
.card p:last-child { margin-bottom: 0; }
.c-k { font: 700 11px/1.2 var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--neon); margin: 0 0 8px; }
.card.paper .c-k { color: var(--paper-k); }
.c-k.inbox { color: #6FE0D2; }
.card.paper .c-k.inbox { color: var(--teal-d); }
.card .note { font-size: .86rem; margin-bottom: 8px; }
.card.paper .note { color: var(--paper-muted); }
.note.quiet { font-style: italic; opacity: .85; }
.decides { font-size: .92rem; margin: 0; }
.decides b { color: var(--neon); }
.card.mini { padding: 11px 14px; }
.ex { margin: 10px 0; padding: 10px 12px; background: rgba(230,241,249,.06); border-left: 3px solid var(--mid); border-radius: 0 8px 8px 0; font-size: .9rem; color: #DCEAF5; }

/* front matter */
.fm { margin: 4px 0 8px; font: 12.3px/1.45 var(--mono); background: #04101F; border: 1px solid rgba(75,156,211,.25); border-radius: 8px; padding: 8px 10px; }
.fm div { display: flex; gap: 8px; flex-wrap: wrap; }
.fm dt { color: var(--mid); }
.fm dt::after { content: ":"; }
.fm dd { margin: 0; color: #fff; word-break: break-word; }
.fm .hl dt { color: var(--neon); font-weight: 700; }
.fm .src { background: rgba(232,255,58,.12); border-radius: 4px; }
.srcline { font: 13.5px/1.5 var(--mono); margin: 0; color: #DCEAF5; }
.srcline .k { color: var(--mid); }
.srcline .v { color: #10170A; background: var(--neon); padding: 0 4px; border-radius: 3px; font-weight: 700; }
.claims q { quotes: "“" "”"; }
.claims .bad { color: var(--coral); font-weight: 700; }

/* routing panel (after Studio C) */
.route-card { padding: 11px 13px 11px; }
.route-card .c-k { margin-bottom: 6px; }
.rq { background: rgba(230,241,249,.05); border: 1px solid rgba(230,241,249,.14); border-radius: 9px; padding: 6px 10px; margin-bottom: 8px; position: relative; }
.rq-h { display: flex; justify-content: space-between; margin: 0 0 3px; font: 700 10px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
.rq-tag { color: #A6F4FF; opacity: 0; }
.rq-t { margin: 0; font: 600 14.5px/1.35 var(--body); color: #fff; }
.rq-t .task { position: relative; }
mark.kw, mark.kw2 { background: transparent; color: inherit; border-radius: 3px; padding: 0 2px; transition: none; }
.rmap { position: relative; }
.rmap-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; font: 700 10px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mid); }
.cnt { font: 700 11px var(--body); letter-spacing: .04em; text-transform: none; position: relative; }
.cnt1 { color: var(--neon); }
.cnt0 + .cnt1 { position: absolute; right: 0; top: 0; white-space: nowrap; opacity: 0; }
.cnt0 { color: #A6F4FF; }
.row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; font-size: 12.2px; line-height: 1.3; border-top: 1px solid rgba(75,156,211,.14); border-radius: 6px; position: relative; }
.row code { flex: none; align-self: center; font-size: 10.8px; background: none; color: #A6F4FF; padding: 0; }
.row em { display: block; font-style: normal; font-size: 11px; color: var(--neon); margin-top: 2px; font-weight: 700; opacity: 0; }
.row.hit { border: 1px solid transparent; }
.row.taskrow { border-style: dashed; }
.row.hit code { color: var(--neon); font-weight: 700; }
.stat { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(75,156,211,.12); opacity: 0; }
.stat b { font: 800 1.15rem/1 var(--head); color: var(--neon); flex: none; }
.stat span { font-size: .76rem; line-height: 1.3; color: #DCEAF5; }
.links { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* override card (after Studio B) */
.ov { border-top: 1px solid var(--paper-line); padding-top: 8px; }
.ov-h { display: flex; justify-content: space-between; font: 700 10.5px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--paper-muted); margin: 0 0 6px; position: relative; }
.ov-win { color: var(--paper-k); opacity: 0; }
.ov-row { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 6px 0; border-bottom: 1px dashed var(--paper-line); }
.ov-l { font-size: 12px; font-weight: 600; color: var(--paper-muted); }
.ov-old { font: 700 16px/1.3 var(--body); color: var(--paper-strike); position: relative; width: max-content; }
.ov-old::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; background: var(--paper-strike); transform: scaleX(var(--strike, 0)); transform-origin: left; }
.ov-new { font: 800 17px/1.3 var(--head); color: var(--paper-ink); background: var(--neon); width: max-content; padding: 0 6px; border-radius: 3px; opacity: 0; }
.ov-src { font-size: 12px; color: var(--paper-muted); margin: 8px 0 0; }

/* inbox note, review, ripple */
.pr-file { font: 700 13px/1.35 var(--mono); color: var(--teal-d); word-break: break-all; margin-bottom: 6px; }
.pr-file span { color: var(--paper-muted); font-family: var(--body); font-weight: 600; }
.pr-body { font-size: 13.5px; }
.pr-anat { margin: 6px 0 8px; padding: 8px 10px 8px 28px; background: var(--paper-ink); color: #fff; border-radius: 8px; font-size: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.applied { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--teal); background: rgba(47,167,160,.14); border-radius: 0 8px 8px 0; }
.applied b { color: #8FF0E4; letter-spacing: .02em; }
.rp-lede { font: 600 .95rem/1.4 var(--head); color: #fff; margin: 0 0 10px; }
.cal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 0 0 10px; }
.cal-w { border: 1px solid rgba(111,224,210,.35); border-radius: 6px; padding: 4px 6px; display: flex; align-items: center; justify-content: space-between; }
.cal-w i { font: 700 .62rem var(--body); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cal-w b { width: 9px; height: 9px; border-radius: 50%; background: #6FE0D2; box-shadow: 0 0 8px rgba(111,224,210,.8); }
.cal-m { grid-column: 1 / -1; height: 18px; border-radius: 6px; background: linear-gradient(90deg, rgba(232,255,58,.18), rgba(232,255,58,.32)); border: 1px solid rgba(232,255,58,.6);
  display: flex; align-items: center; justify-content: flex-end; padding: 0 8px; transform-origin: left center; }
.cal-m span { font: 700 .62rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--neon); }
.rp-row { border-top: 1px solid rgba(75,156,211,.2); padding: 7px 0 2px; }
.rp-row p { margin: 0; font-size: .83rem; line-height: 1.4; color: #DCEAF5; }
.rp-row .rp-k { font: 700 .86rem var(--head); color: #fff; margin-bottom: 2px; }
.rp-k em { font: 700 .6rem var(--body); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #6FE0D2; border: 1px solid rgba(111,224,210,.5); border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }
mark.kwd { background: transparent; color: inherit; border-radius: 3px; padding: 0 2px; }
.bar.down em { color: var(--paper-strike); }
.bar.down i::after { background: #7A8AA0; }
.big { font: 700 1.1rem/1.3 var(--head); color: #fff; margin: 8px 0; }
.card.paper .big { color: var(--paper-ink); }

/* live data + corpus + brief */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { font: 12px var(--mono); background: var(--navy); border: 1px solid rgba(75,156,211,.45); color: #fff; padding: 4px 9px; border-radius: 7px; }
.hatch-chip { display: inline-block; font: 700 10px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--neon); padding: 1px 6px; border: 1px solid rgba(232,255,58,.6); border-radius: 4px;
  background: repeating-linear-gradient(45deg, rgba(232,255,58,.18) 0 3px, transparent 3px 6px); }
.cites { list-style: none; padding: 0; margin: 6px 0 8px; }
.cites li { display: grid; grid-template-columns: 18px 112px 1fr; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid rgba(75,156,211,.16); font-size: .9rem; }
.cite-n { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--neon); color: #10170A; font: 800 11px/18px var(--head); text-align: center; }
.cite-type { font: 700 .68rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--mid); min-width: 104px; }
.brief { background: #fff; border: 1px solid var(--paper-line); border-radius: 8px; padding: 8px 12px 4px; margin-bottom: 8px; color: #1B2A40; }
/* W7 · the brief matches the other answer cards: a white sheet with a small header line (like the LinkedIn draft) */
.brief-h { margin: 0 0 2px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font: 600 .82rem var(--head); color: var(--paper-ink); }
.brief-h em { font-style: normal; font: 700 .62rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--paper-k); padding: 2px 6px; border: 1px solid rgba(31,94,153,.45); border-radius: 4px;
  background: repeating-linear-gradient(45deg, rgba(31,94,153,.12) 0 3px, transparent 3px 6px); }
.brief-sec { padding: 7px 0; border-top: 1px solid var(--paper-line); font-size: .86rem; }
.brief-sec p { margin: 0; }
.brief-k { font: 700 .66rem var(--body) !important; text-transform: uppercase; letter-spacing: .06em; color: var(--paper-k); margin-bottom: 4px !important; }
.bars { display: grid; gap: 4px; }
.bar { display: grid; grid-template-columns: 80px 1fr 52px; align-items: center; gap: 8px; font-size: .8rem; }
.bar i { height: 8px; border-radius: 4px; background: var(--paper-soft); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * var(--g, 1) * 100%); background: var(--blue); border-radius: 4px; }
.bar em { font-style: normal; font-weight: 700; color: var(--paper-up); font-size: .76rem; }
.people { list-style: none; padding: 0; margin: 0; }
.people li { padding: 2px 0; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.people b { font-size: .84rem; margin-right: 2px; }
.tag { font: 600 .68rem var(--head); background: var(--paper-soft); color: var(--paper-ink); padding: 2px 7px; border-radius: 999px; }
.kitline { margin: 0; font-size: .92rem; }
.kitline b { color: var(--neon); }

/* the answer post */
.post { background: #fff; border: 1px solid var(--paper-line); border-radius: 8px; padding: 10px 12px; font-size: .9rem; color: #1B2A40; }
.post p { margin: 0 0 8px; }
.post p:last-child { margin: 0; }
.post-head { display: flex; align-items: center; gap: 8px; font: 600 .78rem var(--head); color: var(--paper-muted); }
.post-head img { background: var(--navy); padding: 4px 6px; border-radius: 4px; width: 46px; height: auto; }
.footer-line { margin: 10px 0 6px; font-size: .86rem; padding: 7px 10px; border-left: 3px solid var(--teal-d); background: rgba(21,115,117,.1); border-radius: 0 8px 8px 0; }
/* W3 · the Hill Day link, rendered the way LinkedIn does: a preview strip under the post */
.post .lp { display: flex; align-items: stretch; margin: 2px 0 0; border: 1px solid var(--paper-line); border-radius: 6px; overflow: hidden; background: var(--paper); }
.lp-img { flex: none; width: 64px; display: flex; align-items: center; justify-content: center; background: var(--navy); }
.lp-img img { width: 42px; height: auto; }
.lp-t { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 7px 10px; min-width: 0; }
.lp-t b { font: 600 .88rem/1.25 var(--head); color: var(--paper-ink); }
.lp-t span { font-size: .74rem; color: var(--paper-muted); }
.srcline.url { margin-top: 6px; font-size: 11.5px; word-break: break-all; color: #DCEAF5; }
.card.paper code { background: rgba(11,37,70,.08); color: var(--paper-ink); }

/* B overlays */
.question { position: absolute; left: 16px; right: 16px; top: 64px; z-index: 4; margin: 0 auto; max-width: 420px; text-align: center; font: 600 16px/1.35 var(--head); color: #fff;
  background: rgba(3,10,21,.78); border: 1px dashed rgba(232,255,58,.55); border-radius: 12px; padding: 8px 12px; opacity: 0; visibility: hidden; pointer-events: none; }
/* F4 · the Gallery's close-up cards (screen space, fixed size, clamped on screen) */
.exh-wrap { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; will-change: transform; }
.exhibit { display: flex; gap: 10px; align-items: center; width: 260px; max-width: calc(100vw - 16px); box-sizing: border-box; padding: 8px 10px; border-radius: 10px;
  background: rgba(3,10,21,.88); border: 1px solid rgba(232,255,58,.6); box-shadow: 0 6px 16px rgba(0,0,0,.5); opacity: 0; visibility: hidden; will-change: transform, opacity; }
.exh-th { flex: none; display: block; }
.exh-t { display: grid; grid-template-columns: auto 1fr; column-gap: 7px; row-gap: 2px; align-items: center; min-width: 0; flex: 1 1 auto; }
.exh-n { grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--neon); color: #10170A; font: 800 13px/22px var(--head); text-align: center; }
.exh-k { font: 700 10px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--neon); white-space: nowrap; }
.exh-d { font: 600 13px/1.3 var(--head); color: #fff; }
.q-k { display: block; font: 700 10px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--neon); margin-bottom: 2px; }
/* F6 · the delivery's lines, one at a time along the way */
.travel { position: absolute; left: 16px; right: 16px; top: 15%; z-index: 4; margin: 0 auto; max-width: 400px; text-align: center; font: 700 clamp(19px, 5.6vw, 24px)/1.25 var(--head);
  color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.9); opacity: 0; visibility: hidden; pointer-events: none; will-change: transform, opacity; }
.ending { position: absolute; left: 0; right: 0; top: 13%; z-index: 4; text-align: center; opacity: 0; visibility: hidden; pointer-events: none; }
.ending p { margin: 0; font: 800 clamp(28px, 9vw, 38px)/1.08 var(--head); color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.85); }
.ending .y { color: var(--neon); }

/* ===================== v1 sections, restyled ===================== */
.poll { margin-top: 20px; display: grid; gap: 8px; }
.poll button { position: relative; overflow: hidden; text-align: left; font: 600 .98rem/1.35 var(--body); color: #fff; background: rgba(7,24,48,.9);
  border: 1.5px solid rgba(75,156,211,.35); border-radius: 12px; padding: 14px 56px 14px 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.poll button:active { transform: scale(.99); }
.poll button .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(75,156,211,.22); transition: width .8s ease; z-index: 0; }
.poll button .t { position: relative; z-index: 1; }
.poll button .pct { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); z-index: 1; font: 700 .95rem var(--head); color: var(--neon); opacity: 0; transition: opacity .4s; }
.poll.voted button .pct { opacity: 1; }
/* no live results (offline): your choice stays marked, no percentages */
.poll.offline button .pct { opacity: 0; }
.poll.offline button .fill { width: 0 !important; }
.poll button.mine { border-color: var(--neon); }
.poll button.mine .fill { background: rgba(232,255,58,.18); }
.poll button:focus-visible, .flip:focus-visible, .kit summary:focus-visible, .chapters a:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.poll-meta { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.skip { margin-top: 10px; background: none; border: 0; color: var(--neon); font: 600 .85rem var(--head); cursor: pointer; padding: 6px 0; }
.reveal-after-vote { display: none; }
.reveal-after-vote.open { display: block; animation: drop .6s ease both; }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } }
.numbers { margin-top: 32px; }
.num { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.num b { font: 800 2.4rem/1 var(--head); color: var(--neon); min-width: 92px; }
.num b::after { content: "%"; font-size: 1.2rem; }
.num span { font-size: .93rem; }

.flips { display: grid; gap: 10px; margin-top: 16px; }
.flip { display: grid; text-align: left; font: inherit; color: inherit; background: rgba(7,24,48,.9); border: 1.5px solid rgba(75,156,211,.35); border-radius: 12px;
  padding: 16px; cursor: pointer; min-height: 92px; -webkit-tap-highlight-color: transparent; }
.flip > span { grid-area: 1 / 1; transition: opacity .35s, transform .35s; }
.flip .front { font-weight: 600; }
.flip .front::after { content: " Tap to answer"; display: block; font: 600 .75rem var(--head); color: var(--neon); margin-top: 6px; }
.flip .back { opacity: 0; transform: translateY(8px); }
.flip.open { border-color: var(--teal); background: rgba(21,115,117,.18); }
.flip.open .front { opacity: 0; transform: translateY(-8px); }
.flip.open .back { opacity: 1; transform: none; }
.flip .back b { color: #8FF0E4; }

.axes { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 620px) { .axes { grid-template-columns: 1fr 1fr; } }
.axis { background: rgba(7,24,48,.9); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.axis h3 code { font-size: 1rem; background: var(--neon); color: #10170A; padding: 3px 8px; }
.axis-q { color: var(--muted); font-size: .9rem; }
.levels { list-style: none; padding: 0; margin: 0; }
.levels li { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-top: 1px solid var(--line); }
.levels b { font: 600 .92rem var(--mono); color: #fff; }
.levels span { grid-column: 1; font-size: .85rem; color: var(--muted); }
.levels em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 700 .85rem var(--head); font-style: normal; color: var(--neon); }

.okf { margin-top: 20px; }
.timeline { list-style: none; padding: 0; margin: 12px 0; border-left: 2px solid var(--tint); }
.timeline li { position: relative; padding: 0 0 14px 18px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px rgba(232,255,58,.5); }
.timeline time { display: block; font: 700 .85rem var(--head); color: var(--neon); }
.timeline span { font-size: .93rem; }

/* kit */
.kit { background: rgba(7,24,48,.9); border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; padding: 0 16px; }
.kit summary { font: 600 1rem var(--head); color: #fff; padding: 16px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.kit summary::-webkit-details-marker { display: none; }
.kit summary::after { content: "+"; color: var(--neon); font-size: 1.3rem; line-height: 1; }
.kit[open] summary::after { content: "–"; }
.kit[open] { padding-bottom: 14px; }
.kit p, .kit li { font-size: .92rem; }
pre { white-space: pre-wrap; word-break: break-word; }
.yaml, .kit pre { font: .82rem/1.6 var(--mono); background: #02070F; color: #DCEAF5; padding: 12px 14px; border-radius: 8px; margin: 12px 0; border: 1px solid var(--line); }
.copyable { position: relative; }
.copy-btn { position: absolute; top: 8px; right: 8px; font: 700 .72rem var(--head); background: var(--neon); color: #10170A; border: 0; border-radius: 4px; padding: 5px 9px; cursor: pointer; }
.stack { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.stack li { background: rgba(3,10,21,.7); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.stack b { display: block; font: 600 .9rem var(--head); color: #fff; }
.stack span { font-size: .84rem; color: var(--muted); }
.kit-h { font: 700 .92rem var(--head); margin: 16px 0 6px; color: #fff; }
.kit-k { font: 700 .72rem var(--body) !important; text-transform: uppercase; letter-spacing: .08em; color: var(--neon); margin-bottom: 2px; }
.toolgrid > div { padding: 6px 0; border-top: 1px solid var(--line); }
.toolgrid p:last-child { font: .8rem/1.6 var(--mono); color: #DCEAF5; }
.rules { padding-left: 18px; margin: 6px 0; }
.where { display: grid; gap: 8px; margin-top: 10px; }
.where > div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.where b { display: block; font-family: var(--head); color: #fff; }
.where span { font-size: .86rem; color: var(--muted); }
.where > div:first-child { border-color: rgba(232,255,58,.55); background: rgba(232,255,58,.06); }

/* v5 K7: the kit's blocks keep .band's centered column (a bare "margin: x 0" had reset the auto side margins) */
#kit > .kit-h { margin: 22px auto 6px; }
.kit-dl { list-style: none; padding: 0; margin: 10px auto 0; display: grid; gap: 6px; }
.kit-dl a { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; color: #fff; text-decoration: none; font-size: .9rem;
  transition: border-color .2s, background-color .2s; }
.kit-dl a span { display: block; font-size: .82rem; color: var(--muted); }
.kit-dl li:first-child a { border-color: rgba(232,255,58,.55); background: rgba(232,255,58,.06); }
.kit-dl a:hover { border-color: var(--neon); background: rgba(232,255,58,.1); }
.kit-dl a:focus-visible, .kit a:focus-visible, .see-run:focus-visible, .kit-mail button:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.kit-dl.km-flash a { border-color: var(--neon); }
@media (min-width: 720px) { .kit-files { grid-template-columns: 1fr 1fr; } .kit-files li:first-child { grid-column: 1 / -1; } }
.kit pre.copyable { padding-top: 38px; }
/* links inside the expandable sections: the page's neon-on-navy, not browser blue */
.kit p a, .kit li a { color: var(--neon-core); text-decoration: underline; text-decoration-color: rgba(232,255,58,.45); text-underline-offset: 3px;
  text-decoration-thickness: 1px; border-radius: 2px; transition: color .2s, text-decoration-color .2s; }
.kit p a:hover, .kit li a:hover { color: var(--neon); text-decoration-color: var(--neon); }
.kit p a:visited, .kit li a:visited { color: var(--neon-core); }
/* v5 K8: email the kit */
.kit-mail { margin: 18px auto 0; background: rgba(7,24,48,.9); border: 1px solid rgba(232,255,58,.4); border-radius: 12px; padding: 4px 16px 14px; }
.kit-mail .kit-h { margin-top: 12px; }
.km-sub { color: var(--muted); font-size: .9rem; }
.km-fields { display: grid; gap: 6px; }
.km-send { margin-top: 10px; }
.km-fields label { font: 600 .85rem var(--head); color: #fff; margin-top: 4px; }
.km-fields label span { font-weight: 400; color: var(--muted); }
.km-fields input[type=email], .km-fields input[type=text] { font: 16px var(--body); color: #fff; background: #02070F; border: 1.5px solid rgba(75,156,211,.45);
  border-radius: 8px; padding: 10px 12px; width: 100%; }
.km-fields input:focus { outline: 2px solid var(--neon); outline-offset: 1px; border-color: transparent; }
.km-fields input[aria-invalid=true] { border-color: var(--coral); }
.km-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kit-mail { position: relative; }
.kit-mail button, .see-run { justify-self: start; display: inline-block; font: 700 .95rem var(--head); color: #10170A; background: var(--neon); border: 0; border-radius: 8px;
  padding: 11px 18px; cursor: pointer; text-decoration: none; transition: background-color .2s; }
.kit-mail button:hover, .see-run:hover { background: var(--neon-core); }
.kit-mail button:disabled { opacity: .6; cursor: progress; }
.km-status { margin: 8px 0 0; font-size: .9rem; min-height: 1.2em; }
.km-status:empty { display: none; }
.kit-mail[data-state=sent] .km-status { color: var(--neon); font-weight: 600; }
.kit-mail[data-state=invalid] .km-status { color: var(--coral); }
.kit-mail[data-state=off] .km-status { color: #fff; }
.kit-mail.km-done .km-fields, .kit-mail.km-off .km-fields, .kit-mail.km-off .km-sub, .kit-mail.km-off .km-privacy { display: none; }
.km-fallback { display: none; margin: 10px 0 4px; }
.kit-mail.km-off .km-fallback { display: block; }
.km-fallback a { display: inline-block; font: 700 .95rem var(--head); color: #10170A; background: var(--neon); border-radius: 8px; padding: 11px 18px; text-decoration: none; }
.km-fallback a:hover { background: var(--neon-core); }
.km-fallback a:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.km-privacy { margin: 8px 0 0; font-size: .78rem; color: var(--quiet); }
.see-run-wrap { margin-top: 14px; }
/* v5: connect with me */
#connect { text-align: center; }
#connect h2 { margin-bottom: 4px; }
.cx-role { color: var(--muted); }
.cx-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.cx-btn { display: inline-block; min-width: 140px; font: 700 .95rem var(--head); color: #10170A; background: var(--neon); border: 1.5px solid var(--neon); border-radius: 8px;
  padding: 11px 18px; text-decoration: none; transition: background-color .2s, color .2s; }
.cx-btn:hover { background: var(--neon-core); }
.cx-btn.cx-alt { background: transparent; color: var(--neon); }
.cx-btn.cx-alt:hover { background: rgba(232,255,58,.1); }
.cx-btn:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.foot { background: var(--void); border-top: 1px solid var(--line); color: #DCEAF5; padding: 40px 16px 56px; text-align: center; font-size: .9rem; }
.foot img { width: 110px; height: auto; margin-bottom: 14px; }
.foot .quiet { color: var(--mid); font-size: .78rem; max-width: 420px; margin: 8px auto 0; }

/* ===================== reduced motion: static stills, cards in flow ===================== */
.rm .j-run { height: auto !important; }
.rm .stage { display: none; }
.stills { max-width: 560px; margin: 0 auto; padding: 0 0 32px; }
.still { margin: 0 0 28px; }
.still-hud { display: flex; gap: 10px; align-items: center; padding: 0 16px 8px; }
.still svg { display: block; width: 100%; height: auto; background: var(--void); }
.still .card { position: relative; left: auto; right: auto; bottom: auto; margin: -28px 12px 0; opacity: 1; visibility: visible; max-width: none; }
.still .card .row em, .still .card .rq-tag, .still .card .stat, .still .card .ov-win, .still .card .ov-new { opacity: 1 !important; }
.still .card .ov-old { --strike: 1; }
.still .phr p { opacity: 1; visibility: visible; position: static; }
.still .phr { padding: 8px 16px 0; text-align: center; }
.still .phr p { margin: 0 0 6px; font: 700 20px/1.2 var(--head); color: #fff; }
.still .phr p:last-child { color: var(--neon); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
