/* ═══════════════════════════════════════════════════════════════════
   SURFACES v4  ·  Briefing (fits, never scrolls) + Interactive (state machine)
   The ONLY scroll on the site is the chapter scroll. Nothing here scrolls.
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   BRIEFING MODAL  ·  compact, 2 steps, content authored to fit
   ───────────────────────────────────────────── */
.bmod {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.bmod.on { opacity: 1; pointer-events: all; visibility: visible;
  transition: opacity 0.3s var(--ease), visibility 0s; }
.bmod-bk { position: absolute; inset: 0; background: rgba(2,4,12,0.74); backdrop-filter: blur(3px); }

.bmod-box {
  position: relative; z-index: 1;
  width: min(620px, 95vw);
  height: min(560px, 86vh);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--cyan-border); border-top: 2px solid var(--c);
  box-shadow: 0 30px 90px rgba(0,0,0,0.85), 0 0 70px rgba(23,174,212,0.07);
  transform: translateY(14px) scale(0.985); transition: transform 0.32s var(--ease);
}
.bmod.on .bmod-box { transform: translateY(0) scale(1); }
.bmod-box.amber { border-top-color: var(--a); border-color: var(--amber-border); }

.bmod-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; border-bottom: 1px solid var(--rule); flex-shrink: 0;
}
.bmod-head-l { min-width: 0; }
.bmod-title { font-family: var(--ff-heading); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); }
.bmod-sub { font-family: var(--ff-mono); font-size: 9px; color: var(--ink3); margin-top: 3px; }
.bmod-head-r { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bmod-pips { display: flex; gap: 5px; }
.bmod-pip { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.16); transition: all 0.2s; }
.bmod-pip.on { background: var(--c); transform: scale(1.35); }
.bmod-box.amber .bmod-pip.on { background: var(--a); }
.bmod-x { background: none; border: none; color: var(--ink3); font-size: 15px; cursor: pointer; padding: 4px; transition: color 0.15s; }
.bmod-x:hover { color: var(--ink); }

/* steps — each fills, overflow hidden, NO scroll */
.bmod-steps { flex: 1 1 auto; position: relative; overflow: hidden; min-height: 0; }
.bstep {
  position: absolute; inset: 0; padding: 22px 24px;
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateX(20px); pointer-events: none;
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}
.bstep.active { opacity: 1; transform: translateX(0); pointer-events: all; }
.bstep.exiting { opacity: 0; transform: translateX(-20px); }

.bmod-foot {
  display: flex; align-items: stretch; justify-content: space-between;
  border-top: 1px solid var(--rule); background: rgba(0,0,0,0.18); flex-shrink: 0;
}
.bmod-foot-l { display: flex; align-items: center; padding: 0 18px; gap: 12px; }
.bmod-foot-step { font-family: var(--ff-mono); font-size: 9px; color: var(--ink3); }
.bnav { font-family: var(--ff-heading); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; border: none; cursor: pointer; padding: 14px 22px; transition: opacity 0.15s; }
.bnav-back { color: var(--ink3); background: transparent; }
.bnav-back:hover { color: var(--ink); }
.bnav-next { background: var(--c); color: #000; }
.bmod-box.amber .bnav-next { background: var(--a); }
.bnav-next:hover { opacity: 0.85; }

/* ── briefing content blocks (all sized to fit) ───────────────── */
.b-eyebrow { font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.b-eyebrow.amber { color: var(--a); }
.b-eyebrow::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, currentColor, transparent); opacity: 0.4; }
.b-h { font-family: var(--ff-serif); font-size: clamp(18px, 3vw, 23px); font-weight: 700; line-height: 1.2; color: var(--ink); margin-bottom: 12px; }
.b-h em { font-style: italic; color: var(--c); }
.b-h em.amber { color: var(--a); }
.b-p { font-size: 13px; color: var(--ink2); line-height: 1.62; margin-bottom: 11px; }
.b-p:last-of-type { margin-bottom: 0; }
.b-p strong { color: var(--ink); font-weight: 600; }
.b-quote { font-family: var(--ff-serif); font-style: italic; font-size: 15px; color: var(--ink); line-height: 1.45; margin-top: auto; padding-top: 14px; }

/* glanceable mini-rail (briefing, no expansion) */
.b-rail { display: flex; flex-direction: column; gap: 7px; margin: 6px 0; }
.b-rail-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--rule); border-left: 2px solid rgba(23,174,212,0.35); background: rgba(255,255,255,0.02); }
.b-rail-row.amber { border-left-color: var(--a); }
.b-rail-era { font-family: var(--ff-mono); font-size: 9px; color: var(--ink3); }
.b-rail-name { font-size: 12px; color: var(--ink); font-weight: 600; }
.b-rail-note { font-family: var(--ff-mono); font-size: 8.5px; color: var(--c); }
.b-rail-row.amber .b-rail-note { color: var(--a); }

/* glanceable chips list (frameworks, circles, clusters) */
.b-chips { display: flex; flex-direction: column; gap: 5px; margin: 3px 0; }
.b-chip { display: flex; align-items: baseline; gap: 10px; padding: 7px 12px; border: 1px solid var(--rule); background: rgba(255,255,255,0.02); }
.b-chip-n { font-family: var(--ff-mono); font-size: 9px; color: var(--c); flex-shrink: 0; }
.b-chip.amber .b-chip-n { color: var(--a); }
.b-chip-t { font-size: 12px; color: var(--ink); font-weight: 600; }
.b-chip-d { font-size: 10.5px; color: var(--ink3); margin-left: auto; flex-shrink: 0; font-family: var(--ff-mono); }

/* the launch CTA — step 2 hero button */
.b-launch {
  margin-top: auto; flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px; cursor: pointer;
  font-family: var(--ff-heading); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #000; background: var(--c); border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.b-launch.amber { background: var(--a); }
.b-launch:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(23,174,212,0.3); }
.b-launch.amber:hover { box-shadow: 0 8px 28px rgba(254,153,15,0.3); }
.b-launch-arr { font-size: 15px; }

/* ─────────────────────────────────────────────
   INTERACTIVE SURFACE  ·  large, tailored, state-machine, no scroll
   ───────────────────────────────────────────── */
.imod {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.34s var(--ease), visibility 0s linear 0.34s;
}
.imod.on { opacity: 1; pointer-events: all; visibility: visible;
  transition: opacity 0.34s var(--ease), visibility 0s; }
