/* ========================================================================
   YVR Garage Door Springs — main stylesheet
   Mobile-first. No framework. Vanilla CSS.
   ======================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --ink: #0f1a1f;            /* primary text */
  --ink-soft: #3a4a52;       /* secondary text */
  --ink-muted: #56666e;      /* tertiary text (WCAG AA on --paper) */
  --paper: #fafaf7;          /* page background */
  --paper-warm: #f4f0e8;     /* card / band background */
  --line: #d9d4c8;           /* hairlines */
  --steel: #1f3a44;          /* deep accent */
  --steel-hover: #2a4f5d;
  --signal: #d94a2b;         /* primary CTA — industrial orange-red */
  --signal-hover: #b73d22;
  --signal-soft: #fce8e2;
  --gold: #c8932a;           /* accent / star / badge */
  --green: #2f7a3e;          /* live / open status */
  --green-soft: #e0efe2;
  --amber: #b27a00;          /* warning / cold-snap */
  --amber-soft: #fbf1d8;

  /* Type scale (clamp for fluid responsive) */
  --t-display: clamp(2.1rem, 6vw + 0.5rem, 3.8rem);
  --t-h1:      clamp(1.7rem, 4.5vw + 0.5rem, 2.8rem);
  --t-h2:      clamp(1.35rem, 2.5vw + 0.5rem, 2rem);
  --t-h3:      clamp(1.1rem, 1.5vw + 0.5rem, 1.4rem);
  --t-body:    1.0625rem;
  --t-small:   0.875rem;
  --t-tiny:    0.75rem;

  /* Spacing */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;

  /* Radii */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 14px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(15, 26, 31, 0.06), 0 2px 6px rgba(15, 26, 31, 0.04);
  --shadow-2: 0 4px 12px rgba(15, 26, 31, 0.10), 0 8px 24px rgba(15, 26, 31, 0.06);
  --shadow-lift: 0 -4px 16px rgba(15, 26, 31, 0.08);

  /* Layout */
  --max-w: 1100px;
  --max-w-text: 720px;
  --max-w-figure: 920px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--steel); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--signal); }
button { font: inherit; cursor: pointer; }
address { font-style: normal; }

/* Keyboard-only focus ring across all interactive elements */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: white; padding: var(--s-3) var(--s-4);
  z-index: 1000;
}
.skip-link:focus { left: var(--s-3); top: var(--s-3); }

/* Nav current page */
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--signal);
  margin-top: 2px;
}

/* ---------- Background doodle pattern ----------
   Faint, monochrome, garage-door-themed line-art (springs, rollers, hinges,
   winding bars, doors, wrenches, openers, bolts, screws, cables). Tiles
   seamlessly. Lives behind every "warm" or "neutral" band so the empty white
   areas feel like a tradesman's clipboard rather than a blank page. Opacity is
   tuned conservatively — noticeable but not in your face. */
body {
  background-color: var(--paper);
  background-image: url('/assets/img/doodles-bg.svg');
  background-repeat: repeat;
  background-size: 480px 480px;
  background-attachment: scroll;       /* fixed has known mobile / iOS issues */
}
/* The SVG is already very low opacity (0.045). The bands ride on top with a
   thin translucent wash so the doodle whispers through evenly. */
.band-warm   { background: rgba(244, 240, 232, 0.78); }
.band-dark   { background: rgba(15, 26, 31, 0.97); }
.site-header { background: rgba(250, 250, 247, 0.86); }
.site-footer { background: var(--ink); }
/* Plain "section" with no band uses the paper background colour at high alpha
   so default sections still read clean while permitting the doodle through. */
.section, .section-tight { position: relative; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--s-4); }
.wrap-narrow { max-width: var(--max-w-text); margin-inline: auto; }
.section { padding-block: var(--s-7); }
.section-tight { padding-block: var(--s-6); }
.band-warm { background: rgba(244, 240, 232, 0.93); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--ink); color: var(--paper); }
.band-dark a { color: var(--paper); }
.band-dark a:hover { color: var(--signal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--s-3);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 800; letter-spacing: -0.01em; color: var(--ink);
  text-decoration: none; font-size: 1rem;
}
/* Animated YVR Garage Door Springs logo — garage door rolling up/down */
img.brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: block;
  object-fit: contain;
  background: transparent;
}
/* Honour reduced-motion users: swap to the static frame */
@media (prefers-reduced-motion: reduce) {
  img.brand-mark { content: url('/assets/img/logo-mark-96.png'); }
}

/* About page logo column — centred, capped at a reasonable max size */
.about-logo-col {
  display: flex; flex-direction: column;
  align-items: center; gap: var(--s-4);
}
.about-logo-figure {
  margin: 0;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.about-logo-figure img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.nav { display: flex; align-items: center; gap: var(--s-4); }
.nav a { font-size: var(--t-small); text-decoration: none; color: var(--ink-soft); }
.nav .btn-mini {
  padding: 6px 12px; border-radius: var(--r-pill); background: var(--signal); color: white;
  font-weight: 700; font-size: var(--t-small); text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 16px 22px; min-height: 56px;
  background: var(--signal); color: white;
  border: 2px solid var(--signal);
  border-radius: var(--r-2);
  font-weight: 800; font-size: 1.0625rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-1);
}
.btn:hover { background: var(--signal-hover); border-color: var(--signal-hover); color: white; }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-steel { background: var(--steel); border-color: var(--steel); }
.btn-steel:hover { background: var(--steel-hover); border-color: var(--steel-hover); }

/* ---------- Hero ----------
   LAYOUT MODEL — sky / photo / text are three direct siblings of .wrap:
   - MOBILE (<960px):  flex column. Order is photo → sky → text.
   - DESKTOP (>=960px): grid with template-areas:
        "sky photo"
        "text text"
     Top row is a clean 50/50 split. Bottom row is the headline + CTAs,
     full width under both panels (no overlap, no scrim). */
.hero {
  padding-block: var(--s-6) var(--s-7);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero.band-warm { background: transparent; border-top: 0; border-bottom: 0; }
.hero > .wrap { position: relative; z-index: 2; }

/* ============================================================
   LIVE VANCOUVER SKY — sits as a backdrop behind the hero content.
   JS sets [data-time] = day | dawn | dusk | night
        [data-weather] = clear | cloudy | fog | rain | snow | storm
        [data-moon] = 0..1 (moon phase fraction — moon path computed in JS)
   CSS toggles the right layers based on those attributes.
   ============================================================ */
.hero-sky {
  /* MOBILE: contained 16:7 strip between the spring photo and the text block.
     DESKTOP: takes the top-left grid area (height matched to .hero-photo). */
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--r-3);
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #7cb8e6 0%, #dfeaf3 100%); /* fallback day */
  box-shadow: var(--shadow-1);
}
.hero-sky-svg {
  display: block;
  width: 100%; height: 100%;
}

/* Background-rect layer toggling — only one shows at a time */
.sky-bg { opacity: 0; transition: opacity 0.6s ease; }
.hero-sky[data-time="day"]   .sky-bg-day,
.hero-sky[data-time="dawn"]  .sky-bg-dawn,
.hero-sky[data-time="dusk"]  .sky-bg-dusk,
.hero-sky[data-time="night"] .sky-bg-night { opacity: 1; }
/* Cloudy and rainy weather override the day backdrop with a more muted blue-grey */
.hero-sky[data-time="day"][data-weather="cloudy"] .sky-bg-day,
.hero-sky[data-time="day"][data-weather="fog"]    .sky-bg-day,
.hero-sky[data-time="day"][data-weather="rain"]   .sky-bg-day,
.hero-sky[data-time="day"][data-weather="storm"]  .sky-bg-day,
.hero-sky[data-time="day"][data-weather="snow"]   .sky-bg-day { opacity: 0; }
.hero-sky[data-time="day"][data-weather="cloudy"] .sky-bg-cloudy,
.hero-sky[data-time="day"][data-weather="fog"]    .sky-bg-cloudy,
.hero-sky[data-time="day"][data-weather="snow"]   .sky-bg-cloudy { opacity: 1; }
.hero-sky[data-time="day"][data-weather="rain"]   .sky-bg-rain,
.hero-sky[data-time="day"][data-weather="storm"]  .sky-bg-rain { opacity: 1; }

/* Mountain silhouette: lighter on light skies, deeper on dark */
.sky-mountains { transition: fill 0.6s ease; }
.hero-sky[data-time="night"] .sky-mountains { fill: rgba(15, 26, 31, 0.55); }
.hero-sky[data-time="dusk"]  .sky-mountains { fill: rgba(15, 26, 31, 0.40); }
.hero-sky[data-time="dawn"]  .sky-mountains { fill: rgba(15, 26, 31, 0.40); }

