/* ============================================================
   D21 TEXAS — "FOUR ROUTES" DESIGN SYSTEM
   Texas highway wayfinding: sign-white panels, ink borders,
   red/white/blue route shields, Overpass sign lettering.
   Shared by the overview and all four program pages.
   ============================================================ */

:root {
  --ground: #F7F7F4;
  --sign-white: #FFFFFF;
  --ink: #131619;
  --ink-soft: #3D4348;
  --ink-faint: #6B7278;
  --red: #C1121F;
  --red-deep: #9E0E19;
  --red-wash: #FAF4F4;
  --blue: #1D4FA0;
  --blue-deep: #163C7A;
  --blue-wash: #F4F6FA;
  --asphalt: #2B2F33;
  --asphalt-deep: #1C1F22;
  --yellow: #E8B31A;
  --green: #1F7A3D;
  --green-wash: #EFF7F1;
  --rule: #E2E4E6;
  --line: #131619;
  --font: 'Overpass', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Overpass Mono', 'Courier New', monospace;
  --shadow-panel: 0 14px 34px -18px rgba(19, 22, 25, 0.35);
  --shadow-row: 0 10px 24px -16px rgba(19, 22, 25, 0.3);
  --shadow-btn: 0 8px 20px -8px rgba(19, 22, 25, 0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--ground);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 5vw; padding-right: 5vw; }

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--sign-white);
  border-bottom: 3px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 5vw;
}
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  text-decoration: none;
  font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 9px 14px 7px;
  border: 2px solid transparent; border-radius: 6px;
  transition: border-color 0.15s, background 0.15s;
}
.nav-link:hover { border-color: var(--ink); }
.nav-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.nav-link.active { background: var(--ink); color: var(--sign-white); }

/* ─── PROGRAM HERO (guide sign) ─── */
.hero { padding: clamp(32px, 5vh, 64px) 5vw 0; max-width: 1160px; margin: 0 auto; }

.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0; margin-bottom: 18px;
  transition: color 0.15s;
}
.back-btn:hover { color: var(--red); }
.back-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.guide-sign {
  background: var(--sign-white);
  border: 4px solid var(--line);
  border-radius: 22px;
  padding: clamp(26px, 4.5vw, 56px);
  box-shadow: var(--shadow-panel);
  position: relative;
}
.sign-bolts { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 22px; }
.sign-bolts span { width: 8px; height: 8px; border-radius: 50%; background: #D5D8DA; border: 1px solid #AEB3B7; }

.hero-route-row {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: clamp(18px, 3vw, 28px);
}
.shield { flex-shrink: 0; }
.route-note {
  font-family: var(--mono); font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
  border-left: 3px solid var(--red); padding-left: 14px;
  line-height: 1.6;
}
.route-note.on-blue { border-left-color: var(--blue); }

h1 {
  font-weight: 900;
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  line-height: 1.04; letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: clamp(16px, 2.5vw, 24px);
}
h1 .u-blue { color: var(--blue); }
h1 .u-red { color: var(--red); }

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.68; color: var(--ink-soft);
  max-width: 66ch;
}
.hero-sub strong { color: var(--ink); font-weight: 700; }
/* Space only between stacked paragraphs, so a lone one carries no trailing gap. */
.hero-sub + .hero-sub { margin-top: 14px; }

