/* Power On v2 — homepage only: hero film, inside the walls, breaker panel, doors, work grid and carousel,
   services, service-call ticker, tools, service area map, reviews, closing. Loads after core.css. */

/* homepage headings and header */
#area-title .ln { max-width: 21ch; }
@media (max-width: 899px) {
  /* over the mobile video hero the nav is always light-on-dark */
  .nav:not(.is-solid) {
    --fg: var(--paper); --fg-3: #B9B3A8; --accent: var(--brass-l); --focus: var(--signal);
    --show-d: block; --show-l: none;
  }
}

/* ---------- 3.1 hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 24px) 0 32px; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.hero-pin { position: relative; flex: 1 1 auto; width: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-pin > .hero-grid { flex: 1 1 auto; align-content: center; }
.hero-pin > .wrap { width: 100%; }
.hero-grid { align-items: center; row-gap: 48px; }
.hero-copy { grid-column: 1 / span 8; }
@media (min-width: 900px) { .hero h1 .ln > span { white-space: nowrap; } }
.hero-copy .label { color: var(--accent); display: block; margin-bottom: clamp(24px, 3vw, 40px); }
@media (max-width: 599px) { .eb-tail { display: none; } }
.hero h1 { margin-bottom: clamp(24px, 3vw, 40px); }
.hero .lead { color: var(--fg-2); margin-bottom: clamp(32px, 4vw, 48px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-alt { margin-top: 24px; color: var(--fg-2); }
.hero-alt a { color: var(--fg); }
.hero-media { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: center; container-type: inline-size; }
.vframe { position: relative; width: auto; height: min(78vh, calc(100svh - var(--nav-h) - 300px)); min-height: 380px; aspect-ratio: 9 / 16; }
/* tall large screens: the 9:16 frame never grows wider than its four columns (it ran under the headline at 2560x1440) */
.vframe { height: min(78vh, calc(100svh - var(--nav-h) - 300px), 100cqi * 16 / 9); }
.vwrap { position: relative; }
.vframe { transform-origin: 50% 50%; }
/* the film itself: the frame's ink ground and rules live here, so the frame can clip it by its own box */
.vfill { position: absolute; inset: 0; background: var(--ink); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transform-origin: 50% 50%; }
.vfill > picture { display: contents; }
.vfill > picture > img, .vfill > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vfill > video { z-index: 1; }
/* logo mark in the film: bottom-right, above both videos and the scrims (JS rides it with the grow) */
.vlogo { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: clamp(72px, 22%, 120px); pointer-events: none; transform-origin: 100% 100%; }
.vlogo > picture { display: contents; }
.vlogo img { position: relative; display: block; width: 100%; height: auto; opacity: .78; }
/* soft shadow: a pre-blurred ink glow behind the mark, no filter */
.vlogo::before { content: ""; position: absolute; inset: -45% -18%; background: radial-gradient(closest-side, rgba(17, 16, 16, .5), rgba(17, 16, 16, 0)); }
/* phones: smallest size, and the full-width caption wraps before it reaches the mark */
@media (max-width: 599px) { .vlogo { width: 72px; } }
@media (max-width: 899px) { .hero-cap { max-width: calc(100% - 2 * var(--pad) - 72px - 16px); } }
@media (prefers-reduced-motion: no-preference) {
  .js .vlogo { opacity: 0; }
  .js .vlogo.on { opacity: 1; transition: opacity .8s var(--ease); }
}
/* wide landscape cut of the same film (desktop + landscape only; JS sizes and reveals it) */
.vwide { display: none; }
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) and (orientation: landscape) {
  .js .vwide { display: block; position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 1; opacity: 0; pointer-events: none; overflow: hidden; transform-origin: 0 0; }
  .js .vwide > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 0 0; }
}
.hero-tb { margin-top: 20px; width: 100%; max-width: 440px; grid-template-columns: max-content max-content minmax(0, 1fr); }
.hero-tb .wide { grid-column: 1 / -1; }
.hero-tb dd { white-space: nowrap; font-size: 11px; letter-spacing: .04em; }
@media (max-width: 1199px) {
  .hero-tb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-tb dd { white-space: normal; }
}
/* credential bar: last row of the hero */
.hero-cred-wrap { margin-top: 28px; }
/* the credential cells themselves (.cred) are in core.css; the hero-specific spacing stays here */
/* short desktop screens (e.g. 1024x768, 1280x720): a tighter strip so it stays on the first screen */
@media (min-width: 900px) and (max-height: 820px) {
  .hero-cred-wrap { margin-top: 8px; }
  .hero-tb { margin-top: 12px; }
  .cred li { padding-top: 10px; row-gap: 4px; grid-template-columns: 24px minmax(0, 1fr); }
  .cred .ci { width: 24px; height: 24px; }
  .cred .ci svg { width: 12px; height: 12px; }
  .cred .cv, .cred .tlink { line-height: 1.25; }
  .cred .csub { font-size: 12px; line-height: 1.25; }
}
.hero-line { display: none; }
.hero-cap { display: none; }
/* opening shot: the hero holds for ~70vh while the film frame grows to full width (JS drives it) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero { display: block; padding: 0; height: calc(100svh + 70vh); overflow: clip; }
  .js .hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: calc(var(--nav-h) + 24px) 0 32px; overflow: clip; }
  .js .hero-cred-wrap { position: relative; z-index: 3; }
  .js .hero-cap { display: block; position: absolute; left: var(--pad); bottom: 120px; z-index: 4; margin: 0; padding: 8px 12px; opacity: 0; pointer-events: none;
    color: var(--paper); background: rgba(17, 16, 16, .72); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
  .js .hero.is-grown .hero-copy, .js .hero.is-grown .hero-tb { pointer-events: none; }
  .js .vframe.is-covered { visibility: hidden; }
  /* while the hero is on screen only: the frame is the layer the grow moves */
  .js .hero.is-live .vframe { will-change: transform; }
}
/* light theme "lights down": an ink layer fades in behind the hero as the film grows (desktop) */
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  html.js[data-theme="light"] .hero-pin::before { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: var(--ld, 0); pointer-events: none; }
  /* the top darkens a step ahead of the rest, so the transparent header switches to light-on-dark over ink */
  html.js[data-theme="light"] .hero-pin::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--nav-h) + 120px); pointer-events: none;
    background: linear-gradient(to bottom, var(--ink) 0, var(--ink) var(--nav-h), rgba(17, 16, 16, 0)); opacity: var(--ldt, 0); transition: opacity 180ms var(--ease); }
  .js .hero-pin > .hero-grid { position: relative; z-index: 1; }
  .js .hero-cred-wrap[data-theme="dark"] { color: var(--fg); }
  /* the grow reveals the film with transforms only: the frame scales to the visible window and clips by its own box,
     the film inside scales back by the inverse, so nothing is re-clipped or repainted per frame */
  .js .vframe { overflow: hidden; }
  .js .hero.is-live .vfill { will-change: transform; }
  .js .hero.is-live .vwide.on { will-change: transform, opacity; }
  .js .hero.is-live .vwide.on > video { will-change: transform; }
}

@media (max-width: 899px) {
  .hero {
    min-height: 100svh; padding: 0; align-items: flex-end; overflow: hidden;
    /* text over video is always light, in both themes */
    --fg: var(--paper); --fg-2: #D4CFC6; --fg-3: #B9B3A8; --accent: var(--brass-l); --rule: var(--line-d);
    --btn-bg: var(--paper); --btn-fg: var(--ink); --focus: var(--signal);
    background: var(--ink); color: var(--fg);
  }
  .hero { justify-content: flex-end; }
  .hero-pin { justify-content: flex-end; }
  .hero-pin > .hero-grid { flex: 0 0 auto; padding-top: calc(var(--nav-h) + 8px); padding-bottom: 0; }
  .hero-cred-wrap { position: relative; z-index: 2; margin-top: 8px; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  /* phones: a 2x2 grid, equal cell heights (rows stretch), icon + label on top, value below */
  .cred { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cred li, .cred li:first-child { grid-template-columns: 24px minmax(0, 1fr); padding: 10px 12px 10px 0; row-gap: 6px; column-gap: 8px; border-left: 0; align-content: start; }
  .cred .ci { width: 24px; height: 24px; }
  .cred .ci svg { width: 12px; height: 12px; }
  .cred .cvrow { grid-column: 1 / -1; }
  .cred li:nth-child(even) { padding-left: 14px; padding-right: 0; border-left: 1px solid var(--rule); }
  .cred .cv, .cred .tlink { font-size: 15px; line-height: 1.3; }
  .cred .cvrow { column-gap: 8px; }
  .cred .csub { font-size: 12px; line-height: 1.35; }
  /* narrow phones: value + "Verify" keep one line */
  @media (max-width: 380px) { .cred .cv, .cred .tlink { font-size: 14px; } }
  /* short phones: a tighter strip so the hero still clears the header and the call bar */
  @media (max-height: 760px) {
    .cred li, .cred li:first-child { padding-top: 7px; padding-bottom: 7px; row-gap: 4px; grid-template-columns: 22px minmax(0, 1fr); }
    .cred li:nth-child(even) { padding-left: 12px; }
    .cred .ci { width: 22px; height: 22px; }
    .cred .ci svg { width: 11px; height: 11px; }
    .cred .csub { font-size: 11px; line-height: 1.3; }
  }
  .hero-copy { position: relative; z-index: 2; }
  .hero-grid { display: block; }
  .hero-media { position: absolute; inset: 0; z-index: 0; display: block; }
  .vwrap { position: absolute; inset: 0; }
  .vframe { position: absolute; inset: 0; height: 100%; min-height: 0; width: 100%; aspect-ratio: auto; }
  .vfill { border: 0; }
  .vwrap > .mark { display: none; }
  /* phones: the scrim lifts as the copy leaves; a low gradient keeps the credential bar readable */
  /* the same layer shades the strip behind the header, so the nav keeps 4.5:1 over a bright frame of the film */
  .hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: calc(1 - var(--sc, 1));
    background:
      linear-gradient(to bottom, rgba(17,16,16,.9) 0, rgba(17,16,16,.9) var(--nav-h), rgba(17,16,16,0)) top / 100% calc(var(--nav-h) + 64px) no-repeat,
      linear-gradient(to bottom, rgba(17,16,16,0), rgba(17,16,16,.9) 45%) bottom / 100% 42% no-repeat; }
  .hero-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--sc, 1);
    background: linear-gradient(to bottom, rgba(17,16,16,.62) 0%, rgba(17,16,16,.66) 35%, rgba(17,16,16,.88) 55%, rgba(17,16,16,.88) 100%); }
  /* the frame fills by height, so object-position alone cannot move the sign: lift the whole frame */
  .vfill > picture > img, .vfill > video { top: -36%; height: 136%; object-position: 50% 0; }
  .hero-tb { display: none; }
  .hero-line { display: block; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule); color: var(--fg-2); font-size: 11px; letter-spacing: .06em; }
  @media (max-width: 399px) { .hero-line { font-size: 10px; } }
  .hero .lead { font-size: 18px; }
  /* eyebrow: a full-width band, feathered top and bottom (no edges, no oval), plus a light text-shadow */
  .hero-copy p.label { position: relative; width: fit-content; text-shadow: 0 0 6px rgba(17,16,16,.7); }
  .hero-copy p.label::before { content: ""; position: absolute; z-index: -1; top: -26px; bottom: -26px; left: calc(-1 * var(--pad)); width: 100vw; pointer-events: none;
    background: linear-gradient(to bottom, rgba(17,16,16,0), rgba(17,16,16,.72) 34%, rgba(17,16,16,.72) 66%, rgba(17,16,16,0)); }
  .hero-ctas .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  .js .hero-pin { padding: 0; }
}
/* phones: the headline scales with the width so each of its three phrases holds one line,
   and with the height so short screens keep the eyebrow and the full headline clear of the header */
