:root {
  --ink: #f4f2f8;
  --muted: #aaa5b4;
  --black: #070609;
  --surface: #121015;
  --surface-2: #1a171e;
  --surface-3: #25212a;
  --line: #3a3442;
  --purple: #b896ff;
  --purple-deep: #7550bd;
  --purple-soft: #d7c5ff;
  --red: #ff806f;
  --green: #8fd8ad;
  --max: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--purple-soft); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { color: var(--muted); }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
em { color: var(--purple-soft); font-style: normal; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--purple);
  color: #100b15;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.grid-bg {
  background-image: linear-gradient(rgba(184,150,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(184,150,255,.12) 1px, transparent 1px);
  background-size: 34px 34px;
}
.eyebrow {
  margin-bottom: 22px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.section {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: 112px 0;
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.section-heading h2, .storage-section h2, .historical-note h2, .law-status h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 430;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.section-heading > p { margin-bottom: 4px; max-width: 580px; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--purple); color: #120d18; }
.button.primary:hover { background: var(--purple-soft); }
.button.secondary { border-color: #6b6277; background: rgba(8,7,10,.5); }
.button.secondary:hover { border-color: var(--purple); }
.button.text { min-height: auto; padding: 6px 0; border-radius: 0; color: var(--purple-soft); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 30; padding: 14px 0; }
.nav-shell {
  display: flex;
  width: min(var(--max), calc(100% - 36px));
  min-height: 66px;
  margin: 0 auto;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 19px;
  background: rgba(7,6,9,.84);
  box-shadow: 0 14px 50px rgba(0,0,0,.24);
  backdrop-filter: blur(18px);
}
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 820; letter-spacing: .08em; }
.mesa-mark {
  display: block;
  width: 33px;
  height: 33px;
  background: var(--purple);
  clip-path: polygon(0 100%, 0 0, 20% 0, 50% 47%, 80% 0, 100% 0, 100% 100%, 78% 100%, 78% 43%, 50% 86%, 22% 43%, 22% 100%);
}
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav > a { position: relative; color: #d4d0d9; font-size: 14px; }
.site-header nav > a:hover, .site-header nav > a.active { color: #fff; }
.site-header nav > a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; background: var(--purple); }
.site-header .nav-github { padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; }
.menu-toggle { display: none; width: 43px; height: 43px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); }

.hero {
  position: relative;
  display: grid;
  min-height: 960px;
  padding: 210px max(32px, calc((100vw - var(--max)) / 2)) 110px;
  align-items: center;
  overflow: hidden;
  background-color: #09070c;
}
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  right: -180px;
  top: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(146,102,230,.25), transparent 66%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 930px; }
.hero h1, .page-hero h1, .not-found h1 {
  margin-bottom: 34px;
  font-size: clamp(56px, 7.5vw, 112px);
  font-weight: 390;
  letter-spacing: -.065em;
  line-height: .94;
}
.hero-copy > p:not(.eyebrow) { max-width: 700px; font-size: clamp(19px, 2vw, 25px); }
.hero-copy .actions { margin-top: 38px; }
.hero-orbit { position: absolute; right: max(24px, calc((100vw - var(--max)) / 2)); top: 310px; width: 420px; height: 420px; opacity: .82; }
.hero-orbit::before, .hero-orbit::after, .hero-orbit span { content: ""; position: absolute; inset: 0; border: 1px solid rgba(184,150,255,.35); border-radius: 50%; }
.hero-orbit::after { inset: 57px; }
.hero-orbit span:nth-child(1) { inset: 115px; }
.hero-orbit span:nth-child(2) { width: 14px; height: 14px; top: 13%; left: 48%; border: 0; background: var(--purple); box-shadow: 260px 160px 0 #6e4da7, -145px 230px 0 var(--purple-soft); }
.hero-orbit span:nth-child(3) { inset: 36px 190px; border-radius: 0; transform: rotate(46deg); }
.hero-orbit span:nth-child(4) { inset: 36px 190px; border-radius: 0; transform: rotate(-46deg); }
.hero-orbit i { position: absolute; inset: 50%; transform: translate(-50%, -50%); display: grid; width: 110px; height: 110px; place-items: center; border: 1px solid var(--purple); background: #0e0a14; color: var(--purple); font-size: 48px; font-style: normal; }
.scroll-cue { position: absolute; bottom: 46px; left: max(32px, calc((100vw - var(--max)) / 2)); color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

.status-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--purple); color: #15101b; }
.status-strip > div { min-height: 142px; padding: 34px max(20px, calc((100vw - var(--max)) / 8)); border-right: 1px solid rgba(20,15,27,.25); }
.status-strip small { display: block; margin-bottom: 16px; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.status-strip strong { display: block; font-size: clamp(18px, 2vw, 27px); line-height: 1.1; }
.status-strip .status-no-go { color: #6d1320; }

.problem-section { padding-top: 132px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.principle-grid article, .ecosystem-card, .law-grid article {
  position: relative;
  min-height: 310px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.principle-grid article > span, .card-index { color: var(--purple); font: 13px/1 monospace; }
.principle-grid h3, .ecosystem-card h3, .law-grid h3 { margin: 48px 0 14px; font-size: 27px; font-weight: 520; }
.principle-grid a, .card-links a { color: var(--purple-soft); font-size: 14px; font-weight: 700; }
.principle-grid article:hover, .ecosystem-card:hover { border-color: var(--purple-deep); background: var(--surface-2); }

.architecture-section { width: 100%; padding: 120px max(32px, calc((100vw - var(--max)) / 2)); border-block: 1px solid var(--line); background-color: #0c0a0f; }
.architecture-flow { display: flex; align-items: stretch; overflow-x: auto; padding-bottom: 12px; scrollbar-color: var(--purple) var(--surface); }
.flow-step { flex: 1 0 160px; min-height: 210px; padding: 22px; border: 1px solid var(--line); background: rgba(18,16,21,.94); }
.flow-step span { color: var(--purple); font: 12px/1 monospace; }
.flow-step strong, .flow-step small { display: block; }
.flow-step strong { margin: 52px 0 9px; font-size: 19px; }
.flow-step small { color: var(--muted); line-height: 1.45; }
.architecture-flow > b { display: grid; flex: 0 0 34px; place-items: center; color: var(--purple); font-weight: 400; }
.section-actions { display: flex; gap: 22px; margin-top: 35px; }

.ecosystem-section { padding-bottom: 130px; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ecosystem-card { grid-column: span 2; min-height: 360px; display: flex; flex-direction: column; }
.ecosystem-card:nth-child(4) { grid-column: 2 / span 2; }
.ecosystem-card .eyebrow { margin: 34px 0 0; }
.ecosystem-card h3 { margin-top: 18px; }
.ecosystem-card > p:not(.eyebrow) { flex: 1; }
.card-links { display: flex; justify-content: space-between; gap: 16px; }
.card-links a:last-child { color: var(--muted); }

.reliability-section { width: 100%; padding-inline: max(32px, calc((100vw - var(--max)) / 2)); background: var(--surface-2); }
.reliability-list { border-top: 1px solid var(--line); }
.reliability-list article { display: grid; grid-template-columns: 230px 1fr; gap: 30px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.reliability-list strong { color: var(--purple-soft); font-size: 22px; }
.reliability-list p { margin: 0; max-width: 780px; }

.quickstart-section, .quickstart-doc { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.quickstart-copy h2, .quickstart-doc h2 { font-size: clamp(38px, 4vw, 60px); font-weight: 430; letter-spacing: -.045em; line-height: 1.05; }
.terminal { min-width: 0; overflow: hidden; border: 1px solid #4d4556; border-radius: 10px; background: #100e13; box-shadow: 0 32px 80px rgba(0,0,0,.36); }
.terminal-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 13px 16px; border-bottom: 1px solid #3a3442; background: #1b181f; color: var(--muted); font: 12px/1 monospace; }
.terminal-bar > span { display: flex; gap: 6px; }
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; background: #6d6575; }
.terminal-bar i:nth-child(2) { background: var(--purple-deep); }
.terminal-bar i:nth-child(3) { background: var(--purple); }
.copy-button { justify-self: end; padding: 5px 10px; border: 1px solid #504859; border-radius: 5px; background: transparent; color: var(--purple-soft); cursor: pointer; }
.terminal pre { margin: 0; padding: 28px; overflow-x: auto; color: #e9e4ef; font: 13px/1.8 "SFMono-Regular", Consolas, monospace; white-space: pre; }

.closing-cta { min-height: 570px; padding: 110px max(32px, calc((100vw - var(--max)) / 2)); border-top: 1px solid var(--line); background-color: #0b090d; }
.closing-cta > div { max-width: 820px; }
.closing-cta h2 { margin-bottom: 25px; font-size: clamp(44px, 5vw, 72px); font-weight: 420; letter-spacing: -.05em; line-height: 1; }
.closing-cta p:not(.eyebrow) { max-width: 700px; font-size: 18px; }
.closing-cta .actions { margin-top: 34px; }
.site-footer { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; padding: 70px max(32px, calc((100vw - var(--max)) / 2)) 28px; background: #050406; }
.footer-brand .logo { margin-bottom: 24px; }
.footer-brand p { margin-bottom: 5px; }
.footer-note { color: var(--red); font-size: 13px; }
.footer-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 35px; }
.footer-groups h3 { margin-bottom: 19px; color: var(--purple); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.footer-groups a { display: block; margin: 10px 0; color: var(--muted); font-size: 14px; }
.footer-groups a:hover { color: var(--ink); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 45px; padding-top: 20px; border-top: 1px solid #29252e; color: #706b76; font-size: 12px; }

.page-hero { position: relative; min-height: 800px; padding: 220px max(32px, calc((100vw - var(--max)) / 2)) 110px; overflow: hidden; background-color: #0a080c; }
.page-hero.compact { min-height: 680px; }
.page-hero > * { position: relative; z-index: 2; }
.page-hero h1 { max-width: 1100px; font-size: clamp(55px, 7vw, 98px); }
.page-hero > p:not(.eyebrow) { max-width: 730px; font-size: 20px; }
.page-hero .actions { margin-top: 34px; }
.data-accent { background: linear-gradient(120deg, #09070c 55%, #18102a); }
.certification-accent { background: linear-gradient(120deg, #09070c 55%, #260f1d); }
.docs-accent { background: linear-gradient(120deg, #09070c 55%, #101b2b); }
.status-accent { background: linear-gradient(120deg, #09070c 55%, #241c10); }

.surface-section, .storage-section { width: 100%; padding-inline: max(32px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; background: var(--surface-2); }
.surface-copy h2 { font-size: clamp(38px, 4vw, 62px); font-weight: 430; line-height: 1.04; letter-spacing: -.045em; }
.scope-visual { display: grid; min-height: 520px; place-items: center; }
.scope-visual > span { width: 100%; min-height: 460px; padding: 24px; border: 1px solid var(--purple-deep); color: var(--purple-soft); }
.scope-visual span, .scope-visual strong { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.scope-visual strong { flex: 1; margin-top: 8px; padding: 24px; border: 1px solid #725999; color: #d1c6de; }
.scope-visual strong span { flex: 1; padding: 24px; border: 1px solid #564d61; color: #aaa0b4; }
.scope-visual strong span strong { color: #f2edf7; }
.scope-visual strong span strong span { color: var(--purple-soft); }
.scope-visual strong span strong span strong { display: grid; place-items: center; color: #fff; font-size: 20px; }
.lane-grid, .client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.lane-grid article, .client-grid a { min-height: 240px; padding: 25px; border: 1px solid var(--line); background: var(--surface); }
.lane-grid span, .client-grid span { color: var(--purple); font: 11px/1 monospace; letter-spacing: .13em; }
.lane-grid h3 { margin: 64px 0 10px; font-size: 30px; font-weight: 500; }
.lane-grid .fusion { background: var(--purple); color: #150e1c; }
.lane-grid .fusion span, .lane-grid .fusion p { color: #352647; }
.storage-section > div:first-child { align-self: center; }
.storage-grid { display: grid; gap: 10px; }
.storage-grid article { padding: 27px; border-left: 2px solid var(--purple); background: var(--surface); }
.storage-grid strong { font-size: 24px; }
.storage-grid p { margin: 8px 0 0; }
.client-grid { grid-template-columns: repeat(3, 1fr); }
.client-grid a { display: flex; flex-direction: column; min-height: 250px; }
.client-grid strong { margin: auto 0 8px; font-size: 25px; }
.client-grid small { color: var(--muted); }
.client-grid a:hover { border-color: var(--purple); }

.boundary-section { width: 100%; padding-inline: max(32px, calc((100vw - var(--max)) / 2)); background: var(--surface-2); }
.boundary-section h2 { font-size: 45px; font-weight: 450; }
.boundary-map { display: grid; grid-template-columns: 1fr 50px 1fr 50px 1fr; gap: 10px; align-items: center; }
.boundary-map div { min-height: 140px; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.boundary-map strong, .boundary-map small { display: block; }
.boundary-map strong { margin-bottom: 35px; font-size: 22px; }
.boundary-map small { color: var(--muted); }
.boundary-map b { color: var(--purple); text-align: center; }
.boundary-map i { grid-column: 2 / 5; height: 60px; border-inline: 1px solid var(--purple-deep); border-bottom: 1px solid var(--purple-deep); }
.boundary-map .below { grid-column: span 2; }
.boundary-map .below:last-child { grid-column: 4 / span 2; }

.source-table { border: 1px solid var(--line); }
.source-table > div { display: grid; grid-template-columns: 1.4fr 1fr .7fr 1.2fr; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.source-table > div:last-child { border: 0; }
.source-table > div:first-child { background: var(--surface-3); color: var(--purple-soft); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.source-table .ok { color: var(--green); }
.muted { color: var(--muted); }
.pipeline-section { width: 100%; padding-inline: max(32px, calc((100vw - var(--max)) / 2)); background-color: #0c0a0f; }
.pipeline-section h2 { margin-bottom: 50px; font-size: 48px; font-weight: 450; }
.pipeline { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.pipeline > div { min-height: 200px; padding: 20px; border: 1px solid var(--line); background: rgba(18,16,21,.93); }
.pipeline span, .pipeline strong, .pipeline small { display: block; }
.pipeline span { color: var(--purple); font: 12px/1 monospace; }
.pipeline strong { margin: 52px 0 10px; }
.pipeline small { color: var(--muted); }
.notice { display: grid; grid-template-columns: 200px 1fr; gap: 20px; margin-top: 24px; padding: 22px; border-left: 3px solid var(--purple); background: var(--surface-2); }
.notice p { margin: 0; }

.worktree-section { width: 100%; padding-inline: max(32px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 1fr 1fr; gap: 90px; background-color: #0c0a0f; }
.worktree-section h2 { font-size: 50px; font-weight: 450; }
.worktree-section ol { margin: 0; padding: 0; list-style: none; }
.worktree-section li { display: grid; grid-template-columns: 44px 1fr; align-items: center; min-height: 68px; border-bottom: 1px solid var(--line); }
.worktree-section li span { color: var(--purple); font-family: monospace; }

.cert-status { display: grid; grid-template-columns: .5fr 1.5fr; gap: 50px; padding: 45px max(32px, calc((100vw - var(--max)) / 2)); background: #d75972; color: #210a10; }
.cert-status small, .cert-status strong { display: block; }
.cert-status small { font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.cert-status strong { margin-top: 10px; font-size: 34px; }
.cert-status p { margin: 0; color: #2b1118; font-size: 18px; }
.compare-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.check-list, .cross-list { margin: 0; padding: 0; list-style: none; }
.check-list li, .cross-list li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); color: var(--muted); }
.check-list li::before, .cross-list li::before { position: absolute; left: 0; color: var(--green); content: "✓"; }
.cross-list li::before { color: var(--red); content: "×"; }
.historical-note, .law-status { width: 100%; padding-inline: max(32px, calc((100vw - var(--max)) / 2)); background: var(--surface-2); }
.historical-note p:not(.eyebrow), .law-status p:not(.eyebrow) { max-width: 850px; margin: 25px 0; font-size: 18px; }
.law-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.law-grid article { min-height: 250px; }
.law-grid h3 { margin-top: 20px; }

.docs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.docs-grid section { min-height: 300px; padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.docs-grid a { display: block; padding: 15px 0; border-bottom: 1px solid #302b35; color: #dad5df; }
.docs-grid a:hover { color: var(--purple-soft); }
.quickstart-doc { width: 100%; padding-inline: max(32px, calc((100vw - var(--max)) / 2)); background: var(--surface-2); }

.mcp-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mcp-paths article { min-height: 420px; padding: 34px; border: 1px solid var(--line); background: var(--surface); }
.mcp-paths .highlight { background: var(--purple); color: #160e1d; }
.mcp-paths .highlight .eyebrow, .mcp-paths .highlight p { color: #38294a; }
.mcp-paths h2 { margin: 60px 0 20px; font-size: 42px; font-weight: 460; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; }
.tag-row span { padding: 6px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; }
.tool-list { border-top: 1px solid var(--line); }
.tool-list > div { display: grid; grid-template-columns: 330px 1fr; gap: 40px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.tool-list code { color: var(--purple-soft); }
.tool-list span { color: var(--muted); }
.mcp-guard { width: 100%; padding-inline: max(32px, calc((100vw - var(--max)) / 2)); background: var(--surface-2); }

.status-timeline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.status-timeline article { min-height: 330px; padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.status-timeline > article > span { color: var(--purple); font: 12px/1 monospace; letter-spacing: .14em; }
.status-timeline h2 { margin: 64px 0 15px; font-size: 31px; font-weight: 480; }
.status-timeline a { color: var(--purple-soft); font-weight: 700; }

.not-found { display: grid; min-height: 100vh; padding: 180px max(32px, calc((100vw - var(--max)) / 2)); place-items: center start; background-color: #09070c; }
.not-found > div { max-width: 850px; }
.not-found p:not(.eyebrow) { font-size: 20px; }

@media (max-width: 1100px) {
  .hero-orbit { right: -120px; opacity: .4; }
  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
  .ecosystem-card, .ecosystem-card:nth-child(4) { grid-column: auto; }
  .ecosystem-card:last-child { grid-column: 1 / -1; }
  .pipeline { grid-template-columns: repeat(4, 1fr); }
  .lane-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-groups { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .section { width: min(100% - 38px, var(--max)); padding: 82px 0; }
  .site-header { position: absolute; }
  .menu-toggle { display: block; }
  .site-header nav { display: none; position: absolute; left: 18px; right: 18px; top: 84px; padding: 16px; align-items: stretch; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 15px; background: rgba(7,6,9,.98); }
  .site-header nav.open { display: flex; }
  .site-header nav > a { padding: 11px; }
  .site-header nav > a.active::after { display: none; }
  .site-header .nav-github { border-radius: 8px; }
  .hero { min-height: 850px; padding: 165px 22px 95px; }
  .hero-orbit { top: 130px; right: -235px; }
  .hero h1, .page-hero h1, .not-found h1 { font-size: clamp(48px, 13vw, 70px); }
  .scroll-cue { left: 22px; }
  .status-strip { grid-template-columns: 1fr 1fr; }
  .status-strip > div { min-height: 120px; padding: 26px 20px; border-bottom: 1px solid rgba(20,15,27,.25); }
  .section-heading, .quickstart-section, .quickstart-doc, .surface-section, .storage-section, .worktree-section, .site-footer, .compare-section, .mcp-paths { grid-template-columns: 1fr; gap: 45px; }
  .section-heading { align-items: start; margin-bottom: 42px; }
  .section-heading > p { font-size: 16px; }
  .principle-grid, .client-grid, .law-grid, .status-timeline { grid-template-columns: 1fr; }
  .principle-grid article, .ecosystem-card { min-height: 280px; }
  .architecture-section, .reliability-section, .surface-section, .storage-section, .boundary-section, .pipeline-section, .worktree-section, .historical-note, .law-status, .quickstart-doc, .mcp-guard { padding-inline: 20px; }
  .reliability-list article { grid-template-columns: 1fr; gap: 8px; }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .ecosystem-card:last-child { grid-column: auto; }
  .site-footer { padding-inline: 22px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .page-hero { min-height: 670px; padding: 170px 22px 80px; }
  .page-hero.compact { min-height: 620px; }
  .scope-visual { min-height: auto; overflow: hidden; }
  .scope-visual > span { min-height: 410px; padding: 15px; }
  .scope-visual strong, .scope-visual strong span { padding: 15px; }
  .boundary-map { grid-template-columns: 1fr; }
  .boundary-map b { transform: rotate(90deg); }
  .boundary-map i { display: none; }
  .boundary-map .below, .boundary-map .below:last-child { grid-column: auto; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .source-table { overflow-x: auto; }
  .source-table > div { min-width: 690px; }
  .cert-status { grid-template-columns: 1fr; gap: 15px; padding-inline: 22px; }
  .tool-list > div { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 520px) {
  .nav-shell { width: calc(100% - 20px); }
  .logo { font-size: 20px; }
  .mesa-mark { width: 27px; height: 27px; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .status-strip { grid-template-columns: 1fr; }
  .status-strip > div { min-height: 100px; }
  .pipeline, .lane-grid, .docs-grid, .footer-groups { grid-template-columns: 1fr; }
  .notice { grid-template-columns: 1fr; }
  .terminal pre { padding: 20px; font-size: 12px; }
  .terminal-bar { grid-template-columns: 1fr auto; }
  .terminal-bar > strong { display: none; }
  .footer-groups { gap: 20px; }
  .footer-bottom { margin-top: 20px; }
}

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