.imod-bk { position: absolute; inset: 0; background: rgba(1,3,9,0.9); backdrop-filter: blur(6px); }

.imod-box {
  position: relative; z-index: 1;
  width: min(1080px, 96vw);
  height: min(720px, 92vh);
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, rgba(6,10,22,0.98), rgba(3,5,14,0.98));
  border: 1px solid var(--cyan-border);
  box-shadow: 0 40px 120px rgba(0,0,0,0.9), 0 0 90px rgba(23,174,212,0.08), inset 0 1px 0 rgba(255,255,255,0.04);
  transform: scale(0.97); transition: transform 0.34s var(--ease);
}
.imod.on .imod-box { transform: scale(1); }
.imod-box.amber { border-color: var(--amber-border); }

.imod-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-bottom: 1px solid var(--rule); flex-shrink: 0;
  background: rgba(0,0,0,0.25);
}
.imod-head-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.imod-eyebrow { font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c); }
.imod-box.amber .imod-eyebrow { color: var(--a); }
.imod-title { font-family: var(--ff-heading); font-size: 14px; font-weight: 700; color: var(--ink); }
.imod-head-r { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.imod-x { background: none; border: 1px solid var(--rule); color: var(--ink3); font-size: 14px; cursor: pointer; padding: 5px 9px; transition: all 0.15s; }
.imod-x:hover { color: var(--ink); border-color: var(--ink3); }

.imod-body { flex: 1 1 auto; position: relative; overflow: hidden; min-height: 0; }

/* a scene = one bounded state; scenes swap, never stack */
.scene {
  position: absolute; inset: 0; padding: 26px 30px;
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.scene.active { opacity: 1; transform: translateY(0); pointer-events: all; }

.imod-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0; border-top: 1px solid var(--rule); background: rgba(0,0,0,0.25); flex-shrink: 0;
  min-height: 0;
}
.imod-foot-l, .imod-foot-r { display: flex; align-items: center; }
.imod-foot-info { padding: 0 22px; font-family: var(--ff-mono); font-size: 9px; color: var(--ink3); }
.inav { font-family: var(--ff-heading); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; border: none; cursor: pointer; padding: 15px 24px; transition: opacity 0.15s; background: transparent; color: var(--ink3); }
.inav:hover { color: var(--ink); }
.inav-primary { background: var(--c); color: #000; }
.imod-box.amber .inav-primary { background: var(--a); }
.inav-primary:hover { opacity: 0.85; }

/* ═══════════════════════════════════════════════════════════════════
   TAILORED INTERACTIVE COMPONENTS  (each scene fits; nothing scrolls)
   ═══════════════════════════════════════════════════════════════════ */

/* shared: a decision question + options that fit */
.iq { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--a); margin-bottom: 12px; }
.iq.cyan { color: var(--c); }
.iopts { display: flex; flex-direction: column; gap: 8px; }
.iopt {
  text-align: left; cursor: pointer; padding: 13px 16px;
  background: rgba(255,255,255,0.035); border: 1px solid var(--rule); border-left: 2px solid rgba(255,255,255,0.14);
  color: var(--ink2); font-size: 13px; line-height: 1.5; font-family: var(--ff-body);
  transition: all 0.15s;
}
.iopt:hover { background: rgba(23,174,212,0.09); border-left-color: var(--c); color: var(--ink); transform: translateX(2px); }
.iopt.key:hover { border-left-color: var(--c); }
.iopt:disabled { opacity: 0.4; cursor: default; transform: none; }

/* context strip (compact, top of a decision scene) */
.ictx { background: rgba(255,255,255,0.03); border-left: 2px solid rgba(23,174,212,0.35); padding: 12px 16px; margin-bottom: 14px; }
.ictx p { font-size: 12.5px; color: var(--ink2); line-height: 1.6; }
.ictx.compact p { font-size: 11px; color: var(--ink3); }

/* scene title row */
.iscene-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-shrink: 0; }
.iscene-name { font-family: var(--ff-serif); font-size: 17px; font-weight: 700; color: var(--ink); }
.iscene-tag { font-family: var(--ff-mono); font-size: 9px; color: var(--c); border: 1px solid var(--cyan-border); padding: 3px 9px; }
.imod-box.amber .iscene-tag { color: var(--a); border-color: var(--amber-border); }

/* an outcome / reveal panel (replaces the question; fits) */
.ireveal { background: rgba(23,174,212,0.06); border: 1px solid rgba(23,174,212,0.2); border-left: 2px solid var(--c); padding: 16px 18px; }
.ireveal.amber { background: rgba(254,153,15,0.06); border-color: rgba(254,153,15,0.2); border-left-color: var(--a); }
.ireveal-tag { font-family: var(--ff-mono); font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); margin-bottom: 8px; }
.ireveal.amber .ireveal-tag { color: var(--a); }
.ireveal-p { font-size: 13px; color: rgba(255,255,255,0.82); line-height: 1.62; }
.ireveal-p + .ireveal-p { margin-top: 9px; }

/* your-choice echo (compact reminder of what you picked) */
.ichoice-echo { font-size: 11px; color: var(--ink3); margin-bottom: 12px; padding: 8px 12px; border-left: 2px solid var(--a); background: rgba(254,153,15,0.04); }
.ichoice-echo b { color: var(--ink2); font-weight: 600; }

/* ── CH1 SIMULATOR — case console ───────────────────────────── */
.sim-grid { display: grid; grid-template-columns: 220px 1fr; gap: 0; height: 100%; }
.sim-rail { border-right: 1px solid var(--rule); padding: 4px; display: flex; flex-direction: column; gap: 6px; }
.sim-case {
  text-align: left; cursor: pointer; padding: 12px 14px; background: rgba(255,255,255,0.02);
  border: 1px solid transparent; border-left: 2px solid var(--rule); transition: all 0.15s;
}
.sim-case:hover { background: rgba(23,174,212,0.06); border-left-color: rgba(23,174,212,0.5); }
.sim-case.active { background: rgba(23,174,212,0.1); border-left-color: var(--c); }
.sim-case-name { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.sim-case-meta { display: block; font-family: var(--ff-mono); font-size: 9px; color: var(--c); margin: 3px 0 1px; }
.sim-case-sub { display: block; font-size: 10px; color: var(--ink3); }
.sim-stage { padding: 24px 28px; display: flex; flex-direction: column; overflow: hidden; }
.sim-stage-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--ink3); font-style: italic; font-size: 14px; }

