:root {
  --ground: #EAF1FB;
  --ground-2: #DDE9F8;
  --card: #FFFFFF;
  --ink: #101B33;
  --muted: #5D6B85;
  --rule: #D3DFF0;
  --pill: #1B2440;
  --pill-ink: #F2F6FD;
  --glow-blue: 127, 180, 240;
  --glow-warm: 240, 201, 160;
  --dot: 42, 84, 150;
  --live: 46, 158, 99;
  --chip: #F4F8FE;
  --shadow: 0 24px 60px rgba(27, 42, 74, 0.10), 0 4px 14px rgba(27, 42, 74, 0.05);
  --glass: rgba(255, 255, 255, 0.5);
  --glass-strong: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.7);
}
/* Single committed light world: dark-mode override intentionally removed. */
:root[data-theme="light"] {
  --ground: #EAF1FB;
  --ground-2: #DDE9F8;
  --card: #FFFFFF;
  --ink: #101B33;
  --muted: #5D6B85;
  --rule: #D3DFF0;
  --pill: #1B2440;
  --pill-ink: #F2F6FD;
  --glow-blue: 127, 180, 240;
  --glow-warm: 240, 201, 160;
  --dot: 42, 84, 150;
  --live: 46, 158, 99;
  --chip: #F4F8FE;
  --shadow: 0 24px 60px rgba(27, 42, 74, 0.10), 0 4px 14px rgba(27, 42, 74, 0.05);
  --glass: rgba(255, 255, 255, 0.5);
  --glass-strong: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.7);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: linear-gradient(180deg, var(--ground) 0%, var(--ground-2) 55%, var(--ground) 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.mono {
  font-family: ui-monospace, "SF Mono", "Menlo", "Cascadia Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
a { color: var(--ink); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--pill); outline-offset: 3px; }
.frame { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ---------- background blobs ---------- */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.b1 { width: 540px; height: 540px; background: radial-gradient(circle, rgba(var(--glow-blue), 0.55), transparent 70%); top: -140px; right: -90px; animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(var(--glow-warm), 0.5), transparent 70%); top: 34%; left: -160px; animation: drift2 32s ease-in-out infinite alternate; }
.b3 { width: 580px; height: 580px; background: radial-gradient(circle, rgba(var(--glow-blue), 0.4), transparent 70%); bottom: -200px; right: 12%; animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(-60px, 50px); } }
@keyframes drift2 { to { transform: translate(70px, -40px); } }
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* ---------- nav ---------- */
header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 13px 26px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(27, 42, 74, 0.08);
}
.wordmark { font-weight: 700; letter-spacing: 0.26em; font-size: 0.9375rem; }
.wordmark span { color: rgb(var(--glow-blue)); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 0.875rem; font-weight: 500; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-mail { font-size: 0.875rem; font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(30px, 6vh, 70px) 0 clamp(40px, 7vh, 80px);
  min-height: 78vh;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; }
h1 {
  margin: 0 0 22px;
  font-size: clamp(2.9rem, 6vw, 4.9rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 12ch;
}
h1 em { font-style: normal; color: rgb(var(--glow-blue)); }
.lede { max-width: 44ch; font-size: 1.0313rem; color: var(--muted); margin: 0 0 36px; }
.lede strong { color: var(--ink); font-weight: 500; }
.cta-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.pill {
  display: inline-block;
  background: var(--pill);
  color: var(--pill-ink);
  border-radius: 999px;
  padding: 15px 32px;
  font-size: 0.9063rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 26px rgba(27, 36, 64, 0.25);
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(27, 36, 64, 0.3); }
.text-link { font-size: 0.9063rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: 3px; transition: color 0.15s ease, border-color 0.15s ease; }
.text-link:hover { color: var(--ink); border-color: rgb(var(--glow-blue)); }
.sphere-wrap { position: relative; min-height: clamp(340px, 52vw, 620px); }
#sphere { position: absolute; inset: 0; width: 100%; height: 100%; }
.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.scroll-cue svg { display: block; }

/* ---------- live status ---------- */
.live-dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--live)); flex: none; }
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(var(--live), 0.5);
  animation: ping 2.6s cubic-bezier(0.2, 0.6, 0.2, 1) infinite;
}
@keyframes ping { 0% { transform: scale(0.7); opacity: 0.9; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; opacity: 0.5; } }

