:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #040b14;
  --panel: #0b1828;
  --panel-2: #0e2033;
  --line: rgba(171, 204, 225, 0.15);
  --line-strong: rgba(171, 204, 225, 0.28);
  --text: #f4f8fb;
  --muted: #9eb2c2;
  --cyan: #45d6d0;
  --cyan-soft: rgba(69, 214, 208, 0.12);
  --green: #70e2aa;
  --green-soft: rgba(112, 226, 170, 0.12);
  --amber: #ffbd59;
  --amber-soft: rgba(255, 189, 89, 0.13);
  --red: #ff7b7b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

@font-face {
  font-family: "EP Avenir";
  src: url("assets/fonts/avenir-light.woff2") format("woff2");
  font-display: swap;
  font-weight: 300;
}

@font-face {
  font-family: "EP Playfair";
  src: url("assets/fonts/playfair-display-regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

* { box-sizing: border-box; }

html { background: var(--bg-deep); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 6%, rgba(48, 130, 160, 0.16), transparent 34rem),
    linear-gradient(160deg, #07111f 0%, #071421 48%, #050b14 100%);
  font-family: "EP Avenir", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { color: inherit; }

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 13, 23, .78);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand, .header-actions, .mode-switch, .event-bar, .record-header, .navigation-bar, .substrate-line { display: flex; align-items: center; }

.brand { gap: 12px; }
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(69,214,208,.42);
  background: #fff;
  object-fit: contain;
  padding: 2px;
}
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 18px; letter-spacing: .08em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .12em; }

.header-actions { gap: 14px; }
.simulation-label { color: #7890a3; font-size: 11px; letter-spacing: .13em; white-space: nowrap; }
.mode-switch { padding: 4px; border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 12px; }
.mode-button { border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; color: var(--muted); cursor: pointer; font-size: 13px; }
.mode-button.active { color: var(--text); background: var(--panel-2); box-shadow: 0 5px 16px rgba(0,0,0,.18); }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; border-radius: 11px; cursor: pointer; }
.icon-button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.shell { width: min(1500px, calc(100% - 40px)); margin: 0 auto; padding: 50px 0 28px; position: relative; }
.demo-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin: 0 0 30px; }
.eyebrow, .card-kicker { margin: 0; color: var(--cyan); font-size: 12px; font-weight: 750; letter-spacing: .15em; }
.demo-heading h1 { margin: 10px 0 0; font-family: "EP Playfair", Georgia, serif; font-size: clamp(38px, 5vw, 70px); line-height: .98; letter-spacing: -.035em; font-weight: 400; }
.demo-heading h1 span { color: var(--amber); }
.heading-context { max-width: 480px; color: var(--muted); font-size: 18px; line-height: 1.55; margin: 0 0 5px; }

.control-room { display: grid; grid-template-columns: 250px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: rgba(8,20,34,.86); box-shadow: var(--shadow); min-height: 690px; }
.stage-rail { background: rgba(5,14,25,.86); border-right: 1px solid var(--line); padding: 26px 18px 20px; display: flex; flex-direction: column; }
.rail-header { padding: 0 10px 22px; display: grid; gap: 7px; border-bottom: 1px solid var(--line); }
.rail-header span { color: #71889b; font-size: 10px; letter-spacing: .16em; }
.rail-header strong { font-size: 14px; font-weight: 600; }
.stage-list { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 4px; }
.stage-list button { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-left: 2px solid transparent; background: transparent; text-align: left; padding: 11px 10px; border-radius: 0 10px 10px 0; cursor: pointer; opacity: .46; transition: .25s ease; }
.stage-list button:hover { opacity: .85; background: rgba(255,255,255,.025); }
.stage-list li.active button { opacity: 1; border-left-color: var(--cyan); background: var(--cyan-soft); }
.stage-list li.complete button { opacity: .72; }
.stage-list li.complete .stage-number { color: var(--green); border-color: rgba(112,226,170,.4); }
.stage-number { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--muted); font-size: 11px; }
.stage-list button > span:last-child { display: grid; gap: 3px; }
.stage-list strong { font-size: 14px; font-weight: 650; }
.stage-list small { color: var(--muted); font-size: 11px; }
.rail-principle { margin-top: auto; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.rail-principle p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.rail-principle strong { color: var(--text); font-weight: 600; }
.pulse-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 6px rgba(69,214,208,.1); }

