:root {
  --ink: #0d1712;
  --panel: #122219;
  --panel-2: #172c20;
  --line: #2b4536;
  --muted: #aab8af;
  --paper: #eef2eb;
  --acid: #b8ff59;
  --orange: #ff835f;
  --max: 1240px;
  color-scheme: dark;
  font-family: "SFMono-Regular", "Roboto Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--paper); margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { background: var(--acid); color: var(--ink); left: 12px; padding: 10px; position: fixed; top: -60px; z-index: 20; }
.skip-link:focus { top: 12px; }
.topbar, footer { align-items: center; display: flex; justify-content: space-between; margin: auto; max-width: var(--max); padding: 22px 30px; }
.topbar { border-bottom: 1px solid var(--line); }
.brand { align-items: center; display: inline-flex; font-family: system-ui, sans-serif; font-weight: 750; gap: 10px; text-decoration: none; }
.brand img { border-radius: 6px; }
.topbar-proof { align-items: center; color: var(--muted); display: flex; font-size: .72rem; gap: 8px; text-transform: uppercase; }
.topbar-proof i, .console-head i { background: var(--acid); border-radius: 50%; box-shadow: 0 0 16px rgba(184,255,89,.5); display: inline-block; height: 7px; width: 7px; }
.topbar-link { font-size: .78rem; text-decoration: none; }
main { overflow: hidden; }
.hero, .inspector-shell, .test-rig, .runtime, .boundary, .close { margin: auto; max-width: var(--max); padding: 100px 30px; }
.hero { align-items: end; display: grid; gap: 70px; grid-template-columns: 1.12fr .88fr; min-height: 760px; }
.eyebrow { color: var(--acid); font-size: .72rem; letter-spacing: .13em; margin: 0 0 18px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: system-ui, sans-serif; letter-spacing: -.055em; line-height: .96; }
h1 { font-size: clamp(3.5rem, 7.4vw, 7rem); margin-bottom: 28px; max-width: 880px; }
h2 { font-size: clamp(2.5rem, 5vw, 5rem); }
.lede { color: #c6d0c9; font-family: system-ui, sans-serif; font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.55; max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { border: 1px solid transparent; border-radius: 6px; cursor: pointer; display: inline-flex; font-size: .82rem; font-weight: 800; justify-content: center; padding: 15px 19px; text-decoration: none; }
.button-primary { background: var(--acid); color: var(--ink); }
.button-secondary { background: transparent; border-color: var(--line); color: var(--paper); }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
.ownership { border-left: 2px solid var(--orange); color: var(--muted); font-size: .72rem; line-height: 1.5; margin-top: 32px; max-width: 620px; padding-left: 13px; }
.hero-console { background: #09100c; border: 1px solid var(--line); box-shadow: 20px 20px 0 #101d16; min-width: 0; }
.console-head { align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); display: flex; font-size: .7rem; justify-content: space-between; padding: 14px 16px; }
.console-head strong { align-items: center; color: var(--acid); display: flex; gap: 7px; text-transform: uppercase; }
.hero-console ol { list-style: none; margin: 0; padding: 8px 16px; }
.hero-console li { align-items: center; border-bottom: 1px dashed #273a2e; display: grid; font-size: .76rem; gap: 12px; grid-template-columns: 32px 1fr auto; }
.hero-console li span { color: #64746a; }
.hero-console li p { margin: 14px 0; }
.hero-console li b { color: var(--acid); }
.hero-console dl { color: var(--muted); font-size: .67rem; margin: 0; padding: 12px 16px 16px; }
.hero-console dl div { display: flex; gap: 8px; justify-content: space-between; padding: 5px 0; }
.hero-console dd { color: var(--paper); margin: 0; text-align: right; }
.inspector-shell { background: var(--paper); color: var(--ink); max-width: none; padding-left: max(30px, calc((100vw - var(--max)) / 2 + 30px)); padding-right: max(30px, calc((100vw - var(--max)) / 2 + 30px)); }
.inspector-intro { display: grid; gap: 36px; grid-template-columns: .7fr 1.3fr; }
.inspector-intro .eyebrow { color: #4c6c57; grid-column: 1 / -1; margin-bottom: -12px; }
.inspector-intro h2 { margin-bottom: 0; }
.inspector-intro > p:last-child { color: #4b5d52; font-family: system-ui, sans-serif; line-height: 1.7; max-width: 670px; }
.member-switcher { display: grid; gap: 1px; grid-template-columns: 1fr 1fr; margin-top: 70px; }
.member-switcher button { background: #dfe6dc; border: 0; color: #526158; cursor: pointer; display: grid; gap: 5px; padding: 22px; text-align: left; }
.member-switcher button[aria-selected="true"] { background: var(--ink); color: white; }
.member-switcher span, .member-switcher small { font-size: .68rem; text-transform: uppercase; }
.member-switcher strong { font-family: system-ui, sans-serif; font-size: 1.3rem; }
.member-switcher button[aria-selected="true"] small { color: var(--acid); }
.vault-grid { background: var(--ink); display: grid; grid-template-columns: .82fr 1.18fr; }
.calculator, .history { min-height: 510px; padding: clamp(24px, 4vw, 44px); }
.calculator { border-right: 1px solid var(--line); }
.calculator header, .history header { display: flex; justify-content: space-between; margin-bottom: 34px; }
.calculator header { display: grid; }
.calculator header span, .history header span { color: var(--muted); font-size: .67rem; text-transform: uppercase; }
.calculator header strong, .history header strong { color: var(--paper); font-family: system-ui, sans-serif; font-size: 1.5rem; }
#result-form { display: grid; gap: 18px; }
#result-form label { display: grid; gap: 8px; }
#result-form label span { color: var(--muted); font-size: .68rem; text-transform: uppercase; }
#result-form input { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; color: white; min-width: 0; padding: 14px; width: 100%; }
.number-row { align-items: end; display: grid; gap: 10px; grid-template-columns: 1fr auto 1fr; }
.division { color: var(--muted); padding-bottom: 14px; }
.result-preview { align-items: end; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 20px 0; }
.result-preview span { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.result-preview strong { color: var(--acid); font-family: system-ui, sans-serif; font-size: 2.5rem; }
.status { color: var(--acid); font-size: .72rem; line-height: 1.5; margin-top: 18px; min-height: 2.2em; }
.history header > div { display: grid; }
.history header button { background: transparent; border: 0; color: #e7a595; cursor: pointer; font-size: .65rem; text-decoration: underline; }
.history ol { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.history li { align-items: center; background: var(--panel); display: grid; gap: 14px; grid-template-columns: 32px 1fr auto auto; padding: 16px; }
.history .row-number { color: #64746a; font-size: .7rem; }
.history li div { display: grid; gap: 3px; }
.history li strong { font-family: system-ui, sans-serif; }
.history li small { color: var(--muted); }
.history li b { color: var(--acid); }
.history li button { background: transparent; border: 0; color: #e7a595; cursor: pointer; font-size: .66rem; }
.history .empty { color: var(--muted); display: grid; gap: 8px; grid-template-columns: 1fr; padding: 50px 20px; text-align: center; }
.test-rig { align-items: start; display: grid; gap: 80px; grid-template-columns: .82fr 1.18fr; }
.test-rig > div > p:not(.eyebrow) { color: var(--muted); font-family: system-ui, sans-serif; line-height: 1.6; }
.test-rig ol { background: #09100c; border: 1px solid var(--line); list-style: none; margin: 0; padding: 10px 20px; }
.test-rig li { align-items: center; border-bottom: 1px dashed #273a2e; display: grid; gap: 14px; grid-template-columns: 34px 1fr auto; }
.test-rig li:last-child { border-bottom: 0; }
.test-rig li span { color: #64746a; }
.test-rig li p { font-size: .78rem; margin: 17px 0; }
.test-rig li b { color: var(--muted); }
.test-rig li.pass b { color: var(--acid); }
.test-rig li.fail b { color: var(--orange); }
.runtime { border-top: 1px solid var(--line); }
.runtime-head { max-width: 930px; }
.runtime-head > p:last-child { color: var(--muted); font-family: system-ui, sans-serif; line-height: 1.7; max-width: 770px; }
.runtime-grid { display: grid; gap: 1px; grid-template-columns: 1fr 1fr; margin-top: 60px; }
.runtime-facts, .source-boundary { background: var(--panel); margin: 0; padding: clamp(24px, 4vw, 44px); }
.runtime-facts div { border-bottom: 1px solid var(--line); display: grid; gap: 8px; padding: 16px 0; }
.runtime-facts dt { color: var(--muted); font-size: .66rem; text-transform: uppercase; }
.runtime-facts dd { font-size: .8rem; margin: 0; overflow-wrap: anywhere; }
.source-boundary h3 { font-family: system-ui, sans-serif; font-size: 1.6rem; }
.source-boundary ul, .boundary ul { color: var(--muted); font-family: system-ui, sans-serif; line-height: 1.6; padding-left: 20px; }
.source-boundary .button { margin-top: 20px; }
.boundary { display: grid; gap: 70px; grid-template-columns: .7fr 1.3fr; }
.boundary-columns { display: grid; gap: 1px; grid-template-columns: 1fr 1fr; }
.boundary article { background: var(--panel); padding: 30px; }
.boundary h3 { font-family: system-ui, sans-serif; }
.close { align-items: end; background: var(--acid); color: var(--ink); display: flex; justify-content: space-between; max-width: none; padding-left: max(30px, calc((100vw - var(--max)) / 2 + 30px)); padding-right: max(30px, calc((100vw - var(--max)) / 2 + 30px)); }
.close .eyebrow { color: #3c5a44; }
.close h2 { margin-bottom: 0; max-width: 850px; }
.close-copy { font-family: system-ui, sans-serif; line-height: 1.65; margin: 24px 0 0; max-width: 780px; }
.close .button-primary { background: var(--ink); color: var(--paper); flex: 0 0 auto; }
footer { color: var(--muted); font-size: .7rem; }
footer p { margin: 0; }
footer nav { display: flex; gap: 18px; }
@media (max-width: 900px) {
  .hero, .inspector-intro, .test-rig, .runtime-grid, .boundary { grid-template-columns: 1fr; }
  .hero { gap: 45px; min-height: 0; padding-top: 80px; }
  .vault-grid { grid-template-columns: 1fr; }
  .calculator { border-bottom: 1px solid var(--line); border-right: 0; }
  .boundary-columns { grid-template-columns: 1fr; }
  .close { align-items: start; flex-direction: column; gap: 34px; }
}
@media (max-width: 620px) {
  .topbar, footer, .hero, .test-rig, .runtime, .boundary { padding-left: 20px; padding-right: 20px; }
  .topbar-proof { display: none; }
  .topbar-link { font-size: .66rem; }
  .hero, .inspector-shell, .test-rig, .runtime, .boundary, .close { padding-bottom: 72px; padding-top: 72px; }
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .member-switcher { grid-template-columns: 1fr; }
  .history li { grid-template-columns: 25px 1fr auto; }
  .history li button { grid-column: 2 / -1; justify-self: start; }
  footer { align-items: start; flex-direction: column; gap: 16px; }
  footer nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .member-switcher button { transition: transform .18s ease, background .18s ease; }
  .history li { animation: reveal-row .22s ease both; }
  @keyframes reveal-row { from { opacity: 0; transform: translateY(7px); } }
}