/* STARS — visible only at night */
.sky-stars { opacity: 0; transition: opacity 0.6s ease; }
.hero-sky[data-time="night"] .sky-stars { opacity: 1; }
.star { fill: #fffce5; }
.star.s1 { animation: starTwinkleA 3.5s ease-in-out infinite; }
.star.s2 { animation: starTwinkleB 4.5s ease-in-out infinite; }
.star.s3 { animation: starTwinkleA 6s   ease-in-out infinite; }
@keyframes starTwinkleA { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes starTwinkleB { 0%, 100% { opacity: 0.7; } 50% { opacity: 0.3; } }

/* SUN — visible during day/dawn/dusk (NOT during heavy rain/storm) */
.sky-sun { opacity: 0; transition: opacity 0.6s ease; }
.hero-sky[data-time="day"]  .sky-sun,
.hero-sky[data-time="dawn"] .sky-sun,
.hero-sky[data-time="dusk"] .sky-sun { opacity: 1; }
.hero-sky[data-time="day"][data-weather="rain"]   .sky-sun,
.hero-sky[data-time="day"][data-weather="storm"]  .sky-sun,
.hero-sky[data-time="day"][data-weather="snow"]   .sky-sun { opacity: 0.35; }
/* At dawn the sun sits lower-left (rising). At dusk it slides right + lower
   (setting toward the horizon). Default (day) position is the SVG's own
   translate (240, 90) — upper-left, well clear of the weather readout. */
.hero-sky[data-time="dawn"] .sky-sun { transform: translate(180px, 200px); }
.hero-sky[data-time="dusk"] .sky-sun { transform: translate(1040px, 200px); }
.sun-rays { transform-origin: center; animation: sunRaysSpin 60s linear infinite; }
@keyframes sunRaysSpin { to { transform: rotate(360deg); } }

/* MOON — visible only at night */
.sky-moon { opacity: 0; transition: opacity 0.6s ease; }
.hero-sky[data-time="night"] .sky-moon { opacity: 1; }
.sky-moon-lit { transition: d 0.6s ease; }

/* CLOUDS — visible for cloudy/fog/rain/snow/storm */
.sky-clouds { opacity: 0; transition: opacity 0.6s ease; }
.cloud-fill { fill: #fafaf7; opacity: 0.92; }
.hero-sky[data-time="night"] .cloud-fill { fill: #4a5a68; opacity: 0.78; }
.hero-sky[data-weather="cloudy"] .sky-clouds,
.hero-sky[data-weather="rain"]   .sky-clouds,
.hero-sky[data-weather="snow"]   .sky-clouds,
.hero-sky[data-weather="storm"]  .sky-clouds { opacity: 1; }
.hero-sky[data-weather="fog"]    .sky-clouds { opacity: 0.45; }
.cloud-a { animation: cloudDrift 80s linear infinite; }
.cloud-b { animation: cloudDrift 110s linear infinite; animation-delay: -30s; }
.cloud-c { animation: cloudDrift 140s linear infinite; animation-delay: -70s; }
@keyframes cloudDrift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-1300px); }
}

/* RAIN — visible for rain/storm */
.sky-rain { opacity: 0; transition: opacity 0.6s ease; }
.hero-sky[data-weather="rain"]  .sky-rain,
.hero-sky[data-weather="storm"] .sky-rain { opacity: 0.85; }
.rain { animation: rainFall 0.9s linear infinite; }
.r1 { animation-delay: -0.1s; } .r2 { animation-delay: -0.3s; }
.r3 { animation-delay: -0.5s; } .r4 { animation-delay: -0.2s; }
.r5 { animation-delay: -0.6s; } .r6 { animation-delay: -0.4s; }
.r7 { animation-delay: -0.7s; } .r8 { animation-delay: -0.1s; }
.r9 { animation-delay: -0.5s; }
@keyframes rainFall {
  0%   { transform: translateY(-60px); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(220px); opacity: 0; }
}

/* SNOW — visible for snow */
.sky-snow { opacity: 0; transition: opacity 0.6s ease; }
.hero-sky[data-weather="snow"] .sky-snow { opacity: 1; }
.snow { animation: snowFall 9s linear infinite; }
.sn1 { animation-delay: -1s; } .sn2 { animation-delay: -3s; }
.sn3 { animation-delay: -5s; } .sn4 { animation-delay: -7s; }
.sn5 { animation-delay: -2s; } .sn6 { animation-delay: -6s; }
.sn7 { animation-delay: -8s; } .sn8 { animation-delay: -4s; }
@keyframes snowFall {
  0%   { transform: translate(0, -40px); opacity: 0; }
  15%  { opacity: 0.9; }
  100% { transform: translate(-30px, 280px); opacity: 0.2; }
}

/* FOG */
.sky-fog { opacity: 0; transition: opacity 0.6s ease; }
.hero-sky[data-weather="fog"] .sky-fog { opacity: 0.55; }

/* ROAD + GRASS — solid bands, fade slightly at night for atmosphere. */
.sky-road rect:first-child { transition: fill 0.6s ease; }
.hero-sky[data-time="night"] .sky-road rect:first-child { fill: #11181c; }
.sky-grass rect { transition: fill 0.6s ease; }
.hero-sky[data-time="night"] .sky-grass rect:first-child { fill: #2c4a23; }
.hero-sky[data-time="night"] .sky-grass rect:nth-child(2) { fill: #3a6030; }

/* MOUNTAIN SNOW CAPS — slightly bluer/cooler at dusk and night */
.sky-snowcaps polygon { transition: fill 0.6s ease; }
.hero-sky[data-time="night"] .sky-snowcaps polygon { fill: rgba(220, 230, 240, 0.6); }
.hero-sky[data-time="dusk"]  .sky-snowcaps polygon { fill: rgba(250, 220, 200, 0.78); }

/* BACKGROUND mountain layer — fade slightly at night */
.sky-mountains-back { transition: fill 0.6s ease; }
.hero-sky[data-time="night"] .sky-mountains-back { fill: rgba(15, 26, 31, 0.30); }
.hero-sky[data-time="dusk"]  .sky-mountains-back { fill: rgba(15, 26, 31, 0.22); }

/* DISTANT HOUSE windows glow at dusk/night */
.sky-house-window { transition: fill 0.6s ease; }
.hero-sky[data-time="day"]   .sky-house-window { fill: rgba(20, 32, 40, 0.6); }
.hero-sky[data-time="dawn"]  .sky-house-window,
.hero-sky[data-time="dusk"]  .sky-house-window { fill: #ffd97a; }
.hero-sky[data-time="night"] .sky-house-window { fill: #ffe89a; }

/* FOREGROUND YVR-customer HOME — windows light up at dusk/night.
   Stick people on the lawn wave; the .sky-wave arm rotates back and
   forth so it reads as a friendly hello. Each figure waves at a
   slightly different cadence so they don't sync up. */
.sky-home-window { transition: fill 0.6s ease; }
.hero-sky[data-time="dawn"]  .sky-home-window,
.hero-sky[data-time="dusk"]  .sky-home-window { fill: #ffd97a; }
.hero-sky[data-time="night"] .sky-home-window { fill: #ffe89a; }

.sky-wave {
  transform-box: fill-box;
  transform-origin: 0% 100%;
  animation: peopleWave 1.4s ease-in-out infinite;
}
.sky-person-2 .sky-wave { animation-duration: 1.1s; animation-delay: -0.3s; }
.sky-person-3 .sky-wave { animation-duration: 1.7s; animation-delay: -0.6s; }
@keyframes peopleWave {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(-22deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sky-wave { animation: none; }
}

/* MID-DISTANCE PINE TREES — darker at night for atmosphere */
.sky-trees-mid polygon { transition: fill 0.6s ease; }
.hero-sky[data-time="night"] .sky-trees-mid polygon { fill: rgba(10, 25, 15, 0.85) !important; }

/* BIRDS — two V-silhouettes drifting across the distant sky. Wings flap
   independently. Honors reduced-motion (no fly, no flap). */
.sky-bird-a {
  transform: translate(-40px, 78px);
  animation: birdFlyA 95s linear infinite;
  animation-delay: -22s;
}
.sky-bird-b {
  transform: translate(-40px, 108px);
  animation: birdFlyB 130s linear infinite;
  animation-delay: -55s;
}
.sky-bird-wings {
  transform-box: fill-box;
  transform-origin: center;
  animation: birdFlap 0.55s ease-in-out infinite;
}
.sky-bird-b .sky-bird-wings { animation-duration: 0.7s; animation-delay: -0.2s; }
@keyframes birdFlyA {
  0%   { transform: translate(-40px, 78px); }
  50%  { transform: translate(620px, 64px); }
  100% { transform: translate(1280px, 90px); }
}
@keyframes birdFlyB {
  0%   { transform: translate(-40px, 108px); }
  50%  { transform: translate(620px, 122px); }
  100% { transform: translate(1280px, 100px); }
}
@keyframes birdFlap {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.45); }
}
/* Hide birds during heavy weather */
.sky-birds { transition: opacity 0.6s ease; }
.hero-sky[data-weather="rain"]  .sky-birds,
.hero-sky[data-weather="storm"] .sky-birds,
.hero-sky[data-weather="snow"]  .sky-birds,
.hero-sky[data-weather="fog"]   .sky-birds { opacity: 0; }

/* TECH TRUCK — the real wrapped Ford Maverick photo (same asset used in city
   tiles). The source photo faces LEFT, so we mirror it horizontally with
   scaleX(-1) so the truck faces the direction it's driving (forward, L→R).
   After the flip the image's bounding box is at x = (-160, 0) relative to
   its origin, so the keyframes translate from 0 (truck off-screen left)
   to 1360 (truck off-screen right). Negative animation-delay parks the
   truck on-screen from the very first frame. */
.sky-truck-pose {
  transform: translate(0px, 332px) scaleX(-1);
  transform-origin: 0 0;
  animation: truckDrive 42s linear infinite;
  animation-delay: -18s;
}
@keyframes truckDrive {
  0%   { transform: translate(0px,    332px) scaleX(-1); }
  100% { transform: translate(1360px, 332px) scaleX(-1); }
}

/* Honest accessibility: knock out all animation if the user asked for less motion */
@media (prefers-reduced-motion: reduce) {
  .sun-rays, .cloud-a, .cloud-b, .cloud-c, .cloud-d, .cloud-e,
  .rain, .snow, .star.s1, .star.s2, .star.s3,
  .sky-bird-a, .sky-bird-b, .sky-bird-wings { animation: none !important; }
  .sky-truck-pose { animation: none; transform: translate(680px, 332px) scaleX(-1); }
}

/* Live Vancouver readout badge — sits on top of the sky in the upper-right.
   Background adapts to the sky's data-time so it reads on light & dark skies. */
.sky-readout {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 3;
  display: flex; align-items: center; gap: var(--s-3);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(15, 26, 31, 0.12);
  font-size: 0.82rem;
  line-height: 1.25;
  color: var(--ink);
  pointer-events: none;
  max-width: calc(100% - var(--s-5));
  transition: background 0.4s ease, color 0.4s ease;
  white-space: nowrap;            /* one line — let it scale or shrink, but never wrap awkwardly */
}
.hero[data-hero-mode="dark"] .sky-readout {
  background: rgba(15, 26, 31, 0.72);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}
.sky-readout-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}
.sky-readout-text { display: flex; flex-direction: column; gap: 1px; }
.sky-readout-city {
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}
.sky-readout-line { font-weight: 700; font-size: 0.86rem; }

@media (max-width: 480px) {
  .sky-readout {
    padding: 6px 10px;
    gap: 8px;
    /* Stay one line by tightening; fall off-screen rather than wrap */
    font-size: 0.74rem;
  }
  .sky-readout-icon { font-size: 1.3rem; }
  .sky-readout-city { font-size: 0.6rem; }
  .sky-readout-line { font-size: 0.76rem; }
}

/* Mobile-first: the photo, availability strip, and sky panel all break out
   of the .wrap padding so they sit edge-to-edge with no whitespace between
   them. Wrap gap is zeroed so the three panels physically touch.
   !important is intentional here — these rules need to win against any
   intermediate CDN cache or any later stylesheet revision that re-introduces
   the contained card pattern. */
@media (max-width: 959px) {
  .hero { padding-top: 0 !important; padding-bottom: var(--s-5); }
  .hero > .wrap { gap: 0 !important; padding-inline: 0 !important; }

  .hero-photo,
  .hero-sky {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }
  .hero-photo .hero-figure {
    max-width: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
  .hero-photo .availability {
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }
  .hero-sky {
    aspect-ratio: 16 / 7;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Text block re-introduces side padding (since we removed it from .wrap)
     so headlines and CTAs aren't pasted onto the screen edge. */
  .hero-text {
    padding-top: var(--s-5);
    padding-inline: var(--s-4);
  }
}


.hero h1 {
  font-size: var(--t-display);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance; /* Modern browsers — clean balanced line breaks on hero h1s */
}
.hero .sub, .hero .lede {
  text-wrap: pretty; /* Modern browsers — avoid orphan last lines on hero sub-copy */
}
.hero .sub {
  margin-top: var(--s-4);
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 36ch;
}
.hero-moment {
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-left: 3px solid var(--signal);
  background: rgba(217, 74, 43, 0.04);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-soft);
  border-radius: 0 var(--r-2) var(--r-2) 0;
  max-width: 38rem;
}
.hero-moment strong { color: var(--ink); font-weight: 700; }
.hero-moment[hidden] { display: none; }

.hero-ctas {
  margin-top: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.hero-trust {
  margin-top: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4);
  font-size: var(--t-small); color: var(--ink-muted);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust span::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green);
}

/* Location-detect badge under the sub-headline. Hidden until JS confirms a
   detected city (IP-derived) or completes a GPS lookup. */
.hero-locate {
  margin-top: var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 8px 14px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--t-small);
  color: var(--ink-soft);
  max-width: 100%;
  flex-wrap: wrap;
}
.hero-locate[hidden] { display: none; }
.hero-locate-text { display: inline-flex; align-items: center; gap: 6px; }
.hero-locate-icon { color: var(--signal); flex: 0 0 auto; }
.hero-locate-text strong { color: var(--ink); font-weight: 700; }
.hero-locate-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--signal-hover); /* darker variant — passes WCAG AA on --paper */
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.hero-locate-btn:hover { color: var(--signal); }
.hero-locate-btn[disabled] { color: var(--ink-muted); text-decoration: none; cursor: default; }

/* ---------- Hero image ---------- */
.hero-figure {
  margin: 0;
  display: block;
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--paper-warm);
  box-shadow: var(--shadow-2);
  position: relative;
  aspect-ratio: 16 / 9;            /* mobile crop — desktop overrides below */
}
.hero-figure picture, .hero-figure img {
  display: block; width: 100%; height: 100%;
}
.hero-figure img { object-fit: cover; }
.hero-figure-empty { display: none !important; }

/* Mobile base: .wrap is a flex column. Sky / photo / text are siblings and
   their order is set explicitly here:
     1. .hero-photo  (broken-spring image, edge-to-edge)
     2. .hero-sky    (animated weather + mountains card)
     3. .hero-text   (eyebrow, headline, CTAs, trust)
   Desktop swaps .wrap to a grid (see @media >=960px below). */
.hero .wrap { display: flex; flex-direction: column; gap: var(--s-4); }
.hero-photo { order: 1; }
.hero-sky   { order: 2; }
.hero-text  { order: 3; }

/* State-driven subtle overlays on the hero figure */
body.state-cold .hero-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(120, 180, 220, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
body.state-after-hours .hero-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 26, 31, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

/* ---------- Tier card images ---------- */
.tier-image {
  margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) 0;
  aspect-ratio: 4 / 3;
  background: var(--paper-warm);
  border-radius: var(--r-3) var(--r-3) 0 0;
  overflow: hidden;
  position: relative;
}
.tier-image picture, .tier-image img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.tier-image-empty { display: none; }

/* ---------- Live availability strip ---------- */
.availability {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--green-soft); border: 1px solid #c8e0cd;
  border-radius: var(--r-2);
  font-size: var(--t-small);
  color: #1f5a2c;
}
.availability.closed { background: var(--amber-soft); border-color: #e7d4a1; color: #6f4d00; }
.availability .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(47, 122, 62, 0.18);
  animation: pulse 2.2s ease-in-out infinite;
  flex: 0 0 auto;
}
.availability.closed .dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(178, 122, 0, 0.18); animation: none; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 122, 62, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(47, 122, 62, 0); }
}