@media (max-width: 599px) {
  .hero h1 { font-size: clamp(32px, min(calc((100vw - 2 * var(--pad)) / 8.4), 5.4svh), 44px); }
  /* the "Finished work" row shares its line with the logo mark, so its rule stops short of it */
  .hero-line { max-width: calc(100% - 72px - 16px); }
  /* the call line wraps to two lines here: smaller and tighter, so the headline keeps clear of the header */
  .hero-alt { margin-top: 14px; font-size: 11px; line-height: 1.4; letter-spacing: .1em; }
}
@media (max-width: 599px) and (max-height: 800px) {
  .hero-copy p.label { margin-bottom: 12px; }
  .hero h1 { margin-bottom: 14px; }
  .hero .lead { font-size: 16px; line-height: 1.4; margin-bottom: 18px; }
  .hero-alt { margin-top: 10px; }
  .hero-line { margin-top: 10px; padding-top: 8px; }
}
/* shorter still: the lead tightens first, then the second button steps aside (the call bar keeps both actions) */
@media (max-width: 599px) and (max-height: 680px) {
  .hero-copy p.label { margin-bottom: 10px; }
  .hero h1 { margin-bottom: 12px; }
  .hero .lead { font-size: 15px; line-height: 1.3; margin-bottom: 10px; }
  .hero-alt { margin-top: 8px; }
  .hero-line { margin-top: 6px; padding-top: 5px; }
}
@media (max-width: 599px) and (max-height: 700px) {
  .hero-ctas .btn:nth-child(2) { display: none; }
}

/* ---------- 3.3 inside the walls ---------- */
.walls-sticky { padding-top: var(--section); }
.walls-intro { grid-column: 1 / -1; padding-bottom: clamp(8px, 2vw, 24px); }
.walls-intro h2 .ln { max-width: 14ch; }
.walls-intro .lead { color: var(--fg-2); margin-top: 24px; }

/* Static (no JS / reduced motion): the six chapters as a 6-up grid (3-up, 2-up, 1-up as it narrows) */
.walls-stage { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) var(--gap); }
@media (max-width: 1299px) { .walls-stage { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .walls-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stage { display: grid; gap: 20px; align-content: start; }
.stage-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); }
.stage-img img { width: 100%; height: 100%; object-fit: cover; }
.stage-text .label { color: var(--accent); display: block; margin-bottom: 12px; }
.stage-text h3 { font-size: clamp(20px, 1.8vw, 28px); line-height: 1.08; letter-spacing: -0.02em; }
/* the plans sheet is bright white: a light ink veil so it never flashes against the dark stage */
.stage.s2 .stage-img::after { content: ""; position: absolute; inset: 0; background: rgba(17, 16, 16, .12); pointer-events: none; }
.stage-text p:last-child { color: var(--fg-2); margin-top: 12px; max-width: 40ch; }
.walls-rail, .walls-frame { display: none; }
.walls-foot { padding: clamp(32px, 4vw, 56px) 0 var(--section); display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); margin-top: clamp(40px, 5vw, 72px); }
.walls-foot .mono { color: var(--fg-2); }
.walls-proj { margin-right: auto; }
@media (max-width: 480px) { .walls-stage { grid-template-columns: 1fr; } }