.allocation {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 14px 28px;
}
.allocation .status { display: flex; align-items: center; gap: 12px; }
.allocation .sep { width: 1px; height: 14px; background: var(--rule); }
.allocation p { margin: 0; font-size: 0.875rem; color: var(--muted); }
.allocation p strong { color: var(--ink); font-weight: 600; }

/* ---------- stat band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(28px, 5vh, 48px);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { padding: 30px clamp(18px, 2.4vw, 32px); border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; }
.stat b {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat b i { font-style: normal; font-size: 0.44em; font-weight: 600; letter-spacing: 0.01em; color: rgb(var(--glow-blue)); margin-left: 5px; }
.stat span { display: block; margin-top: 12px; }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(60px, 10vh, 110px) 0 clamp(30px, 5vh, 55px); }
.manifesto p.big {
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 24ch;
  text-wrap: balance;
}
.manifesto p.big em { font-style: normal; color: rgb(var(--glow-blue)); }
.manifesto p.after { margin: 22px auto 0; text-align: center; color: var(--muted); max-width: 52ch; font-size: 1rem; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 9vh, 96px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 40px; gap: 20px; }
h2 { margin: 0; font-size: 1.4375rem; font-weight: 600; letter-spacing: -0.012em; }

/* system cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.card {
  position: relative;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border-radius: 22px;
  padding: 30px 28px 88px;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
}
.card h3 { margin: 0 0 12px; font-size: 1.375rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.012em; max-width: 17ch; text-wrap: balance; }
.card p { margin: 0; color: var(--muted); font-size: 0.9063rem; }
.card .num {
  position: absolute;
  left: 28px;
  bottom: 24px;
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: rgb(var(--glow-blue));
}

/* ---------- diagrams ---------- */
.anatomy { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.fig {
  margin: 0;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.6vw, 32px);
}
.fig svg { display: block; width: 100%; height: auto; }
.fig-wide { max-width: 660px; margin-left: auto; margin-right: auto; }
.fig figcaption { margin-top: 18px; text-align: center; }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(24px, 4vh, 44px); }
.callouts { list-style: none; margin: 0; padding: 0; }
.callouts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.callouts li:last-child { border-bottom: 0; padding-bottom: 0; }
.callouts .cnum {
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: rgb(var(--glow-blue));
  padding-top: 4px;
}
.callouts h3 { margin: 0 0 5px; font-size: 1rem; font-weight: 600; }
.callouts p { margin: 0; color: var(--muted); font-size: 0.9063rem; }

.sec-lede { margin: -16px 0 36px; max-width: 64ch; color: var(--muted); font-size: 0.9375rem; }
.sec-lede strong { color: var(--ink); font-weight: 500; }

.intake { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); list-style: none; margin: 0; padding: 0; }
.intake li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.intake .inum {
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: rgb(var(--glow-blue));
}
.intake p { margin: 0; font-size: 0.9375rem; color: var(--muted); }