/* delay bar mechanic */
.simx-delay-track { height: 5px; background: rgba(255,255,255,0.08); position: relative; overflow: hidden; margin: 6px 0 14px; }
.simx-delay-fill { height: 100%; background: linear-gradient(90deg, var(--c), var(--a)); width: 0; }
.simx-events { display: flex; flex-direction: column; gap: 7px; }
.simx-ev { display: flex; align-items: flex-start; gap: 10px; opacity: 0; transition: opacity 0.4s; }
.simx-ev.vis { opacity: 1; }
.simx-ev-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.simx-ev-dot.cyan { background: var(--c); } .simx-ev-dot.amber { background: var(--a); } .simx-ev-dot.red { background: #e0524a; }
.simx-ev-wk { font-family: var(--ff-mono); font-size: 10px; color: var(--ink3); width: 42px; flex-shrink: 0; }
.simx-ev-tx { font-size: 12px; color: var(--ink2); }
/* metric bars */
.simx-metric { margin-bottom: 12px; }
.simx-metric-row { display: flex; align-items: center; gap: 12px; margin-bottom: 5px; }
.simx-metric-label { font-size: 12px; color: var(--ink2); flex: 1; }
.simx-metric-track { width: 120px; height: 5px; background: rgba(255,255,255,0.08); flex-shrink: 0; }
.simx-metric-fill { height: 100%; transition: width 0.6s var(--ease); }
.simx-metric-desc { font-size: 10.5px; color: var(--ink3); line-height: 1.5; }

/* ── CH2 DIAGNOSTIC — full-bleed one-question ───────────────── */
.diag-top { flex-shrink: 0; margin-bottom: 18px; }
.diag-compound { display: flex; gap: 5px; margin-bottom: 8px; }
.diag-comp-seg { flex: 1; height: 6px; background: rgba(255,255,255,0.1); transition: background 0.5s var(--ease); }
.diag-comp-seg.lit-s { background: var(--c); } .diag-comp-seg.lit-t { background: #7cc4ec; }
.diag-comp-seg.lit-e { background: var(--a); } .diag-comp-seg.lit-x { background: #fff; }
.diag-comp-lbls { display: flex; gap: 5px; }
.diag-comp-lbls span { flex: 1; text-align: center; font-family: var(--ff-mono); font-size: 7.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink3); }
.diag-scen { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.diag-scen-name { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--a); }
.diag-scen-prog { font-family: var(--ff-mono); font-size: 10px; color: var(--ink3); }
.diag-mid { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.diag-situation { font-size: 13.5px; color: var(--ink2); line-height: 1.6; margin-bottom: 16px; }
.diag-result-card { background: rgba(254,153,15,0.06); border-left: 2px solid var(--a); padding: 18px 20px; }
.diag-result-card h4 { font-family: var(--ff-serif); font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.diag-result-card p { font-size: 13px; color: var(--ink2); line-height: 1.6; }

/* ── CH3 DESTINATION LADDER ─────────────────────────────────── */
.lad-grid { display: grid; grid-template-columns: 210px 1fr; gap: 0; height: 100%; }
.lad-rail { border-right: 1px solid var(--rule); padding: 14px 10px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.lad-step { display: flex; align-items: center; gap: 11px; padding: 9px 8px; cursor: pointer; transition: all 0.15s; position: relative; }
.lad-step:hover { background: rgba(23,174,212,0.06); }
.lad-step.active { background: rgba(23,174,212,0.1); }
.lad-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--bg2); border: 2px solid rgba(23,174,212,0.5); flex-shrink: 0; transition: all 0.2s; }
.lad-step.active .lad-dot { background: var(--c); box-shadow: 0 0 0 4px rgba(23,174,212,0.18); }
.lad-info { min-width: 0; }
.lad-name { font-size: 12.5px; color: var(--ink); font-weight: 600; }
.lad-rt { font-family: var(--ff-mono); font-size: 9px; color: var(--c); }
.lad-line { position: absolute; left: 13.5px; top: 100%; width: 2px; height: 2px; background: linear-gradient(var(--c), var(--a)); }
.lad-stage { padding: 24px 28px; display: flex; flex-direction: column; overflow: hidden; }

/* signal readout */
.sig-out { margin-top: 14px; border: 1px solid rgba(23,174,212,0.22); padding: 14px 16px; background: rgba(0,0,0,0.25); }
.sig-out-t { font-family: var(--ff-mono); font-size: 9px; color: var(--c); letter-spacing: 0.1em; margin-bottom: 9px; }
.sig-out-l { font-family: var(--ff-mono); font-size: 11px; color: rgba(255,255,255,0.55); margin-bottom: 5px; min-height: 15px; transition: opacity 0.4s; }

/* finding panel (shared, fits) */
.ifinding { background: rgba(255,255,255,0.03); border-left: 2px solid var(--a); padding: 14px 18px; }
.ifinding-tag { font-family: var(--ff-mono); font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--a); margin-bottom: 8px; }
.ifinding p { font-size: 12.5px; color: var(--ink2); line-height: 1.62; }
.ifinding p + p { margin-top: 8px; }
.iopenq { margin-top: 12px; padding: 12px 16px; background: rgba(254,153,15,0.05); border-left: 2px solid var(--a); }
.iopenq-tag { font-family: var(--ff-mono); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--a); margin-bottom: 5px; }
.iopenq p { font-family: var(--ff-serif); font-style: italic; font-size: 13.5px; color: rgba(255,255,255,0.78); line-height: 1.5; }

/* ── CH4 / CH5 selector chips across top ────────────────────── */
.itabs { display: flex; gap: 8px; margin-bottom: 18px; flex-shrink: 0; flex-wrap: wrap; }
.itab { cursor: pointer; padding: 9px 15px; background: rgba(255,255,255,0.03); border: 1px solid var(--rule); font-size: 12px; color: var(--ink3); transition: all 0.15s; }
.itab:hover { color: var(--ink); border-color: rgba(23,174,212,0.4); }
.itab.active { background: rgba(23,174,212,0.12); border-color: var(--c); color: var(--ink); }
.imod-box.amber .itab.active { background: rgba(254,153,15,0.12); border-color: var(--a); }
.itab-rt { font-family: var(--ff-mono); font-size: 9px; color: var(--c); margin-left: 6px; }
.imod-box.amber .itab-rt { color: var(--a); }

/* ═══════════════════════════════════════════════════════════════════
   BRIEFING THEORY VISUALS — small, self-contained, fit without scroll
   ═══════════════════════════════════════════════════════════════════ */
.bviz { margin: 4px 0 10px; flex-shrink: 0; }
.bviz svg { display: block; width: 100%; height: auto; }
.bviz-cap { font-family: var(--ff-mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); margin-top: 6px; text-align: center; }

/* animated stroke draw */
@keyframes vizdraw { to { stroke-dashoffset: 0; } }
@keyframes vizfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vizgrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bmod.on .bviz [data-draw] { animation: vizdraw 1.1s var(--ease) forwards; }
.bmod.on .bviz [data-fade] { opacity: 0; animation: vizfade 0.6s var(--ease) forwards; }

/* two-gap bars (Ch1) */
.viz-gap-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.viz-gap-label { font-family: var(--ff-mono); font-size: 9px; width: 74px; flex-shrink: 0; color: var(--ink3); text-transform: uppercase; letter-spacing: 0.06em; }
.viz-gap-track { flex: 1; height: 8px; background: rgba(255,255,255,0.06); position: relative; overflow: hidden; }
.viz-gap-fill { position: absolute; left: 0; top: 0; height: 100%; transform-origin: left; }
.bmod.on .viz-gap-fill { animation: vizgrow 1s var(--ease) forwards; }
.viz-gap-fill.signal { background: linear-gradient(90deg, var(--c), rgba(23,174,212,0.2)); }
.viz-gap-fill.legit { background: linear-gradient(90deg, #e0524a, rgba(224,82,74,0.5)); }
.viz-gap-note { font-family: var(--ff-mono); font-size: 8px; color: var(--ink3); width: 60px; flex-shrink: 0; text-align: right; }

/* three compounding arcs (Ch2) */
.viz-arcs { display: flex; align-items: center; gap: 18px; justify-content: center; }
.viz-arcs svg { width: 104px; height: 104px; flex-shrink: 0; }
.viz-arc { fill: none; stroke-width: 4; stroke-linecap: round; }
.viz-arc.a1 { stroke: var(--c); }
.viz-arc.a2 { stroke: #7cc4ec; }
.viz-arc.a3 { stroke: var(--a); }
.bmod.on .viz-arc { stroke-dasharray: 200; stroke-dashoffset: 200; animation: vizdraw 0.9s var(--ease) forwards; }
.bmod.on .viz-arc.a2 { animation-delay: 0.4s; }
.bmod.on .viz-arc.a3 { animation-delay: 0.8s; }
.viz-arc-legend { display: flex; flex-direction: column; gap: 8px; }
.viz-arc-item { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--ink2); }
.viz-arc-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

/* signal-delay curve (Ch3) */
.viz-delay svg { width: 100%; height: 92px; }
.viz-delay-axis { stroke: var(--rule); stroke-width: 1; }
.viz-delay-curve { fill: none; stroke: var(--c); stroke-width: 2; }
.bmod.on .viz-delay-curve { stroke-dasharray: 320; stroke-dashoffset: 320; animation: vizdraw 1.4s var(--ease) forwards; }
.viz-delay-node { fill: var(--bg2); stroke: var(--c); stroke-width: 1.5; opacity: 0; }
.bmod.on .viz-delay-node { animation: vizfade 0.4s var(--ease) forwards; }
.viz-delay-lbl { font-family: var(--ff-mono); font-size: 7px; fill: var(--ink3); }

/* feedback loop (Ch4) */
.viz-loop svg { width: 100%; height: 96px; }
.viz-loop-path { fill: none; stroke: var(--c); stroke-width: 2; }
.bmod.on .viz-loop-path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: vizdraw 1.5s var(--ease) forwards; }
.viz-loop-node { fill: rgba(23,174,212,0.12); stroke: var(--c); stroke-width: 1.5; }
.viz-loop-txt { font-family: var(--ff-mono); font-size: 8px; fill: var(--ink2); text-anchor: middle; }
.viz-loop-tag { font-family: var(--ff-mono); font-size: 7px; fill: var(--a); text-anchor: middle; opacity: 0; }
.bmod.on .viz-loop-tag { animation: vizfade 0.5s var(--ease) forwards; animation-delay: 1.4s; }

/* diverging lines — question vs reply (Ch5) */
.viz-div svg { width: 100%; height: 88px; }
.viz-div-line { fill: none; stroke-width: 2; }
.viz-div-line.q { stroke: var(--a); }
.viz-div-line.r { stroke: rgba(255,255,255,0.3); stroke-dasharray: 3 3; }
.bmod.on .viz-div-line { stroke-dasharray: 300; stroke-dashoffset: 300; animation: vizdraw 1.3s var(--ease) forwards; }
.bmod.on .viz-div-line.r { animation-delay: 0.3s; }
.viz-div-lbl { font-family: var(--ff-mono); font-size: 8px; }

/* constellation (Ch6) */
.viz-const svg { width: 100%; height: 100px; }
.viz-const-link { stroke: rgba(254,153,15,0.25); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; }
.bmod.on .viz-const-link { animation: vizfade 0.8s var(--ease) forwards; animation-delay: 1s; }
.viz-const-node { fill: var(--bg2); stroke: var(--a); stroke-width: 1.5; opacity: 0; }
.bmod.on .viz-const-node { animation: vizfade 0.5s var(--ease) forwards; }
.viz-const-lbl { font-family: var(--ff-mono); font-size: 7.5px; fill: var(--ink3); text-anchor: middle; }

/* ═══ UX PASS (P1/P2) ═══ */
/* keyboard focus */
.iopt:focus-visible, .lad-step:focus-visible, .itab:focus-visible, .sim-case:focus-visible,
.bnav:focus-visible, .b-launch:focus-visible, .inav:focus-visible, .bmod-x:focus-visible,
.imod-x:focus-visible, .expand-btn:focus-visible, .begin-btn:focus-visible {
  outline: 1px solid var(--c); outline-offset: 2px;
}
.bmod-box:focus, .imod-box:focus { outline: none; }

/* choice beat */
.iopt.chosen {
  background: rgba(254,153,15,0.13); border-color: rgba(254,153,15,0.4);
  border-left-color: var(--a); color: var(--ink); transform: translateX(2px);
}

/* button semantics resets (ladder steps & tabs become <button>) */
button.lad-step { width: 100%; background: none; border: none; font-family: inherit; color: inherit; }
button.itab { font-family: inherit; }

/* completion marks */
.sim-case.done, .lad-step.done .lad-name, .itab.done { color: var(--ink2); }
.sim-case.done .sim-case-name::after, .lad-step.done .lad-name::after, .itab.done::after {
  content: ' \2713'; color: var(--c); font-family: var(--ff-mono); font-size: 0.85em;
}
.imod-box.amber .sim-case.done .sim-case-name::after,
.imod-box.amber .lad-step.done .lad-name::after,
.imod-box.amber .itab.done::after { color: var(--a); }
.lad-step.done .lad-dot { background: rgba(23,174,212,0.5); }

/* continue-forward CTA on terminal scenes */
.inav-continue { background: var(--a); color: #000; }
.imod-box.amber .inav-continue { background: var(--c); }

/* ═══ VISUALS v2 — story-in-motion diagrams ═══ */
/* Ch1: signal bar SHRINKS (gets solved) while legitimacy stays */
@keyframes vizSignalSolve { 0%,35% { width: 88%; } 100% { width: 12%; } }
@keyframes vizHold { from { width: 0; } to { width: 88%; } }
@keyframes vizPulseRed { 0%,100% { box-shadow: 0 0 0 rgba(224,82,74,0); } 50% { box-shadow: 0 0 14px rgba(224,82,74,0.45); } }
.bmod.on .viz-gap-fill.signal { width: 12%; animation: vizSignalSolve 2.1s var(--ease) forwards; }
.bmod.on .viz-gap-fill.legit  { width: 88%; animation: vizHold 1.1s var(--ease) forwards, vizPulseRed 2.4s 2.2s ease-in-out; }
.viz-gap-note { opacity: 0; }
.bmod.on .viz-gap-note { animation: vizfade 0.5s var(--ease) forwards; }
.bmod.on .viz-gap-row:first-child .viz-gap-note { animation-delay: 1.9s; }
.bmod.on .viz-gap-row:last-child  .viz-gap-note { animation-delay: 1.1s; }

/* Ch2: rings + governed core + slow orbit dashes */
@keyframes vizSpin { to { transform: rotate(360deg); } }
@keyframes vizCore { 0%,100% { r: 4; opacity: 0.9; } 50% { r: 5.5; opacity: 1; } }
.viz-arc-orbit { fill: none; stroke: rgba(23,174,212,0.25); stroke-width: 1.2; stroke-dasharray: 2 6; transform-origin: 65px 65px; animation: vizSpin 50s linear infinite; }
.viz-core { fill: var(--ink); animation: vizCore 3.2s ease-in-out infinite; }
.viz-core-lbl { font-family: var(--ff-mono); font-size: 7px; fill: var(--ink3); text-anchor: middle; }

/* Ch3: signal pulse travels the delay curve */
@keyframes vizTravel { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.viz-delay { position: relative; }
.viz-delay svg { position: relative; z-index: 0; }

/* Ch4: proper loop nodes + arrows + interventions */
.viz-loop-nodebox { fill: rgba(23,174,212,0.08); stroke: var(--c); stroke-width: 1.5; rx: 4; }
.viz-loop-arrow { fill: var(--c); }
.viz-loop-return { fill: none; stroke: rgba(255,255,255,0.28); stroke-width: 1.5; stroke-dasharray: 4 4; }
.bmod.on .viz-loop-return { stroke-dashoffset: 200; animation: vizdraw 1.2s 0.9s var(--ease) forwards; }
.viz-loop-tick { stroke: var(--a); stroke-width: 2; opacity: 0; }
.bmod.on .viz-loop-tick { animation: vizfade 0.4s var(--ease) forwards; }
.viz-loop-slow { font-family: var(--ff-mono); font-size: 7px; fill: rgba(255,255,255,0.35); text-anchor: middle; }

/* Ch5: pulse along the question line + miss bracket */
@keyframes vizTravelQ { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.viz-div { position: relative; }
.viz-gap-bracket { stroke: rgba(255,255,255,0.3); stroke-width: 1; fill: none; }
.viz-gap-bracket-lbl { font-family: var(--ff-mono); font-size: 7.5px; fill: var(--ink3); text-anchor: middle; }

/* Ch6: twinkle + the unfinished line */
@keyframes vizTwinkle { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.bmod.on .viz-const-node { animation: vizfade 0.5s var(--ease) forwards, vizTwinkle 3.6s 1.6s ease-in-out infinite; }
.viz-const-unfinished { stroke: var(--a); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; }
.bmod.on .viz-const-unfinished { stroke-dashoffset: 60; animation: vizfade 0.6s 1.6s forwards, vizdraw 1.2s 1.6s var(--ease) forwards; }

/* ═══ INTERACTIVE BEATS ═══ */
/* reveal/finding/open-question stagger — every consequence lands in sequence */
@keyframes stampIn { from { opacity: 0; transform: translateY(8px) scale(1.015); } to { opacity: 1; transform: translateY(0) scale(1); } }
.scene .ireveal  { animation: stampIn 0.38s var(--ease) both; }
.scene .ifinding { animation: stampIn 0.42s 0.18s var(--ease) both; }
.scene .iopenq   { animation: stampIn 0.42s 0.34s var(--ease) both; }
/* options cascade in */
@keyframes optIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: translateX(0); } }
.scene .iopts .iopt:nth-child(1) { animation: optIn 0.28s 0.05s var(--ease) both; }
.scene .iopts .iopt:nth-child(2) { animation: optIn 0.28s 0.11s var(--ease) both; }
.scene .iopts .iopt:nth-child(3) { animation: optIn 0.28s 0.17s var(--ease) both; }
.scene .iopts .iopt:nth-child(4) { animation: optIn 0.28s 0.23s var(--ease) both; }
/* diag: the NEW distance segment pulses when it lights */
@keyframes segPulse { 0% { transform: scaleY(1); box-shadow: 0 0 0 rgba(255,255,255,0); } 45% { transform: scaleY(1.8); box-shadow: 0 0 12px rgba(255,255,255,0.35); } 100% { transform: scaleY(1); } }
.diag-comp-seg.fresh { animation: segPulse 0.8s var(--ease); }

/* ═══ SIM MARQUEE SELECT ═══ */
.simq-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; height: 100%; }
.simq-card {
  text-align: left; cursor: pointer; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,0.025); border: 1px solid var(--rule); border-left: 2px solid rgba(23,174,212,0.35);
  font-family: inherit; color: inherit;
  transition: transform 0.18s var(--ease), border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.simq-card:hover { transform: translateY(-3px); background: rgba(23,174,212,0.07); border-left-color: var(--c); box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 24px rgba(23,174,212,0.08); }
.simq-era { font-family: var(--ff-mono); font-size: 10px; color: var(--c); letter-spacing: 0.1em; }
.simq-name { font-family: var(--ff-serif); font-size: 17px; font-weight: 700; color: var(--ink); }
.simq-sub { font-size: 11.5px; color: var(--ink3); }
.simq-dist { font-family: var(--ff-mono); font-size: 9px; color: var(--ink3); margin-top: auto; padding-top: 8px; }
.simq-meter { height: 3px; background: rgba(255,255,255,0.08); margin-top: 6px; }
.simq-meter-fill { height: 100%; background: linear-gradient(90deg, var(--c), var(--a)); }
.simq-card.done { border-left-color: rgba(23,174,212,0.6); }
.simq-card.done .simq-name::after { content: ' \2713'; color: var(--c); font-family: var(--ff-mono); font-size: 0.8em; }

/* ═══ DEMO LADDER — distance made spatial ═══ */
.lad-rail { position: relative; }
.lad-spine { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px;
  background: linear-gradient(180deg, var(--c), var(--a)); opacity: 0.35; z-index: 0; }
.lad-step { position: relative; z-index: 1; }

/* scroll cue: more visible */
.scroll-cue { font-size: 11px !important; opacity: 0.75 !important; }
.scroll-cue svg { width: 18px; height: 18px; }

/* ═══ FINALE ═══ */
.finale {
  position: fixed; inset: 0; z-index: 700;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(3,6,16,0.88), rgba(1,2,8,0.97));
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0s linear 0.8s;
}
.finale.on { opacity: 1; pointer-events: all; visibility: visible; transition: opacity 0.8s var(--ease), visibility 0s; }
.finale-inner { max-width: 640px; padding: 32px; text-align: center; }
.finale-eyebrow { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--a); margin-bottom: 28px; }
.finale-line { font-family: var(--ff-serif); font-size: clamp(18px, 3.4vw, 26px); line-height: 1.5; color: var(--ink); margin-bottom: 18px; opacity: 0; transform: translateY(10px); }
.finale-line em { color: var(--a); }
.finale.on .finale-line { animation: stampIn 0.9s var(--ease) forwards; }
.finale.on .f1 { animation-delay: 0.5s; }
.finale.on .f2 { animation-delay: 1.5s; }
.finale.on .f3 { animation-delay: 2.7s; }
.finale-actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; opacity: 0; }
.finale.on .finale-actions { animation: vizfade 0.8s 3.9s var(--ease) forwards; }
.finale-x { position: absolute; top: 22px; right: 26px; background: none; border: 1px solid var(--rule); color: var(--ink3); font-size: 14px; cursor: pointer; padding: 6px 10px; }
.finale-x:hover { color: var(--ink); }