/* Pinned, scroll-scrubbed (JS + motion allowed) */
@media (prefers-reduced-motion: no-preference) {
  /* 512vh: the intro hold (40vh) plus six chapters of 62vh scrubbed scroll each, the same per chapter as with five */
  .js .walls-track { height: 512vh; position: relative; }
  .js .walls-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: var(--nav-h); }
  .js .walls-stage {
    width: 100%; gap: 0 clamp(24px, 4vw, 72px);
    grid-template-columns: 172px minmax(0, 1fr) auto;
    grid-template-areas: "rail text frame";
    align-items: center; perspective: 1600px;
  }
  .js .stage { display: contents; }
  .js .stage-img {
    grid-area: frame; height: min(82vh, calc(100svh - var(--nav-h) - 48px)); width: auto; aspect-ratio: 3 / 4;
    clip-path: inset(calc((1 - var(--reveal, 1)) * 100%) 0 0 0);
    will-change: clip-path;
  }
  .js .stage-img img { transform: scale(calc(1.06 - var(--reveal, 1) * .06)); transform-origin: 50% 100%; }
  .js .stage.s1 .stage-img { --reveal: 1; }
  .js .stage.s3 .stage-img { --reveal: var(--p2, 0); }
  .js .stage.s4 .stage-img { --reveal: var(--p3, 0); }
  .js .stage.s5 .stage-img { --reveal: var(--p4, 0); }
  .js .stage.s6 .stage-img { --reveal: var(--p5, 0); }
  /* plans: the sheet lands on the table instead of wiping */
  /* --pl: landing 0..1 (JS), --po: the small settle past flat at the end */
  .js .stage.s2 .stage-img {
    --q: calc(1 - var(--pl, 0));
    clip-path: none; overflow: visible; transform-origin: 50% 90%;
    transform: translateY(calc(var(--q) * 40px)) rotateX(calc(var(--q) * 24deg)) rotateZ(calc(var(--q) * -2deg)) scale(calc(.86 + var(--pl, 0) * .14 + var(--po, 0)));
    opacity: clamp(0, calc(var(--p1, 0) * 3), 1); will-change: transform, opacity;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .55);
  }
  .js .stage.s2 .stage-img img { transform: none; }
  /* the large soft shadow of the sheet in the air fades out as it lands; the tight one stays */
  .js .stage.s2 .stage-img::before { content: ""; position: absolute; inset: 4% 3% -4%; z-index: -1; box-shadow: 0 60px 120px 10px rgba(0, 0, 0, .75); opacity: var(--q); pointer-events: none; }
  .js .stage-text {
    grid-area: text; align-self: center; max-width: 520px;
    opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease);
    pointer-events: none;
  }
  .js .stage-text h3 { font-size: clamp(32px, 4.2vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
  .js .stage-text p:last-child { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; margin-top: 20px; }
  .js .walls[data-stage="1"] .stage.s1 .stage-text,
  .js .walls[data-stage="2"] .stage.s2 .stage-text,
  .js .walls[data-stage="3"] .stage.s3 .stage-text,
  .js .walls[data-stage="4"] .stage.s4 .stage-text,
  .js .walls[data-stage="5"] .stage.s5 .stage-text,
  .js .walls[data-stage="6"] .stage.s6 .stage-text { opacity: 1; transform: none; pointer-events: auto; }
  .js .walls-intro {
    grid-area: text; align-self: center; max-width: 560px; padding: 0;
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  }
  .js .walls-intro .lead { max-width: 30ch; }
  .js .walls:not([data-stage="0"]) .walls-intro { opacity: 0; transform: translateY(-16px); pointer-events: none; }
  .js .walls-frame { display: block; grid-area: frame; align-self: stretch; justify-self: stretch; position: relative; z-index: 2; pointer-events: none; overflow: hidden; }
  .js .walls-frame::after {
    content: ""; position: absolute; inset: -20% -60%; opacity: 0; mix-blend-mode: screen;
    background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.75) 50%, transparent 62%);
    transform: translateX(-60%);
  }
  .js .walls.glint .walls-frame::after { animation: glint 1.1s var(--ease) 1 both; }
  /* chapter index: slim vertical list on the left (desktop), 6-segment bar on top (phone) */
  .js .walls-rail { display: flex; grid-area: rail; flex-direction: column; gap: 2px; align-self: center; margin: 0; padding: 0; }
  .js .walls-rail button { display: grid; grid-template-columns: 2px auto; column-gap: 14px; align-items: center; min-height: 52px; width: 100%; text-align: left;
    font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); background: none; cursor: pointer; }
  .js .walls-rail .rbar { grid-row: 1 / span 2; align-self: stretch; position: relative; width: 2px; background: var(--rule); overflow: hidden; }
  .js .walls-rail .rbar i { position: absolute; inset: 0; background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--f, 0)); }
  .js .walls-rail .rn { grid-column: 2; }
  .js .walls-rail .rt { grid-column: 2; }
  .js .walls-rail li.is-on button { color: var(--accent); }
  .js .walls-rail button:hover { color: var(--fg); }
  .js .walls-foot { margin-top: 0; }
}
@keyframes glint {
  0% { opacity: 0; transform: translateX(-60%); }
  15% { opacity: .55; }
  85% { opacity: .55; }
  100% { opacity: 0; transform: translateX(60%); }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  /* 424vh: the 30vh hold plus six chapters of 49vh each, as with five */
  .js .walls-track { height: 424vh; }
  .js .walls-intro h2 { font-size: clamp(28px, 8vw, 36px); }
  .js .walls-intro .lead { font-size: 16px; margin-top: 12px; }
  .js .walls-intro .kw { margin-bottom: 10px; }
  .js .walls-intro { align-self: start; }
  .js .walls-stage {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "rail" "frame" "text";
    gap: 14px 0; align-content: center;
  }
  .js .stage-img { height: auto; width: 100%; max-height: 54svh; justify-self: center; max-width: calc(54svh * .75); }
  .js .stage-text { align-self: start; min-height: 9.5em; }
  .js .stage-text h3 { font-size: clamp(26px, 7vw, 34px); }
  .js .stage-text p:last-child { font-size: 16px; margin-top: 10px; }
  .js .walls-rail { flex-direction: row; gap: 6px; width: 100%; }
  .js .walls-rail li { flex: 1 1 0; min-width: 0; }
  .js .walls-rail button { grid-template-columns: 1fr; row-gap: 8px; min-height: 44px; align-content: center; }
  .js .walls-rail .rbar { grid-row: 1; width: 100%; height: 2px; }
  .js .walls-rail .rbar i { transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
  .js .walls-rail .rn { grid-column: 1; }
  .js .walls-rail .rt { display: none; }
}

/* ---------- process: the breaker panel ----------
   Static (no JS / reduced motion): the panel stands open with every breaker on, the directory beside it.
   Pinned (JS + motion): the door swings open, then five breakers flip on one by one (v2.js drives the state). */
.bp { position: relative; }
.bp-sticky { padding: var(--section) 0; }
.bp-stage { display: grid; gap: clamp(40px, 5vw, 64px); }
.bp-title .ln { max-width: none; }
.bp-board { position: relative; display: grid; grid-template-columns: clamp(250px, 26vw, 400px) minmax(0, 1fr); gap: 40px clamp(56px, 8vw, 120px); align-items: start; }
.bp-prog, .bp-lead, .bp-dot { display: none; }

/* the enclosure: drawn steel, four screws, an engraved nameplate */
.bp-panel { --steel: #2E2B28; --steel-2: #1E1C1A; --front: #383531; --door-1: #3B3834; --door-2: #282623; --print: #CFC9BE;
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 14px; border-radius: 6px;
  background: linear-gradient(160deg, var(--steel), var(--steel-2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .12), 0 28px 60px rgba(0, 0, 0, .38); }
html[data-theme="light"] .bp-panel { --steel: #D9D5CC; --steel-2: #BEB8AD; --front: #E9E6DF; --door-1: #D3CEC4; --door-2: #B9B3A7; --print: #3F3B36;
  box-shadow: inset 0 0 0 1px rgba(17, 16, 16, .14), inset 0 1px 0 rgba(255, 255, 255, .7), 0 28px 60px rgba(17, 16, 16, .18); }
.bp-panel::before { content: ""; position: absolute; inset: 5px; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #9C968C 0 1.6px, #5F5A53 2.2px, transparent 2.8px) left top / 7px 7px no-repeat,
    radial-gradient(circle at 50% 50%, #9C968C 0 1.6px, #5F5A53 2.2px, transparent 2.8px) right top / 7px 7px no-repeat,
    radial-gradient(circle at 50% 50%, #9C968C 0 1.6px, #5F5A53 2.2px, transparent 2.8px) left bottom / 7px 7px no-repeat,
    radial-gradient(circle at 50% 50%, #9C968C 0 1.6px, #5F5A53 2.2px, transparent 2.8px) right bottom / 7px 7px no-repeat; }
.bp-plate { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 2px; color: var(--ink);
  background: linear-gradient(180deg, #ECE8DF, #CDC7BB); box-shadow: inset 0 0 0 1px rgba(17, 16, 16, .28), 0 1px 0 rgba(255, 255, 255, .08);
  font-size: 10px; line-height: 1.3; letter-spacing: .14em; white-space: nowrap; }
/* the dead-front: breakers on the left, the bus bars through a slot on the right */
.bp-front { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 18px; column-gap: 12px; padding: 12px 14px 14px; border-radius: 3px;
  background: var(--front); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28), inset 0 2px 8px rgba(0, 0, 0, .28); }
.bp-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bp-legend { display: flex; justify-content: space-between; width: calc((100% - 30px) * .5); margin-left: calc(30px + (100% - 30px) * .1); color: var(--print); font-size: 9px; line-height: 1; letter-spacing: .14em; }
.bp-brk { display: grid; gap: 8px; }
.bp-brk li { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; align-items: center; height: 44px; }
.bp-brk li.bp-main { height: 76px; }
.bp-n { color: var(--print); font-size: 10px; letter-spacing: .06em; text-align: right; }
/* a breaker: black moulded case, a handle in its slot, and an indicator window */
.brk { position: relative; display: block; align-self: stretch; width: 100%; border-radius: 3px; cursor: pointer;
  background: linear-gradient(180deg, #2C2A27, #161514); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .1), 0 2px 3px rgba(0, 0, 0, .45); }
.brk:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.brk-t { position: absolute; left: 10%; width: 50%; top: 24%; height: 52%; border-radius: 2px; background: #0B0A0A; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .9); }
.brk-h { position: absolute; left: 0; top: 0; width: 45%; height: 100%; border-radius: 2px;
  background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(0, 0, 0, .22) 3px 4px), linear-gradient(180deg, #67625B, #34312D);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 3px rgba(0, 0, 0, .6); transform: translateX(122%); }
.brk-w { position: absolute; right: 9%; top: 32%; width: 16%; height: 36%; border-radius: 1px; background: #46423D; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .7); }
.brk-w::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--signal); box-shadow: 0 0 10px rgba(242, 194, 48, .7); }
/* the main: a two-pole breaker, both handles tied, printed POWER ON */
.brk-main .brk-t { top: 14%; height: 72%; width: 46%; }
.brk-main .brk-h { background: none; box-shadow: none; }
.brk-main .brk-h::before, .brk-main .brk-h::after { content: ""; position: absolute; left: 0; right: 0; height: 36%; border-radius: 2px;
  background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(0, 0, 0, .22) 3px 4px), linear-gradient(180deg, #67625B, #34312D);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 3px rgba(0, 0, 0, .6); }
.brk-main .brk-h::before { top: 0; }
.brk-main .brk-h::after { bottom: 0; }
.brk-main .brk-h i { position: absolute; left: 30%; width: 40%; top: 30%; height: 40%; background: linear-gradient(90deg, #8E887E, #B9B2A6, #8E887E); }
.brk-lbl { position: absolute; right: 7%; top: 16%; width: 34%; color: #ECE7DD; font-size: 9px; line-height: 1.2; letter-spacing: .12em; text-align: center; }
.brk-main .brk-w { top: auto; bottom: 18%; right: 15%; width: 22%; height: 22%; }
.bp-bus { position: relative; align-self: stretch; margin: 18px 0 2px; border-radius: 2px; background: #1C1A18;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); }
.bp-bus::before, .bp-bus i { content: ""; position: absolute; inset: 4px 3px;
  background: linear-gradient(90deg, #8C6A1F 0 4px, transparent 4px 8px, #8C6A1F 8px 12px); }
.bp-bus i { background: linear-gradient(90deg, var(--signal) 0 4px, transparent 4px 8px, var(--signal) 8px 12px); filter: drop-shadow(0 0 5px rgba(242, 194, 48, .8)); }
.bp-live { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 2px; color: var(--ink); background: var(--signal); font-size: 10px; line-height: 1.2; letter-spacing: .16em; }
.bp-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.bp-glint, .bp-door { position: absolute; pointer-events: none; }
.bp-door { display: none; }

/* the circuit directory: a flat, readable panel schedule */
.bp-dir { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--rule); }
.bp-dir-h { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; color: var(--fg-3); border-bottom: 1px solid var(--fg); }
.bp-steps { flex: 1 1 auto; display: flex; flex-direction: column; }
.bp-row { position: relative; flex: 1 1 auto; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; align-content: center; padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.bp-row:last-child { border-bottom: 0; }
.bp-row::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--lit, 1)); }
.bp-row::after { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--accent) 9%, transparent); opacity: 0; transition: opacity 400ms var(--ease); }
.bp-row.is-cur::after { opacity: 1; }
.bp-steps { position: relative; isolation: isolate; }
.bp-ckt { color: var(--fg); font-size: 12px; letter-spacing: .1em; padding-top: 5px; }
.bp-ckt small { display: block; font-size: 10px; letter-spacing: .14em; margin-top: 2px; }
.bp-row h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; }
/* step 5: the full-colour Power On logo in place of the words (the h3 keeps them for screen readers); its lettering
   matches the heading's cap height, and its box is reserved, so nothing moves when it loads */
.bp-logo { display: block; height: 1.6em; }
.bp-logo picture { display: block; height: 100%; }
.bp-logo picture.logo-d { display: var(--show-d); }
.bp-logo picture.logo-l { display: var(--show-l); }
.bp-logo img { display: block; width: auto; height: 100%; aspect-ratio: 340 / 139; }
.bp-row p { margin-top: 4px; color: var(--fg-2); font-size: 15px; line-height: 1.45; }
@media (max-width: 899px) {
  .bp-board { grid-template-columns: minmax(0, 1fr); }
  .bp-panel { width: min(100%, 300px); }
  .bp-row { padding: 14px 16px; grid-template-columns: 44px minmax(0, 1fr); }
}

/* pinned and scrubbed */
@media (prefers-reduced-motion: no-preference) {
  /* about 180vh of pinned scroll on desktop (150vh on phones) */
  .js .bp-track { position: relative; height: calc(100svh + 180vh); }
  .js .bp-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--nav-h) + 16px) 0 24px; }
  .js .bp-stage { width: 100%; gap: clamp(24px, 4vh, 48px); align-content: center; }
  .js .bp-board { align-items: stretch; }
  .js .bp-panel { height: clamp(330px, calc(100svh - var(--nav-h) - 300px), 560px); }
  .js .bp-front { flex: 1 1 auto; min-height: 0; }
  .js .bp-brk { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .js .bp-brk li { flex: 1 1 0; min-height: 0; height: auto; }
  .js .bp-brk li.bp-main { flex-grow: 1.7; }
  /* off until the script turns them on: the handle snaps over with a small overshoot, then the window lights */
  .js .brk-h { transform: none; transition: transform 320ms cubic-bezier(.3, 1.9, .55, 1); }
  .js .brk.is-on .brk-h { transform: translateX(122%); }
  .js .brk-w::after { opacity: 0; transition: opacity 160ms linear; }
  .js .brk.is-on .brk-w::after { opacity: 1; transition-delay: 150ms; }
  /* step 5's Power On logo: grey and dim until that step is the current one, then its own colours */
  .js .bp-row-main .bp-logo img { filter: grayscale(1); opacity: .4; transition: filter 500ms var(--ease), opacity 500ms var(--ease); }
  .js .bp-row-main.is-cur .bp-logo img { filter: none; opacity: 1; }
  .js .bp-bus i { opacity: 0; transition: opacity 600ms var(--ease) 200ms; }
  .js .bp.is-live .bp-bus i { opacity: 1; }
  .js .bp-live { opacity: 0; transform: translateY(4px); transition: opacity 400ms var(--ease) 300ms, transform 400ms var(--ease) 300ms; }
  .js .bp.is-live .bp-live { opacity: 1; transform: none; }
  /* the door: hinged on the left, swings toward the viewer (transform only), gone past ~90 degrees */
  .js .bp-door { display: block; inset: -5px; z-index: 3; border-radius: 4px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .18) 0 3px, transparent 3px), linear-gradient(160deg, var(--door-1), var(--door-2));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 12px 30px rgba(0, 0, 0, .35);
    transform-origin: 0 50%; transform: perspective(1100px) rotateY(calc(var(--door, 0) * -100deg)); backface-visibility: hidden;
    opacity: clamp(0, calc((1 - var(--door, 0)) * 5), 1); will-change: transform; }
  /* door details: a latch on the right, a vent near the top */
  .js .bp-door::before { content: ""; position: absolute; right: 12px; top: 50%; width: 8px; height: 46px; margin-top: -23px; border-radius: 2px;
    background: linear-gradient(90deg, #6E6961, #A39D92, #6E6961); box-shadow: 0 2px 3px rgba(0, 0, 0, .45); }
  .js .bp-door::after { content: ""; position: absolute; left: 22%; right: 22%; top: 9%; height: 34px;
    background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .32) 0 2px, rgba(255, 255, 255, .06) 2px 3px, transparent 3px 8px); }
  .js .bp-glint { display: block; inset: 0; z-index: 4; overflow: hidden; border-radius: 3px; }
  .js .bp-glint::after { content: ""; position: absolute; inset: -20% -60%; opacity: 0; mix-blend-mode: screen;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%); transform: translateX(-60%); }
  .js .bp.glint .bp-glint::after { animation: glint 1.1s var(--ease) 1 both; }
  .js .bp-row::before { transform: scaleY(var(--lit, 0)); }
}
/* desktop: rows dim until their breaker lights them (dim rows keep 4.5:1: the text is full strength under the dimming) */
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .js .bp-row { opacity: calc(.55 + .45 * var(--lit, 0)); }
  html.js[data-theme="light"] .bp-row { opacity: calc(.7 + .3 * var(--lit, 0)); }
  .js .bp-row p { color: var(--fg); }
  .js .bp-lead { display: block; position: absolute; left: 0; top: 0; height: 1px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
  .js .bp-dot { display: block; position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity 200ms var(--ease); pointer-events: none; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) and (max-height: 820px) {
  .js .bp-row { padding-top: 8px; padding-bottom: 8px; }
  .js .bp-row p { font-size: 14px; line-height: 1.4; }
  .js .bp-dir-h { padding-top: 9px; padding-bottom: 9px; }
}
/* phones: compact panel on top, a 5-part progress line, and the active step's text below, one at a time */
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  .js .bp-track { height: calc(100svh + 150vh); }
  .js .bp-sticky { align-items: stretch; padding: calc(var(--nav-h) + 12px) 0 calc(64px + env(safe-area-inset-bottom) + 12px); }
  .js .bp-stage { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
  .js .bp-title { font-size: clamp(26px, 7.2vw, 34px); }
  .js .bp-title .kw { margin-bottom: 8px; }
  .js .bp-board { display: flex; flex-direction: column; gap: 14px; }
  .js .bp-panel { flex: 0 0 auto; align-self: center; width: min(78vw, 290px); height: min(40svh, 330px); padding: 9px 10px 9px; gap: 7px; }
  .js .bp-plate { padding: 5px 8px; font-size: 9px; }
  .js .bp-front { padding: 8px 10px 9px; column-gap: 10px; }
  .js .bp-brk { gap: 5px; }
  .js .bp-col { gap: 4px; }
  .js .bp-bus { margin-top: 12px; }
  .js .bp-live { padding: 3px 7px; font-size: 9px; }
  .js .bp-prog { display: flex; gap: 6px; }
  .js .bp-prog i { position: relative; flex: 1 1 0; height: 2px; background: var(--rule); overflow: hidden; }
  .js .bp-prog b { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
  .js .bp-dir { background: none; border: 0; }
  .js .bp-dir-h { display: none; }
  .js .bp-steps { display: grid; }
  .js .bp-row { grid-area: 1 / 1; align-content: start; padding: 0; border: 0; opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
  .js .bp-row.is-show { opacity: 1; transform: none; }
  .js .bp-row::before, .js .bp-row::after { display: none; }
  .js .bp-row h3 { font-size: 24px; }
  .js .bp-row p { font-size: 16px; margin-top: 6px; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) and (max-height: 700px) {
  .js .bp-panel { height: 36svh; }
  .js .bp-row p { font-size: 15px; line-height: 1.4; }
}

/* ---------- 3.4 what are you building ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) var(--gap); }
.tile-cell { position: relative; display: grid; align-content: start; gap: 14px; }
/* where and when the photo was taken: a small tag on the photo corner, its own link to the city page */
.tile-tag { position: absolute; top: 12px; left: 12px; z-index: 2; max-width: calc(100% - 24px); padding: 7px 10px; white-space: nowrap;
  color: var(--paper); background: rgba(17, 16, 16, .8); text-decoration: none; font-size: 11px; letter-spacing: .1em; }
.tile-tag::after { content: ""; position: absolute; inset: -8px; }
.tile-tag:hover { background: var(--ink); }
.tile-tag:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.tile-sub { justify-self: start; color: var(--fg-2); }
.tile-sub:hover { color: var(--fg); }
.tile { display: grid; gap: 18px; text-decoration: none; color: var(--fg); }
.tile-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.tile-img img.pos-bath { object-position: 56% 50%; }
.tile-img img.pos-office { object-position: 50% 40%; }
.tile-img.is-plan { position: relative; }
:root[data-theme="dark"] .tile-img.is-plan::after { content: ""; position: absolute; inset: 0; background: rgba(17, 16, 16, .16); pointer-events: none; }
.tile .label { position: relative; color: var(--accent); justify-self: start; padding-bottom: 4px; }
.tile .label::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 600ms var(--ease); }
.tile-line { display: flex; justify-content: space-between; gap: 16px; align-items: start; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.4; }
.tile-go { font: 500 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
.tile-go .arr { display: inline-block; transition: transform 500ms var(--ease); }
@media (hover: hover) {
  .tile:hover .tile-img img { transform: scale(1.03); }
  .tile:hover .label::after, .tile:focus-visible .label::after { transform: scaleX(1); }
  .tile:hover .arr { transform: translateX(4px); }
}
@media (max-width: 899px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 20px; } }
/* phones: one column, shorter crops so six doors stay a reasonable length */
@media (max-width: 599px) {
  .tiles { grid-template-columns: 1fr; gap: 40px; }
  .tile { gap: 14px; }
  .tile-img { aspect-ratio: 16 / 10; }
}

/* ---------- 3.5 work: editorial photo grid ---------- */
#work .sec-head { align-items: end; }
.wgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(32px, 3vw, 44px) var(--gap); align-items: start; }
.wt-l { grid-column: span 6; }
.wt-l .wt-img { aspect-ratio: 1 / 1; }
.wt-img img.pos-desk { object-position: 50% 55%; }
.wt-img img.pos-chand { object-position: 50% 30%; }
.wt-l .wt-cap { flex-direction: column; align-items: flex-start; gap: 8px; }
.wc .arr { color: var(--fg-2); }
.wc .wt-img::after { background: linear-gradient(115deg, transparent 45%, rgba(255,255,255,.4) 50%, transparent 55%); }
@media (prefers-reduced-motion: no-preference) {
  .wc.sw .wt-img::after { animation-duration: .6s; }
}
@media (max-width: 1023px) { .wt-l { grid-column: span 6; } }
@media (max-width: 599px) {
  .wgrid { gap: 32px 16px; }
  .wt-l { grid-column: 1 / -1; }
  .wt-l .wt-img { aspect-ratio: 4 / 5; }
}
/* more jobs: one row, native horizontal scroll with snap */
.wcar { margin-top: clamp(48px, 5vw, 72px); }
.wcar-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 20px; }
.wcar-head .label { color: var(--fg-3); margin-right: auto; }
.wcar-more { font-size: 15px; font-weight: 500; margin-right: 8px; }
.cbtn[hidden] { display: none; }
.wcar-play .i-play, .tick-play .i-play { display: none; }
.wcar-play[data-state="paused"] .i-pause, .tick-play[data-state="paused"] .i-pause { display: none; }
.wcar-play[data-state="paused"] .i-play, .tick-play[data-state="paused"] .i-play { display: block; }
/* last card: the way into the full gallery */
.wc-allbox { aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2vw, 28px); background: var(--bg-2); border: 1px solid var(--rule); }
.wc-allt { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; max-width: 8ch; }
.wc-allgo { align-self: flex-end; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--fg); border-radius: 50%; font-size: 20px; }
.cnav { display: flex; gap: 8px; }
.cbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); color: var(--fg); background: transparent; cursor: pointer; transition: opacity 300ms var(--ease); }
.cbtn:hover:not(:disabled) { border-color: var(--fg); }
.cbtn:disabled { opacity: .35; cursor: default; }
.wcar-track { position: relative; display: flex; gap: var(--gap); padding-inline: 38%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.wcar-track.drag { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
/* autoplay glide: the script moves the scroll position itself, so snapping and smooth scrolling step aside */
.wcar-track.auto { scroll-snap-type: none; scroll-behavior: auto; }
.wcar-track img { -webkit-user-drag: none; user-select: none; }
@media (hover: hover) and (pointer: fine) { .wcar-track { cursor: grab; } }
.wcar-track::-webkit-scrollbar { display: none; }
.wcar-track:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 4px; }
/* the side padding leaves a content box exactly one card wide, so first and last cards can centre */
.wcar-track > li { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; transform-origin: 50% 50%; }
.wcar-track .wt { height: 100%; }
.wcar-bar { display: none; position: relative; height: 1px; margin-top: 24px; background: var(--rule); overflow: hidden; }
.js .wcar-bar { display: block; }
.wcar-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--fg); transform-origin: 0 50%; }
@media (prefers-reduced-motion: reduce) { .wcar-track { scroll-behavior: auto; } }
@media (max-width: 1023px) { .wcar-track { padding-inline: 30%; } }
@media (max-width: 599px) {
  /* phones: the track runs edge to edge so the neighbouring cards peek in */
  .wcar-track { margin-inline: calc(var(--pad) * -1); padding-inline: 13vw; }
  .wcar-track .wt-cap .label { font-size: 11px; letter-spacing: .1em; }
}
@media (hover: none) and (pointer: coarse) { .wcar .cnav { display: none; } }
.js .cnav:not(.on) { visibility: hidden; }

/* ---------- 3.6 services sheet index ---------- */
.sheetgrid {
  background-color: var(--bg-2);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
}
.sheetgrid .wrap > * { position: relative; }
.sheets-head, .sheets a {
  display: grid; grid-template-columns: 72px 64px minmax(0, 1.25fr) minmax(0, 1.5fr) 32px; gap: 0 var(--gap); align-items: center;
}
.sheets-head { padding: 0 16px 14px; color: var(--fg-3); }
.sheets-head span:nth-child(2) { grid-column: 3; }
.sheets { border-top: 1px solid var(--fg); background: var(--bg-2); }
.sheets li { border-bottom: 1px solid var(--rule); }
.sheets a { position: relative; isolation: isolate; min-height: 64px; padding: 12px 16px; text-decoration: none; color: var(--fg); }
.sheets a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg-3); opacity: 0; transition: opacity 400ms var(--ease); }
.sheets .s-no { font: 500 13px/1 var(--mono); letter-spacing: .1em; color: var(--accent); }
.sheets .s-lead { width: 100%; height: 10px; overflow: visible; }
.sheets .s-lead line { stroke: var(--accent); stroke-width: 1; transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform 600ms var(--ease); }
.sheets .s-lead circle { fill: var(--accent); opacity: 0; transition: opacity 300ms var(--ease) 300ms; }
.sheets .s-title { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; }
.sheets .s-scope { color: var(--fg-2); font-size: 15px; line-height: 1.45; }
.sheets .s-arr { opacity: 0; transform: translateX(-6px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); justify-self: end; }
.sheets a:hover::before, .sheets a:focus-visible::before { opacity: 1; }
.sheets a:hover .s-lead line, .sheets a:focus-visible .s-lead line { transform: scaleX(1); }
.sheets a:hover .s-lead circle, .sheets a:focus-visible .s-lead circle { opacity: 1; }
.sheets a:hover .s-arr, .sheets a:focus-visible .s-arr { opacity: 1; transform: none; }
.svc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 4vw, 56px) clamp(32px, 4vw, 64px); align-items: start; }
.svc-h { color: var(--fg); margin-bottom: 14px; }
.svc-cols .sheets a { grid-template-columns: 64px minmax(0, 1fr) 24px; grid-template-rows: auto auto; row-gap: 4px; padding: 16px 14px; }
.svc-cols .sheets .s-lead { display: none; }
.svc-cols .sheets .s-no { grid-row: 1 / span 2; align-self: start; padding-top: 6px; }
.svc-cols .sheets .s-title { grid-column: 2; }
.svc-cols .sheets .s-scope { grid-column: 2; grid-row: 2; }
.svc-cols .sheets .s-arr { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 899px) { .svc-cols { grid-template-columns: 1fr; } }
/* phones: the scope line runs the full row width under the number and title, so it holds to two lines */
@media (max-width: 599px) {
  .svc-cols .sheets .s-no { grid-row: 1; align-self: center; padding-top: 0; }
  .svc-cols .sheets .s-arr { grid-row: 1; }
  .svc-cols .sheets .s-scope { grid-column: 1 / -1; }
}
.sheet-tb { margin-top: 28px; border: 1px solid var(--fg); padding: 14px 16px; background: var(--bg-2); color: var(--fg); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sheet-tb span + span::before { content: "—"; margin-right: 18px; color: var(--fg-3); }
@media (max-width: 899px) {
  .sheets-head { display: none; }
  .sheets a { grid-template-columns: 56px minmax(0, 1fr) 24px; grid-template-rows: auto auto; row-gap: 4px; padding: 16px 12px; }
  .sheets .s-lead { display: none; }
  .sheets .s-no { grid-row: 1 / span 2; align-self: start; padding-top: 6px; }
  .sheets .s-title { grid-column: 2; }
  .sheets .s-scope { grid-column: 2; grid-row: 2; }
  .sheets .s-arr { grid-column: 3; grid-row: 1 / span 2; opacity: 1; transform: none; }
  .sheet-tb span + span::before { display: none; }
  .sheet-tb { flex-direction: column; }
}

/* ---------- service calls: the emergency card holds still while recent calls drift past behind it ---------- */
.calls .sec-head { flex-wrap: nowrap; margin-bottom: clamp(32px, 4vw, 56px); }
.calls .sec-head > div { min-width: 0; }
.tick-play { flex: 0 0 auto; }
.calls-row { --sos-w: clamp(280px, 24vw, 340px); --sec-bg: var(--bg-3); position: relative; display: grid; }
.sos, .tick-win { grid-area: 1 / 1; }
/* bold and on-brand: paper on the dark theme, ink on the light theme, a signal-yellow top edge */
.sos { --bg: var(--paper); --fg: var(--ink); --fg-2: #5E5952; --accent: #7D5E1B; --focus: var(--ink); --rule: var(--line); --btn-bg: var(--ink); --btn-fg: var(--paper);
  position: relative; z-index: 2; width: var(--sos-w); display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(24px, 2.4vw, 32px); background: var(--bg); color: var(--fg); border-top: 4px solid var(--signal); }
/* desktop: the photos fade in from the card's right edge (section ground to transparent), outside the card itself */
@media (min-width: 900px) {
  .sos::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 48px; pointer-events: none;
    background: linear-gradient(to right, var(--sec-bg), transparent); }
}
html[data-theme="light"] .sos { --bg: var(--ink); --fg: var(--paper); --fg-2: var(--mist); --accent: var(--signal); --focus: var(--signal); --rule: var(--line-d); --btn-bg: var(--signal); --btn-fg: var(--ink); }
.sos-l { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); }
.sos-l::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 28%, transparent); }
.sos h3 { margin-top: 16px; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -0.03em; }
.sos-t { margin-top: 10px; color: var(--fg-2); font-size: 16px; line-height: 1.45; }
.sos-btn { margin-top: 22px; width: 100%; min-height: 56px; background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); font-size: 17px; font-weight: 600; }
.sos-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sos-911 { margin-top: 14px; color: var(--fg-2); font-size: 11px; letter-spacing: .1em; }
.sos-more { margin-top: 18px; font-size: 15px; font-weight: 500; }
.tick-win { position: relative; z-index: 1; min-width: 0; margin-right: calc((100vw - 100%) / -2); }
.tick-track { position: relative; display: flex; align-items: flex-start; gap: 16px; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 0 var(--pad) 6px calc(var(--sos-w) + var(--gap)); }
.tick-track::-webkit-scrollbar { display: none; }
.tick-track.drag { cursor: grabbing; user-select: none; }
@media (hover: hover) and (pointer: fine) { .js .tick-track { cursor: grab; } }
/* moving (JS, motion allowed): the window clips, the whole row drifts on the compositor (transform only) */
@media (prefers-reduced-motion: no-preference) {
  .tick-on .tick-win { overflow: hidden; overflow: clip; touch-action: pan-y; }
  .tick-on .tick-track { width: max-content; overflow: visible; contain: layout paint; will-change: transform; }
}
/* one photo height, each photo its own width; the caption wraps inside the photo's width */
.tc { --th: clamp(190px, 17vw, 240px); position: relative; flex: 0 0 auto; display: grid; grid-template-columns: min-content; gap: 12px; color: var(--fg); }
.tc-img { display: block; height: var(--th); width: auto; max-width: none; background: var(--bg-2); -webkit-user-drag: none; user-select: none; }
.tc-cap { display: grid; gap: 4px; font-size: 15px; line-height: 1.35; }
.tc-cap .label { color: var(--accent); font-size: 11px; letter-spacing: .12em; }
.tc-main { font-weight: 500; }
.tc-main:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.tc-meta { color: var(--fg-2); font-size: 14px; }
.tc-meta .wt-city { color: var(--fg); }
@media (max-width: 899px) {
  .calls-row { display: block; }
  .sos { width: auto; margin-bottom: 28px; }
  .tick-win { margin: 0 calc(var(--pad) * -1); }
  .tick-track { padding: 0 var(--pad) 6px; }
  .tc { --th: 190px; }
}