.workspace { min-width: 0; display: flex; flex-direction: column; position: relative; }
.voice-start-overlay { position: absolute; inset: 0; z-index: 15; display: grid; place-items: center; padding: 28px; background: rgba(4,11,20,.84); backdrop-filter: blur(13px); }
.voice-start-overlay[hidden] { display: none; }
.voice-start-card { width: min(470px, 100%); padding: 36px; text-align: center; border: 1px solid rgba(69,214,208,.34); border-radius: 22px; background: linear-gradient(145deg, rgba(15,36,55,.98), rgba(6,17,29,.98)); box-shadow: 0 30px 90px rgba(0,0,0,.48); }
.voice-mark { display: block; width: 16px; height: 16px; margin: 0 auto 18px; color: transparent; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 10px rgba(69,214,208,.09), 0 0 30px rgba(69,214,208,.52); }
.voice-start-card h2 { margin: 15px 0 10px; font-family: "EP Playfair", Georgia, serif; font-size: 38px; font-weight: 400; }
.voice-start-card > p:not(.card-kicker) { margin: 0 auto 22px; color: var(--muted); line-height: 1.55; }
.voice-start-card button { min-height: 46px; padding: 0 18px; color: #041417; border: 0; border-radius: 10px; background: var(--cyan); cursor: pointer; font-weight: 720; }
.voice-start-card button:hover { background: #61e5df; }
.voice-start-card button span { margin-left: 7px; }
.voice-start-card small { display: block; margin-top: 13px; color: #7890a3; }
.event-bar { min-height: 78px; justify-content: space-between; gap: 24px; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.event-bar > div:first-child { display: grid; gap: 5px; }
.event-label { color: var(--muted); font-size: 11px; letter-spacing: .11em; }
.event-bar strong { font-size: 18px; }
.event-status { color: var(--muted); font-size: 11px; letter-spacing: .11em; display: flex; align-items: center; gap: 8px; }
.event-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(112,226,170,.5); }
.event-status.warning { color: var(--amber); }
.event-status.warning span { background: var(--amber); box-shadow: 0 0 12px rgba(255,189,89,.55); }
.event-status.contained { color: var(--cyan); }
.event-status.contained span { background: var(--cyan); }
.event-status.critical { color: var(--red); }
.event-status.critical span { background: var(--red); box-shadow: 0 0 12px rgba(255,123,123,.62); }

.step-container { padding: clamp(22px, 3vw, 40px); flex: 1; display: grid; }
.step-panel { display: none; min-height: 430px; animation: enter .36s ease both; }
.step-panel.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.brief-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 20px; }
.clock-card, .scenario-card, .check-card, .blindspot-card, .authority-card, .verification-table, .agent-card, .publish-card, .decision-intro, .choice-card, .evidence-record, .close-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(17,38,59,.8), rgba(8,21,36,.72)); border-radius: var(--radius-lg); }
.clock-card { padding: clamp(24px, 4vw, 46px); min-height: 335px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.clock-card:after { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -90px; border: 1px solid rgba(69,214,208,.14); border-radius: 50%; box-shadow: 0 0 0 45px rgba(69,214,208,.025), 0 0 0 90px rgba(69,214,208,.015); }
.clock-value { margin-top: 25px; font-variant-numeric: tabular-nums; font-size: clamp(64px, 8vw, 112px); font-weight: 680; line-height: .84; letter-spacing: -.065em; }
.clock-value span { color: var(--muted); font-size: .46em; letter-spacing: -.02em; }
.clock-zone { margin-top: 15px; color: var(--amber); font-size: 13px; font-weight: 700; letter-spacing: .13em; }
.release-window { display: flex; justify-content: space-between; gap: 30px; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.release-window div { display: grid; gap: 7px; }
.release-window span { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.release-window strong { font-size: 18px; }
.release-window .countdown { text-align: right; }
.release-window .countdown strong { color: var(--amber); font-variant-numeric: tabular-nums; }
.scenario-card { padding: 36px; display: flex; flex-direction: column; }
.scenario-card h2, .authority-card h2, .gate-copy h2, .decision-intro h2, .close-card h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -.035em; margin: 24px 0 16px; }
.scenario-card p, .authority-card p, .gate-copy p, .decision-intro p, .close-card p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.mandate-list { margin: auto 0 0; padding: 0; display: grid; gap: 0; }
.mandate-list div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mandate-list div:last-child { border-bottom: 0; }
.mandate-list dt { color: var(--muted); font-size: 13px; }
.mandate-list dd { margin: 0; font-size: 13px; font-weight: 650; }
.mandate-list div:last-child dd { color: var(--amber); }
.plain-language { margin-top: 20px; border-radius: 14px; padding: 16px 20px; background: var(--cyan-soft); border: 1px solid rgba(69,214,208,.2); display: flex; align-items: center; gap: 18px; }
.plain-language > span { flex: 0 0 auto; color: var(--cyan); font-size: 10px; letter-spacing: .14em; }
.plain-language p { margin: 0; font-size: 16px; }
.plain-language em { color: var(--cyan); font-style: normal; font-weight: 700; }
.plain-language.amber { background: var(--amber-soft); border-color: rgba(255,189,89,.25); }
.plain-language.amber > span, .plain-language.amber em { color: var(--amber); }
.plain-language.danger { background: rgba(255,123,123,.09); border-color: rgba(255,123,123,.25); }
.plain-language.danger > span, .plain-language.danger em { color: var(--red); }

.counterfactual-badge { width: fit-content; display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--red); font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.counterfactual-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(255,123,123,.08), 0 0 18px rgba(255,123,123,.5); }
.opening-scene { position: relative; min-height: 270px; margin: 0 0 24px; overflow: hidden; border: 1px solid rgba(255,189,89,.24); border-radius: var(--radius-lg); background: #081421; box-shadow: 0 18px 48px rgba(0,0,0,.24); }
.opening-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,11,20,.14), rgba(4,11,20,.02) 48%, rgba(4,11,20,.08)), linear-gradient(0deg, rgba(4,11,20,.96), rgba(4,11,20,.05) 72%); pointer-events: none; }
.opening-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.opening-scene figcaption { position: absolute; z-index: 1; left: clamp(22px, 3vw, 38px); right: clamp(22px, 3vw, 38px); bottom: 24px; display: grid; gap: 5px; }
.opening-scene figcaption span { color: var(--amber); font-size: 10px; font-weight: 750; letter-spacing: .15em; }
.opening-scene figcaption strong { max-width: 790px; font-family: "EP Playfair", Georgia, serif; font-size: clamp(24px, 2.5vw, 36px); font-weight: 400; line-height: 1.08; }
.opening-scene figcaption p { margin: 0; color: #c7d2dc; font-size: 14px; }
.impact-layout { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(390px, .97fr); gap: 20px; }
.impact-hero, .market-fallout { border: 1px solid rgba(255,123,123,.22); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(55,20,29,.52), rgba(8,21,36,.82)); }
.impact-hero { padding: clamp(26px, 3.5vw, 42px); display: flex; flex-direction: column; }
.incident-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.incident-header span { color: #d49fa4; font-size: 10px; letter-spacing: .14em; }
.incident-header strong { padding: 5px 8px; color: #240708; background: var(--red); border-radius: 6px; font-size: 9px; letter-spacing: .12em; }
.incident-time { margin: 30px 0 4px; color: var(--red); font-size: clamp(54px, 6vw, 86px); font-weight: 680; line-height: .9; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.incident-time small { font-size: 13px; letter-spacing: .1em; }
.impact-hero h2 { margin: 17px 0 10px; font-family: "EP Playfair", Georgia, serif; font-size: clamp(31px, 3.8vw, 50px); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; }
.impact-hero > p:not(.incident-time) { margin: 0; color: #cbb6ba; line-height: 1.58; }
.exposure-window { margin-top: auto; padding-top: 23px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.exposure-window div { padding: 15px; display: grid; gap: 4px; border: 1px solid rgba(255,123,123,.2); border-radius: 12px; background: rgba(255,123,123,.055); }
.exposure-window span { color: #c69ba0; font-size: 8px; letter-spacing: .12em; }
.exposure-window strong { color: var(--red); font-size: 21px; }
.exposure-window small { color: var(--muted); font-size: 10px; }
.market-fallout { padding: 26px; }
.ticker-shock { padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; align-items: end; border: 1px solid rgba(255,123,123,.24); border-radius: 14px; background: rgba(255,123,123,.075); }
.ticker-shock span { color: #d2a9ad; font-size: 10px; letter-spacing: .13em; }
.ticker-shock strong { grid-row: span 2; color: var(--red); font-size: 41px; line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ticker-shock small { color: var(--muted); font-size: 10px; }
.incident-chain { list-style: none; margin: 18px 0 0; padding: 0; }
.incident-chain li { display: grid; grid-template-columns: 68px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.incident-chain li:last-child { border-bottom: 0; }
.incident-chain time { color: var(--red); font: 650 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.incident-chain li > span { display: grid; gap: 4px; }
.incident-chain strong { font-size: 13px; }
.incident-chain small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.rewind-ribbon { margin: -8px 0 18px; padding: 10px 14px; display: flex; align-items: center; gap: 11px; color: var(--cyan); border-left: 2px solid var(--cyan); background: var(--cyan-soft); font-size: 10px; letter-spacing: .12em; }
.rewind-ribbon > span { font-size: 19px; }
.rewind-ribbon small { margin-left: auto; color: var(--muted); letter-spacing: .05em; }

.action-stage { min-height: 330px; display: grid; grid-template-columns: 1fr 90px 1fr; align-items: stretch; gap: 16px; }
.agent-card, .publish-card { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.agent-card { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: center; }
.agent-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; color: var(--cyan); background: var(--cyan-soft); border: 1px solid rgba(69,214,208,.26); font-weight: 780; letter-spacing: .05em; }
.agent-card h2, .publish-card h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.03em; margin: 14px 0 10px; }
.agent-card p { color: var(--muted); margin: 0; line-height: 1.6; }
.approval-message { margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(4,12,21,.48); }
.approval-message > div { display: flex; justify-content: space-between; gap: 15px; }
.approval-message > div strong { font-size: 12px; }
.approval-message > div span, .approval-message small { color: var(--muted); font-size: 10px; }
.approval-message small { display: block; margin-top: 5px; letter-spacing: .08em; }
.approval-message blockquote { margin: 12px 0 0; padding-left: 12px; border-left: 2px solid var(--amber); color: #dbe6ed; font-size: 13px; line-height: 1.5; }
.action-arrow { display: grid; place-items: center; }
.action-arrow span { width: 64px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--amber)); position: relative; }
.action-arrow span:after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-right: 1px solid var(--amber); border-top: 1px solid var(--amber); transform: rotate(45deg); }
.channel-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.channel-row span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12px; }
.provenance-strip { margin: 8px 0 14px; padding: 12px; display: grid; gap: 5px; border: 1px solid rgba(69,214,208,.2); border-radius: 10px; background: var(--cyan-soft); }
.provenance-strip span { color: var(--cyan); font-size: 9px; letter-spacing: .12em; }
.provenance-strip strong { font-size: 11px; font-weight: 550; line-height: 1.45; }
.timestamp { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--amber); font-size: 13px; font-variant-numeric: tabular-nums; }
.insight-card { margin-top: 20px; padding: 18px 20px; display: flex; align-items: baseline; gap: 14px; border-left: 2px solid var(--amber); background: rgba(255,189,89,.06); }
.insight-card p { margin: 0; color: var(--muted); }

.comparison-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 20px; min-height: 430px; }
.check-card { padding: 28px; }
.card-title { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.card-title span { color: var(--cyan); font-size: 11px; letter-spacing: .12em; }
.card-title strong { color: var(--green); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 13px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.check-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; }
.check-list li div { display: grid; gap: 4px; }
.check-list small { color: var(--muted); font-size: 12px; }
.check-list em { font-style: normal; font-size: 10px; color: var(--green); letter-spacing: .12em; }
.security-result { margin-top: 18px; padding: 16px 18px; background: var(--green-soft); border: 1px solid rgba(112,226,170,.22); border-radius: 12px; display: flex; justify-content: space-between; }
.security-result span { color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.security-result strong { color: var(--green); letter-spacing: .1em; }
.blindspot-card { padding: 32px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, rgba(70,45,14,.45), rgba(29,24,19,.7)); border-color: rgba(255,189,89,.25); }
.blindspot-label { color: var(--amber); font-size: 11px; letter-spacing: .15em; }
.blindspot-time { margin: 28px 0 24px; font-size: clamp(54px, 6vw, 82px); font-weight: 690; letter-spacing: -.06em; line-height: .9; }
.blindspot-time small { color: var(--amber); font-size: 14px; letter-spacing: .08em; }
.blindspot-card p { margin: 0; color: #c5b9a5; line-height: 1.65; }
.blindspot-card strong { color: var(--text); }

.verify-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 20px; }
.authority-card { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.authority-equation { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; }
.token-card { margin-top: 6px; padding: 13px; display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.token-card span { color: var(--cyan); font-size: 9px; letter-spacing: .1em; }
.token-card strong { font-size: 13px; }
.token-card small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.authority-equation span { padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; letter-spacing: .1em; }
.authority-equation b { color: #587086; font-weight: 400; }
.authority-equation .time-factor { color: var(--amber); border-color: rgba(255,189,89,.45); background: var(--amber-soft); }
.verification-table { overflow: hidden; }
.verification-table > div { min-height: 68px; display: grid; grid-template-columns: .65fr 1.2fr auto; gap: 18px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.verification-table > div:last-child { border-bottom: 0; }
.verification-table span { color: var(--muted); font-size: 13px; }
.verification-table strong { font-size: 14px; }
.verification-table em { font-style: normal; font-size: 10px; letter-spacing: .1em; color: var(--amber); }
.verification-table .pass { color: var(--green); }
.verification-table .mismatch { color: var(--red); }
.verification-table .failed-row { background: var(--amber-soft); box-shadow: inset 3px 0 0 var(--amber); }

.gate-layout { display: grid; grid-template-columns: minmax(240px, .7fr) 1.3fr; gap: 40px; min-height: 285px; align-items: center; }
.gate-orbit { display: grid; place-items: center; }
.orbit-ring { width: 210px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(69,214,208,.42); box-shadow: 0 0 0 18px rgba(69,214,208,.04), 0 0 0 42px rgba(69,214,208,.025), inset 0 0 45px rgba(69,214,208,.08); position: relative; }
.orbit-ring:before, .orbit-ring:after { content: ""; position: absolute; background: var(--amber); box-shadow: 0 0 20px rgba(255,189,89,.6); }
.orbit-ring:before { width: 3px; height: 55px; top: -28px; }
.orbit-ring:after { width: 55px; height: 3px; top: -2px; }
.orbit-ring span { font-size: 38px; font-weight: 760; letter-spacing: .12em; color: var(--cyan); }
.gate-copy h2 { font-size: clamp(44px, 6vw, 72px); margin-top: 18px; }
.gate-copy h2 span { color: var(--amber); }
.gate-copy p { max-width: 650px; }
.decision-code { display: inline-flex; gap: 14px; align-items: center; margin-top: 15px; padding: 12px 14px; border-radius: 10px; background: var(--amber-soft); border: 1px solid rgba(255,189,89,.24); }
.decision-code span { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.decision-code strong { color: var(--amber); font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.channel-locks { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr) minmax(150px, .7fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.channel-locks > div { padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; border-right: 1px solid var(--line); }
.channel-locks > div:last-child { border-right: 0; }
.lock-icon { grid-row: span 2; color: var(--cyan); }
.channel-locks strong { font-size: 13px; }
.channel-locks small { color: var(--muted); font-size: 11px; }
.channel-locks .containment-state { display: flex; align-items: center; gap: 10px; justify-content: center; background: var(--cyan-soft); }
.containment-state strong { color: var(--cyan); font-size: 30px; }
.containment-state span { color: var(--muted); font-size: 11px; max-width: 70px; }
.no-gap-line { margin-top: 14px; padding: 13px 16px; display: flex; align-items: center; gap: 16px; border-left: 2px solid var(--cyan); background: rgba(69,214,208,.045); }
.no-gap-line span { flex: 0 0 auto; color: var(--cyan); font-size: 9px; letter-spacing: .12em; }
.no-gap-line p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.decision-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 20px; }
.decision-intro { padding: 34px; }
.decision-facts { margin-top: 25px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding-top: 20px; gap: 15px; }
.decision-facts div { display: grid; gap: 6px; }
.decision-facts span { color: var(--muted); font-size: 11px; }
.decision-facts strong { font-size: 13px; }
.choice-stack { display: grid; gap: 14px; }
.choice-card { padding: 24px; text-align: left; display: grid; gap: 8px; cursor: pointer; position: relative; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.choice-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.choice-card.recommended { border-color: rgba(69,214,208,.28); background: linear-gradient(145deg, rgba(69,214,208,.11), rgba(8,21,36,.8)); }
.choice-card strong { font-size: 20px; }
.choice-card small { color: var(--muted); font-size: 13px; }
.choice-badge { width: fit-content; margin-bottom: 6px; padding: 5px 7px; border-radius: 6px; background: var(--cyan-soft); color: var(--cyan); font-size: 9px; letter-spacing: .12em; }
.choice-badge.neutral { color: var(--amber); background: var(--amber-soft); }
.choice-action { position: absolute; right: 22px; bottom: 22px; color: var(--cyan); font-size: 10px; letter-spacing: .1em; }
.override-form { margin-top: 16px; padding: 18px; display: grid; grid-template-columns: .8fr 1.2fr auto; align-items: end; gap: 14px; border: 1px solid rgba(255,189,89,.25); border-radius: 14px; background: var(--amber-soft); }
.override-form[hidden] { display: none; }
.override-form > div { display: grid; gap: 7px; }
.override-form label { color: var(--muted); font-size: 11px; }
.override-form input, .override-form select { width: 100%; min-height: 42px; padding: 9px 10px; color: var(--text); background: #091522; border: 1px solid var(--line-strong); border-radius: 9px; }
.override-form small { color: var(--muted); font-size: 10px; }
.override-form button { min-height: 42px; border: 0; border-radius: 9px; padding: 0 16px; background: var(--amber); color: #1e1405; font-weight: 720; cursor: pointer; }

.outcome-banner { display: grid; grid-template-columns: 58px 1fr; gap: 20px; align-items: center; padding: 24px; border: 1px solid rgba(112,226,170,.24); background: var(--green-soft); border-radius: 18px; margin-bottom: 20px; }
.outcome-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: rgba(112,226,170,.12); border: 1px solid rgba(112,226,170,.28); font-size: 24px; font-weight: 800; }
.outcome-banner span { color: var(--green); font-size: 10px; letter-spacing: .14em; }
.outcome-banner h2 { margin: 6px 0; font-size: 23px; }
.outcome-banner p { margin: 0; color: var(--muted); line-height: 1.5; }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.evidence-record, .close-card { padding: 26px; }
.record-header { justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.record-header > div { display: grid; gap: 7px; }
.record-header strong { font: 650 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.sealed { padding: 7px 9px; color: var(--cyan); border: 1px solid rgba(69,214,208,.3); border-radius: 8px; font-size: 9px; letter-spacing: .13em; }
.evidence-record dl { margin: 0; }
.evidence-record dl div { display: grid; grid-template-columns: .8fr 1.2fr; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.evidence-record dl div:last-child { border-bottom: 0; }
.evidence-record dt { color: var(--muted); font-size: 12px; }
.evidence-record dd { margin: 0; font-size: 12px; text-align: right; }
.close-card h2 { font-size: clamp(25px, 2.6vw, 36px); }
.close-card h2 span { color: var(--cyan); }
.substrate-line { justify-content: space-between; gap: 8px; padding: 13px; margin: 20px 0; border: 1px solid var(--line); border-radius: 10px; font-size: 9px; letter-spacing: .09em; color: var(--muted); }
.substrate-line strong { color: var(--cyan); }
.substrate-line b { color: #526b7d; }
.demo-resolution { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.demo-resolution > span { color: var(--amber); font-size: 9px; font-weight: 750; letter-spacing: .14em; }
.demo-resolution > strong { display: block; margin-top: 9px; font-size: 17px; line-height: 1.35; }
.demo-resolution > p { margin: 8px 0 17px; font-size: 13px; line-height: 1.5; }
.resolution-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.interest-cta, .close-card button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 720; cursor: pointer; text-decoration: none; }
.interest-cta { gap: 10px; padding: 12px 16px; color: #041418; background: var(--cyan); box-shadow: 0 10px 28px rgba(69,214,208,.16); }
.interest-cta:hover, .interest-cta:focus-visible { color: #041418; background: #61e5df; }
.interest-cta:focus-visible, .close-card button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.close-card button { border: 1px solid var(--line-strong); padding: 11px 15px; color: var(--muted); background: transparent; }
.close-card button:hover { color: var(--text); background: rgba(255,255,255,.04); }

.presenter-note { margin: 0 clamp(22px, 3vw, 40px) 18px; padding: 13px 17px; display: flex; gap: 16px; align-items: center; border: 1px dashed rgba(69,214,208,.26); border-radius: 12px; background: rgba(69,214,208,.045); }
.presenter-note span { flex: 0 0 auto; color: var(--cyan); font-size: 9px; letter-spacing: .13em; }
.presenter-note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
body.guided-mode .presenter-note { display: none; }
.guide-bar { display: none; margin: 0 clamp(22px, 3vw, 40px) 18px; padding: 15px 17px; gap: 20px; align-items: center; justify-content: space-between; border: 1px solid rgba(69,214,208,.25); border-radius: 13px; background: linear-gradient(120deg, rgba(69,214,208,.09), rgba(8,21,36,.8)); }
body.guided-mode .guide-bar { display: flex; }
.caption-block { min-width: 0; display: grid; gap: 5px; }
.caption-block > span { color: var(--cyan); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.caption-block p { margin: 0; max-width: 760px; color: #c7d5df; font-size: 12px; line-height: 1.52; }
.narration-controls { flex: 0 0 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.narration-controls button { min-height: 34px; padding: 0 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); cursor: pointer; font-size: 10px; }
.narration-controls button:first-child { color: #041417; border-color: var(--cyan); background: var(--cyan); font-weight: 700; }
.narration-controls button:hover:not(:disabled) { border-color: var(--cyan); color: var(--text); }
.narration-controls button:first-child:hover:not(:disabled) { color: #041417; background: #61e5df; }
.narration-controls button:disabled { opacity: .42; cursor: not-allowed; }
.navigation-bar { min-height: 70px; justify-content: space-between; gap: 18px; padding: 12px 28px; border-top: 1px solid var(--line); background: rgba(4,12,21,.52); }
.primary-button, .secondary-button { min-height: 42px; padding: 0 17px; border-radius: 10px; cursor: pointer; font-weight: 650; border: 1px solid var(--line); }
.primary-button { min-width: 215px; border-color: var(--cyan); background: var(--cyan); color: #041417; }
.primary-button:hover { background: #61e5df; }
.primary-button span { margin-left: 7px; }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
.secondary-button { background: transparent; color: var(--muted); }
.secondary-button:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); }
.secondary-button:disabled { opacity: .3; cursor: not-allowed; }
.progress-dots { display: flex; gap: 7px; }
.progress-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #33495b; cursor: pointer; transition: .2s ease; }
.progress-dots button.active { width: 23px; border-radius: 6px; background: var(--cyan); }

.substrate-footer { margin: 20px 0 0; padding: 21px 26px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border: 1px solid var(--line); border-radius: 18px; background: rgba(8,20,34,.55); }
.substrate-footer p { margin: 0; color: var(--muted); line-height: 1.5; }
.substrate-footer strong { color: var(--text); }
.substrate-footer > span { flex: 0 0 auto; color: var(--cyan); font-size: 10px; letter-spacing: .15em; }
.footer { width: min(1500px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 30px; display: flex; justify-content: space-between; gap: 20px; color: #61798c; font-size: 10px; letter-spacing: .1em; }

@media (max-width: 1080px) {
  .simulation-label { display: none; }
  .control-room { grid-template-columns: 200px minmax(0, 1fr); }
  .stage-list small { display: none; }
  .brief-grid, .impact-layout, .comparison-grid, .verify-layout, .decision-layout, .evidence-grid { grid-template-columns: 1fr; }
  .clock-card { min-height: 290px; }
  .scenario-card { min-height: 300px; }
  .action-stage { grid-template-columns: 1fr; }
  .action-arrow { height: 40px; transform: rotate(90deg); }
  .channel-locks { grid-template-columns: repeat(2, 1fr); }
  .channel-locks > div:nth-child(2) { border-right: 0; }
  .channel-locks > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .override-form { grid-template-columns: 1fr; }
  .guide-bar { align-items: flex-start; flex-direction: column; }
  .narration-controls { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .topbar { position: relative; padding: 12px 16px; }
  .brand-copy small { display: none; }
  .mode-button { padding: 8px 9px; }
  .shell, .footer { width: min(100% - 24px, 1500px); }
  .shell { padding-top: 28px; }
  .demo-heading { display: grid; gap: 18px; }
  .demo-heading h1 { font-size: 39px; }
  .heading-context { font-size: 16px; }
  .control-room { grid-template-columns: 1fr; border-radius: 20px; }
  .stage-rail { border-right: 0; border-bottom: 1px solid var(--line); padding: 15px; }
  .rail-header, .rail-principle { display: none; }
  .stage-list { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; gap: 5px; }
  .stage-list button { justify-content: center; padding: 5px; border-left: 0; border-bottom: 2px solid transparent; border-radius: 8px; }
  .stage-list li.active button { border-bottom-color: var(--cyan); }
  .stage-list button > span:last-child { display: none; }
  .stage-number { width: 34px; height: 34px; flex-basis: 34px; }
  .event-bar { padding: 15px 18px; }
  .event-bar strong { font-size: 15px; }
  .event-status { font-size: 9px; }
  .step-container { padding: 18px; }
  .step-panel { min-height: 0; }
  .opening-scene { min-height: 235px; }
  .opening-scene figcaption { left: 18px; right: 18px; bottom: 18px; }
  .opening-scene figcaption strong { font-size: 23px; }
  .opening-scene figcaption p { font-size: 12px; }
  .clock-card, .scenario-card, .agent-card, .publish-card, .check-card, .blindspot-card, .authority-card, .decision-intro, .evidence-record, .close-card { padding: 23px; }
  .clock-value { font-size: 64px; }
  .release-window { gap: 14px; }
  .release-window strong { font-size: 14px; }
  .plain-language, .insight-card { align-items: flex-start; flex-direction: column; }
  .impact-hero, .market-fallout { padding: 22px; }
  .incident-time { font-size: 52px; }
  .exposure-window { grid-template-columns: 1fr; }
  .ticker-shock { grid-template-columns: 1fr; }
  .ticker-shock strong { grid-row: auto; margin-top: 8px; }
  .incident-chain li { grid-template-columns: 58px 1fr; }
  .rewind-ribbon { align-items: flex-start; flex-wrap: wrap; }
  .rewind-ribbon small { width: 100%; margin-left: 31px; }
  .no-gap-line { align-items: flex-start; flex-direction: column; gap: 7px; }
  .agent-card { grid-template-columns: 1fr; }
  .verification-table > div { grid-template-columns: 1fr auto; gap: 5px 12px; }
  .verification-table > div span { grid-column: 1 / -1; }
  .gate-layout { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .orbit-ring { width: 150px; }
  .decision-code { text-align: left; }
  .channel-locks { grid-template-columns: 1fr; }
  .channel-locks > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .channel-locks > div:last-child { border-bottom: 0; }
  .decision-facts { grid-template-columns: 1fr; }
  .choice-action { position: static; margin-top: 8px; }
  .outcome-banner { grid-template-columns: 1fr; }
  .evidence-record dl div { grid-template-columns: 1fr; gap: 5px; }
  .evidence-record dd { text-align: left; }
  .substrate-line { align-items: flex-start; flex-direction: column; }
  .resolution-actions { align-items: stretch; flex-direction: column; }
  .interest-cta, .close-card button { width: 100%; }
  .presenter-note { margin: 0 18px 15px; align-items: flex-start; flex-direction: column; gap: 6px; }
  .guide-bar { margin: 0 18px 15px; }
  .narration-controls { width: 100%; }
  .narration-controls button:first-child { width: 100%; }
  .navigation-bar { padding: 12px 18px; }
  .progress-dots { display: none; }
  .primary-button { min-width: 0; flex: 1; }
  .substrate-footer, .footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

:focus-visible { outline: 3px solid rgba(69,214,208,.55); outline-offset: 3px; }
