/* Willy Fix It Tile & Renovations
   Brand tokens live in :root. Dark sections = slate floor, light sections = tile wall. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-italic.woff2") format("woff2-variations"), url("../fonts/archivo-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  /* colour */
  --pitch: #000000;
  --slate: #161616;
  --slate-raised: #1e1e1e;
  --slate-line: #2e2e2e;
  --slate-edge: #6b6b6b;
  --chalk: #f2f2f0;
  --grout: #a8a8a8;
  --porcelain: #f4f4f2;
  --porcelain-line: #e1e1de;
  --porcelain-edge: #8a8a87;
  --white: #ffffff;
  --ink: #161616;
  --ink-soft: #4a4a4a;
  --orange: #f4731c;
  --orange-hot: #ff8a3d;
  --orange-ink: #a84a08;
  --error-dark: #ff6b6b;
  --error-light: #b42318;
  --ok-dark: #3fb37f;

  /* type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);
  --fs-h3: 1.375rem;
  --fs-h2: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --fs-display: clamp(2.5rem, 0.9rem + 6.6vw, 6rem);

  /* space (8px module, like a tile grid) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --grout-gap: 6px;
  --radius-tile: 3px;
  --radius-panel: 4px;
  --wrap: 1200px;
  --header-h: 76px;
  --ease-set: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  color: var(--chalk);
  background: var(--pitch);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 var(--s4); }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--orange); color: var(--pitch); font-weight: 700; padding: 10px 16px; border-radius: var(--radius-tile);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display, .h2 {
  font-style: italic;
  font-stretch: 125%;
  text-wrap: balance;
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: 820;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.h3 {
  font-size: var(--fs-h3);
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 58ch; }
.small { font-size: var(--fs-sm); line-height: 1.5; }

/* ---------- buttons ---------- */
.btn {
  --bh: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 22px;
  border-radius: var(--radius-tile);
  border: 2px solid transparent;
  font-size: var(--fs-body); font-weight: 700; font-stretch: 110%; letter-spacing: 0.005em; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--orange); color: var(--pitch); }
