/* ==========================================================================
   Clinton Complete Auto Care: shared design system
   Palette comes from the brand card: espresso ink, ivory paper and the
   blue-violet holographic foil of "And Small Engine Repair".
   ========================================================================== */

@font-face {
  font-family: "Inter var";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@view-transition { navigation: auto; }

:root {
  /* Surfaces */
  --ivory: #faf8f5;
  --paper: #ffffff;
  --stone-50: #f6f3ef;
  --stone-100: #f0ebe5;
  --stone-200: #e6dfd7;
  --stone-300: #d6cdc3;

  /* Ink (espresso from the card) */
  --ink: #2b2522;
  --ink-2: #463e3a;
  --ink-3: #6a615b;
  --ink-4: #766d67;

  /* Foil (the holographic tagline) */
  --foil-periwinkle: #dfe5fd;
  --foil-lilac: #ece5fb;
  --foil-sky: #e0effd;
  --accent: #4d56bf;
  --accent-2: #7a5cc4;
  --accent-soft: #eef0fd;
  --accent-ring: rgba(77, 86, 191, .35);
  --foil: linear-gradient(115deg, #dde4ff 0%, #efe6ff 24%, #dff1ff 48%, #f3eaff 72%, #dde5ff 100%);
  --foil-ink: linear-gradient(100deg, #4b54c4 0%, #7b5bc6 30%, #3b7fc2 55%, #7b5bc6 80%, #4b54c4 100%);

  /* Signals (dashboard-light semantics, used sparingly) */
  --ok: #2a7047;
  --ok-soft: #e5f3ea;
  --warn: #9a5d12;
  --warn-soft: #fbf0de;
  --warn-light: #e3a13b;
  --stop: #b03a2e;
  --stop-soft: #fbe9e6;

  /* Lines & depth */
  --line: #e7e1da;
  --line-strong: #d8d0c7;
  --shadow-1: 0 1px 2px rgba(43, 37, 34, .06), 0 1px 1px rgba(43, 37, 34, .04);
  --shadow-2: 0 12px 32px -14px rgba(43, 37, 34, .22), 0 2px 6px rgba(43, 37, 34, .05);
  --shadow-3: 0 34px 70px -26px rgba(43, 37, 34, .38), 0 8px 18px -8px rgba(43, 37, 34, .12);

  /* Shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --pill: 999px;

  /* Type: Apple system stack first, Inter as the cross-platform stand-in */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter var", "Inter", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter var", "Inter", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur-1: .18s;
  --dur-2: .32s;
  --dur-3: .6s;

  /* Layout */
  --gutter: 16px;
  --container: 1200px;
  --header-h: 60px;
  --tabbar-h: 0px;
  /* Notch / Dynamic Island / home indicator (viewport-fit=cover). 0 where the browser chrome already covers them. */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  /* Where content stops being covered by the sticky header: use for sticky offsets and scroll margins. */
  --header-offset: calc(var(--header-h) + var(--safe-top));
  /* The container's side padding: the gutter, widened in landscape to clear the notch / Dynamic Island.
     Full-bleed strips inside a container use it to reach the screen edge (margin-inline: calc(var(--edge-left) * -1) ...). */
  --edge-left: max(var(--gutter), var(--safe-left));
  --edge-right: max(var(--gutter), var(--safe-right));
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1080px) { :root { --gutter: 32px; --header-h: 68px; } }
@media (max-width: 1079.98px) { :root { --tabbar-h: calc(62px + var(--safe-bottom)); } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 16px);
  interpolate-size: allow-keywords;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.52;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  padding-bottom: var(--tabbar-h);
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
/* No double-tap-to-zoom on controls, so quick taps (steppers, chips, tabs) are never swallowed. */
a, button, input, select, textarea, label, summary, [role="tab"] { touch-action: manipulation; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }
[hidden] { display: none !important; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 9px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--foil-periwinkle); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: max(12px, var(--safe-left)); top: -60px; z-index: 200;
  background: var(--ink); color: var(--ivory);
  padding: 10px 16px; border-radius: var(--pill); font-weight: 600; text-decoration: none;
  transition: top var(--dur-1) var(--ease);
}
.skip-link:focus { top: calc(12px + var(--safe-top)); }

/* ---------- Type scale ---------- */
.display, h1 { font-size: clamp(2.35rem, 1.3rem + 4.4vw, 4.75rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
h2, .h2 { font-size: clamp(1.9rem, 1.25rem + 2.4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
h3, .h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
h4, .h4 { font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 650; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); line-height: 1.5; color: var(--ink-3); letter-spacing: -0.016em; }
.small, small { font-size: .875rem; }
.muted { color: var(--ink-3); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.foil-text {
  background: var(--foil-ink);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: foil-drift 9s linear infinite;
}
@keyframes foil-drift { to { background-position: -220% 0; } }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.center { text-align: center; }
.prose { max-width: 68ch; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose a, .text-link { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); }
@media (hover: hover) { .prose a:hover, .text-link:hover { text-decoration-color: currentColor; } }

/* ---------- Layout ---------- */
.container {
  width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto;
  /* In landscape the gutter grows to clear the notch / Dynamic Island; backgrounds still run edge to edge. */
  padding-left: var(--edge-left);
  padding-right: var(--edge-right);
}
.container-narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: clamp(64px, 5rem + 3vw, 128px); position: relative; }
.section-sm { padding-block: clamp(44px, 3rem + 2vw, 80px); }
.section-tint { background: var(--stone-50); }
.section-paper { background: var(--paper); }
.section-foil { background: linear-gradient(180deg, var(--ivory), #f3f2fc 40%, var(--ivory)); }
.section + .section-tint, .section-tint + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 2rem + 1.5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .lead { margin-top: 16px; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 2rem + 1.5vw, 56px); }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row:has(> h2 + .link-arrow) { align-items: baseline; }
.split > .section-head { margin-bottom: 0; }

.grid { display: grid; gap: clamp(14px, .8rem + .6vw, 24px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 959.98px) { .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 959.98px) {
  /* a spanning odd service card reads as a horizontal row, not an empty wide card */
  .grid-3 > .service-card:last-child:nth-child(odd) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 20px; row-gap: 4px; align-items: center; }
  .grid-3 > .service-card:last-child:nth-child(odd) > .icon-tile { grid-row: 1 / span 2; margin: 0; }
  .grid-3 > .service-card:last-child:nth-child(odd) > h3 { grid-column: 2; align-self: end; }
  .grid-3 > .service-card:last-child:nth-child(odd) > p { grid-column: 2; align-self: start; margin: 0; }
  .grid-3 > .service-card:last-child:nth-child(odd) > .link-arrow { grid-column: 3; grid-row: 1 / span 2; margin: 0; padding: 0; }
}
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.split { display: grid; gap: clamp(32px, 2rem + 3vw, 88px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-wide-left { grid-template-columns: 1.15fr .85fr; }
  .split-wide-right { grid-template-columns: .85fr 1.15fr; }
}
.stack > * + * { margin-top: var(--stack, 16px); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster, 12px); align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--pill); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn::after { /* headlight sheen */
  content: ""; position: absolute; inset: -2px auto -2px -60%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
@media (hover: hover) { .btn:hover::after { animation: btn-sheen .9s var(--ease) forwards; } }
@keyframes btn-sheen { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); } }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn-primary { --btn-bg: var(--ink); --btn-fg: var(--ivory); --btn-bd: var(--ink); }
@media (hover: hover) { .btn-primary:hover { --btn-bg: #3a322e; } }
.btn-primary::after { background: linear-gradient(100deg, transparent, rgba(223, 229, 253, .35), transparent); }
.btn-secondary { --btn-bg: var(--paper); --btn-bd: var(--line-strong); }
@media (hover: hover) { .btn-secondary:hover { --btn-bd: var(--ink-4); } }
.btn-foil { --btn-bg: var(--accent-soft); --btn-fg: var(--accent); --btn-bd: color-mix(in srgb, var(--accent) 20%, transparent); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; }
@media (hover: hover) { .btn-ghost:hover { --btn-bg: var(--stone-100); box-shadow: none; } }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--pill); border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  transition: background-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
@media (hover: hover) { .icon-btn:hover { background: var(--stone-100); } }
.icon-btn:active { transform: scale(.94); }
.link-arrow {
  display: inline-flex; align-items: center; gap: .35em;
  font-weight: 600; color: var(--accent); text-decoration: none;
}
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform var(--dur-2) var(--ease); }
@media (hover: hover) { .link-arrow:hover .icon { transform: translateX(4px); } }

/* ---------- Chips, badges, status ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .45em;
  padding: 7px 14px; border-radius: var(--pill);
  background: var(--paper); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 550; color: var(--ink-2); line-height: 1.2;
}
.chip .icon { width: 1.05em; height: 1.05em; color: var(--accent); }
.chip-foil { background: var(--foil); border-color: rgba(77, 86, 191, .14); color: var(--ink-2); }
.badge {
  display: inline-flex; align-items: center; gap: .35em;
  padding: 4px 10px; border-radius: var(--pill);
  font-size: .78rem; font-weight: 650; letter-spacing: .02em;
  background: var(--accent-soft); color: var(--accent);
}
.open-status {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
}
.open-status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-4); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink-4) 20%, transparent);
}
.open-status.is-open::before { background: #34a064; box-shadow: 0 0 0 3px rgba(52, 160, 100, .2); animation: status-pulse 2.4s var(--ease) infinite; }
.open-status.is-closed::before { background: var(--warn-light); box-shadow: 0 0 0 3px rgba(227, 161, 59, .22); }
@keyframes status-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(52, 160, 100, .22); } 50% { box-shadow: 0 0 0 7px rgba(52, 160, 100, 0); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: var(--safe-top); /* the frosted bar runs up under the status bar when the page does */
  view-transition-name: site-header;
  background: rgba(250, 248, 245, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(250, 248, 245, .9); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; flex: none; }
.brand-badge {
  display: grid; place-items: center;
  height: 42px; padding: 5px 11px; border-radius: 11px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 1px 2px rgba(43, 37, 34, .2);
  transition: transform var(--dur-2) var(--spring);
}
@media (hover: hover) { .brand:hover .brand-badge { transform: rotate(-2deg) scale(1.03); } }
.brand-badge img { height: 31px; width: auto; }
.brand-text { display: none; line-height: 1.15; }
.brand-line1 { display: block; font-weight: 650; font-size: .92rem; letter-spacing: -0.015em; }
.brand-line2 { display: block; font-size: .78rem; color: var(--ink-3); }
@media (min-width: 360px) { .brand-text { display: block; } }
@media (max-width: 419.98px) { .brand-line1 { font-size: .86rem; } .brand-line2 { font-size: .72rem; } .brand { gap: 10px; } }

.primary-nav { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-link {
  position: relative; display: inline-flex; align-items: center;
  height: 38px; padding: 0 13px; border-radius: var(--pill);
  font-size: .94rem; font-weight: 550; color: var(--ink-2); text-decoration: none;
  transition: color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.nav-link { white-space: nowrap; }
@media (hover: hover) { .nav-link:hover { color: var(--ink); background: rgba(43, 37, 34, .045); } }
@media (min-width: 1080px) and (max-width: 1199.98px) { .nav-link { padding: 0 10px; } .has-menu .nav-link { padding-right: 4px; } }
.nav-link.is-active { color: var(--ink); }
.nav-pill {
  position: absolute; inset: 0; z-index: -1; border-radius: var(--pill);
  background: var(--paper); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line);
  view-transition-name: nav-pill;
}
.has-menu .nav-link { padding-right: 6px; }
.nav-caret {
  display: inline-grid; place-items: center; width: 26px; height: 30px; margin-left: -2px;
  border: 0; background: none; color: var(--ink-3); border-radius: 8px;
}
.nav-caret .icon { width: 15px; height: 15px; transition: transform var(--dur-2) var(--ease); }
.has-menu.is-open .nav-caret .icon { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; width: min(780px, 92vw);
  translate: -38% 0;
  padding: 18px; border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.985); transform-origin: top center;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
}
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.has-menu.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mega-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  text-decoration: none; transition: background-color var(--dur-1) var(--ease);
}
.mega-item:focus-visible { background: var(--stone-50); }
@media (hover: hover) { .mega-item:hover { background: var(--stone-50); } }
@media (hover: hover) { .mega-item:hover .icon-tile { background: var(--foil); transform: rotate(-6deg); } }
.mega-text { display: grid; line-height: 1.25; }
.mega-text strong { font-size: .95rem; font-weight: 620; }
.mega-text small { font-size: .8rem; color: var(--ink-3); }
.mega-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding: 14px 12px 4px; border-top: 1px solid var(--line); }
.mega-note { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-3); }
.mega-note .icon { color: var(--accent); }
.mega-actions { display: flex; align-items: center; gap: 16px; flex: none; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-call {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px; border-radius: var(--pill);
  font-weight: 600; font-size: .94rem; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); background: var(--paper);
  transition: background-color var(--dur-1) var(--ease);
}
@media (hover: hover) { .header-call:hover { background: var(--stone-100); } }
.header-call .icon { width: 18px; height: 18px; color: var(--accent); }
.header-call-num, .header-book { display: none; }
@media (min-width: 640px) { .header-call-num { display: inline; } }
@media (min-width: 1080px) {
  .primary-nav { display: block; }
  .brand { margin-right: 0; }
  .primary-nav { margin-inline: auto; }
  .header-book { display: inline-flex; }
  .header-call-num { display: none; }
  .header-call { width: 40px; padding: 0; justify-content: center; }
}
@media (min-width: 1280px) {
  .header-call { width: auto; padding: 0 14px; }
  .header-call-num { display: inline; }
}

/* Scroll progress: a little car driving along the lane under the header */
.road-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.road-progress-lane {
  position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #3b7fc2);
  opacity: .75;
}
.road-progress-car {
  position: absolute; bottom: 1px; left: 0; width: 22px; height: 10px; color: var(--ink);
  transform: translateX(calc(var(--progress, 0) * (100vw - 22px)));
  opacity: 0; transition: opacity var(--dur-2) var(--ease);
}
.site-header.is-scrolled .road-progress-car { opacity: 1; }

/* ---------- Mobile tab bar + sheet ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  view-transition-name: tabbar;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: var(--tabbar-h);
  /* Above the home indicator, and clear of the notch / Dynamic Island in landscape */
  padding: 6px max(8px, var(--safe-right)) var(--safe-bottom) max(8px, var(--safe-left));
  background: rgba(250, 248, 245, .86);
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border-top: 1px solid var(--line);
}
@media (min-width: 1080px) { .tabbar { display: none; } }
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 54px; border: 0; background: none; padding: 0;
  color: var(--ink-3); font-size: .7rem; font-weight: 600; letter-spacing: 0; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.tab .icon { width: 24px; height: 24px; stroke-width: 1.7; }
.tab:active { transform: scale(.92); }
.tab.is-active { color: var(--accent); }
.tab.is-active .icon { stroke-width: 2.1; }
.tab-book-dot {
  display: grid; place-items: center; width: 46px; height: 46px; margin-top: -22px;
  border-radius: 16px; background: var(--ink); color: var(--ivory);
  box-shadow: 0 10px 22px -8px rgba(43, 37, 34, .55), 0 0 0 4px var(--ivory);
  transition: transform var(--dur-2) var(--spring);
}
.tab-book:active .tab-book-dot { transform: scale(.9) rotate(-4deg); }
.tab-book.is-active { color: var(--ink); }
.tab-book.is-active .tab-book-dot { background: var(--accent); }

.sheet {
  width: 100%; max-width: 560px; max-height: min(88vh, 820px);
  max-height: min(88dvh, 820px); /* the visible viewport, so Safari's toolbar never hides the top of the sheet */
  margin: auto auto 0; padding: 0; border: 0; border-radius: 26px 26px 0 0;
  background: var(--ivory); color: var(--ink);
  box-shadow: 0 -20px 60px -20px rgba(43, 37, 34, .4);
  overflow: hidden;
}
.sheet::backdrop { background: rgba(43, 37, 34, .32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-up .42s var(--ease) both; }
.sheet[open]::backdrop { animation: fade-in .3s var(--ease) both; }
.sheet.is-closing { animation: sheet-down .26s var(--ease-in-out) both; }
.sheet.is-closing::backdrop { animation: fade-out .26s var(--ease) both; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.sheet-panel { max-height: inherit; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px calc(24px + var(--safe-bottom)); }
.sheet-grabber { width: 38px; height: 5px; border-radius: 3px; background: var(--stone-300); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font-size: 1.5rem; }
.sheet-status { margin-top: 4px; }
.sheet-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px;
  border-radius: var(--r); background: var(--paper); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--ink);
}
.quick-action .icon { width: 22px; height: 22px; color: var(--accent); }
.sheet-label { margin: 22px 0 10px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }
.sheet-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sheet-grid a {
  display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: .95rem; font-weight: 600; text-decoration: none;
}
.sheet-grid a .icon { color: var(--accent); }
.sheet-grid a.is-active { border-color: var(--accent); background: var(--accent-soft); }
.sheet-list { list-style: none; padding: 0; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sheet-list li + li { border-top: 1px solid var(--line); }
.sheet-list a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; text-decoration: none; font-weight: 550; }
.sheet-list a .icon { color: var(--accent); }
.sheet-list a .chev { margin-left: auto; color: var(--ink-4); width: 16px; height: 16px; }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
main { view-transition-name: page; }
::view-transition-old(page) { animation: vt-out .2s var(--ease-in-out) both; }
::view-transition-new(page) { animation: vt-in .38s var(--ease) both; }
::view-transition-group(nav-pill) { animation-duration: .42s; animation-timing-function: var(--spring); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Cards & tiles ---------- */
.card {
  position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 1rem + 1vw, 30px);
  box-shadow: var(--shadow-1);
}
.card-soft { background: var(--stone-50); box-shadow: none; }
.card-link { text-decoration: none; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease); }
@media (hover: hover) { .card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-strong); } }
.card h3 + p, .card h4 + p { margin-top: 8px; color: var(--ink-3); }
.icon-tile {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--accent-soft); color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(77, 86, 191, .08);
  transition: transform var(--dur-2) var(--spring), background var(--dur-2) var(--ease);
}
.icon-tile .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.icon-tile-sm { width: 38px; height: 38px; border-radius: 11px; }
.icon-tile-sm .icon { width: 20px; height: 20px; }
.icon-tile-lg { width: 64px; height: 64px; border-radius: 19px; }
.icon-tile-lg .icon { width: 32px; height: 32px; }
.icon-tile-ink { background: var(--ink); color: var(--ivory); box-shadow: none; }