/* ---------- Pricing tiers ---------- */
.pricing { display: grid; gap: var(--s-4); }
.tier {
  position: relative;
  background: white; border: 1px solid var(--line); border-radius: var(--r-3);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.tier.featured {
  border-color: var(--signal); border-width: 2px;
  box-shadow:
    0 0 0 4px rgba(217, 74, 43, 0.10),
    0 0 24px rgba(217, 74, 43, 0.18),
    0 8px 28px rgba(15, 26, 31, 0.10);
  animation: tierFeaturedGlow 4.2s ease-in-out infinite;
}
@keyframes tierFeaturedGlow {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(217, 74, 43, 0.10),
      0 0 24px rgba(217, 74, 43, 0.18),
      0 8px 28px rgba(15, 26, 31, 0.10);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(217, 74, 43, 0.16),
      0 0 36px rgba(217, 74, 43, 0.30),
      0 12px 36px rgba(15, 26, 31, 0.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tier.featured { animation: none; }
}
.tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper);
  font-size: var(--t-tiny); font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 12px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.tier-name { font-size: var(--t-h3); font-weight: 700; }
.tier-price {
  font-size: clamp(2rem, 5vw + 0.5rem, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1;
}
.tier-price-note { font-size: var(--t-small); color: var(--ink-muted); }
.tier-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tier-features li { font-size: var(--t-small); padding-left: 18px; position: relative; color: var(--ink-soft); }
.tier-features li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.tier-features li.minus {
  color: var(--ink-muted);
  animation: minus-pulse 3.6s ease-in-out infinite;
}
/* Stagger the two minus rows so the eye registers them as separate alerts,
   not a single block. */
.tier-features li.minus:nth-of-type(2n) { animation-delay: 1.8s; }
.tier-features li.minus::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 8px; height: 2px;
  border: none; background: var(--ink-muted); transform: none;
  animation: minus-pulse-marker 3.6s ease-in-out infinite;
}
.tier-features li.minus:nth-of-type(2n)::before { animation-delay: 1.8s; }

@keyframes minus-pulse {
  /* Slow cycle: 75% of the time it sits at the calm grey, then a brief swell
     to a softer warning red with a faint glow, then back. Just enough motion
     to catch a wandering eye without being annoying on long sessions. */
  0%, 60%, 100% {
    color: var(--ink-muted);
    text-shadow: none;
  }
  78% {
    color: #c0392b; /* WCAG-AA red on paper */
    text-shadow: 0 0 6px rgba(192, 57, 43, 0.45);
  }
  82% {
    color: #c0392b;
    text-shadow: 0 0 10px rgba(192, 57, 43, 0.55);
  }
}
@keyframes minus-pulse-marker {
  0%, 60%, 100% {
    background: var(--ink-muted);
    box-shadow: none;
  }
  78%, 82% {
    background: #c0392b;
    box-shadow: 0 0 8px rgba(192, 57, 43, 0.6);
  }
}

/* Respect reduced-motion: hold the red state, no animation cycle. */
@media (prefers-reduced-motion: reduce) {
  .tier-features li.minus,
  .tier-features li.minus::before {
    animation: none;
  }
  .tier-features li.minus { color: #c0392b; }
  .tier-features li.minus::before { background: #c0392b; }
}

/* The mirror of .minus: a "freebie" line on the Two-Spring tier that pulses
   green to draw the eye to a positive feature (free $120 cable replacement). */
.tier-features li.freebie {
  color: var(--green);
  font-weight: 700;
  animation: freebie-pulse 3.6s ease-in-out infinite;
}
.tier-features li.freebie strong { color: #1a7a3a; font-weight: 800; }
.tier-features li.freebie::before {
  /* Keep the green checkmark but give it a synchronized glow */
  animation: freebie-pulse-marker 3.6s ease-in-out infinite;
}

@keyframes freebie-pulse {
  /* Same timing as minus-pulse so they read as siblings on competing tiers.
     ~60% calm, then a brief swell with a soft green glow, then back. */
  0%, 60%, 100% {
    color: var(--green);
    text-shadow: none;
  }
  78% {
    color: #1a7a3a;
    text-shadow: 0 0 6px rgba(38, 159, 79, 0.50);
  }
  82% {
    color: #1a7a3a;
    text-shadow: 0 0 10px rgba(38, 159, 79, 0.65);
  }
}
@keyframes freebie-pulse-marker {
  0%, 60%, 100% {
    border-color: var(--green);
    box-shadow: none;
  }
  78%, 82% {
    border-color: #1a7a3a;
    box-shadow: 0 0 8px rgba(38, 159, 79, 0.70);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tier-features li.freebie,
  .tier-features li.freebie::before {
    animation: none;
  }
  .tier-features li.freebie { color: #1a7a3a; }
}

/* ---------- 4th option: Wayne Dalton TorqueMaster conversion ----------
   Default position is below the three standard tiers. When the visitor's
   inferred intent is `torquemaster` (URL ?intent=, ?q=, or referrer search
   query mentions Wayne Dalton / TorqueMaster), JS promotes this card to
   render ABOVE the three tiers, AND the `promoted` modifier turns up the
   visual weight (signal-orange accent + a "we noticed you searched for…"
   banner injected at the top by JS). */
.tier-special {
  margin-top: var(--s-7);
  background: white;
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: var(--r-3);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  display: grid;
  gap: var(--s-5);
}
.tier-special.promoted {
  margin-top: 0;
  margin-bottom: var(--s-7);
  border-left-color: var(--signal);
  border-left-width: 6px;
  box-shadow:
    0 0 0 4px rgba(217, 74, 43, 0.10),
    0 8px 28px rgba(15, 26, 31, 0.10);
}
.tier-special-promoted-banner {
  background: var(--signal-soft);
  border: 1px solid #f4c8be;
  border-left: 4px solid var(--signal);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  font-size: var(--t-small);
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  line-height: 1.5;
}
.tier-special-promoted-banner svg { color: var(--signal); flex: 0 0 auto; margin-top: 2px; }
.tier-special-promoted-banner strong { font-weight: 700; }
.tier-special-head { display: flex; flex-direction: column; gap: var(--s-3); }
.tier-special-badge {
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content;
  background: var(--amber-soft); color: #5a3e00;
  font-weight: 800; font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 8px 18px 8px 14px; border-radius: var(--r-pill);
  border: 1.5px solid #e6c97a;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.tier-special-badge::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  background: #c98a14;
  border-radius: 50%;
  flex: 0 0 auto;
}
.tier-special-head h3 {
  font-size: clamp(1.75rem, 3.2vw + 0.5rem, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
.tier-special-head .lede {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 58ch;
}

.tier-special-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  align-items: center;
}
.tier-compare-img {
  margin: 0;
  border: 2px solid var(--line);
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--paper-warm);
}
.tier-compare-img picture, .tier-compare-img img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.tier-compare-img figcaption {
  font-size: var(--t-tiny);
  color: var(--ink-soft);
  padding: 8px 12px;
  background: var(--paper-warm);
  text-align: center;
  border-top: 1px solid var(--line);
}
.tier-compare-img figcaption strong { color: var(--ink); }
.tier-compare-before { border-color: var(--signal); }
.tier-compare-before figcaption { background: var(--signal-soft); }
.tier-compare-after  { border-color: var(--green); }
.tier-compare-after figcaption { background: var(--green-soft); }
.tier-compare-arrow {
  color: var(--signal);
  display: flex; justify-content: center; align-items: center;
  transform: rotate(90deg);
}
@media (min-width: 640px) {
  .tier-special-compare {
    grid-template-columns: 1fr auto 1fr;
  }
  .tier-compare-arrow { transform: none; }
}

.tier-special-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 760px) {
  .tier-special-grid { grid-template-columns: 1.35fr 1fr; gap: var(--s-6); }
}

.tier-special-why h4 {
  font-size: 1.0625rem;
  font-weight: 800;
  margin-top: var(--s-4);
  margin-bottom: var(--s-2);
  color: var(--ink);
}
.tier-special-why h4:first-child { margin-top: 0; }
.tier-special-why p {
  color: var(--ink-soft);
  font-size: var(--t-small);
  line-height: 1.55;
  margin-bottom: var(--s-2);
}
.tier-special-why ul {
  padding-left: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.tier-special-why ul li {
  font-size: var(--t-small);
  color: var(--ink-soft);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}
.tier-special-why ul li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal);
  transform: rotate(-45deg);
}
.tier-special-why ul li strong { color: var(--ink); }

.tier-special-pricing {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.tier-special-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px dashed var(--line);
}
.tier-special-row:last-of-type { border-bottom: none; }
.tier-special-row-label {
  display: flex; flex-direction: column; gap: 2px;
  font-size: var(--t-small);
}
.tier-special-row-label strong { color: var(--ink); font-weight: 700; }
.tier-special-row-sub {
  font-size: var(--t-tiny);
  color: var(--ink-muted);
  line-height: 1.4;
}
.tier-special-row-price {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  text-align: right;
}
.tier-special-row-replace .tier-special-row-price { color: var(--ink-muted); }
.tier-special-row-replace .tier-special-row-price s { text-decoration-thickness: 2px; }

.tier-special-row-convert {
  background: rgba(47, 122, 62, 0.07);
  margin: 0 calc(var(--s-4) * -1);
  padding-inline: var(--s-4);
  border-bottom: none;
  border-radius: var(--r-2);
}
.tier-special-row-convert .tier-special-row-price {
  font-size: 1.8rem;
  color: var(--green);
  letter-spacing: -0.02em;
}

.tier-special-savings {
  font-size: var(--t-small);
  color: var(--ink-soft);
  padding: var(--s-3);
  background: white;
  border-radius: var(--r-2);
  border: 1px solid var(--green);
  text-align: center;
  line-height: 1.45;
}
.tier-special-savings strong {
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 800;
}

.tier-special-pricing .btn { width: 100%; }

.tier-special-foot {
  font-size: var(--t-tiny);
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.45;
  margin: 0;
}

/* ---------- Diagnosis widget ---------- */
.diagnosis {
  background: white; border: 1px solid var(--line); border-radius: var(--r-3);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
}
.diagnosis-step { display: none; }
.diagnosis-step.active { display: block; }
.diagnosis-q { font-weight: 700; font-size: 1.125rem; margin-bottom: var(--s-3); }
.diagnosis-opts { display: flex; flex-direction: column; gap: var(--s-2); }
.diagnosis-opt {
  padding: var(--s-3) var(--s-4); min-height: 48px;
  background: var(--paper-warm); border: 1px solid var(--line);
  border-radius: var(--r-2); text-align: left;
  font-size: var(--t-body); color: var(--ink);
  transition: all 0.12s ease;
}
.diagnosis-opt:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.diagnosis-progress {
  display: flex; gap: 6px; margin-bottom: var(--s-4);
}
.diagnosis-progress span {
  flex: 1; height: 4px; background: var(--line); border-radius: 2px;
}
.diagnosis-progress span.done { background: var(--signal); }
.diagnosis-result { display: none; padding: var(--s-4); background: var(--signal-soft); border-radius: var(--r-2); margin-top: var(--s-4); }
.diagnosis-result.shown { display: block; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: var(--s-2); }
.faq details {
  background: white; border: 1px solid var(--line); border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
}
.faq summary {
  cursor: pointer; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  padding: var(--s-2) 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--ink-muted); flex: 0 0 auto; }
.faq details[open] summary::after { content: "−"; }
.faq details > *:not(summary) { padding-top: var(--s-2); color: var(--ink-soft); }

/* ============================================================
   CITY TILES — square card layout with a small panel-van glyph,
   distinct visual state for AVAILABLE / BUSY / HIRING / ORIGIN.
   Each state has its OWN colour family so they're never confused:
     AVAILABLE → forest green    (default working state)
     BUSY      → signal red      (temporary, tech on a job)
     ORIGIN    → gold            (the user's own city — special)
     HIRING    → steel blue hash (permanent, no resident tech)
   ============================================================ */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (min-width: 480px) { .cities-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); } }
@media (min-width: 760px) { .cities-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px){ .cities-grid { grid-template-columns: repeat(5, 1fr); gap: var(--s-4); } }

.city-tile {
  position: relative;
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-3) var(--s-3);
  background: linear-gradient(180deg, #ffffff 0%, var(--green-soft) 100%);
  border: 1px solid #b9d4be;       /* faint green-grey border at rest */
  border-radius: var(--r-3);
  text-decoration: none;
  color: var(--ink);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.city-tile::before {
  /* Faint diagonal sweep behind the van for a slight 3D feel */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(255,255,255,0.6), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(15,26,31,0.04), transparent 50%);
  pointer-events: none;
}
.city-tile:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  color: var(--ink);
}
.city-tile:hover .city-tile-van { transform: translateX(6px); }