.btn-primary:hover { background: var(--orange-hot); }
.btn-ghost { background: transparent; color: var(--chalk); border-color: rgba(242, 242, 240, .72); }
.btn-ghost:hover { border-color: var(--orange); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #2c2c2c; }
.btn-outline-ink { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: var(--white); }
.btn-sm { --bh: 42px; padding: 0 16px; font-size: var(--fs-sm); }
.btn-lg { --bh: 56px; padding: 0 28px; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }

/* ---------- announcement ---------- */
.announce {
  background: var(--orange); color: var(--pitch);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.35;
}
.announce-in { display: flex; align-items: center; justify-content: center; gap: var(--s3); min-height: 40px; padding-block: 6px; text-align: center; }
.announce a { font-weight: 800; text-underline-offset: 3px; }
.announce-close {
  flex: none; margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: var(--radius-tile); cursor: pointer; color: var(--pitch);
}
.announce-close:hover { background: rgba(0,0,0,.12); }
.announce-close:focus-visible { outline-color: var(--pitch); }
.announce-text { margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--pitch);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--slate-line); }
.header-in { display: flex; align-items: center; gap: var(--s5); height: var(--header-h); }
.brand { display: block; flex: none; border-radius: var(--radius-tile); }
.brand img { width: 136px; height: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; }
.nav a {
  display: block; padding: 10px 12px; border-radius: var(--radius-tile);
  font-size: var(--fs-sm); font-weight: 600; font-stretch: 105%; text-decoration: none; color: var(--chalk);
}
.nav a:hover { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: var(--s3); }
.header-phone { font-weight: 700; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap; padding: 8px 4px; }
.header-phone:hover { color: var(--orange); }
.menu-btn {
  display: none; align-items: center; gap: 8px; height: 42px; padding: 0 12px;
  background: transparent; border: 2px solid var(--slate-edge); border-radius: var(--radius-tile);
  font-weight: 700; font-size: var(--fs-sm); cursor: pointer;
}
.menu-btn-bars { width: 18px; height: 12px; position: relative; }
.menu-btn-bars::before, .menu-btn-bars::after, .menu-btn-bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
}
.menu-btn-bars::before { top: 0; } .menu-btn-bars span { top: 5px; } .menu-btn-bars::after { bottom: 0; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--pitch);
  padding: var(--s5) clamp(20px, 4vw, 40px) var(--s7);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--s5);
}
.mobile-menu ul { list-style: none; border-top: 1px solid var(--slate-line); }
.mobile-menu li a {
  display: block; padding: 16px 2px; border-bottom: 1px solid var(--slate-line);
  font-size: 1.375rem; font-weight: 800; font-style: italic; font-stretch: 120%; text-decoration: none;
}
.mobile-menu li a:hover { color: var(--orange); }
.mobile-menu-actions { display: grid; gap: var(--s3); }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .brand img { width: 112px; }
  .header-phone { display: none; }
  .header-actions .btn-primary { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(880px, calc(100svh - var(--header-h)));
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--slate) url("../img/hero-poster.webp") center / cover no-repeat;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.1) 80%),
    linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 45%);
}
.laser { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.laser-beam {
  position: absolute; left: 0; bottom: 0;
  width: 160vmax; height: 5px;
  transform-origin: 0 50%; transform: rotate(-48deg);
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 60%, rgba(244,115,28,0) 100%);
  box-shadow: 0 0 14px rgba(244, 115, 28, .45);
}
.laser-beam.thin { height: 2px; box-shadow: 0 0 8px rgba(244, 115, 28, .35); }
.laser-hero { position: relative; inset: auto; height: 0; overflow: visible; }
.laser-hero .laser-beam { left: calc(100% - 200px); bottom: 0; }
.laser-hero .laser-beam.thin { left: calc(100% - 176px); }
.laser-hero::after {
  content: ""; position: absolute; left: calc(100% - 204px); top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: #ffd2b0; box-shadow: 0 0 0 2px var(--orange), 0 0 14px 4px rgba(244,115,28,.7);
}
.js .laser-hero::after { opacity: 0; }
.hero-play .laser-hero::after { animation: fade-in .25s ease .05s forwards; }
.hero-in { position: relative; padding-block: clamp(56px, 10vh, 120px) clamp(28px, 5vh, 48px); }
.hero-title {
  font-size: var(--fs-display);
  font-weight: 860;
  font-style: italic;
  font-stretch: 125%;
  line-height: .94;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--s5);
}
.hero-title .line { display: block; }
.hero-title .line + .line { color: var(--orange); }
.hero-lede { font-size: var(--fs-lead); line-height: 1.5; max-width: 52ch; color: var(--chalk); margin-bottom: var(--s6); }
.hero-start { margin-bottom: var(--s5); }
.hero-start-q { font-weight: 700; font-stretch: 110%; margin-bottom: var(--s3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid rgba(242,242,240,.5); border-radius: var(--radius-tile);
  background: rgba(0,0,0,.35);
  font-weight: 600; font-size: var(--fs-sm); text-decoration: none; color: var(--chalk);
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip:hover { border-color: var(--orange); color: var(--white); background: rgba(244,115,28,.14); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s7); }
.promises {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grout-gap);
  border-top: 1px solid rgba(242,242,240,.18); padding-top: var(--s5);
}
.promises li { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-sm); line-height: 1.4; font-weight: 600; color: var(--chalk); }
.promises svg { flex: none; width: 22px; height: 22px; color: var(--orange); margin-top: -1px; }
.media-toggle {
  position: absolute; right: clamp(12px, 3vw, 24px); top: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  background: rgba(0,0,0,.55); border: 1px solid rgba(242,242,240,.35); border-radius: var(--radius-tile);
  font-size: var(--fs-xs); font-weight: 600; cursor: pointer;
}
.media-toggle:hover { border-color: var(--orange); }
.media-toggle svg { width: 14px; height: 14px; }