/* ─── ROAD BAND ─── */
.road { margin-top: clamp(40px, 6vh, 64px); height: 74px; background: var(--asphalt); position: relative; overflow: hidden; }
.road::before, .road::after { content: ''; position: absolute; left: 0; right: 0; height: 5px; }
.road::before { top: 8px; background: var(--yellow); }
.road::after { bottom: 8px; background: #FFFFFF; opacity: 0.85; }
.road .dashes {
  position: absolute; top: 50%; left: 0; right: 0; height: 6px;
  transform: translateY(-50%);
  background-image: repeating-linear-gradient(90deg, #F5F5F0 0 46px, transparent 46px 110px);
  animation: drive 2.6s linear infinite;
  will-change: background-position;
}
@keyframes drive { from { background-position: 0 0; } to { background-position: -110px 0; } }
.road .dashes.is-parked { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .road .dashes { animation: none; } }

/* ─── SECTIONS ─── */
section.band { padding: clamp(48px, 8vh, 88px) 0; }
section.band.alt { background: var(--sign-white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

h2 {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.1; letter-spacing: -0.01em;
  max-width: 26ch; margin-bottom: 18px;
}
h2 .u-blue { color: var(--blue); }
h2 .u-red { color: var(--red); }

.lede { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); max-width: 68ch; margin-bottom: clamp(28px, 4vh, 40px); }
.lede strong { color: var(--ink); font-weight: 700; }

/* ─── SERVICES PANEL (feature grid) ─── */
.services {
  background: var(--sign-white);
  border: 4px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}
section.band.alt .services { box-shadow: none; }
.services-head {
  background: var(--ink); color: var(--sign-white);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.94rem; padding: 13px 26px 11px;
  display: flex; align-items: center; gap: 12px;
}
.services-head svg { flex-shrink: 0; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; }
.service {
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--rule);
  display: flex; gap: 18px; align-items: flex-start;
}
.services-grid .service:nth-child(odd) { border-right: 1px solid var(--rule); }
.service .glyph {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 10px;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.service .glyph.on-red { background: var(--red); }
.service h3 { font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 6px; line-height: 1.25; }
.service p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.62; max-width: 52ch; }

/* ─── ROUTE (timeline as mile markers) ─── */
.route { position: relative; margin-top: clamp(24px, 4vh, 36px); }
.route::before {
  content: ''; position: absolute; left: 25px; top: 8px; bottom: 8px; width: 6px;
  background: var(--asphalt);
  border-radius: 4px;
}
.route::after {
  content: ''; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  background-image: repeating-linear-gradient(180deg, var(--yellow) 0 14px, transparent 14px 30px);
}
.stop { display: flex; gap: clamp(18px, 3vw, 30px); padding-bottom: clamp(28px, 4vh, 42px); position: relative; }
.stop:last-child { padding-bottom: 0; }
.stop-marker {
  flex-shrink: 0; width: 56px; position: relative; z-index: 1;
  display: flex; justify-content: center;
}
.stop-marker svg { display: block; }
.stop-body { padding-top: 4px; }
.stop-body h3 {
  font-weight: 900; font-size: clamp(1.05rem, 2vw, 1.3rem);
  text-transform: uppercase; letter-spacing: 0.01em;
  line-height: 1.2; margin-bottom: 8px;
}
.stop-body p { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.68; max-width: 68ch; }
.stop-body p strong { color: var(--ink); font-weight: 700; }

/* ─── SIGN TABLE ─── */
.table-panel {
  background: var(--sign-white);
  border: 4px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}
section.band.alt .table-panel { box-shadow: none; }
.table-panel-head {
  background: var(--ink); color: var(--sign-white);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.94rem; padding: 13px 26px 11px;
  display: flex; align-items: center; gap: 12px;
}
.table-scroll { overflow-x: auto; }
table.sign-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
table.sign-table th {
  background: var(--blue-wash);
  color: var(--ink);
  font-family: var(--mono); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 13px 18px; text-align: left; white-space: nowrap;
  border-bottom: 2px solid var(--line);
}
table.sign-table th.num, table.sign-table td.num { text-align: right; }
table.sign-table th.mid, table.sign-table td.mid { text-align: center; }
table.sign-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}
table.sign-table tbody tr:last-child td { border-bottom: none; }
table.sign-table tbody tr:hover td { background: var(--ground); }
table.sign-table .lead-cell { font-weight: 700; color: var(--ink); white-space: nowrap; }
table.sign-table tr.highlight-row td { background: var(--red-wash); color: var(--ink); font-weight: 600; }
/* Emphasis colors must outrank the highlighted-row rule above, or the very
   values worth calling out lose their color exactly where it matters most. */
table.sign-table tr td.hot { color: var(--red); font-weight: 700; }
table.sign-table tr td.cool { color: var(--blue); font-weight: 700; }
table.sign-table tr.highlight-row:hover td { background: #F2E4E4; }

.badge-yes {
  display: inline-block;
  font-family: var(--mono); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); background: var(--green-wash);
  border: 1.5px solid var(--green);
  padding: 3px 10px 1px; border-radius: 4px; white-space: nowrap;
}

.fine-print { font-size: 0.78rem; color: var(--ink-faint); line-height: 1.6; margin-top: 16px; max-width: 78ch; }

/* ─── CALCULATOR (trip computer) ─── */
.calc {
  background: var(--sign-white);
  border: 4px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-panel);
}
.calc-head {
  background: var(--ink); color: var(--sign-white);
  padding: 15px 26px 13px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.calc-head svg { flex-shrink: 0; }
.calc-head .calc-title { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; }
.calc-head .calc-sub { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: #B9BEC3; width: 100%; }
.calc-body { padding: clamp(22px, 3vw, 32px); }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 28px); margin-bottom: 26px; }
.calc-group label {
  display: block;
  font-family: var(--mono); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 10px;
}
.calc-group input[type="range"] { width: 100%; accent-color: var(--red); height: 4px; margin-bottom: 8px; }
.calc-group input[type="range"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.calc-group select {
  width: 100%; font-family: var(--font); font-size: 0.92rem; font-weight: 600;
  color: var(--ink); background: var(--sign-white);
  border: 2px solid var(--line); border-radius: 8px;
  padding: 10px 14px; outline: none;
}
.calc-group select:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.range-val { font-weight: 900; font-size: 1.6rem; line-height: 1; letter-spacing: -0.01em; color: var(--ink); }
.range-hint { font-size: 0.78rem; color: var(--ink-faint); margin-top: 4px; }
.range-hint strong { color: var(--red); font-weight: 700; }

.day-one {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px; background: var(--line);
  border: 2px solid var(--line); border-radius: 12px; overflow: hidden;
  margin-bottom: 26px;
}
.day-one-item { background: var(--blue); color: #fff; padding: 16px 18px 14px; }
.day-one-label {
  font-family: var(--mono); font-weight: 700; font-size: 0.64rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: #BFD3F2;
  margin-bottom: 6px; text-wrap: balance;
}
.day-one-val { font-weight: 900; font-size: 1.6rem; line-height: 1; margin-bottom: 4px; }
.day-one-val span { font-size: 0.8rem; font-weight: 600; color: #DCE7F8; }
.day-one-note { font-size: 0.78rem; color: #DCE7F8; line-height: 1.45; }

.calc-section-label {
  font-family: var(--mono); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--line);
}

/* JS-rendered projection table */
#calc-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
#calc-table th {
  font-family: var(--mono); font-weight: 700; font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 11px 12px; text-align: right; white-space: nowrap;
  background: var(--blue-wash); color: var(--ink);
  border-bottom: 2px solid var(--line);
}
#calc-table th:first-child { text-align: left; }
#calc-table th.mid { text-align: center; }
#calc-table th.tier-a { color: var(--red); }
#calc-table th.tier-b { color: var(--blue); }
#calc-table td { padding: 9px 12px; text-align: right; color: var(--ink-soft); border-bottom: 1px solid var(--rule); white-space: nowrap; }
#calc-table td:first-child { text-align: left; font-weight: 700; color: var(--ink); }
#calc-table td.mid { text-align: center; }
#calc-table td.tier-a { color: var(--red); font-weight: 700; }
#calc-table td.tier-b { color: var(--blue); font-weight: 700; }
#calc-table td.pct { font-family: var(--mono); font-weight: 700; }
#calc-table tr.year-end td { border-bottom: 2px solid var(--line); }
#calc-table tr.stripe td { background: var(--ground); }
#calc-table tfoot td { background: var(--ink); color: #fff; font-weight: 800; border-bottom: 1px solid var(--asphalt); }
#calc-table tfoot td:first-child { color: #fff; }
#calc-table tfoot td.tier-a { color: #FF8A93; }
#calc-table tfoot td.tier-b { color: #9CC0F5; }
#calc-table tfoot tr:last-child td { border-bottom: none; }
.qtr-year { font-family: var(--mono); font-size: 0.64rem; color: var(--ink-faint); font-weight: 400; }

.calc-results {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px; background: var(--line);
  border: 2px solid var(--line); border-radius: 12px; overflow: hidden;
  margin-top: 24px;
}
.calc-result-item { background: var(--sign-white); padding: 18px 20px 16px; }
.calc-result-item.is-a { background: var(--red-wash); }
.calc-result-item.is-b { background: var(--blue-wash); }
.calc-result-label {
  font-family: var(--mono); font-weight: 700; font-size: 0.64rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 8px;
}
.calc-result-item.is-a .calc-result-label { color: var(--red); }
.calc-result-item.is-b .calc-result-label { color: var(--blue); }
.calc-result-val { font-weight: 900; font-size: 1.6rem; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.calc-result-item.is-a .calc-result-val { color: var(--red); }
.calc-result-item.is-b .calc-result-val { color: var(--blue); }
.calc-result-note { font-size: 0.72rem; color: var(--ink-faint); margin-top: 6px; line-height: 1.45; }

/* ─── NOTICE (callout) ─── */
.notice {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--sign-white);
  border: 4px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 32px);
  margin-top: clamp(32px, 5vh, 44px);
  box-shadow: var(--shadow-row);
}
section.band.alt .notice { box-shadow: none; }
.notice-glyph { flex-shrink: 0; }
.notice h3 { font-weight: 900; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 8px; }
.notice p { font-size: 0.94rem; color: var(--ink-soft); line-height: 1.68; max-width: 76ch; }
.notice p strong { color: var(--ink); font-weight: 700; }
.notice p em { font-style: normal; font-weight: 700; color: var(--red); }

/* ─── CHECK LIST ─── */
.sub-head {
  font-weight: 900; font-size: 1.15rem; text-transform: uppercase;
  letter-spacing: 0.01em; margin-top: clamp(36px, 6vh, 52px); margin-bottom: 14px;
}
.check-list { list-style: none; max-width: 78ch; }
.check-list li {
  display: flex; gap: 14px; padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.94rem; color: var(--ink-soft); line-height: 1.6;
}
.check-list li:last-child { border-bottom: none; }
.check-list li svg { flex-shrink: 0; margin-top: 2px; }

/* ─── FORM ─── */
.form-panel {
  background: var(--sign-white);
  border: 4px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  max-width: 820px;
  box-shadow: var(--shadow-panel);
}
.form-head { background: var(--ink); color: var(--sign-white); padding: 18px 26px 16px; }
.form-head h2 { color: #fff; font-size: clamp(1.15rem, 2.2vw, 1.6rem); margin-bottom: 6px; max-width: none; }
.form-head p { font-size: 0.88rem; color: #C7CBCF; line-height: 1.6; max-width: 68ch; }
.form-body { padding: clamp(22px, 3vw, 32px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-field label {
  font-family: var(--mono); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font); font-size: 0.95rem;
  color: var(--ink); background: var(--sign-white);
  border: 2px solid var(--rule); border-radius: 8px;
  padding: 12px 14px; outline: none;
  transition: border-color 0.15s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #9AA0A6; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-field textarea { resize: vertical; min-height: 110px; }
.form-consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; }
.form-consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--red); }
.form-consent label { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.55; }
.form-success {
  display: none;
  background: var(--green-wash);
  border: 2px solid var(--green);
  border-radius: 10px;
  padding: 18px 22px; margin-bottom: 16px;
  color: var(--green); font-weight: 700; font-size: 1rem;
}
.success-check { vertical-align: -4px; margin-right: 8px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font); font-weight: 800;
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 16px 28px 14px; border-radius: 10px;
  border: 3px solid var(--line);
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn svg { display: block; }
.btn-primary { background: var(--red); border-color: var(--red-deep); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-blue { background: var(--blue); border-color: var(--blue-deep); color: #fff; box-shadow: var(--shadow-btn); }
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--ink); color: var(--sign-white); }

/* ─── NEXT EXITS ─── */
.next-exits { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: clamp(24px, 4vh, 32px); }
.next-exit {
  display: flex; align-items: center; gap: 16px;
  background: var(--sign-white);
  border: 3px solid var(--line); border-radius: 16px;
  padding: 16px 18px; text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: var(--shadow-row);
}
.next-exit:hover { transform: translateY(-3px); }
.next-exit:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.next-exit svg { flex-shrink: 0; }
.next-exit-tab {
  font-family: var(--mono); font-weight: 700; font-size: 0.64rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
  display: block; margin-bottom: 3px;
}
.next-exit-name { font-weight: 900; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.2; }

/* ─── FOOTER ─── */
footer {
  background: var(--asphalt-deep); color: #B9BEC3;
  padding: 30px 5vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; font-size: 0.8rem;
}
footer a { color: #DDE1E4; text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }
footer .foot-route { font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }

/* ─── MOTION ─── */
@media (prefers-reduced-motion: no-preference) {
  .js-motion .guide-sign { animation: sign-arrive 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes sign-arrive {
    from { opacity: 0; transform: translateY(20px) scale(0.988); }
    to { opacity: 1; transform: none; }
  }
  .js-motion .hero-route-row .shield { animation: shield-light 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both; }
  @keyframes shield-light {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: none; }
  }
  .js-motion .stop { opacity: 0; transform: translateX(30px); }
  .js-motion .stop.is-passed {
    opacity: 1; transform: none;
    transition: opacity 0.5s ease-out, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* ─── MOBILE ─── */
@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  nav { flex-direction: column; gap: 10px; padding-bottom: 12px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service:nth-child(odd) { border-right: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .route::before { left: 19px; }
  .route::after { left: 21px; }
  .stop-marker { width: 44px; }
  .stop-marker svg { width: 44px; height: 44px; }
  .notice { flex-direction: column; gap: 14px; }
  footer { flex-direction: column; align-items: flex-start; }
}

/* ─── FAQ (single-column signage panel; shares .services shell) ─── */
.faq-grid { display: grid; grid-template-columns: 1fr; }
.faq-item {
  padding: clamp(20px, 2.6vw, 28px) clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--rule);
}
.faq-item h3 {
  font-weight: 800; font-size: 1rem; letter-spacing: 0.01em;
  margin-bottom: 8px; line-height: 1.32;
}
.faq-item p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.64; max-width: 76ch; }
.faq-item p strong { color: var(--ink); font-weight: 700; }
.faq-item a { color: var(--blue); font-weight: 700; }

/* Milepost odometer: fixed-width digits so counting can't jitter the layout. */
.mp-num { font-variant-numeric: tabular-nums; }
