/* GentleRoute — senior-friendly site styles (full-screen pages with page turning) */

@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/atkinson-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/atkinson-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/atkinson-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/atkinson-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --tint: #eef5f3;
  --ink: #1b2430;
  --muted: #47515e;
  --line: #ddd6ca;
  --line-strong: #b5ad9f;
  --primary: #0f5c5a;
  --primary-ink: #ffffff;
  --primary-hover: #0b4846;
  --primary-soft: #d9ece8;
  --accent: #a4501a;
  --accent-soft: #fbeadb;
  --focus: #e08a1e;
  --map-bg: #e7efe9;
  --map-street: #ffffff;
  --map-park: #cfe3d2;
  --shadow: 0 1px 2px rgba(27, 36, 48, .06), 0 12px 32px rgba(27, 36, 48, .08);
  --shadow-lift: 0 2px 4px rgba(27, 36, 48, .06), 0 18px 40px rgba(27, 36, 48, .12);
  --hh: 76px;
  --pager-space: 96px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11171c;
    --surface: #1a2229;
    --tint: #151d23;
    --ink: #f1eee8;
    --muted: #bcc3ca;
    --line: #2f3a43;
    --line-strong: #56636d;
    --primary: #7fd1c6;
    --primary-ink: #0d1f1e;
    --primary-hover: #a3e0d8;
    --primary-soft: #1f3a38;
    --accent: #f2ae74;
    --accent-soft: #3a2a1d;
    --focus: #f2ae74;
    --map-bg: #1f2b2a;
    --map-street: #2e3c3c;
    --map-park: #284034;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

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

html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html.big { font-size: 117.5%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Atkinson Hyperlegible', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--primary-hover); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.page:focus, .deck:focus { outline: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 20;
  background: var(--primary); color: var(--primary-ink); padding: .6em 1em; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--hh); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; }
.bm-bg { fill: var(--primary); }
.bm-route { fill: none; stroke: var(--primary-ink); stroke-width: 2.6; stroke-linecap: round; }
.bm-dot { fill: var(--primary-ink); }
.bm-end { fill: var(--focus); }
.brand-name { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }

.main-nav { display: flex; gap: 6px; margin-left: 8px; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-size: 1.05rem;
  padding: .5em .8em; border-radius: 10px; position: relative;
}
.main-nav a:hover { background: var(--tint); color: var(--ink); }
.main-nav a::after {
  content: ''; position: absolute; left: .8em; right: .8em; bottom: .25em; height: 3px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.main-nav a[aria-current="true"]::after { transform: scaleX(1); }

.tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.textsize {
  display: inline-flex; align-items: center; gap: .45em;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  min-height: 48px; padding: 0 .9em; cursor: pointer;
}
.textsize:hover { border-color: var(--primary); }
.textsize[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); }
.ts-icon { font-weight: 700; font-size: 1.15rem; }
.ts-icon sup { font-size: .65em; }

.lang { display: inline-flex; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 3px; }
.lang a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 .75em;
  border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 1rem;
}
.lang a:hover { background: var(--tint); color: var(--ink); }
.lang a[aria-current="page"] { background: var(--primary); color: var(--primary-ink); font-weight: 700; }
.lang .short { display: none; }

@media (max-width: 980px) { .main-nav { display: none; } }
@media (max-width: 640px) {
  :root { --hh: 64px; --pager-space: 88px; }
  .header-inner { gap: 10px; }
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 34px; height: 34px; }
  .lang .long { display: none; }
  .lang .short { display: inline; }
  .lang a { padding: 0 .55em; min-height: 40px; }
  .ts-label { display: none; }
  .textsize { padding: 0 .7em; min-height: 46px; }
  .tools { gap: 8px; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(20px, 3.4vh, 32px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 58px; padding: 0 1.4em; border-radius: 14px;
  font-weight: 700; font-size: 1.15rem; text-decoration: none; text-align: center;
  border: 2px solid transparent;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-arrow { transition: transform .25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-ink); }
.btn-secondary { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-soft); color: var(--primary); }