.service-card { display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.service-card .icon-tile { margin-bottom: 4px; }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--ink-3); font-size: .98rem; }
.service-card .link-arrow { margin-top: auto; padding-top: 6px; font-size: .95rem; }
@media (hover: hover) { .service-card:hover .icon-tile { transform: rotate(-8deg) scale(1.06); background: var(--foil); } }
@media (hover: hover) { .service-card:hover .icon use { animation: icon-wiggle .6s var(--ease); } }
@keyframes icon-wiggle { 30% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }
.service-card .icon use { transform-origin: 50% 50%; transform-box: fill-box; }
@media (max-width: 639.98px) {
  .service-card { display: grid; grid-template-columns: auto 1fr auto; column-gap: 14px; row-gap: 2px; align-items: center; padding: 16px; border-radius: var(--r); }
  .service-card .icon-tile { grid-row: 1 / span 2; margin: 0; width: 46px; height: 46px; border-radius: 13px; }
  .service-card h3 { grid-column: 2; font-size: 1.04rem; }
  .service-card p { grid-column: 2; font-size: .9375rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .service-card .link-arrow { grid-column: 3; grid-row: 1 / span 2; margin: 0; padding: 0; font-size: 0; gap: 0; color: var(--ink-4); }
  .service-card .link-arrow .icon { width: 20px; height: 20px; }
}

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature h3, .feature h4 { margin-bottom: 4px; }
.feature p { color: var(--ink-3); }

.checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; text-wrap: pretty; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d56bf' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.signal-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.signal-list li {
  text-wrap: pretty;
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
}
.signal-list li::before {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%;
  background: var(--warn-light); box-shadow: 0 0 0 4px rgba(227, 161, 59, .18), 0 0 12px rgba(227, 161, 59, .6);
}
.signal-list li.is-critical::before { background: #d9534a; box-shadow: 0 0 0 4px rgba(217, 83, 74, .16), 0 0 12px rgba(217, 83, 74, .5); }

.callout {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--r);
  background: var(--accent-soft); border: 1px solid rgba(77, 86, 191, .14); color: var(--ink-2);
}
.callout .icon { color: var(--accent); margin-top: 2px; }
.callout-warn { background: var(--warn-soft); border-color: rgba(154, 93, 18, .16); }
.callout-warn .icon { color: var(--warn); }