/* Photoreal branded tech-truck image — used in place of the prior SVG glyph.
   Per-state visual cues come from the tile border/badge plus a small CSS filter
   on the image itself (subtle saturation/brightness shift). */
.city-tile-van {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: var(--s-1);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.city-tile-truck-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 180;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(15,26,31,0.18));
  transition: filter 0.25s ease;
}
.city-tile-van::after {
  content: "";
  position: absolute; left: 6%; right: 6%; bottom: -2px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(15,26,31,0.18) 20%, rgba(15,26,31,0.18) 80%, transparent);
}

.city-tile-name {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.city-tile-meta {
  font-size: 0.72rem;
  color: var(--ink-muted);
  line-height: 1.3;
}
.city-tile-meta strong { color: var(--ink); }

/* Available-state status badge — small green pill */
.city-tile-available-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  order: -1;
}

/* ---- State: ORIGIN (your city) — gold treatment + periodic wiggle ---- */
.city-tile-origin {
  border-color: var(--gold);
  border-width: 2px;
  background: linear-gradient(180deg, #fff7e0 0%, #fff 80%);
  box-shadow: 0 6px 20px rgba(200, 147, 42, 0.28);
  transform-origin: center center;
  animation: originWiggle 4s ease-in-out infinite;
}
/* Every ~4s the gold tile does two gentle ±1.5° shakes to keep the eye on it. */
@keyframes originWiggle {
  0%, 88%, 100% { transform: rotate(0deg); }
  91%           { transform: rotate(-1.5deg); }
  94%           { transform: rotate(1.5deg); }
  97%           { transform: rotate(-0.8deg); }
}
/* Pause the wiggle when the user is hovering / focusing the tile so the hover
   translateY can take over cleanly. */
.city-tile-origin:hover, .city-tile-origin:focus-visible { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .city-tile-origin { animation: none; }
}
.city-tile-origin .city-tile-name { color: #8a6500; }
/* Origin = full-colour truck, no filter — your city looks crisp */
.city-tile-origin .city-tile-truck-img { filter: drop-shadow(0 3px 4px rgba(200, 147, 42, 0.35)) saturate(1.05); }
.city-tile-origin::before { background: radial-gradient(circle at 70% 10%, rgba(255,255,255,0.75), transparent 60%); }
.city-tile-origin .city-tile-marker {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px;
  background: var(--gold);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(200, 147, 42, 0.45);
}
.city-tile-origin-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: #8a6500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  order: -1;
}

/* ---- State: BUSY (temporary — tech on a job, RED) ---- */
.city-tile-busy {
  background: linear-gradient(180deg, var(--signal-soft) 0%, #fff 85%);
  border-color: var(--signal);
}
.city-tile-busy .city-tile-name { color: var(--signal-hover); }
/* Busy = slightly dimmed truck with a warm red cast */
.city-tile-busy .city-tile-truck-img { filter: drop-shadow(0 2px 3px rgba(217,74,43,0.30)) saturate(0.85) brightness(0.95); }
.city-tile-busy-dot {
  position: absolute; top: 9px; right: 9px;
  width: 9px; height: 9px;
  background: var(--signal); border-radius: 50%;
  box-shadow: 0 0 0 0 var(--signal);
  animation: cityBusyPulse 2.4s cubic-bezier(0.66, 0, 0, 1) infinite;
}
.city-tile-busy-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  order: -1;
}
@keyframes cityBusyPulse {
  0%   { box-shadow: 0 0 0 0 rgba(217, 74, 43, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(217, 74, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 74, 43, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .city-tile-busy-dot { animation: none; }
}

/* ---- State: HIRING (permanent — no resident tech yet, steel-blue hash) ---- */
.city-tile-hiring {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(31, 58, 68, 0.08) 0px,
      rgba(31, 58, 68, 0.08) 6px,
      transparent 6px,
      transparent 14px
    ),
    linear-gradient(180deg, #eaf1f5 0%, #fff 85%);
  border-color: var(--steel);
  border-style: dashed;
}
.city-tile-hiring .city-tile-name { color: var(--steel); }
/* Hiring = heavily desaturated + dimmed truck — visually 'parked / not yet on roster' */
.city-tile-hiring .city-tile-truck-img { filter: grayscale(0.7) brightness(0.92) opacity(0.65); }
.city-tile-hiring-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  order: -1;
}
.city-tile-hiring-pin {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px;
  background: var(--steel);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
}

/* If a tile is BOTH origin AND hiring (Tsawwassen + you), origin wins visually */
.city-tile-origin.city-tile-hiring { border-style: solid; background: linear-gradient(180deg, #fff7e0 0%, #fff 80%); }
.city-tile-origin.city-tile-hiring .city-tile-truck-img { filter: drop-shadow(0 3px 4px rgba(200, 147, 42, 0.35)) saturate(1.05); opacity: 1; }

/* ---------- City picker (above the grid) ---------- */
.city-picker {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-5);
  margin-bottom: var(--s-5);
  box-shadow: var(--shadow-1);
}
.city-picker-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
.city-picker label {
  display: block;
  font-size: var(--t-small); font-weight: 700; color: var(--ink-soft);
  margin-bottom: 4px;
}
.city-picker select,
.city-picker input {
  font: inherit;
  width: 100%;
  padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--line); border-radius: var(--r-2); background: var(--paper);
  color: var(--ink);
}
.city-picker select:focus,
.city-picker input:focus {
  outline: 2px solid var(--steel); outline-offset: 1px;
}
.city-picker-status {
  margin-top: var(--s-3);
  font-size: var(--t-small);
  color: var(--green);
  min-height: 1.5em;
}
.city-picker-or {
  text-align: center;
  font-size: var(--t-tiny); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted);
  padding-block: var(--s-2);
}
@media (min-width: 640px) {
  .city-picker-row {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: end;
  }
  .city-picker-or { padding-block: 0; align-self: center; padding-bottom: 14px; }
}

/* ---------- Live-location ("Share my location") button ---------- */
.city-picker-gps-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px; min-height: 48px;
  font: inherit; font-weight: 700; font-size: 1rem;
  color: white;
  background: var(--signal);
  border: 2px solid var(--signal);
  border-radius: var(--r-2);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 0 0 rgba(217, 74, 43, 0.45);
}
.city-picker-gps-btn:hover {
  background: var(--signal-hover);
  border-color: var(--signal-hover);
}
.city-picker-gps-btn:focus-visible {
  background: var(--signal-hover);
  border-color: var(--signal-hover);
  /* Keep the global 3px signal-coloured outline for WCAG 2.4.7 / 2.4.11 */
  box-shadow: 0 0 0 4px rgba(217, 74, 43, 0.4), 0 0 0 6px rgba(15, 26, 31, 0.9);
}
.city-picker-gps-btn:active { transform: translateY(1px); }
.city-picker-gps-btn:disabled { opacity: 0.7; cursor: wait; }

/* Pulsing GPS-ring effect — draws the eye without being loud */
.city-picker-gps-btn svg { animation: gps-ring 2.6s ease-in-out infinite; flex: 0 0 auto; }
.city-picker-gps-btn.is-locating svg { animation: gps-ring 0.9s ease-in-out infinite; }
@keyframes gps-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.12); opacity: 0.78; }
}
@media (prefers-reduced-motion: reduce) {
  .city-picker-gps-btn svg, .city-picker-gps-btn.is-locating svg { animation: none; }
}

