/*
MarsDocSync:
docs:
- README.md
- docs/product-specs/vision.md
- docs/product-specs/product-surface.md
- docs/design-docs/foundation-deployed-harness-architecture.md
- docs/design-docs/delivery-operating-model.md
- docs/design-docs/documentation-sync-architecture.md
- docs/design-docs/self-reflective-telemetry.md
- docs/design-docs/index.md
- docs/design-docs/implementation-language.md
- docs/design-docs/pipeline-engine.md
- docs/design-docs/dashboard.md
- docs/design-docs/code-documentation-map.md
- docs/design-docs/cli-tool-skill-sync.md
- docs/design-docs/dogfood-and-decisions.md
- docs/design-docs/scoring-system.md
- docs/design-docs/validation-matrix-gating.md
- docs/design-docs/tools-glossary.md
- docs/design-docs/guardrails.md
- docs/design-docs/local-inference.md
- docs/design-docs/release-versioning.md
*/
:root {
  color-scheme: dark;
  --ink: #f4ede5;
  --ink-soft: #b9aaa0;
  --paper: #090807;
  --paper-strong: #161311;
  --paper-muted: #211a16;
  --graphite: #120f0d;
  --graphite-2: #211a16;
  --line: #3b302b;
  --line-dark: #654234;
  --copper: #d46b38;
  --teal: #4fb7aa;
  --green: #76b87c;
  --violet: #b7a0d9;
  --rose: #a33d57;
  --amber: #f2b84b;
  --white: #ffffff;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-120%);
  border: 1px solid var(--copper);
  background: var(--paper-strong);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 0 28px;
  background: rgba(9, 8, 7, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 226px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--graphite);
  color: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
}

.brand-lockup strong {
  line-height: 1.1;
}

.brand-lockup small {
  color: var(--ink-soft);
  font-size: 12px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.mobile-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: 6px;
  color: var(--ink-soft);
  padding: 8px 12px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  background: var(--paper-muted);
  color: var(--ink);
}

.readiness-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(15, 140, 130, 0.12);
}

.nav-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 8px 12px;
}

.mobile-nav {
  display: none;
}

.progress-bar {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--copper), var(--teal), var(--violet));
}

.hero {
  position: relative;
  display: grid;
  min-height: 86vh;
  align-items: end;
  overflow: hidden;
  background: var(--graphite);
  color: var(--ink);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.9), rgba(9, 8, 7, 0.56), rgba(9, 8, 7, 0.82)),
    radial-gradient(circle at 14% 24%, rgba(212, 107, 56, 0.9) 0 6px, transparent 7px),
    radial-gradient(circle at 39% 58%, rgba(79, 183, 170, 0.9) 0 7px, transparent 8px),
    radial-gradient(circle at 68% 30%, rgba(135, 102, 204, 0.88) 0 6px, transparent 7px),
    radial-gradient(circle at 86% 72%, rgba(243, 177, 79, 0.88) 0 7px, transparent 8px),
    linear-gradient(28deg, transparent 49.7%, rgba(79, 183, 170, 0.2) 49.85% 50.15%, transparent 50.3%),
    linear-gradient(146deg, transparent 49.7%, rgba(212, 107, 56, 0.2) 49.85% 50.15%, transparent 50.3%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 72px),
    #090807;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(9, 8, 7, 0.16), rgba(9, 8, 7, 0.86)),
    radial-gradient(circle at 18% 92%, rgba(212, 107, 56, 0.24), transparent 36%),
    radial-gradient(circle at 78% 12%, rgba(79, 183, 170, 0.2), transparent 34%);
}

.hero-content {
  position: relative;
  width: min(900px, calc(100% - 48px));
  margin: 0 auto 100px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f3b14f;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

p code,
li code {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 0.08em 0.32em;
  font-family: var(--font-mono);
  font-size: 0.92em;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 38px;
  line-height: 1.12;
}

h2 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.12;
}

h3 {
  font-size: 19px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 760px;
  color: rgba(244, 237, 229, 0.86);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--copper);
  color: #fff7ef;
}

.button.secondary {
  border: 1px solid rgba(244, 237, 229, 0.42);
  color: var(--ink);
}

.hero-ribbon {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  border-top: 1px solid rgba(244, 237, 229, 0.18);
  background: rgba(9, 8, 7, 0.84);
}

.hero-ribbon span {
  min-height: 72px;
  padding: 22px 24px;
  border-right: 1px solid rgba(244, 237, 229, 0.14);
  color: rgba(244, 237, 229, 0.86);
  font-weight: 700;
}

.section,
.band {
  padding: 96px 28px;
}

