:root {
  --ink: #12251f;
  --muted: #61706a;
  --paper: #f3f1e9;
  --card: #fbfaf5;
  --line: #d7d9cf;
  --green: #0c7957;
  --green-dark: #07523d;
  --mint: #a7e7c4;
  --red: #bd3b2e;
  --red-soft: #f4d3cc;
  --amber: #bd7a13;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(18, 37, 31, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 37, 31, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: "Manrope", sans-serif;
}

button, textarea { font: inherit; }
.shell { width: min(1440px, 100%); margin: auto; padding: 0 36px; }
header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--paper); background: var(--ink); font: 500 12px "DM Mono"; }
.header-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 12px "DM Mono"; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(12,121,87,.12); }
.divider { width: 1px; height: 15px; background: var(--line); margin: 0 4px; }

.hero { min-height: 320px; display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 80px; padding: 70px 0 48px; }
.eyebrow, .kicker { margin: 0 0 16px; color: var(--green); font: 500 11px "DM Mono"; letter-spacing: .13em; }
h1 { margin: 0; max-width: 780px; font-size: clamp(48px, 6.4vw, 92px); line-height: .96; letter-spacing: -.065em; font-weight: 600; }
h1 span { color: var(--green); font-style: italic; font-weight: 500; }
.hero-copy { margin: 0 0 8px; max-width: 460px; color: var(--muted); font-size: 17px; line-height: 1.7; }