/* ---------- Brand business card (3D, holographic foil) ---------- */
.biz-card-stage { perspective: 1400px; display: grid; place-items: center; }
.biz-card {
  --rx: 5deg; --ry: -9deg; --mx: 62%; --my: 28%;
  position: relative; width: min(100%, 540px); aspect-ratio: 1.75;
  border-radius: clamp(14px, 2.4vw, 22px);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .07), transparent 55%),
    linear-gradient(160deg, #362e2a 0%, #2b2522 45%, #221d1a 100%);
  box-shadow: var(--shadow-3), inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
  overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center;
  padding: 6.5% 7.5% 6%;
}
.biz-card.is-tilting { transition: transform .12s linear; }
.biz-card::before { /* paper grain */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.biz-card::after { /* moving light glare */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(60% 70% at var(--mx) var(--my), rgba(255, 255, 255, .16), transparent 60%);
  mix-blend-mode: screen;
}
.biz-card-logo { width: 100%; height: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }
.biz-card-foil {
  font-family: var(--font-display); font-weight: 500; letter-spacing: .01em;
  font-size: clamp(.8rem, .55rem + 1.2vw, 1.28rem);
  background: linear-gradient(100deg, #c9d6ff 0%, #f1e6ff 18%, #bfe6ff 36%, #e9dcff 54%, #c8d4ff 72%, #f4ecff 90%);
  background-size: 260% 100%;
  background-position: calc(var(--mx) * 1.6) 50%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: foil-drift 10s linear infinite;
  margin-top: 2%;
}
.biz-card-sheen {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(223, 229, 253, .16) 45%, rgba(236, 229, 251, .22) 50%, transparent 62%);
  background-size: 250% 100%; background-position: 130% 0;
  animation: card-sheen 6.5s var(--ease-in-out) 1.2s infinite;
}
@keyframes card-sheen { 0% { background-position: 130% 0; } 35%, 100% { background-position: -40% 0; } }
.biz-card-shadow {
  width: 78%; height: 26px; margin-top: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(43, 37, 34, .24), transparent);
  filter: blur(6px);
}
.mini-card {
  position: relative; display: grid; justify-items: center; gap: 6px;
  width: 220px; padding: 18px 20px 14px; border-radius: 14px;
  background: linear-gradient(160deg, #362e2a, #2b2522 55%, #221d1a); box-shadow: var(--shadow-2);
  text-decoration: none; transition: transform var(--dur-2) var(--spring);
}
@media (hover: hover) { .mini-card:hover { transform: rotate(-2deg) translateY(-2px); } }
.mini-card img { width: 100%; }
.mini-card-foil {
  font-size: .72rem; font-weight: 500; letter-spacing: .02em;
  background: linear-gradient(100deg, #c9d6ff, #f1e6ff, #bfe6ff, #e9dcff, #c9d6ff); background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: foil-drift 10s linear infinite;
}

/* ---------- Heroes ---------- */
.hero { position: relative; overflow: clip; padding-block: clamp(40px, 2rem + 4vw, 112px) clamp(56px, 3rem + 4vw, 120px); }
.hero-bg, .page-hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before, .page-hero-bg::before { /* blueprint dots */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(43, 37, 34, .09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero-bg::after, .page-hero-bg::after { /* foil glow */
  content: ""; position: absolute; width: 70vmax; height: 70vmax; right: -22vmax; top: -30vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(221, 228, 255, .9), rgba(239, 230, 255, .5) 45%, transparent 72%);
  filter: blur(10px);
  animation: glow-float 16s var(--ease-in-out) infinite alternate;
}
@keyframes glow-float { to { transform: translate(-6vmax, 5vmax) scale(1.08); } }
.hero-grid { display: grid; gap: clamp(40px, 2rem + 3vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.02fr .98fr; } }
.hero h1 { margin-top: 18px; }
.hero .lead { margin-top: 20px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
@media (max-width: 479.98px) { .hero-actions .btn { flex: 1 1 100%; } }

.hero-in > * { animation: rise-in .8s var(--ease) both; }
.hero-in > *:nth-child(2) { animation-delay: .06s; }
.hero-in > *:nth-child(3) { animation-delay: .12s; }
.hero-in > *:nth-child(4) { animation-delay: .18s; }
.hero-in > *:nth-child(5) { animation-delay: .24s; }
.hero-in > *:nth-child(6) { animation-delay: .3s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
.card-deal { animation: card-deal 1.1s var(--ease) .15s both; }
@keyframes card-deal {
  from { opacity: 0; transform: translateY(60px) rotateX(38deg) rotateZ(-7deg) scale(.92); }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; }
}

.page-hero { position: relative; overflow: clip; padding-block: clamp(28px, 1.5rem + 3vw, 72px) clamp(44px, 2rem + 4vw, 96px); }
.page-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.1fr .9fr; } }
.page-hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); margin-top: 14px; }
.page-hero .lead { margin-top: 18px; max-width: 36em; }
.page-hero .hero-actions { margin-top: 26px; }
.page-hero + .section, .page-hero + .section-sm { padding-top: clamp(32px, 1.5rem + 2.5vw, 72px); }
.hero + .section { padding-top: clamp(40px, 2rem + 2.5vw, 80px); }
.page-hero-art { position: relative; display: grid; place-items: center; min-height: 240px; }
.page-hero-art svg { width: min(100%, 440px); height: auto; overflow: visible; }
@media (max-width: 959.98px) { .page-hero-art { width: 100%; max-width: 540px; margin-inline: auto; } }