.city-picker-privacy {
  margin: var(--s-3) 0 0;
  font-size: var(--t-tiny);
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ---------- Quote form ---------- */
.quote-form {
  display: flex; flex-direction: column; gap: var(--s-3);
  background: white; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: var(--t-small); font-weight: 700; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit; padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--line); border-radius: var(--r-2); background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--steel); outline-offset: 1px;
}

/* ---------- Sticky mobile contact bar (2 buttons: Call + Text) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--ink); color: white;
  padding: var(--s-3) var(--s-3) calc(var(--s-3) + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lift);
  transform: translateY(120%);
  transition: transform 0.25s ease;
  display: flex;
  gap: var(--s-2);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta a {
  flex: 1 1 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px;
  text-decoration: none;
  border-radius: var(--r-2);
  font-weight: 800; font-size: 1rem;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.05s ease;
}
.sticky-cta-call {
  background: var(--signal); color: white;
  border: 2px solid var(--signal);
}
.sticky-cta-call:hover, .sticky-cta-call:focus-visible {
  background: var(--signal-hover); border-color: var(--signal-hover); color: white;
}
.sticky-cta-text {
  background: transparent; color: white;
  border: 2px solid rgba(250, 250, 247, 0.55);
}
.sticky-cta-text:hover, .sticky-cta-text:focus-visible {
  background: rgba(250, 250, 247, 0.12);
  border-color: var(--paper); color: white;
}
.sticky-cta a:active { transform: translateY(1px); }
.sticky-cta svg { flex: 0 0 auto; }

@media (min-width: 768px) {
  .sticky-cta { display: none; }
}

/* ---------- TorqueMaster CTA stack (Call + Text a photo) ---------- */
.tier-special-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.tier-special-ctas .btn { width: 100%; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  justify-content: center; align-items: center;
  font-size: var(--t-small); color: var(--ink-muted);
}
.trust-strip strong { color: var(--ink); }

