:root {
  --paper: #f2f1eb;
  --surface: #fbfaf6;
  --ink: #141414;
  --muted: #65645f;
  --line: #141414;
  --soft-line: #cbc9bf;
  --lime: #c6f000;
  --cyan: #9ee7e5;
  --coral: #ff907a;
  --yellow: #f4d35e;
  --blue: #a9c8ff;
  --radius: 6px;
  --shell: 1180px;
  --route-cycle: 5.2s;
  --font-sans: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

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

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

mark {
  color: var(--ink);
  background: var(--lime);
  border-radius: 3px;
  padding: 0 0.08em;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 8px 12px;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.page-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 66px;
  padding: 0 max(24px, calc((100% - var(--shell)) / 2));
  background: rgba(242, 241, 235, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  font-size: 21px;
  font-weight: 700;
}

.brand mark {
  margin-left: 4px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a,
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.site-nav a::before,
.header-link::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.site-nav a,
.site-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-nav a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.header-link {
  justify-self: end;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.header-link:hover,
.secondary-action:hover,
.copy-command:hover {
  background: var(--lime);
}

.hero {
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 42px;
  padding-bottom: 24px;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: 68px;
  font-weight: 700;
  line-height: 1.03;
}

h2 {
  margin-bottom: 18px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 18px;
}

.install-line {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 46px;
  padding: 0 6px 0 16px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.install-line code,
.code-workbench code,
.evidence-core code {
  font-family: var(--font-mono);
}

.copy-command {
  min-width: 66px;
  padding: 7px 11px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.route-lab {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.route-lab-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  min-height: 84px;
  padding-block: 14px;
}

.route-lab-head h2 {
  margin: 0;
  font-size: 24px;
}

.route-tabs,
.code-tabs {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.route-tabs {
  overflow: hidden;
}

.code-tabs {
  overflow-x: auto;
  scrollbar-width: thin;
}

.route-tabs button,
.code-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  background: var(--surface);
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.route-tabs button {
  overflow: hidden;
}

.route-tabs button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
}

.route-lab.is-cycling .route-tabs button[aria-selected="true"]::after {
  animation: route-progress var(--route-cycle) linear forwards;
}

.route-tabs button:last-child,
.code-tabs button:last-child {
  border-right: 0;
}

.route-tabs button[aria-selected="true"],
.code-tabs button[aria-selected="true"] {
  background: var(--lime);
  font-weight: 500;
}

.model-pool {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding-block: 7px;
  border-top: 1px solid var(--soft-line);
}

.model-pool > span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.model-pool ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0 0 2px;
  list-style: none;
}

.model-pool li {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.model-pool li::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  content: "";
}

.model-pool li.is-selected { background: var(--lime); border-color: var(--line); }
.model-pool li.is-selected::before { background: var(--ink); }
.model-pool li.is-orchestrator { background: var(--cyan); border-color: var(--line); }
.model-pool li.is-orchestrator::before { background: var(--blue); }
.model-pool li.is-fallback { background: var(--yellow); }
.model-pool li.is-filtered { border-style: dashed; opacity: 0.58; }

.model-pool li.is-selected small,
.model-pool li.is-orchestrator small,
.model-pool li.is-fallback small {
  color: var(--ink);
}

.model-pool strong,
.model-pool small {
  font-family: var(--font-mono);
  line-height: 1.2;
}

.model-pool strong {
  font-size: 12px;
  font-weight: 500;
}

.model-pool small {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.graph-scroll {
  overflow: hidden;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.graph-stage {
  position: relative;
  width: 100%;
  height: 370px;
  background: var(--paper);
}

#route-canvas,
.route-nodes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-nodes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-node {
  --node-width: clamp(156px, 14vw, 178px);

  position: absolute;
  left: clamp(calc(var(--node-width) / 2 + 6px), var(--x), calc(100% - var(--node-width) / 2 - 6px));
  top: var(--y);
  width: var(--node-width);
  min-height: 82px;
  transform: translate(-50%, -50%);
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  animation: route-node-enter 360ms ease both;
  animation-delay: var(--delay);
}

.route-node small,
.route-node span {
  display: block;
}

.route-node small {
  margin-bottom: 5px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
}

.route-node strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.25;
}

.route-node span {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
}

.route-node.is-router { background: var(--lime); }
.route-node.is-success { background: var(--cyan); }
.route-node.is-failure { background: var(--coral); }
.route-node.is-review { background: var(--yellow); }
.route-node.is-output { color: var(--paper); background: var(--ink); }
.route-node.is-output small { color: #c9c7be; }
.route-node.is-skipped { background: var(--paper); border-style: dashed; box-shadow: none; opacity: 0.72; }
.route-node.is-tool { background: var(--blue); }

.route-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 0;
  margin-bottom: 0;
}

.route-metrics div {
  min-width: 0;
  padding: 14px 16px;
  border-left: 1px solid var(--line);
  animation: route-metric-enter 280ms ease both;
  animation-delay: var(--delay);
}

.route-metrics div:last-child {
  border-right: 1px solid var(--line);
}

.route-metrics dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.route-metrics dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 500;
}

.runtime-band {
  padding: 78px 0 84px;
  color: var(--paper);
  background: var(--ink);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 46px;
}

.section-heading > p:last-child {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-heading.inverted > p:last-child {
  color: #b7b5ac;
}

.runtime-flow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding-left: 0;
  list-style: none;
  border-top: 1px solid #4c4b47;
  border-bottom: 1px solid #4c4b47;
}

.runtime-flow li {
  position: relative;
  min-height: 145px;
  padding: 18px 12px;
  border-right: 1px solid #4c4b47;
}

.runtime-flow li:first-child {
  border-left: 1px solid #4c4b47;
}

.runtime-flow span,
.runtime-flow small,
.runtime-flow strong {
  display: block;
}

.runtime-flow span,
.runtime-flow small {
  font-family: var(--font-mono);
}

.runtime-flow span {
  margin-bottom: 22px;
  color: var(--lime);
  font-size: 28px;
  line-height: 1;
}

.runtime-flow strong {
  margin-bottom: 7px;
  font-size: 15px;
}

.runtime-flow small {
  color: #96948d;
  font-size: 12px;
  line-height: 1.4;
}

.evidence-section,
.strategies-section,
.api-section,
.boundaries-section {
  padding-block: 100px;
}

.evidence-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  max-width: 980px;
  margin-inline: auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.evidence-source,
.evidence-core {
  min-height: 184px;
  padding: 22px;
  background: var(--surface);
}

.evidence-source span,
.evidence-core span {
  display: block;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.evidence-source strong,
.evidence-core strong {
  display: block;
  margin-bottom: 9px;
  font-size: 18px;
}

.evidence-source p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.evidence-core {
  grid-column: 1 / -1;
  min-height: 160px;
  color: var(--paper);
  background: var(--ink);
  text-align: center;
}

.evidence-core span {
  color: var(--lime);
}

.evidence-core strong {
  font-size: 28px;
}

.evidence-core code {
  color: var(--cyan);
  font-size: 12px;
}

.source-task { border-top: 8px solid var(--lime); }
.source-card { border-top: 8px solid var(--cyan); }
.source-live { border-bottom: 8px solid var(--coral); }
.source-local { border-bottom: 8px solid var(--yellow); }

.strategies-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.strategy-card {
  min-height: 330px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.strategy-card > p:last-child {
  color: var(--muted);
}

.strategy-card.accent-lime { border-top: 8px solid var(--lime); }
.strategy-card.accent-cyan { border-top: 8px solid var(--cyan); }
.strategy-card.accent-coral { border-top: 8px solid var(--coral); }
.strategy-card.accent-yellow { border-top: 8px solid var(--yellow); }
.strategy-card.accent-blue { border-top: 8px solid var(--blue); }
.strategy-card.accent-ink { border-top: 8px solid var(--ink); }

.mini-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  margin-bottom: 24px;
  padding-inline: 12px;
  border-bottom: 1px solid var(--soft-line);
}

.mini-route i,
.mini-route b,
.mini-route em,
.mini-route span {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.mini-route b { background: var(--lime); }
.mini-route em { background: var(--coral); border-radius: 3px; }
.mini-route span { background: var(--ink); }

.mini-route > *:not(:last-child)::after {
  position: absolute;
  top: 10px;
  left: 21px;
  width: 54px;
  height: 1px;
  background: var(--ink);
  content: "";
}

.mini-route.fusion b,
.mini-route.tools b {
  background: var(--cyan);
}

.mini-route.critique b:last-child {
  background: var(--yellow);
}

.api-section {
  color: var(--paper);
  background: var(--ink);
}

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

.api-section .section-heading {
  margin-bottom: 0;
}

.api-section .section-heading > p:last-of-type {
  color: #b7b5ac;
}

.api-contracts {
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #4c4b47;
}

.api-contracts li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  color: #b7b5ac;
  border-bottom: 1px solid #4c4b47;
  font-size: 13px;
}

.api-contracts .contract-label {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.api-contracts .contract-copy {
  min-width: 0;
}

.code-workbench {
  min-width: 0;
  background: #20201e;
  border: 1px solid #68665f;
  border-radius: var(--radius);
}

.code-tabs {
  border: 0;
  border-bottom: 1px solid #68665f;
  border-radius: 0;
}

.code-tabs button {
  color: var(--paper);
  background: #20201e;
  border-color: #68665f;
}

.code-tabs button[aria-selected="true"] {
  color: var(--ink);
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 12px 0 18px;
  color: #9f9d94;
  border-bottom: 1px solid #45443f;
  font-family: var(--font-mono);
  font-size: 12px;
}

.code-workbench pre {
  min-height: 390px;
  margin: 0;
  overflow: auto;
  padding: 24px;
  color: #e8e6dc;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  tab-size: 4;
}

.boundary-table {
  width: 100%;
  border-top: 1px solid var(--line);
  border-collapse: collapse;
}

.boundary-row {
  display: grid;
  grid-template-columns: 1.1fr 0.55fr 2fr;
  gap: 22px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.boundary-row th,
.boundary-row td {
  padding: 0;
  text-align: left;
  vertical-align: top;
}

.boundary-row th {
  font-weight: 700;
}

.boundary-row td:last-child {
  color: var(--muted);
}

.boundary-head {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.state {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}

.state.live { background: var(--lime); }
.state.bounded { background: var(--yellow); }
.state.planned { background: var(--coral); }

.final-cta {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.final-cta h2 {
  font-size: 58px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 500;
}

.primary-action {
  color: var(--paper);
  background: var(--ink);
}

.primary-action:hover {
  color: var(--ink);
  background: var(--lime);
}

.secondary-action {
  background: var(--surface);
}

.site-footer {
  padding: 36px 0 48px;
}

.site-footer .page-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer-meta {
  display: grid;
  gap: 4px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.footer-meta p:last-child {
  color: var(--ink);
}

.footer-meta a {
  text-decoration: underline;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.copy-toast {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 18px;
  min-width: 140px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--paper);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

button:focus-visible,
a:focus-visible,
.graph-scroll:focus-visible,
[role="tabpanel"]:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

@keyframes route-progress {
  to { transform: scaleX(1); }
}

@keyframes route-node-enter {
  from {
    transform: translate(-50%, -44%) scale(0.98);
  }

  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes route-metric-enter {
  from { transform: translateY(3px); }
  to { transform: translateY(0); }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  h1 {
    font-size: 58px;
  }

  .route-lab-head {
    display: block;
    padding-block: 12px;
  }

  .route-lab-head > div:first-child {
    margin-bottom: 10px;
  }

  .route-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .route-tabs button {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .route-tabs button:nth-child(4n) {
    border-right: 0;
  }

  .route-tabs button:nth-last-child(-n + 4) {
    border-bottom: 0;
  }

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

  .runtime-flow li:nth-child(4) {
    border-right: 0;
  }

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

  .api-layout {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 761px) and (max-width: 980px) {
  .route-node {
    --node-width: clamp(138px, 18.5vw, 156px);
  }

  .route-node[data-column="start"] { left: 10%; }
  .route-node[data-column="router"] { left: 30%; }
  .route-node[data-column="workers"] { left: 50%; }
  .route-node[data-column="review"] { left: 70%; }
  .route-node[data-column="output"] { left: 90%; }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .site-header {
    min-height: 58px;
    padding-inline: 14px;
  }

  .header-link {
    padding: 6px 10px;
  }

  .hero-copy {
    padding-top: 24px;
    padding-bottom: 20px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lede,
  .section-heading > p:last-child {
    font-size: 16px;
  }

  .install-line {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  .route-lab-head .eyebrow {
    margin-bottom: 6px;
  }

  .model-pool ul {
    flex-wrap: wrap;
    overflow: visible;
  }

  .model-pool {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .graph-stage {
    width: 100%;
    height: auto;
  }

  #route-canvas {
    display: none;
  }

  .route-nodes {
    position: relative;
    inset: auto;
    display: grid;
    width: auto;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
  }

  .route-node {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    min-height: 92px;
    transform: none;
    padding: 10px 12px;
    animation: route-metric-enter 280ms ease both;
  }

  .route-node.is-output {
    grid-column: 1 / -1;
  }

  .route-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .route-metrics div {
    min-width: 0;
    border-right: 1px solid var(--line);
  }

  .route-metrics div:last-child {
    grid-column: 1 / -1;
    border-right: 1px solid var(--line);
  }

  .runtime-band,
  .evidence-section,
  .strategies-section,
  .api-section,
  .boundaries-section {
    padding-block: 72px;
  }

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

  .runtime-flow li,
  .runtime-flow li:nth-child(4) {
    border-right: 1px solid #4c4b47;
  }

  .runtime-flow li:nth-child(2n) {
    border-right: 0;
  }

  .strategy-grid,
  .evidence-map {
    grid-template-columns: 1fr;
  }

  .evidence-core {
    grid-column: 1;
  }

  .strategy-card {
    min-height: 300px;
  }

  .api-layout {
    gap: 42px;
  }

  .code-workbench pre {
    min-height: 430px;
    font-size: 12px;
  }

  .boundary-head {
    display: none;
  }

  .boundary-row {
    grid-template-columns: 1fr auto;
  }

  .boundary-row > :last-child {
    grid-column: 1 / -1;
  }

  .final-cta h2 {
    font-size: 44px;
  }

  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer .page-shell {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 360px) {
  .hero-copy {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  h1 {
    margin-bottom: 16px;
    font-size: 42px;
  }

  .hero-lede {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.5;
  }

  .install-line {
    min-height: 42px;
  }

  .install-line code {
    font-size: 14px;
  }

  .route-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-tabs button:nth-child(2n) {
    border-right: 0;
  }

  .route-tabs button:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .route-tabs button:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .route-nodes {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