/* page-load moment: the laser goes down, then the headline is set */
.js .laser-beam { clip-path: inset(0 100% 0 0); }
.js .hero-title .line, .js .hero-lede, .js .hero-start, .js .hero-ctas { opacity: 0; }
.hero-play .laser-beam { animation: laser-draw 1.1s var(--ease-set) .1s forwards; }
.hero-play .laser-beam.thin { animation-delay: .26s; }
.hero-play .hero-title .line { animation: tile-set .7s var(--ease-set) forwards; }
.hero-play .hero-title .line:nth-child(1) { animation-delay: .2s; }
.hero-play .hero-title .line:nth-child(2) { animation-delay: .34s; }
.hero-play .hero-lede { animation: fade-in .5s ease .55s forwards; }
.hero-play .hero-start { animation: fade-in .5s ease .65s forwards; }
.hero-play .hero-ctas { animation: fade-in .5s ease .75s forwards; }
@keyframes laser-draw { to { clip-path: inset(0 0 0 0); } }
@keyframes tile-set {
  0% { opacity: 0; transform: translateY(-.28em); }
  70% { opacity: 1; transform: translateY(.03em); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in { to { opacity: 1; } }

@media (max-width: 900px) {
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s4); }
}
@media (max-width: 560px) {
  .hero-title { font-stretch: 112%; }
  .hero-ctas .btn { width: 100%; }
  .hero-shade { background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.35) 100%); }
  .hero .laser { display: none; }
  .media-toggle .label { display: none; }
}

/* ---------- B-roll strip ---------- */
.broll { position: relative; background: var(--pitch); padding-block: var(--s5); overflow: hidden; }
.broll-viewport { overflow: hidden; }
.broll-track { display: flex; gap: var(--grout-gap); width: max-content; list-style: none; }
.broll-item { flex: none; width: clamp(200px, 22vw, 280px); margin: 0; }
.broll-item canvas { width: 100%; aspect-ratio: 4 / 3; height: auto; border-radius: var(--radius-tile); background: var(--slate-raised); }
.broll-item figcaption { padding-top: var(--s2); font-size: var(--fs-xs); font-weight: 600; color: var(--grout); }
.broll.is-running .broll-track { animation: broll-pan var(--broll-dur, 60s) linear infinite; }
.broll.is-paused .broll-track, .broll:hover .broll-track, .broll:focus-within .broll-track { animation-play-state: paused; }
@keyframes broll-pan { to { transform: translateX(var(--broll-shift, -50%)); } }
.broll-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-bottom: var(--s4); }
.broll-title { font-size: var(--fs-sm); font-weight: 700; font-stretch: 110%; margin: 0; }
.broll-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  background: transparent; border: 1px solid var(--slate-edge); border-radius: var(--radius-tile);
  font-size: var(--fs-xs); font-weight: 600; cursor: pointer;
}
.broll-toggle:hover { border-color: var(--orange); }
.broll-toggle svg { width: 12px; height: 12px; }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: var(--header-h); }
.section-wall {
  background-color: var(--porcelain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='96' viewBox='0 0 192 96'%3E%3Cg fill='none' stroke='%23e6e6e3' stroke-width='1'%3E%3Cpath d='M0 .5h192M0 48.5h192M.5 0v48M96.5 0v48M48.5 48v48M144.5 48v48'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--ink);
}
.section-slate {
  background: var(--slate) url("../img/slate-512.webp") 0 0 / 512px 512px repeat;
  color: var(--chalk);
}
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .h2 { margin-bottom: var(--s4); }
.section-head p { font-size: var(--fs-lead); line-height: 1.5; max-width: 58ch; margin: 0; }
.section-wall .section-head p { color: var(--ink-soft); }
.section-slate .section-head p { color: var(--grout); }
.section-wall a:not(.btn) { color: var(--orange-ink); text-underline-offset: 3px; }
.section-slate a:not(.btn) { color: var(--orange); text-underline-offset: 3px; }

/* ---------- services: a tiled wall ---------- */
.tile-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grout-gap);
  padding: var(--grout-gap); background: var(--porcelain-line); border-radius: var(--radius-panel);
}
.svc {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius-tile);
  padding: clamp(20px, 2.4vw, 32px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -2px 0 rgba(0,0,0,.04);
}
.svc-xl { grid-column: span 2; grid-row: span 2; background: var(--ink); color: var(--chalk); }
.svc-wide { grid-column: span 2; }
.svc-long { grid-column: span 3; }
.svc-icon { width: 44px; height: 44px; color: var(--orange-ink); margin-bottom: var(--s5); }
.svc-xl .svc-icon { color: var(--orange); width: 56px; height: 56px; }
.svc .h3 { margin-bottom: var(--s3); }
.svc-xl .h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem); font-style: italic; font-stretch: 125%; font-weight: 820; line-height: 1.05; }
.svc p { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.55; }
.svc-xl p { color: var(--grout); font-size: var(--fs-body); max-width: 46ch; }
.svc-list { list-style: none; display: grid; gap: 6px; margin-bottom: var(--s5); font-size: var(--fs-sm); }
.svc-list li { display: flex; gap: 10px; align-items: baseline; }
.svc-list li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--orange); border-radius: 1px; transform: translateY(-1px); }
.svc-link { margin-top: auto; font-weight: 700; font-size: var(--fs-sm); text-underline-offset: 4px; }
.section-wall .svc-xl a.svc-link { color: var(--orange); }
.svc-cta { background: var(--orange); color: var(--pitch); justify-content: space-between; }
.svc-cta .h3 { font-style: italic; font-stretch: 125%; font-weight: 820; }
.svc-cta p { color: var(--pitch); }
.section-wall .svc-cta a.svc-link { color: var(--pitch); }

