/* Jerry's Home Services: home page
   Tokens come from the house itself: white trim, shutter ink, brick, Jerry's logo red, golden hour.
   One family (Archivo, variable width + weight): wide and heavy for display, normal width for reading. */
/* Archivo, self-hosted: one variable latin file (weight 400-900, width 100-125%: the ranges the site uses, tools/make_font_limited.py), preloaded in <head>.
   The fallback is Arial, scaled so the swap barely reflows. Arial has no width axis, so there is one fallback face
   per band of font-stretch (measured against the real font: body ~100%, hero headline ~122%, wide display ~136%),
   with ascent/descent overrides = Archivo's metrics (0.878 / 0.210) divided by each size-adjust. */
@font-face {
  font-family: "Archivo";
  src: url('/assets/fonts/archivo-latin.woff2?v=8a868291') format('woff2');
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); font-stretch: 62% 104%; size-adjust: 100%; ascent-override: 87.8%; descent-override: 21%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); font-stretch: 105% 114%; size-adjust: 122%; ascent-override: 72%; descent-override: 17.2%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); font-stretch: 115% 125%; size-adjust: 136%; ascent-override: 64.6%; descent-override: 15.4%; }

:root {
  --trim: #FBF8F3;
  --surface: #FFFFFF;
  --ink: #1D1A17;
  --muted: #6B625A;
  --line: #E7E0D6;
  --field-edge: #8C8278;     /* text fields and the contact switch: 3.76:1 on white, 3.55:1 on --trim (WCAG 1.4.11 needs 3:1); --line is for dividers only */
  --red: #B21F33;
  --red-deep: #8E1828;
  --gold: #F0A830;
  --dusk: #24180F;
  --dusk-2: #33241A;
  --on-dusk: #F3EADF;
  --on-dusk-muted: #C9B9A6;

  --top-h: 76px;
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow: 0 18px 40px -18px rgba(29, 26, 23, .45), 0 2px 6px rgba(29, 26, 23, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: clamp(var(--s4), 4vw, var(--s7));
  --max: 1240px;

  --font: "Archivo", "Archivo Fallback", ui-sans-serif, sans-serif;
  --step-0: 1.0625rem;
  --step-meta: .9375rem;
  --step-label: .8125rem;
  --step-eyebrow: var(--step-label);
  --step-stat: clamp(2.6rem, 1.6rem + 3vw, 4.2rem);
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-h2: clamp(1.9rem, 1.2rem + 1.9vw, 2.9rem);
  --step-3: clamp(2.2rem, 1.25rem + 2.6vw, 3.9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + var(--s4)); }
body {
  margin: 0;
  background: var(--trim);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }   /* a phone number never breaks across lines */
h1, h2, h3 { margin: 0; }
h1, h2 { text-wrap: balance; }
h3 { font-size: var(--step-1); line-height: 1.2; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* "Pause animations" (WCAG 2.2.2): html.motion-off pauses every CSS animation in place; house.js stops the leaves and snow
   and site.js the job videos. The buttons are hidden without JS (nothing moves) and under reduced motion (nothing loops). */
.motion-btn {
  position: absolute; z-index: 6; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(20, 14, 9, .62); color: #FFFFFF; cursor: pointer; transition: background-color .2s var(--ease);
}
.motion-btn[hidden] { display: none; }
.motion-btn:hover { background: rgba(20, 14, 9, .86); }
.motion-btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink); }
.motion-btn svg { fill: currentColor; }
.motion-btn .mb-play, .motion-off .motion-btn .mb-pause { display: none; }
.motion-off .motion-btn .mb-play { display: block; }
.motion-off *, .motion-off *::before, .motion-off *::after { animation-play-state: paused !important; }
.house > .motion-hero { right: var(--gutter); bottom: var(--s3); }
@media (max-width: 760px), (max-aspect-ratio: 6/5) { .house > .motion-hero { bottom: auto; top: calc(var(--ch) - 56px); right: var(--s3); } }
@media (prefers-reduced-motion: reduce) { .motion-btn { display: none !important; } }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: 100; background: var(--ink); color: var(--trim); padding: var(--s2) var(--s4); border-radius: var(--r-sm); }
.skip:focus { top: var(--s2); }
/* focus: ink on the light page (16:1), cream over the house and the red closer; gold was only 1.9:1 on trim */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.house :focus-visible, .closer :focus-visible { outline-color: var(--trim); }
.house .card :focus-visible { outline-color: var(--ink); }

