@font-face {
  font-family: "IBM VGA 8x16";
  src: url("Web437_IBM_VGA_8x16.woff") format("woff");
  font-display: swap;
}

:root {
  --black: #000;
  --panel: #070807;
  --line: #303330;
  --line-hi: #595d58;
  --text: #aaa;
  --dim: #656965;
  --white: #f1f1ec;
  --green: #00aa00;
  --green-hi: #55ff55;
  --yellow: #ffff55;
  --red: #ff5555;
  --coral: #d56b4f;
  --blue: #5555ff;
  --cell: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: "IBM VGA 8x16", "Courier New", monospace;
  font-size: 16px;
  line-height: 1;
  image-rendering: pixelated;
}
::selection { color: #000; background: var(--green-hi); }
a { color: var(--green); text-decoration: none; }
a:hover, a:focus-visible { color: var(--yellow); outline: none; }
button, input, textarea { font: inherit; }
button { border-radius: 0; }
.skip { position: fixed; left: 8px; top: -50px; z-index: 100; padding: 8px; color: #000; background: var(--yellow); }
.skip:focus { top: 8px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: stretch;
  border-bottom: 1px solid var(--line-hi);
  background: rgba(0,0,0,.96);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-right: 1px solid var(--line); color: var(--white); letter-spacing: 2px; }
.brand img { width: 34px; height: 34px; object-fit: cover; }
.brand:hover { color: var(--coral); }
.topbar nav { display: flex; min-width: 0; }
.topbar nav a { display: grid; place-items: center; min-width: 108px; padding: 0 16px; border-right: 1px solid var(--line); color: var(--text); text-transform: uppercase; }
.topbar nav a:hover, .topbar nav a.active { color: #000; background: var(--green); }
.top-actions { display: flex; align-items: stretch; border-left: 1px solid var(--line); }
.top-actions > * { display: grid; place-items: center; padding: 0 16px; border-right: 1px solid var(--line); }
.top-actions .ca { color: var(--yellow); min-width: 92px; }
.top-actions .social-icon { width: 58px; padding: 0; color: var(--text); }
.social-icon svg { display: block; width: 19px; height: 19px; }
.social-icon svg { fill: currentColor; stroke: none; }
.wallet-trigger { min-width: 174px; border: 0; color: #000; background: var(--green); cursor: pointer; }
.wallet-trigger:hover, .wallet-trigger:focus-visible { background: var(--yellow); outline: none; }
.wallet-trigger.connected { color: var(--green-hi); background: #071008; }
.wallet-trigger.authenticated { color: #000; background: var(--green-hi); }
.wallet-dialog { width: min(620px,calc(100vw - 30px)); padding: 0; border: 1px solid var(--line-hi); border-radius: 0; color: var(--text); background: #000; box-shadow: 14px 14px 0 rgba(0,0,0,.65); }
.wallet-dialog::backdrop { background: rgba(0,0,0,.82); }
.wallet-dialog-head { display: flex; align-items: stretch; justify-content: space-between; min-height: 92px; border-bottom: 1px solid var(--line-hi); }
.wallet-dialog-head > div { padding: 18px 20px; }
.wallet-dialog-head small { color: var(--coral); }
.wallet-dialog-head h2 { margin: 10px 0 0; font-size: 28px; letter-spacing: -1px; text-transform: none; }
.wallet-dialog-head > button { width: 72px; border: 0; border-left: 1px solid var(--line); color: var(--text); background: #080908; cursor: pointer; }
.wallet-picker { padding: 20px; }
.wallet-picker > p { margin-bottom: 18px; line-height: 1.4; }
.wallet-list { border-top: 1px solid var(--line-hi); }
.wallet-option { width: 100%; min-height: 58px; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); color: var(--white); background: #020302; text-align: left; cursor: pointer; }
.wallet-option:hover, .wallet-option:focus-visible { color: #000; background: var(--green); outline: none; }
.wallet-option i { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; font-style: normal; }
.wallet-option small { color: var(--dim); }
.wallet-option:hover small { color: #001900; }
.wallet-empty { display: grid; gap: 10px; padding: 25px 16px; border: 1px solid var(--line); }
.wallet-empty b { color: var(--yellow); font-weight: normal; }
.wallet-refresh { width: 100%; min-height: 44px; margin-top: 14px; border: 1px solid var(--line); color: var(--text); background: #080908; cursor: pointer; }
.wallet-refresh:hover { color: #000; background: var(--yellow); }
.wallet-session { padding: 22px; }
.wallet-session > span, .wallet-session > strong, .wallet-session > small { display: block; }
.wallet-session > span { color: var(--dim); }
.wallet-session > strong { margin: 18px 0; color: var(--green-hi); font-size: 18px; font-weight: normal; overflow-wrap: anywhere; }
.wallet-session > small { line-height: 1.4; }
.wallet-session > div { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 20px; background: var(--line); }
.wallet-session button { min-height: 46px; border: 0; color: var(--white); background: #101210; cursor: pointer; }
.wallet-session button:first-child { color: #000; background: var(--green); }
.wallet-error { min-height: 22px; margin: 0; padding: 0 20px 16px; color: var(--red); line-height: 1.35; }
.contract-strip { min-height: 44px; display: grid; grid-template-columns: 280px minmax(220px,1fr) 210px 120px; align-items: stretch; border-bottom: 1px solid var(--line-hi); background: #050605; }
.contract-strip > * { display: grid; align-items: center; padding: 8px 14px; border-right: 1px solid var(--line); }
.contract-strip > *:last-child { border-right: 0; }
.contract-strip > span:first-child { color: var(--coral); white-space: nowrap; }
.contract-strip code { color: var(--yellow); font: inherit; overflow-wrap: anywhere; }
.contract-state { color: var(--dim); }
.contract-strip button { border: 0; color: #000; background: var(--yellow); cursor: pointer; }
.contract-strip button:hover, .contract-strip button:focus-visible { background: var(--green-hi); outline: none; }

main { overflow: hidden; }
.hero {
  min-height: calc(100vh - 108px);
  display: grid;
  grid-template-columns: minmax(420px, .88fr) minmax(560px, 1.12fr);
  border-bottom: 1px solid var(--line-hi);
}
.hero-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(32px,5vw,88px); border-right: 1px solid var(--line-hi); }
.hero-copy::before { content: "00:ROOT"; position: absolute; top: 18px; left: 20px; color: var(--dim); }
.kicker { margin: 0 0 28px; color: var(--coral); letter-spacing: 1px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 32px; color: var(--white); font-size: clamp(48px,5.7vw,92px); line-height: .87; font-weight: normal; letter-spacing: -4px; }
h1 span { color: var(--green-hi); }
.lead { max-width: 690px; margin-bottom: 28px; color: var(--white); font-size: clamp(18px,1.45vw,24px); line-height: 1.35; }
.thesis { max-width: 660px; color: var(--text); line-height: 1.45; }
.hero-rule { display: grid; grid-template-columns: 1fr 16px 80px; gap: 8px; align-items: center; height: 17px; margin: 4px 0 26px; }
.hero-rule span { border-top: 1px solid var(--line-hi); }
.hero-rule i { width: 9px; height: 9px; background: var(--coral); }
.hero-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; }
.command { color: var(--green-hi); }
.command.muted { color: var(--text); }

.kernel-monitor { align-self: center; width: calc(100% - 48px); max-width: 940px; margin: 24px; border: 1px solid var(--line-hi); background: #000; }
.kernel-head { display: grid; grid-template-columns: 1fr 150px 100px; border-bottom: 1px solid var(--line-hi); color: var(--dim); }
.kernel-head span { padding: 8px 10px; border-right: 1px solid var(--line); }
.kernel-head span:last-child { border-right: 0; color: var(--yellow); text-align: right; }
.kernel-registers { display: grid; grid-template-columns: repeat(6,1fr); border-bottom: 1px solid var(--line-hi); }
.kernel-registers span { display: grid; grid-template-columns: 44px 1fr; padding: 8px 10px; border-right: 1px solid var(--line); }
.kernel-registers span:last-child { border-right: 0; }
.kernel-registers i { color: var(--dim); font-style: normal; }
.kernel-registers b { color: var(--white); font-weight: normal; }
.kernel-monitor.running .kernel-registers span { background: #030803; }
.kernel-monitor.running .kernel-registers b { color: var(--green-hi); }
.kernel-workspace { display: grid; grid-template-columns: minmax(0,1fr) 260px; min-height: 386px; border-bottom: 1px solid var(--line-hi); }
.memory-pane { min-width: 0; border-right: 1px solid var(--line-hi); }
.memory-pane header, .policy-pane header { display: flex; justify-content: space-between; padding: 7px 10px; border-bottom: 1px solid var(--line); color: var(--dim); }
.memory-pane pre { min-height: 350px; margin: 0; padding: 15px 12px; overflow: hidden; color: var(--text); background: repeating-linear-gradient(0deg,#000 0,#000 31px,#090a09 32px); font: inherit; line-height: 2; white-space: pre; }
.memory-pane pre i { color: var(--coral); font-style: normal; }
.memory-pane pre code { font: inherit; }
.kernel-monitor.running .memory-pane pre { color: var(--green); }
.policy-pane ol { margin: 0; padding: 0; list-style: none; }
.policy-pane li { display: grid; grid-template-columns: 34px 64px 1fr; min-height: 34px; border-bottom: 1px dotted #242624; align-items: center; }
.policy-pane li > * { padding: 0 8px; }
.policy-pane em { color: var(--dim); font-style: normal; }
.policy-pane code { color: var(--green-hi); font: inherit; }
.policy-pane span { color: var(--text); }
.kernel-monitor.running .policy-pane li.active { color: #000; background: var(--green); }
.kernel-monitor.running .policy-pane li.active code, .kernel-monitor.running .policy-pane li.active span, .kernel-monitor.running .policy-pane li.active em { color: #000; }
.kernel-trace { min-height: 122px; }
.trace-head, .kernel-trace li { display: grid; grid-template-columns: 48px 90px 1fr; }
.trace-head { padding: 6px 10px; border-bottom: 1px solid var(--line); color: var(--dim); }
.kernel-trace ol { margin: 0; padding: 6px 10px; list-style: none; }
.kernel-trace li { line-height: 1.45; }
.kernel-trace li time { color: var(--dim); }
.kernel-trace li span { color: var(--green); }
.kernel-trace li b { color: var(--text); font-weight: normal; }
.kernel-foot { display: grid; grid-template-columns: 1fr 1fr 240px; min-height: 44px; border-top: 1px solid var(--line-hi); }
.kernel-foot > * { display: grid; place-items: center start; padding: 8px 10px; border-right: 1px solid var(--line); color: var(--dim); }
.kernel-foot button, .proof-machine button { border: 0; color: #000; background: var(--green); cursor: pointer; place-items: center; }
.kernel-foot button:hover, .kernel-foot button:focus-visible, .proof-machine button:hover, .proof-machine button:focus-visible { background: var(--yellow); outline: none; }

.ticker { display: flex; gap: 24px; align-items: center; overflow: hidden; white-space: nowrap; height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line-hi); color: var(--white); }
.ticker i { color: var(--coral); font-style: normal; }

.chapter { display: grid; grid-template-columns: 190px minmax(0,1fr); border-bottom: 1px solid var(--line-hi); scroll-margin-top: 64px; }
.chapter > aside { padding: 28px 20px; border-right: 1px solid var(--line-hi); color: var(--dim); }
.chapter > aside span { color: var(--coral); font-size: 30px; }
.chapter > aside p { margin-top: 10px; line-height: 1.25; }
.chapter > article { padding: clamp(40px,6vw,96px); }
h2 { margin-bottom: 38px; color: var(--white); font-size: clamp(30px,4vw,64px); line-height: .95; font-weight: normal; letter-spacing: -2px; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 1200px; }
.columns p, .wide-copy { font-size: 18px; line-height: 1.55; }
blockquote { margin: 64px 0 0; padding: 24px 0 20px 30px; border-left: 9px solid var(--coral); color: var(--yellow); font-size: clamp(20px,2.4vw,36px); line-height: 1.2; }
.section-head { display: grid; grid-template-columns: minmax(400px,1.5fr) minmax(260px,.5fr); gap: 40px; align-items: end; }
.section-note { padding: 12px 0 12px 20px; border-left: 1px solid var(--line-hi); line-height: 1.45; }
.pipeline { display: grid; grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1fr; margin: 20px 0 44px; border-top: 1px solid var(--line-hi); border-bottom: 1px solid var(--line-hi); }
.pipe-step { min-height: 210px; padding: 18px 14px; }
.pipe-step small { display: block; color: var(--coral); }
.pipe-step b { display: block; margin: 44px 0 16px; color: var(--white); font-weight: normal; font-size: 20px; }
.pipe-step p { line-height: 1.35; }
.pipe-arrow { display: grid; place-items: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--green-hi); font-size: 24px; }
.protocol-code { margin: 0; padding: 24px; overflow-x: auto; border: 1px solid var(--line-hi); color: var(--text); background: var(--panel); font: inherit; line-height: 1.5; box-shadow: 7px 7px 0 #101210; }
.protocol-code span { color: var(--green-hi); }

.cell-table { border: 1px solid var(--line-hi); }
.cell-row { display: grid; grid-template-columns: 150px 1fr 1fr 1fr; }
.cell-row + .cell-row { border-top: 1px solid var(--line); }
.cell-row > * { min-height: 56px; padding: 14px; border-right: 1px solid var(--line); line-height: 1.25; }
.cell-row > *:last-child { border-right: 0; }
.cell-row b { color: var(--green-hi); font-weight: normal; }
.cell-row.header { color: var(--dim); background: #0b0c0b; }
.capability-schema { display: grid; grid-template-columns: 1.2fr repeat(6,1fr); margin-top: 24px; border: 1px solid var(--line-hi); }
.capability-schema > div { min-height: 82px; padding: 12px; border-right: 1px solid var(--line); }
.capability-schema > div:last-child { border-right: 0; }
.capability-schema small, .capability-schema strong { display: block; line-height: 1.2; }
.capability-schema small { margin-bottom: 24px; color: var(--dim); }
.capability-schema strong { color: var(--white); font-weight: normal; }
.capability-schema .schema-index { color: var(--coral); line-height: 1.4; }
.green { color: var(--green-hi) !important; }

.budget-lab { display: grid; grid-template-columns: 280px 1fr 330px; border: 1px solid var(--line-hi); }
.budget-controls, .budget-readout, .matrix { min-height: 330px; padding: 22px; }
.budget-controls, .budget-readout { border-right: 1px solid var(--line); }
.budget-controls label { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--white); }
.budget-controls output { color: var(--yellow); }
input[type="range"] { width: 100%; height: 2px; margin: 0 0 44px; appearance: none; background: var(--line-hi); }
input[type="range"]::-webkit-slider-thumb { width: 12px; height: 20px; appearance: none; border: 1px solid var(--white); background: var(--black); cursor: ew-resize; }
.meter { position: relative; height: 28px; margin-bottom: 38px; border: 1px solid var(--line-hi); }
.meter span { display: block; width: 0; height: 100%; background: var(--green); transition: width .18s steps(8,end),background .18s; }
.meter i { position: absolute; top: -6px; bottom: -6px; left: 72%; border-left: 1px solid var(--red); }
.budget-readout p { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px dotted var(--line); }
.budget-readout b { color: var(--white); font-weight: normal; }
.budget-readout small { display: block; margin-top: 35px; color: var(--dim); line-height: 1.3; }
.matrix { display: grid; grid-template-columns: repeat(12,1fr); grid-template-rows: repeat(10,1fr); gap: 5px; }
.matrix i { min-width: 8px; min-height: 8px; border: 1px solid #222; background: #0b0c0b; }
.matrix i.on { background: var(--green); }
.matrix i.warn { background: var(--yellow); }
.matrix i.danger { background: var(--red); }

.proof-machine { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-hi); }
.proof-machine form { padding: 24px; border-right: 1px solid var(--line-hi); }
.proof-machine label { display: block; color: var(--dim); }
.proof-machine textarea, .proof-machine input { width: 100%; border: 1px solid var(--line); color: var(--white); background: #020302; padding: 12px; outline: none; }
.proof-machine textarea:focus, .proof-machine input:focus { border-color: var(--green); }
.proof-machine textarea { min-height: 124px; margin: 10px 0 20px; resize: vertical; line-height: 1.35; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid input { margin-top: 10px; }
.proof-machine button { width: 100%; min-height: 48px; margin-top: 18px; border: 0; }
.capsule { margin: 24px; border: 1px solid var(--coral); background: #050302; }
.capsule-top { display: flex; justify-content: space-between; padding: 12px; border-bottom: 1px solid #5d2d22; color: var(--coral); }
.capsule-top b { font-weight: normal; }
.capsule dl { margin: 0; }
.capsule dl div { display: grid; grid-template-columns: 150px 1fr; padding: 12px; border-bottom: 1px solid #24120e; }
.capsule dt { color: var(--dim); }
.capsule dd { margin: 0; color: var(--white); overflow-wrap: anywhere; }
.capsule > p { margin: 16px 12px; color: var(--text); line-height: 1.3; }
.capsule.sealed { box-shadow: inset 0 0 0 5px #160a07; }
.capsule.sealed .capsule-top b { color: var(--green-hi); }
.capsule-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #24120e; }
.capsule-actions button { min-height: 42px; margin: 0; border-right: 1px solid #24120e; background: #151715; color: var(--text); }
.capsule-actions button:last-child { border-right: 0; }
.capsule-actions button:disabled { cursor: not-allowed; color: #454845; background: #080908; }

.liquidity-map { display: grid; grid-template-columns: 1fr 70px 1fr 70px 1.35fr; border-top: 1px solid var(--line-hi); border-bottom: 1px solid var(--line-hi); }
.liquidity-map > div { min-height: 190px; padding: 22px; }
.liquidity-map b { color: var(--white); font-weight: normal; }
.liquidity-map p { margin-top: 70px; line-height: 1.35; }
.liquidity-map .operator { display: grid; place-items: center; padding: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--coral); font-size: 28px; }
.liquidity-map .highlight { background: var(--green); color: #001900; }
.liquidity-map .highlight b { color: #000; }
.wide-copy { max-width: 1150px; margin: 48px 0 0; }
.wide-copy strong { color: var(--yellow); font-weight: normal; }

.ledger { border: 1px solid var(--line-hi); }
.ledger > div { display: grid; grid-template-columns: 180px 1fr 1.5fr; }
.ledger > div + div { border-top: 1px solid var(--line); }
.ledger > div > * { padding: 14px; border-right: 1px solid var(--line); }
.ledger > div > *:last-child { border-right: 0; }
.ledger b { color: var(--green-hi); font-weight: normal; }
.ledger-head { color: var(--dim); background: var(--panel); }
.token-line { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr; margin-top: 24px; border: 1px solid var(--line-hi); }
.token-line > * { padding: 18px; border-right: 1px solid var(--line); }
.token-line > *:last-child { border-right: 0; }
.token-line span { color: var(--dim); }
.token-line b { color: var(--yellow); font-weight: normal; }
.threat-grid { border: 1px solid var(--line-hi); }
.threat-grid > div { display: grid; grid-template-columns: 180px 1fr 1fr 150px; }
.threat-grid > div + div { border-top: 1px solid var(--line); }
.threat-grid > div > * { min-height: 56px; padding: 13px; border-right: 1px solid var(--line); line-height: 1.25; }
.threat-grid > div > *:last-child { border-right: 0; }
.threat-grid b { color: var(--white); font-weight: normal; }
.threat-grid em { color: var(--red); font-style: normal; }
.threat-head { color: var(--dim); background: var(--panel); }
.surface-list { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line-hi); border-left: 1px solid var(--line-hi); }
.surface-list > div { min-height: 230px; padding: 18px; border-right: 1px solid var(--line-hi); border-bottom: 1px solid var(--line-hi); }
.surface-list span { color: var(--coral); }
.surface-list b { display: block; margin: 34px 0 20px; color: var(--white); font-size: 19px; font-weight: normal; }
.surface-list p { min-height: 64px; line-height: 1.35; }
.surface-list code { display: block; margin-top: 24px; color: var(--green-hi); font: inherit; }
.state-machine { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr 34px 1fr; border-top: 1px solid var(--line-hi); border-bottom: 1px solid var(--line-hi); }
.state-machine > div { min-height: 218px; padding: 16px; }
.state-machine > i { display: grid; place-items: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--green-hi); font-style: normal; }
.state-machine small { color: var(--coral); }
.state-machine b { display: block; margin: 54px 0 18px; color: var(--white); font-size: 18px; font-weight: normal; }
.state-machine p { line-height: 1.35; }
.revocation-line { display: grid; grid-template-columns: 180px repeat(4,1fr); margin-top: 22px; border: 1px solid var(--line-hi); }
.revocation-line > * { padding: 14px; border-right: 1px solid var(--line); }
.revocation-line > *:last-child { border-right: 0; }
.revocation-line span { color: var(--dim); }
.revocation-line code { color: var(--green-hi); font: inherit; }
.manifest-studio { display: grid; grid-template-columns: minmax(380px,.9fr) minmax(460px,1.1fr); border: 1px solid var(--line-hi); background: #020302; }
.manifest-studio form { border-right: 1px solid var(--line-hi); }
.studio-title { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--dim); background: #090a09; }
.studio-title b { color: var(--green-hi); font-weight: normal; }
.manifest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 20px; }
.manifest-grid label { color: var(--dim); line-height: 1.2; }
.manifest-grid label.wide { grid-column: 1 / -1; }
.manifest-grid input { width: 100%; min-height: 42px; margin-top: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 0; outline: none; color: var(--white); background: #000; }
.manifest-grid input:focus { border-color: var(--green); }
.manifest-grid input:invalid:not(:focus) { border-color: #5a2c26; }
.manifest-studio form > button { width: calc(100% - 40px); min-height: 48px; margin: 0 20px 12px; border: 0; cursor: pointer; color: #000; background: var(--green); }
.manifest-studio form > button:hover, .manifest-studio form > button:focus-visible { background: var(--yellow); outline: none; }
.manifest-error { min-height: 22px; margin: 0 20px 14px; color: var(--red); line-height: 1.3; }
.manifest-output { min-width: 0; display: flex; flex-direction: column; }
.manifest-output pre { flex: 1; min-height: 380px; margin: 0; padding: 20px; overflow: auto; color: var(--green-hi); background: repeating-linear-gradient(0deg,#000 0,#000 31px,#090a09 32px); font: inherit; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.output-actions { display: grid; grid-template-columns: 1fr 1fr 1.25fr; border-top: 1px solid var(--line-hi); }
.output-actions button { min-height: 48px; border: 0; border-right: 1px solid var(--line); color: var(--white); background: #111311; cursor: pointer; }
.output-actions button:last-child { border-right: 0; }
.output-actions button:hover, .output-actions button:focus-visible { color: #000; background: var(--yellow); outline: none; }
.integration-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 26px; border-top: 1px solid var(--line-hi); border-left: 1px solid var(--line-hi); }
.integration-grid > div { min-height: 190px; padding: 18px; border-right: 1px solid var(--line-hi); border-bottom: 1px solid var(--line-hi); }
.integration-grid span { color: var(--coral); }
.integration-grid b { display: block; margin: 30px 0 16px; color: var(--white); font-size: 18px; font-weight: normal; }
.integration-grid p { line-height: 1.4; }
.network-readiness { margin-top: 26px; border: 1px solid var(--line-hi); }
.network-readiness > div { display: grid; grid-template-columns: 220px 150px 1fr; }
.network-readiness > div + div { border-top: 1px solid var(--line); }
.network-readiness > div > * { min-height: 48px; padding: 13px; border-right: 1px solid var(--line); line-height: 1.3; }
.network-readiness > div > *:last-child { border-right: 0; }
.network-readiness b { color: var(--white); font-weight: normal; }
.network-readiness em { color: var(--yellow); font-style: normal; }
.network-readiness em.online { color: var(--green-hi); }
.readiness-head { color: var(--dim); background: var(--panel); }
.network-readiness em.online { color: var(--green-hi); }
.network-readiness em.offline { color: var(--red); }
.registry-panel { margin-top: 26px; border: 1px solid var(--line-hi); }
.registry-list > p { margin: 0; padding: 24px; color: var(--dim); }
.registry-record { display: grid; grid-template-columns: 190px 1fr 170px 120px; border-top: 1px solid var(--line); }
.registry-record:first-child { border-top: 0; }
.registry-record > * { min-height: 58px; padding: 14px; border-right: 1px solid var(--line); line-height: 1.3; }
.registry-record > *:last-child { border-right: 0; }
.registry-record b { color: var(--white); font-weight: normal; }
.registry-record code { color: var(--green-hi); font: inherit; overflow-wrap: anywhere; }
.registry-record time { color: var(--dim); }
.registry-record span { color: var(--coral); }
.registry-head { color: var(--dim); background: var(--panel); }
.registry-head > * { min-height: 42px; padding-top: 11px; padding-bottom: 11px; color: var(--dim) !important; font-weight: normal; }
.owner-panel { margin-top: 26px; border: 1px solid var(--line-hi); }
.owner-summary { margin: 0; padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--dim); line-height: 1.4; }
.owner-capabilities > p { margin: 0; padding: 22px 20px; color: var(--dim); }
.owner-record { display: grid; grid-template-columns: minmax(180px,1fr) minmax(240px,1.5fr) 120px 112px; align-items: stretch; border-top: 1px solid var(--line); }
.owner-record:first-child { border-top: 0; }
.owner-record > * { min-height: 52px; display: flex; align-items: center; padding: 12px 14px; border-right: 1px solid var(--line); }
.owner-record > *:last-child { border-right: 0; }
.owner-record b { color: var(--white); font-weight: normal; }
.owner-record code { color: var(--green-hi); font: inherit; overflow-wrap: anywhere; }
.owner-record span { color: var(--dim); }
.owner-record button { justify-content: center; border: 0; color: var(--red); background: #100807; cursor: pointer; font: inherit; }
.owner-record button:hover, .owner-record button:focus-visible { color: #000; background: var(--red); outline: none; }
.owner-record button:disabled { color: var(--dim); background: #080808; cursor: wait; }
.build-links { display: flex; gap: 30px; margin-top: 30px; }

footer { display: grid; grid-template-columns: 190px 1fr auto; align-items: center; min-height: 100px; border-bottom: 8px solid var(--coral); }
footer > * { margin: 0; padding: 20px; }
footer > div { display: flex; align-items: center; gap: 10px; color: var(--white); }
footer img { object-fit: cover; }
footer p:last-child { text-align: right; }

@media (max-width: 1150px) {
  .topbar { grid-template-columns: 170px 1fr auto; }
  .topbar nav a { min-width: 0; padding: 0 10px; }
  .topbar nav a:nth-last-child(-n+2) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 650px; border-right: 0; border-bottom: 1px solid var(--line-hi); }
  .kernel-monitor { max-width: none; }
  .budget-lab { grid-template-columns: 250px 1fr; }
  .matrix { grid-column: 1 / -1; border-top: 1px solid var(--line); min-height: 220px; }
  .budget-readout { border-right: 0; }
  .capability-schema { grid-template-columns: repeat(3,1fr); }
  .capability-schema > div { border-bottom: 1px solid var(--line); }
  .contract-strip { grid-template-columns: 220px minmax(180px,1fr) 170px 110px; font-size: 14px; }
  .surface-list { grid-template-columns: repeat(2,1fr); }
  .manifest-studio { grid-template-columns: 1fr; }
  .manifest-studio form { border-right: 0; border-bottom: 1px solid var(--line-hi); }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .topbar { height: auto; grid-template-columns: 1fr auto; }
  .brand { height: 56px; }
  .topbar nav { grid-column: 1 / -1; order: 3; overflow-x: auto; border-top: 1px solid var(--line); }
  .topbar nav a { min-width: 108px; height: 42px; }
  .top-actions .ca { display: none; }
  .top-actions a { height: 56px; }
  .wallet-trigger { min-width: 142px; height: 56px; padding: 0 10px; }
  .contract-strip { grid-template-columns: 1fr 110px; font-size: 13px; }
  .contract-strip > span:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .contract-state { display: none; }
  .hero { min-height: 0; }
  .hero-copy { min-height: 590px; padding: 70px 24px 44px; }
  h1 { font-size: 39px; letter-spacing: -1px; }
  .kernel-monitor { width: calc(100% - 24px); margin: 12px; }
  .kernel-head { grid-template-columns: 1fr auto; }
  .kernel-head span:nth-child(2) { display: none; }
  .kernel-registers { grid-template-columns: repeat(3,1fr); }
  .kernel-registers span:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .kernel-workspace { grid-template-columns: 1fr; }
  .memory-pane { border-right: 0; border-bottom: 1px solid var(--line-hi); overflow: hidden; }
  .memory-pane pre { font-size: 12px; }
  .kernel-foot { grid-template-columns: 1fr; }
  .kernel-foot > * { min-height: 36px; border-right: 0; border-bottom: 1px solid var(--line); }
  .kernel-foot button { min-height: 48px; }
  .chapter { grid-template-columns: 54px minmax(0,1fr); }
  .chapter > aside { padding: 20px 8px; }
  .chapter > aside span { font-size: 18px; }
  .chapter > aside p { writing-mode: vertical-rl; }
  .chapter > article { padding: 46px 20px; }
  h2 { font-size: 31px; }
  .columns, .section-head, .proof-machine { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .pipe-step { min-height: 150px; }
  .pipe-step b { margin-top: 28px; }
  .pipe-arrow { min-height: 36px; transform: rotate(90deg); }
  .cell-row { grid-template-columns: 1fr 1fr; }
  .cell-row.header { display: none; }
  .cell-row > * { border-bottom: 1px solid var(--line); }
  .capability-schema { grid-template-columns: 1fr 1fr; }
  .budget-lab { grid-template-columns: 1fr; }
  .budget-controls, .budget-readout { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-machine form { border-right: 0; border-bottom: 1px solid var(--line-hi); }
  .capsule dl div { grid-template-columns: 1fr; gap: 8px; }
  .liquidity-map { grid-template-columns: 1fr; }
  .liquidity-map .operator { min-height: 44px; transform: rotate(90deg); }
  .liquidity-map > div { min-height: 140px; }
  .liquidity-map p { margin-top: 38px; }
  .ledger > div { grid-template-columns: 90px 1fr; }
  .ledger > div > *:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .token-line { grid-template-columns: auto 1fr; }
  .threat-grid > div { grid-template-columns: 1fr; }
  .threat-grid > div > * { border-right: 0; border-bottom: 1px solid var(--line); }
  .threat-grid > div > *:last-child { border-bottom: 0; }
  .threat-head { display: none !important; }
  .surface-list { grid-template-columns: 1fr; }
  .state-machine { grid-template-columns: 1fr; }
  .state-machine > div { min-height: 150px; }
  .state-machine > div b { margin-top: 34px; }
  .state-machine > i { min-height: 34px; transform: rotate(90deg); }
  .revocation-line { grid-template-columns: 1fr; }
  .revocation-line > * { border-right: 0; border-bottom: 1px solid var(--line); }
  .manifest-grid, .integration-grid { grid-template-columns: 1fr; }
  .manifest-grid label.wide { grid-column: auto; }
  .network-readiness > div { grid-template-columns: 1fr; }
  .network-readiness > div > * { border-right: 0; border-bottom: 1px solid var(--line); }
  .network-readiness > div > *:last-child { border-bottom: 0; }
  .readiness-head { display: none !important; }
  .output-actions { grid-template-columns: 1fr; }
  .output-actions button { border-right: 0; border-bottom: 1px solid var(--line); }
  .registry-record { grid-template-columns: 1fr; }
  .registry-record > * { border-right: 0; border-bottom: 1px solid var(--line); }
  .registry-head { display: none; }
  .owner-record { grid-template-columns: 1fr; }
  .owner-record > * { border-right: 0; border-bottom: 1px solid var(--line); }
  footer { grid-template-columns: 1fr; }
  footer p:last-child { text-align: left; }
}

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