.section-heading,
.split,
.problem-grid,
.value-outcome-grid,
.metric-strip,
.system-map,
.surface-detail,
.flow-rail,
.callout-grid,
.concept-grid,
.drilldown-shell,
.repo-layout,
.timeline,
.pilot-scorecard,
.glossary-tools,
.glossary-list,
.source-grid {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading p:not(.eyebrow) {
  max-width: 800px;
  color: var(--ink-soft);
  font-size: 18px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.band {
  background: var(--graphite);
  color: var(--ink);
}

.band .section-heading p:not(.eyebrow),
.band p {
  color: rgba(244, 237, 229, 0.76);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.problem-grid article,
.callout,
.concept-card,
.timeline article,
.repo-note,
.surface-detail,
.value-stack div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.problem-grid article {
  min-height: 250px;
  padding: 24px;
}

.icon-square {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

.problem-grid p,
.problem-grid small,
.callout p,
.concept-body p,
.timeline p,
.repo-note p,
.surface-detail p,
.surface-detail li {
  color: var(--ink-soft);
}

.problem-grid small {
  display: block;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 52px;
}

.value-stack {
  display: grid;
  gap: 12px;
}

.value-stack div {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: rgba(244, 237, 229, 0.06);
  border-color: rgba(244, 237, 229, 0.16);
  box-shadow: none;
}

.value-stack strong {
  color: var(--ink);
}

.value-stack span {
  color: rgba(244, 237, 229, 0.76);
}

.value-outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.value-outcome-grid article {
  display: grid;
  min-height: 390px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 24px;
  box-shadow: var(--shadow);
}

.value-outcome-grid span {
  margin-bottom: 24px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.value-outcome-grid p,
.value-outcome-grid li {
  color: var(--ink-soft);
}

.value-outcome-grid ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 18px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.metric-strip div {
  display: grid;
  gap: 6px;
  min-height: 132px;
  align-content: start;
  background: var(--graphite);
  color: var(--ink);
  padding: 20px;
}

.metric-strip strong {
  color: #f3b14f;
}

.metric-strip span {
  color: rgba(244, 237, 229, 0.72);
}

.system-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.surface-card {
  display: grid;
  min-height: 170px;
  gap: 8px;
  justify-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 22px;
  text-align: left;
  box-shadow: none;
}

.surface-card span {
  color: var(--teal);
  font-family: var(--font-mono);
  font-weight: 900;
}

.surface-card small {
  color: var(--ink-soft);
}

.surface-card:hover,
.surface-card.is-active {
  border-color: var(--teal);
  box-shadow: 0 18px 48px rgba(15, 140, 130, 0.16);
  transform: translateY(-2px);
}

.surface-detail {
  display: grid;
  gap: 8px;
  padding: 26px;
}

.surface-detail ul {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding-left: 20px;
}

.flow-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.flow-step {
  position: relative;
  display: grid;
  min-height: 176px;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 18px;
}

.flow-step::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -11px;
  width: 12px;
  height: 2px;
  background: var(--copper);
}

.flow-step:last-child::after {
  display: none;
}

.flow-step span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: rgba(200, 95, 36, 0.12);
  color: var(--copper);
  font-family: var(--font-mono);
  font-weight: 900;
}

.flow-step small {
  color: var(--ink-soft);
}

.callout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.callout {
  padding: 24px;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.concept-card {
  overflow: hidden;
  background: rgba(244, 237, 229, 0.08);
  border-color: rgba(244, 237, 229, 0.16);
  box-shadow: none;
}

.concept-toggle {
  display: grid;
  width: 100%;
  min-height: 156px;
  gap: 12px;
  align-content: start;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 20px;
  text-align: left;
}

.concept-toggle span {
  color: #f3b14f;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.concept-toggle strong {
  font-size: 20px;
  line-height: 1.18;
}

.concept-toggle::after {
  content: "+";
  justify-self: start;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(244, 237, 229, 0.24);
  border-radius: 6px;
  color: var(--ink);
}

.concept-card.is-open .concept-toggle::after {
  content: "-";
}

.concept-body {
  display: none;
  border-top: 1px solid rgba(244, 237, 229, 0.14);
  padding: 0 20px 20px;
}

.concept-card.is-open .concept-body {
  display: block;
}

.concept-body p {
  color: rgba(244, 237, 229, 0.76);
}

.concept-body .detail {
  color: rgba(244, 237, 229, 0.58);
}

.drilldown-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.drilldown-menu {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
}

.drilldown-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
}

.drilldown-tab span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

.drilldown-tab:hover,
.drilldown-tab.is-active {
  border-color: var(--copper);
  background: var(--paper-muted);
  box-shadow: 0 14px 32px rgba(200, 95, 36, 0.13);
}

.drilldown-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.drilldown-panel-header {
  padding: 28px 28px 18px;
}

.drilldown-panel-header p:not(.eyebrow),
.drilldown-columns p,
.drilldown-proof span {
  color: var(--ink-soft);
}

.drilldown-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.drilldown-columns div {
  min-height: 190px;
  background: var(--paper-strong);
  padding: 24px;
}

.drilldown-columns h4 {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 13px;
  text-transform: uppercase;
}

.drilldown-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  padding: 20px 28px;
  background: var(--paper-muted);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--green);
}

.signal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

#signalCanvas {
  display: block;
  width: 100%;
  height: auto;
  background: #171916;
}