.eyebrow { margin: 0; font-size: var(--step-eyebrow); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
h1 {
  margin-top: var(--s2);
  font-size: var(--step-3); line-height: 1.05; font-weight: 880; font-stretch: 122%; letter-spacing: -.022em;
  text-wrap: balance;
}
h2 {
  font-size: var(--step-h2); line-height: 1.05; font-weight: 860; font-stretch: 118%; letter-spacing: -.018em;
  text-wrap: balance;
}
.section-head { display: grid; gap: var(--s2); margin-bottom: var(--s6); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 var(--s5);
  border-radius: var(--r-pill);
  font-weight: 750; font-stretch: 108%; text-decoration: none; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn-red { background: var(--red); color: var(--surface); box-shadow: 0 6px 18px -10px rgba(142, 24, 40, .8); }
.btn-red:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn-red:active { transform: translateY(1px); }
.btn-light { background: var(--trim); color: var(--red-deep); }
.btn-light:hover { background: var(--surface); transform: translateY(-1px); }
.btn-lg { min-height: 54px; padding: 0 var(--s6); font-size: 1.08rem; }
.call { font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.call:hover { color: var(--red); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  height: var(--top-h);
  display: flex; align-items: center; gap: var(--s6);
  padding: 0 var(--gutter);
  background: rgba(251, 248, 243, .92);   /* = trim at 92%; plain rgba so pre-16.2 Safari never gets a see-through header */
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.top.is-scrolled { border-bottom-color: var(--line); }
.brand img { width: auto; height: 60px; }   /* the small-size logo (brand/logo-clean): HOME SERVICES stays legible */
.brand { position: relative; display: inline-flex; }
.brand .logo-light { position: absolute; left: 0; top: 0; opacity: 0; }
.brand img { transition: opacity .25s var(--ease); }
/* home: over the sky the header is see-through and cream with the white logo; solid again once the art has scrolled past
   (house.js sets .is-solid). The red Get a quote button stays red throughout. */
.js .home .top { transition: background-color .25s var(--ease), color .25s var(--ease), border-color .2s var(--ease); }
.js .home .top:not(.is-solid) {
  background: linear-gradient(to bottom, rgba(14, 30, 80, .5), rgba(14, 30, 80, .18) 70%, rgba(14, 30, 80, 0));   /* a poster's top edge: the logo and nav read over bright cloud */
  background-origin: border-box;   /* the gradient spans the 1 px border too (or it tiles again there, as a dark hairline) */
  -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent;
  color: var(--trim); text-shadow: 0 1px 12px rgba(16, 28, 70, .45);
}
.js .home .top:not(.is-solid) .btn { text-shadow: none; }
.js .home .top:not(.is-solid) .logo-ink { opacity: 0; }
.js .home .top:not(.is-solid) .logo-light { opacity: 1; }
.js .home .top:not(.is-solid) .nav a::after { background: var(--trim); }
.js .home .top:not(.is-solid) .phone:hover { color: var(--trim); }
.nav { display: flex; gap: var(--s5); margin-left: var(--s4); }
.nav a, .phone { text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a { position: relative; padding: var(--s2) 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.phone { margin-left: auto; font-variant-numeric: tabular-nums; }
.phone:hover { color: var(--red); }
.phone-label { display: none; }

/* ---------- hero: the house in its street under a big sky, the headline in the sky (Awwwards pass, 2026-10-16) ----------
   One canvas: the approved art with generated sky above it (tools/make_hero_tall.py), 3:2, anchored to the bottom of the
   screen. The stage (the scene, its crew, clips and night layers) sits exactly where the art is on that canvas, and its top
   6.7% fades into the sky so the art's old top edge is gone. Landscape screens pin the hero for --track of scroll while the
   evening comes in (house.js initDusk); phones and portrait screens keep the walk along the house and are never pinned.
   The header sits over the sky (transparent, cream, the white logo) until the art has scrolled past it. */
:root { --track: 170svh; }   /* night falls, then the lights (house.js initDusk) */
.home .hero { margin-top: calc(-1 * var(--top-h)); }
.hero-pin {
  --cw: clamp(160.3svh, 100vw, 200svh);                  /* the canvas width: covers the screen, never letterboxed on 16:10 to 21:9 */
  --ch: calc(var(--cw) / 1.5);
  --stage-top: calc(100svh - var(--ch) * .63636);         /* where the art (and the roofline area) starts on screen */
  position: relative; height: 100svh; min-height: 520px; overflow: hidden;
  background: #4a7fd6;                                    /* the sky, until the art paints */
}
.dusk-on .hero { height: calc(100svh + var(--track)); }
/* wide, short screens crop the canvas's sky the most: set the canvas 4% lower (only sidewalk goes, under the credits' scrim)
   so the headline keeps its size */
@media (min-aspect-ratio: 8/5) {
  .hero-pin { --stage-top: calc(100svh - var(--ch) * .59636); }
  .hero-pin .house-canvas { bottom: calc(var(--ch) * -.04); }
}
.dusk-on .hero-pin { position: sticky; top: 0; }
.house { --feather: 280px; position: absolute; inset: 0; isolation: isolate; }
.wing { display: none; }
@media (min-aspect-ratio: 2/1) {
  .wing { display: block; position: absolute; bottom: calc(var(--ch) * -.04); height: var(--ch); width: calc((100% - var(--cw)) / 2 + 140px); z-index: -1; pointer-events: none; }
  .wing-l { left: 0; }
  .wing-r { right: 0; }
  .wing i { position: absolute; inset: 0; background: center / 100% 100% no-repeat; }
  .wing .w-day { opacity: 1; }
  .wing .w-cdusk { opacity: var(--c1, 0); }
  .wing .w-cnight { opacity: var(--c2, 0); }
  .wing-l .w-snow { opacity: clamp(0, calc(var(--g, 0) * 12), 1); }
  .wing-r .w-snow { opacity: clamp(0, calc((var(--g, 0) - .9) * 12), 1); }
  .wing .w-lit { opacity: var(--n3, 0); }
  .wing-l .w-day { background-image: url('/assets/scenes/door/wing-day-l.webp'); }
  .wing-r .w-day { background-image: url('/assets/scenes/door/wing-day-r.webp'); }
  .house.night-on .wing-l .w-cdusk { background-image: url('/assets/scenes/door/wing-cdusk-l.webp'); }
  .house.night-on .wing-r .w-cdusk { background-image: url('/assets/scenes/door/wing-cdusk-r.webp'); }
  .house.night-on .wing-l .w-cnight { background-image: url('/assets/scenes/door/wing-cnight-l.webp'); }
  .house.night-on .wing-r .w-cnight { background-image: url('/assets/scenes/door/wing-cnight-r.webp'); }
  .house.night-on .wing-l .w-snow { background-image: url('/assets/scenes/door/wing-snow-l.webp'); }
  .house.night-on .wing-r .w-snow { background-image: url('/assets/scenes/door/wing-snow-r.webp'); }
  .house.night-on .wing-l .w-lit { background-image: url('/assets/scenes/door/wing-lit-l.webp'); }
  .house.night-on .wing-r .w-lit { background-image: url('/assets/scenes/door/wing-lit-r.webp'); }
  .wing::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10, 14, 28, .35), transparent); }
  .wing-r::after { background: linear-gradient(to left, rgba(10, 14, 28, .35), transparent); }
}
.house-scroll { position: absolute; inset: 0; }
.house-canvas { position: absolute; left: 50%; bottom: 0; width: var(--cw); aspect-ratio: 3 / 2; translate: -50% 0; background: #3a68b8; }   /* the deep sky, under the art (and what contrast checkers measure the sky copy against) */
/* the canvas plate moves as one piece with the house: the stage-inner's transform, about the stage's centre (50%, 68.18%) */
.house-back {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  transform-origin: 50% 68.182%;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.02);
  transition: transform .6s var(--ease), scale 1.6s var(--ease);
}
.house-back picture { display: contents; }
.back-day { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.house-back::after { content: ''; position: absolute; inset: 0; z-index: 2; background: rgba(24, 14, 6, .55); opacity: 0; transition: opacity .32s var(--ease); }
.house.is-active .house-back::after { opacity: 1; }
.house.is-moving .house-back::after { opacity: .4; }
.stage {
  position: absolute; z-index: 1; left: 12.468%; top: 36.364%; width: 75.032%; height: 63.636%;
  overflow: hidden; touch-action: pan-x pan-y;
}
/* the stage's top 6.7%: a strip of the canvas, opaque at the top and clear at the bottom, blends the art's old top edge into the
   sky (tools/make_hero_tall.py). It is a static image: a CSS mask on the stage did the same but repainted with every leaf. The
   day strip takes the scene's push-in about the stage's centre (7.46 strip-heights down). The night layers need none: each is
   a crop of the tall canvas, sky included (tools/make_night.py). */
.band-day { position: absolute; left: 0; right: 0; top: 0; bottom: auto; height: 6.7%; pointer-events: none; background: center top / 100% 100% no-repeat; }
.band-day { background-image: url('/assets/scenes/door/band-day-1600.webp'); transform-origin: 50% 746%; }
.js .band-day { transform: scale(1.035); transition: transform 1.6s var(--ease); }
.js .house.is-ready .band-day { transform: none; }
@media (max-width: 760px) {
  .band-day { background-image: url('/assets/scenes/door/band-day-1080.webp'); }
}

/* the sky: headline by day, the payoff at night. house.js sets --hd (day copy leaving) and --hn (night copy arriving) on .hero */
.hero-sky {
  position: absolute; left: 0; right: 0; top: var(--top-h); z-index: 3;
  height: calc(var(--stage-top) - var(--top-h) + var(--ch) * .03);
  display: grid; place-items: center; padding: 0 var(--gutter);
  text-align: center; color: var(--trim); pointer-events: none;
  --title: clamp(34px, min(6.4vw, calc((var(--stage-top) - var(--top-h)) * .33)), 128px);
}
.hero-sky::before {                       /* a soft pool of evening-blue behind the words: legible wherever the sky is pale */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(1100px, 100%); height: 120%; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(22, 44, 110, .26), rgba(22, 44, 110, 0));
}
.hero-day, .hero-night { grid-area: 1 / 1; display: grid; justify-items: center; }
.hero-sky .eyebrow { color: var(--trim); opacity: .92; text-shadow: 0 1px 10px rgba(16, 28, 70, .45); }
.hero-sky h1 {
  margin: var(--s2) 0 0; font-size: var(--title); line-height: .96; font-weight: 900; font-stretch: 122%; letter-spacing: -.02em;
  text-shadow: 0 2px 28px rgba(16, 28, 70, .38), 0 1px 2px rgba(16, 20, 40, .3);
}
.hero-sky h1 .h1-2 { display: block; }
.hero-sky .hero-sub { color: var(--trim); }
.hero-sub { margin: var(--s4) 0 0; max-width: 58ch; font-size: clamp(1rem, .55vw + .8rem, 1.2rem); line-height: 1.45; text-shadow: 0 1px 12px rgba(16, 28, 70, .5); }
.hero-day { opacity: calc(1 - var(--hd, 0)); transform: translateY(calc(var(--hd, 0) * -40px)); }
.dusk-on .hero-day, .dusk-on .hero-night { will-change: opacity, transform; }   /* layers from the start: the first scroll never pays to raster the big type */
.hero-night { opacity: calc(var(--hn, 0) * (1 - var(--hx, 0))); transform: translateY(calc((1 - var(--hn, 0)) * 20px)); visibility: hidden; }   /* --hx: past the track, it fades before reaching the header */
.hero.is-done .hero-night { visibility: visible; }
.hero.is-done .hero-night a { pointer-events: auto; }
.night-title { margin: 0; font-size: calc(var(--title) * .82); line-height: 1; font-weight: 900; font-stretch: 122%; letter-spacing: -.02em; text-shadow: 0 2px 28px rgba(4, 8, 30, .6); }
.night-line { margin: var(--s3) 0 var(--s5); font-size: clamp(1rem, .55vw + .8rem, 1.2rem); color: var(--on-dusk); text-shadow: 0 1px 12px rgba(4, 8, 30, .6); }

/* the credits: the proof, quiet, along the bottom of the scene */
.hero-credits {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: center; padding: var(--s8) var(--gutter) var(--s3);
  background: linear-gradient(to top, rgba(20, 12, 6, .66), rgba(20, 12, 6, .32) 55%, rgba(20, 12, 6, 0));
  color: var(--trim); pointer-events: none;
}
.hero-credits .proof-row { margin: 0; justify-content: center; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.hero-credits .proof-row a { pointer-events: auto; }
.hero-credits .proof-row span { color: var(--gold); }
.rating { margin: 0; font-weight: 500; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* phones and portrait screens: no pin; the canvas is the stage's columns only, as wide as a walk along the house */
@media (max-width: 760px), (max-aspect-ratio: 6/5) {
  .hero-pin {
    --cw: min(170vw, calc((100svh - var(--top-h)) * 1.1255));
    --ch: calc(var(--cw) / 1.1255);
    height: auto; min-height: 0; overflow: visible; background: none;
  }
  .dusk-on .hero { height: auto; }
  .dusk-on .hero-pin { position: relative; }
  .house { position: relative; inset: auto; }
  .house-scroll { position: relative; inset: auto; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
  .house-scroll::-webkit-scrollbar { display: none; }
  .house-scroll:focus-visible { outline: 3px solid var(--trim); outline-offset: -3px; }
  .house-canvas { position: relative; left: 0; bottom: auto; translate: none; aspect-ratio: 2377 / 2112; }
  .house-back { transform: none; }
  .stage { left: 0; width: 100%; }
  .hero-sky {
    height: calc(var(--ch) * .36364 - var(--top-h) + var(--ch) * .02);
    padding: 0 var(--s4);
    --title: clamp(28px, min(8.4vw, calc((var(--ch) * .36364 - var(--top-h)) * .3)), 64px);
  }
  .hero-sky .eyebrow { display: none; }
  .hero-sub { margin-top: var(--s2); font-size: 1rem; line-height: 1.4; max-width: 34ch; }
  .hero-night { display: none; }
  .hero-credits { position: static; display: block; padding: 0 var(--gutter) var(--s5); background: none; color: var(--ink); }
  .hero-credits .proof-row { justify-content: flex-start; text-shadow: none; }
  .hero-credits .proof-row span { color: var(--red); }
}

.stage-inner {
  position: absolute; inset: 0;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.02);
  transition: transform .6s var(--ease);
  will-change: transform;
}
.stage-inner > picture { display: contents; }
.scene { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
/* arrival: the house is visible from the first paint (it is the LCP image and must never wait on JS);
   it only settles from a slight push-in once decoded. The crew markers and bubble follow once the data is live. */
.js .scene { transform: scale(1.035); transition: transform 1.6s var(--ease); }
.js .house.is-ready .scene { transform: none; }
.js .house-back { scale: 1.035; }                /* the plate takes the same push-in as the scene, at the same time */
.js .house.is-ready .house-back { scale: 1; }

.dim {
  position: absolute; inset: 0;
  background: rgba(24, 14, 6, .55);
  opacity: 0;
  transition: opacity .32s var(--ease);
  pointer-events: none;
}
.house.is-active .dim { opacity: 1; }
.house.is-moving .dim { opacity: .4; }   /* soft spotlight: the clip sits above the dim, its feathered edge makes the halo */
.patches img {
  position: absolute;
  opacity: 0;
  transition: opacity .32s var(--ease), filter .32s var(--ease);
  pointer-events: none;
}
.patches img.on { opacity: 1; filter: brightness(1.07) saturate(1.06); }

/* beacons: small, quiet, staggered: "these people are interactive" without seven blinking alarms */
.beacons span {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--surface);
  box-shadow: 0 0 0 2px rgba(178, 31, 51, .85), 0 2px 8px rgba(0, 0, 0, .35);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  opacity: 0; transform: scale(.4);
}
.house.is-live .beacons span { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i, 0) * .09s); }
.beacons span::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .8);
  animation: ping 3.2s cubic-bezier(.2, .6, .3, 1) infinite;
  animation-delay: calc(var(--i, 0) * .45s);
}
@keyframes ping { 0% { transform: scale(1); opacity: .85; } 70%, 100% { transform: scale(2.4); opacity: 0; } }
.house.is-active .beacons span, .house.is-moving .beacons span { opacity: 0; transform: scale(.5); transition-delay: 0s; }
.house.is-active .beacons span.on { opacity: 1; transform: scale(1); }

/* keyboard targets sit over each crew box; the pointer uses the hit map instead */
.hots a { position: absolute; pointer-events: none; border-radius: var(--r-md); }
.hots a:focus-visible { outline: 3px solid var(--trim); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(29, 26, 23, .7); }   /* reads on white trim and dark brick */
.stage.has-target { cursor: pointer; }

.leaves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.snowgl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 19; }   /* over the whole scene (.house-canvas), just under .gust (20) */
.motion-off .snowgl { visibility: hidden; }