/* ═══ COMPLETION MARKS on nav + rail ═══ */
#rail .dot.complete { background: var(--a) !important; border-color: var(--a) !important; }
#nav .nb.complete::after { content: ' \2713'; color: var(--a); font-size: 0.85em; }

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══ CONTENT PASS v6 ═══ */
/* Ch4: telegraph stinger, tally, tried marks */
.sol-stinger { font-family: var(--ff-mono); font-size: 10.5px; color: var(--c); letter-spacing: 0.04em; }
.sol-tally { font-family: var(--ff-mono); font-size: 9px; color: var(--ink3); margin: 8px 0 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.iopt.tried-good, .iopt.tried-bad { opacity: 0.62; }
.iopt.tried-good { border-left-color: rgba(23,174,212,0.55); }
.iopt.tried-bad { border-left-color: rgba(224,82,74,0.55); }
.tried-mark { float: right; font-family: var(--ff-mono); font-size: 11px; margin-left: 10px; }
.iopt.tried-good .tried-mark { color: var(--c); }
.iopt.tried-bad .tried-mark { color: #e0524a; }

/* Ch2: instinct trace + act interstitials */
.diag-trace { display: flex; align-items: center; gap: 3px; }
.diag-trace span { display: block; height: 4px; border-radius: 2px; transition: width 0.5s var(--ease); }
.diag-trace .tr-s { background: rgba(23,174,212,0.75); }
.diag-trace .tr-d { background: rgba(255,255,255,0.55); }
.diag-trace .tr-o { background: rgba(254,153,15,0.75); }
.diag-inter { align-items: center; justify-content: center; text-align: center; }
.di-eyebrow { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--a); margin-bottom: 16px; }
.di-name { font-family: var(--ff-serif); font-size: clamp(22px, 3.6vw, 32px); font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.di-line { font-family: var(--ff-serif); font-style: italic; font-size: 15px; color: var(--ink2); }

/* Ch1: pattern entry + synthesis rows */
@keyframes patPulse { 0%,100% { border-left-color: var(--a); } 50% { border-left-color: rgba(254,153,15,0.25); } }
.sim-case.pattern-entry { border-left-color: var(--a); animation: patPulse 2.2s ease-in-out infinite; }
.sim-case.pattern-entry .sim-case-meta { color: var(--a); }
.sim-case.pattern-entry.active { animation: none; background: rgba(254,153,15,0.1); border-left-color: var(--a); }
.pat-row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.pat-decay { font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--a); line-height: 1.5; }
.pat-cases { font-size: 12.5px; color: var(--ink2); line-height: 1.55; }
.pat-cases b { color: var(--ink); font-weight: 600; }
.pat-nudge { margin-top: 12px; padding: 9px 13px; border-left: 2px solid var(--a); background: rgba(254,153,15,0.06); font-size: 12px; color: var(--ink2); animation: stampIn 0.5s 0.3s var(--ease) both; }
.pat-nudge b { color: var(--a); }

/* Ch5: framework beat */
.il-framecard { border: 1px solid var(--amber-border); border-left: 2px solid var(--a); background: rgba(254,153,15,0.05); padding: 20px 22px; animation: stampIn 0.45s var(--ease) both; }
.il-frametext { font-family: var(--ff-serif); font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,0.86); }

