/* ============================================================
   NetRisk.io — Cinematic V2
   Sticky scroll-choreography framework + deep act layers
   ============================================================ */

/* ----------------------------------------------------------
   STICKY ACT FRAMEWORK
   .cine-act is the tall scroll rail; .cine-pin is the pinned
   100vh stage; .phase-layer cross-fade by [data-phase].
   ---------------------------------------------------------- */
.cine-act { position: relative; z-index: 1; }
.cine-pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
}
.cine-stage { position: relative; width: 100%; height: 100%; }

/* depth/parallax backdrop inside a pin */
.cine-depth { position: absolute; inset: -10% -10% -10% -10%; z-index: 0; pointer-events: none; }
.cine-depth .d-orb {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5;
  will-change: transform;
}
.cine-depth .d-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(150,170,205,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150,170,205,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
  will-change: transform;
}

/* phase layers */
.phase-layer {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 40px) 26px 210px;
  opacity: 0; visibility: hidden;
  transform: scale(.965) translateY(26px);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), visibility .7s, filter .7s;
  filter: blur(6px);
  will-change: opacity, transform;
  pointer-events: none;
}
.cine-act[data-phase="0"] .phase-layer[data-p="0"],
.cine-act[data-phase="1"] .phase-layer[data-p="1"],
.cine-act[data-phase="2"] .phase-layer[data-p="2"],
.cine-act[data-phase="3"] .phase-layer[data-p="3"],
.cine-act[data-phase="4"] .phase-layer[data-p="4"] {
  opacity: 1; visibility: visible; transform: none; filter: none; pointer-events: auto;
}
.phase-inner { width: 100%; max-width: var(--maxw); margin-inline: auto; }

/* JS-driven mode: scroll drives opacity/transform per-frame.
   A short linear smoothing absorbs discrete wheel ticks without lag. */
body.cine-js .phase-layer {
  transition: opacity .14s linear, transform .14s linear, filter .14s linear;
  will-change: opacity, transform, filter;
}

/* ---- HUD: chapter label, phase rail, caption ---- */
.cine-hud { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.cine-chapter {
  position: absolute; top: calc(var(--nav-h) + 18px); left: 28px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); display: flex; align-items: center; gap: 12px;
}
.cine-chapter b { color: var(--verified); font-weight: 500; }
.cine-chapter .cc-line { width: 30px; height: 1px; background: var(--verified); opacity: .6; }

.phase-rail { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.phase-rail .pr {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); transition: color .4s;
}
.phase-rail .pr .prl { opacity: 0; transform: translateX(6px); transition: opacity .4s, transform .4s; white-space: nowrap; }
.phase-rail .pr .prd { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; transition: all .4s; flex: none; }
.phase-rail .pr.on { color: var(--verified); }
.phase-rail .pr.on .prl { opacity: 1; transform: none; }
.phase-rail .pr.on .prd { background: var(--verified); border-color: var(--verified); box-shadow: 0 0 12px var(--verified-40); }
.phase-rail .pr.done .prd { background: var(--text-faint); border-color: var(--text-faint); }

.cine-caption {
  position: absolute; left: 28px; bottom: 40px; max-width: 540px;
}
.cine-caption .cap {
  position: absolute; left: 0; bottom: 0; opacity: 0; transform: translateY(12px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); pointer-events: none;
}
.cine-act[data-phase="0"] .cap[data-cap="0"],
.cine-act[data-phase="1"] .cap[data-cap="1"],
.cine-act[data-phase="2"] .cap[data-cap="2"],
.cine-act[data-phase="3"] .cap[data-cap="3"],
.cine-act[data-phase="4"] .cap[data-cap="4"] { opacity: 1; transform: none; position: relative; }
.cine-caption .cap h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.02em; line-height: 1.08; }
.cine-caption .cap p { color: var(--text-2); font-size: 15px; margin-top: 10px; max-width: 46ch; line-height: 1.5; }
.cine-caption .cap .cap-n { font-family: var(--font-mono); font-size: 11px; color: var(--verified); letter-spacing: .1em; margin-bottom: 8px; display: block; }