/* motion clips: generated from the illustration itself and masked to the moving area */
.motion video {
  position: absolute; display: block; object-fit: fill;
  opacity: 0; transition: opacity .3s var(--ease);
  pointer-events: none;
}
.motion video.on { opacity: 1; }
.house.is-moving .bubble { opacity: 0; transform: scale(.9); }

/* ---------- First Snow (v11.1, 2026-10-27) ----------
   Braidon picked "First Snow (Recommended)" over keeping v10 or "The Reveal".
   --c1 / --c2 bring blue hour and night to the working team; --g moves a wind-driven snow front across the yard.
   Counter-translated snow wrappers carry a static feather; turbulent puffs and depth-layered snow cover the front.
   --n2 lights each room, --n3 sends the light wave from the door; snow.json supplies their static cells and strips.
   --hd / --hn fade day and payoff copy; --hx retires the payoff beyond the pinned track.
   The damped follower and IntersectionObserver gate live in initDusk. Images load only with .night-on.
   Reduced motion, ?nodusk and no JS keep the day hero. */
.night, .night i, .night div, .house-back i { position: absolute; inset: 0; pointer-events: none; }
.night i, .house-back i { display: block; background: center / 100% 100% no-repeat; opacity: 0; }
.house.night-on .n-cdusk { opacity: var(--c1, 0); background-image: image-set(url('/assets/scenes/door/n5-cdusk-1920.avif') type('image/avif') 1x, url('/assets/scenes/door/n5-cdusk-2377.avif') type('image/avif') 2x, url('/assets/scenes/door/n5-cdusk-1920.webp') type('image/webp') 1x, url('/assets/scenes/door/n5-cdusk-2377.webp') type('image/webp') 2x); }   /* the team at blue hour (tools/make_crewnight.py) */
.house.night-on .n-cnight { opacity: var(--c2, 0); background-image: image-set(url('/assets/scenes/door/n5-cnight-1920.avif') type('image/avif') 1x, url('/assets/scenes/door/n5-cnight-2377.avif') type('image/avif') 2x, url('/assets/scenes/door/n5-cnight-1920.webp') type('image/webp') 1x, url('/assets/scenes/door/n5-cnight-2377.webp') type('image/webp') 2x); }   /* the team at night */
.house.night-on .n-snow { opacity: 1; background-image: image-set(url('/assets/scenes/door/n6-snow-1920.avif') type('image/avif') 1x, url('/assets/scenes/door/n6-snow-2377.avif') type('image/avif') 2x, url('/assets/scenes/door/n6-snow-1920.webp') type('image/webp') 1x, url('/assets/scenes/door/n6-snow-2377.webp') type('image/webp') 2x); }
.house.night-on .n-wglow { opacity: var(--n2, 0); background-image: image-set(url('/assets/scenes/door/n6-wglow-1920.avif') type('image/avif') 1x, url('/assets/scenes/door/n6-wglow-2377.avif') type('image/avif') 2x, url('/assets/scenes/door/n6-wglow-1920.webp') type('image/webp') 1x, url('/assets/scenes/door/n6-wglow-2377.webp') type('image/webp') 2x); }
.house.night-on .n-wins i { opacity: clamp(0, calc((var(--n2, 0) - var(--d, 0) * .7) * 3.4), 1); background-image: image-set(url('/assets/scenes/door/n6-wcore-1920.avif') type('image/avif') 1x, url('/assets/scenes/door/n6-wcore-2377.avif') type('image/avif') 2x, url('/assets/scenes/door/n6-wcore-1920.webp') type('image/webp') 1x, url('/assets/scenes/door/n6-wcore-2377.webp') type('image/webp') 2x); }
.house.night-on .n-sglow { opacity: var(--n3, 0); background-image: image-set(url('/assets/scenes/door/n6-sglow-1920.avif') type('image/avif') 1x, url('/assets/scenes/door/n6-sglow-2377.avif') type('image/avif') 2x, url('/assets/scenes/door/n6-sglow-1920.webp') type('image/webp') 1x, url('/assets/scenes/door/n6-sglow-2377.webp') type('image/webp') 2x); }
.house.night-on .n-strs i { opacity: clamp(0, calc((var(--n3, 0) - var(--d, 0) * .72) * 3.6), 1); background-image: image-set(url('/assets/scenes/door/n6-score-1920.avif') type('image/avif') 1x, url('/assets/scenes/door/n6-score-2377.avif') type('image/avif') 2x, url('/assets/scenes/door/n6-score-1920.webp') type('image/webp') 1x, url('/assets/scenes/door/n6-score-2377.webp') type('image/webp') 2x); }
@media (max-width: 760px) {
  .house.night-on .n-cdusk { background-image: image-set(url('/assets/scenes/door/n5-cdusk-1080.avif') type('image/avif') 1x, url('/assets/scenes/door/n5-cdusk-1920.avif') type('image/avif') 2x, url('/assets/scenes/door/n5-cdusk-1080.webp') type('image/webp') 1x, url('/assets/scenes/door/n5-cdusk-1920.webp') type('image/webp') 2x); }
  .house.night-on .n-cnight { background-image: image-set(url('/assets/scenes/door/n5-cnight-1080.avif') type('image/avif') 1x, url('/assets/scenes/door/n5-cnight-1920.avif') type('image/avif') 2x, url('/assets/scenes/door/n5-cnight-1080.webp') type('image/webp') 1x, url('/assets/scenes/door/n5-cnight-1920.webp') type('image/webp') 2x); }
  .house.night-on .n-snow { background-image: image-set(url('/assets/scenes/door/n6-snow-1080.avif') type('image/avif') 1x, url('/assets/scenes/door/n6-snow-1920.avif') type('image/avif') 2x, url('/assets/scenes/door/n6-snow-1080.webp') type('image/webp') 1x, url('/assets/scenes/door/n6-snow-1920.webp') type('image/webp') 2x); }
  .house.night-on .n-wglow { background-image: image-set(url('/assets/scenes/door/n6-wglow-1080.avif') type('image/avif') 1x, url('/assets/scenes/door/n6-wglow-1920.avif') type('image/avif') 2x, url('/assets/scenes/door/n6-wglow-1080.webp') type('image/webp') 1x, url('/assets/scenes/door/n6-wglow-1920.webp') type('image/webp') 2x); }
  .house.night-on .n-wins i { background-image: image-set(url('/assets/scenes/door/n6-wcore-1080.avif') type('image/avif') 1x, url('/assets/scenes/door/n6-wcore-1920.avif') type('image/avif') 2x, url('/assets/scenes/door/n6-wcore-1080.webp') type('image/webp') 1x, url('/assets/scenes/door/n6-wcore-1920.webp') type('image/webp') 2x); }
  .house.night-on .n-sglow { background-image: image-set(url('/assets/scenes/door/n6-sglow-1080.avif') type('image/avif') 1x, url('/assets/scenes/door/n6-sglow-1920.avif') type('image/avif') 2x, url('/assets/scenes/door/n6-sglow-1080.webp') type('image/webp') 1x, url('/assets/scenes/door/n6-sglow-1920.webp') type('image/webp') 2x); }
  .house.night-on .n-strs i { background-image: image-set(url('/assets/scenes/door/n6-score-1080.avif') type('image/avif') 1x, url('/assets/scenes/door/n6-score-1920.avif') type('image/avif') 2x, url('/assets/scenes/door/n6-score-1080.webp') type('image/webp') 1x, url('/assets/scenes/door/n6-score-1920.webp') type('image/webp') 2x); }
}
.house.night-on .bn-cdusk { opacity: var(--c1, 0); background-image: image-set(url('/assets/scenes/door/t5-cdusk-1600.avif') type('image/avif') 1x, url('/assets/scenes/door/t5-cdusk-2400.avif') type('image/avif') 2x, url('/assets/scenes/door/t5-cdusk-1600.webp') type('image/webp') 1x, url('/assets/scenes/door/t5-cdusk-2400.webp') type('image/webp') 2x); }
.house.night-on .bn-cnight { opacity: var(--c2, 0); background-image: image-set(url('/assets/scenes/door/t5-cnight-1600.avif') type('image/avif') 1x, url('/assets/scenes/door/t5-cnight-2400.avif') type('image/avif') 2x, url('/assets/scenes/door/t5-cnight-1600.webp') type('image/webp') 1x, url('/assets/scenes/door/t5-cnight-2400.webp') type('image/webp') 2x); }
.house.night-on .bn-snow { opacity: 1; background-image: image-set(url('/assets/scenes/door/t6-snow-1600.avif') type('image/avif') 1x, url('/assets/scenes/door/t6-snow-2400.avif') type('image/avif') 2x, url('/assets/scenes/door/t6-snow-1600.webp') type('image/webp') 1x, url('/assets/scenes/door/t6-snow-2400.webp') type('image/webp') 2x); }
.house.night-on .bn-glow { opacity: clamp(0, calc((var(--n3, 0) - .7) * 3.4), 1); background-image: image-set(url('/assets/scenes/door/t6-glow-1600.avif') type('image/avif') 1x, url('/assets/scenes/door/t6-glow-2400.avif') type('image/avif') 2x, url('/assets/scenes/door/t6-glow-1600.webp') type('image/webp') 1x, url('/assets/scenes/door/t6-glow-2400.webp') type('image/webp') 2x); }   /* the wave reaches the street last */
@media (max-width: 760px), (max-aspect-ratio: 6/5) {
  .house.night-on .bn-cdusk { background-image: image-set(url('/assets/scenes/door/t5-p-cdusk-1080.avif') type('image/avif') 1x, url('/assets/scenes/door/t5-p-cdusk-1600.avif') type('image/avif') 2x, url('/assets/scenes/door/t5-p-cdusk-1080.webp') type('image/webp') 1x, url('/assets/scenes/door/t5-p-cdusk-1600.webp') type('image/webp') 2x); }
  .house.night-on .bn-cnight { background-image: image-set(url('/assets/scenes/door/t5-p-cnight-1080.avif') type('image/avif') 1x, url('/assets/scenes/door/t5-p-cnight-1600.avif') type('image/avif') 2x, url('/assets/scenes/door/t5-p-cnight-1080.webp') type('image/webp') 1x, url('/assets/scenes/door/t5-p-cnight-1600.webp') type('image/webp') 2x); }
  .house.night-on .bn-snow { background-image: image-set(url('/assets/scenes/door/t6-p-snow-1080.avif') type('image/avif') 1x, url('/assets/scenes/door/t6-p-snow-1600.avif') type('image/avif') 2x, url('/assets/scenes/door/t6-p-snow-1080.webp') type('image/webp') 1x, url('/assets/scenes/door/t6-p-snow-1600.webp') type('image/webp') 2x); }
  .house.night-on .bn-glow { display: none; }
}
.night .n-snowwrap, .house-back .bn-snowwrap { position: absolute; inset: 0 calc(-1 * var(--feather)) 0 0; overflow: hidden; pointer-events: none; transform: translateX(var(--wx, -100%));  }
.night .n-snowwrap > i, .house-back .bn-snowwrap > i { inset: 0 var(--feather) 0 0; transform: translateX(var(--wxi, 100%)); }
.house.night-on :is(.n-snowwrap, .bn-snowwrap) { will-change: transform; }
/* 2026-10-27: allocate weather surfaces only when the night needs them. */
.house.night-on :is(.n-snowwrap, .bn-snowwrap) { mask-image: linear-gradient(to left, transparent 0, #000 var(--feather)); -webkit-mask-image: linear-gradient(to left, transparent 0, #000 var(--feather)); }
.gust { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }
.house.is-gusting .gust { display: block; }
/* the light layers are the light the lights add (tools/make_firstsnow.py), screened over the snowy night: at full opacity they
   give the approved lit plate exactly, and opacity works like a dimmer. The cells and strips blend as one group each. */
.house.night-on .night :is(.n-wglow, .n-wins, .n-sglow, .n-strs), .house.night-on .house-back .bn-glow { mix-blend-mode: screen; }
.house.night-warm :is(.n-snowwrap, .bn-snowwrap) { transform: none; opacity: .012; }
.house.night-warm .night i, .house.night-warm .house-back i { opacity: .012; }   /* decode and raster the night layers ahead of the first scroll */
.house.night-warm :is(.n-snowwrap, .bn-snowwrap) > i { transform: none; opacity: 1; }
@media (min-width: 761px) and (min-aspect-ratio: 6/5) {   /* pinned screens: the big night layers get their own GPU layers, rastered once
  during the warm-up, so scrolling only changes their opacity (the first pass dropped frames to raster) */
  .house.night-on :is(.n-cdusk, .n-cnight, .n-snow, .n-wglow, .n-sglow, .bn-cdusk, .bn-cnight, .bn-snow, .bn-glow) { will-change: opacity; }
}
.house.night-on :is(.n-snowwrap, .bn-snowwrap) > i { will-change: transform; }
.house.is-walk :is(.beacons, .bubble) { opacity: 0; }
.house.is-walk .hots { visibility: hidden; }
/* the crew's markers, hint and leaves leave with the crew (filter: opacity() so their own state opacities still apply); once the
   crew is gone the hotspots stop answering, and scrolling back up brings everyone back */
.house.night-on :is(.beacons, .bubble) { filter: opacity(calc(1 - var(--g, 0))); }
/* Leaves fade inside their shared canvas so the arriving snow stays visible. */
.house.is-night .hots { visibility: hidden; }

.bubble {
  position: absolute; left: 54.2%; top: 41%;
  margin: 0; padding: var(--s2) var(--s4);
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-md);
  font-weight: 700; font-stretch: 106%; font-size: clamp(.8rem, .55rem + .55vw, 1.05rem); white-space: nowrap;
  box-shadow: var(--shadow);
  transform-origin: 0 100%;
  opacity: 0; transform: scale(.6);
  transition: opacity .3s var(--ease), transform .32s var(--ease);
}
.house.is-live .bubble { opacity: 1; transform: none; transition-delay: 1s; }
.house.is-live.is-active .bubble, .house.is-live.is-moving .bubble { opacity: 0; transform: scale(.9); transition-delay: 0s; }
.house.is-live.is-walk .bubble { opacity: 0; transform: scale(.9); transition-delay: 0s; }   /* the walk-off and the night: the team has gone */
.bubble::after {
  content: ""; position: absolute; left: 14px; bottom: -8px;
  border: 9px solid transparent; border-bottom: 0; border-top-color: var(--surface);
  transform: skewX(-24deg);
}
.bubble-tap { display: none; }
.is-touch .bubble-hover { display: none; }
.is-touch .bubble-tap { display: inline; }

/* the card that names the service */
.card {
  position: absolute; z-index: 5;
  width: 312px; max-width: calc(100% - 2 * var(--s4));
  padding: var(--s5);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity .22s var(--ease), transform .3s var(--ease);
}
.card.show { opacity: 1; transform: none; }
.card p { margin: 0; }
.card-head { display: flex; align-items: center; gap: var(--s3); }
.card-face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--red); }
.card-kicker { font-size: var(--step-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-title { margin-top: var(--s3) !important; font-size: var(--step-2); line-height: 1.1; font-weight: 850; font-stretch: 118%; letter-spacing: -.01em; }
.card-line { margin-top: var(--s2) !important; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.card-price {
  display: inline-block; margin-top: var(--s3) !important;
  padding: 3px var(--s3); border-radius: var(--r-pill);
  background: var(--gold); color: var(--ink);
  font-weight: 750; font-size: .92rem; font-variant-numeric: tabular-nums;
}
.card-price:empty { display: none; }
.card-cta {
  display: flex; align-items: center; gap: var(--s2);
  min-height: 44px; margin-top: var(--s3);
  color: var(--red); font-weight: 750; text-decoration: none;
}
.card-cta span:last-child { transition: transform .2s var(--ease); }
.card-cta:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.card-cta:hover span:last-child { transform: translateX(3px); }

/* ---------- sections ---------- */
.crew, .promise, .story, .areas { max-width: var(--max); margin: 0 auto; padding: var(--s9) var(--gutter) 0; }

/* What we do: one card per service with Jerry's own job photo (Braidon, 2026-10-20: no animated characters here). Services
   with no photo yet show a drawn brand tile (.svc-tile). Each card is a plain link to its service page. */
.roster { list-style: none; margin: 0; padding: 0; }
.r-card { width: 100%; height: 100%; display: grid; grid-template-rows: auto auto auto 1fr; color: inherit; text-decoration: none; border-radius: var(--r-lg); overflow: hidden; }
.r-card .svc-photo { width: 100%; border-radius: 0; margin-bottom: var(--s4); }
.roster .r-name { padding: 0 var(--s4); font-weight: 800; font-size: var(--step-0); line-height: 1.25; }
.roster .r-sub { padding: var(--s1) var(--s4) 0; font-size: var(--step-meta); color: var(--muted); line-height: 1.3; font-variant-numeric: tabular-nums; }

.promise-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); }
.promise-list li { border-top: 2px solid var(--ink); padding-top: var(--s4); }
.promise-list h3 { font-size: var(--step-1); font-weight: 820; font-stretch: 112%; line-height: 1.2; }
.promise-list p { margin: var(--s2) 0 0; color: var(--muted); }

.story { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: var(--s7); align-items: center; --fig-h: 320px; }
.story-face { margin: 0; }
.story-copy h2 { margin-top: var(--s2); }
.story blockquote { margin: var(--s4) 0 0; padding-left: var(--s5); border-left: 4px solid var(--red); }
.story blockquote p { margin: 0; font-size: var(--step-2); line-height: 1.35; font-weight: 500; font-stretch: 104%; color: var(--ink); }

.area-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); }
.area-list li { font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); font-weight: 860; font-stretch: 120%; letter-spacing: -.015em; line-height: 1.15; }
.area-list li:not(:last-child)::after { content: "·"; color: var(--red); margin-left: var(--s6); }   /* a dot ends a line, never starts one */
.area-note { margin: var(--s4) 0 0; color: var(--muted); }
.area-note a { color: var(--ink); font-weight: 700; }