/* ---------- Pages: layout without JavaScript (one long page) ---------- */
.page { padding: 88px 0; }
.page.tinted { background: var(--tint); }
.page-inner { width: 100%; }

/* ---------- Pages: full-screen deck with JavaScript ---------- */
html.js, html.js body { height: 100%; overflow: hidden; }
html.js .site-header { position: fixed; left: 0; right: 0; top: 0; }
html.js .deck { position: fixed; top: var(--hh); left: 0; right: 0; bottom: 0; overflow: hidden; }
html.js .page {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: clamp(18px, 4vh, 48px) 0 var(--pager-space);
  background: var(--bg);
  visibility: hidden;
  will-change: transform;
}
html.js .page.tinted { background: var(--tint); }
html.js .page.is-active { visibility: visible; }
html.js .page-inner { margin: auto 0; }

.page.hero {
  background:
    radial-gradient(55% 60% at 88% 18%, var(--primary-soft) 0%, transparent 70%),
    radial-gradient(40% 45% at 6% 96%, var(--accent-soft) 0%, transparent 70%),
    var(--bg);
}
html.js .page.hero { background:
    radial-gradient(55% 60% at 88% 18%, var(--primary-soft) 0%, transparent 70%),
    radial-gradient(40% 45% at 6% 96%, var(--accent-soft) 0%, transparent 70%),
    var(--bg); }

/* ---------- Entrance animations ---------- */
html.js [data-anim] { opacity: 0; transform: translateY(26px); }
html.js .is-in [data-anim] {
  opacity: 1; transform: none;
  transition: opacity .7s ease var(--d, 0ms), transform .85s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), translate .25s ease, box-shadow .25s ease;
}

/* ---------- Pager ---------- */
.pager { display: none; }
html.js .pager {
  display: flex; align-items: center; gap: 4px;
  position: fixed; z-index: 9; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 6px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.pg-btn {
  display: inline-flex; align-items: center; gap: .4em;
  min-height: 52px; padding: 0 1.05em; border-radius: 14px; border: 0;
  font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, opacity .2s ease;
}
.pg-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pg-prev { background: transparent; color: var(--ink); }
.pg-prev:hover:not(:disabled) { background: var(--tint); }
.pg-prev:disabled { opacity: .35; cursor: default; }
.pg-next { background: var(--primary); color: var(--primary-ink); }
.pg-next:hover { background: var(--primary-hover); }
.pg-next svg { animation: nudge 1.8s ease-in-out infinite; }
.pg-next.is-top svg { animation: none; transform: rotate(180deg); }
@keyframes nudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(4px); } }

.pg-dots { list-style: none; display: flex; align-items: center; margin: 0; padding: 0 4px; }
.pg-dots li { display: flex; }
.pg-dot { position: relative; width: 26px; height: 44px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.pg-dot::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 5px;
  background: var(--line-strong); transform: translate(-50%, -50%);
  transition: width .35s ease, background .35s ease;
}
.pg-dot:hover::before { background: var(--muted); }
.pg-dot[aria-current]::before { width: 24px; background: var(--primary); }
.pg-dot[aria-current] { width: 38px; }

