:root {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: #161715;
  background: #f2f0e8;
  font-synthesis: none;
  --paper: #f2f0e8;
  --paper-white: #fbfaf6;
  --ink: #161715;
  --muted: #65675f;
  --rule: #a7a89e;
  --rule-dark: #2f312e;
  --lime: #c7f45b;
  --lime-dark: #40570b;
  --cobalt: #2b54e8;
  --cobalt-soft: #dce3ff;
  --coral: #ed5b4f;
  --coral-soft: #f5d5d0;
  --green: #126b43;
  --green-soft: #d9eadf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input { font: inherit; }
button, a { color: inherit; }
a { text-decoration: none; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.truth-strip { min-height: 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(18px, 4vw, 58px); color: #f9f8f2; background: var(--ink); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .08em; }
.truth-strip strong { padding: 0 16px; color: var(--lime); }
.truth-strip span:last-child { text-align: right; }

.site-header { min-height: 84px; display: grid; grid-template-columns: 230px minmax(0, 1fr) 180px; gap: 32px; align-items: center; padding: 0 clamp(18px, 4vw, 58px); border-bottom: 1px solid var(--ink); background: var(--paper); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark-symbol { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--ink); font-size: 21px; font-weight: 700; }
.wordmark > span:last-child { display: grid; gap: 2px; }
.wordmark strong { font-size: 18px; letter-spacing: .14em; }
.wordmark small { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 8px; letter-spacing: .08em; }
.site-header nav { display: flex; align-items: center; justify-content: center; gap: 3px; overflow-x: auto; }
.site-header nav a { min-height: 42px; display: inline-flex; flex: 0 0 auto; align-items: center; padding: 0 11px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 11px; font-weight: 600; }
.site-header nav a:hover, .site-header nav a.active { color: var(--ink); border-bottom-color: var(--cobalt); }
.network-mark { display: grid; grid-template-columns: 8px 1fr; gap: 2px 9px; align-items: center; justify-self: end; }
.network-mark > span { width: 8px; height: 8px; grid-row: 1 / span 2; border-radius: 50%; background: var(--lime-dark); }
.network-mark strong, .network-mark small { font-family: "IBM Plex Mono", monospace; }
.network-mark strong { font-size: 9px; }
.network-mark small { color: var(--muted); font-size: 8px; }

main { min-height: calc(100vh - 112px); }
.view { display: none; }
.view.active { display: block; }

.hero { min-height: 630px; display: grid; grid-template-columns: 110px minmax(0, 1fr) 270px; gap: clamp(32px, 5vw, 80px); align-items: center; padding: 72px clamp(18px, 5vw, 78px); border-bottom: 1px solid var(--ink); }
.hero-index { align-self: stretch; display: flex; flex-direction: column; padding-right: 20px; border-right: 1px solid var(--ink); }
.hero-index span, .hero-index small { font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .1em; }
.hero-index strong { margin-top: 4px; font-size: 68px; font-weight: 500; line-height: 1; }
.hero-index small { max-width: 80px; margin-top: auto; color: var(--muted); line-height: 1.5; }
.overline { margin: 0 0 14px; color: var(--cobalt); font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600; letter-spacing: .1em; }
.hero-copy h1 { max-width: 950px; margin: 0; font-size: clamp(52px, 7vw, 104px); font-weight: 500; letter-spacing: -.065em; line-height: .89; }
.hero-copy h1 em { color: var(--cobalt); font-style: normal; }
.hero-copy > p:not(.overline) { max-width: 760px; margin: 30px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.primary-control, .link-control, .mini-control, .disabled-control { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border: 1px solid var(--ink); background: transparent; font-size: 10px; font-weight: 700; letter-spacing: .06em; cursor: pointer; }
.primary-control { color: var(--ink); background: var(--lime); }
.primary-control:hover { background: #d4fa7f; }
.primary-control svg, .link-control svg { width: 18px; height: 18px; }
.link-control { border-color: transparent; border-bottom-color: var(--ink); }
.link-control:hover { color: var(--cobalt); border-bottom-color: var(--cobalt); }
.link-control--large { min-height: 56px; font-size: 12px; }
.disabled-control { width: 100%; color: #8d8e86; border-color: #b9bab1; cursor: not-allowed; }

.outcome-seal { min-height: 360px; display: flex; flex-direction: column; padding: 26px; border: 2px solid var(--ink); background: var(--lime); box-shadow: 12px 12px 0 var(--ink); }
.outcome-seal > svg { width: 48px; height: 48px; margin-bottom: auto; }
.outcome-seal span, .outcome-seal small { font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .08em; }
.outcome-seal strong { margin-top: 8px; font-size: 31px; }
.outcome-seal p { margin: 30px 0 4px; color: var(--lime-dark); font-size: 11px; }
.outcome-seal b { font-family: "IBM Plex Mono", monospace; font-size: 26px; font-weight: 500; }
.outcome-seal small { margin-top: 7px; color: var(--lime-dark); }

.accounting-band { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 24px; align-items: center; padding: 32px clamp(18px, 5vw, 78px); border-bottom: 1px solid var(--ink); background: var(--paper-white); }
.accounting-band div { min-width: 0; }
.accounting-band span, .accounting-band strong { display: block; }
.accounting-band span { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .08em; }
.accounting-band strong { margin-top: 8px; font-family: "IBM Plex Mono", monospace; font-size: clamp(18px, 2.3vw, 34px); font-weight: 500; }
.accounting-band > b { color: var(--rule); font-size: 24px; font-weight: 400; }
.accounting-band .accounting-return strong { color: var(--green); }

.execution-story { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(50px, 9vw, 150px); padding: 100px clamp(18px, 5vw, 78px); border-bottom: 1px solid var(--ink); }
.story-heading { position: sticky; top: 24px; align-self: start; }
.story-heading h2, .failure-section h2, .proof-footer h2, .product-page-head h1, .file-header h1, .covenant-sheet h2, .agent-boundary h2, .policy-principle h2, .evidence-coverage h2 { margin: 0; font-size: clamp(38px, 4.5vw, 68px); font-weight: 500; letter-spacing: -.055em; line-height: .95; }
.story-heading > p:last-child { max-width: 420px; margin: 26px 0 0; color: var(--muted); line-height: 1.6; }
.execution-tape { margin: 0; padding: 0; border-top: 2px solid var(--ink); list-style: none; }
.tape-row { min-height: 106px; display: grid; grid-template-columns: 38px 118px minmax(0, 1fr) 135px; gap: 22px; align-items: center; border-bottom: 1px solid var(--rule); transition: opacity 180ms ease, background-color 180ms ease, transform 180ms ease; }
.tape-number, .tape-owner, .tape-proof { font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .06em; }
.tape-number { color: var(--muted); }
.tape-owner { font-weight: 600; }
.tape-event { display: flex; align-items: center; gap: 15px; }
.tape-event svg { width: 25px; height: 25px; flex: 0 0 auto; color: var(--cobalt); }
.tape-event span { display: grid; gap: 5px; }
.tape-event strong { font-size: 14px; }
.tape-event small { color: var(--muted); font-size: 10px; }
.tape-proof { justify-self: end; padding: 6px 8px; border: 1px solid var(--rule); color: var(--muted); text-align: center; }
.tape-proof--verified { color: var(--green); border-color: var(--green); background: var(--green-soft); }
.tape-row--fault { background: var(--coral-soft); }
.tape-row--fault .tape-event svg, .tape-row--fault .tape-event strong { color: #a82920; }
.tape-row--recovered { background: var(--green-soft); }
.tape-row--recovered .tape-event svg, .tape-row--recovered .tape-event strong { color: var(--green); }
.execution-tape.is-replaying .tape-row { opacity: .16; }
.execution-tape.is-replaying .tape-row.replay-past { opacity: .5; }
.execution-tape.is-replaying .tape-row.replay-current { opacity: 1; transform: translateX(-10px); box-shadow: 10px 0 0 var(--cobalt); }

.failure-section { display: grid; grid-template-columns: .7fr 1fr 1fr; gap: 50px; padding: 90px clamp(18px, 5vw, 78px); border-bottom: 1px solid var(--ink); background: var(--coral-soft); }
.failure-word { align-self: start; color: var(--coral); font-size: clamp(58px, 8vw, 120px); font-weight: 700; letter-spacing: -.08em; writing-mode: vertical-rl; transform: rotate(180deg); }
.failure-section h2 { font-size: clamp(31px, 3.5vw, 52px); }
.failure-section > div > p:last-child { color: #6d4642; line-height: 1.65; }
.recovery-explanation { padding-left: 42px; border-left: 1px solid #b98079; }
.recovery-explanation .overline { color: var(--green); }
.recovery-explanation dl { margin: 26px 0 0; }
.recovery-explanation dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #b98079; }
.recovery-explanation dt { color: #6d4642; font-size: 10px; }
.recovery-explanation dd { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 10px; text-align: right; }

.proof-footer { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: 80px clamp(18px, 5vw, 78px); background: var(--paper-white); }
.proof-footer h2 { overflow-wrap: anywhere; font-family: "IBM Plex Mono", monospace; font-size: clamp(25px, 3vw, 42px); letter-spacing: -.04em; }
.proof-footer span { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; }

.product-page-head { display: flex; align-items: end; justify-content: space-between; gap: 50px; padding: 76px clamp(18px, 5vw, 78px) 50px; border-bottom: 1px solid var(--ink); }
.product-page-head > div:first-child { max-width: 940px; }
.product-page-head h1 { font-size: clamp(50px, 6vw, 88px); }
.product-page-head > div:first-child > p:last-child { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.demo-label { flex: 0 0 auto; padding: 18px; border: 2px solid var(--ink); background: var(--cobalt-soft); }
.demo-label span, .demo-label strong { display: block; font-family: "IBM Plex Mono", monospace; }
.demo-label span { color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.demo-label strong { margin-top: 7px; font-size: 12px; }
.demo-label--good { background: var(--lime); }

.studio-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) 360px; min-height: 610px; border-bottom: 1px solid var(--ink); }
.workflow-canvas { padding: 50px clamp(18px, 4vw, 58px); border-right: 1px solid var(--ink); background: var(--paper-white); }
.canvas-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.canvas-head small { color: var(--muted); }
.workflow-chain { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr; align-items: center; margin-top: 92px; }
.workflow-chain article { min-height: 210px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--ink); background: var(--paper); }
.workflow-chain article > span { font-family: "IBM Plex Mono", monospace; color: var(--cobalt); font-size: 9px; }
.workflow-chain article svg { width: 32px; height: 32px; margin: 35px 0 auto; color: var(--cobalt); }
.workflow-chain article strong, .workflow-chain article small { display: block; }
.workflow-chain article strong { font-size: 13px; }
.workflow-chain article small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.workflow-chain > i { height: 1px; background: var(--ink); }
.workflow-chain .workflow-fault { background: var(--coral-soft); }
.workflow-chain .workflow-fault svg, .workflow-chain .workflow-fault > span { color: #a82920; }
.workflow-chain .workflow-recovery { background: var(--green-soft); }
.workflow-chain .workflow-recovery svg, .workflow-chain .workflow-recovery > span { color: var(--green); }
.workflow-chain .workflow-return { background: var(--green); }
.workflow-chain article.sim-active { outline: 4px solid var(--cobalt); outline-offset: 3px; }
.workflow-chain article.sim-complete { border-color: var(--cobalt); background: var(--cobalt-soft); }
.workflow-chain article.sim-failed { border-color: #a82920; background: var(--coral-soft); }
.workflow-chain article.sim-recovered { border-color: var(--green); background: var(--green-soft); outline-color: var(--green); }
.workflow-chain > i.sim-complete { height: 4px; background: var(--cobalt); }
.workflow-chain > i.workflow-return.sim-complete { background: var(--green); }
.canvas-note { display: flex; gap: 13px; margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--rule); }
.canvas-note svg { width: 24px; height: 24px; flex: 0 0 auto; color: var(--cobalt); }
.canvas-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.canvas-note strong { color: var(--ink); }
.policy-form { padding: 48px 32px; background: #e5e2d7; }
.policy-form label { display: grid; gap: 7px; margin-bottom: 18px; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: .06em; }
.policy-form input:not([type="checkbox"]) { width: 100%; height: 45px; padding: 0 12px; border: 1px solid var(--ink); color: var(--ink); background: var(--paper-white); font-family: "IBM Plex Mono", monospace; font-size: 10px; }
.policy-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.policy-form .check-row { display: flex; align-items: center; gap: 9px; color: var(--ink); letter-spacing: 0; }
.policy-form .primary-control { width: 100%; margin-top: 16px; }
.policy-form .disabled-control { margin-top: 10px; }
.simulation-output { display: flex; align-items: center; gap: 28px; min-height: 88px; padding: 0 clamp(18px, 5vw, 78px); border-bottom: 1px solid var(--ink); background: var(--lime); }
.simulation-output span { flex: 0 0 auto; font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600; }
.simulation-output p { margin: 0; font-size: 12px; }
.simulation-output.is-running { background: var(--cobalt-soft); }
.simulation-output.is-complete { background: var(--green-soft); }

.explorer-filters { display: flex; gap: 8px; padding: 28px clamp(18px, 5vw, 78px); border-bottom: 1px solid var(--ink); }
.explorer-filters button { min-height: 37px; padding: 0 12px; border: 1px solid var(--rule); color: var(--muted); background: transparent; font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.explorer-filters .filter-active { color: white; border-color: var(--ink); background: var(--ink); }
.saga-table { margin: 50px clamp(18px, 5vw, 78px); border-top: 2px solid var(--ink); }
.saga-table-row { width: 100%; min-height: 74px; display: grid; grid-template-columns: 1.1fr 1.7fr .8fr 1fr 1fr .6fr 24px; gap: 18px; align-items: center; padding: 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; text-align: left; }
button.saga-table-row { cursor: pointer; }
button.saga-table-row:hover { background: var(--cobalt-soft); }
.saga-table-row code { font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.saga-table-row span { color: var(--muted); font-size: 10px; }
.saga-table-row strong { color: var(--green); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.saga-table-row svg { width: 18px; }
.saga-table-head { min-height: 40px; font-family: "IBM Plex Mono", monospace; font-size: 8px; letter-spacing: .08em; }
.explorer-note { display: grid; grid-template-columns: 160px 1fr; gap: 30px; margin: 0 clamp(18px, 5vw, 78px) 80px; padding: 24px 0; border-block: 1px solid var(--ink); }
.explorer-note span { font-family: "IBM Plex Mono", monospace; color: var(--cobalt); font-size: 9px; }
.explorer-note p { margin: 0; color: var(--muted); line-height: 1.6; }

.responsibility-map { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr; align-items: center; padding: 72px clamp(18px, 5vw, 78px); border-bottom: 1px solid var(--ink); }
.responsibility-map article { min-height: 260px; padding: 22px; border: 1px solid var(--ink); background: var(--paper-white); }
.responsibility-map article > span { font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.responsibility-map article h2 { margin: 65px 0 12px; font-size: 30px; font-weight: 500; }
.responsibility-map article > p:last-child { color: var(--muted); font-size: 11px; line-height: 1.55; }
.responsibility-map > i { height: 1px; background: var(--ink); }
.responsibility-map .responsibility-keeper { color: white; background: var(--cobalt); }
.responsibility-map .responsibility-keeper .overline, .responsibility-map .responsibility-keeper > p:last-child { color: #dbe2ff; }
.keeper-record-layout { display: grid; grid-template-columns: 1fr 1fr; }
.keeper-record, .keeper-boundary { padding: 60px clamp(18px, 5vw, 78px); }
.keeper-record { border-right: 1px solid var(--ink); }
.keeper-record dl { margin: 28px 0 0; }
.keeper-record dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.keeper-record dt { color: var(--muted); font-size: 10px; }
.keeper-record dd { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 10px; text-align: right; overflow-wrap: anywhere; }
.keeper-boundary { display: flex; gap: 20px; background: var(--coral-soft); }
.keeper-boundary > svg { width: 35px; height: 35px; flex: 0 0 auto; color: #a82920; }
.keeper-boundary h2 { margin: 0; font-size: 34px; font-weight: 500; }
.keeper-boundary p:last-child { color: #6d4642; line-height: 1.65; }

.treasury-flow { display: grid; grid-template-columns: 1fr 70px 1fr 70px 1fr; align-items: center; padding: 82px clamp(18px, 7vw, 120px); border-bottom: 1px solid var(--ink); }
.treasury-flow > article, .treasury-outcomes article { min-height: 180px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--ink); background: var(--paper-white); }
.treasury-flow article span, .treasury-flow article small { font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.treasury-flow article strong { margin: auto 0; font-family: "IBM Plex Mono", monospace; font-size: clamp(21px, 2.6vw, 38px); font-weight: 500; }
.treasury-flow article small { color: var(--muted); }
.treasury-flow > i { height: 1px; background: var(--ink); }
.treasury-outcomes { display: grid; gap: 13px; }
.treasury-outcomes article { min-height: 132px; }
.treasury-outcomes .treasury-return { background: var(--green-soft); }
.treasury-return strong { color: var(--green); }
.treasury-balance { min-height: 100px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 0 clamp(18px, 5vw, 78px); color: white; background: var(--ink); }
.treasury-balance span { color: var(--lime); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.treasury-balance code { justify-self: center; font-family: "IBM Plex Mono", monospace; font-size: clamp(13px, 2vw, 23px); }
.treasury-balance strong { display: flex; align-items: center; gap: 7px; color: var(--lime); font-size: 10px; }
.treasury-balance svg { width: 18px; }
.treasury-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 28px clamp(18px, 5vw, 78px); }
.treasury-legend span { display: flex; align-items: center; gap: 7px; font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.treasury-legend i { width: 22px; height: 4px; background: var(--cobalt); }
.treasury-legend .legend-return i { background: var(--green); }
.treasury-legend p { margin-left: auto; color: var(--muted); font-size: 10px; }

.policy-document { margin: 64px clamp(18px, 9vw, 150px); border: 2px solid var(--ink); background: var(--paper-white); box-shadow: 14px 14px 0 var(--cobalt); }
.policy-document-head { min-height: 130px; display: flex; align-items: center; gap: 18px; padding: 24px 34px; border-bottom: 2px solid var(--ink); }
.policy-document-head svg { width: 42px; height: 42px; color: var(--cobalt); }
.policy-document-head div { flex: 1; }
.policy-document-head span { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.policy-document-head h2 { margin: 5px 0 0; font-size: 31px; font-weight: 500; }
.policy-document-head > strong { padding: 8px 11px; color: var(--lime-dark); background: var(--lime); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.policy-rules { display: grid; grid-template-columns: repeat(3, 1fr); }
.policy-rules > div { min-height: 125px; padding: 25px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.policy-rules > div:nth-child(3n) { border-right: 0; }
.policy-rules span, .policy-rules strong { display: block; }
.policy-rules span { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.policy-rules strong { margin-top: 22px; font-size: 16px; }
.policy-hash { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px 34px; }
.policy-hash span { font-family: "IBM Plex Mono", monospace; color: var(--muted); font-size: 9px; }
.policy-hash code { overflow: hidden; font-family: "IBM Plex Mono", monospace; font-size: 9px; text-overflow: ellipsis; }
.mini-control { min-height: 34px; font-size: 8px; }
.policy-principle { display: grid; grid-template-columns: 180px 1.2fr .8fr; gap: 45px; align-items: start; margin: 80px clamp(18px, 5vw, 78px); padding-top: 32px; border-top: 2px solid var(--ink); }
.policy-principle > span { color: var(--coral); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.policy-principle h2 { font-size: clamp(30px, 4vw, 56px); }
.policy-principle p { margin: 0; color: var(--muted); line-height: 1.65; }

.observation-measures { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--ink); }
.observation-measures article { min-height: 180px; display: flex; flex-direction: column; padding: 30px; border-right: 1px solid var(--ink); }
.observation-measures article:last-child { border-right: 0; }
.observation-measures span, .observation-measures small { font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.observation-measures span { color: var(--muted); }
.observation-measures strong { margin: auto 0; font-family: "IBM Plex Mono", monospace; font-size: clamp(22px, 3vw, 42px); font-weight: 500; }
.observation-measures small { color: var(--muted); }
.evidence-coverage { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding: 82px clamp(18px, 5vw, 78px); border-bottom: 1px solid var(--ink); }
.evidence-coverage h2 { font-size: clamp(36px, 4vw, 61px); }
.coverage-bars > div { display: grid; grid-template-columns: 130px 18px 1fr; gap: 18px; align-items: center; min-height: 54px; border-bottom: 1px solid var(--rule); }
.coverage-bars span, .coverage-bars em { font-family: "IBM Plex Mono", monospace; font-size: 8px; font-style: normal; }
.coverage-bars em { color: var(--muted); }
.coverage-bars i { width: 10px; height: 10px; border: 2px solid var(--ink); background: var(--paper-white); }
.coverage-bars .coverage-verified i { background: var(--green); }
.coverage-bars .coverage-log i { background: var(--cobalt); }
.coverage-bars .coverage-reconciled i { border-radius: 50%; background: var(--lime); }
.observability-limit { display: flex; gap: 17px; margin: 48px clamp(18px, 5vw, 78px) 80px; padding: 23px; border-left: 4px solid var(--coral); background: var(--coral-soft); }
.observability-limit svg { width: 24px; height: 24px; flex: 0 0 auto; color: #a82920; }
.observability-limit p { margin: 0; color: #6d4642; line-height: 1.6; }

.file-header { display: grid; grid-template-columns: 150px 1fr 170px; gap: 50px; align-items: end; padding: 72px clamp(18px, 5vw, 78px) 50px; border-bottom: 1px solid var(--ink); }
.file-number { align-self: stretch; padding-right: 24px; border-right: 1px solid var(--ink); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.file-header h1 { font-size: clamp(48px, 6vw, 88px); }
.file-status { padding: 18px; border: 2px solid var(--ink); background: var(--lime); }
.file-status span, .file-status strong, .file-status small { display: block; font-family: "IBM Plex Mono", monospace; }
.file-status span, .file-status small { font-size: 8px; }
.file-status strong { margin: 8px 0; font-size: 16px; }
.identity-rule { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; min-height: 68px; padding: 0 clamp(18px, 5vw, 78px); border-bottom: 1px solid var(--ink); background: var(--paper-white); }
.identity-rule span { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.identity-rule code { overflow: hidden; font-family: "IBM Plex Mono", monospace; font-size: 9px; text-overflow: ellipsis; }
.file-layout { display: grid; grid-template-columns: .8fr 1.2fr; border-bottom: 1px solid var(--ink); }
.covenant-sheet, .state-ledger { padding: 60px clamp(18px, 5vw, 78px); }
.covenant-sheet { border-right: 1px solid var(--ink); background: var(--cobalt-soft); }
.sheet-stamp { display: flex; align-items: center; gap: 10px; margin-bottom: 60px; color: var(--cobalt); }
.sheet-stamp svg { width: 38px; }
.sheet-stamp span { font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 600; }
.covenant-sheet h2 { font-size: clamp(36px, 4vw, 59px); }
.covenant-sheet > p:not(.overline) { color: #4c5878; line-height: 1.6; }
.file-facts { margin: 34px 0 0; }
.file-facts > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #a8b4db; }
.file-facts dt { color: #4c5878; font-size: 10px; }
.file-facts dd { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 10px; text-align: right; }
.file-facts .fact-good { color: var(--green); }
.ledger-heading { display: flex; justify-content: space-between; gap: 20px; }
.ledger-heading > span { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.state-ledger ol { margin: 24px 0 0; padding: 0; border-top: 2px solid var(--ink); list-style: none; }
.state-ledger li { min-height: 72px; display: grid; grid-template-columns: 38px 1fr auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--rule); }
.state-ledger li > b, .state-ledger li > em { font-family: "IBM Plex Mono", monospace; font-size: 8px; font-style: normal; }
.state-ledger li > b, .state-ledger li > em { color: var(--muted); }
.state-ledger li > span { display: grid; gap: 4px; }
.state-ledger li strong { font-size: 11px; }
.state-ledger li small { color: var(--muted); font-size: 9px; }
.state-ledger .provenance-strong, .state-ledger .ledger-good strong, .state-ledger .ledger-good em { color: var(--green); }
.state-ledger .ledger-fault strong, .state-ledger .ledger-fault em { color: #a82920; }
.capital-proof { display: grid; grid-template-columns: 260px 1fr 220px; gap: 44px; align-items: center; padding: 70px clamp(18px, 5vw, 78px); border-bottom: 1px solid var(--ink); background: var(--paper-white); }
.capital-proof-title h2 { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 38px; font-weight: 500; }
.capital-proof-title > span { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.capital-split { display: grid; grid-template-columns: 60fr .2fr 39.8fr; min-height: 130px; border: 1px solid var(--ink); }
.capital-split > div { min-width: 55px; display: flex; flex-direction: column; justify-content: center; padding: 16px; overflow: hidden; border-right: 1px solid var(--ink); }
.capital-split > div:last-child { border-right: 0; }
.capital-split strong { font-size: 14px; }
.capital-split span { margin-top: 12px; font-family: "IBM Plex Mono", monospace; font-size: 12px; }
.capital-split small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.capital-split-return { background: var(--green-soft); }
.capital-split-return span { color: var(--green); }
.capital-proof-result { display: flex; align-items: center; gap: 13px; color: var(--green); }
.capital-proof-result svg { width: 38px; }
.capital-proof-result span { display: grid; gap: 5px; }
.capital-proof-result strong { font-size: 13px; }
.capital-proof-result small { color: var(--muted); font-size: 9px; }
.agent-boundary { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 50px; padding: 70px clamp(18px, 5vw, 78px); border-bottom: 1px solid var(--ink); }
.agent-boundary h2 { font-size: clamp(33px, 3.8vw, 55px); }
.agent-boundary > div > p:last-child { color: var(--muted); line-height: 1.6; }
.agent-boundary pre { align-self: center; margin: 0; padding: 25px; overflow-x: auto; border-left: 4px solid var(--cobalt); background: var(--ink); }
.agent-boundary code { color: white; font-family: "IBM Plex Mono", monospace; font-size: 11px; line-height: 1.8; }
.agent-boundary dl { margin: 0; }
.agent-boundary dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.agent-boundary dt { color: var(--muted); font-size: 9px; }
.agent-boundary dd { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.page-next { display: flex; justify-content: flex-end; padding: 40px clamp(18px, 5vw, 78px); }

.receipt-paper { width: min(1080px, calc(100% - 36px)); margin: 70px auto; border: 2px solid var(--ink); background: var(--paper-white); box-shadow: 16px 16px 0 var(--ink); }
.receipt-header { display: grid; grid-template-columns: 160px 1fr 190px; gap: 30px; align-items: center; padding: 36px; border-bottom: 3px solid var(--ink); }
.receipt-logo { display: flex; align-items: center; gap: 10px; }
.receipt-logo span { width: 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--ink); font-weight: 700; }
.receipt-logo strong { letter-spacing: .12em; }
.receipt-header p { margin: 0; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.receipt-header h1 { margin: 5px 0 0; font-family: "IBM Plex Mono", monospace; font-size: 42px; font-weight: 500; }
.receipt-verdict { display: flex; align-items: center; gap: 11px; padding: 14px; background: var(--lime); }
.receipt-verdict svg { width: 29px; }
.receipt-verdict span { display: grid; gap: 3px; }
.receipt-verdict small { font-size: 8px; }
.receipt-verdict strong { font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.receipt-meta { display: flex; justify-content: space-between; gap: 18px; padding: 14px 36px; border-bottom: 1px solid var(--rule); color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.receipt-identifiers { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); }
.receipt-identifiers > div { min-width: 0; padding: 22px 36px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.receipt-identifiers > div:nth-child(even) { border-right: 0; }
.receipt-identifiers > div:nth-last-child(-n + 2) { border-bottom: 0; }
.receipt-identifiers span { display: block; margin-bottom: 7px; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.receipt-identifiers strong, .receipt-identifiers code { font-family: "IBM Plex Mono", monospace; font-size: 10px; overflow-wrap: anywhere; }
.receipt-accounting { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 18px; align-items: center; padding: 28px 36px; color: white; background: var(--ink); }
.receipt-accounting span, .receipt-accounting strong { display: block; }
.receipt-accounting span { color: #b7bab2; font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.receipt-accounting strong { margin-top: 7px; font-family: "IBM Plex Mono", monospace; font-size: 17px; font-weight: 500; }
.receipt-accounting > b { color: #777b73; font-weight: 400; }
.receipt-accounting .receipt-return strong { color: var(--lime); }
.receipt-block { padding: 34px 36px; border-bottom: 1px solid var(--ink); }
.receipt-block-title { display: flex; align-items: center; gap: 13px; }
.receipt-block-title > span { color: var(--cobalt); font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.receipt-block-title h2 { margin: 0; font-size: 22px; font-weight: 500; }
.receipt-block-title p { margin-left: auto; color: var(--muted); font-size: 9px; }
.receipt-evidence { margin-top: 24px; border-top: 2px solid var(--ink); }
.receipt-evidence > div { min-height: 56px; display: grid; grid-template-columns: 1.1fr 1fr .8fr 30px; gap: 15px; align-items: center; border-bottom: 1px solid var(--rule); }
.receipt-evidence span { font-size: 10px; font-weight: 600; }
.receipt-evidence code, .receipt-evidence em { font-family: "IBM Plex Mono", monospace; font-size: 8px; font-style: normal; }
.receipt-evidence code { color: var(--muted); }
.receipt-evidence em { width: fit-content; padding: 5px 7px; border: 1px solid var(--rule); }
.receipt-evidence a { width: 30px; height: 30px; display: grid; place-items: center; }
.receipt-evidence a svg { width: 16px; }
.receipt-evidence .evidence-verified { background: var(--green-soft); }
.evidence-verified em { color: var(--green); border-color: var(--green); }
.receipt-recovery-block { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.receipt-recovery-block .receipt-block-title { grid-column: 1 / -1; }
.receipt-failure, .receipt-success { display: flex; gap: 13px; padding: 18px; border-left: 4px solid var(--coral); background: var(--coral-soft); }
.receipt-success { border-left-color: var(--green); background: var(--green-soft); }
.receipt-failure > svg, .receipt-success > svg { width: 23px; flex: 0 0 auto; color: #a82920; }
.receipt-success > svg { color: var(--green); }
.receipt-failure span, .receipt-success span { color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 8px; }
.receipt-failure strong, .receipt-success strong { display: block; margin-top: 5px; font-size: 11px; }
.receipt-failure p, .receipt-success p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.receipt-limitations ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 35px; margin: 22px 0 0; padding-left: 18px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.receipt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 28px 36px; }
.primary-control--ink { color: white; background: var(--ink); }
.receipt-actions > a { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--cobalt); font-size: 9px; font-weight: 600; }
.receipt-actions > a svg { width: 15px; }

.site-footer { min-height: 72px; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 0 clamp(18px, 4vw, 58px); border-top: 1px solid var(--ink); font-family: "IBM Plex Mono", monospace; color: var(--muted); font-size: 8px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: 340px; padding: 13px 16px; border: 2px solid var(--ink); color: var(--ink); background: var(--lime); box-shadow: 7px 7px 0 var(--ink); font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 160ms ease, transform 160ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 190px minmax(0, 1fr); }
  .network-mark { display: none; }
  .hero { grid-template-columns: 80px 1fr; }
  .outcome-seal { grid-column: 2; width: min(100%, 420px); min-height: 260px; }
  .execution-story, .file-layout, .evidence-coverage { grid-template-columns: 1fr; }
  .story-heading { position: static; }
  .failure-section { grid-template-columns: 80px 1fr; }
  .recovery-explanation { grid-column: 2; }
  .studio-layout { grid-template-columns: 1fr; }
  .workflow-canvas, .keeper-record, .covenant-sheet { border-right: 0; border-bottom: 1px solid var(--ink); }
  .policy-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .policy-form > .overline, .policy-form > .primary-control, .policy-form > .disabled-control { grid-column: 1 / -1; }
  .responsibility-map { grid-template-columns: 1fr 20px 1fr 20px 1fr 20px 1fr; padding-inline: 24px; }
  .responsibility-map article { padding: 15px; }
  .capital-proof { grid-template-columns: 1fr; }
  .agent-boundary { grid-template-columns: 1fr 1fr; }
  .agent-boundary dl { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .truth-strip { grid-template-columns: 1fr auto; }
  .truth-strip span:last-child { display: none; }
  .site-header { display: flex; flex-wrap: wrap; padding-block: 14px; }
  .site-header nav { width: 100%; justify-content: flex-start; padding-top: 8px; border-top: 1px solid var(--rule); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 55px; }
  .hero-index { display: none; }
  .outcome-seal { grid-column: 1; }
  .accounting-band { grid-template-columns: 1fr; gap: 12px; }
  .accounting-band > b { display: none; }
  .accounting-band div { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
  .accounting-band strong { margin: 0; text-align: right; }
  .tape-row { grid-template-columns: 28px 1fr auto; gap: 12px; padding-block: 14px; }
  .tape-owner { grid-column: 2; }
  .tape-event { grid-column: 2; }
  .tape-proof { grid-column: 3; grid-row: 1 / span 2; }
  .failure-section { grid-template-columns: 1fr; }
  .failure-word { writing-mode: initial; transform: none; }
  .recovery-explanation { grid-column: 1; padding: 30px 0 0; border-left: 0; border-top: 1px solid #b98079; }
  .proof-footer, .product-page-head { align-items: flex-start; flex-direction: column; }
  .workflow-chain, .responsibility-map { grid-template-columns: 1fr; gap: 8px; }
  .workflow-chain > i, .responsibility-map > i { width: 1px; height: 18px; margin: 0 auto; }
  .workflow-chain article, .responsibility-map article { min-height: 155px; }
  .workflow-chain article svg, .responsibility-map article h2 { margin-top: 24px; }
  .saga-table-head { display: none; }
  .saga-table-row { grid-template-columns: 1fr auto; gap: 7px 14px; padding: 18px; }
  .saga-table-row > svg { grid-column: 2; grid-row: 1 / span 6; }
  .keeper-record-layout, .receipt-recovery-block { grid-template-columns: 1fr; }
  .treasury-flow { grid-template-columns: 1fr; gap: 10px; }
  .treasury-flow > i { width: 1px; height: 18px; margin: 0 auto; }
  .treasury-balance { grid-template-columns: 1fr; padding-block: 25px; text-align: left; }
  .treasury-balance code { justify-self: start; overflow-wrap: anywhere; }
  .policy-rules, .observation-measures { grid-template-columns: 1fr 1fr; }
  .policy-rules > div:nth-child(3n) { border-right: 1px solid var(--rule); }
  .policy-rules > div:nth-child(even), .observation-measures article:nth-child(even) { border-right: 0; }
  .policy-principle { grid-template-columns: 1fr; }
  .file-header { grid-template-columns: 1fr; }
  .file-number { padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .file-status { width: 190px; }
  .capital-split { grid-template-columns: 1fr; }
  .capital-split > div { min-height: 90px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .agent-boundary { grid-template-columns: 1fr; }
  .agent-boundary dl { grid-column: auto; }
  .receipt-paper { margin-block: 36px; box-shadow: 8px 8px 0 var(--ink); }
  .receipt-header { grid-template-columns: 1fr; }
  .receipt-verdict { width: fit-content; }
  .receipt-meta { flex-direction: column; }
  .receipt-accounting { grid-template-columns: 1fr; }
  .receipt-accounting > b { display: none; }
  .receipt-accounting > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
  .receipt-accounting strong { margin: 0; }
  .receipt-evidence > div { grid-template-columns: 1fr auto; gap: 7px; padding-block: 12px; }
  .receipt-evidence > div a { grid-column: 2; grid-row: 1 / span 3; }
}

@media (max-width: 560px) {
  .truth-strip { padding-inline: 13px; }
  .site-header { padding-inline: 13px; }
  .wordmark small { display: none; }
  .hero-copy h1, .product-page-head h1, .file-header h1 { font-size: clamp(42px, 13vw, 64px); }
  .hero, .execution-story, .failure-section, .proof-footer, .product-page-head, .covenant-sheet, .state-ledger, .capital-proof, .agent-boundary { padding-inline: 18px; }
  .hero-actions, .primary-control { width: 100%; }
  .outcome-seal { width: calc(100% - 8px); box-shadow: 8px 8px 0 var(--ink); }
  .tape-row { grid-template-columns: 25px 1fr; }
  .tape-proof { grid-column: 2; grid-row: auto; justify-self: start; }
  .proof-footer .link-control { width: 100%; }
  .policy-form { grid-template-columns: 1fr; }
  .policy-form > * { grid-column: 1 !important; }
  .policy-pair { grid-template-columns: 1fr; }
  .explorer-note { grid-template-columns: 1fr; }
  .policy-rules, .observation-measures { grid-template-columns: 1fr; }
  .policy-rules > div, .observation-measures article { border-right: 0 !important; }
  .policy-hash { grid-template-columns: 1fr; }
  .coverage-bars > div { grid-template-columns: 1fr; padding-block: 12px; }
  .coverage-bars em { text-align: left; }
  .identity-rule { grid-template-columns: 1fr auto; padding-block: 14px; }
  .identity-rule code { grid-column: 1 / -1; grid-row: 2; }
  .receipt-identifiers, .receipt-limitations ul { grid-template-columns: 1fr; }
  .receipt-identifiers > div { border-right: 0; border-bottom: 1px solid var(--rule) !important; }
  .receipt-identifiers > div:last-child { border-bottom: 0 !important; }
  .receipt-actions { align-items: stretch; flex-direction: column; }
  .receipt-actions > a { margin-left: 0; }
}

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