/* 41 Groundwork: Talus Construction (sample)
   Recreation of the look of bldr.framer.website (our own code, CC0 photos).
   Near-black pages, #1a1a1a panels inset 12px from the screen edge, Inter Display headings and one safety-orange accent
   with a glow. The phone pill (orange, white icon tile) repeats after nearly every section; a service-area dot map with
   one panel per town; a pinned process and stacked project cards on computers.
   Re-skin: change the shared token layer below. Breakpoints 760 / 1080 (ncs-desktop). No JavaScript: :target, :has(),
   <details>, scroll-snap rails and CSS scroll-driven animation only. */
:root {
  /* Shared token layer (library-wide names) */
  --c-bg: #0d0d0d;                 /* page */
  --c-surface: #1a1a1a;            /* panels (about intro, projects, map, form) */
  --c-ink: #ffffff;
  --c-muted: #9a9a9a;              /* body copy: 6.9:1 on the page, 6.2:1 on panels */
  --c-line: rgba(255, 255, 255, .08);   /* card borders, dividers (decorative) */
  --c-line-strong: #777777;        /* field borders, 3.9:1 on panels */
  --c-accent: #ff8a24;             /* safety orange: buttons, the phone pill, pins */
  --c-on-accent: #0d0d0d;          /* 8.9:1 on orange */
  --c-accent-2: #ffc46b;           /* status only (the "sent" check) */
  --f-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;  /* optical size 32 = Inter Display */
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;     /* optical size 14 = Inter */
  --f-mono: var(--f-body);         /* none: numbers use tabular figures */
  --r-sm: 8px;      /* utility strip, icon tiles, chips */
  --r-lg: 24px;     /* panels, hero frame */
  --r-pill: 12px;   /* buttons and the phone pill (as measured) */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 48px; --s-5: 80px; --s-6: 112px;

  /* Theme names mapped to the shared layer */
  --page: var(--c-bg);
  --panel: var(--c-surface);
  --card: #141414;                 /* cards inside panels and on the page */
  --field: #262626;                /* inputs */
  --orange: var(--c-accent);
  --glow: 0 1.3px 1.3px -.5px rgb(241 113 1 / .19), 0 3.2px 3.2px -.9px rgb(241 113 1 / .18), 0 5.8px 5.8px -1.4px rgb(241 113 1 / .18), 0 12px 12px -2.8px rgb(241 113 1 / .16), 0 24px 24px -5px rgb(241 113 1 / .1);
  --edge: inset 0 1px 0 rgb(255 255 255 / .06);   /* the top highlight on cards */
  --inset: 8px;                    /* panels and frames sit this far from the screen edge */
  --gut: 16px;                     /* container side padding */
  --head-h: 108px;                 /* utility strip + bar (phone) */
  --util-h: 44px;
  --sec: 48px;                     /* section padding */
  --e-out: cubic-bezier(.23, 1, .32, 1);
  --e-roll: cubic-bezier(.65, 0, .35, 1);
  --t-h1: clamp(40px, 1.524vw + 34px, 56px);
  --t-h2: clamp(32px, 1.524vw + 26px, 48px);
  --t-ph: clamp(44px, 2vw + 30px, 64px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); scroll-padding-top: 80px; }