/* progress meter at very bottom of pin */
.cine-meter { position: absolute; left: 28px; right: 28px; bottom: 22px; height: 2px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; z-index: 6; }
.cine-meter i { position: absolute; inset: 0 auto 0 0; width: var(--mw, 0%); background: linear-gradient(90deg, var(--verified), var(--ai)); border-radius: 2px; box-shadow: 0 0 10px var(--verified-40); transition: width .1s linear; }

/* ============================================================
   ACT 2 — EVIDENCE INTELLIGENCE
   ============================================================ */

/* phase 0 — raw signal field */
.rawfield { position: relative; width: 100%; max-width: 820px; aspect-ratio: 16/9; max-height: 46vh; margin-inline: auto; }
.raw-chip {
  position: absolute; transform: translate(-50%,-50%); font-family: var(--font-mono); font-size: 12.5px;
  padding: 9px 13px; border-radius: var(--r-sm); border: 1px solid var(--border-2);
  background: rgba(12,18,32,.7); color: var(--text-2); white-space: nowrap; display: inline-flex; gap: 8px; align-items: center;
  box-shadow: var(--shadow-md); will-change: transform;
}
.raw-chip .rd { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.raw-chip[data-s="conflict"] .rd { background: var(--missing); }
.raw-chip[data-s="stale"] .rd { background: var(--critical); }
.raw-chip.drifting { animation: drift var(--dur,12s) ease-in-out infinite; animation-delay: var(--delay,0s); }

/* phase 1 — lens structuring: evidence cards */
.lens-sweep {
  position: absolute; top: 50%; left: 50%; width: 360px; height: 360px; border-radius: 50%;
  transform: translate(-50%,-50%); border: 1.5px solid var(--verified-40);
  box-shadow: 0 0 60px -8px var(--verified-20), inset 0 0 50px rgba(224,145,46,.07);
  background: radial-gradient(circle, var(--verified-12), transparent 68%);
  pointer-events: none;
}
.evcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; max-width: 960px; }
.evcard {
  background: linear-gradient(180deg, rgba(20,28,46,.92), rgba(11,16,28,.95));
  border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 16px;
  box-shadow: var(--shadow-lg);
}
.evcard .ev-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.evcard .ev-claim { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin-top: 12px; line-height: 1.25; }
.evcard .ev-meta { display: grid; gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.evcard .ev-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; }
.evcard .ev-row .k { color: var(--text-3); } .evcard .ev-row .v { color: var(--text); }

/* phase 4 — provenance inside act (reuses .prov-* from scenes.css) */
.act-prov { width: 100%; max-width: 1040px; }

/* shared act heading for layers that want a small inline title */
.layer-tag { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.layer-tag.ai { color: var(--ai); }

/* ---- vendor card bits (phase 1) ---- */
.vend { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.vlogo { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--brand); background: var(--verified-12); border: 1px solid var(--verified-20); }

/* ---- explainable score breakdown (phase 2) ---- */
.score-rows { display: grid; gap: 12px; }
.srow { display: grid; grid-template-columns: 168px 1fr 52px; gap: 14px; align-items: center; }
.srow .sk { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.srow .sbar { height: 7px; border-radius: var(--r-pill); background: rgba(255,255,255,.06); overflow: hidden; }
.srow .sbar i { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--brand), var(--brand-bright)); }
.srow .sv { font-family: var(--font-mono); font-size: 13px; color: var(--text); text-align: right; }
.srow.total { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 2px; }
.srow.total .sk { color: var(--text); font-weight: 600; }
.srow.total .sv { font-size: 16px; font-weight: 600; }

/* ============================================================
   PIPELINE — How it works (static, premium)
   ============================================================ */