.pg-count { margin: 0 10px 0 4px; font-size: 1rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-count b { color: var(--ink); font-size: 1.1rem; }
.pg-title { margin-left: .7em; padding-left: .7em; border-left: 1.5px solid var(--line); color: var(--ink); font-weight: 700; }

@media (max-width: 1100px) { .pg-title { display: none; } }
@media (max-width: 640px) {
  html.js .pager { left: 12px; right: 12px; transform: none; justify-content: space-between; bottom: max(12px, env(safe-area-inset-bottom)); }
  .pg-dots { display: none; }
  .pg-btn { min-height: 54px; font-size: 1.05rem; }
  .pg-prev { border: 1.5px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 1rem; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: .3em .8em; border-radius: 999px; margin-bottom: clamp(12px, 2.4vh, 22px);
}
.hero h1 { font-size: clamp(2.2rem, min(4.5vw, 6.6vh), 3.7rem); }
.lead { font-size: 1.35rem; color: var(--muted); margin-top: clamp(14px, 2.6vh, 24px); max-width: 34em; }
.hero-note { margin-top: clamp(14px, 2.2vh, 22px); font-size: 1.05rem; color: var(--muted); }

.trip {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow); overflow: hidden;
}
.trip-map svg { display: block; width: 100%; height: clamp(92px, 15vh, 150px); }
.m-bg { fill: var(--map-bg); }
.m-street { fill: none; stroke: var(--map-street); stroke-width: 9; }
.m-street.thin { stroke-width: 5; }
.m-park { fill: var(--map-park); }
.m-route { fill: none; stroke: var(--primary); stroke-width: 6; stroke-linecap: round; }
.m-walk { fill: none; stroke: var(--primary); stroke-width: 4; stroke-dasharray: 2 8; stroke-linecap: round; }
.m-start { fill: var(--surface); stroke: var(--primary); stroke-width: 4; }
.m-start-in { fill: var(--primary); }
.m-pin { fill: var(--accent); }
.m-pin-in { fill: var(--surface); }
.m-pin-g { transform-box: fill-box; transform-origin: 50% 100%; }
.m-bus-c { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.m-bus-i { fill: var(--surface); }
.m-bus-w { stroke: var(--accent); stroke-width: 1.6; }

html.js .m-route { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js .is-in .m-route { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s cubic-bezier(.45, 0, .2, 1) .8s; }
html.js .m-walk, html.js .m-bus { opacity: 0; }
html.js .is-in .m-walk { opacity: 1; transition: opacity .5s ease 2.2s; }
html.js .is-in .m-bus { opacity: 1; transition: opacity .5s ease 1.4s; }
html.js .m-pin-g { opacity: 0; transform: translateY(-14px); }
html.js .is-in .m-pin-g { opacity: 1; transform: none; transition: opacity .3s ease 2.3s, transform .6s cubic-bezier(.3, 1.8, .5, 1) 2.3s; }

.trip-body { padding: clamp(16px, 2.4vh, 22px) 26px clamp(16px, 2.6vh, 24px); }
.trip-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.trip-tag {
  font-size: .9rem; font-weight: 700; color: var(--primary); background: var(--primary-soft);
  padding: .2em .7em; border-radius: 999px;
}
.trip-day { font-size: 1rem; color: var(--muted); }
.trip-title { font-size: 1.45rem; font-weight: 700; margin-top: 8px; }

.timeline { --tcol: 3.3em; list-style: none; margin: clamp(10px, 1.8vh, 16px) 0 0; padding: 0; }
:lang(fr) .timeline { --tcol: 4.5em; }
.timeline li {
  display: grid; grid-template-columns: var(--tcol) 22px minmax(0, 1fr); gap: 12px;
  align-items: start; position: relative; padding-bottom: clamp(6px, 1.5vh, 14px);
}
.timeline li:last-child { padding-bottom: 0; }
.t-time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.05rem; white-space: nowrap; }
.t-dot {
  width: 14px; height: 14px; border-radius: 50%; margin: .4em auto 0;
  background: var(--surface); border: 3px solid var(--primary); position: relative; z-index: 1;
}
.t-dot.end { background: var(--accent); border-color: var(--accent); }
.timeline li:not(:last-child)::after {
  content: ''; position: absolute; left: calc(var(--tcol) + 12px + 10px); top: 1.3em; bottom: -.2em;
  width: 2px; background: var(--line);
}
.timeline strong { display: block; font-size: 1.06rem; }
.timeline div span { display: block; font-size: 1rem; color: var(--muted); line-height: 1.45; }

.trip-alert {
  display: flex; gap: 12px; align-items: flex-start; margin-top: clamp(12px, 2vh, 20px);
  background: var(--accent-soft); color: var(--ink); border-radius: 14px; padding: 12px 16px;
  font-size: 1.02rem; line-height: 1.45;
}
.trip-alert svg { width: 26px; height: 26px; flex-shrink: 0; margin-top: 1px; transform-origin: 50% 60%; }
html.js .is-in .trip-alert svg { animation: ring 1s ease 2.6s 2; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } }
.ic-fill { fill: var(--accent); }
.ic-stroke { fill: none; stroke: var(--surface); stroke-width: 2.4; stroke-linecap: round; }
.trip figcaption {
  font-size: .9rem; color: var(--muted); padding: 10px 26px; border-top: 1px solid var(--line); background: var(--tint);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: clamp(2.1rem, 8.4vw, 3rem); }
}
@media (max-width: 600px) {
  .lead { font-size: 1.22rem; }
  .actions .btn { width: 100%; }
  .trip-body { padding: 16px 18px 18px; }
  .trip figcaption { padding: 10px 18px; }
  .timeline li { grid-template-columns: var(--tcol) 20px minmax(0, 1fr); gap: 10px; }
  .timeline li:not(:last-child)::after { left: calc(var(--tcol) + 10px + 9px); }
}