body { margin: 0; background: var(--page); color: var(--c-ink); font: 400 16px/1.5 var(--f-body); font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-variation-settings: "opsz" 32; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }
small { font-size: inherit; }
.num { font-variant-numeric: tabular-nums; }
.mute { color: var(--c-muted); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: calc(1240px + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.d-only { display: none; }

a, button, summary, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn-o:focus-visible, .pill:focus-visible { outline-color: #fff; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 300; padding: 12px 16px; background: var(--orange); color: var(--c-on-accent); border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }
.demo { background: #000; color: #b3b3b3; font-size: 13px; line-height: 1.4; text-align: center; padding: 10px 16px; }

/* ---------- Buttons, the phone pill, rolling labels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-pill);
  font: 500 16px/1 var(--f-display); font-variation-settings: "opsz" 32; cursor: pointer; white-space: nowrap;
  transition: transform 120ms var(--e-out), background-color 200ms; }
.btn .i { width: 16px; height: 16px; }
.btn-o { background: var(--orange); color: var(--c-on-accent); box-shadow: var(--glow), inset 0 1px 0 rgb(255 255 255 / .3); }
.btn-ghost { background: rgb(255 255 255 / .08); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-wide { width: 100%; }
.btn:active, .pill:active { transform: scale(.97); }

.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 18px 4px 4px; border-radius: var(--r-pill); background: var(--orange);
  color: var(--c-on-accent); font: 500 16px/1 var(--f-display); font-variation-settings: "opsz" 32; white-space: nowrap; box-shadow: var(--glow), inset 0 1px 0 rgb(255 255 255 / .3);
  transition: transform 120ms var(--e-out); }
.pill-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: #fff; color: #0d0d0d; }
.pill-i .i { width: 18px; height: 18px; stroke-width: 1.75; }

.roll { display: inline-grid; overflow: clip; }
.roll > span, .roll::after { grid-area: 1 / 1; transition: translate 300ms var(--e-roll); }
.roll::after { content: attr(data-label) / ""; translate: 0 110%; }
@media (hover: hover) and (pointer: fine) {
  a:hover .roll > span { translate: 0 -110%; }
  a:hover .roll::after { translate: 0 0; }
  .btn-o:hover, .pill:hover { background: #ff9a40; }
  .btn-ghost:hover { background: rgb(255 255 255 / .14); }
}

/* ---------- Eyebrow, headings ---------- */
.eyebrow { display: flex; align-items: center; gap: 6px; font: 600 13px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #cfcfcf; margin-bottom: 16px; }
.eyebrow::before { content: "//"; color: var(--orange); letter-spacing: 0; }
.center .eyebrow { justify-content: center; }
.h1 { font-size: var(--t-h1); line-height: 1.02; letter-spacing: -.025em; }
.h2 { font-size: var(--t-h2); line-height: 1.04; letter-spacing: -.02em; }
.h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.01em; }
.lead { color: var(--c-muted); }
.sec { padding-block: var(--sec); }
.sec-head { display: grid; gap: 12px; margin-bottom: 28px; }
.sec-head .eyebrow { margin-bottom: 4px; }
.sec-head.center { text-align: center; justify-items: center; }
.sec-head.center .lead { max-width: 640px; }
.sec-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.sec-cta.center { justify-content: center; }
.sec-cta-note { color: var(--c-muted); font-size: 14px; }

/* Panels break out of the container to the 8/12px inset, content stays on the container */
.panel { background: var(--panel); border-radius: var(--r-lg); margin-inline: calc(50% - 50vw + var(--inset)); padding: 40px calc(50vw - 50% - var(--inset));
  box-shadow: var(--edge); }

/* Rails (phones): swipe rows with hidden scrollbars */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* ---------- Header: utility strip + bar (sticky; the strip scrolls away) ---------- */
.site-head { position: sticky; top: calc(-1 * var(--util-h)); z-index: 50; }
.util { padding: 12px 12px 0; height: var(--util-h); }
.util-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 32px; padding: 0 12px; border-radius: var(--r-sm);
  background: rgb(26 26 26 / .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px; color: #d9d9d9; }
.util-area { display: inline-flex; align-items: center; gap: 8px; }
.util-area .i { color: var(--orange); width: 15px; height: 15px; }
.util-note { color: #bdbdbd; }
.bar { background: rgb(13 13 13 / .86); }
.bar-in { display: flex; align-items: center; gap: 8px; height: 64px; width: 100%; max-width: calc(1240px + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.brand { font: 600 30px/1 var(--f-display); font-variation-settings: "opsz" 32; letter-spacing: -.03em; margin-right: auto; padding: 8px 0; }
.dot { color: var(--orange); }
.site-nav, .bar-quote { display: none; }
.bar-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); color: #fff; }
.bar-icon .i { width: 22px; height: 22px; }
.menu-btn { background: rgb(255 255 255 / .08); }
@supports (animation-timeline: scroll()) {
  .bar { background: rgb(13 13 13 / 0); animation: bar-solid linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
  @keyframes bar-solid { to { background: rgb(13 13 13 / .94); box-shadow: 0 1px 0 rgb(255 255 255 / .06); } }
}

/* ---------- Phone menu: full-screen :target overlay ---------- */
.menu { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; gap: 8px; padding: 12px var(--gut) calc(24px + env(safe-area-inset-bottom));
  background: var(--page); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity 220ms var(--e-out), visibility 0s 220ms; }
.menu:target { visibility: visible; opacity: 1; transition: opacity 220ms var(--e-out); }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 64px; margin-top: 44px; }
.menu-brand { font: 600 30px/1 var(--f-display); font-variation-settings: "opsz" 32; letter-spacing: -.03em; }
.menu-close { background: rgb(255 255 255 / .08); }
.menu-list { display: grid; margin-top: 8px; }
.menu-list > li > a, .menu-sub summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font: 500 22px/1.2 var(--f-display);
  font-variation-settings: "opsz" 32; letter-spacing: -.01em; }
.menu-sub summary { list-style: none; cursor: pointer; }
.menu-sub summary::-webkit-details-marker { display: none; }
.menu-sub summary .i { width: 20px; height: 20px; transition: rotate 200ms; }
.menu-sub[open] summary .i { rotate: 180deg; }
.menu-sub ul { display: grid; padding: 0 0 8px 2px; }
.menu-sub ul a { display: flex; align-items: center; min-height: 44px; color: #c4c4c4; font-size: 17px; }
.menu-cta { display: grid; gap: 12px; margin-top: auto; padding-top: 16px; }
.menu-cta .pill { justify-self: start; }

/* ---------- Hero ---------- */
.hero { margin-top: calc(-1 * var(--head-h)); padding: var(--inset); }
.hero-frame { position: relative; display: grid; min-height: max(600px, calc(100svh - 60px)); max-height: 960px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; background: #2a1d14; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 57% 50%; z-index: -2; }
.hero-frame::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / .62) 0, rgb(0 0 0 / 0) 190px), linear-gradient(0deg, rgb(8 6 4 / .92) 0, rgb(8 6 4 / .62) 42%, rgb(8 6 4 / 0) 72%); }
.hero-frame::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(200deg, rgb(255 138 36 / .55) 0, rgb(255 138 36 / .18) 45%, rgb(255 138 36 / 0) 75%); }
.hero-body { align-self: end; display: grid; gap: 20px; padding: calc(var(--head-h) + 24px) 16px 20px; }
.hero-main { display: grid; gap: 22px; justify-items: start; }
.hero .h1 { max-width: 16ch; }
.hero-card { display: none; }
.hero-foot { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .16); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #d4d4d4; font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .i { width: 17px; height: 17px; color: #fff; }
.rating { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1.2 var(--f-body); letter-spacing: .04em; text-transform: uppercase; }
.rating .mute { color: #bdbdbd; font-weight: 500; }
.stars { display: inline-flex; gap: 2px; color: var(--orange); }
.stars svg { width: 14px; height: 14px; }
.laurel { display: none; }

/* Page heroes: shown only on the bundled desktop pages (the page's own photo band, like BLDR's inner pages) */
.ph { display: none; }

/* ---------- Services ---------- */
.svc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc-card { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; border-radius: 14px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--c-line), var(--edge); font: 500 14px/1.2 var(--f-display); font-variation-settings: "opsz" 32;
  transition: box-shadow 200ms, background-color 200ms; }
.sc-i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm); background: rgb(255 255 255 / .06); color: var(--orange); }
.sc-i .i { width: 18px; height: 18px; }
.sc-p { display: none; }
.svc-panels { display: grid; margin-top: 12px; }
.svc-panel { grid-area: 1 / 1; min-width: 0; visibility: hidden; display: grid; gap: 20px; align-content: start; padding: 20px 16px; border-radius: 18px; background: var(--panel); box-shadow: var(--edge); }
.svc-panels:not(:has(.svc-panel:target)) .svc-panel:first-child, .svc-panel:target { visibility: visible; }
/* the card of the shown service gets the orange ring */
.services:has(#svc-gc:target) a[href="#svc-gc"], .services:has(#svc-concrete:target) a[href="#svc-concrete"], .services:has(#svc-framing:target) a[href="#svc-framing"],
.services:has(#svc-additions:target) a[href="#svc-additions"], .services:has(#svc-remodel:target) a[href="#svc-remodel"], .services:has(#svc-commercial:target) a[href="#svc-commercial"],
.services:not(:has(.svc-panel:target)) a[href="#svc-gc"] { box-shadow: inset 0 0 0 1.5px var(--orange), var(--edge); background: #1d1610; }
.sp-text { display: grid; gap: 14px; align-content: start; }
.sp-k { color: var(--orange); font: 600 13px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.sp-text > p:not(.sp-k) { color: var(--c-muted); }
.ticks { display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; color: #dadada; }
.ticks li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--orange); translate: 0 -2px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--c-line); }
.facts dt { color: var(--c-muted); font-size: 13px; }
.facts dd { font: 600 17px/1.25 var(--f-display); font-variation-settings: "opsz" 32; margin-top: 2px; }
.sp-img { display: none; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }

/* ---------- About intro (home) ---------- */
.statement { font: 500 21px/1.38 var(--f-display); font-variation-settings: "opsz" 32; letter-spacing: -.01em; text-wrap: pretty; }
.statement .hl { color: var(--orange); }
.statement .fade { color: #8f8f8f; }
.intro-grid { display: grid; gap: 12px; margin-top: 24px; }
.trusted { display: grid; gap: 12px; justify-items: start; padding: 20px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--c-line), var(--edge); }
.trusted-h { font: 600 24px/1.1 var(--f-display); font-variation-settings: "opsz" 32; letter-spacing: -.01em; }
.trusted p:not(.trusted-h) { color: var(--c-muted); }
.intro-img { display: none; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; filter: grayscale(.15); }

/* ---------- Projects ---------- */
.sec-head.split { gap: 16px; }
.sec-head.split .btn { justify-self: start; }
.projects { padding-bottom: 4px; }
.proj { display: grid; grid-template-rows: auto 1fr; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--c-line), var(--edge); }
.proj-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.proj-body { display: grid; gap: 10px; align-content: start; padding: 16px; }
.proj-body > p:not(.meta):not(.proj-stat) { color: var(--c-muted); font-size: 15px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #bdbdbd; font-size: 13px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .i { width: 14px; height: 14px; color: var(--orange); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 5px 10px; border-radius: 6px; background: rgb(255 255 255 / .07); font-size: 13px; color: #d9d9d9; }
.proj-stat { font: 600 15px/1.2 var(--f-display); font-variation-settings: "opsz" 32; color: #fff; }

/* ---------- Why: bento ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.b-card { position: relative; display: grid; align-content: start; gap: 6px; padding: 18px; border-radius: 18px; background: var(--panel); box-shadow: var(--edge); overflow: hidden; isolation: isolate; }
.b-card > p:not(.b-num):not(.b-k):not(.b-h):not(.b-big):not(.faces) { color: var(--c-muted); font-size: 15px; }
.b-photo, .b-photo2 { display: none; }
.b-num { font: 600 40px/1 var(--f-display); font-variation-settings: "opsz" 32; letter-spacing: -.03em; }
.b-k { color: var(--c-muted); font-size: 13px; }
.b-h { font: 600 20px/1.15 var(--f-display); font-variation-settings: "opsz" 32; }
.faces { display: flex; margin-top: 10px; }
.faces span { display: grid; place-items: center; width: 32px; height: 32px; margin-right: -8px; border-radius: 50%; background: #3a3a3a; border: 2px solid var(--panel); font: 600 12px/1 var(--f-body); }
.faces .more { width: auto; padding: 0 8px; border-radius: 16px; background: var(--orange); color: var(--c-on-accent); }
.b-wide { grid-column: 1 / -1; min-height: 120px; align-content: center; }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: rgb(255 255 255 / .1); }
.b-big { font: 500 21px/1.25 var(--f-display); font-variation-settings: "opsz" 32; max-width: 18ch; }
.b-big .o { color: var(--orange); }
.creds { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #e6e6e6; }
.creds li { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Process ---------- */
.proc-media, .proc-track { display: none; }
.proc-steps { display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; border-radius: 16px; background: var(--panel); box-shadow: var(--edge); }
.st-i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); background: rgb(255 138 36 / .12); color: var(--orange); }
.st-i .i { width: 18px; height: 18px; }
.st-h { font-size: 18px; line-height: 1.2; letter-spacing: -.01em; margin: 6px 0 6px; }
.step p { color: var(--c-muted); font-size: 15px; }

/* ---------- Reviews ---------- */
.rating-sm { color: #e6e6e6; }
.rev { display: grid; align-content: start; gap: 14px; padding: 20px; border-radius: 18px; background: var(--panel); box-shadow: var(--edge); }
.rev .q { width: 28px; height: 28px; color: #4a4a4a; }
.rev blockquote p { color: #d6d6d6; }
.who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.who b { display: block; font-weight: 600; }
.who small { display: block; color: var(--c-muted); font-size: 13px; }
.av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #2e2e2e; font: 600 13px/1 var(--f-body); flex: none; }

/* ---------- About ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 20px; background: var(--c-line); border-block: 1px solid var(--c-line); }
.stats li { display: grid; gap: 4px; padding: 14px 4px; background: var(--page); }
.stats b { font: 600 32px/1 var(--f-display); font-variation-settings: "opsz" 32; letter-spacing: -.02em; }
.stats span { color: var(--c-muted); font-size: 14px; }
.about-grid { display: grid; gap: 20px; }
.values { display: none; }
.val-list { display: grid; gap: 8px; margin-top: 20px; }
.val-list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 16px; border-radius: 16px; background: var(--panel); }
.val-list .i { width: 20px; height: 20px; color: var(--orange); margin-top: 2px; }
.val-list p { color: var(--c-muted); font-size: 15px; margin-top: 2px; }
.team { display: grid; gap: 8px; }
.team li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: var(--panel); box-shadow: var(--edge); }
.tm-av { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(140deg, #ff8a24, #b4560a); color: #0d0d0d; font: 600 17px/1 var(--f-display); }
.team b { display: block; font: 600 17px/1.2 var(--f-display); font-variation-settings: "opsz" 32; }
.team span:not(.tm-av) { display: block; color: #d0d0d0; font-size: 14px; }
.team small { display: block; color: var(--c-muted); font-size: 13px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 12px; }
.c-card { display: grid; gap: 8px; align-content: start; }
.c-img { display: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.c-list { display: grid; gap: 6px; }
.c-list a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 14px; background: var(--panel); box-shadow: var(--edge); }
.ci { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); background: rgb(255 138 36 / .12); color: var(--orange); }
.c-list small { display: block; color: var(--c-muted); font-size: 13px; }
.c-list b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.c-hours { display: flex; align-items: center; gap: 8px; color: var(--c-muted); font-size: 14px; padding: 6px 4px; }
.q-form { display: grid; gap: 14px; padding: 20px 16px; border-radius: 18px; background: var(--panel); box-shadow: var(--edge); }
.form-h { font: 600 24px/1.1 var(--f-display); font-variation-settings: "opsz" 32; letter-spacing: -.01em; }
.f-row { display: grid; gap: 6px; }
.f-row label { font-size: 14px; font-weight: 500; color: #e6e6e6; }
.req { color: var(--c-muted); font-weight: 400; }
.q-form input, .q-form select, .q-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--c-line-strong); border-radius: 10px; background: var(--field);
  color: #fff; font: 400 16px/1.4 var(--f-body); }
.q-form textarea { min-height: 96px; resize: vertical; }
.q-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #bdbdbd 50%), linear-gradient(135deg, #bdbdbd 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.q-form ::placeholder { color: #8a8a8a; }
.q-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; border-color: var(--orange); }
.sent { display: none; gap: 12px; align-items: start; padding: 14px; border-radius: 12px; background: rgb(255 196 107 / .1); color: #f2f2f2; }
.sent .i { width: 22px; height: 22px; color: var(--c-accent-2); }
.sent:target { display: flex; }

/* ---------- Service areas: dot map + town panels ---------- */
.areas-grid { display: grid; gap: 16px; }
.map { position: relative; aspect-ratio: 3 / 2; border-radius: 16px; background: radial-gradient(70% 80% at 68% 52%, rgb(255 138 36 / .1), transparent 70%), var(--card); box-shadow: inset 0 0 0 1px var(--c-line); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: #3d3d3d; }
.map-ring { fill: none; stroke: rgb(255 138 36 / .22); stroke-width: 1; stroke-dasharray: 3 5; }
.pin { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding-left: 0;
  translate: -22px -50%; font: 600 13px/1 var(--f-body); color: #e6e6e6; }
.pin::before { content: ""; flex: none; width: 12px; height: 12px; margin-left: 16px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgb(255 138 36 / .2); }
.pin span { padding: 5px 7px; border-radius: 6px; background: rgb(13 13 13 / .8); }
.pin.l { flex-direction: row-reverse; translate: calc(-100% + 22px) -50%; }
.pin.l::before { margin: 0 16px 0 0; }
.towns { display: grid; gap: 12px; align-content: start; }
.towns-k { color: var(--c-muted); font-size: 14px; }
.town-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.town-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--c-line); font-weight: 500; font-size: 15px; }
.town-panels { display: grid; }
.town { grid-area: 1 / 1; min-width: 0; visibility: hidden; display: grid; gap: 12px; align-content: start; padding: 18px 16px; border-radius: 16px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--c-line); }
.town-panels:not(:has(.town:target)) .town:first-child, .town:target { visibility: visible; }
.town p { color: var(--c-muted); }
.t-facts { display: grid; gap: 10px; }
.t-facts dt { font-size: 13px; color: var(--orange); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.t-facts dd { color: #dcdcdc; font-size: 15px; margin-top: 2px; }
.also { color: var(--c-muted); font-size: 14px; }
/* the shown town: its tab and its pin light up (Puyallup by default) */
.areas:has(#town-puyallup:target) a[href="#town-puyallup"], .areas:has(#town-tacoma:target) a[href="#town-tacoma"], .areas:has(#town-gigharbor:target) a[href="#town-gigharbor"],
.areas:has(#town-federalway:target) a[href="#town-federalway"], .areas:has(#town-olympia:target) a[href="#town-olympia"],
.areas:not(:has(.town:target)) a[href="#town-puyallup"] { --on-town: 1; }
.town-tabs a { background: color-mix(in srgb, var(--orange) calc(var(--on-town, 0) * 100%), var(--card)); color: color-mix(in srgb, var(--c-on-accent) calc(var(--on-town, 0) * 100%), #fff); }
.pin span { background: color-mix(in srgb, var(--orange) calc(var(--on-town, 0) * 100%), rgb(13 13 13 / .8)); color: color-mix(in srgb, var(--c-on-accent) calc(var(--on-town, 0) * 100%), #e6e6e6); }

/* ---------- FAQ ---------- */
.narrow { max-width: calc(760px + 2 * var(--gut)); }
.faq .sec-head { margin-bottom: 20px; }
.faq-list { display: grid; gap: 8px; }
.faq details { border-radius: 14px; background: var(--panel); box-shadow: var(--edge); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 16px; cursor: pointer; list-style: none;
  font: 600 16px/1.3 var(--f-display); font-variation-settings: "opsz" 32; }
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 14px; height: 14px; }
.plus::before, .plus::after { content: ""; position: absolute; inset: 6px 0 auto; height: 1.6px; background: currentColor; border-radius: 1px; transition: rotate 220ms var(--e-out); }
.plus::after { rotate: 90deg; }
details[open] .plus::after { rotate: 0deg; }
.ans { padding: 0 16px 16px; color: var(--c-muted); }

/* ---------- CTA band (computers) + footer ---------- */
.cta-band { display: none; }
.foot { padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); }
.f-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
.f-col:last-child { grid-column: 1 / -1; }
.f-h { font: 600 13px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #cfcfcf; margin-bottom: 10px; }
.f-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-muted); }
.f-col li:not(:has(a)) { color: var(--c-muted); padding-block: 10px; }
.f-mid { display: grid; gap: 20px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--c-line); }
.f-mark { font: 600 72px/.9 var(--f-display); font-variation-settings: "opsz" 32; letter-spacing: -.045em; }
.f-card { display: grid; gap: 10px; justify-items: start; padding: 18px; border-radius: 18px; background: var(--panel); box-shadow: var(--edge); }
.f-card-h { font: 600 20px/1.2 var(--f-display); font-variation-settings: "opsz" 32; }
.f-card p:not(.f-card-h) { color: var(--c-muted); font-size: 14px; }
.f-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: 13px; }

/* ---------- Intro: orange screen + mark, then a stepped block wipe (BLDR). Hidden at rest. ---------- */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: repeat(6, 1fr); pointer-events: none; visibility: hidden; }
.in-b { grid-row: 1; background: var(--orange); transform-origin: 50% 0; }
.in-mark { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; justify-items: center; gap: 14px; color: var(--page); }
.in-mark svg { width: 64px; height: 64px; }
.in-line { width: 120px; height: 2px; background: rgb(13 13 13 / .2); position: relative; overflow: hidden; }
.in-line::after { content: ""; position: absolute; inset: 0; background: var(--page); transform-origin: 0 50%; }
@media (prefers-reduced-motion: no-preference) {
  .intro { animation: in-vis 1.2s steps(1, end) both; }
  .in-b { animation: in-wipe .42s cubic-bezier(.7, 0, .3, 1) both; animation-delay: calc(.62s + var(--n) * 50ms); }
  .in-b:nth-child(1) { --n: 0; } .in-b:nth-child(2) { --n: 2; } .in-b:nth-child(3) { --n: 4; }
  .in-b:nth-child(4) { --n: 1; } .in-b:nth-child(5) { --n: 3; } .in-b:nth-child(6) { --n: 5; }
  .in-mark { animation: in-fade .2s .5s both; }
  .in-line::after { animation: in-load .45s .05s cubic-bezier(.4, 0, .2, 1) both; }
}
@keyframes in-vis { from { visibility: visible; } to { visibility: hidden; } }
@keyframes in-wipe { to { transform: scaleY(0); } }
@keyframes in-fade { to { opacity: 0; } }
@keyframes in-load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ======================= Tablet: 760+ ======================= */
@media (min-width: 760px) {
  :root { --gut: 32px; --sec: 72px; --inset: 12px; }
  .util { padding: 12px 16px 0; }
  .svc-cards { grid-template-columns: repeat(3, 1fr); }
  .svc-panel { grid-template-columns: 1.1fr 1fr; padding: 28px; gap: 32px; }
  .sp-img { display: block; height: 100%; aspect-ratio: auto; min-height: 320px; contain: size; }  /* size from the text column, never from the photo's own ratio */
  .intro-grid { grid-template-columns: 1fr 1.6fr; }
  .intro-img { display: block; max-height: 340px; }
  .rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; scroll-snap-type: none; }
  .rev-list { grid-template-columns: repeat(3, 1fr); }
  .projects { grid-template-columns: 1fr; }
  .proj { grid-template-columns: 1.1fr 1fr; grid-template-rows: auto; }
  .proj-img { height: 100%; aspect-ratio: auto; min-height: 300px; }
  .proj-body { padding: 28px; align-content: center; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .b-wide { grid-column: span 2; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .values { display: block; }
  .about-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .contact-grid { grid-template-columns: 1fr 1.25fr; align-items: start; }
  .c-img { display: block; }
  .areas-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .f-cols { grid-template-columns: repeat(3, 1fr); }
  .f-col:last-child { grid-column: auto; }
  .f-mid { grid-template-columns: 1fr minmax(300px, 380px); align-items: end; }
  .f-mark { font-size: clamp(96px, 10vw, 156px); }
  .sec-head.split { grid-template-columns: 1fr minmax(0, 440px); align-items: end; column-gap: 48px; }
  .sec-head.split .btn { justify-self: end; }
  .hero-body { padding: calc(var(--head-h) + 40px) 40px 28px; }
  .hero-foot { grid-template-columns: 1fr auto; align-items: center; }
}

/* ======================= Desktop: 1080+ ======================= */
@media (min-width: 1080px) {
  :root { --gut: 24px; --sec: 112px; --head-h: 126px; --util-h: 46px; }
  html { scroll-padding-top: 96px; }
  .d-only { display: inline; }
  .util { padding: 16px 16px 0; height: var(--util-h); }
  .util-in { height: 30px; padding-inline: max(12px, calc((100vw - 1240px) / 2 - 16px)); }
  .bar-in { height: 80px; gap: 12px; }
  .brand { font-size: 32px; margin-right: 48px; }
  .site-nav { display: block; align-self: stretch; margin-right: auto; }
  .site-nav > ul { display: flex; align-items: stretch; gap: 32px; height: 100%; }
  .site-nav > ul > li { display: flex; align-items: center; }
  .site-nav > ul > li > a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font: 500 16px/1.2 var(--f-display); font-variation-settings: "opsz" 32; color: #f2f2f2; }
  .caret { width: 14px; height: 14px; transition: rotate 200ms; }
  .bar-quote { display: inline-flex; }
  .menu-btn { display: none; }
  .menu { display: none; }

  /* Services mega menu (hover or keyboard focus) */
  .bar { position: relative; }
  .mega { position: absolute; top: 100%; left: 12px; right: 12px; display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding: 20px max(24px, calc((100vw - 1240px) / 2 - 12px));
    border-radius: var(--r-lg); background: #161616; box-shadow: var(--edge), 0 24px 60px rgb(0 0 0 / .5); visibility: hidden; opacity: 0; translate: 0 -6px;
    transition: opacity 180ms var(--e-out), translate 180ms var(--e-out), visibility 0s 180ms; }
  .has-mega:focus-within .mega { visibility: visible; opacity: 1; translate: 0 0; transition: opacity 180ms var(--e-out), translate 180ms var(--e-out); }
  .has-mega:focus-within .caret { rotate: 180deg; }
  .mega-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; align-content: center; }
  .mega-list a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 12px; border-radius: 12px; }
  .mi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgb(255 255 255 / .06); color: #fff; }
  .mi .i { width: 20px; height: 20px; }
  .mega-list b { display: block; font-weight: 500; font-size: 15px; }
  .mega-list small { display: block; color: var(--c-muted); font-size: 14px; }
  .mega-card { position: relative; display: grid; align-content: space-between; justify-items: start; gap: 20px; min-height: 200px; padding: 20px; border-radius: 18px; overflow: hidden; isolation: isolate; }
  .mega-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .mega-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 10 10 / .82), rgb(10 10 10 / .35)); }
  .mega-h { font: 600 28px/1.1 var(--f-display); font-variation-settings: "opsz" 32; letter-spacing: -.01em; max-width: 12ch; }

  /* Hero */
  .hero-frame { min-height: max(680px, calc(100vh - 62px)); }
  .hero-img { object-position: 50% 50%; }
  .hero-body { padding: calc(var(--head-h) + 40px) max(40px, calc((100vw - 1240px) / 2 - 12px)) 28px; grid-template-columns: 1fr 360px; align-items: end; gap: 32px 40px; }
  .hero-main { gap: 32px; }
  .hero .h1 { max-width: 15ch; }
  .hero-card { display: grid; grid-template-columns: 148px 1fr; gap: 16px; padding: 8px; border-radius: 16px; background: rgb(20 20 20 / .55); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
  .hero-card img { width: 148px; height: 124px; object-fit: cover; border-radius: 10px; }
  .hc-text { display: grid; align-content: space-between; padding: 6px 4px 6px 0; }
  .hc-h { font: 600 18px/1.15 var(--f-display); font-variation-settings: "opsz" 32; }
  .hc-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: 15px; }
  .hero-foot { grid-column: 1 / -1; padding-top: 24px; }
  .trust { font-size: 16px; gap: 8px 24px; color: #cfcfcf; }
  .laurel { display: block; width: 14px; height: 32px; border: 1.5px solid rgb(255 255 255 / .45); border-right: 0; border-radius: 14px 0 0 14px; }
  .laurel.r { border: 1.5px solid rgb(255 255 255 / .45); border-left: 0; border-radius: 0 14px 14px 0; }
  .rating { gap: 10px; }

  /* Page heroes on the bundled desktop pages */
  body:has(main > [data-pg="services"]:target, main > [data-pg="services"] :target) .ph-services,
  body:has(main > [data-pg="work"]:target, main > [data-pg="work"] :target) .ph-work,
  body:has(main > [data-pg="about"]:target, main > [data-pg="about"] :target) .ph-about,
  body:has(main > [data-pg="contact"]:target, main > [data-pg="contact"] :target) .ph-contact { display: grid; }
  body:has(main > [data-pg]:not([data-pg="home"]):target, main > [data-pg]:not([data-pg="home"]) :target) .sec:has(> .ph) { padding-top: 0; }
  body:has(main > [data-pg="contact"]:target, main > [data-pg="contact"] :target) .cta-band { display: none; }
  .ph { position: relative; height: 440px; margin: -4px 12px var(--sec); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; place-items: center; text-align: center; }
  .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .ph::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(10 8 6 / .85), rgb(10 8 6 / .45)); }
  .ph-t { font: 600 var(--t-ph)/1.02 var(--f-display); font-variation-settings: "opsz" 32; letter-spacing: -.025em; max-width: 14ch; text-wrap: balance; }

  /* Sections */
  .sec-head { margin-bottom: 56px; }
  .panel { padding-block: 96px; }
  .svc-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .svc-card { grid-template-columns: 1fr; align-content: space-between; align-items: start; gap: 48px; min-height: 220px; padding: 24px; border-radius: 16px;
    font-size: 22px; }
  .sc-i { width: 44px; height: 44px; background: none; color: #fff; justify-self: start; place-items: start; }
  .sc-i .i { width: 26px; height: 26px; }
  .sc-h { align-self: end; }
  .sc-p { display: block; margin-top: -40px; font: 400 15px/1.45 var(--f-body); color: var(--c-muted); }
  .svc-panels { margin-top: 24px; }
  .svc-panel { padding: 40px; gap: 56px; border-radius: var(--r-lg); }
  .sp-text { gap: 18px; align-content: center; }
  .sp-img { min-height: 400px; }
  .statement { font-size: 32px; line-height: 1.3; letter-spacing: -.015em; max-width: 30ch; margin-left: auto; }
  .intro-top { display: grid; grid-template-columns: 1fr 2.4fr; align-items: start; }
  .intro-grid { grid-template-columns: 1fr 2.2fr; margin-top: 64px; gap: 16px; }
  .trusted { align-content: space-between; padding: 28px; border-radius: 20px; min-height: 360px; }
  .trusted-h { font-size: 28px; }
  .intro-img { max-height: none; min-height: 360px; }
  .projects { display: grid; gap: 24px; }
  .proj { position: sticky; top: calc(104px + var(--i) * 18px); border-radius: 20px; grid-template-columns: 560px 1fr; padding: 12px; gap: 12px; background: #111; }
  .proj-img { border-radius: 14px; min-height: 380px; }
  .proj-body { padding: 28px 28px 28px 20px; gap: 14px; }
  .proj .h3 { font-size: 32px; }
  .bento { grid-template-columns: 1.15fr 1fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 12px; }
  .b-card { padding: 24px; border-radius: 20px; }
  .b-photo { display: grid; grid-row: span 2; align-content: space-between; }
  .b-photo img, .b-photo2 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .b-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 10 10 / .8) 0, rgb(10 10 10 / .1) 45%, rgb(10 10 10 / .85) 100%); }
  .b-photo .b-h { font-size: 22px; max-width: 15ch; }
  .b-photo2 { display: block; padding: 0; }
  .b-wide { grid-column: span 2; }
  .b-cover, .b-count, .b-rate { align-content: space-between; }
  .b-num { font-size: 48px; }
  .b-big { font-size: 26px; text-align: center; justify-self: center; max-width: 20ch; }
  .rev { padding: 28px; border-radius: 20px; min-height: 300px; }
  .rev blockquote p { font-size: 17px; }
  .values .h3 { font-size: 32px; }
  .about-grid { grid-template-columns: 1.4fr 1fr; gap: 40px; }
  .team li { padding: 16px; }
  .contact-grid { gap: 16px; }
  .c-card { gap: 12px; }
  .q-form { padding: 32px; gap: 18px; border-radius: var(--r-lg); }
  .form-h { font-size: 28px; }
  .areas-grid { gap: 24px; }
  .town { padding: 24px; }
  .faq summary { font-size: 20px; min-height: 64px; padding: 18px 24px; }
  .ans { padding: 0 24px 22px; }

  /* CTA band before the footer */
  .cta-band { position: relative; display: grid; place-items: center; min-height: 460px; margin: 0 12px 12px; padding: 80px 24px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; text-align: center; }
  .cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(8 8 8 / .55), rgb(8 8 8 / .88)); }
  .cta-in { display: grid; gap: 18px; justify-items: center; max-width: 640px; }
  .cta-in p { color: #d4d4d4; }
  .cta-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
  .foot { padding-top: 80px; }
  .f-mid { margin-top: 56px; padding-top: 56px; }
}

