:root {
  color-scheme: dark;
  --canvas: #080a0a;
  --canvas-raised: #0e1111;
  --surface: #151919;
  --ink: #f5f7f5;
  --muted: #a4aeaa;
  --quiet: #69736f;
  --line: #2a302e;
  --line-soft: rgba(255, 255, 255, 0.08);
  --signal: #26d9c7;
  --signal-soft: rgba(38, 217, 199, 0.13);
  --paper: #eef1ec;
  --paper-ink: #101313;
  --paper-muted: #59635f;
  --paper-line: #cdd3cf;
  --radius: 8px;
  --max: 1240px;
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Consolas, monospace;
  --sans: "Avenir Next", Avenir, "Segoe UI Variable", "Segoe UI", Helvetica, Arial, sans-serif;
  font-family: var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--ink); background: var(--canvas); font-size: 16px; line-height: 1.55; }
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { overflow-wrap: normal; text-wrap: balance; }
h1 { margin-bottom: 0; font-size: clamp(4rem, 7.5vw, 7rem); font-weight: 680; line-height: 0.9; }
h2 { margin-bottom: 0; font-size: clamp(2.3rem, 5vw, 4.7rem); font-weight: 640; line-height: 1.02; }
h3 { margin-bottom: 0; }
code, pre { font-family: var(--mono); }
pre { margin: 0; overflow: auto; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; transform: translateY(-150%); padding: 0.7rem 1rem; border-radius: var(--radius); background: var(--signal); color: #06110f; font-weight: 700; transition: transform 160ms ease; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 30; border-bottom: 1px solid transparent; background: rgba(8, 10, 10, 0.7); transition: background 180ms ease, border-color 180ms ease; backdrop-filter: blur(18px); }
.site-header.is-elevated { border-color: var(--line-soft); background: rgba(8, 10, 10, 0.94); }
.nav-shell { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: min(calc(100% - 3rem), var(--max)); height: 68px; margin: 0 auto; }
.brand-mark { display: inline-flex; flex: 0 0 auto; width: 174px; }
.brand-mark img, .footer-brand img { width: 100%; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; white-space: nowrap; }
.nav-links a { color: var(--muted); font-size: 0.84rem; font-weight: 600; transition: color 160ms ease; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a.is-active { color: var(--ink); }
.nav-links .nav-github { min-height: 38px; padding: 0.54rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); }
.nav-toggle { display: none; }
.section-shell, .hero-shell, .site-footer { width: min(calc(100% - 3rem), var(--max)); margin: 0 auto; }

.hero { position: relative; min-height: min(820px, calc(100dvh - 44px)); padding-top: 68px; overflow: hidden; background: linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(255,255,255,.035) calc(100% - 1px)), linear-gradient(0deg, transparent 0, transparent calc(100% - 1px), rgba(255,255,255,.028) calc(100% - 1px)), var(--canvas); background-size: 80px 80px; }
.hero::before { content: ""; position: absolute; top: 18%; right: -18%; width: 55%; aspect-ratio: 1; border: 1px solid rgba(38,217,199,.09); border-radius: 50%; box-shadow: 0 0 0 90px rgba(38,217,199,.018), 0 0 0 180px rgba(38,217,199,.012); pointer-events: none; }
.hero-shell { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,.82fr) minmax(500px,1.18fr); gap: clamp(2.5rem,6vw,6rem); align-items: center; min-height: calc(min(820px, calc(100dvh - 44px)) - 124px); padding: 2.5rem 0 4rem; }
.hero-copy { min-width: 0; }
.hero-kicker, .section-index { font-family: var(--mono); font-size: .73rem; font-weight: 600; letter-spacing: 0; text-transform: uppercase; }
.hero-kicker { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.4rem; color: var(--muted); }
.hero-kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 5px var(--signal-soft); }
.hero-statement { max-width: 15ch; margin: 1.15rem 0 0; color: var(--ink); font-size: clamp(1.45rem,2.35vw,2.15rem); font-weight: 570; line-height: 1.15; }
.hero-summary { max-width: 51ch; margin: 1.2rem 0 0; color: var(--muted); font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .72rem 1rem; border: 1px solid transparent; border-radius: var(--radius); font-size: .9rem; font-weight: 680; white-space: nowrap; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.button:hover, .button:focus-visible, .copy-button:hover, .copy-button:focus-visible, .command-tab:hover, .command-tab:focus-visible { transform: translateY(-1px); }
.button:active, .copy-button:active, .command-tab:active { transform: translateY(1px); }
.button-primary { background: var(--signal); color: #07110f; }
.button-primary:hover, .button-primary:focus-visible { background: #49e4d5; }
.button-quiet { border-color: var(--line); background: var(--surface); color: var(--ink); }

.reconcile-window { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(14,17,17,.96); box-shadow: 0 34px 90px rgba(0,0,0,.42); }
.window-bar, .window-title, .plane-row, .channel-rail, .condition-log li { display: flex; align-items: center; }
.window-bar { justify-content: space-between; min-height: 52px; padding: 0 1rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .76rem; }
.window-title { gap: .6rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); animation: breathe 2.4s ease-in-out infinite; }
.window-context { color: var(--quiet); }
.window-summary { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--line); }
.window-summary > div { min-width: 0; padding: .9rem 1rem; border-right: 1px solid var(--line); }
.window-summary > div:last-child { border-right: 0; }
.summary-label { display: block; color: var(--quiet); font-family: var(--mono); font-size: .65rem; text-transform: uppercase; }
.window-summary strong { display: block; margin-top: .35rem; font-size: .9rem; }
.signal { color: var(--signal); }
.network-plane { padding: 1rem; border-bottom: 1px solid var(--line); }
.plane-row { gap: .65rem; }
.row-label { width: 74px; flex: 0 0 74px; color: var(--quiet); font-family: var(--mono); font-size: .6rem; writing-mode: vertical-rl; transform: rotate(180deg); }
.node { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .5rem; flex: 1; min-width: 0; padding: .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.node i { grid-row: 1 / 3; align-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.node b { font-family: var(--mono); font-size: .76rem; }
.node small { color: var(--quiet); font-family: var(--mono); font-size: .62rem; }
.channel-rail { gap: .7rem; margin: .9rem 0 .9rem 74px; color: var(--muted); font-family: var(--mono); font-size: .66rem; }
.rail-line { flex: 1; height: 1px; background: var(--line); }
.channel-rail b { color: var(--signal); }
.org-row { align-items: stretch; }
.org-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; flex: 2; min-width: 0; padding: .55rem; border: 1px dashed var(--line); border-radius: 6px; }
.org-group:last-child { flex: 1; grid-template-columns: 1fr; }
.org-group > span { grid-column: 1 / -1; color: var(--muted); font-family: var(--mono); font-size: .64rem; }
.condition-log { padding: 0; margin: 0; list-style: none; }
.condition-log li { min-height: 35px; padding: 0 1rem; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: .67rem; }
.condition-log li:last-child { border-bottom: 0; }
.condition-log time { width: 76px; color: var(--quiet); }
.condition-log span { flex: 1; min-width: 0; color: var(--muted); }
.condition-log b { color: var(--signal); }
.capability-strip { position: absolute; inset: auto 0 0; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-top: 1px solid var(--line); background: rgba(8,10,10,.9); }
.capability-strip span { min-width: 0; padding: .85rem 1rem; border-right: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .66rem; text-align: center; }
.capability-strip span:last-child { border-right: 0; }

.section-dark, .section-light, .federation, .final-cta { border-top: 1px solid var(--line); }
.section-dark, .section-light { padding: clamp(5.5rem,10vw,9rem) 0; }
.install { padding-top: 2.5rem; }
.section-light { color: var(--paper-ink); background: var(--paper); border-color: var(--paper-line); }
.section-index { display: block; margin-bottom: 1.25rem; color: var(--signal); }
.section-intro p, .boundaries-heading p, .ccaas-copy p, .federation-heading p, .docs-heading p { max-width: 56ch; margin: 1.3rem 0 0; color: var(--muted); font-size: 1.03rem; }
.section-light .section-index { color: #087d72; }
.section-light .docs-heading p { color: var(--paper-muted); }
.install-layout { display: grid; grid-template-columns: minmax(280px,.65fr) minmax(0,1.35fr); gap: clamp(3rem,8vw,7rem); align-items: start; }
.section-intro h2 { max-width: 11ch; }
.text-link, .federation-link { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.6rem; color: var(--ink); font-size: .9rem; font-weight: 650; }
.text-link span, .federation-link span { color: var(--signal); transition: transform 160ms ease; }
.text-link:hover span, .text-link:focus-visible span, .federation-link:hover span, .federation-link:focus-visible span { transform: translateX(4px); }
.command-workspace, .manifest-view { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--canvas-raised); }
.command-tabs { display: flex; min-height: 52px; border-bottom: 1px solid var(--line); }
.command-tab { position: relative; min-width: 0; padding: 0 1rem; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--quiet); cursor: pointer; font-size: .77rem; font-weight: 650; }
.command-tab.is-active { color: var(--ink); background: var(--surface); }
.command-tab.is-active::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--signal); }
.command-meta { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; min-height: 50px; padding: 0 .75rem 0 1rem; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: .78rem; }
.command-meta > span { color: var(--quiet); font-family: var(--mono); }
.copy-button { min-width: 64px; min-height: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: .72rem; font-weight: 650; }
.copy-button.is-copied { border-color: var(--signal); color: var(--signal); }
.command-panel pre, .manifest-view pre { padding: 1.35rem; color: #d9dfdc; font-size: .78rem; line-height: 1.75; white-space: pre; }
.prompt, .yaml-value { color: var(--signal); }
.command-result { display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .7rem 1rem; border-top: 1px solid var(--line); background: var(--signal-soft); color: var(--muted); font-size: .74rem; }
.result-mark { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border: 1px solid var(--signal); border-radius: 50%; color: var(--signal); }

.control-heading { max-width: 900px; margin-bottom: 3rem; }
.control-heading h2 { max-width: 14ch; }
.control-grid { display: grid; grid-template-columns: minmax(340px,.72fr) minmax(0,1.28fr); gap: clamp(2rem,6vw,6rem); align-items: start; }
.file-bar { display: flex; justify-content: space-between; gap: 1rem; min-height: 50px; padding: 0 1rem; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .72rem; }
.file-bar b { color: var(--signal); }
.yaml-key { color: #8fbab4; }
.reconcile-sequence { padding: 0; margin: 0; border-top: 1px solid var(--paper-line); list-style: none; }
.reconcile-sequence li { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 1rem; align-items: center; min-height: 130px; border-bottom: 1px solid var(--paper-line); }
.reconcile-sequence > li > span { color: #087d72; font-family: var(--mono); font-size: .75rem; }
.reconcile-sequence h3 { font-size: 1.25rem; }
.reconcile-sequence p { max-width: 48ch; margin: .45rem 0 0; color: var(--paper-muted); font-size: .9rem; }
.reconcile-sequence b { padding: .35rem .5rem; border: 1px solid #a6c7c0; border-radius: 5px; color: #087d72; font-family: var(--mono); font-size: .63rem; }

.boundaries { background: var(--canvas-raised); }
.boundaries-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.38fr); gap: clamp(2rem,7vw,7rem); align-items: end; margin-bottom: 3rem; }
.boundaries-heading .section-index, .boundaries-heading h2 { grid-column: 1; }
.boundaries-heading p { grid-column: 2; grid-row: 1 / 3; align-self: end; margin: 0; }
.namespace-map { border-top: 1px solid var(--line); }
.namespace-ruler, .namespace-row { display: grid; align-items: center; }
.namespace-ruler { grid-template-columns: 1fr auto; min-height: 48px; color: var(--quiet); font-family: var(--mono); font-size: .68rem; }
.namespace-row { grid-template-columns: minmax(260px,.9fr) 120px minmax(0,1.2fr) 64px; gap: 1.25rem; min-height: 116px; border-top: 1px solid var(--line); }
.namespace-id { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.namespace-id span { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid var(--line); border-radius: 50%; color: var(--signal); font-family: var(--mono); font-size: .68rem; }
.namespace-id strong { overflow: hidden; font-family: var(--mono); font-size: .79rem; text-overflow: ellipsis; }
.namespace-role { color: var(--muted); font-size: .85rem; }
.namespace-row ul { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; list-style: none; }
.namespace-row li { padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: .7rem; }
.namespace-state { color: var(--signal); font-family: var(--mono); font-size: .7rem; text-align: right; }

.ccaas { background: #0b0e0e; }
.ccaas-layout { display: grid; grid-template-columns: 1fr; gap: clamp(3rem,8vw,6rem); }
.ccaas-copy, .lifecycle-track { min-width: 0; }
.ccaas-copy h2 { max-width: 14ch; }
.runtime-list { display: flex; gap: .5rem; margin-top: 1.8rem; }
.runtime-list span { padding: .38rem .58rem; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-family: var(--mono); font-size: .7rem; }
.lifecycle-track { position: relative; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .6rem; align-items: stretch; }
.track-line { position: absolute; top: 28px; right: 5%; left: 5%; height: 1px; background: var(--line); }
.lifecycle-track article { position: relative; z-index: 1; min-width: 0; min-height: 230px; padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.lifecycle-track article > span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--canvas); color: var(--muted); font-family: var(--mono); font-size: .68rem; }
.lifecycle-track h3 { margin-top: 4.5rem; font-size: 1rem; }
.lifecycle-track p { margin: .4rem 0 0; color: var(--quiet); font-size: .78rem; }
.lifecycle-track .track-live { border-color: var(--signal); background: var(--signal); color: #07110f; }
.track-live > span { border-color: rgba(0,0,0,.22) !important; background: transparent !important; color: #07110f !important; }
.track-live p { color: #155249; }
.track-live b { display: block; margin-top: 1.2rem; font-family: var(--mono); font-size: .68rem; }

.federation { padding: clamp(5.5rem,10vw,9rem) 0; color: var(--paper-ink); background: var(--paper); border-color: var(--paper-line); }
.federation-heading { max-width: 850px; }
.federation-heading h2 { max-width: 12ch; }
.federation-heading p { color: var(--paper-muted); }
.federation-diagram { display: grid; grid-template-columns: minmax(0,1fr) minmax(190px,.5fr) minmax(0,1fr); gap: 1rem; align-items: stretch; margin-top: 3.5rem; }
.cluster-zone { min-width: 0; min-height: 300px; padding: 1.4rem; border: 1px solid var(--paper-line); border-radius: var(--radius); background: #f8faf7; }
.zone-head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--paper-line); color: var(--paper-muted); font-family: var(--mono); font-size: .7rem; }
.zone-head b { color: #087d72; }
.cluster-zone > strong { display: block; margin-top: 4.2rem; font-size: clamp(1.6rem,3vw,2.3rem); }
.cluster-zone p { max-width: 37ch; margin: .7rem 0 1.5rem; color: var(--paper-muted); }
.cluster-zone code { padding: .45rem .55rem; border: 1px solid #abd0c9; border-radius: 5px; color: #087d72; font-size: .7rem; }
.join-transfer { position: relative; display: grid; place-items: center; min-width: 0; }
.transfer-line { position: absolute; inset: 50% 0 auto; height: 1px; background: #087d72; }
.join-transfer > div { position: relative; z-index: 1; display: grid; gap: .38rem; width: min(170px,100%); padding: 1rem; border: 1px solid #087d72; border-radius: var(--radius); background: var(--paper); text-align: center; }
.join-transfer small { color: var(--paper-muted); font-family: var(--mono); font-size: .6rem; text-transform: uppercase; }
.join-transfer strong { margin-bottom: .35rem; }
.join-transfer span:not(.transfer-line) { color: #087d72; font-family: var(--mono); font-size: .64rem; }
.federation-link { color: var(--paper-ink); }

.docs-layout { display: grid; grid-template-columns: 1fr; gap: clamp(3rem,8vw,6rem); }
.docs-heading, .runbook-list, .runbook-list a > * { min-width: 0; }
.docs-heading h2 { max-width: 14ch; }
.runbook-list { border-top: 1px solid var(--paper-line); }
.runbook-list a { display: grid; grid-template-columns: 42px minmax(170px,.7fr) minmax(0,1fr) 24px; gap: 1rem; align-items: center; min-height: 98px; border-bottom: 1px solid var(--paper-line); transition: padding 180ms ease, background 180ms ease; }
.runbook-list a:hover, .runbook-list a:focus-visible { padding-right: .75rem; padding-left: .75rem; background: #e3e8e3; }
.runbook-list span { color: #087d72; font-family: var(--mono); font-size: .7rem; }
.runbook-list strong { font-size: 1rem; }
.runbook-list p { margin: 0; color: var(--paper-muted); font-size: .84rem; }
.runbook-list b { color: #087d72; font-size: 1rem; }

.final-cta { padding: 4rem 0; background: var(--signal); color: #07110f; border-color: #1aa999; }
.final-cta-shell { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.final-cta span { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; }
.final-cta h2 { margin-top: .65rem; font-size: clamp(2.25rem,5vw,4.5rem); }
.final-cta .button-primary { flex: 0 0 auto; background: #07110f; color: var(--ink); }
.site-footer { display: grid; grid-template-columns: minmax(260px,1fr) auto; gap: 2rem 5rem; padding: 4rem 0 2rem; }
.footer-brand { max-width: 480px; }
.footer-brand img { width: 200px; }
.footer-brand p, .footer-note { color: var(--quiet); font-size: .78rem; }
.footer-brand p { max-width: 50ch; margin: 1rem 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.2rem; }
.site-footer nav a { color: var(--muted); font-size: .78rem; font-weight: 650; }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: var(--ink); }
.footer-note { grid-column: 1 / -1; padding-top: 1.5rem; margin: 0; border-top: 1px solid var(--line); }

.not-found-page { display: grid; align-content: center; min-height: 100dvh; padding: 6rem 0; }
.not-found-shell { width: min(calc(100% - 3rem), 920px); margin: 0 auto; }
.not-found-code { display: block; margin-bottom: 1.5rem; color: var(--signal); font-family: var(--mono); font-size: .75rem; text-transform: uppercase; }
.not-found-page h1 { max-width: 8ch; font-size: clamp(4rem,12vw,8rem); }
.not-found-page p { max-width: 52ch; margin: 1.4rem 0 0; color: var(--muted); }
.not-found-page .hero-actions { margin-top: 2rem; }
.not-found-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.not-found-links span { color: var(--quiet); font-family: var(--mono); font-size: .7rem; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes breathe { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

@media (max-width: 1060px) {
  .hero { min-height: auto; }
  .hero-shell { grid-template-columns: 1fr; min-height: auto; padding-top: 5rem; padding-bottom: 6rem; }
  .hero-copy { max-width: 720px; }
  .hero-statement { max-width: none; }
  .reconcile-window { width: min(760px,100%); margin-left: auto; }
  .capability-strip { position: relative; grid-template-columns: repeat(3,1fr); }
  .install-layout { grid-template-columns: 1fr; }
  .section-intro h2 { max-width: 14ch; }
}

@media (max-width: 840px) {
  .nav-shell, .section-shell, .hero-shell, .site-footer { width: min(calc(100% - 2rem),var(--max)); }
  .nav-toggle { display: inline-flex; align-items: center; gap: .55rem; min-height: 38px; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: .78rem; font-weight: 650; }
  .nav-toggle-lines { display: grid; gap: 5px; }
  .nav-toggle-lines i { display: block; width: 17px; height: 1px; background: currentColor; }
  .nav-links { position: fixed; top: 68px; right: 1rem; left: 1rem; display: none; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas-raised); box-shadow: 0 24px 70px rgba(0,0,0,.55); }
  body.nav-open .nav-links { display: grid; gap: .25rem; }
  .nav-links a, .nav-links .nav-github { min-height: 44px; padding: .7rem; border: 0; background: transparent; }
  .control-grid, .boundaries-heading, .federation-diagram { grid-template-columns: 1fr; }
  .boundaries-heading .section-index, .boundaries-heading h2, .boundaries-heading p { grid-column: 1; grid-row: auto; }
  .boundaries-heading p { margin-top: 0; }
  .namespace-row { grid-template-columns: minmax(0,1fr) 70px; gap: .65rem 1rem; padding: 1.1rem 0; }
  .namespace-role { text-align: right; }
  .namespace-row ul { grid-column: 1; }
  .namespace-state { grid-column: 2; grid-row: 2; }
  .join-transfer { min-height: 170px; }
  .transfer-line { inset: 0 50% 0 auto; width: 1px; height: auto; }
  .final-cta-shell { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(3.5rem,16vw,4.6rem); }
  h2 { font-size: clamp(2.15rem,11vw,3.35rem); }
  .brand-mark { width: 148px; }
  .hero-shell { gap: 2rem; padding-top: 2.5rem; padding-bottom: 2rem; }
  .hero-kicker { margin-bottom: 1rem; }
  .hero-statement { margin-top: .9rem; font-size: 1.45rem; }
  .hero-summary { margin-top: .9rem; }
  .hero-actions { margin-top: 1.2rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .window-context { display: none; }
  .window-summary > div { padding: .75rem; }
  .network-plane { display: none; }
  .row-label { display: none; }
  .channel-rail { margin-left: 0; }
  .orderer-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .org-row { display: grid; }
  .org-group, .org-group:last-child { grid-template-columns: 1fr; }
  .condition-log li { display: none; }
  .condition-log li:last-child { display: flex; }
  .condition-log time { display: none; }
  .capability-strip { display: flex; overflow-x: auto; scrollbar-width: none; }
  .capability-strip::-webkit-scrollbar { display: none; }
  .capability-strip span { flex: 0 0 auto; min-width: 148px; border-bottom: 0; }
  .command-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .command-tab { min-height: 52px; padding: .55rem; font-size: .68rem; }
  .command-panel pre, .manifest-view pre { padding: 1rem; font-size: .69rem; }
  .command-result code { font-size: .65rem; }
  .reconcile-sequence li { grid-template-columns: 36px minmax(0,1fr); padding: 1rem 0; }
  .reconcile-sequence b { grid-column: 2; justify-self: start; }
  .namespace-row { grid-template-columns: 1fr; }
  .namespace-role, .namespace-state { grid-column: 1; grid-row: auto; text-align: left; }
  .lifecycle-track { grid-template-columns: 1fr; }
  .track-line { top: 5%; bottom: 5%; left: 28px; width: 1px; height: auto; }
  .lifecycle-track article { display: grid; grid-template-columns: 46px 1fr; min-height: 110px; column-gap: .8rem; align-content: center; }
  .lifecycle-track article > span { grid-row: 1 / 4; }
  .lifecycle-track h3, .lifecycle-track p, .track-live b { grid-column: 2; margin-top: 0; }
  .runbook-list a { grid-template-columns: 34px minmax(0,1fr) 20px; grid-template-rows: auto auto; gap: .35rem .6rem; padding: 1rem 0; }
  .runbook-list span { grid-column: 1; grid-row: 1 / 3; align-self: start; }
  .runbook-list strong { grid-column: 2; grid-row: 1; }
  .runbook-list p { grid-column: 2; grid-row: 2; }
  .runbook-list b { grid-column: 3; grid-row: 1 / 3; justify-self: end; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
  .footer-note { grid-column: 1; }
  .not-found-shell { width: min(calc(100% - 2rem),920px); }
}

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