.panel { background: rgba(251,250,245,.94); border: 1px solid var(--ink); box-shadow: 5px 5px 0 rgba(18,37,31,.1); }
.workspace { display: grid; grid-template-columns: minmax(360px, .85fr) minmax(480px, 1.15fr); gap: 18px; }
.policy-panel, .result-panel, .evidence-panel, .action-panel { padding: 28px; }
.panel-heading, .decision-header, .section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
h2 { margin: 0; font-size: 24px; line-height: 1.18; letter-spacing: -.035em; }
.source-badge { padding: 7px 9px; border: 1px solid var(--green); color: var(--green); font: 500 9px "DM Mono"; letter-spacing: .08em; white-space: nowrap; }
.source-badge.amber { color: var(--amber); border-color: var(--amber); }
.document-meta { display: flex; justify-content: space-between; padding: 18px 0 10px; color: var(--muted); font: 10px "DM Mono"; text-transform: uppercase; }
textarea { width: 100%; height: 235px; resize: none; padding: 18px; color: var(--ink); background: #eeeee6; border: 1px solid var(--line); outline: none; font: 12px/1.65 "DM Mono"; }
textarea:focus { border-color: var(--green); }
.disclaimer { min-height: 16px; margin: 9px 0 15px; color: var(--muted); font: 10px "DM Mono"; }
.primary-button, .approval-button { width: 100%; border: 0; cursor: pointer; transition: transform .18s, background .18s; }
.primary-button { display: flex; justify-content: space-between; padding: 16px 18px; color: white; background: var(--ink); font-weight: 600; }
.primary-button:hover, .approval-button:hover { transform: translateY(-2px); }

.result-panel { position: relative; min-height: 450px; overflow: hidden; }
.result-panel::after { content: ""; position: absolute; width: 260px; height: 260px; right: -120px; bottom: -140px; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 45px transparent, 0 0 0 46px var(--line), 0 0 0 90px transparent, 0 0 0 91px var(--line); opacity: .65; }
.idle-state, .loading-state { height: 100%; min-height: 390px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.idle-state p { max-width: 480px; color: var(--muted); line-height: 1.6; }
.radar { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 26px; border: 1px solid var(--green); border-radius: 50%; box-shadow: 0 0 0 13px rgba(12,121,87,.08), 0 0 0 26px rgba(12,121,87,.05); }
.radar span { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.loading-state { align-items: stretch; text-align: left; padding: 44px; }
.loading-state ol { display: grid; gap: 17px; color: var(--muted); font: 13px "DM Mono"; }
.progress { height: 3px; margin: 12px 0 28px; overflow: hidden; background: var(--line); }
.progress span { display: block; width: 45%; height: 100%; background: var(--green); animation: scan 1.2s infinite ease-in-out; }
@keyframes scan { from { transform: translateX(-110%); } to { transform: translateX(240%); } }
.decision-state { position: relative; z-index: 1; }
.status-line { display: flex; align-items: center; gap: 14px; }
.status-line span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--red); color: var(--red); font-size: 25px; }
.status-line h2 { color: var(--red); font: 500 54px "DM Mono"; letter-spacing: -.05em; }
.decision-state[data-status="ALLOW"] .status-line span { color: var(--green); border-color: var(--green); }
.decision-state[data-status="ALLOW"] .status-line h2 { color: var(--green); }
.decision-state[data-status="REVIEW"] .status-line span { color: var(--amber); border-color: var(--amber); }
.decision-state[data-status="REVIEW"] .status-line h2 { color: var(--amber); }
.decision-id { text-align: right; }
.decision-id span, .digest span { display: block; margin-bottom: 7px; color: var(--muted); font: 9px "DM Mono"; letter-spacing: .1em; }
code { font: 11px "DM Mono"; }
.rationale { max-width: 670px; margin: 34px 0; padding: 18px 20px; border-left: 3px solid var(--red); background: var(--red-soft); line-height: 1.6; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.metrics div { padding: 22px 16px; border-right: 1px solid var(--line); }
.metrics div:last-child { border: 0; }
.metrics strong, .metrics span { display: block; }
.metrics strong { margin-bottom: 6px; font: 500 27px "DM Mono"; }
.metrics span { color: var(--muted); font-size: 10px; }
.remediation-button { width: 100%; margin-top: 18px; padding: 13px; border: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; font: 10px "DM Mono"; text-transform: uppercase; }
.revalidation-message { min-height: 15px; margin: 9px 0 0; color: var(--green-dark); font: 10px "DM Mono"; }

.details { margin-top: 82px; }
.section-title { align-items: end; margin-bottom: 22px; }
.mono-caption { color: var(--muted); font: 10px "DM Mono"; }
.runtime-proof { display: grid; grid-template-columns: 1.2fr 1fr .55fr; gap: 0; margin-bottom: 18px; padding: 0; }
.runtime-proof div { min-width: 0; padding: 16px; border-right: 1px solid var(--line); }
.runtime-proof div:last-child { border: 0; }
.runtime-proof span { display: block; margin-bottom: 7px; color: var(--muted); font: 9px "DM Mono"; text-transform: uppercase; }
.runtime-proof code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lineage { display: flex; align-items: stretch; gap: 44px; min-height: 220px; padding: 30px; overflow-x: auto; }
.lineage-level { position: relative; display: flex; flex: 1 0 205px; min-width: 205px; flex-direction: column; gap: 10px; }
.lineage-level:not(:last-child)::after { content: "→"; position: absolute; right: -30px; top: 52%; color: var(--green); font: 18px "DM Mono"; }
.hop-label { color: var(--muted); font: 9px "DM Mono"; letter-spacing: .1em; }
.asset-node { position: relative; flex: 1; min-height: 145px; padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.asset-node.root { border: 2px solid var(--red); background: #fff4ef; }
.asset-node.external { border-color: var(--amber); }
.asset-kind { color: var(--green); font: 9px "DM Mono"; letter-spacing: .1em; }
.asset-node h3 { margin: 9px 0 22px; font-size: 15px; overflow-wrap: anywhere; }
.asset-node p { margin: 5px 0 0; color: var(--muted); font: 10px "DM Mono"; }
.clear-state { display: grid; gap: 8px; width: 100%; place-content: center; color: var(--green-dark); text-align: center; }
.clear-state span { color: var(--muted); font-size: 12px; }
.evidence-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 18px; }
.evidence-item { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 19px 0; border-top: 1px solid var(--line); }
.evidence-item:first-child { margin-top: 22px; }
.polarity { width: fit-content; height: fit-content; padding: 5px 7px; color: var(--green); border: 1px solid var(--green); font: 9px "DM Mono"; }
.polarity.challenges { color: var(--amber); border-color: var(--amber); }
.evidence-item h3 { margin: 0 0 5px; font-size: 14px; }
.evidence-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.evidence-item small { display: block; margin-top: 7px; font: 9px "DM Mono"; }
.action-panel > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.writeback-list { margin: 24px 0; border-top: 1px solid var(--line); }
.writeback-item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 10px "DM Mono"; }
.writeback-item span:last-child { color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.live-approval { display: grid; gap: 7px; margin: -8px 0 18px; }
.live-approval label { color: var(--muted); font: 9px "DM Mono"; text-transform: uppercase; }
.live-approval input, .registry-controls input { padding: 11px; border: 1px solid var(--line); background: white; font: 12px "DM Mono"; }
.approval-button { padding: 15px; color: white; background: var(--green); font-weight: 600; }
.approval-button.approved { background: var(--green-dark); }
.approval-message { min-height: 18px; margin: 10px 0 0; color: var(--muted); font: 10px/1.5 "DM Mono"; }
.digest { margin-top: 20px; padding: 13px; background: #eeeee6; overflow: hidden; }
.digest code { display: block; overflow: hidden; text-overflow: ellipsis; }
.download-button { width: 100%; margin-top: 10px; padding: 11px; border: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; font: 9px "DM Mono"; text-transform: uppercase; }
.registry-panel { margin-top: 18px; padding: 28px; }
.registry-panel > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.registry-controls { display: grid; grid-template-columns: 1fr 180px; gap: 10px; margin-top: 22px; }
.registry-controls .download-button { margin: 0; }
.registry-table { margin-top: 22px; border: 1px solid var(--line); }
.registry-row { display: grid; grid-template-columns: .65fr 1.6fr .5fr 1fr 1.3fr; gap: 14px; align-items: center; min-width: 760px; padding: 13px 15px; border-top: 1px solid var(--line); font-size: 11px; }
.registry-row:first-child { border-top: 0; }
.registry-header { color: var(--muted); background: #eeeee6; font: 9px "DM Mono"; text-transform: uppercase; }
#registry-records { overflow-x: auto; }
.registry-status { width: fit-content; padding: 4px 6px; border: 1px solid currentColor; font: 9px "DM Mono"; }
.registry-status.allow { color: var(--green); }
.registry-status.review { color: var(--amber); }
.registry-status.block { color: var(--red); }
.registry-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.control-plane-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; padding: 22px; border: 1px solid var(--green); background: rgba(167,231,196,.12); }
.control-plane-panel .remediation-button { margin: 0; align-self: start; }
.control-plane-meta { margin: 7px 0 0; color: var(--muted); font: 10px/1.5 "DM Mono"; overflow-wrap: anywhere; }
.audit-events { display: grid; gap: 7px; }
.audit-event { display: grid; gap: 4px; padding: 9px 0; border-top: 1px solid var(--line); }
.audit-event strong { font: 10px "DM Mono"; }
.audit-event span { color: var(--muted); font: 9px "DM Mono"; overflow-wrap: anywhere; }
.api-key-admin { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--green); }
.api-key-create { display: grid; grid-template-columns: 1fr 150px 150px; gap: 10px; margin: 12px 0; }
.api-key-create input, .api-key-create select { width: 100%; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); padding: 11px; font: 11px "DM Mono"; }
.api-key-create .download-button { margin: 0; }
.api-key-secret { min-height: 18px; color: var(--green); font: 10px/1.5 "DM Mono"; overflow-wrap: anywhere; }
.api-key-list { display: grid; gap: 6px; margin-top: 10px; }
.api-key-row { display: grid; grid-template-columns: 1fr 100px 110px 80px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font: 10px "DM Mono"; }
.api-key-row span { overflow-wrap: anywhere; }
.api-key-row button { border: 0; background: transparent; color: var(--red); cursor: pointer; font: inherit; text-align: right; }
.hidden { display: none !important; }
footer { display: flex; justify-content: space-between; margin-top: 80px; padding: 24px 0 35px; border-top: 1px solid var(--ink); color: var(--muted); font: 10px "DM Mono"; text-transform: uppercase; }

@media (max-width: 900px) {
  .shell { padding: 0 18px; }
  .header-meta .divider, .header-meta .divider + span { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 50px; }
  .workspace, .evidence-grid { grid-template-columns: 1fr; }
  .runtime-proof { grid-template-columns: 1fr; }
  .runtime-proof div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics div:nth-child(2) { border-right: 0; }
  .metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .control-plane-panel { grid-template-columns: 1fr; }
  .api-key-create, .api-key-row { grid-template-columns: 1fr; }
  .api-key-row button { text-align: left; }
}

@media (max-width: 560px) {
  .header-meta { font-size: 9px; }
  h1 { font-size: 47px; }
  .policy-panel, .result-panel, .evidence-panel, .action-panel { padding: 20px; }
  .decision-header { flex-direction: column; }
  .decision-id { text-align: left; }
  .status-line h2 { font-size: 44px; }
  .evidence-item { grid-template-columns: 1fr; }
  .registry-controls { grid-template-columns: 1fr; }
  footer { gap: 20px; }
}

/* Cinematic public surface */
:root {
  --page-x: clamp(18px, 4vw, 68px);
  --motion-ease: cubic-bezier(.16, 1, .3, 1);
  --night: #081813;
}

body { overflow-x: hidden; }
.shell { width: 100%; max-width: none; padding: 0; }
.skip-link { position: fixed; top: -100px; left: var(--page-x); z-index: 1000; padding: 12px 16px; color: var(--paper); background: var(--ink); transition: top .2s ease; }
.skip-link:focus { top: 12px; }
.scroll-progress { position: fixed; inset: 0 auto auto 0; z-index: 900; width: calc(var(--page-progress, 0) * 100%); height: 2px; background: var(--mint); pointer-events: none; }
.site-header { position: sticky; top: 0; z-index: 500; width: 100%; height: 72px; padding: 0 var(--page-x); color: var(--paper); background: color-mix(in srgb, var(--night) 88%, transparent); border-color: rgba(243,241,233,.18); backdrop-filter: blur(18px); }
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); }
.site-header nav a { position: relative; color: rgba(243,241,233,.62); font: 10px "DM Mono"; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.site-header nav a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: var(--mint); transform: scaleX(0); transform-origin: right; transition: transform .28s var(--motion-ease); }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.site-header .brand { color: var(--paper); }
.site-header .brand-mark { color: var(--night); background: var(--mint); }
.site-header .header-meta { color: rgba(243,241,233,.62); }
.site-header .live-dot { background: var(--mint); box-shadow: 0 0 0 5px rgba(167,231,196,.11); }

