:root {
  --ink: #07111f;
  --ink-2: #0c1a2c;
  --panel: rgba(14, 29, 48, 0.9);
  --panel-2: rgba(21, 39, 61, 0.84);
  --line: rgba(183, 205, 226, 0.16);
  --line-strong: rgba(183, 205, 226, 0.28);
  --text: #f4f8fb;
  --muted: #a7b8c9;
  --teal: #4ee5c1;
  --teal-2: #20b894;
  --blue: #75aaff;
  --amber: #f4bf67;
  --red: #ff7b72;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; background: var(--ink); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { overflow: hidden; }
button { font: inherit; }
button:focus-visible { outline: 3px solid #bfefff; outline-offset: 3px; }

.demo { position: relative; width: 100vw; height: 100vh; min-height: 650px; overflow: hidden; background: radial-gradient(circle at 80% 20%, #132c43 0, var(--ink) 42%, #050b13 100%); }
.topbar { position: fixed; z-index: 50; inset: 0 0 auto; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(5, 12, 22, .72); backdrop-filter: blur(16px); }
.brand { min-width: 0; display: flex; align-items: center; gap: 12px; }
.brand-logo-frame { width: 43px; height: 43px; display: block; overflow: hidden; border-radius: 50%; border: 1px solid rgba(225, 185, 86, .7); background: #171717; box-shadow: 0 0 20px rgba(225, 185, 86, .16); }
.brand-logo-frame img { width: 128%; height: 128%; max-width: none; object-fit: cover; transform: translate(-10.9%, -10.9%); }
.brand-name { font-weight: 820; letter-spacing: .14em; font-size: 1.04rem; }
.brand-rule { height: 22px; width: 1px; background: var(--line-strong); }
.brand-context { display: inline-flex; align-items: baseline; gap: .42em; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.brand-context strong { color: var(--gold); font-weight: 780; }
.top-actions { display: flex; gap: 8px; }
.icon-button { min-height: 38px; border: 1px solid var(--line); border-radius: 99px; padding: 0 14px; background: rgba(255,255,255,.035); color: #d9e5ee; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: .2s ease; }
.icon-button:hover { background: rgba(255,255,255,.08); border-color: var(--line-strong); }

.progress-shell { position: fixed; z-index: 49; top: 72px; left: 0; right: 0; padding: 11px 34px 9px; background: rgba(5, 12, 22, .58); backdrop-filter: blur(12px); }
.progress-labels { display: flex; justify-content: space-between; max-width: 720px; margin: 0 auto 7px; color: #7f93a7; font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.progress-track { max-width: 720px; height: 3px; margin: auto; background: rgba(255,255,255,.09); border-radius: 99px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--blue)); transition: width .7s cubic-bezier(.22,.8,.2,1); }

.scene { position: absolute; inset: 103px 0 0; opacity: 0; visibility: hidden; transform: translateY(12px) scale(.995); transition: opacity .7s ease, transform .7s ease, visibility 0s linear .7s; }
.scene.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); transition-delay: 0s; }
.scene-cover { inset: 0; z-index: 45; display: grid; place-items: center; background: radial-gradient(circle at 68% 45%, rgba(33, 118, 130, .22), transparent 26%), linear-gradient(135deg, #050b13 5%, #0b1d31 62%, #07111f); }
.cover-glow { position: absolute; inset: 0; background-image: linear-gradient(rgba(117,170,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(117,170,255,.05) 1px, transparent 1px); background-size: 60px 60px; mask-image: linear-gradient(90deg, black, transparent 75%); }
.cover-content { z-index: 2; width: min(720px, 88vw); margin-right: 28vw; }
.eyebrow { margin: 0 0 14px; color: var(--teal); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cover-content h1 { margin: 0; font-size: clamp(3.1rem, 6vw, 6.4rem); line-height: .95; letter-spacing: -.06em; font-weight: 760; }
.cover-content h1 span { color: #9fb6c9; font-weight: 520; }
.cover-deck { max-width: 600px; margin: 28px 0 32px; color: #afc0cf; font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.55; }
.primary-button, .secondary-button { border-radius: 10px; min-height: 48px; padding: 0 22px; cursor: pointer; font-weight: 780; border: 1px solid transparent; transition: .2s ease; }
.primary-button { background: var(--teal); color: #04130f; box-shadow: 0 10px 28px rgba(78,229,193,.18); }
.primary-button:hover { transform: translateY(-2px); background: #6af1d2; }
.primary-button.large { min-height: 58px; padding: 0 28px; font-size: 1rem; }
.secondary-button { color: #d9e7f1; background: transparent; border-color: var(--line-strong); }
.secondary-button:hover { background: rgba(255,255,255,.06); }
.start-note { margin: 14px 0 0; color: #72879b; font-size: .78rem; }
.cover-orbit { position: absolute; width: min(38vw, 520px); aspect-ratio: 1; right: 7vw; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(78,229,193,.24); border-radius: 50%; animation: rotate 18s linear infinite; }
.orbit::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); position: absolute; top: 8%; left: 25%; box-shadow: 0 0 22px var(--teal); }
.orbit-one { inset: 7%; }
.orbit-two { inset: 22%; animation-direction: reverse; animation-duration: 12s; border-color: rgba(117,170,255,.26); }
.orbit-two::after { background: var(--blue); box-shadow: 0 0 22px var(--blue); top: 78%; left: 72%; }
.orbit-core { width: 158px; height: 158px; border-radius: 50%; display: block; overflow: hidden; background: #171717; border: 2px solid rgba(225,185,86,.7); box-shadow: 0 0 70px rgba(225,185,86,.2), 0 0 0 12px rgba(225,185,86,.035); }
.orbit-core img { width: 128%; height: 128%; max-width: none; object-fit: cover; transform: translate(-10.9%, -10.9%); }
@keyframes rotate { to { transform: rotate(360deg); } }

.cinematic { background: #02070d; overflow: hidden; }
.cinematic-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.scene.active .slow-push { animation: slowPush 10s ease-out forwards; }
.scene.active .slow-pan { animation: slowPan 11s ease-out forwards; }
@keyframes slowPush { from { transform: scale(1.01); } to { transform: scale(1.07); } }
@keyframes slowPan { from { transform: scale(1.06) translateX(-1%); } to { transform: scale(1.02) translateX(1%); } }
.cinematic-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,7,13,.74) 0, rgba(2,7,13,.1) 48%, rgba(2,7,13,.18)), linear-gradient(0deg, rgba(2,7,13,.82), transparent 52%); }
.scene-kicker { position: absolute; top: 34px; left: 42px; display: flex; align-items: center; gap: 10px; font-size: .72rem; text-transform: uppercase; font-weight: 800; letter-spacing: .15em; }
.scene-kicker span { color: var(--teal); }
.dialogue-card { position: absolute; left: 42px; bottom: 38px; width: min(720px, 70vw); padding: 24px 28px; background: rgba(4, 12, 21, .74); border: 1px solid rgba(206,224,238,.23); border-left: 3px solid var(--teal); border-radius: 4px 16px 16px 4px; backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.speaker { margin: 0 0 8px; color: var(--teal); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 800; }
.dialogue-card blockquote { margin: 0; color: white; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.3vw, 2.35rem); line-height: 1.25; }

.interface-scene { overflow: auto; background: radial-gradient(circle at 82% 5%, rgba(42,92,122,.2), transparent 24%), linear-gradient(150deg, #081321, #0b1a2b 58%, #07111f); }
.interface-wrap { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 38px 0 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.section-heading.compact { margin-bottom: 22px; }
.section-heading h2, .decision-header h2, .outcome-hero h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 3.5rem); letter-spacing: -.045em; line-height: 1.04; }
.live-seal, .compiler-state, .compile-complete, .paused-badge { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; color: #c9faed; border: 1px solid rgba(78,229,193,.28); background: rgba(78,229,193,.08); padding: 11px 15px; border-radius: 99px; font-size: .78rem; font-weight: 760; }
.live-seal img { width: 25px; height: 25px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1px rgba(221,180,83,.48), 0 0 16px rgba(221,180,83,.16); }
.seal-pulse, .compiler-state span { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 0 rgba(78,229,193,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(78,229,193,0); } 100% { box-shadow: 0 0 0 0 rgba(78,229,193,0); } }
.package-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(320px,.75fr); gap: 20px; }
.package-card, .authority-card, .source-document, .meaning-panel, .control-card, .action-card, .verification-card, .recommendation, .evidence-card { background: linear-gradient(150deg, rgba(22,42,65,.91), rgba(11,27,45,.94)); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 54px rgba(0,0,0,.19); }
.package-card { padding: 26px; }
.package-topline { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.package-topline strong { color: var(--teal); font-size: 1rem; }
.package-card h3 { margin: 9px 0 22px; font-size: 1.55rem; }
.document-stack { display: grid; gap: 9px; }
.doc-row { min-height: 65px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.doc-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(117,170,255,.09); color: var(--blue); font-weight: 850; }
.doc-row strong, .doc-row small { display: block; }
.doc-row strong { font-size: .88rem; }
.doc-row small { margin-top: 3px; color: var(--muted); font-size: .71rem; }
.doc-row b { color: var(--teal); font-size: .67rem; letter-spacing: .07em; }
.authority-card { padding: 26px; }
.card-label { margin: 0 0 13px; color: #8fa5b8; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.authority-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; }
.authority-step > span { width: 31px; height: 31px; display: grid; place-items: center; color: var(--teal); border: 1px solid rgba(78,229,193,.3); border-radius: 50%; font-size: .73rem; font-weight: 800; }
.authority-step strong, .authority-step small { display: block; }
.authority-step strong { font-size: .84rem; }
.authority-step small { color: var(--muted); margin-top: 3px; font-size: .74rem; }
.authority-line { width: 1px; height: 20px; background: var(--line-strong); margin: 5px 0 5px 15px; }
.package-status { margin-top: 23px; padding: 14px; display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; background: rgba(78,229,193,.07); border: 1px solid rgba(78,229,193,.2); border-radius: 11px; }
.package-status > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #072018; font-weight: 900; }
.package-status strong, .package-status small { display: block; }
.package-status strong { font-size: .8rem; }
.package-status small { color: #91b9ad; margin-top: 3px; font-size: .68rem; }

.narration-caption { position: fixed; z-index: 20; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(920px, calc(100% - 180px)); padding: 12px 18px; text-align: center; border: 1px solid rgba(206,224,238,.15); border-radius: 10px; background: rgba(3,9,17,.86); color: #e9f1f6; font-size: .88rem; line-height: 1.4; backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
[data-scene="5"] .narration-caption { bottom: 0; }
#outcomeCaption { position: static; left: auto; bottom: auto; transform: none; width: min(920px, 100%); margin: 22px auto 0; }

.translation-wrap { padding-top: 28px; }
.translation-grid { display: grid; grid-template-columns: minmax(0,1fr) 80px minmax(0,1.05fr); gap: 16px; align-items: center; }
.source-document, .meaning-panel { padding: 26px; min-height: 405px; }
.paper-meta { display: flex; justify-content: space-between; color: #91a7b9; font-size: .71rem; text-transform: uppercase; letter-spacing: .1em; }
.paper-meta b { color: var(--teal); }
.source-document h3 { margin: 36px 0 18px; max-width: 420px; font-size: 1.28rem; line-height: 1.3; }
.source-document > p { margin: 0; font-family: Georgia, "Times New Roman", serif; color: #e8edf1; font-size: clamp(1.15rem,1.55vw,1.42rem); line-height: 1.68; }
mark { color: #fff; background: linear-gradient(transparent 55%, rgba(78,229,193,.25) 55%); }
.source-proof { margin-top: 27px; padding-top: 15px; border-top: 1px solid var(--line); color: #7790a4; font-size: .72rem; }
.translation-arrow { text-align: center; color: var(--teal); }
.translation-arrow span { display: block; font-size: 2.7rem; animation: nudge 1.8s infinite; }
.translation-arrow small { color: #7790a4; text-transform: uppercase; font-size: .62rem; letter-spacing: .12em; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.meaning-panel { display: flex; flex-direction: column; }
.meaning-row { opacity: 0; transform: translateX(-10px); display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); transition: .5s ease; }
.scene.active .meaning-row { opacity: 1; transform: translateX(0); }
.scene.active .delay-1 { transition-delay: .5s; }.scene.active .delay-2 { transition-delay: 1s; }.scene.active .delay-3 { transition-delay: 1.5s; }.scene.active .delay-4 { transition-delay: 2s; }.scene.active .delay-5 { transition-delay: 2.5s; }.scene.active .delay-6 { transition-delay: 3s; }
.meaning-row span { color: #8ea4b7; font-size: .76rem; }
.meaning-row strong { text-align: right; font-size: .8rem; }

.control-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.control-card { position: relative; min-height: 292px; padding: 24px; overflow: hidden; }
.control-card::after { content: ""; position: absolute; inset: auto -25% -45% 20%; height: 180px; border-radius: 50%; background: rgba(117,170,255,.04); filter: blur(10px); }
.control-icon { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 10px; font-weight: 900; color: var(--blue); background: rgba(117,170,255,.1); border: 1px solid rgba(117,170,255,.18); }
.control-card.invariant .control-icon { color: var(--amber); background: rgba(244,191,103,.1); border-color: rgba(244,191,103,.22); }
.control-card.variant .control-icon { color: var(--teal); background: rgba(78,229,193,.1); border-color: rgba(78,229,193,.22); }
.control-card h3 { margin: 0 0 14px; font-size: 1.12rem; line-height: 1.3; }
.control-card p:not(.card-label), .control-card li { color: #a9bac9; font-size: .82rem; line-height: 1.55; }
.control-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.control-card li::before { content: "✓"; color: var(--blue); margin-right: 8px; }
.locked, .decision-ready { position: absolute; z-index: 2; left: 24px; bottom: 23px; display: inline-flex; padding: 8px 10px; border-radius: 8px; font-size: .69rem; font-weight: 760; }
.locked { color: #ffd58f; background: rgba(244,191,103,.09); border: 1px solid rgba(244,191,103,.2); }
.decision-ready { color: #bff8ea; background: rgba(78,229,193,.08); border: 1px solid rgba(78,229,193,.2); }
.executable-rule { margin-top: 18px; display: flex; align-items: center; gap: 17px; padding: 18px 22px; background: rgba(78,229,193,.055); border: 1px solid rgba(78,229,193,.18); border-radius: 13px; }
.rule-tag { flex: 0 0 auto; padding: 7px 9px; border-radius: 6px; background: var(--teal); color: #04130f; font-weight: 900; font-size: .62rem; letter-spacing: .1em; }
.executable-rule p { margin: 0; color: #c1d1dc; font-size: .88rem; line-height: 1.5; }
.executable-rule b { color: white; }

.video-scene { overflow: hidden; background: radial-gradient(circle at 68% 48%, rgba(45,110,142,.22), transparent 30%), linear-gradient(145deg, #040a12, #081626 58%, #050c16); }
.video-stage { width: min(1180px, calc(100% - 64px)); height: 100%; margin: 0 auto; display: grid; grid-template-columns: minmax(0,.78fr) minmax(320px,.62fr); align-items: center; gap: clamp(36px, 7vw, 100px); }
.video-copy h2 { max-width: 660px; margin: 0; font-size: clamp(2.6rem, 5vw, 5.6rem); line-height: .98; letter-spacing: -.055em; }
.video-copy > p:not(.eyebrow) { max-width: 600px; margin: 24px 0; color: #a9bdcc; font-size: clamp(1rem, 1.45vw, 1.22rem); line-height: 1.65; }
.video-status { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; color: #bff8ea; border: 1px solid rgba(78,229,193,.24); border-radius: 99px; background: rgba(78,229,193,.07); font-size: .72rem; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.video-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(78,229,193,.5); animation: pulse 1.8s infinite; }
.video-shell { position: relative; justify-self: center; height: min(70vh, 720px); aspect-ratio: 704 / 1280; overflow: hidden; border: 1px solid rgba(189,216,236,.2); border-radius: 24px; background: #000; box-shadow: 0 34px 90px rgba(0,0,0,.52), 0 0 0 7px rgba(255,255,255,.025), 0 0 80px rgba(66,167,216,.12); }
.video-shell::after { content: ""; pointer-events: none; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.video-shell video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.video-play-button { position: absolute; z-index: 2; inset: 50% auto auto 50%; transform: translate(-50%, -50%); min-width: 230px; min-height: 54px; padding: 0 20px; color: #04130f; background: var(--teal); border: 0; border-radius: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 16px 42px rgba(0,0,0,.45); }
.video-play-button[hidden] { display: none; }
.video-play-button:hover { background: #6af1d2; }

.decision-wrap { padding-top: 27px; }
.decision-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.eyebrow.alert { color: var(--amber); }
.subhead { margin: 10px 0 0; color: var(--muted); font-size: .94rem; }
.paused-badge { color: #ffe0a6; border-color: rgba(244,191,103,.3); background: rgba(244,191,103,.08); }
.decision-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 17px; }
.action-card, .verification-card { padding: 22px; }
.action-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.42; }
.action-route { margin: 20px 0 14px; display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; gap: 6px; }
.action-route > div { padding: 13px; text-align: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); }
.action-route span { width: 34px; height: 34px; margin: 0 auto 7px; display: grid; place-items: center; border-radius: 9px; background: rgba(117,170,255,.1); color: var(--blue); font-weight: 900; }
.action-route small { display: block; color: #b7c6d2; font-size: .7rem; }
.action-route b { text-align: center; color: var(--teal); }
.scope-note { padding: 12px; color: #8ea4b6; background: rgba(0,0,0,.14); border-radius: 9px; font-size: .74rem; line-height: 1.45; }
.scope-note strong { color: #dfe9ef; }
.verification-head { display: flex; justify-content: space-between; align-items: center; }
.verification-head > span { color: #86a0b5; font-size: .7rem; }
.check-row { display: grid; grid-template-columns: 27px 1fr auto; gap: 10px; align-items: center; min-height: 48px; border-top: 1px solid var(--line); }
.check-row > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; font-size: .68rem; font-weight: 900; }
.check-row strong, .check-row small { display: block; }
.check-row strong { font-size: .76rem; }
.check-row small { margin-top: 2px; color: #7f95a8; font-size: .65rem; }
.check-row > b { font-size: .61rem; letter-spacing: .08em; }
.check-row.pass > span { color: #06261e; background: var(--teal); }.check-row.pass > b { color: var(--teal); }
.check-row.conditional > span { color: #2b1c04; background: var(--amber); }.check-row.conditional > b { color: var(--amber); }
.check-row.authority > span { color: #06182b; background: var(--blue); }.check-row.authority > b { color: var(--blue); }
.recommendation { margin-top: 14px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 25px; border-color: rgba(244,191,103,.24); background: rgba(244,191,103,.055); }
.recommendation .card-label { margin-bottom: 3px; color: #b59a69; }
.recommendation strong { color: #ffe0a6; font-size: .82rem; }
.recommendation > p { max-width: 620px; margin: 0; color: #9eb0bf; font-size: .75rem; line-height: 1.45; }
.decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 15px; }
.decision-button { min-height: 66px; display: flex; align-items: center; justify-content: center; gap: 13px; border-radius: 13px; cursor: pointer; transition: .22s ease; }
.decision-button:hover { transform: translateY(-3px); }
.decision-button > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 1.2rem; font-weight: 900; }
.decision-button strong, .decision-button small { display: block; text-align: left; }
.decision-button strong { font-size: .92rem; letter-spacing: .08em; }
.decision-button small { margin-top: 2px; font-size: .68rem; opacity: .75; }
.decision-button.block { color: #ffd2ce; border: 1px solid rgba(255,123,114,.4); background: rgba(255,123,114,.08); }
.decision-button.block > span { background: rgba(255,123,114,.16); }
.decision-button.block:hover { background: rgba(255,123,114,.15); }
.decision-button.approve { color: #d3fff4; border: 1px solid rgba(78,229,193,.42); background: rgba(78,229,193,.09); }
.decision-button.approve > span { color: #06261e; background: var(--teal); }
.decision-button.approve:hover { background: rgba(78,229,193,.17); }

.outcome-wrap { padding-top: 27px; }
.outcome-hero { display: grid; grid-template-columns: 72px 1fr auto; gap: 22px; align-items: center; padding: 24px; border: 1px solid rgba(78,229,193,.24); background: rgba(78,229,193,.06); border-radius: 17px; }
.outcome-hero.blocked { border-color: rgba(255,123,114,.26); background: rgba(255,123,114,.055); }
.outcome-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; color: #042019; background: var(--teal); font-size: 2rem; font-weight: 900; }
.blocked .outcome-icon { color: #2a0907; background: var(--red); }
.outcome-hero h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.outcome-hero p:not(.eyebrow) { margin: 8px 0 0; color: #a9bbc9; font-size: .83rem; }
.evidence-seal { width: 114px; display: grid; place-items: center; align-content: center; color: #f1d27f; }
.evidence-seal img { width: 108px; height: 108px; display: block; object-fit: cover; border: 1px solid rgba(221,180,83,.5); border-radius: 18px; box-shadow: 0 14px 30px rgba(0,0,0,.28), 0 0 20px rgba(221,180,83,.12); }
.evidence-seal strong { min-width: 68px; margin-top: -13px; padding: 5px 10px; position: relative; z-index: 1; text-align: center; border: 1px solid rgba(221,180,83,.56); border-radius: 99px; color: #f5dc94; background: #101010; box-shadow: 0 8px 18px rgba(0,0,0,.34); font-size: .66rem; letter-spacing: .12em; }
.evidence-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.evidence-card { padding: 17px; min-height: 120px; }
.evidence-card strong, .evidence-card small { display: block; }
.evidence-card strong { font-size: .9rem; }.evidence-card small { margin-top: 8px; color: #859caf; font-size: .69rem; line-height: 1.4; }
.final-message { margin: 25px 0 18px; text-align: center; }
.final-message p { margin: 0; color: #8da3b6; font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; }
.final-message h3 { margin: 6px 0 0; font-size: clamp(1.75rem,3vw,3rem); letter-spacing: -.035em; }
.final-message span { display: block; margin-top: 9px; color: #a8bbc9; font-size: .86rem; }
.final-actions { display: flex; justify-content: center; gap: 10px; }
.interest-button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; color: #04130f; background: var(--teal); box-shadow: 0 10px 28px rgba(78,229,193,.18); font-weight: 780; text-decoration: none; transition: .2s ease; }
.interest-button:hover { color: #04130f; background: #6af1d2; transform: translateY(-2px); }
.interest-button:focus-visible { outline: 3px solid #bfefff; outline-offset: 3px; }
.skip-button { position: fixed; z-index: 60; right: 27px; bottom: 21px; min-height: 37px; padding: 0 12px; cursor: pointer; color: #8ca1b4; background: rgba(5,12,22,.72); border: 1px solid var(--line); border-radius: 99px; font-size: .72rem; backdrop-filter: blur(8px); }
.skip-button:hover { color: white; border-color: var(--line-strong); }
.scene-cover.active ~ .skip-button, body[data-scene="7"] .skip-button, body[data-scene="8"] .skip-button { display: none; }

@media (max-width: 900px) {
  body { overflow: auto; }
  .demo { min-height: 760px; }
  .topbar { padding: 0 18px; }
  .brand { gap: 8px; }
  .brand-context { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; max-width: 210px; white-space: normal; font-size: .72rem; line-height: 1.2; }
  .icon-button span:not(#soundIcon) { display: none; }
  .progress-shell { padding-inline: 18px; }
  .cover-content { margin-right: 0; }
  .cover-orbit { opacity: .24; right: -15vw; width: 70vw; }
  .dialogue-card { left: 20px; bottom: 22px; width: calc(100% - 40px); }
  .dialogue-card blockquote { font-size: 1.38rem; }
  .scene-kicker { left: 20px; }
  .interface-wrap { width: calc(100% - 30px); padding-top: 26px; }
  .package-grid, .translation-grid, .control-summary, .decision-layout { grid-template-columns: 1fr; }
  .video-stage { width: calc(100% - 30px); grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); gap: 18px; padding: 24px 0 18px; align-items: start; overflow: auto; }
  .video-copy h2 { font-size: 2.5rem; }
  .video-copy > p:not(.eyebrow) { margin: 14px 0; font-size: .9rem; }
  .video-shell { height: min(52vh, 560px); }
  .translation-arrow { transform: rotate(90deg); height: 46px; }
  .source-document, .meaning-panel { min-height: auto; }
  .control-card { min-height: 245px; }
  .section-heading, .decision-header { align-items: flex-start; }
  .live-seal, .compiler-state, .compile-complete, .paused-badge { font-size: 0; padding: 12px; }
  .live-seal::after { content: "Verified"; font-size: .68rem; }
  .compiler-state::after { content: "Active"; font-size: .68rem; }
  .compile-complete::after { content: "Compiled"; font-size: .68rem; }
  .paused-badge::after { content: "Paused"; font-size: .68rem; }
  .recommendation { align-items: flex-start; flex-direction: column; gap: 8px; }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .outcome-hero { grid-template-columns: 55px minmax(0,1fr) 82px; }
  .evidence-seal { width: 82px; }
  .evidence-seal img { width: 78px; height: 78px; border-radius: 14px; }
  .evidence-seal strong { min-width: 58px; padding: 4px 7px; font-size: .56rem; }
  .narration-caption { width: calc(100% - 130px); left: 16px; transform: none; text-align: left; }
}

@media (max-width: 620px) {
  .topbar { padding-inline: 12px; }
  .brand { gap: 6px; }
  .brand-logo-frame { width: 36px; height: 36px; }
  .brand-name { font-size: .9rem; }
  .brand-context { max-width: 132px; font-size: .65rem; }
  .top-actions { gap: 4px; }
  .icon-button { min-height: 34px; padding-inline: 9px; }
}

@media (max-width: 580px) {
  .demo { min-height: 820px; }
  .progress-labels { font-size: .53rem; }
  .cover-content h1 { font-size: 3.2rem; }
  .section-heading h2, .decision-header h2 { font-size: 2rem; }
  .decision-actions, .evidence-grid { grid-template-columns: 1fr; }
  .outcome-hero { grid-template-columns: 1fr; }
  .evidence-seal { width: 90px; justify-self: start; }
  .evidence-seal img { width: 86px; height: 86px; }
  .outcome-icon { width: 52px; height: 52px; }
  .final-actions { flex-direction: column; }
  .interest-button { width: 100%; }
  .skip-button { right: 13px; }
  .video-copy h2 { font-size: 2.1rem; }
  .video-status { font-size: .6rem; }
  .video-shell { height: min(49vh, 500px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