.closer {
  margin: var(--s9) var(--gutter) 0; padding: var(--s8) var(--gutter);
  border-radius: var(--r-lg);
  background: var(--red); color: var(--surface);
  display: grid; justify-items: center; text-align: center; gap: var(--s3);
  background-image: radial-gradient(120% 140% at 50% 120%, rgba(0, 0, 0, .25), transparent 60%);
}
.closer p { margin: 0; font-size: var(--step-1); opacity: .92; }
.closer-buttons { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s4); margin-top: var(--s3); }
.call-light { color: var(--surface); }
.call-light:hover { color: var(--trim); text-decoration: underline; }

/* ---------- footer ---------- */
.foot {
  max-width: var(--max); margin: 0 auto; padding: var(--s8) var(--gutter) var(--s6);
  display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); gap: var(--s6);
}
.foot-brand img { height: 64px; width: auto; }
.foot-h { font-size: var(--step-label); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.foot p { margin: 0; line-height: 1.7; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--red); text-decoration: underline; }
.foot-links { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.foot-small { grid-column: 1 / -1; padding-top: var(--s5); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--step-meta); }

.mobile-bar { display: none; }

/* ---------- the crew: character art, sized by body height ----------
   Every figure was normalised to the same cap-to-boot height, so a context only sets --fig-h and they all stand at the
   same scale on the same floor line. Never fit them into a box (no object-fit, no width cap): wide poses and props
   may reach sideways, and a shrunk figure breaks the shared scale. */