.motion-hero { --hero-progress: 0; position: relative; min-height: max(760px, calc(100svh - 72px)); overflow: hidden; padding: 28px var(--page-x) 42px; color: var(--paper); background: var(--night); isolation: isolate; }
#motion-field, .hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
#motion-field { z-index: -2; opacity: .92; }
.hero-grid { z-index: -1; opacity: .45; background: linear-gradient(rgba(167,231,196,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(167,231,196,.055) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to right, transparent, #000 24%, #000); transform: translate3d(calc(var(--pointer-x, 0) * 9px), calc(var(--pointer-y, 0) * 9px), 0); transition: transform .8s var(--motion-ease); }
.hero-topline { display: flex; justify-content: space-between; color: rgba(243,241,233,.52); font: 9px "DM Mono"; letter-spacing: .13em; text-transform: uppercase; }
.hero-lockup { position: relative; z-index: 2; width: min(1440px, 100%); margin: clamp(110px, 14vh, 180px) auto 0; }
.motion-hero .eyebrow { margin-bottom: 24px; color: var(--mint); }
.motion-hero h1 { max-width: none; color: var(--paper); font-size: clamp(58px, 9.6vw, 154px); font-weight: 600; line-height: .78; letter-spacing: -.075em; }
.motion-word { display: block; width: max-content; max-width: 100%; transform: translate3d(calc(var(--pointer-x, 0) * -8px), 0, 0); transition: transform 1s var(--motion-ease); }
.motion-word.outline { margin-left: 13vw; color: transparent; -webkit-text-stroke: 1px rgba(243,241,233,.62); transform: translate3d(calc(var(--pointer-x, 0) * 12px), 0, 0); }
.motion-word.accent { margin-left: 4vw; color: var(--mint); font-style: italic; font-weight: 500; transform: translate3d(calc(var(--pointer-x, 0) * -16px), 0, 0); }
.hero-lower { display: grid; grid-template-columns: minmax(260px, 530px) auto; gap: 54px; align-items: end; margin: 58px 0 0 24vw; }
.hero-copy { color: rgba(243,241,233,.68); font-size: clamp(14px, 1.2vw, 18px); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-button { min-width: 210px; display: flex; justify-content: space-between; gap: 24px; padding: 15px 17px; color: var(--paper); border: 1px solid rgba(243,241,233,.3); font: 10px "DM Mono"; text-decoration: none; text-transform: uppercase; transition: color .25s ease, background .25s ease, transform .25s var(--motion-ease); }
.hero-button.primary { color: var(--night); background: var(--mint); border-color: var(--mint); }
.hero-button:hover, .hero-button:focus-visible { transform: translateY(-3px); color: var(--night); background: var(--paper); }
.hero-status-reel { position: absolute; top: 26%; right: -104px; width: 330px; height: 34px; overflow: hidden; border-top: 1px solid rgba(243,241,233,.18); border-bottom: 1px solid rgba(243,241,233,.18); transform: rotate(90deg); transform-origin: center; }
.status-reel-track { display: flex; width: max-content; animation: status-reel 18s linear infinite; }
.status-reel-track span { width: 220px; padding: 10px 14px; color: rgba(243,241,233,.58); font: 9px "DM Mono"; letter-spacing: .08em; }
.status-reel-track b { margin-right: 14px; color: var(--mint); }
.status-reel-track .danger { color: #ff786a; }
.status-reel-track .success { color: var(--mint); }
.hero-corner { position: absolute; right: var(--page-x); bottom: 40px; color: rgba(243,241,233,.44); font: 9px/1.7 "DM Mono"; letter-spacing: .12em; text-align: right; }
@keyframes status-reel { to { transform: translateX(-1100px); } }

[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--motion-ease), transform 1.1s var(--motion-ease); }
[data-reveal][data-visible="true"] { opacity: 1; transform: translateY(0); }
.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; color: var(--paper); background: var(--ink); border-top: 1px solid rgba(243,241,233,.2); border-bottom: 1px solid rgba(243,241,233,.2); }
.proof-strip div { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px var(--page-x); border-right: 1px solid rgba(243,241,233,.18); }
.proof-strip div:last-child { border: 0; }
.proof-strip strong { color: var(--mint); font: 500 clamp(25px, 3vw, 44px) "DM Mono"; letter-spacing: -.05em; }
.proof-strip span { max-width: 190px; color: rgba(243,241,233,.58); font: 9px/1.5 "DM Mono"; text-transform: uppercase; }

.system-story { width: min(1560px, 100%); display: grid; grid-template-columns: minmax(300px, .72fr) minmax(600px, 1.28fr); gap: clamp(40px, 6vw, 110px); margin: 0 auto; padding: clamp(100px, 13vw, 200px) var(--page-x); }
.story-copy { align-self: center; }
.story-copy h2, .film-heading h2, .compiler-intro h2, .control-plane-cta h2 { max-width: 760px; font-size: clamp(38px, 5vw, 76px); font-weight: 500; line-height: .98; letter-spacing: -.06em; }
.story-copy > p:not(.eyebrow) { max-width: 580px; margin: 34px 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.boundary-note { display: grid; grid-template-columns: 110px 1fr; gap: 9px 16px; padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.boundary-note span { color: var(--green); font: 9px "DM Mono"; letter-spacing: .08em; }
.boundary-note p { margin: 0; font: 11px "DM Mono"; }
.system-stage { --scene-progress: 0; position: relative; min-height: 720px; display: grid; grid-template-columns: 1fr 64px 1fr; grid-template-rows: 1fr 64px 1fr; align-items: stretch; padding: clamp(24px, 4vw, 58px); overflow: hidden; color: var(--paper); background: var(--night); border-radius: 1px; box-shadow: 20px 24px 0 rgba(18,37,31,.09); }
.system-stage::before { content: "LIVE DECISION GRAPH"; position: absolute; top: 18px; left: 22px; color: rgba(243,241,233,.34); font: 8px "DM Mono"; letter-spacing: .16em; }
.stage-scan { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(167,231,196,.08), transparent); transform: translateX(calc(-100% + var(--scene-progress) * 200%)); }
.system-node { position: relative; z-index: 2; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid rgba(243,241,233,.22); background: rgba(8,24,19,.72); backdrop-filter: blur(8px); transition: border-color .3s ease, transform .4s var(--motion-ease); }
.system-node:hover { transform: translateY(-4px); border-color: var(--mint); }
.system-node span, .system-node small { color: rgba(243,241,233,.48); font: 8px/1.5 "DM Mono"; letter-spacing: .08em; }
.system-node strong { font-size: clamp(18px, 2vw, 29px); line-height: 1.05; letter-spacing: -.04em; }
.policy-node { grid-area: 1 / 1; }
.datahub-node { grid-area: 1 / 3; }
.verdict-node { grid-area: 3 / 3; border-color: rgba(189,59,46,.65); }
.action-node { grid-area: 3 / 1; border-color: rgba(167,231,196,.48); }
.block-word { color: #ff766a; font: 500 clamp(38px, 5vw, 72px) "DM Mono" !important; }
.system-route { position: relative; z-index: 1; align-self: center; justify-self: stretch; height: 1px; background: rgba(167,231,196,.28); }
.route-a { grid-area: 1 / 2; }
.route-b { grid-area: 2 / 3; width: 1px; height: 64px; justify-self: center; }
.route-c { grid-area: 3 / 2; }
.system-route i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 18px var(--mint); animation: route-signal 2.4s linear infinite; }
.route-b i { animation-name: route-signal-y; }
@keyframes route-signal { from { left: 0; top: -3px; } to { left: calc(100% - 7px); top: -3px; } }
@keyframes route-signal-y { from { top: 0; left: -3px; } to { top: calc(100% - 7px); left: -3px; } }

.proof-film { padding: clamp(90px, 11vw, 170px) var(--page-x); color: var(--paper); background: var(--night); overflow: hidden; }
.film-heading { width: min(1440px, 100%); display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: end; margin: 0 auto 52px; }
.film-heading .eyebrow { color: var(--mint); }
.film-heading > p { max-width: 470px; margin: 0 0 5px; color: rgba(243,241,233,.58); line-height: 1.75; }
.film-frame { position: relative; width: min(1440px, 100%); aspect-ratio: 16 / 8.6; margin: auto; overflow: hidden; border: 1px solid rgba(243,241,233,.24); background: #040b09; box-shadow: 0 40px 120px rgba(0,0,0,.34); }
.film-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8,24,19,.1), transparent 65%, rgba(8,24,19,.5)); }
.film-frame video { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.82) contrast(1.06); }
.film-hud { position: absolute; z-index: 2; inset: 20px 22px auto; display: flex; justify-content: space-between; align-items: center; color: var(--paper); font: 9px "DM Mono"; letter-spacing: .1em; }
.film-hud span { display: flex; align-items: center; gap: 9px; }
.film-hud i { width: 7px; height: 7px; border-radius: 50%; background: #ff766a; box-shadow: 0 0 0 5px rgba(255,118,106,.13); }
.film-hud button { padding: 9px 12px; color: var(--paper); background: rgba(8,24,19,.68); border: 1px solid rgba(243,241,233,.3); cursor: pointer; font: 9px "DM Mono"; text-transform: uppercase; }
.frame-reel { width: calc(100% + var(--page-x) * 2); margin: 38px calc(var(--page-x) * -1) 0; overflow: hidden; }
.frame-reel-track { display: flex; width: max-content; gap: 14px; animation: frame-reel 42s linear infinite; }
.frame-reel figure { width: clamp(240px, 25vw, 440px); margin: 0; padding: 8px; border: 1px solid rgba(243,241,233,.16); background: rgba(243,241,233,.035); }
.frame-reel img { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; filter: grayscale(.2); }
.frame-reel figcaption { padding: 10px 3px 3px; color: rgba(243,241,233,.48); font: 8px "DM Mono"; letter-spacing: .1em; }
@keyframes frame-reel { to { transform: translateX(-56%); } }

.dual-index { position: relative; width: min(1320px, calc(100% - var(--page-x) * 2)); display: grid; grid-template-columns: 1fr 80px 1fr; margin: clamp(100px, 13vw, 190px) auto; }
.index-card { min-height: 440px; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 58px); border: 1px solid var(--ink); }
.index-card > span { font: 9px "DM Mono"; letter-spacing: .12em; }
.index-card strong { margin: auto 0 10px; font: 500 clamp(74px, 9vw, 150px) "DM Mono"; letter-spacing: -.09em; }
.index-card h3 { margin: 0 0 12px; font-size: 22px; }
.index-card p { max-width: 350px; margin: 0; color: var(--muted); line-height: 1.6; }
.exposure-card { color: #6f241c; background: #f3d9d3; }
.evidence-card { color: var(--green-dark); background: #d9eee2; }
.index-divider { display: grid; place-items: center; }
.index-divider span { display: grid; place-items: center; width: 52px; height: 52px; color: var(--paper); background: var(--ink); border-radius: 50%; font: 24px "DM Mono"; }
.index-rule { position: absolute; right: 0; bottom: -42px; margin: 0; color: var(--muted); font: 9px "DM Mono"; letter-spacing: .06em; }

.compiler-experience { padding: clamp(100px, 12vw, 180px) var(--page-x); background: rgba(255,255,255,.2); border-top: 1px solid var(--ink); }
.compiler-intro { width: min(1440px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; margin: 0 auto 62px; }
.compiler-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -30px; }
.compiler-intro p:last-child { max-width: 550px; margin: 0; color: var(--muted); line-height: 1.75; }
.workspace, .details { width: min(1440px, 100%); margin-right: auto; margin-left: auto; }
.details { margin-top: 82px; }
.control-plane-cta { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; padding: clamp(100px, 13vw, 190px) var(--page-x); color: var(--paper); background: var(--ink); }
.control-plane-cta .eyebrow { color: var(--mint); }
.control-plane-copy { align-self: end; }
.control-plane-copy > p { max-width: 600px; color: rgba(243,241,233,.62); font-size: 16px; line-height: 1.8; }
.cta-links { display: grid; gap: 8px; margin-top: 34px; }
.cta-links a { display: flex; justify-content: space-between; padding: 15px 0; color: var(--paper); border-top: 1px solid rgba(243,241,233,.22); font: 10px "DM Mono"; text-decoration: none; text-transform: uppercase; }
footer { margin: 0; padding: 26px var(--page-x); color: rgba(243,241,233,.5); background: var(--ink); border-top-color: rgba(243,241,233,.18); }

@media (max-width: 1000px) {
  .site-header nav { display: none; }
  .hero-lower { grid-template-columns: 1fr; margin-left: 12vw; }
  .system-story, .film-heading, .compiler-intro, .control-plane-cta { grid-template-columns: 1fr; }
  .system-stage { min-height: 650px; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n + 2) { border-bottom: 1px solid rgba(243,241,233,.18); }
  .compiler-intro .eyebrow { margin-bottom: 0; }
}

@media (max-width: 700px) {
  .site-header { padding: 0 18px; }
  .site-header .header-meta { max-width: 120px; text-align: right; }
  .motion-hero { min-height: 760px; }
  .hero-topline span:last-child, .hero-corner { display: none; }
  .motion-hero h1 { font-size: clamp(48px, 15vw, 88px); line-height: .86; }
  .motion-word.outline, .motion-word.accent { margin-left: 0; }
  .hero-lockup { margin-top: 100px; }
  .hero-lower { gap: 30px; margin: 42px 0 0; }
  .hero-status-reel { right: -142px; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div { min-height: 120px; padding: 22px 18px; }
  .system-story { grid-template-columns: 1fr; padding-right: 18px; padding-left: 18px; }
  .system-stage { min-height: auto; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 42px auto 42px auto 42px auto; padding: 46px 18px 18px; }
  .policy-node, .datahub-node, .verdict-node, .action-node { grid-area: auto; min-height: 150px; }
  .route-a, .route-b, .route-c { grid-area: auto; width: 1px; height: 42px; justify-self: center; }
  .system-route i { animation-name: route-signal-y; }
  .film-heading { gap: 24px; }
  .film-frame { width: calc(100% + 18px); margin-left: -9px; aspect-ratio: 4 / 3; }
  .film-frame video { object-fit: cover; object-position: 20% center; }
  .dual-index { grid-template-columns: 1fr; width: calc(100% - 36px); }
  .index-divider { min-height: 80px; }
  .index-card { min-height: 360px; }
  .index-rule { position: static; margin-top: 20px; }
  .compiler-experience, .control-plane-cta { padding-right: 18px; padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  #motion-field { opacity: .45; }
}