.pipeline { list-style: none; margin-top: 52px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.pipe-step {
  position: relative; padding: 22px 18px 20px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.006));
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.pipe-step:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.pipe-step .pn { position: absolute; top: 16px; right: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.pipe-step .pi { width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; border: 1px solid var(--border-2); margin-bottom: 16px; color: var(--brand); background: var(--verified-12); }
.pipe-step[data-tone="ai"] .pi { color: var(--ai); background: var(--ai-12); border-color: var(--ai-20); }
.pipe-step[data-tone="evidence"] .pi { color: var(--evidence); background: var(--evidence-12); border-color: var(--evidence-20); }
.pipe-step[data-tone="critical"] .pi { color: var(--critical); background: var(--critical-12); border-color: var(--critical-20); }
.pipe-step h5 { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.pipe-step p { color: var(--text-2); font-size: 13.5px; margin-top: 7px; line-height: 1.5; }

/* ============================================================
   MODULE GRID — platform capabilities
   ============================================================ */
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.module { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.module:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.module .m-top { display: flex; align-items: center; justify-content: space-between; }
.module .m-ico { width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; border: 1px solid var(--border-2); background: var(--verified-12); color: var(--brand); }
.module h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-top: 16px; }
.module p { color: var(--text-2); font-size: 13.5px; margin-top: 8px; line-height: 1.5; }

/* ============================================================
   OUTCOMES
   ============================================================ */
.outcome-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.outcome { padding: 26px 22px; border-radius: var(--r-lg); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.006)); }
.outcome .o-num { font-family: var(--font-editorial); font-style: italic; font-size: 52px; line-height: 1; color: var(--brand); }
.outcome .o-t { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-top: 10px; }
.outcome p { color: var(--text-2); font-size: 13.5px; margin-top: 10px; line-height: 1.5; }

/* ============================================================
   ACT 3 — RUNTIME GRAPH -> RISK -> PROFILE
   ============================================================ */
.act-graph { width: 100%; max-width: 1080px; }
.act-graph .graph-shell { background: transparent; border: none; box-shadow: none; }
.act-graph .graph-canvas { min-height: 0; height: 64vh; }
.act-graph .graph-legend { border-top: 1px solid var(--border); justify-content: center; }

/* risk gravity layer */
.gravity-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; width: 100%; max-width: 1040px; }
.gravity-orbit { position: relative; aspect-ratio: 1/1; max-width: 420px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.gravity-orbit .go-core {
  width: 46%; aspect-ratio: 1/1; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 16px;
  background: radial-gradient(circle at 42% 36%, var(--critical-12), transparent 62%), var(--elevated);
  border: 1px solid var(--critical-20); box-shadow: 0 0 70px -16px var(--critical-20);
}
.gravity-orbit .go-core .v { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--critical); }
.gravity-orbit .go-core .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; }
.grav-bit {
  position: absolute; transform: translate(-50%,-50%); font-family: var(--font-mono); font-size: 11px;
  padding: 5px 10px; border-radius: var(--r-pill); border: 1px solid var(--border-2); background: var(--surface);
  color: var(--text-2); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; box-shadow: var(--shadow-md);
  transition: transform 1s var(--ease-out), opacity .8s;
}
.grav-bit i { width: 6px; height: 6px; border-radius: 50%; }
.grav-bit.v i { background: var(--evidence); } .grav-bit.m i { background: var(--missing); } .grav-bit.c i { background: var(--critical); }

/* twin profile layer reuses .twin / .ui-panel from scenes.css */
.act-twin { width: 100%; max-width: 1080px; }
.act-twin .twin-body { max-height: 56vh; overflow: hidden; }

/* persistent graph that spans phases 0-1, dims for 2-3 */
.act-graph-persist {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  padding: calc(var(--nav-h) + 40px) 28px 90px;
  opacity: 0; transform: scale(.97); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s;
  pointer-events: none; filter: blur(4px);
}
.cine-act[data-act="runtime"][data-phase="0"] .act-graph-persist,
.cine-act[data-act="runtime"][data-phase="1"] .act-graph-persist { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.cine-act[data-act="runtime"][data-phase="2"] .act-graph-persist { opacity: .08; transform: scale(.84); filter: blur(5px); }
.cine-act[data-act="runtime"][data-phase="3"] .act-graph-persist { opacity: 0; transform: scale(.8); }

/* missing-context fog patch revealed during path playback */
.fog-bloom {
  position: absolute; width: 260px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,184,76,.22), transparent 70%); filter: blur(10px);
  opacity: 0; transition: opacity .8s; pointer-events: none; z-index: 1;
}
.cine-act[data-act="runtime"][data-phase="1"] .fog-bloom { opacity: 1; }