/* ---------- Reviews placeholder ---------- */
.reviews {
  display: grid; gap: var(--s-4);
}
.review {
  background: white; border: 1px solid var(--line); border-radius: var(--r-2);
  padding: var(--s-5);
}
.review-stars { color: var(--gold); letter-spacing: 2px; margin-bottom: var(--s-2); }
.review-quote { font-style: italic; color: var(--ink-soft); }
.review-author { margin-top: var(--s-3); font-size: var(--t-small); color: var(--ink-muted); }
.review-placeholder-flag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  background: var(--amber-soft); color: var(--amber);
  font-size: var(--t-tiny); font-weight: 700; margin-left: var(--s-2);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--s-7);
  background: var(--ink); color: var(--paper);
  font-size: var(--t-small);
  padding-bottom: calc(var(--s-7) + 70px); /* room for mobile sticky bar */
}
.site-footer a { color: var(--paper); }
.footer-grid {
  display: grid; gap: var(--s-5);
  grid-template-columns: 1fr;
}
.footer-grid h3,
.footer-grid h4 {
  font-size: var(--t-small); text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(250, 250, 247, 0.75); margin-bottom: var(--s-2);
  font-weight: 700;
}
.footer-grid ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-grid a { color: rgba(250, 250, 247, 0.92); text-decoration: none; }
.footer-grid a:hover { color: var(--signal); text-decoration: underline; }
.footer-brand { font-weight: 800; font-size: 1.1rem; margin-bottom: var(--s-2); color: var(--paper); }
.footer-tagline { color: rgba(250,250,247,0.78); font-size: var(--t-small); line-height: 1.55; }
.footer-meta { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,0.12); color: rgba(250,250,247,0.7); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-meta a { color: rgba(250,250,247,0.85); }

/* ---------- Cold-snap / weather banner ---------- */
.cold-snap {
  background: var(--amber-soft); border-bottom: 1px solid #e7d4a1;
  padding: var(--s-3) var(--s-4);
  text-align: center; font-size: var(--t-small); color: #6f4d00;
  display: none;
}
.cold-snap.active { display: block; }
.cold-snap strong { color: var(--ink); }

/* ---------- Headings & utility ---------- */
h2 { font-size: var(--t-h2); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-block; font-size: var(--t-tiny); font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--signal-hover); /* darker variant — WCAG AA on --paper at small text */
  margin-bottom: var(--s-2);
}
.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 60ch; }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.text-center { text-align: center; }
.bold-line { font-weight: 800; font-size: 1.125rem; }