@media (max-width: 980px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-xl { grid-row: auto; }
  .svc-long { grid-column: span 2; }
}
@media (max-width: 600px) {
  .tile-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-xl, .svc-wide, .svc-long { grid-column: auto; }
}

/* ---------- work: before / after ---------- */
.work-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.work-copy .h2 { margin-bottom: var(--s4); }
.work-copy p { color: var(--grout); }
.work-copy .btn { margin-top: var(--s3); }
.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-panel); overflow: hidden;
  background: var(--slate-raised); touch-action: pan-y; user-select: none;
}
.ba canvas, .ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: var(--orange); box-shadow: 0 0 10px rgba(244,115,28,.6); pointer-events: none;
}
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M9 6l-5 6 5 6M15 6l5 6-5 6'/%3E%3C/svg%3E") center / 22px no-repeat;
  border-radius: var(--radius-tile);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.ba-range:focus-visible + .ba-handle::after { outline: 3px solid var(--white); outline-offset: 2px; }
.ba-tag {
  position: absolute; top: 14px; padding: 4px 10px; border-radius: var(--radius-tile);
  background: rgba(0,0,0,.72); color: var(--white); font-size: var(--fs-xs); font-weight: 700; pointer-events: none;
}
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; }
.ba-note { margin: var(--s3) 0 0; font-size: var(--fs-xs); color: var(--grout); }
@media (max-width: 900px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- reviews (renders only when real reviews are added in config.js) ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--grout-gap); }
.review { background: var(--white); border-radius: var(--radius-tile); padding: var(--s5); margin: 0; display: flex; flex-direction: column; gap: var(--s4); }
.review blockquote { margin: 0; font-size: var(--fs-body); line-height: 1.55; }
.review-stars { color: var(--orange-ink); font-weight: 800; letter-spacing: .1em; }
.review figcaption { margin-top: auto; font-size: var(--fs-sm); color: var(--ink-soft); }
.review figcaption strong { color: var(--ink); }