.signal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 14px;
  color: var(--ink-soft);
  font-size: 13px;
}

.signal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend.trace {
  background: var(--teal);
}

.legend.score {
  background: var(--copper);
}

.legend.improve {
  background: var(--violet);
}

.repo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.file-tree {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 16px;
  box-shadow: var(--shadow);
}

.file-tree div {
  display: grid;
  gap: 4px;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.file-tree span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.file-tree small {
  color: var(--ink-soft);
}

.repo-note {
  padding: 24px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.timeline article {
  min-height: 270px;
  padding: 24px;
  background: rgba(244, 237, 229, 0.08);
  border-color: rgba(244, 237, 229, 0.16);
  box-shadow: none;
}

.timeline span {
  display: inline-block;
  margin-bottom: 42px;
  color: #f3b14f;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline h3 {
  color: var(--ink);
}

.timeline p {
  color: rgba(244, 237, 229, 0.74);
}

.pilot-scorecard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(244, 237, 229, 0.16);
  border-radius: 8px;
  background: rgba(244, 237, 229, 0.16);
}

.pilot-scorecard div {
  min-height: 150px;
  background: rgba(244, 237, 229, 0.08);
  padding: 22px;
}

.pilot-scorecard strong {
  display: block;
  margin-bottom: 10px;
  color: #f3b14f;
}

.pilot-scorecard p {
  margin: 0;
  color: rgba(244, 237, 229, 0.74);
}

.glossary-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.glossary-tools label {
  font-weight: 800;
}

.glossary-tools input {
  width: min(720px, 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 14px 16px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink-soft);
  padding: 8px 12px;
}

.filter-chip.is-active {
  border-color: var(--copper);
  background: var(--copper);
  color: #fff7ef;
}

.glossary-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.glossary-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 20px;
}

.glossary-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.glossary-item p {
  color: var(--ink-soft);
  font-size: 15px;
}

.tag {
  display: inline-flex;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

.source-notes {
  background: var(--paper-muted);
}

.repo-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--copper);
  border-radius: 8px;
  background: var(--copper);
  color: #fff7ef;
  padding: 0 14px;
  font-weight: 900;
  text-decoration: none;
}

.repo-link:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.source-grid code {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
  padding: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  white-space: normal;
  word-break: break-word;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: var(--graphite);
  color: rgba(244, 237, 229, 0.78);
  padding: 26px 28px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

@media (max-width: 1160px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .js .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .readiness-pill {
    display: none;
  }

  .mobile-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
    padding: 10px;
    box-shadow: var(--shadow);
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .js .mobile-nav {
    display: none;
  }

  .js .mobile-nav.is-open {
    display: grid;
  }

  h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  h2 {
    font-size: 26px;
  }

  .problem-grid,
  .value-outcome-grid,
  .system-map,
  .concept-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .drilldown-shell {
    grid-template-columns: 1fr;
  }

  .drilldown-menu {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-step::after {
    display: none;
  }

  .glossary-list,
  .pilot-scorecard,
  .source-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .topbar {
    padding: 0 18px;
  }

  .brand-lockup {
    min-width: 0;
  }

  .brand-lockup small {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    width: min(100% - 32px, 720px);
    margin-bottom: 48px;
  }

  h1 {
    font-size: 30px;
    line-height: 1.1;
  }

  h2 {
    font-size: 24px;
    line-height: 1.14;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-ribbon {
    grid-template-columns: 1fr;
  }

  .hero-ribbon span {
    min-height: auto;
    padding: 14px 18px;
  }

  .section,
  .band {
    padding: 70px 18px;
  }

  .problem-grid,
  .value-outcome-grid,
  .system-map,
  .callout-grid,
  .concept-grid,
  .timeline,
  .metric-strip,
  .pilot-scorecard,
  .file-tree,
  .glossary-list,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .drilldown-menu,
  .drilldown-columns {
    grid-template-columns: 1fr;
  }

  .split,
  .repo-layout {
    grid-template-columns: 1fr;
  }

  .flow-rail {
    grid-template-columns: 1fr;
  }

  .problem-grid article,
  .timeline article {
    min-height: auto;
  }

  .footer {
    display: grid;
  }
}

@media (max-width: 480px) {
  .topbar {
    min-height: 64px;
    padding: 0 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .mobile-nav {
    top: 64px;
    right: 12px;
    left: 12px;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-bottom: 34px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 21px;
  }

  h3 {
    font-size: 18px;
  }

  .section,
  .band {
    padding: 52px 14px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    justify-content: center;
    text-align: center;
  }

  .drilldown-panel-header,
  .drilldown-columns div,
  .drilldown-proof,
  .surface-detail,
  .repo-note,
  .callout,
  .problem-grid article,
  .value-outcome-grid article,
  .timeline article,
  .glossary-item {
    padding: 18px;
  }
}

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