/* ============================================================
   VaultBench CXO Live Dashboard — styles
   Dark terminal aesthetic, cinematic transitions.
   ============================================================ */

:root {
  --bg: #080c12;
  --panel: #0f1621;
  --panel2: #141d2b;
  --line: #1e2a3a;
  --ink: #e2e8f2;
  --muted: #8895aa;
  --dim: #4e5b6e;
  --blue: #6fb3ff;
  --blue-soft: #101d33;
  --green: #5fd39a;
  --green-soft: #0f2619;
  --amber: #ffce6b;
  --amber-soft: #2e2410;
  --red: #ff8389;
  --red-soft: #2e1418;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --scene-dur: 0.6s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%; overflow: hidden;
  background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--sans);
  user-select: none;
}

/* ---- scanline overlay ---- */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
}

/* ---- main container ---- */
#app {
  height: 100%; display: flex; flex-direction: column;
}

/* ---- header bar ---- */
#header {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  min-height: 42px;
}
#header .brand {
  font-weight: 700; color: var(--ink); letter-spacing: 0.06em;
  font-size: 14px;
}
#header .brand span { color: var(--blue); }
#header .clock { color: var(--amber); font-size: 13px; }
#header .status { display: flex; gap: 14px; align-items: center; }
#header .status .live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); animation: pulse-live 1.2s ease infinite;
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--red); }
  50% { opacity: 0.4; box-shadow: 0 0 2px var(--red); }
}
@keyframes fade-out {
  0% { opacity: 1; } 70% { opacity: 0.6; } 100% { opacity: 0; }
}

/* ---- scene area ---- */
#scene {
  flex: 1; overflow: hidden; position: relative;
  display: flex; align-items: stretch;
}

/* ---- scene transitions ---- */
.scene-view {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease;
  padding: 2.5vh 3vw;
}
.scene-view.active {
  opacity: 1; visibility: visible;
  transition: opacity 0.4s ease;
}

/* ---- progress bar ---- */
#progress {
  flex: 0 0 auto; height: 3px; background: var(--line); position: relative;
}
#progress .fill {
  height: 100%; background: var(--blue);
  transition: width 0.3s linear;
  width: 0%;
}

/* ---- footer ---- */
#footer {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 24px; border-top: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--mono); font-size: 11px; color: var(--dim);
}
#footer .hint { color: var(--muted); }

/* ============================================================
   SCENE 1 — Live Bank Floor
   ============================================================ */

.scene1 { padding: 1.5vh 2vw; gap: 1.5vh; }

/* top stats row */
.stats-row {
  display: flex; gap: 2vw; justify-content: center; flex-shrink: 0;
}
.stat-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 24px; text-align: center;
  min-width: 150px;
}
.stat-card .val {
  font-family: var(--mono); font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; line-height: 1.1;
}
.stat-card .lbl {
  font-size: clamp(10px, 1vw, 12px); color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px;
}
.stat-card.alert .val { color: var(--amber); }
.stat-card.alert { border-color: var(--amber); animation: alert-pulse 1.5s ease infinite; }
@keyframes alert-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255,206,107,0); }
  50% { box-shadow: 0 0 18px rgba(255,206,107,0.15); }
}

/* main content row */
.scene1-main {
  display: flex; gap: 2vw; flex: 1; min-height: 0;
}

/* ticker panel */
.ticker-panel {
  flex: 2; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
}
.ticker-head {
  font-family: var(--mono); font-size: 11px; color: var(--dim);
  padding: 8px 14px; border-bottom: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; gap: 2px;
}
.ticker-head span { padding: 0 12px; border-right: 1px solid var(--line); }
.ticker-head span:last-child { border-right: none; }
.ticker-body {
  flex: 1; overflow: hidden; position: relative;
  font-family: var(--mono); font-size: 12px;
}
.ticker-row {
  display: flex; align-items: center; gap: 0;
  padding: 3px 14px; border-bottom: 1px solid rgba(30,42,58,0.5);
  animation: ticker-in 0.35s ease both;
  white-space: nowrap;
}
@keyframes ticker-in {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}
.ticker-row .t-ts { color: var(--dim); min-width: 120px; flex-shrink: 0; }
.ticker-row .t-acct { color: var(--muted); min-width: 60px; flex-shrink: 0; }
.ticker-row .t-type {
  min-width: 68px; flex-shrink: 0; font-weight: 650; font-size: 11px;
  padding: 1px 6px; border-radius: 3px; text-align: center;
}
.ticker-row .t-type.deposit { color: var(--green); background: var(--green-soft); }
.ticker-row .t-type.withdrawal { color: var(--red); background: var(--red-soft); }
.ticker-row .t-type.transfer { color: var(--blue); background: var(--blue-soft); }
.ticker-row .t-type.fee { color: var(--amber); background: var(--amber-soft); }
.ticker-row .t-type.interest { color: var(--muted); }
.ticker-row .t-amt { min-width: 80px; flex-shrink: 0; text-align: right; font-weight: 650; }
.ticker-row .t-amt.pos { color: var(--green); }
.ticker-row .t-amt.neg { color: var(--red); }
.ticker-row .t-ch { color: var(--dim); min-width: 56px; flex-shrink: 0; text-align: center; }
.ticker-row .t-cp { color: var(--muted); flex: 1; overflow: hidden; text-overflow: ellipsis; }