/* ---------- Sections ---------- */
.page h2 { font-size: clamp(1.85rem, min(3.4vw, 5.2vh), 2.6rem); max-width: 22em; }
.section-lead { font-size: 1.28rem; color: var(--muted); margin-top: clamp(10px, 2vh, 18px); max-width: 38em; }
@media (max-width: 600px) { .page { padding: 56px 0; } .section-lead { font-size: 1.18rem; } }

.cards { display: grid; gap: 22px; margin-top: clamp(22px, 4.4vh, 44px); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3.2vh, 30px);
  transition: translate .25s ease, box-shadow .25s ease;
}
.card:hover, .steps li:hover { translate: 0 -4px; box-shadow: var(--shadow-lift); }
.card h3 { font-size: 1.32rem; }
.card p { margin-top: 10px; color: var(--muted); }
.card-icon { width: 52px; height: 52px; margin-bottom: 18px; }
.ci-line { fill: none; stroke: var(--primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.card-icon.spin { animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.card.join::before {
  content: ''; display: block; width: 44px; height: 6px; border-radius: 3px;
  background: var(--primary); margin-bottom: 16px;
}
.card.join:nth-child(even)::before { background: var(--accent); }
@media (max-width: 1080px) { .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cards.three { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cards.four { grid-template-columns: 1fr; } .card { padding: 20px; } }

.steps {
  list-style: none; margin: clamp(22px, 4.4vh, 44px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: none;
}
.steps li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3.2vh, 30px);
  transition: translate .25s ease, box-shadow .25s ease; position: relative;
}
.steps li:not(:last-child)::after {
  content: ''; position: absolute; top: calc(clamp(20px, 3.2vh, 30px) + 26px); right: -22px; width: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--primary) 0 5px, transparent 5px 9px);
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: 1.4rem; margin-bottom: 16px;
}
html.js .is-in .step-n { animation: pop .6s cubic-bezier(.3, 1.7, .5, 1) calc(var(--d, 0ms) + 250ms) both; }
@keyframes pop { from { transform: scale(.3); } to { transform: scale(1); } }
.steps h3 { font-size: 1.28rem; }
.steps p { margin-top: 10px; color: var(--muted); }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li::after { display: none; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .steps li { padding: 20px; } }

/* ---------- Government ---------- */
.gov { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.status {
  display: flex; gap: 12px; align-items: flex-start; margin: clamp(18px, 3vh, 28px) 0 clamp(18px, 3vh, 30px);
  font-weight: 700; font-size: 1.15rem;
}
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--focus); margin-top: .45em; flex-shrink: 0; position: relative; }
.status-dot::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--focus);
  animation: beacon 2s ease-out infinite; opacity: 0;
}
@keyframes beacon { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.gov-lists { display: grid; gap: 20px; }
.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vh, 26px) 28px; }
.list-card h3 { font-size: 1.24rem; }
.list-card.give { background: var(--primary-soft); border-color: transparent; }
.ticks { list-style: none; margin: 12px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 34px; margin-top: 8px; }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: .38em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .ticks li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230d1f1e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
html.js .ticks li { opacity: 0; transform: translateX(-10px); }
html.js .is-in .ticks li { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
html.js .is-in .ticks li:nth-child(1) { transition-delay: calc(var(--d, 0ms) + 250ms); }
html.js .is-in .ticks li:nth-child(2) { transition-delay: calc(var(--d, 0ms) + 350ms); }
html.js .is-in .ticks li:nth-child(3) { transition-delay: calc(var(--d, 0ms) + 450ms); }
html.js .is-in .ticks li:nth-child(4) { transition-delay: calc(var(--d, 0ms) + 550ms); }
@media (max-width: 900px) { .gov { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) { .gov .btn { width: 100%; } .list-card { padding: 20px; } }

/* ---------- Promises ---------- */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: clamp(18px, 3.6vh, 36px); }
.promise { padding: clamp(18px, 3vh, 28px) 0; border-top: 2px solid var(--line); position: relative; }
.promise::before {
  content: ''; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--primary);
}
html.js .is-in .promise::before { width: 72px; transition: width .7s ease calc(var(--d, 0ms) + 300ms); }
.promise-n {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  display: block; font-size: 2.4rem; font-weight: 700; line-height: 1; margin-bottom: 10px;
  color: transparent; -webkit-text-stroke: 1.5px var(--primary);
}
.promise h3 { font-size: 1.34rem; color: var(--primary); }
.promise p { margin-top: 8px; color: var(--muted); }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