/* ---------- 3.8 tools ---------- */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.tool { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2.6vw, 40px); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--fg); background: var(--bg-2); position: relative; isolation: isolate; }
.tool::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg-3); opacity: 0; transition: opacity 400ms var(--ease); }
.tool:hover::before { opacity: 1; }
.tool svg { width: 100%; height: auto; aspect-ratio: 16 / 10; color: var(--fg); margin-bottom: 12px; }
.tool svg .acc { stroke: var(--accent); }
.tool svg .accf { fill: var(--accent); }
.tool .label { color: var(--accent); }
.tool p { color: var(--fg-2); flex: 1; }
.tool .go { font: 500 12px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.tool .go .arr { display: inline-block; transition: transform 500ms var(--ease); }
.tool:hover .go .arr { transform: translateX(4px); }
@media (max-width: 899px) { .tools { grid-template-columns: 1fr; } }

/* ---------- service area ---------- */
#service-area .sec-head { margin-bottom: 28px; }
.area-lead { color: var(--fg-2); max-width: 60ch; margin-bottom: clamp(32px, 4vw, 56px); }
.area-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
/* no script, or the map could not load: the box steps aside and the city list stands alone */
.area-grid.no-map, html:not(.js) .area-grid { grid-template-columns: 1fr; }
.area-grid.no-map .area-map, html:not(.js) .area-map { display: none; }
/* the height is reserved up front, so the map arriving never moves the page */
.amap { position: relative; isolation: isolate; height: clamp(340px, 38vw, 500px); background: var(--bg-3); border: 1px solid var(--rule); }
.amap-note { margin-top: 12px; color: var(--fg-3); font-size: 11px; letter-spacing: .06em; }
@media (max-width: 899px) {
  .area-grid { grid-template-columns: 1fr; }
  .amap { height: 360px; }
}
/* Leaflet, restyled to the v2 tokens (the id keeps these ahead of Leaflet's own sheet, which loads later) */
#area-map.leaflet-container { background: var(--bg-3); font-family: var(--font); }
#area-map .leaflet-tile-pane { filter: grayscale(1) sepia(.14) contrast(.92) brightness(1.03); }
html[data-theme="dark"] #area-map .leaflet-tile-pane { filter: grayscale(1) invert(1) sepia(.16) brightness(.82) contrast(.94); }
#area-map .amap-cover { stroke: var(--accent); stroke-opacity: .9; fill: var(--accent); fill-opacity: .07; }
#area-map .leaflet-bar { margin: 12px; border: 1px solid var(--rule); border-radius: 0; box-shadow: none; }
#area-map .leaflet-bar a { width: 40px; height: 40px; line-height: 38px; border-radius: 0; color: var(--fg); background: var(--bg-2); border-bottom: 1px solid var(--rule); font: 400 20px/38px var(--font); }
#area-map .leaflet-bar a:last-child { border-bottom: 0; }
#area-map .leaflet-bar a:hover, #area-map .leaflet-bar a:focus-visible { color: var(--bg-2); background: var(--fg); }
#area-map .leaflet-bar a.leaflet-disabled { color: var(--fg-3); background: var(--bg-2); }
#area-map .leaflet-control-attribution { padding: 2px 8px; color: var(--fg-2); background: var(--bg-2); font: 400 10px/1.6 var(--font); }
#area-map .leaflet-control-attribution a { color: var(--fg); }
/* the Power On mark (decorative, JS only): above the tiles and the coverage outline, under markers and popups,
   8px above the attribution. Transparent, no plate: a soft halo in the page colour keeps it readable on busy tiles
   (a static filter on a non-moving image, never animated) */
#area-map .amap-logo { position: absolute; left: 0; top: 0; padding: 4px 6px; pointer-events: none; background: none; }
#area-map .amap-logo img { display: block; width: 110px; height: auto; max-width: none;
  filter: drop-shadow(0 0 2px var(--bg)) drop-shadow(0 0 6px color-mix(in srgb, var(--bg) 70%, transparent)); }