/* ---------- process ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); counter-reset: step; position: relative; }
.step { position: relative; padding-top: 72px; }
.step-num {
  position: absolute; top: 0; left: 0; width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--ink); color: var(--orange); border-radius: var(--radius-tile);
  font-size: 1.5rem; font-weight: 850; font-style: italic; font-stretch: 125%;
}
.step::before {
  content: ""; position: absolute; top: 25px; left: 64px; right: calc(-1 * var(--s5) + 12px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 10px, transparent 10px 16px);
}
.step:last-child::before { display: none; }
.step .h3 { margin-bottom: var(--s3); }
.step p { color: var(--ink-soft); font-size: var(--fs-sm); line-height: 1.55; margin: 0; }
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s7); }
  .step:nth-child(2)::before { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: var(--s6); }
  .step { padding: 0 0 0 72px; min-height: 52px; }
  .step::before { display: none; }
}

/* ---------- promo band ---------- */
.promo {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--pitch); color: var(--chalk);
  border-top: 1px solid var(--slate-line); border-bottom: 1px solid var(--slate-line);
  padding-block: clamp(56px, 7vw, 88px);
  scroll-margin-top: var(--header-h);
}
.promo-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s6); align-items: center; }
.promo .h2 { margin-bottom: var(--s3); }
.promo p { color: var(--grout); max-width: 56ch; margin: 0; font-size: var(--fs-lead); line-height: 1.5; }
.promo .promo-fine { font-size: var(--fs-xs); margin-top: var(--s3); }
.speed-rule {
  display: block; width: 200px; height: 8px; margin-bottom: var(--s4);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8'%3E%3Cpath fill='%23f4731c' d='M0 4L150 .5h4L150 7.5zM164 .5h36L196 7.5h-36z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
@media (max-width: 760px) { .promo-in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- planner ---------- */
.planner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.planner-preview { position: sticky; top: calc(var(--header-h) + 24px); }
.planner-preview canvas { width: 100%; aspect-ratio: 1 / 1; height: auto; border-radius: var(--radius-panel); background: #ddd; box-shadow: 0 0 0 var(--grout-gap) var(--porcelain-line); }
.planner-caption { margin-top: calc(var(--s4) + var(--grout-gap)); font-size: var(--fs-sm); color: var(--ink-soft); }
.planner-controls { display: grid; gap: var(--s6); }
.field-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-group legend, .field-label { display: block; padding: 0; margin-bottom: var(--s3); font-weight: 700; font-stretch: 108%; font-size: var(--fs-body); }
.opt-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
  border: 1.5px solid var(--porcelain-edge); border-radius: var(--radius-tile); background: var(--white);
  font-size: var(--fs-sm); font-weight: 600; cursor: pointer; color: var(--ink);
}
.opt input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.opt input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.swatch { width: 18px; height: 18px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); flex: none; }
.select, .input, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border-radius: var(--radius-tile); border: 1.5px solid var(--porcelain-edge); background: var(--white); color: var(--ink);
  font-size: var(--fs-body);
}
.select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.calc { background: var(--white); border-radius: var(--radius-panel); padding: var(--s5); box-shadow: 0 0 0 1px var(--porcelain-line); }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-bottom: var(--s4); }
.calc-out { font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-soft); margin-bottom: var(--s4); min-height: 3em; }
.calc-out strong { color: var(--ink); font-size: 1.25rem; font-stretch: 110%; display: block; }
.calc .note { font-size: var(--fs-xs); color: var(--ink-soft); margin: var(--s3) 0 0; }
@media (max-width: 900px) {
  .planner { grid-template-columns: minmax(0, 1fr); }
  .planner-preview { position: static; max-width: 520px; }
}

