:root {
  --navy-950: #0c1628;
  --navy-900: #111d32;
  --navy-850: #17243a;
  --navy-800: #1d2a3f;
  --navy-700: #27364c;
  --night: #34495e;
  --slate: #5d6d7e;
  --ash: #a9a9a9;
  --steel: #c0c0c0;
  --pearl: #dcdcdc;
  --paper: #f8f9fe;
  --white: #ffffff;
  --gold: #ffb300;
  --khaki: #f0e68c;
  --sand: #d2b48c;
  --mint: #76d7c4;
  --mint-deep: #48c9b0;
  --green: #27ae60;
  --green-deep: #229954;
  --blue: #5dade2;
  --blue-royal: #3498db;
  --red: #cd5c5c;
  --red-deep: #8b0000;
  --orange: #dc7633;
  --line: rgba(176, 196, 222, 0.22);
  --shadow: 0 16px 48px rgba(8, 16, 29, 0.22);
  --max: 1480px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy-900);
  background: #c7d1ca;
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  background: var(--gold);
  color: var(--navy-950);
  padding: .75rem 1rem;
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1rem, 4vw, 4rem);
  color: var(--paper);
  background: rgba(12, 22, 40, .96);
  border-bottom: 1px solid rgba(255, 179, 0, .28);
  backdrop-filter: blur(12px);
}
.brand-lockup { display: flex; align-items: center; gap: .9rem; min-width: 220px; }
.brand-lockup strong { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .05em; }
.brand-lockup small { display: block; color: var(--gold); font: 700 .62rem/1.2 var(--mono); letter-spacing: .18em; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; position: relative;
  color: var(--navy-950); background: var(--sand); border: 1px solid var(--khaki);
  font: 800 1.1rem/1 var(--serif);
}
.brand-mark i { position: absolute; right: -5px; top: 7px; width: 2px; height: 26px; background: var(--gold); }
.primary-nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem); }
.primary-nav a, .primary-nav button {
  border: 0; background: transparent; color: #dce5f0; text-decoration: none;
  font: 700 .76rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  padding: .75rem 0; border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav a:focus, .primary-nav button:hover, .primary-nav button:focus { color: var(--gold); border-color: var(--gold); }
.nav-toggle { display: none; color: var(--paper); border: 1px solid var(--slate); background: transparent; padding: .55rem .75rem; font: 800 .74rem var(--mono); }

main { overflow: hidden; }
.section-grid, .section, .kpi-strip, footer {
  width: min(var(--max), calc(100% - clamp(2rem, 6vw, 7rem)));
  margin-inline: auto;
}
.section { padding-block: clamp(5rem, 8vw, 9rem); }
.eyebrow {
  margin: 0 0 1rem; color: var(--orange); font: 800 .72rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase;
}
.section-heading { max-width: 860px; margin-bottom: 3rem; }
.section-heading.compact { max-width: 740px; }
.section-heading h2, .architecture-header h2, .source-brief h2, .next-system h2, .closing-section h2 {
  margin: 0 0 1rem; font: 700 clamp(2rem, 4vw, 4.4rem)/1.03 var(--serif); letter-spacing: -.03em;
}
.section-heading > p:last-child { max-width: 780px; color: #47586d; font-size: 1.05rem; }
.section-heading.inverse { color: var(--paper); }
.section-heading.inverse > p:last-child { color: #afbed0; }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  padding-block: clamp(5rem, 10vw, 10rem);
}
.hero::before {
  content: ''; position: absolute; inset: 76px 0 auto; height: min(760px, 80vh); pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.18), transparent 45%), repeating-linear-gradient(90deg, rgba(17,29,50,.045) 0 1px, transparent 1px 80px);
}
.hero-copy, .hero-system-card { position: relative; z-index: 1; }
.hero h1 { margin: 0 0 1.5rem; max-width: 980px; font: 700 clamp(3.4rem, 7vw, 7.8rem)/.92 var(--serif); letter-spacing: -.055em; }
.hero-lead { max-width: 760px; font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: #3f5063; }
.hero-lead strong { color: var(--navy-950); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .85rem 1.25rem;
  border: 1px solid var(--navy-900); text-decoration: none; font: 800 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  border-radius: 0;
}
.button-primary { color: var(--navy-950); background: var(--gold); border-color: var(--gold); }
.button-primary:hover, .button-primary:focus { background: var(--khaki); border-color: var(--khaki); }
.button-secondary { color: var(--navy-900); background: transparent; }
.button-secondary:hover, .button-secondary:focus { color: var(--paper); background: var(--navy-900); }
.hero-doctrine { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2.2rem; font-family: var(--mono); }
.hero-doctrine span { padding: .55rem .75rem; border-left: 4px solid var(--mint-deep); background: rgba(255,255,255,.35); font-size: .72rem; letter-spacing: .08em; }
.hero-doctrine strong { color: var(--red-deep); letter-spacing: .1em; }

.hero-system-card {
  min-height: 570px; display: grid; align-content: center; padding: 2rem;
  background: var(--navy-900); color: var(--paper); border: 1px solid var(--slate); box-shadow: var(--shadow);
}
.cycle-core { position: relative; width: min(460px, 100%); aspect-ratio: 1; margin: 0 auto; border: 1px solid rgba(118,215,196,.35); }
.cycle-core::before, .cycle-core::after { content: ''; position: absolute; border: 1px solid rgba(93,173,226,.28); inset: 11%; border-radius: 50%; }
.cycle-core::after { inset: 24%; border-color: rgba(255,179,0,.55); }
.coin-core { position: absolute; inset: 32%; display: grid; place-content: center; text-align: center; background: var(--sand); color: var(--navy-950); border: 6px double var(--gold); border-radius: 50%; box-shadow: 0 0 0 10px rgba(255,179,0,.09); }
.coin-core b { font: 800 clamp(2rem, 5vw, 4rem)/1 var(--serif); }
.coin-core small { max-width: 120px; margin-top: .5rem; font: 700 .52rem/1.3 var(--mono); letter-spacing: .12em; }
.cycle-label { position: absolute; padding: .45rem .6rem; background: var(--navy-800); border: 1px solid var(--slate); font: 800 .6rem var(--mono); letter-spacing: .12em; }
.cycle-label-money { top: 6%; left: 50%; transform: translateX(-50%); color: var(--gold); }
.cycle-label-network { right: 2%; top: 50%; transform: translateY(-50%); color: var(--blue); }
.cycle-label-evidence { bottom: 5%; left: 50%; transform: translateX(-50%); color: var(--mint); }
.cycle-label-response { left: 2%; top: 50%; transform: translateY(-50%); color: var(--red); }
.cycle-caption { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 2rem; color: #b7c4d6; font: 700 .65rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.cycle-caption i { width: 28px; height: 1px; background: var(--gold); }

/* Hero artwork: the supplied dark background is intentional and remains part of the composition. */
.hero-art-card {
  width: 100%;
  max-width: 620px;
  min-height: 0;
  justify-self: end;
  display: block;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: #07111f;
  border: 0;
  box-shadow: var(--shadow);
}
.hero-cycle-image {
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 944;
  object-fit: contain;
  background: #07111f;
}

.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--navy-700); box-shadow: var(--shadow); }
.kpi-card { min-height: 220px; padding: 1.5rem; color: var(--paper); background: var(--navy-800); border-top: 4px solid var(--gold); }
.kpi-card > span { color: #8fa1b8; font: 800 .68rem/1.4 var(--mono); letter-spacing: .13em; }
.kpi-card strong { display: block; margin: 1.8rem 0 .4rem; font: 700 clamp(2.5rem, 4vw, 4.8rem)/.9 var(--serif); }
.kpi-card em { display: block; color: #b5c2d2; font: 400 .72rem var(--mono); font-style: normal; }
.kpi-gold { border-color: var(--gold); }
.kpi-red { border-color: var(--red); }
.kpi-blue { border-color: var(--blue); }
.kpi-mint { border-color: var(--mint); }
.citation { margin-top: 1.4rem; padding: .4rem 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #91a7bf; font: 700 .62rem var(--mono); letter-spacing: .1em; cursor: pointer; }
.citation:hover, .citation:focus { color: var(--gold); }

.section-problem { padding-top: clamp(7rem, 10vw, 11rem); }
.lens-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #95a29c; margin-bottom: 1px; }
.lens-tabs button {
  min-height: 94px; display: flex; align-items: center; gap: .8rem; padding: 1.1rem; color: var(--navy-900); background: rgba(248,249,254,.64);
  border: 0; border-bottom: 4px solid transparent; font: 800 .75rem/1.2 var(--mono); text-align: left; cursor: pointer;
}
.lens-tabs button img { width: 34px; height: 34px; object-fit: contain; }
.lens-tabs button[aria-selected="true"] { background: var(--navy-900); color: var(--paper); border-bottom-color: var(--gold); }
.lens-panel { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 560px; background: var(--paper); box-shadow: var(--shadow); outline: none; }
.lens-summary { padding: clamp(2rem, 5vw, 5rem); }
.lens-summary h3, .lens-solution h3 { margin: 0 0 1.2rem; font: 700 clamp(2rem, 3.8vw, 4.4rem)/1 var(--serif); letter-spacing: -.035em; }
.lens-summary > p:not(.eyebrow) { max-width: 720px; font-size: 1.08rem; color: #4d5f73; }
.lens-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; background: #d4dce4; }
.lens-fact { min-height: 160px; padding: 1.25rem; background: #edf1f4; }
.lens-fact strong { display: block; font: 700 clamp(1.8rem, 3vw, 3.4rem)/1 var(--serif); color: var(--navy-950); }
.lens-fact span { display: block; margin-top: .65rem; color: #63748a; font: 700 .66rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.lens-solution { padding: clamp(2rem, 4vw, 4rem); color: var(--paper); background: var(--navy-900); border-left: 6px solid var(--gold); }
.solution-label { display: inline-block; margin-bottom: 1.5rem; color: var(--gold); font: 800 .65rem var(--mono); letter-spacing: .16em; }
.lens-solution h3 { font-size: clamp(1.8rem, 3vw, 3.2rem); }
.lens-solution ul { list-style: none; padding: 0; margin: 2rem 0; }
.lens-solution li { position: relative; padding: 1rem 0 1rem 2rem; border-top: 1px solid rgba(176,196,222,.18); color: #c2cfde; }
.lens-solution li::before { content: '■'; position: absolute; left: 0; color: var(--mint); font-size: .7rem; }
.source-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.source-row button { border: 1px solid var(--slate); background: transparent; color: #a9bacd; padding: .45rem .6rem; font: 700 .58rem var(--mono); cursor: pointer; }
.source-row button:hover { border-color: var(--gold); color: var(--gold); }

.protocol-gap { padding-top: 2rem; }
.protocol-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: .75rem; }
.protocol-flow article { min-height: 330px; padding: 1.5rem; color: var(--paper); background: var(--navy-800); border-top: 4px solid var(--blue); }
.protocol-flow article:nth-of-type(2) { border-color: var(--gold); }
.protocol-flow article:nth-of-type(3) { border-color: var(--mint); }
.protocol-flow article:nth-of-type(4) { border-color: var(--green); }
.protocol-flow img { width: 58px; height: 58px; margin-bottom: 2rem; }
.protocol-flow article > span { color: #7588a0; font: 800 .75rem var(--mono); }
.protocol-flow h3 { margin: .7rem 0 1rem; font: 700 1.6rem var(--serif); }
.protocol-flow p { color: #b7c4d5; }
.flow-arrow { align-self: center; color: var(--orange); font-size: 2rem; }
.category-statement { display: grid; grid-template-columns: .28fr 1fr; gap: 2rem; margin-top: 1px; padding: 2rem; color: var(--paper); background: var(--navy-900); }
.category-statement strong { color: var(--gold); font: 800 .72rem var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.category-statement p { margin: 0; max-width: 1000px; font-size: 1.15rem; }

.system-showcase { width: 100%; max-width: none; padding-inline: clamp(1rem, 3vw, 3rem); color: var(--paper); background: var(--navy-950); }
.system-showcase > .section-heading, .system-showcase > .console-shell, .system-showcase > .mock-note { width: min(var(--max), 100%); margin-inline: auto; }
.console-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 760px; border: 1px solid #40526a; box-shadow: 0 30px 100px rgba(0,0,0,.34); }
.console-sidebar { background: #0e1a2d; border-right: 1px solid #2b3b52; }
.console-brand { height: 78px; display: flex; align-items: center; gap: .8rem; padding: 1rem; border-bottom: 1px solid #25344b; }
.console-brand > b { display: grid; place-items: center; width: 38px; height: 38px; color: var(--navy-950); background: var(--sand); font-family: var(--serif); }
.console-brand span { font: 700 1rem var(--serif); }
.console-brand small { display: block; margin-top: .25rem; color: var(--gold); font: 700 .48rem var(--mono); letter-spacing: .12em; }
.console-sidebar nav { display: grid; padding: 1rem 0; }
.console-sidebar .nav-group { padding: 1.25rem 1rem .55rem; color: var(--gold); font: 700 .55rem var(--mono); letter-spacing: .16em; }
.console-sidebar a { display: flex; align-items: center; gap: .65rem; min-height: 46px; padding: .6rem 1rem; color: #d9e2ee; font-size: .78rem; text-decoration: none; }
.console-sidebar a.active { background: #1d2a3f; border-left: 3px solid var(--gold); }
.console-sidebar a img { width: 22px; height: 22px; object-fit: contain; filter: grayscale(1); opacity: .78; }
.console-sidebar a i { margin-left: auto; min-width: 24px; padding: .2rem .35rem; color: var(--paper); background: #22334e; text-align: center; font: 700 .58rem var(--mono); font-style: normal; }
.console-sidebar a i.warn { color: var(--gold); background: #42391e; }
.console-sidebar a i.danger { color: #ffb5b5; background: #4b2634; }
.console-main { min-width: 0; background: #b9c6bf; color: var(--navy-900); }
.console-topline { min-height: 52px; display: flex; align-items: center; padding: 0 1.5rem; border-bottom: 1px solid rgba(17,29,50,.15); font: 700 .65rem var(--mono); letter-spacing: .06em; }
.console-title { padding: 1.6rem 1.5rem 1rem; }
.console-title h3 { margin: 0; font: 700 2rem var(--serif); }
.console-title p { margin: .25rem 0 0; color: #425773; font-size: .8rem; }
.console-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 1.5rem 1.5rem; }
.console-kpis > div { min-height: 120px; padding: 1.15rem; color: var(--paper); background: #1c293e; border-top: 3px solid var(--gold); }
.console-kpis > div.alert { border-color: var(--red); }
.console-kpis > div.success { border-color: var(--green); }
.console-kpis span { color: #7588a0; font: 700 .56rem var(--mono); letter-spacing: .13em; }
.console-kpis b { display: block; margin: .7rem 0 .25rem; font: 700 2.1rem var(--serif); }
.console-kpis small { color: #96a5b7; font: .62rem var(--mono); }
.case-table-wrap { margin: 0 1.5rem 1.5rem; background: #1c293e; color: var(--paper); }
.table-heading { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid #34465f; }
.table-heading h4 { margin: 0; font: 700 1.15rem var(--serif); }
.table-heading p { margin: .15rem 0 0; color: #7187a6; font: .58rem var(--mono); letter-spacing: .08em; }
.table-heading button { padding: .55rem .75rem; background: var(--paper); border: 0; color: var(--navy-900); font: 800 .6rem var(--mono); }
.case-row { display: grid; grid-template-columns: 1.15fr .55fr 1.5fr .65fr .65fr .65fr 1.8fr; align-items: center; min-height: 66px; padding: .65rem 1rem; border-bottom: 1px solid #314159; gap: 1rem; }
.case-row.table-head { min-height: 46px; color: #7891b3; background: #142033; font: 700 .56rem var(--mono); letter-spacing: .12em; }
.case-row .case-id { font: 700 .63rem var(--mono); }
.case-row .network-icon { width: 34px; height: 20px; object-fit: contain; opacity: .8; }
.case-row .reason b { display: block; font: 700 .68rem var(--mono); }
.case-row .reason small { color: #88b5db; font-size: .58rem; }
.case-row .amount { font: 700 .7rem var(--mono); text-align: right; }
.status-pill { display: inline-flex; width: max-content; align-items: center; gap: .35rem; padding: .38rem .55rem; font: 800 .58rem var(--mono); letter-spacing: .06em; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ready { color: #7ff4b4; background: rgba(39,174,96,.18); }
.status-lost { color: #ff9d9d; background: rgba(205,92,92,.24); }
.status-prep { color: #f5d66f; background: rgba(240,230,140,.14); }
.status-open { color: #79bfff; background: rgba(52,152,219,.17); }
.deadline-breach { color: #ff5362; font: 800 .63rem var(--mono); }
.interpretation { color: #e3ad45; font: 700 .59rem/1.4 var(--mono); }
.mock-note { color: #8294aa; font: .65rem var(--mono); }

.metrics-section { padding-bottom: 2rem; }
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #9eaaa5; }
.boundary-card { min-height: 430px; padding: clamp(2rem, 4vw, 4rem); background: var(--paper); border-top: 5px solid var(--green); }
.boundary-blocked { border-color: var(--red); }
.card-title { display: flex; align-items: center; gap: 1rem; }
.card-title img { width: 58px; height: 58px; }
.card-title h3 { margin: 0; font: 700 1.8rem var(--serif); }
.boundary-card ul { list-style: none; padding: 0; margin: 2rem 0 0; }
.boundary-card li { padding: .8rem 0 .8rem 1.6rem; border-top: 1px solid #dce3e8; position: relative; }
.boundary-card li::before { content: '■'; position: absolute; left: 0; color: var(--green); }
.boundary-blocked li::before { color: var(--red); }
.learning-chain { grid-column: 1 / -1; padding: 2.2rem; color: var(--paper); background: var(--navy-900); }
.learning-chain h3 { margin: 0 0 1.5rem; font: 700 1.8rem var(--serif); }
.learning-chain > div { display: grid; grid-template-columns: repeat(9, auto); align-items: center; justify-content: start; gap: .7rem; overflow-x: auto; }
.learning-chain span { min-width: 120px; padding: .8rem; border: 1px solid var(--slate); text-align: center; color: var(--mint); font: 700 .65rem var(--mono); text-transform: uppercase; }
.learning-chain i { color: var(--gold); font-style: normal; }
.learning-chain p { margin-bottom: 0; color: #aebdd0; }

.architecture-section { padding-top: 5rem; }
.architecture-header { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.architecture-total { min-width: 260px; padding: 1.5rem; color: var(--paper); background: var(--navy-900); border-top: 5px solid var(--gold); }
.architecture-total strong { display: block; font: 700 5rem/1 var(--serif); }
.architecture-total span { color: #9fb0c5; font: 700 .65rem var(--mono); letter-spacing: .14em; }
.architecture-bars { display: grid; gap: 1px; background: #9ba6a1; }
.bar { display: grid; grid-template-columns: 110px .5fr 1fr; align-items: center; min-height: 130px; padding: 1.3rem; background: var(--paper); border-left: 8px solid var(--blue); }
.bar.operational { border-color: var(--gold); }
.bar.cognitive { border-color: var(--mint); }
.bar span { font: 700 3.4rem var(--serif); }
.bar b { font: 700 1.15rem var(--mono); text-transform: uppercase; }
.bar em { color: #5c6d80; font-style: normal; }
.architecture-boundary { padding: 1.2rem 1.4rem; margin: 1px 0 0; color: var(--paper); background: var(--navy-900); border-left: 8px solid var(--red); }

.value-section { padding-top: 7rem; }
.calculator-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1px; background: #9ca8a2; box-shadow: var(--shadow); }
.calculator-controls { padding: clamp(2rem, 4vw, 4rem); background: var(--paper); }
.calculator-controls label { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: center; padding: 1.2rem 0; border-top: 1px solid #d7dfe6; font-weight: 700; }
.calculator-controls input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--orange); }
.calculator-controls output { min-width: 96px; padding: .45rem .6rem; color: var(--paper); background: var(--navy-900); text-align: right; font: 700 .75rem var(--mono); }
.calculator-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #33445a; }
.calculator-results article { min-height: 170px; padding: 1.5rem; color: var(--paper); background: var(--navy-800); }
.calculator-results span { color: #8fa3bb; font: 700 .65rem var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.calculator-results strong { display: block; margin-top: 1.2rem; font: 700 clamp(2rem, 3vw, 3.6rem)/1 var(--serif); }
.calculator-results small { color: #8799b0; font: .62rem var(--mono); }
.calculator-results .result-primary { background: var(--navy-900); border-top: 5px solid var(--mint); }
.calculator-results .result-primary strong { color: var(--mint); }
.commercial-scale { margin-top: 1px; padding: clamp(2rem, 4vw, 4rem); color: var(--paper); background: var(--navy-900); }
.commercial-scale { display: grid; grid-template-columns: .8fr 1fr; gap: 2rem; }
.commercial-copy h3 { margin: 0 0 1rem; font: 700 2.1rem var(--serif); }
.commercial-copy p:last-child { color: #aebdd0; }
.scale-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.scale-controls label { color: #aebdd0; font: 700 .62rem var(--mono); text-transform: uppercase; }
.scale-controls input { width: 100%; margin-top: .5rem; padding: .8rem; color: var(--paper); background: #17243a; border: 1px solid var(--slate); border-radius: 0; font: 700 .85rem var(--mono); }
.scale-results { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #43536a; }
.scale-results > div { min-height: 130px; padding: 1.2rem; background: #1d2a3f; }
.scale-results span { color: #8ea2bb; font: 700 .62rem var(--mono); text-transform: uppercase; }
.scale-results strong { display: block; margin-top: .8rem; font: 700 2.3rem var(--serif); color: var(--gold); }

.evidence-section { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.source-brief { padding: clamp(2rem, 4vw, 4rem); background: var(--paper); }
.source-brief p:not(.eyebrow) { color: #536579; }
.source-ledger { padding: 1.5rem; color: var(--paper); background: var(--navy-900); }
.source-preview-item { padding: 1rem 0; border-top: 1px solid #33465f; }
.source-preview-item:first-child { border-top: 0; }
.source-preview-item b { display: block; color: var(--gold); font: 700 .62rem var(--mono); letter-spacing: .08em; }
.source-preview-item span { display: block; margin-top: .4rem; color: #b7c5d7; }

.next-system { display: grid; grid-template-columns: 1fr .55fr; align-items: center; gap: 4rem; border-top: 1px solid rgba(17,29,50,.2); }
.next-system p:not(.eyebrow) { max-width: 780px; color: #4d6073; }
.next-system-lock { min-height: 300px; display: grid; place-content: center; text-align: center; color: var(--paper); background: var(--navy-900); border: 1px solid var(--slate); box-shadow: var(--shadow); }
.next-system-lock span { color: var(--gold); font: 800 .75rem var(--mono); letter-spacing: .18em; }
.next-system-lock strong { margin: .8rem 0; font: 700 2.2rem var(--serif); }
.next-system-lock small { color: #8fa2b9; font: .6rem var(--mono); letter-spacing: .12em; }

.closing-section { min-height: 620px; display: grid; place-content: center; justify-items: start; padding: 5rem clamp(1rem, 6vw, 7rem); color: var(--paper); background: var(--navy-950); }
.closing-section p { color: var(--gold); font: 800 .8rem var(--mono); letter-spacing: .2em; }
.closing-section h2 { max-width: 1000px; font-size: clamp(3rem, 7vw, 7rem); }
.closing-section > strong { margin-bottom: 2rem; color: var(--mint); font: 800 .75rem var(--mono); letter-spacing: .16em; }

footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding-block: 2rem; color: var(--paper); background: var(--navy-900); }
footer::before { content: ''; position: absolute; left: 0; right: 0; height: 100%; background: var(--navy-900); z-index: -1; }
footer > div:first-child b { display: block; font: 700 1.1rem var(--serif); }
footer > div:first-child span { color: var(--gold); font: 700 .55rem var(--mono); letter-spacing: .12em; }
footer p { color: #9fb0c4; font-size: .8rem; }
footer > div:last-child { display: flex; gap: 1rem; }
footer button, footer a { border: 0; background: transparent; color: var(--paper); text-decoration: none; font: 700 .62rem var(--mono); text-transform: uppercase; cursor: pointer; }
footer button:hover, footer a:hover { color: var(--gold); }

.source-dialog { width: min(1000px, calc(100% - 2rem)); max-height: min(860px, calc(100vh - 2rem)); padding: 0; color: var(--paper); background: var(--navy-900); border: 1px solid var(--slate); box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.source-dialog::backdrop { background: rgba(5,10,18,.8); }
.dialog-head { position: sticky; top: 0; display: flex; align-items: start; justify-content: space-between; gap: 2rem; padding: 1.5rem; background: var(--navy-950); border-bottom: 1px solid #34465f; }
.dialog-head h2 { margin: 0; font: 700 2rem var(--serif); }
.dialog-head button { color: var(--paper); background: transparent; border: 1px solid var(--slate); padding: .6rem; font: 700 .65rem var(--mono); cursor: pointer; }
#source-dialog-content { padding: 1.5rem; }
.source-entry { padding: 1.4rem 0; border-top: 1px solid #34465f; }
.source-entry:first-child { border-top: 0; }
.source-entry header { display: flex; justify-content: space-between; gap: 1rem; }
.source-entry h3 { margin: 0; color: var(--gold); font: 700 1.15rem var(--serif); }
.source-entry code { color: var(--mint); font-size: .65rem; }
.source-entry p { color: #bac7d7; }
.source-entry ul { color: #d3deea; }
.source-entry a { color: var(--blue); word-break: break-word; }
.source-method { padding: 1rem; margin-top: 1rem; color: #d6e0eb; background: #17243a; border-left: 4px solid var(--gold); }

@media (min-width: 1181px) {
  :root { --max: 1320px; }
  html { font-size: 15px; }
  .site-header {
    min-height: 68px;
    padding-inline: clamp(1rem, 3vw, 3rem);
  }
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: clamp(2.5rem, 4vw, 5rem);
    padding-block: clamp(4rem, 6vw, 6.5rem);
  }
  .hero::before {
    inset: 68px 0 auto;
    height: min(660px, 75vh);
  }
  .hero h1 {
    max-width: 800px;
    font-size: clamp(3.3rem, 4.8vw, 5.8rem);
  }
  .hero-lead {
    max-width: 700px;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
  }
  .hero-actions { margin-block: 1.65rem; }
  .hero-doctrine { margin-top: 1.8rem; }
  .section { padding-block: clamp(4.25rem, 6vw, 6.8rem); }
  .section-heading { max-width: 800px; margin-bottom: 2.5rem; }
  .section-heading h2,
  .architecture-header h2,
  .source-brief h2,
  .next-system h2,
  .closing-section h2 {
    font-size: clamp(2rem, 3.25vw, 3.75rem);
  }
  .kpi-card { min-height: 190px; padding: 1.35rem; }
  .kpi-card strong {
    margin-top: 1.45rem;
    font-size: clamp(2.25rem, 3.2vw, 3.9rem);
  }
  .section-problem { padding-top: clamp(5.5rem, 7vw, 7.5rem); }
  .lens-panel { min-height: 500px; }
  .protocol-flow article { min-height: 290px; }
  .console-shell { min-height: 680px; }
  .boundary-card { min-height: 390px; }
  .closing-section { min-height: 520px; }
  .closing-section h2 { max-width: 900px; }
}

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .hero-system-card { min-height: 520px; }
  .hero-art-card { max-width: 760px; min-height: 0; justify-self: center; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .lens-panel { grid-template-columns: 1fr; }
  .lens-solution { border-left: 0; border-top: 6px solid var(--gold); }
  .protocol-flow { grid-template-columns: repeat(2, 1fr); }
  .flow-arrow { display: none; }
  .console-shell { grid-template-columns: 180px 1fr; }
  .console-kpis { grid-template-columns: repeat(2, 1fr); }
  .case-row { grid-template-columns: 1.1fr .45fr 1.3fr .65fr .65fr .65fr; }
  .case-row > :last-child { display: none; }
}

@media (max-width: 840px) {
  .site-header { min-height: 64px; }
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 64px; display: none; flex-direction: column; align-items: stretch; padding: 1rem; background: var(--navy-950); border-bottom: 1px solid var(--slate); }
  .primary-nav.open { display: flex; }
  .primary-nav a, .primary-nav button { text-align: left; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5.5rem); }
  .kpi-strip { grid-template-columns: 1fr; }
  .lens-tabs { grid-template-columns: repeat(2, 1fr); }
  .lens-facts { grid-template-columns: 1fr; }
  .protocol-flow { grid-template-columns: 1fr; }
  .category-statement { grid-template-columns: 1fr; }
  .console-shell { grid-template-columns: 1fr; }
  .console-sidebar { display: none; }
  .case-row { grid-template-columns: 1fr .4fr 1fr .6fr .7fr; }
  .case-row > :nth-child(6), .case-row > :nth-child(7) { display: none; }
  .metrics-grid { grid-template-columns: 1fr; }
  .learning-chain { grid-column: auto; }
  .architecture-header, .next-system, .calculator-layout, .commercial-scale, .evidence-section { grid-template-columns: 1fr; }
  .architecture-total { min-width: auto; }
  .bar { grid-template-columns: 80px 1fr; }
  .bar em { grid-column: 1 / -1; }
  .calculator-results { grid-template-columns: 1fr; }
  .scale-controls, .scale-results { grid-template-columns: 1fr; }
  .scale-results { grid-column: auto; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .section-grid, .section, .kpi-strip, footer { width: min(100% - 1.25rem, var(--max)); }
  .hero-system-card { min-height: 390px; padding: 1rem; }
  .hero-art-card { min-height: 0; padding: 0; }
  .lens-tabs { grid-template-columns: 1fr; }
  .console-kpis { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 1.2fr .5fr 1fr; }
  .case-row > :nth-child(n+4) { display: none; }
  .architecture-bars .bar { grid-template-columns: 1fr; }
  .bar em { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