@media (max-width: 599px) { #area-map .amap-logo img { width: 80px; } }
/* a city marker is a small square with a brass dot, centred on the city. Eleven names cannot all fit at the
   opening zoom, so the name shows on hover, focus, while its popup is open, and for every city once zoomed in */
.amark { display: inline-flex; align-items: center; width: max-content; height: 24px; min-width: 24px; padding: 0 7px; white-space: nowrap;
  color: var(--fg); background: var(--bg-2); border: 1px solid color-mix(in srgb, var(--fg) 34%, transparent); box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
  font: 500 11px/1.1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  transform: translate(-12px, -50%); transition: transform 200ms var(--ease); }
.amark::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; background: var(--accent); }
.amark-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.z-lab .amark-l, .amark:hover .amark-l, .amark.is-active .amark-l, .leaflet-marker-icon:focus-visible .amark-l { position: static; width: auto; height: auto; overflow: visible; clip: auto; margin-left: 7px; }
.amark:hover, .amark.is-active, .leaflet-marker-icon:focus-visible .amark { transform: translate(-12px, -50%) translateY(-3px); border-color: var(--accent); }
#area-map .leaflet-marker-icon:focus-visible { outline: none; }
#area-map .leaflet-marker-icon:focus-visible .amark { outline: 2px solid var(--focus); outline-offset: 2px; }
#area-map .leaflet-popup-content-wrapper { padding: 0; color: var(--fg); background: var(--bg-2); border: 1px solid var(--rule); border-radius: 0; box-shadow: 0 18px 46px rgba(0, 0, 0, .32); }
#area-map .leaflet-popup-tip { background: var(--bg-2); box-shadow: none; }
#area-map .leaflet-popup-content { margin: 16px 40px 16px 18px; font: 400 14px/1.45 var(--font); }
#area-map a.leaflet-popup-close-button { top: 4px; right: 4px; width: 32px; height: 32px; color: var(--fg-2); font: 400 22px/32px var(--font); }
#area-map a.leaflet-popup-close-button:hover { color: var(--fg); }
.apop strong { display: block; margin-bottom: 4px; font-size: 17px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.apop > span { display: block; margin-bottom: 12px; color: var(--fg-2); font-size: 13px; }
.apop-a { display: flex; flex-wrap: wrap; gap: 8px; }
#area-map .apop .apop-c { display: inline-block; min-height: 0; padding: 4px 0; border: 0; color: var(--fg); font-size: 14px; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.apop-s { margin: 6px 0 12px; padding-top: 8px; border-top: 1px solid var(--rule); }
#area-map .apop .apop-s a { display: block; min-height: 0; padding: 5px 0; border: 0; color: var(--fg-2); font-size: 13px; white-space: normal; }
#area-map .apop .apop-s a:hover, #area-map .apop .apop-c:hover { color: var(--accent); }
#area-map .apop a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; white-space: nowrap; color: var(--fg); border: 1px solid var(--fg); font-size: 13px; font-weight: 500; text-decoration: none; }
#area-map .apop a.apop-q { color: var(--btn-fg); background: var(--btn-bg); border-color: var(--btn-bg); }
@media (max-width: 899px) {
  .apop { max-width: min(238px, calc(100vw - 110px)); }
}
/* built for the valley: four facts in one compact row */
.cond { margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); }
.cond-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(32px, 5vw, 80px); align-items: start; margin-bottom: clamp(28px, 3vw, 40px); }
.cond-head p { color: var(--fg-2); max-width: 60ch; }
.cond-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.cond-row li { display: grid; gap: 10px; align-content: start; padding: 22px clamp(16px, 2vw, 28px) 4px; min-width: 0; }
.cond-row li:first-child { padding-left: 0; }
.cond-row li + li { border-left: 1px solid var(--rule); }
.cond-i { width: 40px; height: 40px; margin-bottom: 4px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.cond-row strong { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
.cond-row li > span:last-child { color: var(--fg-2); font-size: 15px; line-height: 1.45; }
@media (max-width: 899px) {
  .cond-head { grid-template-columns: 1fr; }
  .cond-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cond-row li, .cond-row li:first-child { padding: 18px 14px 18px 0; }
  .cond-row li + li { border-left: 0; }
  .cond-row li:nth-child(even) { padding-left: 16px; padding-right: 0; border-left: 1px solid var(--rule); }
  .cond-row li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 479px) {
  .cond-row { grid-template-columns: 1fr; }
  .cond-row li, .cond-row li:first-child, .cond-row li:nth-child(even) { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 16px 0; border-left: 0; }
  .cond-row li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .cond-i { grid-row: 1 / span 2; margin: 0; }
  .cond-row strong, .cond-row li > span:last-child { grid-column: 2; }
}

/* ---------- 3.9 reviews ---------- */
.rq { max-width: 1040px; }
.review { border-top: 1px solid var(--rule); padding-top: 28px; }
.review + .review { margin-top: 48px; }
.js .rq .review + .review { margin-top: 0; }
.rq-stars { color: var(--accent); font-size: 18px; letter-spacing: .18em; line-height: 1; }
.review blockquote { margin-top: 20px; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.32; letter-spacing: -0.02em; font-weight: 400; }
.rq-slide.enter { animation: rq-in 500ms var(--ease) both; }
@keyframes rq-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rq-ctrl { display: none; align-items: center; gap: 12px; margin-top: 36px; }
.js .rq-ctrl { display: flex; }
.rq-dots { display: flex; }
.rq-dot { width: 32px; height: 44px; display: grid; place-items: center; background: transparent; cursor: pointer; }
.rq-dot span { width: 9px; height: 9px; border: 1px solid var(--fg-3); }
.rq-dot[aria-current="true"] span { background: var(--accent); border-color: var(--accent); }
.rq-play { margin-left: 8px; }
.rq-play .i-play { display: none; }
.rq-play[data-state="paused"] .i-pause { display: none; }
.rq-play[data-state="paused"] .i-play { display: block; }
/* time to the next quote: a thin line that fills over 7 s (it also drives the advance) */
.rq-time { position: relative; height: 1px; margin-top: 18px; max-width: 320px; background: var(--rule); overflow: hidden; }
.rq-time span { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.rq-time.run span { animation: rq-time 7s linear forwards; }
.rq-time.hold span { animation-play-state: paused; }
@keyframes rq-time { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .rq-slide.enter { animation: none; } }
.review blockquote p + p { margin-top: 1em; }
.review .r-ell { display: none; }
.js .review.is-clamped .r-more { display: none; }
.js .review.is-clamped .r-ell { display: inline; }
.review .r-toggle { display: none; margin-top: 18px; min-height: 44px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg); }
.js .review .r-toggle { display: inline-flex; align-items: center; }
.review .r-toggle span { padding-bottom: 4px; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1px no-repeat; }
.review figcaption { margin-top: 28px; color: var(--fg-2); }
.review figcaption strong { color: var(--fg); font-weight: 500; }
.reviews-links { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- 3.11 closing ---------- */
.band { position: relative; height: clamp(240px, 34vh, 420px); overflow: hidden; background: var(--ink); }
.band img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; object-position: 50% 26%; transform: translate3d(0, var(--band-y, 0px), 0); will-change: transform; }
/* portrait band: taller box so the glow line lands in the lower third */
@media (max-width: 899px) { .band img { top: -9%; height: 134%; object-position: 50% 40%; } }
@media (prefers-reduced-motion: reduce) { .band img { top: 0; height: 100%; transform: none; } }
.band picture { display: contents; }
.band .band-cap { position: absolute; left: var(--pad); bottom: 20px; z-index: 1; color: var(--paper); background: rgba(17,16,16,.72); padding: 8px 12px; }
.closing .display { margin: 0 0 clamp(28px, 3vw, 40px); }
.closing .display .ln { max-width: 15ch; }
.closing .ctas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; max-width: 600px; }
.closing .ctas .btn { min-height: 64px; font-size: 18px; padding: 0 28px; }
.closing .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.closing .ctas .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
@media (max-width: 599px) {
  .closing .ctas { grid-template-columns: 1fr; max-width: none; }
  .closing .ctas .btn { min-height: 56px; font-size: 17px; }
}
.closing.section { padding: clamp(56px, 6vw, 80px) 0; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 5vw, 96px); align-items: end; }
/* up to 1199px the city list moves under the buttons, so the two buttons keep >= 280px side by side */
@media (max-width: 1199px) { .closing-grid { grid-template-columns: 1fr; } }
/* every city carries a leading middot; the list is pulled left so the dot that
   starts each wrapped line falls outside the clipped box and only inner dots show */
