/* ============================================================
   Cube Labs — design tokens
   Palette: near-white lab surface, ink black, single teal signal.
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono
   (system chrome — badges, eyebrows, nav — the OS's own voice).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #fbfcfc;
  --bg-alt: #f2f5f5;
  --panel: #ffffff;
  --ink: #0d1113;
  --ink-soft: #565f63;
  --ink-faint: #8b9497;
  --line: #e1e6e7;
  --line-soft: #ecefef;
  --teal: #14b8a6;
  --teal-deep: #0c8f80;
  --teal-soft: rgba(20, 184, 166, 0.1);
  --teal-glow: rgba(20, 184, 166, 0.35);

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max: 1180px;
  --edge: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

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

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.symbol-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

svg[class*="icon"], .flow-step svg, .flow-column svg, .principle-item svg,
.horizon-card svg, .chase-grid svg, .link-cards svg, .contact-grid svg,
.quick-grid svg, .order-strip svg, .mini-flow svg, .principle-row svg,
.spec-list svg {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.teal-fill { fill: var(--teal); stroke: none; }
.teal-stroke { stroke: var(--teal); }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* ---------- layout shell ---------- */

.section-frame {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px var(--edge);
}

.section-heading {
  margin-bottom: 44px;
  max-width: 640px;
}
.section-heading h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.section-heading p { color: var(--ink-soft); font-size: 17px; }
.section-heading.tight { max-width: 720px; }
.section-heading.row-heading {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.text-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}
.text-link:hover { color: var(--teal-deep); border-color: var(--teal); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--edge);
  background: rgba(251, 252, 252, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.brand-mark { width: 28px; height: 28px; }
.brand-mark path { fill: var(--ink); }
.brand-mark path:nth-child(2) { fill: var(--teal); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.site-nav a:not(.pill-link) { color: var(--ink-soft); transition: color 0.15s ease; }
.site-nav a:not(.pill-link):hover { color: var(--ink); }

.pill-link {
  background: var(--ink);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.15s ease;
}
.pill-link:hover { background: var(--teal-deep); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; }

/* ---------- buttons ---------- */

.button-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-icon svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.4; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); }

.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 72px;
  position: relative;
}

.hero-copy h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: 22px;
}

.hero-kicker {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 30px;
  max-width: 380px;
}

.milestone {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 34px;
  max-width: 440px;
}
.milestone-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal);
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--teal-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--teal-soft); }
  50% { box-shadow: 0 0 0 8px rgba(20,184,166,0.05); }
}
.milestone strong { display: block; font-family: var(--font-display); font-size: 17px; margin: 3px 0 4px; }
.milestone p { font-size: 14px; color: var(--ink-soft); }

.visual-crop {
  margin: 0;
  position: relative;
}

/* boot-log ambient strip behind the hero cube */
.hero-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boot-log {
  position: absolute;
  inset: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
  color: var(--ink-faint);
  opacity: 0.5;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}
.boot-log p { white-space: nowrap; }
.boot-log .ok { color: var(--teal-deep); }

.cube-figure { width: 100%; max-width: 460px; position: relative; z-index: 1; }
.cube-glow {
  animation: glow 3.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes glow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .cube-figure--hero .cube-sway {
    transform-origin: 240px 220px;
    animation: sway 9s ease-in-out infinite;
  }
  @keyframes sway {
    0%, 100% { transform: rotate(-1.1deg) translateY(0); }
    50% { transform: rotate(1.1deg) translateY(-4px); }
  }

  .panel { animation: floatPanel 5s ease-in-out infinite; transform-origin: center; }
  .panel-1 { animation-delay: 0s; }
  .panel-2 { animation-delay: 0.6s; }
  .panel-3 { animation-delay: 1.2s; }
  .panel-4 { animation-delay: 0.3s; }
  .panel-5 { animation-delay: 0.9s; }
  @keyframes floatPanel {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
  }
}

/* ---------- core intro ---------- */

.core-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
  border-top: 1px solid var(--line-soft);
}
.core-copy h2 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 18px; }
.section-lead { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.03em; color: var(--teal-deep); text-transform: uppercase; margin-bottom: 16px; }
.core-copy > p:not(.section-lead) { color: var(--ink-soft); font-size: 16px; margin-bottom: 22px; max-width: 460px; }
.core-visual { min-height: 360px; display: flex; align-items: center; justify-content: center; }

/* ---------- roadmap table ---------- */