/* Hover (fine pointers only) */
@media (hover: hover) and (pointer: fine) {
  .has-mega:hover .mega { visibility: visible; opacity: 1; translate: 0 0; transition: opacity 180ms var(--e-out), translate 180ms var(--e-out); }
  .has-mega:hover .caret { rotate: 180deg; }
  .mega-list a:hover { background: rgb(255 255 255 / .05); }
  .svc-card:hover { box-shadow: inset 0 0 0 1px rgb(255 138 36 / .55), var(--edge); }
  .town-tabs a:hover, .c-list a:hover { box-shadow: inset 0 0 0 1px rgb(255 138 36 / .55); }
  .f-col a:hover { color: #fff; }
  .hero-card:hover .hc-link { color: var(--orange); }
  .faq summary:hover { color: #ffd2a8; }
}

/* ---------- Desktop motion: pinned process (scroll-driven; static without support or with reduced motion) ---------- */
@media (min-width: 1080px) {
  .proc { display: grid; grid-template-columns: 1fr 2px 1fr; gap: 40px; align-items: stretch; }
  .proc-media { display: grid; border-radius: 20px; overflow: hidden; min-height: 420px; }
  .proc-media img { grid-area: 1 / 1; width: 100%; height: 100%; aspect-ratio: auto; contain: size; object-fit: cover; opacity: 0; }  /* sized by the steps, not the photo */
  .proc-media img:first-child { opacity: 1; }
  .proc-track { display: block; position: relative; background: rgb(255 255 255 / .08); border-radius: 2px; }
  .proc-track span { position: absolute; inset: 0; background: var(--orange); border-radius: 2px; transform-origin: 50% 0; transform: scaleY(.25); }
  .proc-steps { align-content: center; gap: 12px; }
  .step { background: none; box-shadow: none; padding: 18px 20px; }
  .step:first-child { background: var(--panel); box-shadow: var(--edge); }
  .st-h { font-size: 20px; }
}
@media (min-width: 1080px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .process { height: 320vh; padding: 0; view-timeline: --proc block; }
    .proc-pin { position: sticky; top: 80px; min-height: calc(100vh - 80px); display: grid; align-content: center; padding-block: 24px; }
    .process .sec-head { margin-bottom: 40px; }
    .proc-media { min-height: 0; height: min(440px, 46vh); }
    .proc-media img, .step { animation: linear both; animation-timeline: --proc; animation-range: contain 0% contain 100%; }
    .proc-media img:nth-child(1), .step:nth-child(1) { animation-name: on-1; }
    .proc-media img:nth-child(2), .step:nth-child(2) { animation-name: on-2; }
    .proc-media img:nth-child(3), .step:nth-child(3) { animation-name: on-3; }
    .proc-media img:nth-child(4), .step:nth-child(4) { animation-name: on-4; }
    .step { --a: 0; background: rgb(26 26 26 / var(--a)); box-shadow: none; }
    .step:first-child { background: rgb(26 26 26 / var(--a)); box-shadow: none; }
    .step > div { opacity: calc(.42 + var(--a) * .58); }
    .proc-media img { opacity: var(--a); }
    .proc-track span { animation: track linear both; animation-timeline: --proc; animation-range: contain 0% contain 100%; }
  }
}
@property --a { syntax: "<number>"; inherits: true; initial-value: 0; }
@keyframes on-1 { 0%, 24% { --a: 1; } 26%, 100% { --a: 0; } }
@keyframes on-2 { 0%, 24% { --a: 0; } 26%, 49% { --a: 1; } 51%, 100% { --a: 0; } }
@keyframes on-3 { 0%, 49% { --a: 0; } 51%, 74% { --a: 1; } 76%, 100% { --a: 0; } }
@keyframes on-4 { 0%, 74% { --a: 0; } 76%, 100% { --a: 1; } }
@keyframes track { from { transform: scaleY(.04); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ---------- Phone length budget (10 screens at 393x852): fold secondary content on phones only ---------- */
@media (max-width: 759px) {
  :root { --sec: 40px; }
  .sec-head { margin-bottom: 22px; }
  .svc-panel .ticks, .sec-cta-note, .intro-sec .fade, .trusted p:not(.trusted-h), .tags, .why .sec-head .lead, .process .sec-head .lead,
  .b-cover, .team small, .f-col:first-child, .f-col:last-child, .f-card, .also { display: none; }
  .intro-grid { margin-top: 16px; }
  .trusted { grid-template-columns: 1fr auto; align-items: center; padding: 14px 14px 14px 16px; }
  .trusted-h { font-size: 18px; }
  .proj-img { aspect-ratio: 16 / 9; }
  .b-wide { min-height: 96px; }
  .step { padding: 14px; gap: 12px; }
  .st-h { font-size: 17px; margin: 4px 0; }
  .map { aspect-ratio: 16 / 11; }
  .f-cols { grid-template-columns: 1fr; gap: 20px; }
  .f-col:nth-child(2) ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .f-mid { margin-top: 20px; padding-top: 20px; }
  .f-mark { font-size: 56px; }
  .q-form textarea { min-height: 80px; }
}
@media (max-width: 759px) {
  .hero-frame { min-height: max(560px, calc(100svh - 170px)); }
  .b-wide { display: none; }
  .services .sec-head .lead, .towns-k, .t-facts div:nth-child(3), .process .sec-cta { display: none; }
  .areas .lead { font-size: 15px; }
}
.rail:focus-visible { outline-offset: -3px; border-radius: 18px; }
@media (max-width: 759px) {
  .step { align-items: center; row-gap: 8px; }
  .step > div { display: contents; }
  .step p { grid-column: 1 / -1; }
  .st-h { margin: 0; }
}