.dg-face { fill: rgba(255, 255, 255, 0.5); stroke: #A9C1E2; stroke-width: 1; }
.dg-mod { fill: rgba(127, 180, 240, 0.13); stroke: #A9C1E2; stroke-width: 1; }
.dg-alt { fill: rgba(255, 255, 255, 0.45); stroke: #A9C1E2; stroke-width: 1; }
.dg-line { fill: none; stroke: #A9C1E2; stroke-width: 1; }
.dg-accent { fill: none; stroke: rgb(var(--glow-blue)); stroke-width: 2; }
.dg-badge { fill: var(--pill); }
.dg-t {
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  fill: var(--muted);
}
.dg-t-a { fill: rgb(var(--glow-blue)); }
.dg-t-halo { paint-order: stroke; stroke: rgba(240, 246, 253, 0.92); stroke-width: 4px; stroke-linejoin: round; }
.dg-t-i { fill: var(--ink); }
.dg-t-b { fill: var(--pill-ink); font-size: 9px; letter-spacing: 0.06em; }

/* ---------- spec sheet ---------- */
.sheet {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 3.4vw, 44px);
}
.spec-group { border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 32px; }
.spec-group:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.spec-group > .mono { color: rgb(var(--glow-blue)); display: block; margin-bottom: 6px; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(16px, 3vw, 40px);
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row dt { color: var(--muted); font-size: 0.9063rem; }
.row dd {
  margin: 0;
  font-family: ui-monospace, "SF Mono", "Menlo", "Cascadia Mono", monospace;
  font-size: 0.8438rem;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sheet-foot { margin: 30px 0 0; font-size: 0.8125rem; color: var(--muted); }

/* method / procurement */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 28px); counter-reset: step; }
.step {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 24px 22px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: rgb(var(--glow-blue));
  display: block;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 0.875rem; }

/* included chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 12px 22px;
  font-family: ui-monospace, "SF Mono", "Menlo", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  cursor: default;
}
.chip:hover { color: var(--ink); border-color: rgb(var(--glow-blue)); transform: translateY(-2px); }

/* positions */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.principle { border-top: 2px solid rgb(var(--glow-blue)); padding-top: 20px; }
.principle h3 { margin: 0 0 10px; font-size: 1rem; font-weight: 600; }
.principle p { margin: 0; color: var(--muted); font-size: 0.9063rem; }

/* contact */
.contact {
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(48px, 8vh, 84px) clamp(24px, 5vw, 72px);
  text-align: center;
}
.contact p.mono { margin: 0 0 18px; }
.contact-line {
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 auto 18px;
  max-width: 24ch;
  text-wrap: balance;
}
.contact-sub { margin: 0 auto 34px; color: var(--muted); max-width: 46ch; font-size: 0.9375rem; }
footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 36px 0 20px; }
footer a { color: var(--muted); }
.legal { margin: 0 0 44px; font-size: 0.75rem; line-height: 1.6; color: var(--muted); opacity: 0.85; max-width: 78ch; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.16s; } .d3 { animation-delay: 0.27s; } .d4 { animation-delay: 0.38s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.sr { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.sr.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .sr { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 700px) {
  .allocation { flex-direction: column; align-items: flex-start; gap: 9px; border-radius: 22px; padding: 20px 26px; }
  .allocation .sep { display: none; }
}
@media (max-width: 980px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .sphere-wrap { order: -1; min-height: 320px; }
  .cards, .principles { grid-template-columns: 1fr; }
  .anatomy, .figs, .intake { grid-template-columns: 1fr; }
  .method { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------- multi-page nav ---------- */
.wordmark { display: inline-block; }
.nav-links a { display: inline-block; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgb(var(--glow-blue));
  margin-top: 5px;
}

/* ---------- interior page header ---------- */
.phead { padding: clamp(38px, 7vh, 86px) 0 clamp(20px, 3vh, 38px); }
.phead h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); max-width: 20ch; margin-bottom: 20px; }
.phead .lede { max-width: 62ch; margin-bottom: 0; }

/* ---------- landing route cards ---------- */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.route {
  position: relative;
  display: block;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 30px 28px 84px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.route:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(27, 42, 74, 0.14); border-color: rgb(var(--glow-blue)); }
.route h3 { margin: 14px 0 12px; font-size: 1.375rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.012em; }
.route p { margin: 0; color: var(--muted); font-size: 0.9063rem; }
.route .go {
  position: absolute;
  left: 28px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(var(--glow-blue));
}
.route .go svg { display: block; transition: transform 0.2s ease; }
.route:hover .go svg { transform: translateX(4px); }

/* ---------- next-page band ---------- */
.next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 3.4vw, 38px) clamp(24px, 4vw, 44px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.next:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(27, 42, 74, 0.14); border-color: rgb(var(--glow-blue)); }
.next .next-t { display: block; margin-top: 8px; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -0.02em; }
.next svg { display: block; flex: none; color: rgb(var(--glow-blue)); transition: transform 0.2s ease; }
.next:hover svg { transform: translateX(5px); }

/* ---------- footer nav ---------- */
.foot-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-nav a { color: var(--muted); font-size: 0.875rem; font-weight: 500; }
.foot-nav a:hover { color: var(--ink); }

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

/* mobile nav: a scrollable tab strip, never hidden */
@media (max-width: 860px) {
  header { flex-wrap: wrap; border-radius: 22px; padding: 14px 20px; }
  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    gap: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
}