/* Loss-aversion callout */
.callout {
  background: var(--ink); color: var(--paper);
  padding: var(--s-5); border-radius: var(--r-3);
  display: grid; gap: var(--s-3);
}
.callout .big-number {
  font-size: clamp(2.4rem, 7vw, 3.2rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1; color: var(--signal);
}

/* Synonyms cloud */
.synonyms { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.synonyms span,
.synonyms a {
  padding: 8px 14px;
  background: var(--paper);
  border-radius: var(--r-pill);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.synonyms a {
  cursor: pointer;
}
.synonyms a:hover,
.synonyms a:focus-visible {
  background: var(--signal);
  color: var(--paper);
  border-color: var(--signal);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(217, 74, 43, 0.22);
  outline: none;
}
.synonyms span:hover {
  background: var(--paper-warm);
  border-color: var(--ink-soft);
  transform: translateY(-1px);
}
.synonyms a::after {
  content: " →";
  opacity: 0.55;
  transition: transform 0.15s ease, opacity 0.15s ease;
  display: inline-block;
}
.synonyms a:hover::after { transform: translateX(2px); opacity: 1; }

/* ---------- Responsive layout ---------- */
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .hero-ctas .btn { flex: 1 1 auto; min-width: 200px; }
  .pricing { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .section { padding-block: var(--s-8); }
  .hero { padding-block: var(--s-8) var(--s-7); }

  /* Desktop hero: grid with two named areas.
     Top row = 50/50 sky | photo (matched aspect ratio so they line up cleanly).
     Bottom row = full-width text block beneath both, no overlap with sky. */
  .hero .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "sky photo"
      "text text";
    gap: var(--s-5) var(--s-5);
    align-items: stretch;
  }
  .hero-sky {
    grid-area: sky;
    aspect-ratio: 4 / 3;  /* matches the spring photo so both panels are same height */
    height: 100%;
    margin: 0;
  }
  .hero-photo {
    grid-area: photo;
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
  }
  .hero-photo .hero-figure { aspect-ratio: 4 / 3; margin: 0; }
  .hero-text {
    grid-area: text;
    padding-top: var(--s-4);
    max-width: 56rem;     /* keep text readable; don't stretch the headline across 1100px */
  }
  .hero-text .sub { max-width: 52ch; }

  .reviews { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Article figure (blog + about hero illustrations) ---------- */
.article-figure {
  margin: var(--s-6) auto var(--s-5);
  max-width: var(--max-w-figure);
  padding-inline: var(--s-4);
}
.article-figure-wide { max-width: 1100px; }
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-3);
  background: var(--paper-warm);
  box-shadow: var(--shadow-1);
}
.article-figure figcaption {
  text-align: center;
  font-size: var(--t-small);
  color: var(--ink-muted);
  margin-top: var(--s-3);
  font-style: italic;
}

/* Inline figure used inside .article-body — tighter spacing, slightly narrower */
.article-figure-inline {
  margin: var(--s-6) auto;
  max-width: 760px;
  padding-inline: 0;
}
.article-figure-inline img {
  border-radius: var(--r-2);
}
.article-figure-inline figcaption {
  text-align: left;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: normal;
  border-left: 3px solid var(--line);
  padding-left: var(--s-3);
  margin-top: var(--s-3);
}

/* Edge-to-edge on mobile — breaks out of .wrap horizontal padding so the
   photo runs the full viewport width on phones. Desktop is unchanged. */
@media (max-width: 720px) {
  .article-figure-fullbleed-mobile {
    margin-inline: calc(-1 * var(--s-4));
    margin-top: 0;
    padding-inline: 0;
    max-width: none;
  }
  .article-figure-fullbleed-mobile > img,
  .article-figure-fullbleed-mobile > picture > img {
    border-radius: 0;
    box-shadow: none;
  }
  .article-figure-fullbleed-mobile > picture {
    display: block;
  }
  .article-figure-fullbleed-mobile > figcaption {
    padding-inline: var(--s-4);
  }
  /* When a section's first content is a full-bleed-on-mobile figure, kill
     the section's own top padding so the photo sits flush against the
     block above. Also kill the previous section's bottom padding so the
     two blocks meet edge-to-edge. */
  .section:has(> .wrap > .article-figure-fullbleed-mobile:first-child),
  .section:has(> .wrap-narrow > .article-figure-fullbleed-mobile:first-child) {
    padding-top: 0;
  }
  .section:has(+ .section > .wrap > .article-figure-fullbleed-mobile:first-child),
  .section:has(+ .section > .wrap-narrow > .article-figure-fullbleed-mobile:first-child) {
    padding-bottom: 0;
  }
}

/* ---------- Blog ---------- */

/* Blog index hero — single centered column instead of the default
   hero's two-column flex/grid. Lets the photo below it serve as the
   visual right-half and keeps the eye flowing top-to-bottom. */
.blog-hero > .wrap {
  display: block;
  text-align: center;
}
.blog-hero-text {
  max-width: 38rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.blog-hero-text .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--signal-hover);
  font-weight: 800;
  margin-bottom: var(--s-1);
}
.blog-hero-text h1 {
  text-wrap: balance;
  margin: 0;
  font-size: clamp(2.5rem, 6vw + 1rem, 4.25rem);
  letter-spacing: -0.025em;
  line-height: 0.98;
}
.blog-hero-text .sub {
  text-wrap: pretty;
  max-width: 34rem;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.blog-hero-text .availability {
  display: inline-flex;
  margin-top: var(--s-3);
}

.article-head {
  padding-block: var(--s-7) var(--s-5);
}
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-small); color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: var(--s-4);
}
.article-back:hover { color: var(--signal); }
.article-back::before { content: "←"; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  font-size: var(--t-small); color: var(--ink-muted);
  margin-bottom: var(--s-3);
}
.article-meta > span:first-child {
  color: var(--signal); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-size: var(--t-tiny);
}
.article-meta time::before { content: "· "; }
.article-meta time:first-child::before { content: ""; }
.article-title {
  font-size: var(--t-display);
  line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 800;
}
.article-lede {
  margin-top: var(--s-4);
  font-size: 1.25rem; color: var(--ink-soft);
  line-height: 1.5;
  max-width: 36em;
}
.article-byline {
  display: flex; align-items: center; gap: var(--s-3);
  margin-top: var(--s-5);
  font-size: var(--t-small);
}
.byline-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--steel); color: white;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem;
  flex: 0 0 auto;
  overflow: hidden;
}
.byline-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.byline-name { font-weight: 700; color: var(--ink); }
.byline-role { color: var(--ink-muted); }

.article-body {
  padding-block: var(--s-5) var(--s-7);
  font-size: 1.125rem; line-height: 1.7;
  color: var(--ink-soft);
}
.article-body p,
.article-body ul,
.article-body ol,
.article-body figure,
.article-body blockquote,
.article-body table {
  margin-bottom: var(--s-5);
}
.article-body > .wrap > p:first-of-type::first-letter {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  float: left;
  margin: 6px 10px -2px 0;
  color: var(--ink);
}
.article-body h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin-top: var(--s-7); margin-bottom: var(--s-4);
  font-weight: 800; letter-spacing: -0.015em;
  color: var(--ink);
  scroll-margin-top: var(--s-6);
}
.article-body h2::before {
  content: ""; display: block; width: 48px; height: 3px;
  background: var(--signal); margin-bottom: var(--s-3);
}
.article-body h3 {
  font-size: 1.25rem; margin-top: var(--s-6); margin-bottom: var(--s-3);
  font-weight: 700; color: var(--ink);
}
.article-body a { color: var(--steel); }
.article-body a:hover { color: var(--signal); }
.article-pullquote {
  margin: var(--s-6) 0;
  padding: var(--s-3) 0 var(--s-3) var(--s-5);
  border-left: 4px solid var(--signal);
  font-size: 1.35rem; font-weight: 700;
  line-height: 1.35; letter-spacing: -0.01em;
  color: var(--ink);
  font-style: normal;
}
.article-body ul, .article-body ol {
  padding-left: var(--s-5);
}
.article-body li { margin-bottom: var(--s-2); }
.article-body strong { color: var(--ink); }
.article-body blockquote {
  margin-inline: 0;
  padding: var(--s-4) var(--s-5);
  border-left: 4px solid var(--signal);
  background: var(--paper-warm);
  color: var(--ink-soft);
  font-style: italic;
}
.article-body table {
  width: 100%; border-collapse: collapse;
  font-size: 1rem;
}
.article-body th, .article-body td {
  padding: var(--s-3); text-align: left;
  border-bottom: 1px solid var(--line);
}
.article-body th { background: var(--paper-warm); font-weight: 700; }
.article-body hr {
  border: none; border-top: 1px solid var(--line); margin-block: var(--s-6);
}

.article-cta {
  margin: var(--s-6) 0;
  padding: var(--s-5); background: var(--ink); color: var(--paper);
  border-radius: var(--r-3);
  display: grid; gap: var(--s-3);
}
.article-cta strong { color: var(--paper); }
.article-cta .btn { margin-top: var(--s-3); }

/* ============================================================
   JOB POSTING CARD — structured recruiting layout used on city
   pages that have a current opening (Tsawwassen for now).
   ============================================================ */