.crew-fig { height: var(--fig-h); width: auto; max-width: none; display: block; margin: 0 auto; }
.crew-fig.is-mirrored { transform: scaleX(-1); }
.ct-fig { position: relative; display: flex; align-items: flex-end; justify-content: center; width: 100%; height: var(--fig-h); overflow: visible; }
.ct-fig .crew-fig { position: relative; z-index: 1; flex: none; transition: translate .25s var(--ease), scale .25s var(--ease); }
.ct-fig::after {   /* soft ground shadow on the floor line */
  content: ''; position: absolute; left: 20%; width: 60%; bottom: -3px; height: 8px;
  border-radius: 50%; background: rgba(29, 26, 23, .18); filter: blur(6px);
}

.quote-form [hidden] { display: none !important; }
.hero-sub, .card-line, .area-note { color: var(--ink); font-size: var(--step-0); }
.proof-row { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: 1rem; }
.proof-row a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s1); min-height: 44px; text-decoration: none; }
.proof-row li { display: flex; align-items: center; gap: var(--s2); }
.proof-row span { color: var(--red); }
.proof-row a:hover { text-decoration: underline; }
@media (min-width: 1280px) { .proof-row { margin-top: var(--s1); flex-wrap: nowrap; } .proof-row a { min-height: 40px; } }