/* Ch6: carried entry */
.lad-step.carried-entry { border-top: 1px solid var(--rule); margin-top: 10px; padding-top: 14px; }
.lad-step.carried-entry .lad-dot { border-color: var(--a); }
.lad-step.carried-entry .lad-rt { color: var(--a); }

/* ═══ RESPEC v7 — distinct interactive identities ═══ */
/* Ch4: slates + plate grid */
.slate {
  cursor: pointer; padding: 11px 16px; min-width: 150px; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--rule); border-top: 2px solid rgba(255,255,255,0.12);
  font-family: inherit; color: inherit; transition: all 0.16s var(--ease);
}
.slate:hover { border-top-color: rgba(23,174,212,0.5); background: rgba(23,174,212,0.06); }
.slate.active { border-top-color: var(--c); background: rgba(23,174,212,0.1); }
.slate-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.slate-meta { font-family: var(--ff-mono); font-size: 9px; color: var(--c); }
.slate-prog { font-family: var(--ff-mono); font-size: 8.5px; color: var(--ink3); }
.slate.done .slate-name::after { content: ' \2713'; color: var(--c); font-size: 0.85em; }
.plate-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; flex-direction: unset !important; }
.plate {
  display: flex; flex-direction: column; gap: 5px; padding: 15px 16px !important; min-height: 86px;
  border: 1px solid var(--rule) !important; border-left: 2px solid rgba(255,255,255,0.14) !important;
}
.plate .plate-k { font-family: var(--ff-mono); font-size: 9px; color: var(--c); letter-spacing: 0.12em; }
.plate .plate-label { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.plate .plate-hint { margin-top: auto; font-family: var(--ff-mono); font-size: 8.5px; color: var(--ink3); }
.plate .plate-mark { margin-top: auto; float: none; margin-left: 0; font-size: 9.5px; }
.plate.tried-good { border-left-color: rgba(23,174,212,0.55) !important; }
.plate.tried-bad { border-left-color: rgba(224,82,74,0.55) !important; }

/* Ch5: transmissions triptych + signal header */
.tx-triptych { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; height: 100%; }
.tx-card {
  cursor: pointer; padding: 26px 22px; text-align: left; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(180deg, rgba(254,153,15,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--amber-border); border-top: 2px solid rgba(254,153,15,0.4);
  font-family: inherit; color: inherit; transition: all 0.2s var(--ease);
}
.tx-card:hover { transform: translateY(-4px); border-top-color: var(--a); box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 30px rgba(254,153,15,0.07); }
.tx-num { font-family: var(--ff-mono); font-size: 22px; color: rgba(254,153,15,0.35); }
.tx-dist { font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--a); }
.tx-name { font-family: var(--ff-serif); font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.tx-tag { font-size: 11.5px; color: var(--ink3); }
.tx-go { margin-top: auto; font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--a); }
.tx-card.done { opacity: 0.78; }
.tx-card.done .tx-go { color: var(--c); }
.tx-wrap { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.tx-head {
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
  padding: 10px 18px; border-bottom: 1px solid var(--rule); background: rgba(0,0,0,0.22);
}
.tx-back { background: none; border: none; cursor: pointer; font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.08em; color: var(--ink3); padding: 4px 6px; }
.tx-back:hover { color: var(--ink); }
.tx-head-mid { font-family: var(--ff-mono); font-size: 9px; letter-spacing: 0.18em; color: var(--a); }
.tx-head-r { font-family: var(--ff-mono); font-size: 9px; color: var(--ink3); }
.tx-stage { flex: 1 1 auto; min-height: 0; padding: 22px 26px; display: flex; flex-direction: column; overflow: hidden; }

/* Ch6: constellation board */
.map-board { position: relative; height: 100%; overflow: hidden; }
.map-links { position: absolute; inset: 6% 4%; width: 92%; height: 88%; }
.map-links line { stroke: rgba(254,153,15,0.22); stroke-width: 0.35; stroke-dasharray: 1.2 1.8; }
.map-links .map-link-amber { stroke: rgba(254,153,15,0.45); }
.map-node {
  position: absolute; transform: translate(-14px, -14px);
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: inherit; color: inherit; padding: 6px; max-width: 190px;
}
.map-dot {
  display: block; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg2); border: 2px solid var(--a);
  box-shadow: 0 0 12px rgba(254,153,15,0.25); margin-bottom: 7px;
  transition: all 0.2s var(--ease);
  animation: vizTwinkle 4s ease-in-out infinite;
}
.map-node:hover .map-dot { background: var(--a); box-shadow: 0 0 20px rgba(254,153,15,0.55); animation: none; }
.map-node.done .map-dot { background: var(--a); animation: none; }
.map-name { display: block; font-family: var(--ff-serif); font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.map-tag { display: block; font-family: var(--ff-mono); font-size: 8.5px; color: var(--a); margin-top: 3px; letter-spacing: 0.08em; }
.map-node.carried-entry .map-dot { border-style: dashed; }
.map-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-family: var(--ff-mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); }

@media (max-width: 640px) {
  .tx-triptych { grid-template-columns: 1fr; gap: 8px; overflow: hidden; }
  .tx-card { padding: 14px 16px; }
  .tx-num { display: none; }
  .plate-grid { grid-template-columns: 1fr; }
  .plate { min-height: 0; }
  .map-name { font-size: 12px; }
  .map-node { max-width: 130px; }
}

/* ═══ v8: amber bar contrast + briefing accordions ═══ */
.pg-top.amber { background: var(--a); border-bottom-color: rgba(0,0,0,0.25); }
.pg-top.amber .pg-top-label, .pg-top.amber .pg-top-idx { color: #10203b !important; }

.b-chip.acc {
  cursor: pointer; width: 100%; font-family: inherit; color: inherit;
  display: grid; grid-template-columns: auto 1fr auto; column-gap: 10px; row-gap: 0;
  align-items: baseline; transition: background 0.16s, border-color 0.16s;
}
.b-chip.acc .b-chip-d { margin-left: 0; }
.b-chip.acc:hover { background: rgba(23,174,212,0.06); border-color: rgba(23,174,212,0.35); }
.b-chip.amber.acc:hover { background: rgba(254,153,15,0.06); border-color: rgba(254,153,15,0.35); }
.b-chip .b-chip-desc {
  grid-column: 1 / -1; font-size: 11px; line-height: 1.55; color: var(--ink3); text-align: left;
  max-height: 0; overflow: hidden; margin-top: 0; opacity: 0;
  transition: max-height 0.28s var(--ease), opacity 0.24s var(--ease), margin-top 0.28s var(--ease);
}
.b-chip.acc.open { border-left: 2px solid var(--c); background: rgba(23,174,212,0.05); }
.b-chip.amber.acc.open { border-left-color: var(--a); background: rgba(254,153,15,0.05); }
.b-chip.acc.open .b-chip-desc { max-height: 68px; opacity: 1; margin-top: 7px; color: var(--ink2); }

/* ═══ Ch3 redesign: the conversation that can't finish ═══ */
.viz-conv svg { width: 100%; height: 94px; }
.vc-window { fill: rgba(254,153,15,0.045); stroke: none; }
.vc-close { stroke: rgba(224,82,74,0.55); stroke-width: 1; stroke-dasharray: 3 3; }
.bmod.on .vc-close { animation: vizPulseRed 1.6s 3.4s ease-in-out; }
.vc-lane { stroke: rgba(255,255,255,0.14); stroke-width: 1; }
.vc-lbl { font-family: var(--ff-mono); font-size: 7.5px; fill: var(--ink3); }
.vc-close-lbl { text-anchor: middle; fill: rgba(224,82,74,0.75); }
.vc-late-lbl { fill: rgba(224,82,74,0.85); opacity: 0; text-anchor: end; }
.vc-sig { stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 90; stroke-dashoffset: 90; }
.vc-sig.late { stroke: rgba(224,82,74,0.8); }
.bmod.on .vc-sig.s1 { animation: vizdraw 0.75s 0.4s var(--ease) forwards; }
.bmod.on .vc-sig.s2 { animation: vizdraw 0.75s 1.3s var(--ease) forwards; }
.bmod.on .vc-sig.s3 { animation: vizdraw 0.75s 2.2s var(--ease) forwards; }
.bmod.on .vc-sig.s4 { animation: vizdraw 0.75s 3.1s var(--ease) forwards; }
.vc-dot { fill: var(--c); opacity: 0; }
.vc-dot.late { fill: #e0524a; }
.bmod.on .vc-dot.d1 { animation: vizfade 0.3s 1.1s forwards; }
.bmod.on .vc-dot.d2 { animation: vizfade 0.3s 2.0s forwards; }
.bmod.on .vc-dot.d3 { animation: vizfade 0.3s 2.9s forwards; }
.bmod.on .vc-dot.d4 { animation: vizfade 0.3s 3.8s forwards; }
.bmod.on .vc-late-lbl { animation: vizfade 0.4s 3.9s forwards; }
@media (max-width: 640px) { .viz-conv svg { height: 84px; } }

/* ═══ CH6 DEMOCRACY — the franchise zoom stepper ═══ */
.fr-track { display: flex; align-items: center; gap: 8px; padding: 4px 2px 0; flex-shrink: 0; }
.fr-stop { display: flex; align-items: center; gap: 7px; }
.fr-stop-dot {
  display: block; border-radius: 50%;
  border: 1.5px solid rgba(254,153,15,0.4); background: transparent;
  transition: all 0.25s var(--ease);
}
.fr-stop.active .fr-stop-dot { border-color: var(--a); background: rgba(254,153,15,0.25); box-shadow: 0 0 10px rgba(254,153,15,0.35); }
.fr-stop.done .fr-stop-dot { background: var(--a); border-color: var(--a); }
.fr-stop-lbl { font-family: var(--ff-mono); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink3); }
.fr-stop.active .fr-stop-lbl { color: var(--a); }
.fr-stop.done .fr-stop-lbl { color: var(--ink2); }
.fr-track-line { flex: 1; height: 1px; background: rgba(254,153,15,0.18); }

/* dem briefing: mirrored gap bars (static draw, no shrink) */
.viz-gap-fill.dem-decide { background: var(--c); width: 0; }
.viz-gap-fill.dem-governed { background: #e0524a; width: 0; }
.bmod.on .viz-gap-fill.dem-decide { animation: vizGrowWide 1.1s 0.3s var(--ease) forwards; }
.bmod.on .viz-gap-fill.dem-governed { animation: vizGrowNarrow 1.1s 0.9s var(--ease) forwards, vizPulseRed 2.4s 2.2s ease-in-out; }
@keyframes vizGrowWide { to { width: 88%; } }
@keyframes vizGrowNarrow { to { width: 12%; } }

@media (max-width: 640px) {
  .fr-stop-lbl { display: none; }
  .fr-stop.active .fr-stop-lbl { display: inline; }
}

/* ═══ CH6 v2: fork diagram + the needle ═══ */
.viz-fork svg { width: 100%; height: 86px; }
.vf-past { stroke: rgba(255,255,255,0.35); stroke-width: 1.6; }
.vf-now { stroke: rgba(254,153,15,0.5); stroke-width: 1; stroke-dasharray: 3 3; }
.vf-lbl { font-family: var(--ff-mono); font-size: 7.5px; fill: var(--ink3); }
.vf-now-lbl { text-anchor: middle; fill: var(--a); }
.vf-branch { fill: none; stroke-dasharray: 240; stroke-dashoffset: 240; }
.vf-auto { stroke: rgba(224,82,74,0.8); stroke-width: 2.4; }
.vf-demo { stroke: var(--c); stroke-width: 1.3; stroke-dasharray: 240; }
.bmod.on .vf-auto { animation: vizdraw 1.1s 0.5s var(--ease) forwards; }
.bmod.on .vf-demo { animation: vizdraw 1.1s 1.1s var(--ease) forwards; }

.dg-wrap { flex-shrink: 0; padding: 2px 2px 0; }
.dg-ends { display: flex; justify-content: space-between; margin-bottom: 6px; }
.dg-end-l, .dg-end-r { font-family: var(--ff-mono); font-size: 8.5px; letter-spacing: 0.14em; }
.dg-end-l { color: var(--c); }
.dg-end-r { color: rgba(224,82,74,0.85); }
.dg-track {
  position: relative; height: 8px;
  background: linear-gradient(90deg, rgba(23,174,212,0.25), rgba(255,255,255,0.06) 50%, rgba(224,82,74,0.28));
  border: 1px solid var(--rule);
}
.dg-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.14); }
.dg-needle {
  position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px;
  background: var(--a); box-shadow: 0 0 10px rgba(254,153,15,0.6);
  transition: left 0.9s var(--ease);
}
.dg-sub { margin-top: 5px; text-align: center; font-family: var(--ff-mono); font-size: 8px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink3); }
.dg-delta { font-family: var(--ff-mono); font-size: 9.5px; letter-spacing: 0.06em; }
.dg-delta.auto { color: rgba(224,82,74,0.9); }
.dg-delta.demo { color: var(--c); }
