:root {
  color-scheme: light;
  --ink: #16130f;
  --muted: #655f55;
  --bg: #eee8d9;
  --paper: #f8f3e8;
  --panel: #171512;
  --line: #b8ae9c;
  --acid: #d8ff2f;
  --violet: #6846e8;
  --monad: #836ef9;
  --red: #c9382c;
  --green: #17864c;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(22, 19, 15, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 19, 15, .035) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 28px, 28px 100%, auto;
  color: var(--ink);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  line-height: 1.5;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

a { color: inherit; }
.topbar, main, footer { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
}
.wordmark { display: flex; gap: 11px; align-items: center; text-decoration: none; }
.wordmark-copy { display: flex; flex-direction: column; line-height: 1; }
.wordmark-copy strong { font-size: 17px; letter-spacing: .11em; }
.wordmark-copy small { margin-top: 5px; color: #4b463e; font-family: ui-monospace, monospace; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.mark {
  width: 34px;
  height: 34px;
  display: block;
}
.network { color: var(--ink); font-family: ui-monospace, monospace; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; display: flex; align-items: center; gap: 9px; }
.network img { width: 22px; height: 22px; }
.primary-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; margin-right: 28px; }
.primary-nav a { position: relative; padding: 7px 0; color: #4b463e; font-family: ui-monospace, monospace; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }

.hero { padding: 58px 0 92px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: clamp(34px, 5vw, 80px); align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow { margin: 0 0 18px; color: var(--red); font-family: ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 900; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 28px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px, 6.6vw, 88px); line-height: .94; letter-spacing: -.055em; font-weight: 700; }
h1 span { color: var(--acid); }
h1 em { color: var(--red); font-style: normal; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .09em; }
.lede { max-width: 680px; color: #3f3a33; font-size: clamp(18px, 2vw, 22px); }
.hero-outcome { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px 18px; max-width: 680px; margin-top: 30px; padding: 14px 16px; color: var(--paper); background: var(--ink); border-left: 7px solid var(--red); box-shadow: 7px 7px 0 rgba(22, 19, 15, .16); }
.hero-outcome span { color: var(--acid); font-family: ui-monospace, monospace; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.hero-outcome strong { font-size: 14px; letter-spacing: .035em; }
.hero-outcome b { grid-row: 1 / 3; grid-column: 3; color: var(--acid); font-family: Georgia, serif; font-size: 34px; line-height: 1; }
.hero-outcome small { grid-column: 1 / 3; color: #e0d9cb; font-size: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { padding: 13px 18px; border: 2px solid var(--ink); background: var(--paper); text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; font-weight: 900; box-shadow: 4px 4px 0 var(--ink); }
.button.primary { background: var(--acid); border-color: var(--ink); color: #111; }
.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.hero-claim { position: relative; min-width: 0; overflow: visible; padding: 30px; color: var(--paper); border: 2px solid var(--ink); background: var(--panel); box-shadow: 14px 14px 0 var(--violet); transform: rotate(.6deg); }
.hero-claim::before { content: "EVIDENCE / 01"; position: absolute; left: -26px; top: 22px; padding: 4px 9px; color: var(--paper); background: var(--red); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .1em; transform: rotate(-90deg) translateX(-100%); transform-origin: left top; }
.case-stamp { position: absolute; z-index: 2; right: 20px; top: 50px; padding: 7px 10px; border: 3px double var(--red); color: var(--red); font-family: ui-monospace, monospace; font-size: 11px; font-weight: 900; line-height: 1.05; letter-spacing: .12em; text-align: center; transform: rotate(7deg); opacity: .86; }
.claim-window-top { display: flex; justify-content: space-between; gap: 12px; color: #d0c8ba; font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .07em; }
.claim-window-top span:last-child { color: var(--acid); text-align: right; }
.hero-card-title { max-width: 340px; margin: 36px 0 30px; font-size: clamp(25px, 3vw, 36px); line-height: 1.08; letter-spacing: -.045em; font-weight: 650; }
.hero-test { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, .13); border-bottom: 1px solid rgba(255, 255, 255, .13); }
.hero-test::after { content: ""; position: absolute; top: -12px; bottom: -12px; left: 50%; width: 3px; transform: rotate(12deg); background: var(--red); pointer-events: none; }
.hero-test-side { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 19px 16px 20px 0; }
.hero-test-challenge { padding-left: 25px; padding-right: 0; }
.hero-test-side span { color: #bdb5a8; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.hero-test-side strong { margin: 11px 0 7px; color: var(--acid); font-family: Georgia, serif; font-size: clamp(76px, 8vw, 112px); line-height: .8; font-weight: 600; letter-spacing: -.08em; }
.hero-test-challenge strong { color: #a28cff; }
.hero-test-side small { color: #d0c8ba; font-size: 12px; }
.hero-claim-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; font-size: 10px; }
.hero-claim-footer span { color: var(--muted); font-family: ui-monospace, monospace; letter-spacing: .03em; }
.hero-claim-footer strong { color: var(--ink); white-space: nowrap; font-size: 11px; }

.proof-shell { padding: clamp(28px, 5vw, 64px); background: var(--panel); border: 1px solid var(--line); }
.chain-role { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: start; margin-bottom: 54px; padding: 18px 20px; border-left: 3px solid var(--violet); background: rgba(141, 114, 255, .07); }
.chain-role span { color: #aa97ff; font-size: 12px; font-weight: 900; letter-spacing: .11em; }
.chain-role p { max-width: 800px; margin: 0; color: #d2d1c9; font-size: 14px; }
.completed-result { display: grid; grid-template-columns: 180px minmax(0, 1.15fr) minmax(0, .85fr); gap: 22px; align-items: start; margin-bottom: 54px; padding: 22px 24px; border: 1px solid rgba(217, 255, 67, .4); background: #202019; }

.case-file-head { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: stretch; margin: 0 0 18px; padding: 26px; color: #201c16; background: #b7a47e; border: 1px solid #77694f; box-shadow: 9px 10px 0 rgba(0,0,0,.18); }
.case-file-head > div:first-child { display: grid; align-content: center; gap: 9px; }
.case-file-head > div:first-child span, .case-file-head > div:first-child small { font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .13em; }
.case-file-head > div:first-child strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 4vw, 48px); line-height: .95; }
.reveal-instrument { padding: 16px; color: var(--paper); background: #181713; border: 1px solid #565047; }
.instrument-meta, .instrument-reading { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.instrument-meta span, .instrument-meta b, .instrument-reading span, .reveal-instrument > small { font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .1em; }
.instrument-meta span { color: var(--acid); }
.instrument-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 16px 0; }
.instrument-track i { height: 8px; background: #4a4740; transition: transform .18s ease; transform-origin: left; }
.instrument-track i.filled { background: var(--acid); transform: scaleY(1.35); }
.instrument-reading strong { color: #fff; font-family: ui-monospace, monospace; font-size: 18px; }
.reveal-instrument > small { display: block; margin-top: 8px; color: #aca69b; }

.phase-stepper { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 28px; border: 1px solid var(--line); background: #11120f; }
.phase-stepper button { min-width: 0; min-height: 116px; padding: 16px; border: 0; border-right: 1px solid var(--line); color: #817c72; background: transparent; text-align: left; cursor: pointer; }
.phase-stepper button:last-child { border-right: 0; }
.phase-stepper button span, .phase-stepper button strong, .phase-stepper button small { display: block; }
.phase-stepper button span { margin-bottom: 24px; color: #767168; font-family: ui-monospace, monospace; font-size: 10px; }
.phase-stepper button strong { color: inherit; font-size: 13px; text-transform: uppercase; }
.phase-stepper button small { margin-top: 6px; color: #716c63; font-family: ui-monospace, monospace; font-size: 9px; }
.phase-stepper button.active { color: var(--paper); background: #24211d; box-shadow: inset 0 4px 0 var(--acid); }
.phase-stepper button.complete { color: #bbb4a8; }
.phase-stepper button.complete span { color: var(--acid); }
.phase-receipt { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-top: 0; background: #1b1916; }
.phase-receipt > div { display: grid; gap: 5px; }
.phase-receipt > div span { color: var(--acid); font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .1em; }
.phase-receipt > div strong { color: var(--paper); font-size: 13px; }
.phase-receipt a { display: grid; justify-items: end; gap: 4px; color: var(--paper); text-decoration: none; }
.phase-receipt code { color: #b8aaff; font-size: 11px; }
.phase-receipt a span { color: var(--acid); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.completed-result span { color: var(--acid); font-size: 12px; font-weight: 900; letter-spacing: .11em; }
.completed-result strong { color: var(--ink); font-size: 17px; line-height: 1.35; }
.completed-result p { margin: 0; color: #d2d1c9; font-size: 13px; }
.proof-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
h2 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.045em; line-height: 1.02; }
.proof-heading h2 { max-width: 650px; margin-bottom: 0; }
.refresh { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 10px 13px; cursor: pointer; white-space: nowrap; }
.refresh:hover { border-color: var(--acid); }
.refresh[disabled] { opacity: .55; cursor: wait; }
.proof-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 16px 0 26px; }
.receipt-link { color: var(--acid); font-size: 13px; font-weight: 700; text-decoration: none; }
.receipt-link:hover { text-decoration: underline; }
.refresh-proof { margin: 0; }

.agreed-rule { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 20px; margin-top: 38px; padding: 16px 18px; border: 1px solid rgba(217, 255, 67, .28); background: rgba(217, 255, 67, .04); }
.agreed-rule > span { color: var(--acid); font-size: 12px; font-weight: 900; letter-spacing: .11em; }
.agreed-rule strong { font-size: 14px; }
.agreed-rule small { color: var(--muted); font-size: 11px; }

.case-summary {
  margin-top: 38px;
  padding: 22px 24px;
  border-left: 3px solid var(--acid);
  background: #171813;
}
.case-summary > p { max-width: 920px; margin-bottom: 0; color: #d2d1c9; font-size: 16px; }
.case-summary > .label { margin-bottom: 9px; color: var(--acid); font-size: 10px; }
.case-summary strong { color: var(--ink); }
.case-summary code { color: var(--acid); font-size: .9em; }
.case-summary .case-limit { margin-top: 12px; color: var(--muted); font-size: 12px; }

.claim-grid { display: grid; grid-template-columns: 1fr 110px 1fr; align-items: stretch; margin: 54px 0 28px; }
.claim-card { padding: 28px; background: #171813; border-top: 3px solid var(--violet); }
.claim-card.challenged { border-color: var(--red); }
.label { margin-bottom: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.metric { margin-bottom: 4px; font-size: clamp(48px, 7vw, 78px); line-height: 1; letter-spacing: -.06em; }
.comparison { color: var(--muted); }
.comparison strong { color: var(--ink); }
.stake { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; font-size: 13px; }
.stake span { color: var(--muted); }
.claim-result { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.claim-result span { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.challenger-result span { background: #555; }
.versus { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; }
.versus b { color: var(--acid); font-size: 36px; }
.stage-value { font-size: clamp(34px, 6vw, 70px); transition: transform .3s ease; }
.replay[data-phase="0"] .challenged, .replay[data-phase="1"] .challenged { opacity: .62; }
.replay[data-phase="2"] .stage-value { color: #ff7468; font-family: ui-monospace, monospace; font-size: clamp(30px, 4.5vw, 56px); letter-spacing: -.04em; }
.replay[data-phase="2"] .challenger-result span { background: var(--acid); }
.replay[data-phase="3"] .agent-result, .replay[data-phase="4"] .agent-result { color: #ff7468; }
.replay[data-phase="3"] .agent-result span, .replay[data-phase="4"] .agent-result span { background: #ff7468; }
.replay[data-phase="3"] .stage-value, .replay[data-phase="4"] .stage-value { color: #ff7468; transform: scale(1.03); transform-origin: left; }
.replay[data-phase="3"] .challenger-result, .replay[data-phase="4"] .challenger-result { color: var(--paper); font-weight: 800; }
.replay[data-phase="3"] .challenger-result span, .replay[data-phase="4"] .challenger-result span { background: #ff7468; }

.payout-rail { position: relative; display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; margin: 0 0 22px; padding: 18px 20px; overflow: hidden; border: 1px solid var(--line); background: #0d0e0c; }
.payout-rail > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.payout-rail > div:last-child { text-align: right; }
.payout-rail span { color: var(--muted); }
.payout-token { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--monad); color: #fff !important; font-size: 9px; font-weight: 950; transform: translateX(-30px); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.payout-rail[data-phase="3"] .payout-token, .payout-rail[data-phase="4"] .payout-token { transform: translateX(30px); }
.payout-rail[data-phase="3"] > div:first-child strong, .payout-rail[data-phase="4"] > div:first-child strong { color: #ff7468; }
.payout-rail[data-phase="3"] > div:last-child strong, .payout-rail[data-phase="4"] > div:last-child strong { color: var(--green); }
.replay-control { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 24px; padding: 20px 22px; margin-bottom: 30px; background: #181914; border-left: 3px solid var(--acid); }
.replay-control p { margin: 0; color: #d2d1c9; font-size: 15px; }
.replay-control small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.replay-control button { cursor: pointer; }
.replay-summary { margin: 0 0 30px; }
.proof-result[hidden] { display: none; }

.verdict { display: flex; gap: 18px; align-items: center; padding: 20px; border: 1px solid var(--line); }
.verdict-icon { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #24251f; color: var(--acid); font-weight: 900; }
.verdict p, .verdict h3 { margin-bottom: 2px; }
.verdict h3 { font-size: 19px; }
.verdict #verdict-detail { color: var(--muted); font-size: 13px; }
.verdict[data-state="success"] { border-color: rgba(127, 240, 165, .55); }
.verdict[data-state="success"] .verdict-icon { color: #092811; background: var(--green); }
.verdict[data-state="error"] { border-color: rgba(255, 107, 86, .55); }
.verdict[data-state="error"] .verdict-icon { color: #2b0a06; background: var(--red); }

.receipt-details { border-top: 1px solid var(--line); padding-top: 18px; }
.receipt-details summary { cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 700; }
.receipt-details > p { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.timeline { margin: 18px 0 30px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.tx-step { min-width: 0; padding: 20px; border-right: 1px solid var(--line); }
.tx-step:last-child { border-right: 0; }
.tx-step:nth-child(4n) { border-right: 0; }
.tx-step:nth-child(n+5) { border-top: 1px solid var(--line); }
.tx-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tx-step .number { color: var(--muted); font-size: 11px; }
.tx-step .status { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.tx-step.ok .status { background: var(--green); }
.tx-step h3 { margin: 24px 0 5px; font-size: 17px; }
.tx-step p { color: var(--muted); font-size: 12px; }
.tx-verification { display: block; margin: -5px 0 10px; color: #aaa397; font-family: ui-monospace, monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.tx-step.ok .tx-verification { color: var(--green); }
.tx-step.unverified .tx-verification { color: #ff7468; }
.tx-step a { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--acid); font-size: 11px; text-decoration: none; }

.technical { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); }
.technical summary { cursor: pointer; font-size: 13px; }
.technical dl { display: grid; gap: 10px; margin: 20px 0 0; }
.technical dl div { display: grid; grid-template-columns: 130px 1fr; min-width: 0; }
.technical dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.technical dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-family: ui-monospace, monospace; font-size: 12px; }
.technical dd { display: flex; align-items: center; gap: 10px; }
.technical dd a { min-width: 0; overflow-wrap: anywhere; color: #b8aaff; }
.technical dd code { font: inherit; }
.copy-value { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--line); color: var(--paper); background: transparent; font-size: 9px; cursor: pointer; text-transform: uppercase; }
.technical.explainer { margin-top: 18px; }
.technical.explainer p { max-width: 760px; margin: 16px 0 0; color: #c2c1ba; font-size: 14px; }

.why { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; padding: 140px 0 100px; }
.why h2 { margin-bottom: 0; }
.why-copy { color: #c2c1ba; font-size: 18px; }
.why-copy p + p { margin-top: 28px; }
.portability { padding: 88px 0 110px; }
.portability-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px 80px; align-items: start; }
.portability-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -8px; }
.portability-intro h2 { margin-bottom: 0; }
.portability-intro > div { max-width: 540px; color: var(--muted); font-size: 17px; }
.portability-intro > div p:last-child { margin-bottom: 0; }
.architecture { display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: stretch; margin-top: 48px; }
.architecture article { min-width: 0; min-height: 180px; padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.architecture article.adapter-node { border-color: rgba(141, 114, 255, .65); background: #e4dcf5; }
.architecture > b { display: grid; place-items: center; color: var(--acid); font-size: 25px; }
.architecture span { color: var(--acid); font-family: ui-monospace, monospace; font-size: 12px; font-weight: 800; }
.architecture strong { display: block; margin: 48px 0 9px; font-size: 21px; }
.architecture small { display: block; color: var(--muted); font-size: 12px; }
.portability-limit { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.collaboration .fit-grid { margin-top: 32px; }
.collaboration .receipt-details { margin-top: 28px; }
.collaboration-receipts { padding-left: 22px; }
.collaboration-receipts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.collaboration-receipts a { color: var(--ink); overflow-wrap: anywhere; text-underline-offset: 3px; }
.collaboration-receipts small { display: block; margin-top: 6px; color: var(--muted); font-family: ui-monospace, monospace; }
.challenger-lab { display: grid; grid-template-columns: minmax(0,.9fr) minmax(420px,1.1fr); gap: clamp(36px,7vw,100px); align-items: center; padding: 110px 0; }
.lab-copy h2 { max-width: 620px; }
.lab-copy > p:not(.eyebrow) { max-width: 570px; color: #4b463e; font-size: 17px; }
.lab-warning { margin-top: 28px; padding: 16px 18px; border-left: 4px solid var(--violet); background: #dfd5c1; font-size: 13px !important; }
.lab-panel { position: relative; padding: 30px; color: var(--paper); background: var(--ink); border: 1px solid #474138; box-shadow: 10px 10px 0 #b8a57f; }
.lab-readout { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 18px; padding-bottom: 24px; border-bottom: 1px solid #4b463e; }
.lab-readout span, .lab-readout small, .lab-panel label { font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .1em; }
.lab-readout strong { grid-row: 1 / 3; grid-column: 2; color: #b8aaff; font-family: Georgia, serif; font-size: clamp(42px,6vw,72px); line-height: .85; }
.lab-readout small { color: #aaa397; }
.lab-panel label { display: block; margin: 28px 0 12px; color: var(--acid); }
.lab-panel input[type="range"] { width: 100%; accent-color: var(--violet); }
.lab-scale { position: relative; display: flex; justify-content: space-between; margin-top: 8px; color: #aaa397; font-family: ui-monospace, monospace; font-size: 9px; }
.lab-scale b { position: absolute; left: 49.76%; color: var(--acid); font-weight: 500; transform: translateX(-50%); }
.lab-verdict { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 28px; padding: 15px 17px; border: 1px solid #635d54; }
.lab-verdict span { color: #aaa397; font-size: 9px; letter-spacing: .1em; }
.lab-verdict strong { color: #ff7468; }
.lab-verdict[data-result="0"] strong { color: var(--green); }
.monad-thesis { padding: 104px 0; color: var(--paper); background: var(--ink); border-top: 8px solid var(--violet); box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax); }
.monad-kicker { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; color: var(--acid); font-family: ui-monospace, monospace; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.monad-kicker img { width: 28px; height: 28px; }
.monad-thesis-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: start; }
.monad-thesis-grid h2 { max-width: 670px; margin-bottom: 0; }
.monad-thesis-grid > div { max-width: 520px; color: #d4cec2; font-size: 18px; }
.monad-proof { padding: 18px 20px; border-left: 4px solid var(--acid); background: #24211d; color: var(--paper); font-size: 14px; }
.monad-thesis .steps { margin-top: 60px; border-color: #5b554c; }
.monad-thesis .steps article + article { border-color: #5b554c; }
.monad-thesis .steps span { color: var(--acid); }
.monad-thesis .steps p { color: #aaa397; }
.fit { padding: 110px 0; }
.fit-heading { max-width: 850px; }
.fit-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; border: 1px solid var(--line); }
.fit-grid article { min-width: 0; min-height: 245px; padding: 22px; border-right: 1px solid var(--line); }
.fit-grid article:last-child { border-right: 0; }
.fit-grid span { color: var(--violet); font-family: ui-monospace, monospace; font-size: 12px; font-weight: 800; }
.fit-grid h3 { margin: 68px 0 10px; font-size: 18px; }
.fit-grid p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.fit-note { max-width: 760px; margin: 20px 0 0; padding-left: 16px; border-left: 3px solid var(--red); color: #4b463e; font-size: 14px; }
.economic-gap { padding: 26px 0 110px; }
.gap-intro { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px 80px; align-items: start; margin-bottom: 44px; }
.gap-intro .eyebrow { grid-column: 1 / -1; margin-bottom: -16px; }
.gap-intro h2 { margin-bottom: 0; }
.gap-intro > p:last-child { max-width: 520px; color: #c2c1ba; font-size: 18px; }
.gap-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.gap-options article { min-height: 240px; padding: 25px; background: var(--bg); }
.gap-options article.selected { position: relative; background: #171813; box-shadow: inset 0 3px 0 var(--acid); }
.gap-options span { color: var(--muted); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .12em; }
.gap-options .selected span { color: var(--acid); }
.gap-options h3 { margin: 76px 0 10px; font-size: 20px; }
.gap-options p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps article { padding: 28px 24px 28px 0; }
.steps article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.steps span { color: var(--acid); font-family: ui-monospace, monospace; font-size: 13px; font-weight: 800; }
.steps h3 { margin: 46px 0 8px; }
.steps p { color: var(--muted); font-size: 14px; }
.boundary { max-width: none; padding: 110px 0 90px; }
.boundary p:not(.eyebrow) { max-width: 680px; color: var(--muted); font-size: 18px; }
.limits-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 34px 0 90px; border: 1px solid var(--line); }
.limits-grid article { min-height: 190px; padding: 26px; }
.limits-grid article + article { border-left: 1px solid var(--line); }
.limits-grid span { color: var(--violet); font-family: ui-monospace, monospace; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.limits-grid p { margin: 55px 0 0 !important; color: #4b463e !important; font-size: 15px !important; }
.boundary-kicker { margin-top: 0; }
.boundary a { display: inline-block; margin-top: 20px; color: var(--acid); font-weight: 750; text-decoration: none; }
.closing-lockup { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 38px; align-items: center; margin-top: 70px; padding: 28px 32px; color: var(--paper); background: var(--ink); border-left: 8px solid var(--red); box-shadow: 9px 9px 0 var(--violet); }
.closing-lockup strong { font-size: clamp(28px, 4vw, 50px); letter-spacing: .08em; }
.closing-lockup span { color: #d4cec2; font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 2.5vw, 28px); line-height: 1.15; }
.closing-lockup a { margin-top: 0; color: var(--acid); white-space: nowrap; }
footer { padding: 30px 0 42px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
footer p { margin: 0; }

:where(a, button, input, summary):focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }

.docs-back { color: var(--acid); font-size: 13px; font-weight: 700; text-decoration: none; }
.docs-page { max-width: 980px; }
.docs-hero { padding: 92px 0 78px; }
.docs-hero h1 { max-width: 900px; font-size: clamp(48px, 7vw, 84px); }
.docs-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.docs-grid article { min-height: 230px; padding: 30px; }
.docs-grid article:nth-child(odd) { border-right: 1px solid var(--line); }
.docs-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.docs-grid span { color: var(--violet); font-family: ui-monospace, monospace; font-size: 12px; font-weight: 800; }
.docs-grid h2 { margin: 52px 0 10px; font-size: 28px; }
.docs-grid p, .docs-section > p { color: var(--muted); }
.docs-section { padding: 110px 0; border-bottom: 1px solid var(--line); }
.docs-section > p { max-width: 760px; font-size: 18px; }
.docs-section pre { margin: 38px 0; padding: 24px; overflow-x: auto; border: 1px solid var(--line); background: var(--panel); color: #d9d8d0; font-size: 13px; line-height: 1.7; }
.docs-callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 38px 0; background: var(--line); border: 1px solid var(--line); }
.docs-callouts article { padding: 24px; background: var(--bg); }
.docs-callouts h3 { font-size: 16px; }
.docs-callouts p { margin-bottom: 0; color: #4b463e; font-size: 13px; }
.docs-callouts code { color: var(--violet); font-weight: 750; }
.checklist-title { margin-top: 54px; }
.docs-checklist { display: grid; gap: 12px; max-width: 760px; padding-left: 22px; color: #4b463e; }
.docs-checklist li::marker { color: var(--violet); }
.docs-note { margin-top: 42px; padding: 20px 22px; border-left: 3px solid var(--violet); background: var(--panel); font-size: 14px !important; }

/* The replay is the dark evidence room inside the paper dossier. */
.proof-shell {
  color: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(22, 19, 15, .14);
}
.proof-shell h2,
.proof-shell h3,
.proof-shell strong,
.proof-shell .comparison strong,
.proof-shell .technical dd,
.proof-shell .refresh { color: var(--paper); }
.proof-shell .completed-result strong { color: var(--paper); }
.proof-shell .completed-result p,
.proof-shell .chain-role p,
.proof-shell .replay-control p,
.proof-shell .case-summary > p,
.proof-shell .technical.explainer p { color: #d4cec2; }
.proof-shell .claim-card { background: #24211d; }
.proof-shell .payout-rail { background: #100f0d; }
.proof-shell .replay-control,
.proof-shell .case-summary { background: #24211d; }
.proof-shell .button { color: var(--ink); }
.proof-shell .completed-result {
  border: 1px solid rgba(216, 255, 47, .48);
  background: #202019;
}
.proof-shell .completed-result span { color: var(--acid); }
.proof-shell .chain-role { border-left-color: #9c83ff; background: rgba(104, 70, 232, .12); }
.proof-shell .chain-role span { color: #9c83ff; }
.proof-shell .eyebrow { color: #ff7468; }
.proof-shell .label,
.proof-shell .comparison,
.proof-shell .stake span,
.proof-shell .claim-result,
.proof-shell .versus,
.proof-shell .agreed-rule small,
.proof-shell .case-summary .case-limit,
.proof-shell .replay-control small,
.proof-shell .receipt-details > p,
.proof-shell .tx-step .number,
.proof-shell .tx-step p,
.proof-shell .technical,
.proof-shell .technical dt { color: #bdb5a8; }

.why,
.portability,
.monad-thesis,
.fit,
.economic-gap,
.steps,
.boundary { position: relative; }
.why::before,
.portability::before,
.monad-thesis::before,
.fit::before,
.economic-gap::before,
.boundary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 72px;
  height: 4px;
  background: var(--red);
}
.monad-thesis::before { display: none; }
.architecture article,
.gap-options article,
.docs-callouts article { background: var(--paper); }
.architecture article.adapter-node {
  border-color: var(--violet);
  background: #e4dcf5;
}
.fit-grid,
.gap-options,
.architecture article { box-shadow: 4px 4px 0 rgba(22, 19, 15, .08); }
.gap-options article.selected { background: var(--ink); }
.gap-options .selected h3 { color: var(--paper); }
.gap-options .selected p { color: #cfc8bb; }
.steps span,
.architecture span { color: var(--red); }
.architecture > b { color: var(--violet); }
.boundary a,
.docs-back { color: var(--red); }
.docs-note { color: var(--paper) !important; }
footer { border-top: 2px solid var(--ink); }

@media (max-width: 800px) {
  .topbar { height: auto; min-height: 82px; flex-wrap: wrap; gap: 12px 20px; padding: 15px 0; }
  .primary-nav { order: 3; width: 100%; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); justify-content: space-between; gap: 10px; }
  .primary-nav a { font-size: 10px; }
  .hero { padding-top: 42px; grid-template-columns: 1fr; gap: 26px; }
  .hero h1 { margin-bottom: 22px; }
  .hero-actions { margin-top: 26px; }
  .hero-claim { max-width: 520px; transform: none; }
  .proof-heading, .why { display: block; }
  .refresh { margin-top: 22px; }
  .claim-grid { grid-template-columns: 1fr; }
  .versus { min-height: 80px; }
  .timeline, .steps { grid-template-columns: 1fr 1fr; }
  .tx-step:nth-child(n) { border-top: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .tx-step:nth-child(2n), .tx-step:last-child { border-right: 0; }
  .tx-step:last-child { border-bottom: 0; }
  .why-copy { margin-top: 36px; }
  .portability-intro { grid-template-columns: 1fr; gap: 20px; }
  .monad-thesis-grid { grid-template-columns: 1fr; gap: 22px; }
  .architecture { grid-template-columns: 1fr; gap: 0; }
  .architecture > b { min-height: 50px; transform: rotate(90deg); }
  .fit-grid { grid-template-columns: 1fr; }
  .fit-grid article { min-height: 210px; border-bottom: 1px solid var(--line); }
  .fit-grid article:nth-child(n) { border-right: 0; }
  .fit-grid article:last-child { border-bottom: 0; }
  .gap-intro { grid-template-columns: 1fr; gap: 20px; }
  .gap-options { grid-template-columns: 1fr; }
  .gap-options article { min-height: 0; }
  .gap-options h3 { margin-top: 38px; }
  .steps article:nth-child(3) { border-left: 0; }
  .steps article { padding-left: 18px; }
  .docs-callouts { grid-template-columns: 1fr; }
  .agreed-rule { grid-template-columns: 1fr; gap: 7px; }
  .chain-role { grid-template-columns: 1fr; gap: 7px; }
  .completed-result { grid-template-columns: 1fr; gap: 10px; }
  .case-file-head { grid-template-columns: 1fr; }
  .phase-stepper { grid-template-columns: 1fr 1fr; }
  .phase-stepper button:nth-child(2n) { border-right: 0; }
  .phase-stepper button:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .phase-receipt { grid-template-columns: 1fr; }
  .phase-receipt a { justify-items: start; }
  .payout-rail { grid-template-columns: 1fr 72px 1fr; }
  .payout-rail > div { display: block; }
  .payout-rail > div strong { display: block; margin-top: 4px; }
  .payout-token { transform: translateX(-18px); }
  .payout-rail[data-phase="3"] .payout-token, .payout-rail[data-phase="4"] .payout-token { transform: translateX(18px); }
  .challenger-lab { grid-template-columns: 1fr; }
  .closing-lockup { grid-template-columns: 1fr; }
  .closing-lockup a { justify-self: start; }
}

@media (max-width: 520px) {
  .topbar, main, footer { width: min(calc(100% - 24px), var(--max)); }
  .network { font-size: 11px; }
  .wordmark-copy small { display: none; }
  .network span { display: none; }
  .proof-shell { padding: 22px 16px; }
  .timeline, .steps { grid-template-columns: 1fr; }
  .tx-step:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .tx-step:last-child { border-bottom: 0; }
  .steps article + article, .steps article:nth-child(3) { border-left: 0; }
  .technical dl div { grid-template-columns: 1fr; gap: 4px; }
  footer { display: block; }
  footer p + p { margin-top: 7px; }
  .docs-hero { padding: 60px 0 50px; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-grid article { min-height: 0; }
  .docs-grid article:nth-child(odd) { border-right: 0; }
  .docs-grid article { border-bottom: 1px solid var(--line); }
  .docs-grid article:last-child { border-bottom: 0; }
  .docs-grid h2 { margin-top: 28px; }
  .docs-section { padding: 72px 0; }
  .fit-grid article:nth-child(n) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .fit-grid article:last-child { border-bottom: 0; }
  .fit-grid h3 { margin-top: 34px; }
  .replay-control { grid-template-columns: 1fr; }
  .replay-control .button { width: 100%; margin-top: 8px; }
  .case-summary .case-limit { font-size: 14px; line-height: 1.55; }
  .payout-rail { grid-template-columns: 1fr; gap: 16px; }
  .payout-token { justify-self: center; transform: rotate(90deg) translateX(-8px); }
  .payout-rail[data-phase="3"] .payout-token, .payout-rail[data-phase="4"] .payout-token { transform: rotate(90deg) translateX(12px); }
  .case-file-head { padding: 18px; }
  .phase-stepper { grid-template-columns: 1fr; }
  .phase-stepper button:nth-child(n) { min-height: 88px; border-right: 0; border-bottom: 1px solid var(--line); }
  .phase-stepper button:last-child { grid-column: auto; border-bottom: 0; }
  .phase-stepper button span { margin-bottom: 10px; }
  .phase-receipt code { overflow-wrap: anywhere; }
  .challenger-lab { padding: 76px 0; }
  .lab-panel { padding: 20px; box-shadow: 6px 6px 0 #b8a57f; }
  .lab-readout { grid-template-columns: 1fr; }
  .lab-readout strong { grid-row: auto; grid-column: auto; margin: 8px 0; }
  .limits-grid { grid-template-columns: 1fr; }
  .limits-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .technical dd { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .payout-token, .stage-value { transition: none; }
}