/* risk sidebar */
.risk-panel {
  flex: 1; display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.risk-panel h3 {
  font-family: var(--mono); font-size: 11px; color: var(--dim);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.risk-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 14px;
  font-family: var(--mono); font-size: 12px;
  transition: border-color 0.3s;
}
.risk-card.flagged { border-color: var(--amber); }
.risk-card .r-name { font-size: 13px; font-weight: 650; color: var(--ink); }
.risk-card .r-meta { color: var(--muted); margin-top: 3px; }
.risk-card .r-bar {
  height: 4px; border-radius: 2px; background: var(--line);
  margin-top: 6px; overflow: hidden;
}
.risk-card .r-bar .r-fill {
  height: 100%; border-radius: 2px; transition: width 0.8s ease;
}
.risk-card .r-bar .r-fill.low { background: var(--green); }
.risk-card .r-bar .r-fill.medium { background: var(--amber); }
.risk-card .r-bar .r-fill.high { background: var(--red); }

/* channel bars */
.channels-row {
  display: flex; gap: 1.5vw; flex-shrink: 0;
  padding-top: 1vh;
}
.channel-bar {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.channel-bar .ch-name {
  font-family: var(--mono); font-size: 10px; color: var(--dim);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.channel-bar .ch-track {
  width: 100%; height: 30px; background: var(--line); border-radius: 4px;
  position: relative; overflow: hidden;
}
.channel-bar .ch-fill {
  position: absolute; bottom: 0; width: 100%;
  border-radius: 4px; transition: height 0.5s ease;
}
.channel-bar .ch-count {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}

/* ============================================================
   SCENE 2 — Alert Inbox
   ============================================================ */

.scene2 { gap: 2vh; align-items: center; justify-content: center; }
.scene2 .scene-title {
  font-family: var(--mono); font-size: clamp(14px, 1.6vw, 20px);
  color: var(--amber); letter-spacing: 0.14em; text-transform: uppercase;
  text-align: center;
}
.scene2 .alerts-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2vh 2vw;
  width: 100%; max-width: 1100px;
}
.alert-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 20px;
  opacity: 0; transform: translateY(20px);
  transition: all 0.5s ease;
  border-left: 3px solid var(--amber);
}
.alert-card.in { opacity: 1; transform: none; }
.alert-card .a-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.alert-card .a-acct { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.alert-card .a-name { font-weight: 650; font-size: 15px; }
.alert-card .a-score {
  font-family: var(--mono); font-size: 22px; font-weight: 700;
  margin-left: auto;
}
.alert-card .a-score.structuring { color: var(--amber); }
.alert-card .a-score.takeover { color: var(--red); }
.alert-card .a-pill {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 12px; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.alert-card .a-pill.structuring { background: var(--amber-soft); color: var(--amber); }
.alert-card .a-pill.takeover { background: var(--red-soft); color: var(--red); }
.alert-card .a-detail {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  line-height: 1.7;
}
.alert-card .a-spark {
  height: 36px; margin-top: 8px; background: rgba(30,42,58,0.5);
  border-radius: 4px; position: relative; overflow: hidden;
}
.alert-card .a-spark svg { width: 100%; height: 100%; }

/* ============================================================
   SCENE 3 — Analyst Pipeline (cinematic redesign)
   ============================================================ */

.scene3 { gap: 1.5vh; }
.scene3 .scene-title {
  font-family: var(--mono); font-size: clamp(13px, 1.5vw, 18px);
  color: var(--blue); letter-spacing: 0.12em; text-transform: uppercase;
  flex-shrink: 0;
}
.scene3-body { display: flex; gap: 2.5vw; flex: 1; min-height: 0; }

/* pipeline sidebar */
.pipeline-viz {
  flex: 0 0 180px; display: flex; flex-direction: column; gap: 4px;
  justify-content: center;
}
.pipe-step {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--panel);
  font-family: var(--mono); font-size: 11px;
  transition: all 0.5s ease;
  opacity: 0.4;
}
.pipe-step .ps-icon { font-size: 13px; width: 18px; text-align: center; flex-shrink: 0; }
.pipe-step .ps-label { font-weight: 650; font-size: 12px; white-space: nowrap; }
.pipe-step.active { opacity: 1; border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 12px rgba(111,179,255,0.15); }
.pipe-step.done { opacity: 0.7; border-color: var(--green); }

/* main case area */
.case-main {
  flex: 1; display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.case-header {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); flex-shrink: 0;
}
.case-header .ch-id { font-size: 24px; font-weight: 700; color: var(--blue); }
.case-header .ch-acct { font-size: 13px; color: var(--muted); }
.case-header .ch-kind { font-size: 10px; color: var(--dim); text-transform: uppercase; }
.case-header .ch-name { font-weight: 650; }
.case-header .ch-progress { margin-left: auto; font-size: 11px; color: var(--dim); }

.case-body { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }

/* RAG chunk card — prominent with score badge */
.rag-chunk {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 14px;
  font-family: var(--mono); font-size: 11px;
  opacity: 0; transform: translateX(-16px);
  transition: all 0.5s ease;
  border-left: 3px solid var(--blue);
}
.rag-chunk.in { opacity: 1; transform: none; }
.rag-chunk .rc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rag-chunk .rc-doc { font-weight: 650; color: var(--ink); font-size: 12px; }
.rag-chunk .rc-section { color: var(--dim); font-size: 10px; }
.rag-chunk .rc-score {
  font-size: 14px; font-weight: 700; color: var(--blue);
  margin-left: auto; background: var(--blue-soft); padding: 2px 8px; border-radius: 4px;
}
.rag-chunk .rc-snippet { color: var(--muted); font-size: 10px; line-height: 1.5; }

/* retrieval "searching" animation */
.rag-searching {
  font-family: var(--mono); font-size: 12px; color: var(--blue);
  padding: 8px 0; display: flex; align-items: center; gap: 8px;
}
.rag-searching .rag-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  animation: rag-dot 0.8s ease infinite;
}
.rag-searching .rag-dot:nth-child(2) { animation-delay: 0.15s; }
.rag-searching .rag-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes rag-dot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* typewriter STR area */
.str-draft {
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px 18px;
  font-family: var(--mono); font-size: 12px; line-height: 1.6;
  min-height: 80px; position: relative;
  border-left: 3px solid var(--green);
}
.str-draft .str-cursor {
  display: inline-block; width: 7px; height: 14px;
  background: var(--green); vertical-align: middle; margin-left: 1px;
  animation: blink-cursor 0.7s step-end infinite;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}

/* freeze badge */
.freeze-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.freeze-badge.proposed { background: var(--red-soft); color: var(--red); animation: pulse-freeze 1.2s ease infinite; }
.freeze-badge.skipped { background: var(--amber-soft); color: var(--amber); }
@keyframes pulse-freeze {
  0%, 100% { box-shadow: 0 0 4px rgba(255,131,137,0.3); }
  50% { box-shadow: 0 0 14px rgba(255,131,137,0.6); }
}

/* ============================================================
   SCENE 4 — HITL Single-Case View (cinematic redesign)
   ============================================================ */

.scene4 { gap: 1.5vh; align-items: center; }
.scene4 .scene-title {
  font-family: var(--mono); font-size: clamp(13px, 1.5vw, 18px);
  color: var(--amber); letter-spacing: 0.12em; text-transform: uppercase;
}

.hitl-case-view {
  width: 100%; max-width: 850px;
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 14px; padding: 0; overflow: hidden;
  animation: card-in 0.4s ease both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.hcv-top {
  background: var(--panel); padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.hcv-top .hcv-case {
  font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--amber);
}
.hcv-top .hcv-acct { font-size: 14px; color: var(--muted); }
.hcv-top .hcv-motif {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; text-transform: uppercase;
  background: var(--amber-soft); color: var(--amber);
}
.hcv-top .hcv-progress { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--dim); }

.hcv-body { padding: 16px 20px; }

.hcv-section { margin-bottom: 12px; }
.hcv-section .hcv-label {
  font-family: var(--mono); font-size: 10px; color: var(--dim);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px;
}
.hcv-proposal {
  background: var(--panel); border-radius: 8px; padding: 10px 14px;
  font-family: var(--mono); font-size: 12px; margin-bottom: 6px;
}
.hcv-proposal .hcv-pact { font-weight: 650; color: var(--ink); }
.hcv-proposal .hcv-cites { color: var(--green); font-size: 11px; margin-top: 3px; }
.hcv-proposal .hcv-rationale { color: var(--muted); font-size: 11px; margin-top: 3px; font-style: italic; }

.hcv-txns {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  line-height: 1.8;
}
.hcv-txns .hcv-txn { display: flex; gap: 8px; }
.hcv-txns .hcv-txn .xts { color: var(--dim); min-width: 120px; }
.hcv-txns .hcv-txn .xtype { min-width: 68px; }
.hcv-txns .hcv-txn .xamt { min-width: 60px; text-align: right; }
.hcv-txns .hcv-txn .xch { color: var(--dim); }

.hcv-actions {
  display: flex; gap: 14px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.hcv-btn {
  flex: 1; padding: 12px; border-radius: 8px; font: inherit;
  font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent;
  text-align: center; transition: all 0.2s;
}
.hcv-btn.approve { background: var(--green); color: #08130c; }
.hcv-btn.reject { background: none; border-color: var(--red); color: var(--red); }
.hcv-btn.skip { background: none; border-color: var(--amber); color: var(--amber); }
.hcv-btn:disabled { opacity: 0.4; cursor: default; }

.hcv-verdict {
  margin-top: 12px; padding: 10px 14px; border-radius: 8px;
  font-family: var(--mono); font-size: 12px; opacity: 0;
  transition: opacity 0.4s ease;
}
.hcv-verdict.in { opacity: 1; }
.hcv-verdict.approved { background: var(--green-soft); border: 1px solid var(--green); color: var(--green); }
.hcv-verdict.rejected { background: var(--red-soft); border: 1px solid var(--red); color: var(--red); }
.hcv-verdict.skipped { background: var(--amber-soft); border: 1px solid var(--amber); color: var(--amber); }

.hcv-reason {
  margin-top: 6px; font-style: italic; color: var(--muted); font-size: 12px;
}

/* tally bar */
.hitl-tally-bar {
  display: flex; gap: 2vw; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--dim);
  margin-top: 1vh;
}
.hitl-tally-bar .tb-item { display: flex; align-items: center; gap: 6px; }
.hitl-tally-bar .tb-num { font-size: 20px; font-weight: 700; }
.hitl-tally-bar .tb-num.g { color: var(--green); }
.hitl-tally-bar .tb-num.r { color: var(--red); }
.hitl-tally-bar .tb-num.a { color: var(--amber); }

/* ============================================================
   SCENE 5 — Auditor Workstation (cinematic redesign)
   ============================================================ */

.scene5 { gap: 1.5vh; }
.scene5 .scene-title {
  font-family: var(--mono); font-size: clamp(13px, 1.5vw, 18px);
  color: var(--red); letter-spacing: 0.12em; text-transform: uppercase;
}

.audit-workstation {
  flex: 1; display: flex; gap: 2vw; min-height: 0;
}

.aw-sidebar {
  flex: 0 0 200px; display: flex; flex-direction: column; gap: 6px;
}
.aw-sidebar h3 {
  font-family: var(--mono); font-size: 10px; color: var(--dim);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px;
}
.aw-case-item {
  padding: 8px 12px; border-radius: 6px;
  font-family: var(--mono); font-size: 11px;
  border: 1px solid var(--line); background: var(--panel);
  display: flex; align-items: center; gap: 8px;
  transition: all 0.4s ease;
  opacity: 0.5;
}
.aw-case-item .aw-ci-check { font-size: 14px; }
.aw-case-item.reviewing { opacity: 1; border-color: var(--blue); background: var(--blue-soft); }
.aw-case-item.clean { opacity: 1; border-color: var(--green); }
.aw-case-item.deficient { opacity: 1; border-color: var(--red); background: var(--red-soft); }

.aw-main {
  flex: 1; display: flex; flex-direction: column; gap: 10px;
  background: var(--panel2); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 22px; overflow: hidden;
}
.aw-main .aw-case-header {
  font-family: var(--mono); display: flex; align-items: center; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.aw-main .aw-case-header .awch-id { font-size: 20px; font-weight: 700; }
.aw-main .aw-case-header .awch-acct { color: var(--muted); font-size: 13px; }

.aw-finding {
  background: var(--panel); border-radius: 8px; padding: 12px 16px;
  font-family: var(--mono); font-size: 12px;
  opacity: 0; transform: translateY(8px);
  transition: all 0.5s ease;
}
.aw-finding.in { opacity: 1; transform: none; }
.aw-finding.high { border-left: 3px solid var(--red); }
.aw-finding.medium { border-left: 3px solid var(--amber); }
.aw-finding.clean { border-left: 3px solid var(--green); }
.aw-finding .awf-sev {
  font-weight: 700; font-size: 10px; text-transform: uppercase;
}
.aw-finding .awf-sev.high { color: var(--red); }
.aw-finding .awf-sev.medium { color: var(--amber); }
.aw-finding .awf-code {
  font-weight: 650; margin-top: 2px;
}
.aw-finding .awf-msg {
  color: var(--muted); margin-top: 4px; line-height: 1.5; font-size: 11px;
}

.aw-summary {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; gap: 2vw; align-items: center;
  font-family: var(--mono); font-size: 13px;
}
.aw-summary .aws-stat { display: flex; align-items: center; gap: 6px; }
.aw-summary .aws-stat .aws-num { font-size: 22px; font-weight: 700; }
.aw-summary .aws-stat .aws-num.g { color: var(--green); }
.aw-summary .aws-stat .aws-num.r { color: var(--red); }
.aw-summary .aws-stat .aws-lbl { color: var(--muted); font-size: 11px; }

/* second-order callout */
.second-order-callout {
  text-align: center; padding: 14px 20px;
  background: var(--amber-soft); border: 1px solid var(--amber);
  border-radius: 10px; font-family: var(--mono); font-size: 12px;
  color: var(--amber); line-height: 1.6;
  opacity: 0; transition: opacity 0.5s ease;
}
.second-order-callout.in { opacity: 1; }
.second-order-callout b { color: var(--ink); }

/* ============================================================
   SCENE 6 — Results + Model Comparison
   ============================================================ */

.scene6 { gap: 1.5vh; align-items: center; justify-content: flex-start; padding-top: 2vh; }
.scene6 .scene-title {
  font-family: var(--mono); font-size: clamp(12px, 1.3vw, 16px);
  color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase;
}

/* pipeline diagram */
.results-pipeline {
  display: flex; gap: 8px; width: 100%; max-width: 1050px;
  flex-wrap: wrap; justify-content: center;
}
.rp-step {
  flex: 1 1 110px; min-width: 100px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--panel); padding: 10px 10px 8px;
  text-align: center; font-family: var(--mono);
}
.rp-step .rp-icon { font-size: 20px; }
.rp-step .rp-name { font-size: 11px; font-weight: 650; margin-top: 4px; color: var(--ink); }
.rp-step .rp-score { font-size: 13px; font-weight: 700; color: var(--green); margin-top: 3px; }
.rp-step .rp-score.a { color: var(--amber); }
.rp-step .rp-score.r { color: var(--red); }
.rp-step.highlight { border-color: var(--blue); background: var(--blue-soft); }

/* metrics grid */
.results-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1vw;
  width: 100%; max-width: 900px;
}
.result-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 14px; text-align: center;
}
.result-card .rc-val {
  font-family: var(--mono); font-size: clamp(22px, 3vw, 32px);
  font-weight: 700; line-height: 1.1;
}
.result-card .rc-val.g { color: var(--green); }
.result-card .rc-val.b { color: var(--blue); }
.result-card .rc-lbl {
  font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; line-height: 1.3;
}