/* roster: 7 cards, 4 + 3 with the second row centred, every card the same height (grid rows are 1fr) */
.crew { padding-bottom: var(--s7); }   /* council 5 #4: was --s9, a 190 px gap before the price section */
/* The roster is a long way under the hero: the browser skips its layout and paint until it is about to be seen, and with that the
   lazy figures' early fetch (about 150 KB on a 2x phone), so only the hero competes for the first load (Pass 3 R1, phone LCP).
   The sizes are real measurements (1440 px and phone) so the page height barely moves when it renders. */
.crew { content-visibility: auto; contain-intrinsic-size: auto 942px; }
@media (max-width: 760px) { .crew { contain-intrinsic-size: auto 1302px; } }
.roster { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--s4); }
.roster li {
  grid-column: span 2; min-width: 0; display: grid;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .25s var(--ease);
}
/* council 4/5 (2026-11-06): no orphan row. The first card (window cleaning) spans half a row with a wider photo and every row
   fills (4+2+2, then 2+2+2+2); here, not in pages.css, because home defers pages.css */
.roster li:first-child { grid-column: span 4; }
.roster li:first-child .svc-photo { aspect-ratio: 8 / 3; }
.roster li:hover { border-color: var(--red); box-shadow: 0 14px 30px -22px rgba(29, 26, 23, .7); transform: translateY(-2px); }
.roster li:hover .svc-photo img { transform: scale(1.04); }
.roster .r-link { align-self: end; display: block; min-height: 44px; padding: var(--s3) var(--s4); color: var(--red); font-weight: 700; font-size: var(--step-0); line-height: 1.3; }
.roster li:hover .r-link { text-decoration: underline; text-underline-offset: 3px; }