.breadcrumb { font-size: .88rem; color: var(--ink-3); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid var(--ink-4); border-right: 1.5px solid var(--ink-4); transform: rotate(45deg); margin-right: 4px; }
.breadcrumb a { text-decoration: none; color: var(--ink-3); }
@media (hover: hover) { .breadcrumb a:hover { color: var(--ink); } }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 550; }

/* Illustration conventions for page-hero art (line art with foil fills) */
.art-ink { stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-thin { stroke-width: 1.4; }
.art-foil { fill: url(#art-foil); }
.art-soft { fill: var(--foil-periwinkle); }
.art-lilac { fill: var(--foil-lilac); }
.art-paper { fill: var(--paper); }
.art-accent { stroke: var(--accent); }
.art-spin { transform-box: fill-box; transform-origin: center; animation: art-spin 6s linear infinite; }
.art-float { animation: art-float 5s var(--ease-in-out) infinite alternate; }
.art-pulse { animation: art-pulse 2.2s var(--ease-in-out) infinite; transform-box: fill-box; transform-origin: center; }
.art-draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); animation: art-draw 1.8s var(--ease) .2s forwards; }
@keyframes art-spin { to { transform: rotate(360deg); } }
@keyframes art-float { to { transform: translateY(-10px); } }
@keyframes art-pulse { 50% { opacity: .45; transform: scale(.94); } }
@keyframes art-draw { to { stroke-dashoffset: 0; } }

/* Floating notification chips (iOS-style) placed over hero art */
.float-note {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 18px; max-width: 290px;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--shadow-2); line-height: 1.25; text-align: left;
  animation: note-in .7s var(--ease) .9s both, art-float 5.5s var(--ease-in-out) 1.6s infinite alternate;
}
.float-note strong { display: block; font-size: .92rem; font-weight: 650; }
.float-note small { display: block; font-size: .8rem; color: var(--ink-3); }
.float-note .dot { flex: none; width: 10px; height: 10px; margin-left: 4px; border-radius: 50%; background: var(--warn-light); box-shadow: 0 0 0 4px rgba(227, 161, 59, .18), 0 0 10px rgba(227, 161, 59, .55); }
.float-note .dot.is-ok { background: #34a064; box-shadow: 0 0 0 4px rgba(52, 160, 100, .18); }
.float-note .dot.is-stop { background: #d9534a; box-shadow: 0 0 0 4px rgba(217, 83, 74, .16), 0 0 10px rgba(217, 83, 74, .5); }
@keyframes note-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@media (max-width: 599.98px) { .float-note { display: none; } }

/* ---------- Ticker (road-sign marquee) ---------- */
.ticker { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); padding-block: 16px; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--paper), transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
@media (hover: hover) { .ticker:hover .ticker-track { animation-play-state: paused; } }
.ticker-group { display: flex; align-items: center; gap: 0; padding-right: 0; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; padding-inline: 22px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.ticker-item .icon { color: var(--accent); }
.ticker-item::after { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--stone-300); margin-left: 32px; }
.ticker-reverse .ticker-track { animation-direction: reverse; animation-duration: 60s; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Roadmap (process steps along a road) ---------- */
.roadmap { --p: 0; position: relative; }
.roadmap-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; position: relative; }
.roadmap-step { position: relative; padding-left: 64px; }
.roadmap-marker {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; font-weight: 700; font-size: 1rem;
  background: var(--paper); border: 1.5px solid var(--line-strong); color: var(--ink-3);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--spring);
}
.roadmap-step.is-reached .roadmap-marker { background: var(--ink); color: var(--ivory); border-color: var(--ink); transform: scale(1.06); }
.roadmap-step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.roadmap-step p { color: var(--ink-3); font-size: .98rem; }
.roadmap-road { position: absolute; left: 20px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--stone-200); overflow: hidden; }
.roadmap-road::before {
  content: ""; position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--p));
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.roadmap-car { display: none; }
@media (min-width: 900px) {
  .roadmap-steps { grid-template-columns: repeat(var(--steps, 4), 1fr); gap: 28px; padding-top: 86px; }
  .roadmap-step { padding-left: 0; }
  .roadmap-marker { top: -86px; z-index: 2; box-shadow: 0 0 0 5px var(--roadmap-bg, var(--stone-50)); }
  .roadmap-road {
    left: 0; right: 0; top: 16px; bottom: auto; width: auto; height: 12px; border-radius: 8px;
    background: var(--stone-200);
  }
  .roadmap-road::before { transform-origin: left; transform: scaleX(var(--p)); }
  .roadmap-road::after { /* lane dashes */
    content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .95) 0 18px, transparent 18px 34px);
  }
  .roadmap-car {
    display: block; position: absolute; top: -2px; left: 0; width: 44px; height: 20px; color: var(--ink); z-index: 1;
    transform: translateX(calc(var(--p) * (var(--road-w, 1000px) - 44px)));
  }
}