/* model comparison duel */
.model-duel {
  display: flex; gap: 2vw; width: 100%; max-width: 900px;
}
.model-col {
  flex: 1; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); padding: 14px 18px;
}
.model-col h3 { font-size: 14px; margin: 0 0 4px; }
.model-col .mc-model { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-bottom: 10px; }
.model-col ul { list-style: none; margin: 0; padding: 0; }
.model-col li {
  padding: 6px 0; border-top: 1px solid var(--line);
  font-size: 12px; display: flex; justify-content: space-between; gap: 10px;
}
.model-col li span:last-child { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.model-col.nano li span:last-child { color: var(--red); }
.model-col.super li span:last-child { color: var(--green); }

.results-note {
  font-family: var(--mono); font-size: 11px; color: var(--dim);
  text-align: center; max-width: 650px; line-height: 1.5;
}
.results-note b { color: var(--muted); }

/* typewriter utility */
.typewriter { display: inline; }

/* ============================================================
   PAUSE OVERLAY
   ============================================================ */

#pause-overlay {
  position: fixed; top: 50px; left: 50%; transform: translateX(-50%);
  background: var(--panel2); border: 1px solid var(--amber);
  border-radius: 8px; padding: 8px 20px;
  z-index: 100; font-family: var(--mono); font-size: 14px;
  color: var(--amber); letter-spacing: 0.06em;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
#pause-overlay.on { opacity: 1; }

/* scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