/* a service card's picture (home, About, towns, service pages): a real job photo, cropped to 4:3, or the drawn tile */
.svc-photo { display: block; justify-self: stretch; align-self: start; aspect-ratio: 4 / 3; overflow: hidden; background: var(--trim); border-radius: var(--r-md); }
.svc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc-tile { display: grid; place-items: center; color: var(--on-dusk);   /* the hero's night palette: it sits well beside the photos */
  background: radial-gradient(90% 80% at 50% 38%, rgba(240, 168, 48, .22), transparent 70%), linear-gradient(160deg, var(--dusk-2), var(--dusk)); }
.svc-tile svg { width: 36%; height: auto; }

.promise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.promise-list li { padding: var(--s5); border: 0; border-radius: var(--r-md); background: var(--surface); }
.promise-list h3 { font-weight: 800; font-stretch: 118%; font-size: var(--step-1); }
.promise-list p { font-size: var(--step-0); color: var(--ink); }
.proof-band { background: var(--dusk); color: var(--on-dusk); padding: var(--s8) 0; }
.proof-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 2fr; gap: var(--s7); align-items: start; }
.proof-rating { display: grid; justify-items: start; gap: var(--s2); }
.proof-stat { font-size: var(--step-stat); line-height: 1; font-stretch: 125%; font-weight: 900; }
.proof-rating .stars { font-size: var(--step-2); }
.proof-rating p { margin: 0; color: var(--on-dusk-muted); }
.proof-rating a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.proof-band .promise-list li { background: var(--dusk-2); }
.proof-band .promise-list p { color: var(--on-dusk-muted); }
.proof-band :focus-visible, .real :focus-visible, .designer-band :focus-visible { outline-color: var(--on-dusk); }
.review-quotes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s5); }   /* approved quotes in the proof band (REVIEWS in content.py); the live Google section is .reviews, in pages.css */
.review { margin: 0; padding: var(--s5); background: var(--dusk-2); border-radius: var(--r-md); }
.review blockquote { margin: 0; }
.review time { display: block; color: var(--on-dusk-muted); }

/* season cards: the lights card is the light designer's front door (before/after left, words right); the other
   cards have their crew member standing on the bottom edge at the right, a little in front of the card */
.seasons { max-width: var(--max); margin: 0 auto; padding: var(--s8) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
.season {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); align-items: center;
  padding: var(--s5) var(--s6); background: var(--surface); border-left: 4px solid var(--gold); border-radius: var(--r-md);
}
.season-copy { max-width: 70ch; }
.season h2 { font-size: var(--step-2); line-height: 1.15; margin-top: var(--s2); text-wrap: initial; }
.season p:not(.eyebrow) { color: var(--ink); font-size: var(--step-0); margin: var(--s3) 0 var(--s4); }
.season-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s5); }
.season-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
/* the fall-eavestrough card mirrors the lights card: copy left, the crew member right. The art column is only as wide as
   the figure; the figure is sized by height (--fig-h = SEASON_FIG_H in site/build.py) and its boots sit on the card's bottom
   edge (no bottom padding, the copy carries its own). The cap stays inside the card. */
.season-art { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s6); align-items: end; padding-bottom: 0; --fig-h: 232px; }
.season-art .season-copy { max-width: none; align-self: center; padding-bottom: var(--s5); }
.season-art > .ct-fig { width: auto; }
.season-designer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: var(--s5); }
.season-designer .season-ba { margin: 0; }
.season-ba { border-radius: var(--r-md); box-shadow: none; background: var(--dusk); }
.season-ba .ba-frame { max-height: none; }