.roadmap { border-top: 1px solid var(--line-soft); }
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--panel);
}
.ladder-table { width: 100%; border-collapse: collapse; }
.ladder-table th, .ladder-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
  vertical-align: top;
}
.ladder-table thead th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.ladder-table tbody th {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  width: 90px;
}
.ladder-table tbody td:nth-child(2) { font-weight: 600; white-space: nowrap; }
.ladder-table tbody td:nth-child(3) { color: var(--ink-soft); }
.ladder-table tbody tr:last-child td, .ladder-table tbody tr:last-child th { border-bottom: none; }
.ladder-table tr.is-current { background: var(--teal-soft); position: relative; }
.ladder-table tr.is-current th, .ladder-table tr.is-current td:nth-child(2) { color: var(--teal-deep); }
@media (prefers-reduced-motion: no-preference) {
  .ladder-table tr.is-current::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--teal);
    animation: barPulse 2.2s ease-in-out infinite;
  }
  @keyframes barPulse {
    0%, 100% { opacity: 0.55; box-shadow: 0 0 0 rgba(20,184,166,0); }
    50% { opacity: 1; box-shadow: 0 0 10px rgba(20,184,166,0.5); }
  }
  .ladder-table tbody tr {
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .ladder-table tbody tr.is-visible { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ladder-table tbody tr { opacity: 1; }
}

.status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-faint);
  white-space: nowrap;
}
.status.current { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- philosophy / blueprint ---------- */

.grid-feature { border-top: 1px solid var(--line-soft); }
.grid-feature > h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 40px; }
.blueprint {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.design-visual { min-height: 320px; display: flex; align-items: center; justify-content: center; }

.principle-list { display: flex; flex-direction: column; gap: 26px; }
.principle-item { display: flex; gap: 16px; align-items: flex-start; }
.principle-item svg { width: 34px; height: 34px; flex-shrink: 0; }
.principle-item h3 { font-size: 17px; margin-bottom: 6px; }
.principle-item p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- sub panels / flows (deep dive, process, compatibility) ---------- */

.deep-dive, .process, .compatibility, .coherence { border-top: 1px solid var(--line-soft); }

.sub-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}
.sub-panel > h3 { font-size: 18px; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.sub-panel > h3 svg { width: 20px; height: 20px; }

.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.flow.four { grid-template-columns: repeat(4, 1fr); }
.flow-arrow {
  display: none;
}

.flow-step, .flow-column {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.flow-column { flex-direction: column; gap: 12px; }
.flow-step svg, .flow-column svg { width: 34px; height: 34px; flex-shrink: 0; }
.flow-step h4, .flow-column h4 { font-size: 15px; margin-bottom: 6px; }
.flow-step p, .flow-column p { font-size: 13.5px; color: var(--ink-soft); }

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

.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.spec-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.spec-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.spec-list svg { width: 20px; height: 20px; flex-shrink: 0; }
.goal { font-size: 13px; color: var(--ink-faint); font-family: var(--font-mono); border-top: 1px solid var(--line-soft); padding-top: 14px; }

.graphics p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; }
.mini-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.mini-flow > div { display: flex; flex-direction: column; gap: 10px; }
.mini-flow svg { width: 28px; height: 28px; }
.mini-flow strong { font-size: 13px; }
.mini-flow span { font-size: 12.5px; color: var(--ink-soft); }

.info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-row > div { display: flex; gap: 12px; align-items: flex-start; }
.info-row svg { width: 28px; height: 28px; flex-shrink: 0; }
.info-row h4 { font-size: 15px; margin-bottom: 6px; }
.info-row p { font-size: 13.5px; color: var(--ink-soft); }

.principles-table .principle-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}
.principles-table .principle-row:first-of-type { border-top: none; }
.principle-row svg { width: 26px; height: 26px; flex-shrink: 0; }
.principle-row h4 { font-size: 15.5px; margin-bottom: 5px; }
.principle-row p { font-size: 14px; color: var(--ink-soft); }

/* ---------- horizons ---------- */