.job-posting {
  background: linear-gradient(180deg, #fffaf0 0%, #fff 60%);
  border: 2px solid var(--gold);
  border-radius: var(--r-3);
  box-shadow: 0 10px 32px rgba(200, 147, 42, 0.18);
  padding: var(--s-6) var(--s-5);
  scroll-margin-top: 80px;
}
@media (min-width: 760px) {
  .job-posting { padding: var(--s-7) var(--s-7); }
}

.job-posting-header { border-bottom: 1px solid var(--line); padding-bottom: var(--s-5); margin-bottom: var(--s-5); }
.job-posting-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-3);
}
.job-posting-pulse {
  width: 9px; height: 9px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--gold);
  animation: jobPostingPulse 2.4s cubic-bezier(0.66, 0, 0, 1) infinite;
}
@keyframes jobPostingPulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 147, 42, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(200, 147, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 147, 42, 0); }
}
@media (prefers-reduced-motion: reduce) { .job-posting-pulse { animation: none; } }

.job-posting-title {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.2rem);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 800;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.job-posting-sub {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: var(--s-5);
}

.job-posting-meta {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--s-3);
}
@media (min-width: 760px) {
  .job-posting-meta { grid-template-columns: 1fr 1fr; }
}
.job-posting-meta li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--s-3);
  font-size: 0.95rem;
  align-items: start;
}
.job-posting-meta-key {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.82rem;
}
.job-posting-meta-val { color: var(--ink-soft); line-height: 1.5; }
.job-posting-meta-val strong { color: var(--ink); }

.job-posting-grid { display: grid; gap: var(--s-6); }
@media (min-width: 880px) {
  .job-posting-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
}
.job-col h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: var(--s-5);
  margin-bottom: var(--s-3);
  color: var(--ink);
}
.job-col h3:first-child { margin-top: 0; }
.job-col h3::before {
  content: "";
  display: inline-block;
  width: 32px; height: 3px;
  background: var(--signal);
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 2px;
}
.job-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.job-list li {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-left: 26px;
  position: relative;
}
.job-list li::before {
  content: "→";
  position: absolute; left: 4px; top: 0;
  color: var(--signal); font-weight: 800;
}
.job-list-checked li::before { content: "✓"; color: var(--green); }
.job-list-muted li {
  color: var(--ink-muted);
  font-style: italic;
  padding-left: 22px;
}
.job-list-muted li::before {
  content: "–";
  color: var(--ink-muted);
  font-weight: 800;
}
.job-list li strong { color: var(--ink); font-weight: 700; font-style: normal; }

.job-posting-quote {
  margin: var(--s-7) 0;
  padding: var(--s-5);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-3);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-4);
  align-items: start;
}
.job-posting-quote-avatar img {
  width: 64px; height: 64px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold);
  display: block;
}
.job-posting-quote blockquote {
  margin: 0;
  padding: 0;
  font-style: normal;
  background: transparent;
  border: 0;
  color: var(--paper);
}
.job-posting-quote blockquote p {
  font-size: 1.1rem;
  line-height: 1.55;
  margin-bottom: var(--s-3);
}
.job-posting-quote figcaption {
  font-size: var(--t-small);
  color: rgba(250, 250, 247, 0.78);
}
.job-posting-quote figcaption strong { color: var(--paper); }

.job-posting-apply {
  background: var(--signal-soft);
  border: 1px solid var(--signal);
  border-radius: var(--r-3);
  padding: var(--s-5);
  margin-top: var(--s-6);
  text-align: center;
}
.job-posting-apply h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--s-4);
  color: var(--ink);
}
.job-posting-apply-ctas {
  display: grid; gap: var(--s-3);
  max-width: 580px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .job-posting-apply-ctas { grid-template-columns: 1fr 1fr; }
}
.job-posting-apply-note {
  margin-top: var(--s-4);
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-left: auto; margin-right: auto;
}

.job-posting-faq {
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.job-posting-faq h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--s-4);
}
.job-posting-faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--s-3) 0;
}
.job-posting-faq summary {
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: var(--s-5);
  color: var(--ink);
}
.job-posting-faq summary::-webkit-details-marker { display: none; }
.job-posting-faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 0;
  font-size: 1.3rem;
  color: var(--signal);
  font-weight: 800;
}
.job-posting-faq details[open] summary::after { content: "–"; }
.job-posting-faq details p {
  margin-top: var(--s-3);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.related {
  border-top: 1px solid var(--line);
  padding-block: var(--s-6);
}
.related h3 { margin-bottom: var(--s-4); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.related-grid {
  display: grid; gap: var(--s-4);
  grid-template-columns: 1fr;
}
.related-card {
  display: block; padding: var(--s-4);
  background: white; border: 1px solid var(--line); border-radius: var(--r-2);
  text-decoration: none; color: var(--ink);
  transition: all 0.12s ease;
}
.related-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-2); color: var(--ink); }
.related-card-title { font-weight: 700; font-size: 1.0625rem; }
.related-card-excerpt { color: var(--ink-muted); font-size: var(--t-small); margin-top: 4px; }

/* ---------- Blog filter / search bar (above post-list) ---------- */
.blog-filter {
  margin-bottom: var(--s-5);
  padding: var(--s-4);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
}
.blog-filter-row {
  display: flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.blog-search {
  flex: 1 1 auto;
  font: inherit;
  font-size: 1rem;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  background: var(--paper);
  color: var(--ink);
}
.blog-search:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}
.blog-filter-count {
  font-size: var(--t-small);
  color: var(--ink-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.blog-categories {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.blog-cat-btn {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 11px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.blog-cat-btn:hover { color: var(--ink); border-color: var(--ink-muted); }
.blog-cat-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.post-item.is-hidden { display: none; }

.post-list { display: grid; gap: var(--s-5); }
.post-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  text-decoration: none; color: var(--ink);
  transition: all 0.18s ease;
  overflow: hidden;
}
.post-item:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  color: var(--ink);
}
.post-item:hover .post-item-thumb img { transform: scale(1.04); }
.post-item-thumb {
  aspect-ratio: 16 / 9;
  background: var(--paper-warm);
  overflow: hidden;
}
.post-item-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.post-item-body {
  padding: var(--s-5);
  display: flex; flex-direction: column;
  justify-content: center;
}
.post-item-eyebrow {
  font-size: var(--t-tiny); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--signal-hover); /* darker variant — WCAG AA on --paper at small text */
}
.post-item-title {
  font-size: 1.35rem; font-weight: 800;
  letter-spacing: -0.01em; margin-top: var(--s-2);
  line-height: 1.2;
  color: var(--ink);
}
.post-item-excerpt {
  color: var(--ink-soft); margin-top: var(--s-2);
  font-size: 1rem; line-height: 1.55;
}
.post-item-meta {
  color: var(--ink-muted); font-size: var(--t-small);
  margin-top: var(--s-3);
}

@media (min-width: 640px) {
  .post-item {
    grid-template-columns: 280px 1fr;
  }
  .post-item-thumb {
    aspect-ratio: auto;
    height: 100%;
    min-height: 200px;
  }
}

@media (min-width: 640px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Cross-city hint banner ---------- */
.cross-city-hint {
  background: var(--steel);
  color: var(--paper);
  padding: var(--s-3) 0;
  font-size: var(--t-small);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cross-city-hint a {
  color: var(--paper);
  font-weight: 700;
  text-decoration: underline;
}
.cross-city-hint a:hover { color: var(--signal); }
.cross-city-hint-dismiss {
  background: none; border: 1px solid rgba(255,255,255,0.3);
  color: var(--paper); width: 32px; height: 32px;
  border-radius: 50%; font-size: 18px; line-height: 1;
  cursor: pointer; flex: 0 0 auto;
}
.cross-city-hint-dismiss:hover { background: rgba(255,255,255,0.1); }

/* ---------- Print ---------- */
@media print {
  .sticky-cta, .site-header { display: none; }
  body { background: white; color: black; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- /cities/ landing page — all-cities grid ---------- */
.cities-index-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cities-index-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cities-index-grid { grid-template-columns: 1fr 1fr 1fr; } }
.cities-index-card {
  display: flex; flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cities-index-card:hover,
.cities-index-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--signal);
  box-shadow: var(--shadow-2);
  outline: none;
}
.cities-index-card h2 {
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em;
  margin: 0;
}
.cities-index-meta {
  font-size: var(--t-small); color: var(--ink-muted);
  margin: 0;
}
.cities-index-blurb {
  font-size: 1rem; color: var(--ink-soft); line-height: 1.5;
  margin: var(--s-1) 0 0;
}
.cities-index-arrow {
  margin-top: auto;
  padding-top: var(--s-2);
  font-weight: 700; font-size: var(--t-small);
  color: var(--signal-hover);
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}
.cities-index-card:hover .cities-index-arrow {
  color: var(--signal);
  transform: translateX(3px);
}
