/* Trailhead: the San Gabriel foothills' wayfinding signs, as a calm, modern clinic site.
   Type: Overpass (display; derived from US highway signage) + Atkinson Hyperlegible Next (body; Braille Institute, for low vision). Both SIL OFL. */
@font-face { font-family: "Overpass"; src: url("/fonts/overpass-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-hyperlegible-next-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: #f2f3f6;       /* morning haze */
  --white: #ffffff;
  --ink: #142028;          /* night slate, 15:1 on ground */
  --muted: #4a5561;        /* 7.3:1 on ground */
  --forest: #2e4468;       /* dusk blue: links and icons, 9.6:1 on white */
  --forest-deep: #1d2c3a;
  --night: #142028;
  --sign-text: #f6efe2;    /* cream on night 15:1 */
  --sign-muted: #d6cfc2;   /* 10.5:1 on night */
  --sage: #e6e9ef;
  --line: #d3d8e0;
  --blaze: #f2a65a;        /* low sun; ink on it 8.4:1 */
  --blaze-deep: #d98a3f;
  --placard: #1d5fb4;
  --sky-1: #121c2c; --sky-2: #1f2c47; --sky-3: #3d4466; --glow-1: #f6b46f; --glow-2: #d98a7c;
  --ridge-1: #8f84a3; --ridge-2: #66688c; --ridge-3: #434d6e; --ridge-4: #28344b; --ridge-5: #142028;

  --step--1: 1.0625rem;
  --step-0: 1.25rem;       /* 20px body */
  --step-1: 1.4375rem;
  --step-2: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem);
  --step-3: clamp(2.375rem, 1.6rem + 3.4vw, 4rem);
  --measure: 40rem;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(20 36 29 / .06), 0 12px 32px -12px rgb(20 36 29 / .22);
  --band: clamp(4rem, 3rem + 5vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--step-0)/1.6 "Atkinson", system-ui, sans-serif;
  accent-color: var(--forest); caret-color: var(--forest);
}
::selection { background: var(--blaze); color: var(--ink); }
h1, h2, h3, .sign-title, .plaque-title, .price-tag, .fee-list dd, .blaze {
  font-family: "Overpass", "Atkinson", system-ui, sans-serif;
}
h1, h2, h3 { margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--step-3); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: var(--step-2); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
p, li, dd { text-wrap: pretty; }
p, ul, ol, dl { margin: 0 0 1em; max-width: var(--measure); }
li + li { margin-top: .35em; }
a { color: var(--forest); text-decoration-thickness: .07em; text-underline-offset: .2em; }
a:hover { color: var(--forest-deep); text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--blaze); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 6px var(--ink); }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; }

.wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
.lede { font-size: 1.3125rem; color: var(--muted); }
.small { font-size: var(--step--1); color: var(--muted); }
.icon { width: 1.5em; height: 1.5em; flex: none; }
.icon-sm { width: 1.15em; height: 1.15em; }
.icon-xs { width: .85em; height: .85em; margin-left: .3em; vertical-align: -.05em; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 1rem; }
.skip:hover { color: #fff; }
.preview-bar { background: var(--blaze); color: var(--ink); text-align: center; padding: .6rem 1rem; font-size: var(--step--1); font-weight: 600; }
mark.todo { background: #fde3c4; color: var(--ink); padding: 0 .2em; border-radius: 4px; box-shadow: 0 0 0 1px #e2b64a; }

/* ---------- header ---------- */
.site-header { background: rgb(255 255 255 / .92); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 5rem; flex-wrap: wrap; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: "Overpass", sans-serif; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand-sub { font-size: .95rem; color: var(--muted); }
.mark { width: 2.75rem; height: 2.75rem; flex: none; }
.nav { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; max-width: none; }
.nav li + li { margin: 0; }
.nav a { display: block; white-space: nowrap; padding: .6rem .9rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.0625rem; }
.nav a:hover { background: var(--sage); }
.nav a[aria-current="page"] { background: var(--sage); box-shadow: inset 0 0 0 1.5px var(--forest); }
.header-call { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem; border-radius: 999px; background: var(--forest); color: var(--sign-text); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.header-call:hover { background: var(--forest-deep); color: #fff; }
@media (max-width: 60rem) {
  .header-row { gap: .5rem 1rem; }
  .site-header nav { order: 3; width: 100%; overflow-x: auto; }
  .nav a { padding: .5rem .75rem; font-size: 1rem; }
  .nav { gap: .15rem; }
}
@media (min-width: 60.01rem) and (max-width: 76rem) { .brand-sub { display: none; } }
@media (max-width: 47.99rem) {
  .brand-sub { display: none; }
  .header-call { display: none; }
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; line-height: 1.2; transition: background-color .2s ease, transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease; }
.btn { -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; }
.btn .icon { transition: transform .2s cubic-bezier(.16,1,.3,1); }
.btn-book { background: var(--blaze); color: var(--ink); box-shadow: 0 1px 0 var(--blaze-deep), 0 8px 20px -10px rgb(140 70 10 / .55); }
.btn-call { background: var(--white); color: var(--forest); box-shadow: inset 0 0 0 2px var(--forest); font-variant-numeric: tabular-nums; }
.btn-on-dark { background: transparent; color: var(--sign-text); box-shadow: inset 0 0 0 2px var(--sign-text); }
/* Hover only where there is a real pointer, so a tapped button on a phone doesn't stay lit. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover .icon { transform: scale(1.12); }
  .btn-book:hover { background: #f6b877; color: var(--ink); box-shadow: 0 1px 0 var(--blaze-deep), 0 14px 26px -12px rgb(140 70 10 / .6); }
  .btn-call:hover { background: var(--forest); color: #fff; }
  .btn-on-dark:hover { background: rgb(255 255 255 / .1); color: #fff; }
}
/* Press feedback for every device, including touch: the button sinks and darkens while held. */
.btn:active { transform: translateY(1px) scale(.97); transition-duration: .06s; }
.btn-book:active { background: var(--blaze-deep); box-shadow: 0 0 0 var(--blaze-deep), 0 4px 10px -8px rgb(140 70 10 / .6); }
.btn-call:active { background: var(--forest); color: #fff; box-shadow: inset 0 0 0 2px var(--forest); }
.btn-on-dark:active { background: rgb(255 255 255 / .16); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn .icon { transition: background-color .2s ease, color .2s ease; }
  .btn:hover, .btn:active, .btn:hover .icon { transform: none; }
}
.paused .btn, .paused .btn .icon { transition: background-color .2s ease, color .2s ease; }
.paused .btn:hover, .paused .btn:active, .paused .btn:hover .icon { transform: none; }
.btn-large { min-height: 3.75rem; padding: 1rem 1.75rem; font-size: 1.3125rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 2rem + 4vw, 5.5rem) 0 clamp(3rem, 2rem + 5vw, 6rem); background: linear-gradient(180deg, var(--white) 0%, var(--ground) 100%); }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--line); pointer-events: none; }
.topo-hero { opacity: .8; }
.hero-grid { position: relative; display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.2fr .8fr; } }
.hero-main h1 { max-width: 19ch; font-size: clamp(2.125rem, 1.5rem + 2.8vw, 3.75rem); }
.hero-text { font-size: 1.375rem; max-width: 34rem; }
.assure { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; max-width: none; }
.assure li { margin: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: 1.0625rem; font-weight: 600; }
.assure .icon { color: var(--forest); }
.hero-side { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-side .sign-hero { position: relative; margin: -4.5rem 1rem 0; }
@media (min-width: 62rem) { .hero-side .sign-hero { margin: -6rem -1.5rem 0 2.5rem; } }

/* The trailhead sign: forest panel with a routed inner border. The page's signature. */
.sign { position: relative; background: var(--forest); color: var(--sign-text); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); }
.sign::before { content: ""; position: absolute; inset: .6rem; border: 1.5px solid rgb(244 241 228 / .28); border-radius: calc(var(--radius) - .6rem); pointer-events: none; }
.sign h2, .sign h3 { color: var(--sign-text); }
.sign a { color: var(--sign-text); }
.sign a:hover { color: #fff; }
.sign-title { font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; margin-bottom: .75rem; display: flex; align-items: center; gap: .6rem; }
.sign-title::before { content: ""; width: 1.1rem; height: .75rem; background: var(--blaze); border-radius: 2px; }
.with-icon { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .6rem; }
.with-icon .icon { color: var(--blaze); margin-top: .1em; }
.sign-hero .with-icon a { font-weight: 700; font-variant-numeric: tabular-nums; }
.sign-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid rgb(244 241 228 / .22); font-weight: 600; }

/* ---------- bands ---------- */
.band { position: relative; padding: var(--band) 0; }
.band-white { background: var(--white); }
.band > .wrap > h2 + .lede { margin-bottom: 2.5rem; }
.split { display: grid; gap: 2rem clamp(2rem, 1rem + 4vw, 5rem); }
@media (min-width: 58rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .split-head { position: sticky; top: 2rem; align-self: start; } }

/* How it works: a trail with blazes. */
.route { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: 2rem; position: relative; counter-reset: none; }
.route li { margin: 0; position: relative; padding-left: 4.25rem; }
.route li p { color: var(--muted); max-width: 22rem; }
.blaze { position: absolute; left: 0; top: -.15rem; width: 3rem; height: 3rem; display: grid; place-items: center; background: var(--blaze); color: var(--ink); font-weight: 800; font-size: 1.375rem; border-radius: 10px; box-shadow: 0 0 0 5px var(--ground); z-index: 1; }
.route::before { content: ""; position: absolute; left: 1.5rem; top: 1.5rem; bottom: 1.5rem; border-left: 3px dashed var(--forest); opacity: .45; }
@media (min-width: 58rem) {
  .route { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .route li { padding: 4.5rem 0 0; }
  .route::before { left: 1.5rem; right: 1.5rem; top: 1.5rem; bottom: auto; border-left: 0; border-top: 3px dashed var(--forest); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .route::before { animation: trail linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    @keyframes trail { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  }
}
@media (max-width: 57.99rem) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) { @keyframes trail { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } } }
}

/* Rows: icon + heading + text, separated by rules (not cards). */
.rows { list-style: none; padding: 0; margin: 0; max-width: none; }
.rows li { display: flex; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--line); margin: 0; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { margin-bottom: .3em; }
.rows p { margin: 0; color: var(--muted); }
.row-icon { width: 2.75rem; height: 2.75rem; padding: .6rem; border-radius: 12px; background: var(--sage); color: var(--forest); }
.aside-note { margin-top: 1.75rem; padding: 1.25rem 1.5rem; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1.125rem; }

.checks { list-style: none; padding: 0; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.checks .icon { color: var(--forest); margin-top: .3em; }
.checks-lg li { padding: 1rem 0; border-top: 1px solid var(--line); margin: 0; }
.checks-lg li:last-child { border-bottom: 1px solid var(--line); }
.plain { list-style: none; padding: 0; }

.panel { background: var(--sage); border-radius: var(--radius); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.panel .checks { columns: 2 22rem; column-gap: 2.5rem; max-width: none; }
.panel .checks li { break-inside: avoid; margin: 0 0 .9rem; }

/* Fees sign */
.sign-fees { padding: clamp(2rem, 1.25rem + 3vw, 4rem); }
.sign-lede { color: var(--sign-muted); font-size: 1.3125rem; }
.fee-cols { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 52rem) { .fee-cols { grid-template-columns: 3fr 2fr; } .fee-cols > div + div { border-left: 1px solid rgb(244 241 228 / .22); padding-left: 2.5rem; } }
.fee-cols h3 { font-size: 1.125rem; text-transform: none; color: var(--sign-muted); font-weight: 700; }
.fee-cols p { color: var(--sign-muted); }
.fee-list { margin: 0; max-width: none; }
.fee-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1rem 0; border-top: 1px solid rgb(244 241 228 / .22); }
.fee-list dt { font-weight: 700; color: var(--sign-text); }
.fee-list dd { margin: 0; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 800; color: var(--blaze); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.optional { display: block; font-weight: 400; color: var(--sign-muted); font-size: 1.0625rem; }

/* Roles comparison */
.roles { display: grid; gap: 1.5rem; }
@media (min-width: 50rem) { .roles { grid-template-columns: 1fr 1fr; } }
.role { border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); }
.role h3 { display: flex; align-items: center; gap: .75rem; }
.role-us { background: var(--ground); }
.role-dmv { background: var(--white); }
.role-dmv h3 .icon { color: var(--muted); width: 2.25rem; height: 2.25rem; }
.role .mark { width: 2.25rem; height: 2.25rem; }

/* Drive / service area */
.band-drive { background: var(--ground); overflow: hidden; }
.band-drive .topo { opacity: .7; }
.band-drive .wrap { position: relative; }
.regions { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: none; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .regions { grid-template-columns: 1fr 1fr; } }
.regions li { margin: 0; display: flex; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.25rem; }
.regions h3 { font-size: 1.1875rem; margin-bottom: .25em; }
.regions p { margin: 0; color: var(--muted); font-size: 1.0625rem; }
.regions .row-icon { width: 2.5rem; height: 2.5rem; padding: .5rem; }
.nearby { max-width: none; }
.address-block { display: flex; gap: .75rem; font-weight: 700; font-size: 1.3125rem; line-height: 1.4; }
.address-block .icon { color: var(--forest); margin-top: .15em; }

/* Doctor plaque */
.plaque { background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.plaque-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.015em; margin-bottom: 0; }
.plaque > p:nth-child(2) { color: var(--muted); }
.plaque dl { max-width: none; margin: 1.25rem 0; }
.plaque dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.plaque dt { color: var(--muted); }
.plaque dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.social { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.social li { margin: 0; }
.ext { font-weight: 600; display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; }
.logo-badge { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); flex: none; }
.logo-badge svg { width: 1.25rem; height: 1.25rem; }
.social { flex-direction: column; gap: .5rem; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; font-weight: 700; font-size: 1.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4c3b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 1.1rem no-repeat; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--forest); }
.faq details p { color: var(--muted); padding-bottom: 1.25rem; margin: 0; }

/* Book band */
.band-book { background: var(--forest-deep); color: var(--sign-text); overflow: hidden; }
.band-book .topo { color: rgb(244 241 228 / .1); }
.book-inner { position: relative; text-align: center; }
.book-inner h2 { color: var(--sign-text); }
.book-inner p { margin-inline: auto; color: var(--sign-muted); font-size: 1.3125rem; }
.book-inner .actions { justify-content: center; }
.book-inner .small { color: var(--sign-muted); font-size: var(--step--1); }

/* Inner pages */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-head h1 { margin-bottom: .3em; }
.page-head .lede { margin-bottom: .5rem; }
.prose-wrap { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.prose-wrap > section, .prose-main > section { margin-bottom: 3rem; max-width: 46rem; }
.prose-main > section:last-child { margin-bottom: 0; }
.page-aside { display: none; }
@media (min-width: 64rem) {
  .has-aside { display: grid; grid-template-columns: minmax(0, 46rem) minmax(16rem, 21rem); justify-content: space-between; gap: 4rem; align-items: start; }
  .page-aside { display: grid; gap: 1.5rem; position: sticky; top: 2rem; max-height: calc(100vh - 4rem); overflow-y: auto; }
}
.toc { border-top: 3px solid var(--forest); padding-top: 1rem; }
.toc-title { font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding: .55rem 0; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--forest); text-decoration: underline; }
.sign-aside { padding: 1.75rem; }
.sign-aside .sign-title { font-size: 1.25rem; }
.sign-aside .with-icon a { font-weight: 700; font-variant-numeric: tabular-nums; }
.prose-wrap h2 { font-size: clamp(1.625rem, 1.4rem + 1vw, 2rem); }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.service-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.service-head h2 { margin: 0; }
.price-tag { margin: 0; font-weight: 800; font-size: 2.25rem; color: var(--forest); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price-tag span { font-size: 1.125rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.callout { background: var(--sage); border-radius: var(--radius-sm); padding: 1rem 1.25rem; font-weight: 600; }
.access { max-width: none; }
.access > div { display: grid; gap: .25rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
@media (min-width: 44rem) { .access > div { grid-template-columns: 15rem 1fr; } }
.access dt { display: flex; gap: .65rem; align-items: center; font-weight: 700; }
.access dt .icon { color: var(--forest); }
.access dd { margin: 0; }
.legal section { max-width: 44rem; }
.legal h2 { font-size: 1.5rem; margin-top: .5rem; }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--forest); color: var(--sign-text); padding: 4rem 0 6rem; font-size: 1.0625rem; }
.topo-footer { color: rgb(244 241 228 / .08); }
.footer-grid { position: relative; display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .footer-grid { grid-template-columns: 1.1fr 1.3fr .8fr; } }
.site-footer a { color: var(--sign-text); }
.site-footer a:hover { color: #fff; }
.site-footer p { color: var(--sign-muted); }
.site-footer strong { color: var(--sign-text); }
.footer-name { display: flex; align-items: center; gap: .75rem; font-family: "Overpass", sans-serif; font-weight: 800; font-size: 1.3125rem; }
.site-footer .footer-name { color: var(--sign-text); }
.footer-name .mark rect:first-child { fill: var(--forest-deep); }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: .6rem; }
.site-footer mark.todo { color: var(--ink); }

/* Sticky mobile booking bar */
.sticky-book { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; gap: .5rem; padding: .75rem max(.75rem, env(safe-area-inset-left)) calc(.75rem + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgb(20 36 29 / .3); }
.sticky-book .btn { flex: 1; min-height: 3.25rem; padding-inline: 1rem; }
.sticky-book .btn-call { flex: 0 0 auto; }
@media (min-width: 48rem) { .sticky-book { display: none; } }
/* Always visible on phones from first load; keep the page end clear of it. */
@media (max-width: 47.99rem) { body:has(.sticky-book) { padding-bottom: calc(4.875rem + env(safe-area-inset-bottom)); } }


/* =====================================================================
   Foothill Dusk: the drive up Foothill Boulevard toward the San Gabriels.
   One scene, full width, layered ridgelines that move with you.
   ===================================================================== */

/* Header sits in the night sky above the scene. */
.site-header { background: var(--night); border-bottom: 1px solid rgb(246 239 226 / .1); color: var(--sign-text); }
.brand { color: var(--sign-text); }
.brand-sub { color: var(--sign-muted); }
.nav a { color: var(--sign-text); border-radius: 8px; }
.nav a:hover { background: rgb(246 239 226 / .1); }
.nav a[aria-current="page"] { background: transparent; box-shadow: inset 0 -3px 0 var(--blaze); border-radius: 0; }
.header-call { background: var(--blaze); color: var(--ink); border-radius: 10px; }
.header-call:hover { background: #f6b877; color: var(--ink); }
.btn { border-radius: 10px; }
.btn-call { border-radius: 10px; }

/* ---------- the accessibility menu ---------- */
.a11y-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .5rem .9rem; border: 1.5px solid rgb(246 239 226 / .45); border-radius: 10px; background: transparent; color: var(--sign-text); font: 600 1rem/1 "Atkinson", system-ui, sans-serif; cursor: pointer; }
.a11y-btn:hover { background: rgb(246 239 226 / .1); }
.a11y-panel { position: fixed; inset: auto 1rem 1rem auto; top: 5.5rem; margin: 0; width: min(24rem, calc(100vw - 2rem)); max-height: calc(100vh - 7rem); overflow: auto; padding: 1.25rem 1.25rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: 0 24px 60px -20px rgb(20 32 40 / .55); }
.a11y-panel::backdrop { background: rgb(20 32 40 / .35); }
.a11y-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.a11y-title { margin: 0; font: 800 1.375rem/1.2 "Overpass", sans-serif; }
.a11y-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 10px; background: var(--sage); color: var(--ink); cursor: pointer; }
.a11y-controls { display: grid; gap: .5rem; }
.a11y-label { margin: 0 0 .4rem; font-weight: 700; }
.a11y-group { padding-bottom: .5rem; }
.a11y-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.a11y-seg button, .a11y-toggle, .a11y-reset { min-height: 3rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: 600 1.0625rem/1.2 "Atkinson", system-ui, sans-serif; cursor: pointer; }
.a11y-seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sign-text); }
.a11y-seg button:nth-child(2) { font-size: 1.1875rem; }
.a11y-seg button:nth-child(3) { font-size: 1.375rem; }
.a11y-toggle { display: flex; justify-content: space-between; align-items: center; padding: 0 1rem; text-align: left; }
.switch { position: relative; width: 2.75rem; height: 1.6rem; border-radius: 999px; background: var(--line); flex: none; transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s cubic-bezier(.16,1,.3,1); }
.a11y-toggle[aria-pressed="true"] { border-color: var(--forest); }
.a11y-toggle[aria-pressed="true"] .switch { background: var(--forest); }
.a11y-toggle[aria-pressed="true"] .switch::after { transform: translateX(1.15rem); }
.a11y-reset { background: var(--sage); border-color: var(--sage); margin-top: .25rem; }
.a11y-note { font-size: 1rem; color: var(--muted); margin: .9rem 0 0; }
html:not(.js) .a11y-controls { display: none; }
@media (max-width: 47.99rem) { .a11y-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .a11y-btn { padding: .5rem; } .a11y-panel { top: auto; bottom: 1rem; inset-inline: 1rem; width: auto; } }

/* Settings applied by the menu */
html.a11y-lg { font-size: 112.5%; }
html.a11y-xl { font-size: 125%; }
html.a11y-spacing body { letter-spacing: .04em; word-spacing: .14em; line-height: 1.85; }
html.a11y-spacing p, html.a11y-spacing li { margin-bottom: 1.4em; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: .12em !important; }
html.a11y-contrast { --ground: #fff; --white: #fff; --ink: #000; --muted: #000; --forest: #00309a; --line: #000; --sage: #fff; --sign-text: #fff; --sign-muted: #fff; --night: #000; --blaze: #ffd23f; }
html.a11y-contrast body { background: #fff; }
html.a11y-contrast .sky, html.a11y-contrast .night-sky { background: #000 !important; }
html.a11y-contrast .sun, html.a11y-contrast .stars, html.a11y-contrast .range { display: none; }
html.a11y-contrast .stage { padding-bottom: 3rem; }
html.a11y-contrast .sign, html.a11y-contrast .band-book, html.a11y-contrast .band-night, html.a11y-contrast .site-footer, html.a11y-contrast .dash, html.a11y-contrast .page-head, html.a11y-contrast .site-header { background: #000 !important; }
html.a11y-contrast .btn-book { background: #ffd23f; color: #000; box-shadow: inset 0 0 0 2px #000; }
html.a11y-contrast a:not(.btn) { text-decoration: underline; }

/* ---------- hero: the stage ---------- */
.hero { padding: 0; background: var(--night); overflow: visible; }
.stage { --ridge-h: clamp(11rem, 24vw, 21rem); --mx: 0; --my: 0; position: relative; overflow: hidden; isolation: isolate; padding: clamp(1.75rem, .5rem + 4vh, 4rem) 0 calc(var(--ridge-h) * .95); min-height: min(100svh - 5rem, 56rem); display: flex; flex-direction: column; justify-content: flex-start; }
.sky { position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(90% 55% at 62% 100%, var(--glow-1) 0%, var(--glow-2) 28%, rgb(61 68 102 / 0) 62%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 42%, var(--sky-3) 78%, #7b6680 100%); }
.stars { position: absolute; inset: 0 0 45% 0; opacity: .55;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 27% 9%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 44% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 6%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 73% 15%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 86% 28%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 93% 8%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 5% 36%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 35% 34%, #fff 50%, transparent 51%); }
.sun { position: absolute; left: 62%; bottom: calc(var(--ridge-h) * .62); width: clamp(5rem, 9vw, 9rem); aspect-ratio: 1; margin-left: calc(clamp(5rem, 9vw, 9rem) / -2); border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff3d6 0%, #ffd79a 45%, #f6a95e 100%);
  box-shadow: 0 0 60px 18px rgb(246 180 111 / .55), 0 0 180px 70px rgb(246 160 100 / .28);
  translate: calc(var(--mx) * -6px) calc(var(--my) * -4px); }
.range { position: absolute; inset: auto 0 0 0; height: var(--ridge-h); z-index: -1; pointer-events: none; }
.ridge { position: absolute; left: -4%; width: 108%; bottom: 0; height: 100%; }
.ridge-1 { fill: var(--ridge-1); translate: calc(var(--mx) * -8px) 0; }
.ridge-2 { fill: var(--ridge-2); translate: calc(var(--mx) * -14px) 0; }
.ridge-3 { fill: var(--ridge-3); translate: calc(var(--mx) * -22px) 0; }
.ridge-4 { fill: var(--ridge-4); translate: calc(var(--mx) * -32px) 0; }
.ridge-5 { fill: var(--ridge-5); translate: calc(var(--mx) * -44px) 0; }
.road { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; translate: calc(var(--mx) * -44px) 0; }
.road-bed { fill: #0d161d; }
.road-edge { stroke: rgb(246 239 226 / .35); stroke-width: 3; fill: none; vector-effect: non-scaling-stroke; }
.road-line { stroke: var(--blaze); stroke-width: 5; fill: none; stroke-dasharray: 26 34; vector-effect: non-scaling-stroke; }

/* Rear-view mirror with the placard hanging from it */
.mirror { position: absolute; top: 0; right: clamp(1.5rem, 9vw, 10rem); width: clamp(10rem, 16vw, 16rem); z-index: 1; display: flex; flex-direction: column; align-items: center; pointer-events: none; translate: calc(var(--mx) * 4px) 0; }
.mirror-arm { width: .8rem; height: clamp(1rem, 4vh, 3rem); background: linear-gradient(90deg, #0b1218, #2a3440, #0b1218); border-radius: 0 0 4px 4px; }
.mirror-glass { width: 100%; aspect-ratio: 4.2 / 1; border-radius: 1.2rem; background: linear-gradient(160deg, #3a4a60 0%, #1b2532 45%, #0e151c 100%); box-shadow: inset 0 0 0 .35rem #0b1117, inset 0 2px 0 .45rem rgb(255 255 255 / .06), 0 14px 30px -10px rgb(0 0 0 / .7); }
.tag { --swing: 0deg; margin-top: -.35rem; width: clamp(4.25rem, 6.4vw, 6.75rem); transform-origin: 50% 2%; rotate: var(--swing); pointer-events: auto; filter: drop-shadow(0 12px 14px rgb(0 0 0 / .45)); }
.placard { display: block; width: 100%; height: auto; }

.stage-copy { position: relative; z-index: 2; }
.stage-copy h1 { color: var(--sign-text); max-width: 19ch; font-size: clamp(2.25rem, 1.3rem + 2.7vw, 3.9rem); line-height: .98; letter-spacing: -.035em; margin-bottom: .45em; text-shadow: 0 2px 24px rgb(10 16 24 / .45); }
.stage-copy .hero-text { color: var(--sign-muted); max-width: 44rem; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }
.stage-copy .actions { margin-top: 1.75rem; margin-bottom: 0; }
@media (min-width: 62rem) { .stage-copy { padding-right: 22rem; } }
@media (max-width: 61.99rem) {
  .mirror { right: 1.25rem; width: 6.25rem; }
  .mirror-arm { height: .9rem; }
  .mirror-glass { border-radius: .8rem; box-shadow: inset 0 0 0 .25rem #0b1117, 0 10px 20px -8px rgb(0 0 0 / .7); }
  .tag { width: 3.1rem; margin-top: -.2rem; }
  .stage { --ridge-h: 13rem; min-height: 0; padding-top: 7.75rem; padding-bottom: calc(var(--ridge-h) + 1.5rem); }
  .sun { left: 30%; }
}

.motion-toggle { position: absolute; right: 1rem; bottom: 1rem; z-index: 3; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .45rem .85rem; border: 1px solid rgb(246 239 226 / .35); border-radius: 10px; background: rgb(13 22 29 / .7); color: var(--sign-text); font: 600 1rem/1 "Atkinson", system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(6px); }
.motion-toggle:hover { background: rgb(13 22 29 / .9); }

/* The dashboard: four facts, read at a glance */
.dash { background: var(--night); color: var(--sign-text); border-top: 1px solid rgb(246 239 226 / .08); }
.facts { list-style: none; margin-block: 0; padding-block: 1.5rem 1.75rem; display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); max-width: none; }
.facts li { margin: 0; display: flex; gap: .85rem; align-items: flex-start; }
.facts .icon { color: var(--blaze); width: 1.75rem; height: 1.75rem; margin-top: .1rem; }
.facts strong { display: block; font-family: "Overpass", sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--sign-text); }
.facts span { color: var(--sign-muted); font-size: 1.0625rem; line-height: 1.4; }

/* ---------- sections: fewer boxes, more air ---------- */
.band-route { background: var(--white); }
.blaze { border-radius: 8px; box-shadow: 0 0 0 5px var(--white); }
.route::before { border-top-color: var(--forest); }
.row-icon { background: transparent; padding: .3rem; color: var(--forest); width: 2.5rem; height: 2.5rem; }
.aside-note { background: var(--white); border-left: 0; border: 1px solid var(--line); }
.panel { background: transparent; border-top: 3px solid var(--ink); border-radius: 0; padding: 2rem 0 0; }
.roles { gap: 0; }
.role { border: 0; border-radius: 0; background: transparent; padding: 1.5rem 0; }
@media (min-width: 50rem) { .role-us { padding-right: 2.5rem; } .role-dmv { padding-left: 2.5rem; border-left: 1px solid var(--line); } }
.role-us, .role-dmv { background: transparent; }
.regions { gap: 0 2.5rem; }
.regions li { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 1.25rem 0; }
.band-drive .topo { opacity: .4; }
.plaque { background: var(--white); border: 0; border-top: 4px solid var(--ink); border-radius: 0; box-shadow: var(--shadow); }
.service { border-radius: var(--radius); }
.callout { border-radius: var(--radius-sm); background: var(--sage); }

/* The fit check */
.band-fit { background: var(--night); color: var(--sign-text); overflow: hidden; }
.fit { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 58rem) { .fit { grid-template-columns: 5fr 7fr; } }
.fit-intro h2 { color: var(--sign-text); font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); }
.fit-intro .lede { color: var(--sign-muted); }
.fit-glyph { width: 4.5rem; height: 4.5rem; color: var(--sign-text); background: var(--placard); border-radius: 12px; padding: .55rem; margin-bottom: 1.5rem; box-shadow: inset 0 0 0 3px rgb(255 255 255 / .35); }
.fit-card { background: var(--white); color: var(--ink); border-radius: 16px; padding: clamp(1.5rem, 1rem + 2.5vw, 2.75rem); box-shadow: 0 30px 70px -30px rgb(0 0 0 / .7); min-height: 18rem; }
.fit-progress { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 1.75rem; max-width: none; --done: 0; }
.fit-progress li { flex: 1; height: .4rem; margin: 0; border-radius: 4px; background: var(--line); }
.fit-progress li:nth-child(1) { background: var(--blaze); }
.fit-progress li:nth-child(2) { background: color-mix(in srgb, var(--blaze) calc(min(max(var(--done) - 0, 0), 1) * 100%), var(--line)); }
.fit-progress li:nth-child(3) { background: color-mix(in srgb, var(--blaze) calc(min(max(var(--done) - 1, 0), 1) * 100%), var(--line)); }
.fit-q, .fit-result h3 { font-family: "Overpass", sans-serif; font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 1.5rem; max-width: 26ch; outline: none; }
.fit-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.fit-btn { min-height: 3.5rem; min-width: 7.5rem; padding: .8rem 1.5rem; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); color: var(--ink); font: 700 1.25rem/1.2 "Atkinson", system-ui, sans-serif; cursor: pointer; transition: background-color .15s, color .15s, transform .15s; }
.fit-btn:hover { background: var(--ink); color: var(--sign-text); }
.fit-btn:active { transform: translateY(1px); }
.fit-again { border-color: var(--line); color: var(--muted); }
.fit-result p { color: var(--muted); }
.fit-step:not([hidden]) { animation: fit-in .45s cubic-bezier(.16,1,.3,1) both; }
@keyframes fit-in { from { opacity: 0; translate: 0 10px; } }

/* Fees: a night band with prices in low-sun orange */
.sign-fees { background: var(--night); border-radius: 18px; overflow: hidden; }
.sign-fees::before { border-color: rgb(246 239 226 / .14); }

/* Book band: the same range, after sunset */
.band-book { position: relative; background: var(--night); padding-bottom: calc(var(--band) + clamp(6rem, 14vw, 12rem)); }
.night-sky { position: absolute; inset: 0; background: radial-gradient(70% 45% at 50% 100%, rgb(217 138 124 / .45), transparent 70%), linear-gradient(180deg, #0b121b, #1a2540 75%, #34385a); }
.night-sky .stars { inset: 0 0 30% 0; opacity: .8; }
.range-book { height: clamp(7rem, 16vw, 13rem); z-index: 0; }
.range-book .ridge-1 { fill: #4d4a6c; } .range-book .ridge-2 { fill: #3a3e5c; } .range-book .ridge-3 { fill: #2a3149; } .range-book .ridge-4 { fill: #1c2638; } .range-book .ridge-5 { fill: #142028; }
.band-book .book-inner { z-index: 1; }

/* Inner page heads: a slice of the range */
.page-head { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 60%, var(--sky-3)); border-bottom: 0; color: var(--sign-text); padding-bottom: calc(clamp(2rem, 1.5rem + 2vw, 3rem) + clamp(4rem, 9vw, 7rem)); }
.page-head h1 { color: var(--sign-text); font-size: clamp(2.5rem, 1.6rem + 4vw, 4.75rem); letter-spacing: -.035em; }
.page-head .lede, .page-head .small { color: var(--sign-muted); }
.page-head a { color: var(--sign-text); }
.page-head .wrap { position: relative; z-index: 1; }
.range-head { height: clamp(4rem, 9vw, 7rem); z-index: 0; }
.range-head .ridge-5 { fill: var(--ground); }
.range-head .ridge-4 { fill: #28344b; } .range-head .ridge-3 { fill: #3a4566; } .range-head .ridge-2 { fill: #55597d; } .range-head .ridge-1 { fill: #6e6b8e; }

/* Footer joins the night */
.site-footer { background: var(--night); }
.footer-name .mark rect:first-child { fill: #1d2c3a; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .25s cubic-bezier(.4,0,1,1) both; }
  ::view-transition-new(root) { animation: vt-in .55s cubic-bezier(.16,1,.3,1) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
  .site-header { view-transition-name: header; }

  /* Opening shot: the sun comes up over the ridges, the range settles, then the words. */
  .sun { animation: sunrise 2.6s cubic-bezier(.16,1,.3,1) both; }
  @keyframes sunrise { from { transform: translateY(70%) scale(.92); opacity: .2; } }
  .ridge path { animation: settle 1.8s cubic-bezier(.16,1,.3,1) both; }
  .range:not(.range-head):not(.range-book) .ridge-1 path { animation-delay: .1s; }
  .range:not(.range-head):not(.range-book) .ridge-2 path { animation-delay: .2s; }
  .range:not(.range-head):not(.range-book) .ridge-3 path { animation-delay: .3s; }
  .range:not(.range-head):not(.range-book) .ridge-4 path { animation-delay: .4s; }
  @keyframes settle { from { transform: translateY(12%); } }
  .stage-copy > * { animation: rise 1s cubic-bezier(.16,1,.3,1) both; }
  .stage-copy > :nth-child(1) { animation-name: rise-h1; animation-duration: .9s; }
  .stage-copy > :nth-child(2) { animation-delay: .15s; }
  .stage-copy > :nth-child(3) { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  /* The headline is the page's largest paint: it moves in but is visible from the first frame. */
  @keyframes rise-h1 { from { transform: translateY(14px); } }
  .mirror { animation: drop 1.2s .2s cubic-bezier(.16,1,.3,1) both; }
  @keyframes drop { from { transform: translateY(-110%); } }

  /* The road moves; the placard sways (pause button stops both). */
  .road-line { animation: lane 1.1s linear infinite; }
  @keyframes lane { to { stroke-dashoffset: -60; } }
  html:not(.js) .tag { animation: sway 6s ease-in-out infinite; }
  @keyframes sway { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
  html.paused .road-line, html.paused .tag { animation: none; }

  /* Scroll: the range sinks at different speeds, the sun sets. */
  @supports (animation-timeline: scroll()) {
    .stage .sky { animation: dim linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes dim { to { filter: brightness(.55) saturate(.8); } }
    .stage .range .ridge-1 { animation: sink1 linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .stage .range .ridge-2 { animation: sink2 linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .stage .range .ridge-3 { animation: sink3 linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes sink1 { to { transform: translateY(38%); } }
    @keyframes sink2 { to { transform: translateY(24%); } }
    @keyframes sink3 { to { transform: translateY(12%); } }
    .stage .sun { animation: sunrise 2.6s cubic-bezier(.16,1,.3,1) both, sunset linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 90vh; }
    @keyframes sunset { to { bottom: 0; } }
    .range-book .ridge path { animation: none; }
    .range-book .ridge-2, .range-book .ridge-3, .range-book .ridge-4 { animation: rise-range linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .range-book .ridge-2 { --lift: 45%; } .range-book .ridge-3 { --lift: 30%; } .range-book .ridge-4 { --lift: 16%; }
    @keyframes rise-range { from { transform: translateY(var(--lift)); } }
  }

  /* Things arrive as you reach them (only when the script is running). */
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
  .reveal-ready [data-reveal].in { opacity: 1; transform: none; }
  .reveal-ready .band-route[data-reveal] { opacity: 1; transform: none; }
  .reveal-ready .band-route .route li { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
  .reveal-ready .band-route.in .route li { opacity: 1; transform: none; }
  .reveal-ready .band-route.in .route li:nth-child(2) { transition-delay: .15s; }
  .reveal-ready .band-route.in .route li:nth-child(3) { transition-delay: .3s; }
  .reveal-ready .band-route.in .route li:nth-child(4) { transition-delay: .45s; }
  .reveal-ready .sign-fees .fee-list dd { clip-path: inset(0 0 100% 0); transform: translateY(.4em); transition: clip-path .8s .3s cubic-bezier(.16,1,.3,1), transform .8s .3s cubic-bezier(.16,1,.3,1); }
  .reveal-ready .sign-fees.in .fee-list dd { clip-path: inset(0 0 0 0); transform: none; }
  .reveal-ready .regions li { transition: opacity .7s, transform .7s; }

  /* FAQ answers open smoothly */
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .35s cubic-bezier(.16,1,.3,1), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}
html.paused *, html.paused *::before, html.paused *::after { animation-play-state: paused !important; }
html.paused .reveal-ready [data-reveal], .paused [data-reveal] { opacity: 1 !important; transform: none !important; }
.motion-toggle svg.is-play path { d: path("M7 4l13 8-13 8z"); }

/* How it works runs along a road; Who the doctor sees hangs a full-size placard */
/* The steps sit on a fine track; a glowing marker travels it, filling the line as each step plays. */
.route::before { border: 0 !important; opacity: 1; background: linear-gradient(90deg, #dfe3ea, #c9d0db); border-radius: 2px; animation: none !important; clip-path: none !important; }
.route::after { content: ""; position: absolute; pointer-events: none; z-index: 0; }
@media (min-width: 58rem) {
  .route::before { height: 2px; top: calc(1.5rem - 1px); left: 1.5rem; right: 1.5rem; }
  .route::after { left: 1.5rem; top: calc(1.5rem - 9px); height: 18px; width: calc(100% - 3rem);
    background: radial-gradient(circle, #fff 0 3px, var(--blaze) 3.5px 6px, rgb(242 166 90 / .35) 7px, transparent 10px) right center / 18px 18px no-repeat,
                linear-gradient(90deg, rgb(242 166 90 / .1), var(--blaze)) left center / calc(100% - 9px) 3px no-repeat; }
}
@media (max-width: 57.99rem) {
  .route::before { width: 2px; left: calc(1.5rem - 1px); top: 1.5rem; bottom: 1.5rem; background: linear-gradient(180deg, #dfe3ea, #c9d0db); }
  .route::after { left: calc(1.5rem - 9px); top: 1.5rem; width: 18px; height: calc(100% - 3rem);
    background: radial-gradient(circle, #fff 0 3px, var(--blaze) 3.5px 6px, rgb(242 166 90 / .35) 7px, transparent 10px) center bottom / 18px 18px no-repeat,
                linear-gradient(180deg, rgb(242 166 90 / .1), var(--blaze)) center top / 3px calc(100% - 9px) no-repeat; }
}
.blaze { box-shadow: 0 0 0 5px var(--white), 0 6px 16px -6px rgb(242 166 90 / .8); }
.big-placard { display: none; }
@media (min-width: 58rem) {
  .big-placard { display: block; width: 11rem; margin: 2.5rem 0 0 2rem; filter: drop-shadow(0 22px 22px rgb(20 32 40 / .28)); }
  .big-placard-swing { transform-origin: 50% 2%; rotate: -4deg; }
}
@media (prefers-reduced-motion: no-preference) {
  @media (min-width: 58rem) {
    html.reveal-ready .route::after { animation: travel-x 4.2s cubic-bezier(.45,0,.4,1) both paused; }
    html.reveal-ready .band-route.in .route::after { animation-play-state: running; }
    @keyframes travel-x { from { width: 18px; } }
  }
  @media (max-width: 57.99rem) {
    @supports (animation-timeline: view()) {
      .route::after { animation: travel-y linear both; animation-timeline: view(); animation-range: entry 30% cover 70%; }
      @keyframes travel-y { from { height: 18px; } }
    }
  }
  .reveal-ready .route li.in .blaze { animation: arrive .7s calc(var(--d) + .1s) cubic-bezier(.3,1.6,.5,1) both; }
  @keyframes arrive { 0% { transform: scale(.6); box-shadow: 0 0 0 5px var(--white), 0 0 0 0 rgb(242 166 90 / .7); } 60% { transform: scale(1.08); box-shadow: 0 0 0 5px var(--white), 0 0 0 14px rgb(242 166 90 / 0); } 100% { transform: none; } }
  @supports (animation-timeline: view()) {
    .big-placard-swing { animation: sway linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes sway { from { rotate: 7deg; } 50% { rotate: -5deg; } to { rotate: 3deg; } }
  }
  .reveal-ready .big-placard .isa path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s .3s cubic-bezier(.65,0,.35,1); }
  .reveal-ready .in .big-placard .isa path { stroke-dashoffset: 0; }
}

/* ---------- Hero: the driver's seat ---------- */
.stage { background: #0a0f14; }
.scene-wrap { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.scene { display: block; width: 100%; height: 100%; }
.scene .look { translate: calc(var(--mx) * -16px) calc(var(--my) * -8px); }
.scene .far, .scene .near { transform-box: view-box; transform-origin: 880px 300px; }
.scene .mullion { stroke: #6a5a52; stroke-width: 3; }
.scene .win { opacity: .9; }
.scene .sc-num { font: 800 21px/1 "Overpass", sans-serif; fill: #f4ead8; letter-spacing: .06em; }
.scene .paint-blue { fill: #2f68b8; opacity: .9; }
.scene .gauges { opacity: .14; }
.scene .dome { opacity: 1; }
.scene .hand { opacity: 0; }
.scene .scene-tag { transform-box: view-box; transform-origin: 1000px 88px; rotate: var(--swing, 0deg); filter: drop-shadow(0 14px 12px rgb(0 0 0 / .5)); pointer-events: auto; }
.scene .placard-hook { stroke: #c9ced6; }
@media (min-width: 62rem) {
  /* The copy sits on the dark driver's-door side; the windshield fills the rest. */
  .scene-wrap { left: 36%; -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 6%, rgb(0 0 0 / .3) 18%, #000 34%); mask-image: linear-gradient(90deg, transparent 0, transparent 6%, rgb(0 0 0 / .3) 18%, #000 34%); }
  .stage { padding: clamp(3rem, 1rem + 6vh, 5.5rem) 0 clamp(5rem, 12vh, 8rem); min-height: min(100svh - 5rem, 52rem); justify-content: center;
    background: radial-gradient(120% 90% at 0% 100%, #18222c 0%, #0a0f14 60%); }
  .stage-copy { padding-right: 0; }
  .stage-copy h1, .stage-copy .hero-text { max-width: min(34rem, 38vw); }
  .stage-copy .hero-text { font-size: clamp(1.1875rem, 1rem + .4vw, 1.375rem); }
  .stage-copy h1 { font-size: clamp(2.5rem, 1.2rem + 2.3vw, 3.75rem); }
}
@media (max-width: 61.99rem) {
  .stage { display: block; padding: 0 0 4.5rem; min-height: 0; }
  .scene-wrap { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3; margin-bottom: 1.5rem; }
  .stage .stage-copy { padding-top: 0; }
}
@media (min-width: 40rem) and (max-width: 61.99rem) { .scene-wrap { aspect-ratio: 16 / 10; } }
html.a11y-contrast .scene-wrap { display: none; }
html.a11y-contrast .stage { background: #000; padding-top: 2.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .scene .near { animation: approach 5s cubic-bezier(.35,.1,.3,1) both; }
  .scene .far { animation: approach-far 5s cubic-bezier(.35,.1,.3,1) both; }
  .scene .wheel { transform-box: view-box; transform-origin: 435px 930px; animation: steer 5s ease-in-out both; }
  .scene .cabin { animation: rumble .32s ease-in-out 0s 13 alternate; }
  .scene .hang { animation: hang 1.4s 4.7s cubic-bezier(.3,.7,.2,1) both; }
  .scene .hand { animation: hand-in .01s both, hand-out .9s 6.3s cubic-bezier(.5,0,.75,0) forwards; }
  .scene .grip-l { transform-box: view-box; transform-origin: 435px 930px; animation: steer 5s ease-in-out both; }
  .scene .arm-l { transform-box: view-box; transform-origin: 218px 805px; animation: steer-arm 5s ease-in-out both; }
  .scene .grip-r { animation: grip-away 3.4s 4.1s ease-in-out both; }
  .scene .gauges { animation: engine-off 1s 7s ease both; }
  .scene .dome { animation: dome-on 1.4s 7.8s ease both; }
  /* Roll along the lot, turn right into the blue space, brake, settle. */
  @keyframes approach {
    0% { transform: translate(860px, 40px) rotate(-17deg) scale(.42); }
    32% { transform: translate(600px, 30px) rotate(-15deg) scale(.5); }
    64% { transform: translate(150px, 14px) rotate(-4deg) scale(.72); }
    91% { transform: translate(0, -9px) scale(1.016); }
    100% { transform: none; }
  }
  @keyframes approach-far {
    0% { transform: translate(400px, 10px) rotate(-8deg) scale(.86); }
    32% { transform: translate(320px, 8px) rotate(-7deg) scale(.87); }
    64% { transform: translate(80px, 4px) rotate(-2deg) scale(.92); }
    91% { transform: translateY(-3px); }
    100% { transform: none; }
  }
  @keyframes steer { 0%, 26% { rotate: 0deg; } 40% { rotate: 80deg; } 62% { rotate: 70deg; } 82%, 100% { rotate: 0deg; } }
  @keyframes steer-arm { 0%, 26% { rotate: 0deg; } 40% { rotate: -80deg; } 62% { rotate: -70deg; } 82%, 100% { rotate: 0deg; } }
  @keyframes grip-away { 0% { opacity: 1; translate: 0 0; } 12%, 84% { opacity: 0; translate: 160px 260px; } 100% { opacity: 1; translate: 0 0; } }
  @keyframes rumble { from { translate: 0 0; } to { translate: 0 1.6px; } }
  @keyframes hang { 0% { translate: 400px 760px; } 72% { translate: 0 -18px; } 100% { translate: 0 0; } }
  @keyframes hand-in { from, to { opacity: 1; } }
  @keyframes hand-out { 0% { opacity: 1; translate: 0 0; } 100% { opacity: 1; translate: 260px 680px; } }
  @keyframes engine-off { from { opacity: 1; } to { opacity: .14; } }
  @keyframes dome-on { from { opacity: 0; } to { opacity: 1; } }
}
html.paused .scene, html.paused .scene * { animation: none !important; }

/* ---------- How it works: each step acts itself out ---------- */
.step-art { display: block; width: 100%; max-width: 13rem; height: auto; margin: 0 0 1rem; overflow: visible; }
@media (min-width: 58rem) { .step-art { margin-top: -.5rem; } }
.step-art .pick, .step-art .badge, .step-art .send, .step-art .talk, .step-art .pin, .step-art .field, .step-art .tap { transform-box: fill-box; transform-origin: center; }
.step-art .field { transform-origin: left center; }
.step-art .tap { opacity: 0; }
.step-art .draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.step-art .car { transform-box: view-box; offset-path: path("M30 120C60 116 66 96 92 96S118 82 120 62 136 40 150 40"); offset-rotate: auto; offset-distance: 86%; }
@media (min-width: 58rem) { .route li:nth-child(1) { --d: 0s; } .route li:nth-child(2) { --d: 1.2s; } .route li:nth-child(3) { --d: 2.4s; } .route li:nth-child(4) { --d: 3.8s; } }
.route li { --d: 0s; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .band-route .step-art * { animation-play-state: paused; }
  .reveal-ready .route li.in .step-art * { animation-play-state: running; }
  .reveal-ready .step-art .tap { animation: tap .9s calc(var(--d) + .5s) ease-out both; }
  .reveal-ready .step-art .pick { animation: pop .5s calc(var(--d) + .7s) cubic-bezier(.3,1.6,.5,1) both; }
  .reveal-ready .step-art .draw { animation: draw .6s calc(var(--d) + 1.05s) ease-out both; }
  .reveal-ready .art-form .f1 { animation: grow .45s calc(var(--d) + .2s) ease-out both; }
  .reveal-ready .art-form .f2 { animation: grow .45s calc(var(--d) + .55s) ease-out both; }
  .reveal-ready .art-form .f3 { animation: grow .45s calc(var(--d) + .9s) ease-out both; }
  .reveal-ready .art-form .sign { animation: draw 1s calc(var(--d) + 1.3s) ease-in-out both; }
  .reveal-ready .art-form .send { animation: pop .45s calc(var(--d) + 2.3s) cubic-bezier(.3,1.6,.5,1) both; }
  .reveal-ready .art-drive .car { animation: drive 1.8s calc(var(--d) + .2s) cubic-bezier(.45,.05,.3,1) both; }
  .reveal-ready .art-drive .pin { animation: pin .7s calc(var(--d) + 1.6s) cubic-bezier(.3,1.5,.5,1) both; }
  .reveal-ready .art-answer .badge { animation: pop .5s calc(var(--d) + .2s) cubic-bezier(.3,1.6,.5,1) both; }
  .reveal-ready .art-answer .draw { animation-delay: calc(var(--d) + .6s); }
  .reveal-ready .art-answer .talk { animation: talk .6s calc(var(--d) + 1.1s) cubic-bezier(.2,1.3,.4,1) both; }
  @keyframes tap { from { opacity: 1; transform: scale(.35); } to { opacity: 0; transform: scale(1.7); } }
  @keyframes pop { from { transform: scale(0); } }
  @keyframes draw { from { stroke-dashoffset: 1; } }
  @keyframes grow { from { transform: scaleX(0); } }
  @keyframes drive { from { offset-distance: 0%; } }
  @keyframes pin { from { transform: translateY(-34px); opacity: 0; } }
  @keyframes talk { from { transform: translate(-14px, 10px) scale(.4); opacity: 0; } }
}

.emergency { border-left: 4px solid var(--blaze); padding: .5rem 0 .5rem 1rem; }
.emergency strong { color: var(--sign-text); font-size: 1.125rem; }

/* ---------- Scroll choreography across the page ---------- */
main section h2::after { content: ""; display: block; width: 3.25rem; height: 4px; margin-top: .55rem; border-radius: 3px;
  background: linear-gradient(90deg, var(--blaze), rgb(242 166 90 / .25)); transform-origin: left center; }
.hero h2::after, .fit-step h2::after, .sign-fees h2::after { display: none; }
@media (prefers-reduced-motion: no-preference) {
  main section h2::after { transition: transform .9s .25s cubic-bezier(.16,1,.3,1); }
  .stagger { transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 90ms + 80ms); }
  .stagger .row-icon, .stagger > .icon, .facts .icon { transition: transform .6s cubic-bezier(.3,1.6,.5,1), opacity .4s ease; transition-delay: calc(var(--i, 0) * 90ms + 260ms); }
  .fee-list dd { transition: clip-path .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 120ms + 300ms); }
  html.reveal-ready:not(.paused) main section:not(.in) h2::after { transform: scaleX(0); }
  html.reveal-ready:not(.paused) section:not(.in) .stagger, html.reveal-ready:not(.paused) .dash:not(.in) .stagger { opacity: 0; transform: translateY(18px); }
  html.reveal-ready:not(.paused) section:not(.in) .stagger .row-icon, html.reveal-ready:not(.paused) section:not(.in) .stagger > .icon, html.reveal-ready:not(.paused) .dash:not(.in) .icon { opacity: 0; transform: scale(.3) rotate(-20deg); }
  html.reveal-ready:not(.paused) section:not(.in) .regions .row-icon { transform: translateX(-56px); }
  html.reveal-ready:not(.paused) section:not(.in) .fee-list dd { clip-path: inset(0 0 100% 0); transform: translateY(45%); }
  .night-sky .stars { animation: twinkle 3.6s ease-in-out infinite alternate; }
  @keyframes twinkle { from { opacity: .45; } to { opacity: .95; } }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fee-list dd, [data-count] { font-variant-numeric: tabular-nums; }
/* Visit page: parking to the front door */
.route-map { margin: 1.25rem 0 2rem; }
.route-map svg { display: block; width: 100%; height: auto; max-width: 40rem; border-radius: 16px; }
.route-map figcaption { margin-top: .6rem; color: var(--muted); font-size: 1.0625rem; }
.route-map .rm-label { font: 700 15px/1 "Atkinson", system-ui, sans-serif; }
.route-map .rm-light { fill: #f6f1e6; }
.route-map .rm-walker { transform-box: view-box; offset-path: path("M318 210C290 200 300 150 336 120L336 98"); offset-distance: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .draw-icon * { stroke-dasharray: 1; transition: stroke-dashoffset 1s cubic-bezier(.65,0,.35,1); transition-delay: calc(var(--i, 0) * 90ms + 300ms); }
  html.reveal-ready:not(.paused) section:not(.in) .draw-icon * { stroke-dashoffset: 1; }
  html.reveal-ready .route-map .rm-car { animation: rm-park 1.6s cubic-bezier(.3,.6,.25,1) both paused; }
  html.reveal-ready .route-map .rm-path { animation: rm-draw 1.2s 1.6s ease-in-out both paused; }
  html.reveal-ready .route-map .rm-walker { animation: rm-walk 1.6s 2s cubic-bezier(.45,0,.4,1) both paused; }
  html.reveal-ready .route-map .rm-tag { animation: rm-tag .6s 3.4s cubic-bezier(.3,1.5,.5,1) both paused; }
  html.reveal-ready section.in .route-map * { animation-play-state: running; }
  @keyframes rm-park { from { transform: translateY(150px); } }
  @keyframes rm-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes rm-walk { from { offset-distance: 0%; } }
  @keyframes rm-tag { from { opacity: 0; transform: translateY(8px); } }
}
.route-map .rm-path { stroke-dashoffset: 0; }
.route-map .rm-tag { transform-box: fill-box; }

/* Illustrations beside section headings (wide screens only; decorative). */
.side-art { display: none; margin: 2.25rem 0 0; }
.side-art svg { display: block; width: 100%; max-width: 22rem; height: auto; }
.sa-card { fill: var(--white); }
.band-white .sa-card { fill: var(--ground); }
@media (min-width: 58rem) { .side-art { display: block; } }
.side-art .sa-hand { transform-box: fill-box; transform-origin: 50% 100%; }
.side-art .sa-tape { transform-box: fill-box; transform-origin: left center; scale: .82 1; }
.side-art .sa-pen { offset-path: path("M68 78H178M68 98H166M68 118H180M68 138H150M68 158H170"); offset-rotate: 0deg; offset-anchor: 0 0; offset-distance: 100%; }
.side-art .sa-say, .side-art .sa-q, .side-art .sa-a { transform-box: fill-box; transform-origin: 15% 100%; }
.side-art .sa-dots { opacity: 0; }
.side-art .sa-dots circle { transform-box: fill-box; transform-origin: center; }
.side-art .sa-rings path { transform-box: fill-box; }
.side-art .sa-r1, .side-art .sa-r2 { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  html.reveal-ready .side-exam .sa-fp { animation: sa-step .35s cubic-bezier(.3,1.4,.5,1) both paused; }
  html.reveal-ready .side-exam .sa-fp:nth-child(1) { animation-delay: 0.50s; }
  html.reveal-ready .side-exam .sa-fp:nth-child(2) { animation-delay: 0.82s; }
  html.reveal-ready .side-exam .sa-fp:nth-child(3) { animation-delay: 1.14s; }
  html.reveal-ready .side-exam .sa-fp:nth-child(4) { animation-delay: 1.46s; }
  html.reveal-ready .side-exam .sa-fp:nth-child(5) { animation-delay: 1.78s; }
  html.reveal-ready .side-exam .sa-fp:nth-child(6) { animation-delay: 2.10s; }
  html.reveal-ready .side-exam .sa-fp:nth-child(7) { animation-delay: 2.42s; }
  html.reveal-ready .side-exam .sa-fp:nth-child(8) { animation-delay: 2.74s; }
  html.reveal-ready .side-exam .sa-tape { animation: sa-tape 2.8s .5s cubic-bezier(.4,0,.3,1) both paused; }
  html.reveal-ready .side-exam .sa-hand { animation: sa-sweep 3s .4s cubic-bezier(.4,0,.3,1) both paused; }
  html.reveal-ready .side-find .sa-ln:nth-of-type(1) { animation: sa-draw 0.52s 0.50s linear both paused; }
  html.reveal-ready .side-find .sa-ln:nth-of-type(2) { animation: sa-draw 0.47s 1.02s linear both paused; }
  html.reveal-ready .side-find .sa-ln:nth-of-type(3) { animation: sa-draw 0.53s 1.49s linear both paused; }
  html.reveal-ready .side-find .sa-ln:nth-of-type(4) { animation: sa-draw 0.39s 2.02s linear both paused; }
  html.reveal-ready .side-find .sa-ln:nth-of-type(5) { animation: sa-draw 0.49s 2.41s linear both paused; }
  html.reveal-ready .side-find .sa-pen { animation: sa-pen 2.4s .5s linear both paused; }
  html.reveal-ready .side-find .sa-say { animation: sa-pop .55s 3.10s cubic-bezier(.3,1.5,.5,1) both paused; }
  html.reveal-ready .side-call .sa-phone { animation: sa-buzz .5s .3s ease-in-out 3 both paused; }
  html.reveal-ready .side-call .sa-r1 { animation: sa-ring .5s .3s ease-out 3 both paused; }
  html.reveal-ready .side-call .sa-r2 { animation: sa-ring .5s .4s ease-out 3 both paused; }
  html.reveal-ready .side-call .sa-q { animation: sa-pop .5s 1.5s cubic-bezier(.3,1.5,.5,1) both paused; }
  html.reveal-ready .side-call .sa-a { animation: sa-pop .5s 2.2s cubic-bezier(.3,1.5,.5,1) both paused; }
  html.reveal-ready .side-call .sa-dots { animation: sa-typing 1.5s 2.4s step-end both paused; }
  html.reveal-ready .side-call .sa-dots circle { animation: sa-bob .5s 2.4s ease-in-out 3 both paused; }
  html.reveal-ready .side-call .sa-dots circle:nth-child(2) { animation-delay: 2.52s; }
  html.reveal-ready .side-call .sa-dots circle:nth-child(3) { animation-delay: 2.64s; }
  html.reveal-ready .side-call .sa-al { animation: sa-draw .6s 3.9s ease-out both paused; }
  html.reveal-ready .side-call .sa-al + .sa-al { animation-delay: 4.2s; }
  html.reveal-ready section.in .side-art * { animation-play-state: running !important; }
  @keyframes sa-step { from { opacity: 0; scale: .4; } }
  @keyframes sa-tape { from { scale: 0 1; } }
  @keyframes sa-sweep { from { rotate: -360deg; } }
  @keyframes sa-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes sa-pen { from { offset-distance: 0%; } }
  @keyframes sa-pop { from { opacity: 0; scale: .5; } }
  @keyframes sa-buzz { 25% { rotate: -6deg; } 75% { rotate: 6deg; } }
  @keyframes sa-ring { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes sa-typing { from { opacity: 1; } to { opacity: 0; } }
  @keyframes sa-bob { 50% { translate: 0 -6px; } }
}
.side-art .sa-ln, .side-art .sa-al { stroke-dasharray: 1; stroke-dashoffset: 0; }
.side-call .sa-phone { transform-box: fill-box; transform-origin: 50% 90%; }
html.paused .side-art *, html.paused .route-map * { animation: none !important; }

/* Explainer video */
.watch > h2, .watch > .lede { text-align: center; margin-inline: auto; max-width: 46rem; }
.explainer { margin: 2rem auto 0; max-width: 60rem; }
.explainer figcaption { text-align: center; }
.transcript summary { justify-content: center; }
.explainer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--night); box-shadow: var(--shadow); }
.explainer figcaption { margin-top: .75rem; color: var(--muted); font-size: var(--step--1); }
.transcript { margin-top: 1rem; }
.transcript summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.transcript p { max-width: var(--measure); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header nav, .sticky-book, .topo, .actions, .preview-bar { display: none !important; }
  body { background: #fff; }
  .sign, .band-book, .site-footer { background: #fff; color: #000; box-shadow: none; }
}

/* Doctor portrait */
.portrait { margin: 0 0 1.5rem; max-width: 20rem; }
.portrait img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
/* Copyright line */
.footer-legal { position: relative; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); font-size: var(--step--1); }
main section .watch > h2::after { margin-inline: auto; transform-origin: center; }
.footer-legal { max-width: none; }

/* ---------- Header portrait ---------- */
.brand-photo { flex: none; display: block; width: 3rem; height: 3rem; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgb(246 239 226 / .9), 0 0 0 4px rgb(246 239 226 / .12); background: #2a3440; }
.brand-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 40rem) { .brand-photo { width: 2.5rem; height: 2.5rem; } }

/* ---------- Hero, desktop: headline row over a wide framed scene ----------
   Headline left, lede and actions right, then the scene as a wide panel
   across the full column. Nothing sits on top of the animation. */
@media (min-width: 62rem) {
  .stage { --col: min(100vw - 2.5rem, 76rem); --pad-b: clamp(2rem, 1rem + 3vh, 3rem);
    display: flex; flex-direction: column; justify-content: flex-start; min-height: 0;
    padding: clamp(2rem, .5rem + 4vh, 3.5rem) 0 var(--pad-b);
    background: linear-gradient(180deg, #0d141b 0%, #0a0f14 100%); }
  .stage-copy { order: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2.5rem, 4.5vw, 4.5rem); align-items: start; }
  .stage-copy h1 { grid-column: 1; grid-row: 1 / span 2; align-self: start; max-width: 15ch; margin: 0;
    font-size: clamp(2.5rem, 1.1rem + 2.4vw, 3.625rem); line-height: 1.03; letter-spacing: -.035em; text-shadow: none; text-wrap: balance; }
  .stage-copy .hero-text { grid-column: 2; grid-row: 1; max-width: 34rem; margin: 0;
    font-size: clamp(1.0625rem, .95rem + .3vw, 1.25rem); line-height: 1.6; text-wrap: pretty; }
  .stage-copy .actions { grid-column: 2; grid-row: 2; margin: 1.75rem 0 0; flex-wrap: wrap; gap: .75rem; }
  .stage-copy .actions .btn-large { font-size: 1.125rem; padding-inline: 1.25rem; min-height: 3.5rem; }
  .scene-wrap { order: 2; position: relative; inset: auto; z-index: 0; width: var(--col); margin: clamp(1.5rem, .5rem + 2.5vh, 2.5rem) auto 0;
    --ph: min(var(--col) / 2.2, max(19rem, 100svh - 29rem)); height: var(--ph); -webkit-mask-image: none; mask-image: none; border-radius: 20px;
    box-shadow: 0 0 0 1px rgb(246 239 226 / .1), 0 40px 70px -40px rgb(0 0 0 / .9); }
  .motion-toggle { right: calc((100vw - var(--col)) / 2 + 1rem); bottom: calc(var(--pad-b) + 1rem); }
  /* Show the whole 16:9 scene and crop only a little off the top, so the
     placard and the blue space both stay in view on shorter laptop screens. */
  .scene-wrap .scene { position: absolute; left: 0; width: 100%; height: auto; aspect-ratio: 16 / 9; top: max((var(--ph) - var(--col) * .5625) * .3, -3.25rem); }
}
/* Shorter laptop screens (most 13-15 inch): tighten the copy so the scene keeps room. */
@media (min-width: 62rem) and (max-height: 56rem) {
  .stage { padding-top: clamp(1.25rem, 3vh, 2rem); }
  .stage-copy h1 { font-size: clamp(2.25rem, 1rem + 2.2vw, 3.25rem); }
  .stage-copy .hero-text { font-size: 1.0625rem; line-height: 1.55; }
  .stage-copy .actions { margin-top: 1.25rem; }
  .stage-copy .actions .btn-large { min-height: 3.25rem; }
  .scene-wrap { margin-top: 1.25rem; --ph: min(var(--col) / 2.2, max(19rem, 100svh - 24rem)); }
}

/* ---------- Mobile buttons: full-width, one line, sticky bar in the header's colours ---------- */
@media (max-width: 47.99rem) {
  .stage-copy .actions { display: grid; grid-template-columns: 1fr; gap: .75rem; }
  .stage-copy .actions .btn { width: 100%; min-height: 3.5rem; font-size: 1.1875rem; padding-inline: 1rem; white-space: nowrap; }
  .sticky-book { background: rgb(13 22 29 / .97); border-top: 1px solid rgb(246 239 226 / .14); box-shadow: 0 -10px 28px -14px rgb(0 0 0 / .7); gap: .625rem; }
  .sticky-book .btn { min-height: 3.375rem; font-size: 1.125rem; white-space: nowrap; }
  .sticky-book .btn-call { background: transparent; color: var(--sign-text); box-shadow: inset 0 0 0 2px rgb(246 239 226 / .85); padding-inline: 1.25rem; }
  .sticky-book .btn-call:active { background: rgb(255 255 255 / .16); color: #fff; }

}

/* ---------- Hero: review proof line ---------- */
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin: 1.25rem 0 0; font-size: 1rem; color: var(--sign-muted); }
.hero-proof a { display: inline-flex; align-items: center; gap: .5rem; color: var(--sign-text); text-decoration: none; min-height: 2.75rem; border-radius: 8px; }
.hero-proof a:hover span:not(.rating-stars) { text-decoration: underline; text-underline-offset: 3px; }
.hero-proof a .icon-xs { opacity: .6; }
.hero-proof strong { font-weight: 800; }
.hero-proof .rating-stars { display: inline-flex; gap: 1px; }
.hero-proof .rating-stars svg { fill: var(--blaze); }
.hero-proof .logo-badge { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 6px; background: #fff; }
.hero-proof .logo-badge svg { width: 1rem; height: 1rem; }
html.a11y-links .hero-proof a span:not(.rating-stars) { text-decoration: underline; }
@media (min-width: 62rem) { .stage-copy .hero-proof { grid-column: 2; grid-row: 3; margin-top: 1rem; } }
@media (min-width: 62rem) and (max-height: 56rem) { .stage-copy .hero-proof { margin-top: .5rem; } }
/* Very small phones: let long button labels wrap instead of overflowing. */
@media (max-width: 23rem) {
  .stage-copy .actions .btn { white-space: normal; font-size: 1.0625rem; }
  .sticky-book .btn { font-size: 1rem; padding-inline: .75rem; }
  .sticky-book .btn-call { padding-inline: .9rem; }
}
@media (max-width: 47.99rem) {
  .brand-sub { display: block; font-size: .8125rem; line-height: 1.3; margin-top: .15rem; }
  .brand-name { font-size: 1.125rem; }
  .hero-proof { gap: .25rem 1rem; font-size: .9375rem; }
  .hero-proof .rating-stars svg { width: 15px; height: 15px; }
}
@media (max-width: 47.99rem) { .header-row > .brand { flex: 1 1 0; min-width: 0; } }
/* Review links as clear branded chips */
.hero-proof { gap: .625rem; }
.hero-proof a { padding: .375rem .875rem .375rem .375rem; border: 1px solid rgb(246 239 226 / .22); border-radius: 999px; background: rgb(255 255 255 / .04); gap: .55rem; }
.hero-proof a:hover { background: rgb(255 255 255 / .09); border-color: rgb(246 239 226 / .4); }
.hero-proof .logo-badge { width: 2rem; height: 2rem; border-radius: 50%; box-shadow: none; }
.hero-proof .logo-badge svg { width: 1.3rem; height: 1.3rem; }
/* Desktop: review chips fill the space under the headline, level with the buttons. */
@media (min-width: 62rem) {
  .stage-copy h1 { grid-row: 1; }
  .stage-copy .hero-proof, .stage-copy .hero-proof { grid-column: 1; grid-row: 2; align-self: end; margin: 1.75rem 0 0; font-size: 1.0625rem; }
  .hero-proof a { min-height: 3.5rem; padding-right: 1.1rem; }
  .hero-proof .logo-badge { width: 2.5rem; height: 2.5rem; }
  .hero-proof .logo-badge svg { width: 1.6rem; height: 1.6rem; }
}
@media (min-width: 62rem) and (max-height: 56rem) { .stage-copy .hero-proof { margin-top: 1.25rem; } .hero-proof a { min-height: 3.25rem; } }
/* "How it works" and the video share a white background: don't stack two full band paddings. */
.band-route:has(+ .band-white) { padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.band-route + .band-white { padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
/* License card: size to its content instead of stretching to the photo column's height. */
.split > .plaque { align-self: start; }
@media (min-width: 62rem) { .split > .plaque { position: sticky; top: 1.5rem; } }
/* Two plain bands in a row share a background: don't stack two full paddings. */
.band[aria-labelledby="novisit-h"]:has(+ [aria-labelledby="covers-h"]) { padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.band[aria-labelledby="novisit-h"] + [aria-labelledby="covers-h"] { padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
/* Phones and tablets: pause button in the lower-right corner of the animation (scene is 4:3, or 16:10 from 40rem). */
@media (max-width: 61.99rem) { .motion-toggle { bottom: auto; right: 1rem; top: calc(100vw * .75 - 2.25rem - .75rem); right: .75rem; min-height: 2.25rem; padding: .3rem .7rem; gap: .35rem; font-size: .875rem; border-radius: 8px; } .motion-toggle .icon { width: .85rem; height: .85rem; } }
@media (min-width: 40rem) and (max-width: 61.99rem) { .motion-toggle { top: calc(100vw * .625 - 2.25rem - .75rem); } }
/* Phones and tablets: icon-only pause button, so it doesn't cover the dashboard. The label stays for screen readers. */
@media (max-width: 61.99rem) {
  .motion-toggle { width: 2.25rem; min-height: 2.25rem; height: 2.25rem; padding: 0; justify-content: center; border-radius: 50%; right: .625rem; top: calc(100vw * .75 - 2.25rem - .625rem); }
  .motion-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .motion-toggle .icon { width: .9rem; height: .9rem; }
}
@media (min-width: 40rem) and (max-width: 61.99rem) { .motion-toggle { top: calc(100vw * .625 - 2.25rem - .625rem); } }

/* High-contrast mode hides the animation, so its pause button has nothing to control. */
html.a11y-contrast .motion-toggle { display: none; }
/* Larger text sizes: let the phone booking bar wrap instead of pushing Call off-screen. */
@media (max-width: 47.99rem) {
  html.a11y-lg .sticky-book .btn, html.a11y-xl .sticky-book .btn { white-space: normal; min-width: 0; line-height: 1.2; }
  html.a11y-lg body:has(.sticky-book), html.a11y-xl body:has(.sticky-book) { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
}

/* ---------- What to bring: a small drawing beside each item ---------- */
.bring-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .5rem; max-width: 44rem; }
.bring-list li { display: flex; align-items: center; gap: 1.125rem; margin: 0; padding: .625rem 0; }
.bring-list li + li { border-top: 1px solid var(--line); padding-top: 1.125rem; }
.bring-art { flex: none; width: 4.25rem; height: 4.25rem; border-radius: var(--radius); background: var(--sage); display: grid; place-items: center; }
.bring-art svg { width: 3.25rem; height: 3.25rem; overflow: visible; fill: none; stroke: var(--forest); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bring-art .fill { fill: var(--blaze); stroke: var(--forest); stroke-width: 1.6; }
.bring-art .sheet { fill: var(--white); stroke: var(--forest); stroke-width: 1.8; }
.bring-art .bone { stroke: var(--blaze-deep); stroke-width: 2; }
.bring-art .ripple { fill: none; stroke: var(--blaze-deep); stroke-width: 1.6; opacity: 0; }
.bring-art .ground { stroke: var(--line); }
.bring-art .pop, .bring-art .drop, .bring-art .slide, .bring-art .tilt, .bring-art .ripple { transform-box: fill-box; transform-origin: center; }
.bring-art .tilt { transform-origin: 50% 100%; }
html.a11y-contrast .bring-art { background: #fff; box-shadow: inset 0 0 0 2px #000; }

/* The drawings sketch themselves in once, one after another, when the section scrolls into view. */
@media (prefers-reduced-motion: no-preference) {
  html.reveal-ready:not(.paused) .bring-art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--bd, 0s) cubic-bezier(.65,0,.35,1); }
  html.reveal-ready:not(.paused) .in .bring-art .draw { stroke-dashoffset: 0; }
  html.reveal-ready:not(.paused) .bring-art .pop,
  html.reveal-ready:not(.paused) .bring-art .drop,
  html.reveal-ready:not(.paused) .bring-art .slide,
  html.reveal-ready:not(.paused) .bring-art .tilt { animation-duration: .9s; animation-delay: calc(var(--bd, 0s) + .7s); animation-fill-mode: both; animation-play-state: paused; }
  html.reveal-ready:not(.paused) .bring-art .pop { animation-name: bring-pop; animation-timing-function: cubic-bezier(.3,1.6,.5,1); }
  html.reveal-ready:not(.paused) .bring-art .drop { animation-name: bring-drop; animation-timing-function: ease-out; }
  html.reveal-ready:not(.paused) .bring-art .slide { animation-name: bring-slide; animation-timing-function: cubic-bezier(.16,1,.3,1); animation-duration: 1.1s; animation-delay: calc(var(--bd, 0s) + .5s); }
  html.reveal-ready:not(.paused) .bring-art .tilt { animation-name: bring-tap; animation-timing-function: ease-in-out; animation-duration: 1.2s; }
  html.reveal-ready:not(.paused) .bring-art .ripple { animation: bring-ripple .9s calc(var(--bd, 0s) + 1.35s) ease-out both paused; }
  html.reveal-ready:not(.paused) .in .bring-art * { animation-play-state: running; }
  .bring-list li:nth-child(2) { --bd: .22s; }
  .bring-list li:nth-child(3) { --bd: .44s; }
  .bring-list li:nth-child(4) { --bd: .66s; }
}
@keyframes bring-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes bring-drop { 0% { opacity: 0; transform: translate(-4px, -18px) rotate(-40deg); } 60% { opacity: 1; transform: translate(0, 2px) rotate(6deg); } 80% { transform: translate(0, -1px) rotate(-2deg); } 100% { opacity: 1; transform: none; } }
@keyframes bring-slide { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bring-tap { 0% { opacity: 0; transform: rotate(-14deg); } 30% { opacity: 1; } 55% { transform: rotate(4deg); } 75% { transform: rotate(-1.5deg); } 100% { opacity: 1; transform: none; } }
@keyframes bring-ripple { from { opacity: .9; transform: scale(.2, .1); } to { opacity: 0; transform: scale(1.4, .5); } }
.bring-art svg { width: 3.5rem; height: 3.5rem; }
.bring-art .seam { stroke: var(--forest); stroke-width: 1.4; }
.bring-art .cane { stroke-width: 3; }