/* ============================================================
   SUPPORTING SECTIONS (premium, lighter motion)
   ============================================================ */

/* capabilities grid */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.cap-card { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008)); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.cap-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.cap-card .cap-ico { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; border: 1px solid var(--border-2); background: var(--verified-12); color: var(--verified); margin-bottom: 18px; }
.cap-card[data-tone="ai"] .cap-ico { background: var(--ai-12); border-color: var(--ai-20); color: var(--ai); }
.cap-card[data-tone="missing"] .cap-ico { background: var(--missing-12); border-color: var(--missing-20); color: var(--missing); }
.cap-card[data-tone="critical"] .cap-ico { background: var(--critical-12); border-color: var(--critical-20); color: var(--critical); }
.cap-card h4 { font-size: 19px; font-weight: 600; }
.cap-card p { color: var(--text-2); font-size: 14.5px; margin-top: 10px; line-height: 1.55; }
.cap-card .cap-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* who it's for */
.persona-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 48px; }
.persona { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.persona .p-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--verified); }
.persona h4 { font-size: 20px; margin-top: 10px; }
.persona p { color: var(--text-2); font-size: 14.5px; margin-top: 10px; line-height: 1.55; }
.persona .p-need { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); font-family: var(--font-mono); }

/* AI transparency strip */
.trust-strip { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.trust-points { display: grid; gap: 4px; }
.trust-point { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.trust-point .tp-i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--verified-20); background: var(--verified-12); color: var(--verified); }
.trust-point h5 { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.trust-point p { color: var(--text-2); font-size: 13.5px; margin-top: 3px; }

/* sample profile CTA band */
.cta-band {
  position: relative; border-radius: var(--r-xl); padding: 48px; overflow: hidden;
  border: 1px solid var(--border-2);
  background:
    radial-gradient(700px 300px at 80% -20%, var(--verified-12), transparent 60%),
    radial-gradient(600px 300px at 10% 120%, var(--ai-12), transparent 60%),
    linear-gradient(180deg, rgba(20,28,46,.7), rgba(11,16,28,.85));
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.cta-band .cb-mini { position: relative; }

/* ============================================================
   REDUCED MOTION / STATIC FALLBACK
   Acts collapse: pin un-sticks, every phase layer stacks.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .cine-act { height: auto !important; }
  .cine-pin { position: relative; height: auto; display: block; overflow: visible; }
  .cine-stage { height: auto; }
  .phase-layer {
    position: relative; inset: auto; opacity: 1 !important; visibility: visible !important;
    transform: none !important; filter: none !important; pointer-events: auto;
    padding: 56px 28px; min-height: 0;
  }
  .lens-sweep, .cine-depth, .cine-meter { display: none; }
  .phase-rail { display: none; }
  .cine-chapter { position: relative; top: auto; left: auto; margin-bottom: 12px; }
  .cine-caption { position: relative; left: auto; bottom: auto; max-width: none; margin-bottom: 24px; }
  .cine-caption .cap { position: relative !important; opacity: 1 !important; transform: none !important; margin-bottom: 8px; }
  .cine-hud { position: relative; inset: auto; }
  .raw-chip.drifting { animation: none; }
  .act-graph .graph-canvas { height: 56vh; }
  .act-twin .twin-body { max-height: none; overflow: visible; }
  .act-graph-persist { position: relative; inset: auto; opacity: 1; transform: none; filter: none; padding: 56px 28px; }
  .fog-bloom { display: none; }
}

/* body flag fallback when JS disables motion explicitly (reduced-motion OR mobile) */
body.cine-static .cine-act { height: auto !important; }
body.cine-static .cine-pin { position: relative; height: auto; display: block; overflow: visible; }
body.cine-static .cine-stage { display: flex; flex-direction: column; gap: 8px; }
body.cine-static .cine-hud { order: -1; position: relative; inset: auto; pointer-events: auto; padding: 8px 0 4px; }
body.cine-static .phase-layer { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; filter: none; pointer-events: auto; padding: 28px 0; display: block; min-height: 0; }
body.cine-static .phase-inner { display: block !important; }
body.cine-static .lens-sweep, body.cine-static .cine-depth, body.cine-static .cine-meter, body.cine-static .phase-rail, body.cine-static .fog-bloom { display: none; }
body.cine-static .cine-chapter { position: relative; top: auto; left: auto; margin-bottom: 18px; }
body.cine-static .cine-caption { position: relative; left: auto; bottom: auto; max-width: none; margin-bottom: 8px; }
body.cine-static .cine-caption .cap { position: relative; opacity: 1; transform: none; margin-bottom: 14px; display: block; }
body.cine-static .cine-caption .cap p { max-width: 60ch; }
body.cine-static .act-graph-persist { position: relative; inset: auto; opacity: 1; transform: none; filter: none; padding: 16px 0; pointer-events: auto; }
body.cine-static .act-twin .twin-body { max-height: none; overflow: visible; }
body.cine-static .act-graph .graph-canvas { height: 60vh; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .cap-grid, .persona-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip, .cta-band { grid-template-columns: 1fr; gap: 28px; }
  .gravity-wrap { grid-template-columns: 1fr; gap: 28px; }
  .evcards { grid-template-columns: 1fr; max-width: 420px; }
  .phase-rail { display: none; }
  .pipeline, .module-grid, .outcome-grid { grid-template-columns: repeat(2, 1fr); }
  .srow { grid-template-columns: 140px 1fr 46px; }
}
@media (max-width: 680px) {
  .cap-grid, .persona-grid { grid-template-columns: 1fr; }
  .pipeline, .module-grid, .outcome-grid { grid-template-columns: 1fr; }
  .cine-caption { right: 28px; }
  .cine-chapter { font-size: 10px; }
  .cta-band { padding: 28px; }
}

/* ---- Mobile (static acts): make heavy product UI fit & breathe ---- */
@media (max-width: 760px) {
  body.cine-static .phase-inner { padding-inline: 0; }
  /* graph: shrink so 13 nodes read on a small screen */
  .act-graph .graph-canvas { height: 64vw; min-height: 300px; }
  .g-node .gn-dot { width: 30px; height: 30px; border-radius: 9px; }
  .g-node .gn-dot svg { width: 15px; height: 15px; }
  .g-node .gn-label { font-size: 8.5px; padding: 1px 4px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
  .graph-readout { max-width: 200px; left: 8px; bottom: 8px; padding: 10px; }
  .graph-controls { top: 8px; right: 8px; }
  /* reactor + score: stack cleanly */
  body.cine-static .reactor-stage { max-width: 280px; }
  .srow { grid-template-columns: 120px 1fr 42px; gap: 10px; }
  .srow .sk { font-size: 11px; }
  /* evidence/vendor cards full width */
  .evcards { gap: 12px; }
  /* notebook tabs scroll horizontally rather than wrap into a tall stack */
  .nb-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nb-tab { white-space: nowrap; flex: none; }
  .nb-body { padding: 18px; }
  /* risk + twin */
  .riskq { padding: 20px; }
  .twin-head { padding: 16px; }
  .twin-body { padding: 16px; gap: 12px; }
  .twin-score { margin-left: 0; width: 100%; justify-content: space-between; }
  /* hero lens smaller, fewer overflow risks */
  .lens-stage { max-width: 360px; }
  .hero-strip { gap: 18px 28px; }
  /* section rhythm */
  .section { padding-block: 64px; }
}