.area-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); }   /* five towns since Brampton (2026-10-22) */
.area-list li { font-size: var(--step-0); font-weight: 400; font-stretch: 100%; letter-spacing: 0; }
.area-list li::after { display: none; }
.town-card { height: 100%; display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); line-height: 1.5; }
.town-card strong { font-size: var(--step-1); font-weight: 800; font-stretch: 118%; }
.town-card .town-go { margin-top: auto; color: var(--red); font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.area-list a:hover { color: var(--ink); border-color: var(--red); }
.mobile-bar { transform: translateY(110%); visibility: hidden; transition: transform .25s var(--ease), visibility .25s var(--ease); }
.mobile-bar.is-visible { transform: translateY(0); visibility: visible; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .promise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --top-h: 64px; }
  .nav { display: none; }
  .top { gap: var(--s4); }
  .brand img { height: 44px; }
  .season-designer { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
}

/* ---------- phones: walk along the house, action bar at the thumb ---------- */
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .top .btn { display: none; }
  .phone { font-size: .95rem; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s1); }   /* a 44 px tap target (it was 24 px) */
  .stage-inner { transform: none; }
  /* the phone viewport only shows a slice of the house: centre the bubble over Jerry so it never runs off-screen */
  .bubble { left: 49.6%; top: 40%; translate: -50% 0; transform-origin: 50% 100%; }
  .bubble::after { left: 50%; margin-left: -9px; transform: none; }
  /* phones: the card docks under the house and is always there, so it never covers the crew and nothing jumps */
  .card, .card[hidden] {
    display: block; position: relative;
    width: auto; max-width: none;
    margin: var(--s3) var(--s4) var(--s4);
    padding: var(--s4) var(--s5);
    opacity: 1; transform: none;
  }
  .card { min-height: 236px; }   /* reserve the intro's height so the docked card never shifts the page when JS fills it */
  .card-title { font-size: var(--step-1); }
  .card-line { font-size: var(--step-0); }
  .crew, .promise, .story, .areas { padding-top: var(--s8); }
  .crew { padding-bottom: var(--s8); }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: var(--s3); }
  .roster li, .roster li:nth-child(5), .roster li:first-child { grid-column: auto; }
  .roster li:first-child .svc-photo { aspect-ratio: 4 / 3; }   /* phones keep the 2-up grid (council 5's wide first card is desktop only) */
  .roster li:last-child { grid-column: 1 / -1; }
  .roster li:last-child .svc-photo { aspect-ratio: 16 / 7; }   /* the seventh card takes the full row */
  .roster .r-name, .roster .r-sub, .roster .r-link { padding-inline: var(--s3); }
  .promise-list { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .proof-inner { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .story { grid-template-columns: minmax(0, 1fr); gap: var(--s5); justify-items: start; --fig-h: 256px; }
  .story-face { justify-self: center; }
  .seasons { padding-top: var(--s7); gap: var(--s4); }
  .season { padding: var(--s4); }
  .season-art { grid-template-columns: minmax(0, 1fr); row-gap: var(--s4); padding-bottom: 0; --fig-h: 160px; }   /* art under the copy, centred, boots on the bottom edge */
  .season-art .season-copy { align-self: start; padding-bottom: 0; }
  .season-art > .ct-fig { justify-self: center; }
  .season-designer { gap: var(--s4); }
  .season .btn { padding-inline: var(--s4); white-space: normal; text-align: center; }
  .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .area-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* the fifth town takes the full row */
  .town-card { padding: var(--s4); }
  .town-card strong { font-size: var(--step-0); font-stretch: 110%; }
  .roster .r-link, .town-card .town-go { font-size: .92rem; }
  .closer { margin-top: var(--s8); padding: var(--s7) var(--s5); }
  .foot { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s2);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom));
    background: rgba(251, 248, 243, .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 50px;
    border-radius: var(--r-pill); font-weight: 750; font-stretch: 108%; text-decoration: none;
  }
  .mb-text { border: 1.5px solid var(--ink); color: var(--ink); }
  .mb-quote { background: var(--red); color: var(--surface); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, border-color !important; }
  .stage-inner { transform: none; }
  .house-back { transform: none; }               /* the stage is not pushed in either (no parallax, no push-in), so the plate matches it at 1:1 */
  .js .house-back, .js .house.is-ready .house-back { scale: none; }
  .js .scene { opacity: 1; transform: none; }
  .beacons span, .bubble { opacity: 1; transform: none; }
}

/*@@PASS2B@@*/
/* ---------- Pass 2b: the home content pieces (what it costs, how a job works; the heat strip is in pages.css) ---------- */
.home-section { max-width: var(--max); margin: 0 auto; padding: var(--s9) var(--gutter) 0; }
.home-section > h2 { margin-bottom: var(--s5); }
.home-how { padding-bottom: 0; }
.how-steps { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); }
.how-steps li { min-width: 0; }
.how-num {
  display: flex; align-items: center; gap: var(--s3);
  font-size: var(--step-stat); line-height: 1; font-weight: 900; font-stretch: 125%; letter-spacing: -.02em; color: var(--red); font-variant-numeric: tabular-nums;
}
.how-num::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.how-steps li:last-child .how-num::after { display: none; }
.how-steps h3 { margin-top: var(--s4); font-size: var(--step-1); font-weight: 820; font-stretch: 112%; line-height: 1.2; }
.how-steps p { margin: var(--s2) 0 0; font-size: var(--step-0); color: var(--ink); }
.how-steps p strong { font-weight: 800; }
@media (min-width: 961px) {   /* the four columns share their rows, so numbers, titles and paragraphs line up even when a title wraps */
  .how-steps { grid-template-rows: auto auto 1fr; row-gap: 0; }
  .how-steps li { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
}
@media (max-width: 960px) {
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
  .how-num::after { display: none; }
}
@media (max-width: 760px) {
  .home-section { padding-top: var(--s8); }
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: var(--s5); margin-top: var(--s5); }
  .how-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--s4); }
  .how-num { grid-row: 1 / span 2; align-self: start; font-size: 2.6rem; }
  .how-steps h3 { margin-top: 0; }
}

@media (min-width: 761px) and (max-aspect-ratio: 6/5) {
  .house.night-on .n-snow { background-image: image-set(url('/assets/scenes/door/n6-snow-1080.avif') type('image/avif') 1x, url('/assets/scenes/door/n6-snow-1920.avif') type('image/avif') 2x, url('/assets/scenes/door/n6-snow-1080.webp') type('image/webp') 1x, url('/assets/scenes/door/n6-snow-1920.webp') type('image/webp') 2x); }
  .house.night-on .n-wglow { background-image: image-set(url('/assets/scenes/door/n6-wglow-1080.avif') type('image/avif') 1x, url('/assets/scenes/door/n6-wglow-1920.avif') type('image/avif') 2x, url('/assets/scenes/door/n6-wglow-1080.webp') type('image/webp') 1x, url('/assets/scenes/door/n6-wglow-1920.webp') type('image/webp') 2x); }
  .house.night-on .n-wins i { background-image: image-set(url('/assets/scenes/door/n6-wcore-1080.avif') type('image/avif') 1x, url('/assets/scenes/door/n6-wcore-1920.avif') type('image/avif') 2x, url('/assets/scenes/door/n6-wcore-1080.webp') type('image/webp') 1x, url('/assets/scenes/door/n6-wcore-1920.webp') type('image/webp') 2x); }
  .house.night-on .n-sglow { background-image: image-set(url('/assets/scenes/door/n6-sglow-1080.avif') type('image/avif') 1x, url('/assets/scenes/door/n6-sglow-1920.avif') type('image/avif') 2x, url('/assets/scenes/door/n6-sglow-1080.webp') type('image/webp') 1x, url('/assets/scenes/door/n6-sglow-1920.webp') type('image/webp') 2x); }
  .house.night-on .n-strs i { background-image: image-set(url('/assets/scenes/door/n6-score-1080.avif') type('image/avif') 1x, url('/assets/scenes/door/n6-score-1920.avif') type('image/avif') 2x, url('/assets/scenes/door/n6-score-1080.webp') type('image/webp') 1x, url('/assets/scenes/door/n6-score-1920.webp') type('image/webp') 2x); }
}

/* 2026-10-27: keep the phone subhead above the shared body rule. */
@media (max-width: 760px) { .hero-sub { font-size: 1rem; max-width: 34ch; } }