.area-list { overflow: hidden; padding: 6px; margin: -6px; }
.area-list .label { color: var(--fg-3); margin-bottom: 12px; }
.city-line { display: flex; flex-wrap: wrap; margin-left: -1.1em; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; letter-spacing: -0.015em; font-weight: 500; }
.city-line li::before { content: "\00B7"; display: inline-block; width: 1.1em; text-align: center; color: var(--fg-3); font-weight: 400; }
.city-line a { position: relative; color: var(--fg); text-decoration: none; }
.city-line a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 600ms var(--ease); }
.city-line a:hover::after, .city-line a:focus-visible::after { transform: scaleX(1); }
.area-list .tlink-row { margin-top: 24px; }
.closing-mail { margin-top: 24px; }
/* what happens next: three quiet numbered lines beside (desktop) or under (phones) the two buttons */
.next { margin-bottom: 28px; max-width: 560px; }
.next .label { color: var(--fg-3); margin-bottom: 12px; }
.next-steps { border-top: 1px solid var(--rule); }
.next-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule); color: var(--fg-2); font-size: 15px; line-height: 1.45; }
.next-n { color: var(--accent); padding-top: 2px; }
.next-steps strong { color: var(--fg); font-weight: 600; }

/* ---------- hero motion: runs on load, CSS only, so it never waits on JS ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* desktop only (owner, Nov 15): on phones the headline shows at once, so the first screen counts as painted as soon as
     the text is (PageSpeed ignores text that slides in from a clipped line) */
  @media (min-width: 900px) { .js .hero h1 .ln > span { animation: line-up 900ms var(--ease) both; } }
  .js .hero h1 .ln:nth-child(2) > span { animation-delay: 70ms; }
  .js .hero h1 .ln:nth-child(3) > span { animation-delay: 140ms; }
  .js .hero .rise { animation: rise 900ms var(--ease) both; animation-delay: 260ms; }
  .js .hero .rise-2 { animation-delay: 360ms; }
  .js .hero .rise-3 { animation-delay: 460ms; }
}
/* homepage per-element reveals: hidden from first paint (the .js class is set in the head), shown by core.js */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js [data-reveal="image"] { opacity: 1; transform: none; clip-path: inset(12% 0 0 0); transition: clip-path 900ms var(--ease); }
  .js [data-reveal="image"].in { clip-path: inset(0); }
  .js [data-reveal="lines"] { opacity: 1; transform: none; }
  .js [data-reveal="lines"] .ln > span { transform: translateY(100%); transition: transform 900ms var(--ease); }
  .js [data-reveal="lines"].in .ln > span { transform: none; }
  .js [data-reveal="lines"] .ln:nth-child(2) > span { transition-delay: 70ms; }
  .js [data-reveal="lines"] .ln:nth-child(3) > span { transition-delay: 140ms; }
}
@keyframes line-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- guided tour: "Take me through the circuit" (tour.js) ---------- */
/* the start button: a quiet play control beside the hero buttons */
.tour-go { display: inline-flex; align-items: center; gap: 12px; margin-left: 6px; padding: 6px 8px 6px 0; border: 0; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.tour-go[hidden] { display: none; }
.tour-go-i { position: relative; flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 38%, transparent); transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease); }
.tour-go-i svg { margin-left: 2px; }
.tour-go-i::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--signal); opacity: 0; }
.tour-go-t { display: grid; gap: 5px; }
.tour-go-m { font-size: 15px; font-weight: 500; line-height: 1.15; letter-spacing: -.005em; }
.tour-go-s { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.tour-go:hover .tour-go-i { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 14%, transparent); transform: scale(1.04); }
.tour-go:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .tour-go-i::after { animation: tour-ping 2.8s cubic-bezier(.2, .7, .1, 1) 1.6s infinite; }
}
@keyframes tour-ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
/* phones: the hero is measured to fit one screen, so the start button takes the "Finished work" row's place */
.tour-go-sm { display: none; }
@media (max-width: 899px) {
  .hero-ctas .tour-go { display: none; }
  .tour-go-sm:not([hidden]) { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 10px 0 0; border: 0; border-top: 1px solid var(--rule); background: none;
    color: var(--fg); font-size: 11px; line-height: inherit; letter-spacing: .12em; text-transform: uppercase; text-align: left; cursor: pointer; }
  .tour-go-sm .tour-go-i { width: 22px; height: 22px; margin: -6px 0; color: var(--signal); border-color: color-mix(in srgb, var(--signal) 55%, transparent); }
  .tour-go-sm .tour-go-i svg { margin-left: 1px; }
  .tour-go-sm:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
  .hero-copy:has(.tour-go-sm:not([hidden])) .hero-line { display: none; }
}
@media (max-width: 599px) { .tour-go-sm:not([hidden]) { max-width: calc(100% - 72px - 16px); } }
@media (max-width: 399px) { .tour-go-sm:not([hidden]) { font-size: 10px; letter-spacing: .08em; } }
@media (max-width: 599px) and (max-height: 800px) { .tour-go-sm:not([hidden]) { margin-top: 10px; padding-top: 8px; } }
@media (max-width: 599px) and (max-height: 680px) { .tour-go-sm:not([hidden]) { margin-top: 6px; padding-top: 5px; } }