/* ---------- Contact + footer ---------- */
.contact {
  margin-top: clamp(22px, 4vh, 44px); padding: clamp(22px, 3.4vh, 36px) 36px; border-radius: 24px;
  background: var(--primary); color: var(--primary-ink);
}
.contact h2 { font-size: clamp(1.6rem, min(3vw, 4.4vh), 2.1rem); }
.contact p { margin-top: 8px; font-size: 1.22rem; }
@media (max-width: 600px) { .contact { padding: 24px 22px; } }

.site-footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(18px, 3vh, 28px); padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 1rem;
}

/* ---------- Phones: card rows become side-swipe carousels so each page fits one screen ---------- */
@media (max-width: 640px) {
  html.js .cards.three, html.js .cards.four, html.js .steps, html.js .gov-lists, html.js .promises {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-left: -16px; margin-right: -16px; padding: 4px 16px 14px; scroll-padding: 0 16px;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  html.js .cards.three::-webkit-scrollbar, html.js .cards.four::-webkit-scrollbar, html.js .steps::-webkit-scrollbar,
  html.js .gov-lists::-webkit-scrollbar, html.js .promises::-webkit-scrollbar { display: none; }
  html.js .cards.three > *, html.js .cards.four > *, html.js .steps > li,
  html.js .gov-lists > *, html.js .promises > * { flex: 0 0 84%; scroll-snap-align: start; }
  html.js .gov-lists { align-items: stretch; }
  html.js .promise { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
  html.js .promise::before { display: none; }
  html.js .hero-note { display: none; }
}

/* ---------- Short screens (small laptops) ---------- */
@media (max-height: 780px) and (min-width: 641px) {
  :root { --pager-space: 88px; }
  .page h2 { font-size: clamp(1.7rem, 4.6vh, 2.2rem); }
  .section-lead { font-size: 1.18rem; }
  .card, .steps li { padding: 18px 22px; }
  .card p, .steps p { margin-top: 6px; line-height: 1.5; }
  .card-icon { width: 44px; height: 44px; margin-bottom: 10px; }
  .card.join::before { margin-bottom: 10px; }
  .contact { padding: 18px 30px; }
  .contact p { font-size: 1.12rem; }
  .site-footer { margin-top: 14px; padding-top: 12px; font-size: .95rem; }
  .pg-btn { min-height: 48px; }
}

/* ---------- Reduced motion: keep everything still ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js [data-anim], html.js .ticks li, html.js .m-pin-g, html.js .m-walk { opacity: 1 !important; transform: none !important; }
  html.js .m-route { stroke-dashoffset: 0 !important; }
  .m-bus { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