/* ---------- areas ---------- */
.areas-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.area-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grout-gap); }
.area-list li {
  background: rgba(0,0,0,.45); border: 1px solid var(--slate-line); border-radius: var(--radius-tile);
  padding: 14px 16px; font-weight: 600; font-size: var(--fs-sm);
}
.area-list li.is-home { border-color: var(--orange); color: var(--white); }
@media (max-width: 900px) { .areas-grid { grid-template-columns: minmax(0, 1fr); } }
/* 16 towns: 4 across when there is room, otherwise 2, so no row is left with an orphan tile */
@media (min-width: 901px) and (max-width: 1199px), (max-width: 640px) { .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid #cfcfcb; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4);
  padding: 20px 2px; cursor: pointer; list-style: none;
  font-size: 1.1875rem; font-weight: 700; font-stretch: 108%; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: var(--radius-tile); background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4731c' stroke-width='2.6' stroke-linecap='square'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s var(--ease-set);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--orange-ink); }
.faq .answer { padding: 0 2px 22px; color: var(--ink-soft); max-width: 68ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- quote ---------- */
.quote-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.quote-copy .h2 { margin-bottom: var(--s4); }
.quote-copy > p { color: var(--grout); font-size: var(--fs-lead); line-height: 1.5; }
.next-steps { list-style: none; display: grid; gap: var(--s4); margin: var(--s6) 0; counter-reset: next; }
.next-steps li { display: grid; grid-template-columns: 36px 1fr; gap: var(--s3); align-items: start; color: var(--chalk); font-size: var(--fs-sm); line-height: 1.5; counter-increment: next; }
.next-steps li::before {
  content: counter(next); display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-tile);
  background: var(--slate-raised); border: 1px solid var(--slate-edge); color: var(--orange);
  font-weight: 850; font-style: italic; font-stretch: 125%;
}
.next-steps strong { display: block; color: var(--white); font-size: var(--fs-body); }
.direct { display: grid; gap: var(--s3); }
.direct-label { font-weight: 700; margin: 0; }
.direct .btn { justify-content: flex-start; }

.form-panel { background: var(--slate-raised); border: 1px solid var(--slate-line); border-radius: var(--radius-panel); padding: clamp(20px, 3vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s4); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .field-label { font-weight: 700; font-size: var(--fs-sm); margin: 0; }
.field .opt-tag { font-weight: 500; color: var(--grout); }
.form-panel .input, .form-panel .select, .form-panel .textarea {
  background-color: var(--pitch); color: var(--chalk); border-color: var(--slate-edge);
}
.form-panel .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f2f0' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.form-panel .select option { background: var(--slate-raised); color: var(--chalk); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--grout); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,115,28,.35); }
.input::placeholder, .textarea::placeholder { color: #8c8c8c; }
.field-hint { font-size: var(--fs-xs); color: var(--grout); margin: 0; }
.field-error { font-size: var(--fs-xs); font-weight: 600; color: var(--error-dark); margin: 0; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--error-dark); }
.field .check { font-weight: 500; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); align-items: start; font-size: var(--fs-sm); line-height: 1.45; color: var(--chalk); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange); cursor: pointer; }
.form-legal { font-size: var(--fs-xs); color: var(--grout); margin: 0; }
.form-legal a { color: var(--orange); }
.form-actions { display: grid; gap: var(--s3); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius-tile); padding: var(--s4); font-size: var(--fs-sm); line-height: 1.5; }
.form-status.is-error { background: rgba(255,107,107,.1); border: 1px solid var(--error-dark); color: var(--chalk); }
.form-status.is-info { background: rgba(244,115,28,.1); border: 1px solid var(--orange); color: var(--chalk); }
.form-status .btn { margin-top: var(--s3); }
.form-done { text-align: left; }
.form-done .h2 { margin-bottom: var(--s4); }
.form-done p { color: var(--grout); }
.done-mark { width: 56px; height: 56px; display: grid; place-items: center; background: var(--orange); color: var(--pitch); border-radius: var(--radius-tile); margin-bottom: var(--s5); }
.done-mark svg { width: 30px; height: 30px; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-footer { background: var(--pitch); color: var(--grout); padding-block: var(--s8) calc(var(--s6) + var(--mobile-bar, 0px)); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: var(--s6); padding-bottom: var(--s7); border-bottom: 1px solid var(--slate-line); }
.footer-brand img { width: 200px; height: auto; margin-bottom: var(--s4); }
.footer-brand p { max-width: 34ch; }
.footer-col h2 { font-size: var(--fs-sm); font-weight: 700; color: var(--white); margin-bottom: var(--s3); font-stretch: 108%; }
.footer-col ul { list-style: none; display: grid; gap: 6px; }
.footer-col a { text-decoration: none; color: var(--grout); }
.footer-col a:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); padding-top: var(--s5); font-size: var(--fs-xs); }
.footer-base p { margin: 0; }
.footer-base a { color: var(--grout); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- mobile action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  :root { --mobile-bar: 72px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(0,0,0,.94); border-top: 1px solid var(--slate-line);
    transform: translateY(110%); visibility: hidden; transition: transform .25s var(--ease-set), visibility 0s linear .25s;
  }
  .mobile-bar.is-visible { transform: none; visibility: visible; transition: transform .25s var(--ease-set), visibility 0s; }
  .mobile-bar .btn { --bh: 50px; padding: 0 12px; }
}

/* ---------- simple pages ---------- */
.page-plain { background: var(--porcelain); color: var(--ink); }
.page-plain main { padding-block: var(--s8); }
.prose { max-width: 70ch; }
.prose h1 { font-size: var(--fs-h2); font-weight: 820; font-style: italic; font-stretch: 125%; line-height: 1.05; margin-bottom: var(--s5); }
.prose h2 { font-size: var(--fs-h3); font-weight: 750; font-stretch: 112%; margin: var(--s6) 0 var(--s3); }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; margin-bottom: var(--s4); }
.prose a { color: var(--orange-ink); }
.notfound { min-height: 70vh; display: grid; align-content: center; }
.notfound .display { font-size: var(--fs-display); font-weight: 860; line-height: .95; margin-bottom: var(--s5); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .broll.is-running .broll-track { animation: none; }
  .js .laser-beam { clip-path: none; }
  .js .hero-title .line, .js .hero-lede, .js .hero-start, .js .hero-ctas { opacity: 1; }
  .broll-viewport { overflow-x: auto; }
}

@media print {
  .site-header, .mobile-bar, .broll, .hero-media, .announce, .media-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