/* while the tour runs: the header and the call bar step aside, letterbox bars close in, the edges darken */
.tour { --tb: clamp(10px, 4.2vh, 46px); position: relative; z-index: 1000; font-family: var(--font); }
.tour-bars i, .tour-vig, .tour-cut, .tour-hud, .tour-end { position: fixed; }
.tour-bars i { left: 0; right: 0; height: var(--tb); background: #000; z-index: 1000; pointer-events: none; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.tour-bars i:first-child { top: 0; transform: translateY(-101%); }
.tour-bars i:last-child { bottom: 0; transform: translateY(101%); }
.tour.on .tour-bars i { transform: none; }
.tour-vig { inset: 0; z-index: 999; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; background: radial-gradient(120% 90% at 50% 45%, transparent 58%, rgba(0, 0, 0, .3) 100%); }
.tour.on .tour-vig { opacity: 1; }
html.tour-on .nav { transform: translateY(-110%); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
html.tour-on .bbar { transform: translateY(110%); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
html.tour-on .secmenu { display: none; }
html.tour-on.tour-idle, html.tour-on.tour-idle * { cursor: none !important; }

/* the cut: a dip to black that carries the stop's title */
.tour-cut { inset: 0; z-index: 1001; display: grid; place-items: center; padding: 0 var(--pad); background: #050505; color: #F5F3EE; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .46s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .46s; }
.tour-cut.on { opacity: 1; visibility: visible; transition: opacity .46s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
.tour-cut-in { width: min(1100px, 100%); text-align: center; }
.tour-k { margin: 0 0 18px; font: 500 11px/1.3 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--brass-l); }
.tour-t { max-width: 11ch; margin: 0 auto; padding-bottom: .08em; font-size: clamp(44px, 8vw, 120px); font-weight: 600; line-height: 1; letter-spacing: -.04em; color: #F5F3EE; text-wrap: balance;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F3EE 45%, #B9B1A3 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tour-s { margin: 22px 0 0; font: 400 11px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #8F897F; }
.tour-s:empty { display: none; }
.tour-cut-in::after { content: ""; display: block; width: min(160px, 40vw); height: 1px; margin: 30px auto 0; background: linear-gradient(90deg, transparent, var(--signal), transparent); transform: scaleX(0); }
@media (prefers-reduced-motion: no-preference) {
  .tour-cut .tour-k, .tour-cut .tour-t, .tour-cut .tour-s { opacity: 0; transform: translateY(14px); filter: blur(10px); }
  .tour-cut.show .tour-k { animation: tour-in .8s cubic-bezier(.2, .8, .2, 1) .08s forwards; }
  .tour-cut.show .tour-t { animation: tour-in 1s cubic-bezier(.2, .8, .2, 1) .16s forwards; }
  .tour-cut.show .tour-s { animation: tour-in .9s cubic-bezier(.2, .8, .2, 1) .42s forwards; }
  .tour-cut.show .tour-cut-in::after { animation: tour-wire 1.1s cubic-bezier(.6, 0, .2, 1) .3s forwards; }
}
@keyframes tour-in { to { opacity: 1; transform: none; filter: none; } }
@keyframes tour-wire { to { transform: scaleX(1); } }

/* the control bar: frosted glass, the stops as a segmented line, sized by how long each one runs */
.tour-hud { left: 50%; bottom: calc(var(--tb) + 14px + env(safe-area-inset-bottom)); z-index: 1002; width: min(620px, calc(100% - 24px));
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px; padding: 7px;
  border-radius: 24px; color: #F5F3EE; background: rgba(20, 19, 18, .74); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 60px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .07);
  transform: translate(-50%, calc(100% + 60px)); opacity: 0; visibility: hidden;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1) .15s, opacity .5s ease .15s, visibility 0s linear .95s; }
.tour.on .tour-hud { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .8s cubic-bezier(.2, .8, .2, 1) .15s, opacity .5s ease .15s, visibility 0s; }
html.tour-idle .tour.on .tour-hud { opacity: .3; transition: opacity 1.2s ease; }
html.tour-idle .tour.on .tour-hud:hover, html.tour-idle .tour.on .tour-hud:focus-within { opacity: 1; transition: opacity .25s ease; }
html.tour-ended .tour.on .tour-hud { opacity: 0; visibility: hidden; }
.tour-b { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.tour-b:hover { background: rgba(255, 255, 255, .1); }
.tour-b:active { transform: scale(.94); }
.tour-b:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.tour-pp { width: 44px; height: 44px; background: #F5F3EE; color: #111010; }
.tour-pp:hover { background: #FFFFFF; }
.tour-mid { min-width: 0; padding: 0 10px; }
.tour-now { display: flex; align-items: baseline; gap: 10px; margin: 0; font: 500 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.tour-n { flex: 0 0 auto; color: var(--signal); }
.tour-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #F5F3EE; }
.tour-st { display: none; flex: 0 0 auto; margin-left: auto; padding: 3px 7px; border-radius: 6px; background: rgba(242, 194, 48, .16); color: var(--signal); }
html.tour-paused .tour-st { display: inline-block; }
.tour-seg { display: flex; gap: 3px; margin: 9px 0 0; padding: 0; list-style: none; }
.tour-seg li { flex: 1 1 0; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .2); }
.tour-seg i { display: block; height: 100%; background: #F5F3EE; transform-origin: left center; transform: scaleX(var(--f, 0)); }
@media (max-width: 599px) {
  .tour { --tb: clamp(8px, 2.6vh, 22px); }
  .tour-hud { gap: 0; padding: 6px; border-radius: 22px; }
  .tour-b { width: 36px; height: 36px; }
  .tour-pp { width: 40px; height: 40px; }
  .tour-mid { padding: 0 6px; }
  .tour-now { font-size: 9.5px; gap: 8px; letter-spacing: .1em; }
}

/* the end card */
.tour-end { inset: 0; z-index: 1003; display: grid; place-items: center; padding: var(--pad); color: #F5F3EE; background: rgba(5, 5, 5, .82); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); opacity: 0; transition: opacity .6s ease; }
.tour-end[hidden] { display: none; }
.tour-end.on { opacity: 1; }
.tour-end-in { max-width: 640px; text-align: center; }
.tour-end-h { margin: 0; padding-bottom: .08em; font-size: clamp(40px, 6.4vw, 88px); font-weight: 600; line-height: 1; letter-spacing: -.04em; text-wrap: balance;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F3EE 45%, #B9B1A3 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tour-end-p { margin: 20px auto 0; max-width: 40ch; font-size: 17px; line-height: 1.5; color: #B9B1A3; }
.tour-end-a { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.tour-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid rgba(245, 243, 238, .34); color: #F5F3EE; font-size: 16px; font-weight: 500; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.tour-btn:hover { border-color: #F5F3EE; }
.tour-btn-p { background: #F5F3EE; border-color: #F5F3EE; color: #111010; }
.tour-btn-p:hover { background: #FFFFFF; }
.tour-btn:focus-visible, .tour-lnk:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.tour-end-b { display: flex; justify-content: center; gap: 28px; margin-top: 26px; }
.tour-lnk { display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px; border: 0; background: none; color: #A9A398; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.tour-lnk:hover { color: #F5F3EE; }
.tour-lnk svg { width: 15px; height: 15px; }
/* the logo falls in from the top and settles; a soft light gathers under it as it lands; the words follow */
.tour-end-logo { display: block; width: clamp(150px, 17vw, 230px); height: auto; margin: 0 auto 34px; filter: blur(0) drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.tour-end-in { position: relative; }
.tour-end-in::before { content: ""; position: absolute; left: 50%; top: calc(clamp(150px, 17vw, 230px) * .41 + 14px); width: clamp(180px, 22vw, 300px); height: 34px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 194, 48, .22), transparent); pointer-events: none; opacity: 0; }
.tour-end.on .tour-end-in::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .tour-end.on .tour-end-logo { animation: tour-fall 1.8s cubic-bezier(.22, 1, .36, 1) .15s both; }
  .tour-end.on .tour-end-in::before { animation: tour-glow 1.4s ease-out .9s both; }
  .tour-end.on .tour-end-in > :not(.tour-end-logo) { opacity: 0; transform: translateY(14px); filter: blur(8px); animation: tour-in .9s cubic-bezier(.2, .8, .2, 1) both; }
  .tour-end.on .tour-end-in > :nth-child(2) { animation-delay: 1.05s; }
  .tour-end.on .tour-end-in > :nth-child(3) { animation-delay: 1.15s; }
  .tour-end.on .tour-end-in > :nth-child(4) { animation-delay: 1.27s; }
  .tour-end.on .tour-end-in > :nth-child(5) { animation-delay: 1.39s; }
  .tour-end.on .tour-end-in > :nth-child(6) { animation-delay: 1.5s; }
}
@keyframes tour-fall {
  0% { opacity: 0; transform: translateY(-58vh) scale(.94); filter: blur(10px) drop-shadow(0 18px 30px rgba(0, 0, 0, 0)); }
  55% { opacity: 1; filter: blur(0) drop-shadow(0 18px 30px rgba(0, 0, 0, .3)); }
  78% { transform: translateY(5px) scale(1.005); }
  100% { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
}
@keyframes tour-glow { 0% { opacity: 0; transform: translateX(-50%) scaleX(.4); } 100% { opacity: 1; transform: translateX(-50%) scaleX(1); } }