/* ---------- Odometer ---------- */
.odometer {
  display: inline-flex; align-items: stretch; gap: 3px;
  padding: 8px; border-radius: 14px; background: var(--ink);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5), var(--shadow-2);
  font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 2.8rem); line-height: 1; color: var(--ivory);
}
.odo-digit {
  position: relative; display: block; width: .78em; height: 1.28em; overflow: hidden; border-radius: 6px;
  background: linear-gradient(180deg, #1b1715 0%, #3a322e 50%, #1b1715 100%);
}
.odo-digit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 26%, transparent 74%, rgba(0, 0, 0, .45)); }
.odo-strip { display: flex; flex-direction: column; transition: transform 2.2s var(--ease); transition-delay: var(--d, 0s); }
.odo-strip span { height: 1.28em; display: grid; place-items: center; }
.odo-sep { align-self: flex-end; padding: 0 1px .12em; color: var(--stone-300); }
.odo-digit.is-tenth { background: linear-gradient(180deg, #e9ecff 0%, #fff 50%, #e9ecff 100%); color: var(--ink); }

/* ---------- Accordion (FAQ) ---------- */
.faq-list { display: grid; gap: 10px; }
.faq {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.faq[open] { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.faq summary {
  text-wrap: balance;
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 620; font-size: 1.04rem; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; margin-left: auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--stone-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2522' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}
.faq[open] summary::after { transform: rotate(135deg); background-color: var(--accent-soft); }
.faq-body { padding: 0 20px 20px; color: var(--ink-3); }
.faq-body > * + * { margin-top: .7em; }
.faq::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.faq[open]::details-content { block-size: auto; }

/* ---------- Tabs ---------- */
.tabs-list {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--pill);
  background: var(--stone-100); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tabs-list::-webkit-scrollbar { display: none; }
.tabs-list [role="tab"] {
  flex: none; border: 0; background: none; padding: 9px 18px; border-radius: var(--pill);
  font-weight: 600; font-size: .95rem; color: var(--ink-3);
  transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.tabs-list [role="tab"][aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-1); }
[role="tabpanel"] { margin-top: 28px; }
[role="tabpanel"][hidden] { display: none; }
[role="tabpanel"]:not([hidden]) { animation: rise-in .45s var(--ease) both; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } .form-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: 7px; }
.field-label { font-weight: 600; font-size: .93rem; color: var(--ink-2); }
.field-label .req { color: var(--accent); }
.field-hint { font-size: .84rem; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 15px;
  border: 1px solid var(--line-strong); border-radius: 13px; background: var(--paper);
  font-size: 1rem; color: var(--ink);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
/* iOS Safari centres date/time values and lets an empty picker collapse: keep them left-aligned and full width. */
@supports (-webkit-touch-callout: none) {
  .input:is([type="date"], [type="time"], [type="datetime-local"], [type="month"]) {
    -webkit-appearance: none; appearance: none;
    display: block; width: 100%; min-width: 0; text-align: left;
  }
  .input::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.45em; }
}
.select {
  padding-right: 42px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a615b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
@media (hover: hover) { .input:hover, .select:hover, .textarea:hover { border-color: var(--ink-4); } }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--stop); background: #fffafa; }
.field-error { display: none; align-items: center; gap: 6px; font-size: .86rem; font-weight: 550; color: var(--stop); }
.field.is-invalid .field-error { display: flex; animation: shake .35s var(--ease); }
@keyframes shake { 25% { transform: translateX(-4px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-card {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 14px 14px; border-radius: 15px; border: 1px solid var(--line-strong); background: var(--paper);
  font-weight: 600; font-size: .96rem;
  transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.choice-card .icon { color: var(--accent); width: 22px; height: 22px; }
.choice-card small { display: block; font-weight: 450; color: var(--ink-3); font-size: .82rem; }
@media (hover: hover) { .choice:hover .choice-card { border-color: var(--ink-4); } }
.choice input:focus-visible + .choice-card { box-shadow: 0 0 0 4px var(--accent-ring); }
.choice input:checked + .choice-card { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:checked + .choice-card::after {
  content: ""; margin-left: auto; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 12px no-repeat;
  animation: pop .3s var(--spring);
}
@keyframes pop { from { transform: scale(0); } }
.form-note { font-size: .84rem; color: var(--ink-3); }
.hp-field { position: absolute !important; left: -9999px; }
.form-status { display: none; }
.form-status.is-visible { display: flex; }
.form-success {
  display: grid; justify-items: center; text-align: center; gap: 14px; padding: 36px 20px;
  animation: rise-in .6s var(--ease) both;
}
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--ink-3); max-width: 34em; }
.success-mark { width: 84px; height: 84px; }
.success-mark circle { fill: var(--ok-soft); }
.success-mark path { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: art-draw .6s var(--ease) .25s forwards; }
.btn.is-loading { color: transparent !important; }
.btn.is-loading::before {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(250, 248, 245, .35); border-top-color: var(--ivory);
  animation: art-spin .7s linear infinite;
}
.btn-secondary.is-loading::before { border-color: rgba(43, 37, 34, .2); border-top-color: var(--ink); }

/* ---------- Hours table ---------- */
.hours-table th, .hours-table td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours-table td { text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--ink); font-weight: 650; }
.hours-table tr.is-today th::after { content: "Today"; margin-left: 8px; font-size: .72rem; font-weight: 650; padding: 2px 8px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); vertical-align: 2px; }

/* ---------- CTA road band ---------- */
.cta-road { position: relative; overflow: hidden; padding: clamp(56px, 3rem + 3vw, 104px) 0 0; background: linear-gradient(180deg, var(--ivory), #f1f0fb); border-top: 1px solid var(--line); }
.cta-road-inner { display: grid; gap: 28px; align-items: end; padding-bottom: 44px; }
@media (min-width: 900px) { .cta-road-inner { grid-template-columns: 1.2fr auto; } }
.cta-road h2 { margin-top: 12px; }
.cta-road .lead { margin-top: 14px; max-width: 32em; }
.cta-road-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479.98px) { .cta-road-actions .btn { flex: 1 1 100%; } }
.cta-road .road { position: relative; height: 64px; }
.cta-road .road-surface { position: absolute; inset: 22px 0 0; background: linear-gradient(180deg, #e9e4de, #e2dcd5); border-top: 1px solid var(--line-strong); overflow: hidden; }
.cta-road .road-dashes {
  position: absolute; left: 0; right: -80px; top: 50%; height: 3px; margin-top: -1.5px;
  background: repeating-linear-gradient(90deg, #fff 0 36px, transparent 36px 72px);
  animation: road-move 1.6s linear infinite;
}
@keyframes road-move { to { transform: translateX(-72px); } }
.cta-road .road-car { position: absolute; bottom: 20px; left: 0; width: 64px; height: 28px; color: var(--ink); animation: car-drive 14s var(--ease-in-out) infinite; }
@keyframes car-drive {
  0% { transform: translateX(-80px); }
  45%, 55% { transform: translateX(calc(50vw - 32px)) translateY(-1px); }
  100% { transform: translateX(calc(100vw + 80px)); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--stone-50); border-top: 1px solid var(--line); padding-top: clamp(48px, 3rem + 2vw, 80px); font-size: .95rem; }
.footer-grid { display: grid; gap: 40px 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr .8fr .8fr 1.1fr; } }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-blurb { color: var(--ink-3); max-width: 30em; }
.footer-col h2 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; margin-bottom: 14px; }
.footer-col .footer-subhead { margin-top: 26px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) { .footer-col a:hover { color: var(--accent); } }
.footer-visit address { display: grid; gap: 12px; }
.footer-contact { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--accent); margin-top: 2px; }
.hours-list { margin-top: 20px !important; padding: 14px 16px !important; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); gap: 6px !important; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--ink-3); }
.hours-list li span:first-child { color: var(--ink-2); font-weight: 550; }
.hours-list li.is-today span { color: var(--ink); font-weight: 650; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .86rem; }
/* No tab bar on wide screens: keep the last line clear of the iPad home indicator instead. */
@media (min-width: 1080px) { .footer-bottom { padding-bottom: calc(22px + var(--safe-bottom)); } }
.footer-links { display: flex; gap: 10px; align-items: center; }
.footer-links a { color: var(--ink-3); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
@media (hover: hover) { .footer-links a:hover { color: var(--ink); } }
.footer-links .icon { width: 14px; height: 14px; }

/* ---------- Scroll reveal ----------
   Uses a keyframe animation on `translate` (not `transform`/transition), so
   components keep their own hover transforms and transition lists. */
.js [data-reveal]:not(.is-in) { opacity: 0; }
.js [data-reveal] { --reveal-x: 0px; --reveal-y: 26px; }
.js [data-reveal="left"] { --reveal-x: -30px; --reveal-y: 0px; }
.js [data-reveal="right"] { --reveal-x: 30px; --reveal-y: 0px; }
@media (max-width: 899.98px) { .js [data-reveal="left"], .js [data-reveal="right"] { --reveal-x: 0px; --reveal-y: 26px; } }
.js [data-reveal].is-in { animation: reveal-shift .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal="scale"].is-in { animation-name: reveal-scale; }
.js [data-reveal="fade"].is-in { animation-name: fade-in; }
@keyframes reveal-shift { from { opacity: 0; translate: var(--reveal-x) var(--reveal-y); } }
@keyframes reveal-scale { from { opacity: 0; scale: .94; } }

/* Phones: icon feature cards in a 3-up grid become compact rows */
@media (max-width: 639.98px) {
  .grid-3 > .card:not(.card-link):has(> .icon-tile:first-child) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 18px; border-radius: var(--r); }
  .grid-3 > .card:not(.card-link):has(> .icon-tile:first-child) > .icon-tile { width: 44px; height: 44px; border-radius: 13px; }
  .grid-3 > .card:not(.card-link):has(> .icon-tile:first-child) > .icon-tile .icon { width: 23px; height: 23px; }
  .grid-3 > .card:not(.card-link):has(> .icon-tile:first-child) > h3 { margin-top: 0; font-size: 1.1rem; }
  .grid-3 > .card:not(.card-link):has(> .icon-tile:first-child) > :not(.icon-tile, h3) { grid-column: 1 / -1; margin-top: 10px; font-size: .95rem; }
}

/* ---------- Misc utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; } .mt-5 { margin-top: 56px; }
.divider { height: 1px; background: var(--line); margin-block: clamp(32px, 2rem + 2vw, 64px); }
.kbd { font-family: var(--font-mono); font-size: .85em; padding: 2px 6px; border-radius: 6px; background: var(--stone-100); border: 1px solid var(--line); }
.stat { display: grid; gap: 4px; }
.stat-value { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.stat-label { color: var(--ink-3); font-size: .95rem; }
.pill-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.media-frame { border-radius: var(--r-xl); overflow: hidden; background: var(--stone-100); border: 1px solid var(--line); }
.nowrap { white-space: nowrap; }
.art-spin-rev { transform-box: fill-box; transform-origin: center; animation: art-spin-rev 6s linear infinite; }
@keyframes art-spin-rev { to { transform: rotate(-360deg); } }

/* ---------- Touch (iPhone / iPad) ----------
   Hover effects are wrapped in (hover: hover) so nothing stays lifted after a tap. Instead,
   everything tappable answers the finger at once with a pressed state; elements that have
   one drop the default grey tap flash. */
.icon-btn, .header-call, .brand, .nav-link, .nav-caret, .mega-item, .link-arrow, .card-link, .mini-card,
.quick-action, .sheet-grid a, .sheet-list a, .choice, .tabs-list [role="tab"],
.footer-col a, .footer-links a, .breadcrumb a { -webkit-tap-highlight-color: transparent; }
.header-call { transition: background-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.icon-btn:active, .header-call:active { background: var(--stone-100); }
.header-call:active { transform: scale(.96); }
.brand:active .brand-badge { transform: scale(.96); }
.nav-link:active, .nav-caret:active { background: rgba(43, 37, 34, .07); }
.mega-item:active { background: var(--stone-100); }
.link-arrow:active, .footer-col a:active, .footer-links a:active, .breadcrumb a:active { opacity: .55; }
.card-link:active { transform: scale(.985); box-shadow: var(--shadow-1); }
.mini-card:active { transform: scale(.97); }
.quick-action, .sheet-grid a { transition: transform var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease); }
.quick-action:active, .sheet-grid a:active { transform: scale(.96); background: var(--stone-100); }
.sheet-grid a.is-active:active { background: var(--accent-soft); }
.sheet-list a { transition: background-color var(--dur-1) var(--ease); }
.sheet-list a:active { background: var(--stone-100); }
.choice:active .choice-card { transform: scale(.98); }
.tabs-list [role="tab"]:not([aria-selected="true"]):active { background: rgba(43, 37, 34, .06); }

/* Touch targets: standalone text actions and small buttons reach 44px */
.section-head-row .link-arrow, .cluster .link-arrow, .hero-actions .link-arrow, .mega-actions .link-arrow { min-height: 44px; }
@media (pointer: coarse) {
  .btn-sm { min-height: 44px; }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .breadcrumb { margin-block: -10px; }
  .brand { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .header-call { height: 44px; min-width: 44px; }
  .nav-link { height: 44px; } /* iPad landscape shows the desktop nav */
  .nav-caret { width: 36px; height: 44px; }
  .tabs-list [role="tab"] { min-height: 44px; }
  .footer-col ul:not(.hours-list) { gap: 0; }
  .footer-col ul a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .footer-visit address { gap: 0; }
  .footer-contact { min-height: 44px; padding-block: 10px; }
  .footer-links a { min-height: 44px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal]:not(.is-in) { opacity: 1; }
  .ticker-track { animation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .tabbar, .sheet, .cta-road, .site-footer .footer-brand .mini-card, .road-progress { display: none !important; }
  body { background: #fff; padding: 0; min-height: 0; }
  .skip-link { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; animation: none !important; }
}