.horizons { border-top: 1px solid var(--line-soft); }
.horizon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.horizon-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}
.horizon-card h3 { font-size: 15px; font-family: var(--font-mono); font-weight: 500; color: var(--teal-deep); margin-bottom: 16px; }
.horizon-card svg { width: 32px; height: 32px; margin-bottom: 16px; }
.horizon-card > p { font-size: 14.5px; margin-bottom: 16px; }
.horizon-card ul { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.horizon-card li { font-size: 13px; color: var(--ink-soft); position: relative; padding-left: 14px; }
.horizon-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

/* ---------- healthy order strip ---------- */

.healthy-order { border-top: 1px solid var(--line-soft); }
.order-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.order-strip article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-strip h3 { font-size: 13px; font-weight: 600; order: 2; }
.order-strip svg { width: 26px; height: 26px; order: 1; }
.order-strip p { font-size: 12.5px; color: var(--ink-soft); order: 3; }

/* ---------- chasing ---------- */

.chasing { border-top: 1px solid var(--line-soft); }
.chase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.chase-grid article { display: flex; gap: 16px; align-items: flex-start; }
.chase-grid svg { width: 30px; height: 30px; flex-shrink: 0; }
.chase-grid h3 { font-size: 16px; margin-bottom: 8px; }
.chase-grid p { font-size: 14px; color: var(--ink-soft); }

/* ---------- join / link cards ---------- */

.join { border-top: 1px solid var(--line-soft); }
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.link-cards a {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.link-cards a:hover { border-color: var(--teal); transform: translateY(-2px); }
.link-cards svg { width: 26px; height: 26px; flex-shrink: 0; }
.link-cards strong { display: block; font-size: 15px; margin-bottom: 3px; }
.link-cards small { font-size: 12.5px; color: var(--ink-soft); }
.link-arrow { width: 16px !important; height: 16px !important; margin-left: auto; flex-shrink: 0; opacity: 0.4; }

/* ---------- contact ---------- */

.contact { border-top: 1px solid var(--line-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-grid article {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.contact-grid svg { width: 28px; height: 28px; flex-shrink: 0; }
.contact-grid h3 { font-size: 15.5px; margin-bottom: 8px; }
.contact-grid a { font-family: var(--font-mono); font-size: 13.5px; color: var(--teal-deep); word-break: break-all; }
.contact-grid p { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
.social-links { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.social-links a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.social-links a:hover { color: var(--teal-deep); }
.social-links svg { width: 13px; height: 13px; stroke-width: 2.6; }

/* ---------- quick access ---------- */

.quick-access { border-top: 1px solid var(--line-soft); }
.quick-access > h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 34px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}
.quick-grid svg { width: 26px; height: 26px; margin-bottom: 14px; }
.quick-grid h3 { font-size: 14.5px; margin-bottom: 12px; }
.quick-grid a { display: block; font-size: 13.5px; color: var(--ink-soft); padding: 4px 0; }
.quick-grid a:hover { color: var(--teal-deep); }

/* ---------- cta ---------- */

.cta {
  border-top: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 34px;
  background: var(--ink);
  color: #fff;
  max-width: none;
  border-radius: 0;
  padding-top: 120px;
  padding-bottom: 120px;
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(20,184,166,0.22) 0%, rgba(20,184,166,0) 68%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .cta-glow { animation: ctaGlow 5s ease-in-out infinite; }
}
@keyframes ctaGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.cta-copy { position: relative; max-width: 620px; }
.cta-eyebrow { color: var(--teal); margin-bottom: 18px; }
.cta h2 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 18px;
  color: #fff;
}
.cta h2 em { font-style: italic; font-weight: 500; color: rgba(255,255,255,0.55); }
.cta-copy > p { color: rgba(255,255,255,0.6); font-size: 16px; max-width: 460px; margin: 0 auto; }
.cta .button-row { position: relative; justify-content: center; }
.cta .btn-primary { background: var(--teal); }
.cta .btn-primary:hover { background: var(--teal-deep); }
.cta .btn-secondary { border-color: rgba(255,255,255,0.25); color: #fff; }
.cta .btn-secondary:hover { border-color: #fff; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 56px;
}
.footer-brand p { color: var(--ink-soft); font-size: 13.5px; margin-top: 10px; max-width: 240px; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-mono); font-size: 13px; }
.site-footer nav a { color: var(--ink-soft); }
.site-footer nav a:hover { color: var(--ink); }
.footer-note { font-size: 12.5px; color: var(--ink-faint); }
.footer-note p { margin-bottom: 6px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .hero, .core-intro, .blueprint { grid-template-columns: 1fr; }
  .hero-visual, .core-visual, .design-visual { order: -1; min-height: 300px; }
  .path-grid, .info-row, .chase-grid, .link-cards, .contact-grid { grid-template-columns: 1fr; }
  .horizon-grid { grid-template-columns: 1fr 1fr; }
  .order-strip { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .flow.four, .large-flow, .flow.three { grid-template-columns: 1fr; }
  .mini-flow { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--edge) 20px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.pill-link) { padding: 10px 0; width: 100%; }
  .pill-link { margin-top: 10px; }
  .menu-toggle { display: block; }

  .section-frame { padding: 56px var(--edge); }
  .horizon-grid, .quick-grid { grid-template-columns: 1fr; }
  .order-strip { grid-template-columns: 1fr 1fr; }
  .mini-flow { grid-template-columns: 1fr; }
  .cta { padding-top: 72px; padding-bottom: 72px; }
  .ladder-table { font-size: 13px; }
  .ladder-table th, .ladder-table td { padding: 12px 14px; }
}
