/* J. Mapes Excavation - authored fresh for this client per _dev/STYLEGUIDE.md.
   Nothing copied from any other project or reference site. */

/* ---------- tokens ---------- */
:root {
  --red: #CB0000;
  --red-deep: #A30000;
  --ink: #16181B;
  --ink-2: #212429;
  --steel: #B1B1B3;
  --grey-600: #55595F;
  --paper: #FFFFFF;
  --panel: #F4F5F7;
  --line: #E3E5E8;
  --text-dark: #E9EAEC;
  --container: 1180px;
  --section-pad: clamp(56px, 9vw, 104px);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.07);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.14);
  --header-h: 72px;
  --font-display: "Oswald", "Oswald-fallback", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", "Inter-fallback", -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- fonts (self-hosted, variable, latin) ---------- */
@font-face {
  font-family: "Oswald";
  src: url("/assets/fonts/oswald-var-latin.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* metric-compatible fallbacks so the swap moves nothing (Stage 4.15) */
@font-face {
  font-family: "Oswald-fallback";
  src: local("Arial Narrow"), local("Helvetica Neue Condensed"), local("Arial");
  size-adjust: 88%;
  ascent-override: 119%;
  descent-override: 29%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter-fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* Stage 4.9 global guard */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.0; letter-spacing: .01em; text-transform: uppercase; font-weight: 600; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.08; text-transform: uppercase; font-weight: 600; }
h3 { font-size: 24px; line-height: 1.2; font-weight: 500; }
h4 { font-size: 19px; line-height: 1.3; font-weight: 500; }
.small { font-size: 15px; line-height: 1.5; }

:is(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--paper); /* two-ring: white inner + red outer */
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}
.section {
  padding-block: var(--section-pad);
  /* directional reveal states translate children +-30px; clip at the
     SECTION (never html/body, C11) so pre-reveal offsets cannot create
     horizontal scroll. clip, not hidden: no new scroll container. */
  overflow-x: clip;
}
.section-head { max-width: 720px; }
.section-head .lead { color: var(--grey-600); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--red);
  margin: 0 0 10px;
}
.on-dark .eyebrow { color: var(--steel); }
.panel { background: var(--panel); }
.on-dark { background: var(--ink); color: var(--text-dark); }
.on-dark h2, .on-dark h3 { color: #fff; }
.nowrap { white-space: nowrap; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1300;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 30px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.on-dark .btn-outline, .hero .btn-outline { color: #fff; border-color: #fff; }
.on-dark .btn-outline:hover, .hero .btn-outline:hover { border-color: var(--red); }
.text-link { color: var(--red); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.on-dark .text-link, .hero .text-link, .cta-band .text-link { color: #fff; text-decoration: underline; }

/* ---------- top utility bar ---------- */
/* Dark strip above the sticky header (the header sticks; the bar scrolls
   away). Contact facts on the left are the questionnaire's SOURCE items
   verbatim; nothing here may be invented. */
.top-bar { background: var(--ink); color: var(--text-dark); font-size: 13.5px; line-height: 1.4; }
.top-bar-row { display: flex; align-items: center; gap: 18px; min-height: 44px; }
.top-bar-contact { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.tb-loc, .top-bar-hours { color: var(--steel); }
.top-bar-contact a { color: var(--text-dark); text-decoration: none; font-weight: 600; }
.top-bar-contact a:hover { color: #fff; text-decoration: underline; }
.top-bar-hours { margin: 0 auto; white-space: nowrap; }
.top-bar .social-links { margin-left: auto; }
.top-bar .social-link { color: var(--text-dark); }
.top-bar .social-link:hover, .top-bar .social-link:focus-visible { color: #fff; background: var(--red); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-row {
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav li { position: relative; }
.nav-item {
  display: inline-flex; align-items: center;
  padding: 10px 12px;
  font-weight: 600; font-size: 15.5px;
  text-decoration: none; color: var(--ink);
  border-radius: var(--radius);
}
.nav-item:hover, .nav-parent:hover .nav-item { color: var(--red); }
.nav-item[aria-current="page"] { color: var(--red); }
.nav-parent { display: inline-flex; align-items: stretch; border-radius: var(--radius); }
.nav-parent:hover, .nav-parent:focus-within { background: var(--panel); }
.nav-parent .nav-item { border-radius: var(--radius) 0 0 var(--radius); padding-right: 4px; }
.nav-caret {
  border: 0; background: none; padding: 0 10px 0 2px; cursor: pointer;
  display: inline-flex; align-items: center; color: inherit;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.nav-caret svg { width: 12px; height: 12px; transition: transform .18s ease; }
.nav-parent.open .nav-caret svg { transform: rotate(180deg); }
.main-nav ul.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
  padding: 8px; margin: 6px 0 0; list-style: none;
  display: none; z-index: 1150;
}
.main-nav .nav-parent.open ul.dropdown { display: block; }
.dropdown a {
  display: block; padding: 9px 12px; text-decoration: none;
  font-size: 15px; font-weight: 500; border-radius: 8px;
}
.dropdown a:hover { background: var(--panel); color: var(--red); }
.header-cta { padding: 10px 18px; font-size: 15px; }
.social-links { display: flex; align-items: center; gap: 4px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 50%;
}
.nav-toggle {
  display: none; border: 0; background: none; cursor: pointer;
  padding: 10px; margin-left: auto;
}
.nav-toggle .bars { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--ink);
}
.nav-toggle .bars::before { top: -7px; } .nav-toggle .bars::after { top: 7px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid; place-items: center;
  min-height: calc(100svh - var(--header-h));
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,24,27,.66) 0%, rgba(22,24,27,.74) 45%, rgba(22,24,27,.80) 100%);
}
.hero-inner { text-align: center; padding-block: 64px; max-width: 900px; }
.hero .eyebrow {
  color: #fff;
  background: rgba(22,24,27,.55); /* own scrim: the overlay is lightest at the top */
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius);
}
.hero p.sub { font-size: clamp(17px, 2vw, 20px); max-width: 640px; margin-inline: auto; color: #fff; }
.hero-actions { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.hero-rule {
  width: 72px; height: 4px; background: var(--red); margin: 18px auto 22px;
  transform-origin: center;
}
.jm-anim .hero-rule { animation: rule-grow .9s cubic-bezier(.22,1,.36,1) both; animation-delay: .15s; }
@keyframes rule-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* interior page hero (short) */
.page-hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,24,27,.74), rgba(22,24,27,.78));
}
.page-hero .container { padding-block: clamp(56px, 8vw, 96px); }
.page-hero p.sub { max-width: 640px; color: #fff; font-size: 18px; }
.page-hero-plain { background: var(--ink); color: #fff; }
.page-hero-plain .container { padding-block: clamp(48px, 6vw, 72px); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: 14px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--steel); }
.breadcrumb a { color: var(--steel); text-decoration: none; }
.page-hero .breadcrumb a { color: #fff; } /* steel fails 4.5:1 over photographs */
.breadcrumb a:hover { color: #fff; }

/* ---------- cards & grids ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 20px 22px;
}
.card-lift, .service-card {
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-lift:hover, .service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.value-item { border-left: 3px solid var(--red); padding: 2px 0 2px 18px; }
.value-item h3 { font-size: 19px; margin-bottom: 6px; }
.value-item p { margin: 0; color: var(--grey-600); font-size: 15px; }
.on-dark .value-item p { color: var(--steel); }

.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none;
}
.service-card .sc-media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.service-card .sc-media img { width: 100%; height: 100%; object-fit: cover; }
.service-card .sc-badge {
  position: absolute; right: 18px; bottom: 0; transform: translateY(50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  border: 3px solid var(--paper); box-shadow: var(--shadow);
  z-index: 2;
}
.service-card .sc-media { overflow: visible; }
.service-card .sc-media .sc-clip { position: absolute; inset: 0; overflow: hidden; }
.service-card .sc-badge svg { width: 26px; height: 26px; }
.service-card .sc-body { padding: 38px 20px 22px; }
.service-card h3 { color: var(--ink); }
.service-card p { color: var(--grey-600); font-size: 15.5px; margin: 0 0 12px; }
.service-card .text-link { font-size: 15px; }

/* scroll-linked process rail (E1): fill is scaleY() driven by scroll
   position in JS. Default state (no-JS, reduced motion) is STATIC AND
   FULL with lit dots: the complete page by construction; JS arms the
   section (.rail-armed) before taking over. */
.rail-wrap { position: relative; max-width: 920px; margin-inline: auto; }
.rail {
  position: absolute; left: 21px; top: 6px; bottom: 6px; width: 3px;
  background: var(--line); border-radius: 2px;
}
.rail-fill {
  position: absolute; inset: 0; background: var(--red); border-radius: 2px;
  transform-origin: 0 0; transform: scaleY(1);
}
.rail-steps { list-style: none; margin: 0; padding: 0; }
.rail-step { position: relative; padding: 0 0 42px 64px; }
.rail-step:last-child { padding-bottom: 0; }
.rail-dot {
  position: absolute; left: 22px; top: 0; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--red); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  z-index: 1;
}
.rail-armed .rail-step:not(.lit) .rail-dot {
  background: var(--paper); border-color: var(--line); color: var(--grey-600);
}
.rail-dot, .rail-armed .rail-step .rail-dot {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.rail-step h3 { font-size: 20px; margin-bottom: 6px; }
.rail-step p { margin: 0; color: var(--grey-600); font-size: 15.5px; max-width: 400px; }
@media (min-width: 901px) {
  .rail { left: 50%; margin-left: -1.5px; }
  .rail-step { width: 50%; padding: 0 56px 56px 0; }
  .rail-step:nth-child(odd) { text-align: right; }
  .rail-step:nth-child(odd) p { margin-left: auto; }
  .rail-step:nth-child(odd) .rail-dot { left: auto; right: 0; transform: translateX(50%); }
  .rail-step:nth-child(even) { margin-left: 50%; padding: 0 0 56px 56px; }
  .rail-step:nth-child(even) .rail-dot { left: 0; transform: translateX(-50%); }
}

.town-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 26px; }
.town-item {
  display: block; text-decoration: none;
  border-left: 3px solid var(--line); padding: 10px 0 10px 16px;
  transition: border-color .18s ease;
}
.town-item:hover { border-left-color: var(--red); }
.town-item h3 { color: var(--ink); font-size: 19px; margin-bottom: 2px; }
.town-item:hover h3 { color: var(--red); }
.town-item .drive { color: var(--grey-600); font-size: 14px; margin: 0; }
.town-item .drive strong { color: var(--red); }
@media (max-width: 980px) { .town-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .town-list { grid-template-columns: 1fr; } }

/* steps grid: 6 steps, 3x2 desktop; collapses via the shared breakpoints */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- media band / gallery ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.tile:focus-visible { outline-offset: -2px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; }
.filter-btn {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 9px 18px; font: 600 14.5px var(--font-body); cursor: pointer; color: var(--grey-600);
}
.filter-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn[aria-pressed="true"]:hover { color: #fff; }

.lightbox {
  border: 0; padding: 0; background: rgba(22,24,27,.92); border-radius: 0;
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  z-index: 1200;
}
.lightbox:not([open]) { display: none; } /* never override the UA's closed-dialog state */
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 84vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox figcaption { color: var(--steel); text-align: center; padding: 12px; font-size: 14.5px; }
.lb-close, .lb-prev, .lb-next {
  position: fixed; border: 0; background: rgba(255,255,255,.12); color: #fff;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 20px;
  display: grid; place-items: center;
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--red); }

/* ---------- photo composition (why section) ---------- */
.photo-stack { position: relative; padding: 0 40px 56px 0; }
.photo-stack .ps-main img { border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.photo-stack .ps-over {
  position: absolute; right: 0; bottom: 0; width: 46%;
}
.photo-stack .ps-over img {
  border-radius: var(--radius); border: 5px solid var(--paper);
  box-shadow: var(--shadow-lift);
}
.photo-stack .ps-tag {
  position: absolute; left: -6px; top: -14px;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 999px; box-shadow: var(--shadow);
}
.why-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.why-values { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 26px; }
.why-values.cols-3 { grid-template-columns: repeat(3, 1fr); }
.town-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-values, .why-values.cols-3 { grid-template-columns: 1fr 1fr; }
  .town-list.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .why-values, .why-values.cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .town-list.cols-3 { grid-template-columns: 1fr; } }

.photo-stack.tall { padding: 0 0 52px 36px; }
.photo-stack.tall .ps-over { left: 0; right: auto; width: 58%; }
.statement {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(21px, 2.2vw, 28px); line-height: 1.15;
  text-transform: uppercase; letter-spacing: .02em; color: var(--ink);
  border-left: 4px solid var(--red); padding-left: 16px; margin: 24px 0;
}
.check-list.cols-2 { grid-template-columns: 1fr 1fr; gap: 9px 18px; }
@media (max-width: 480px) { .check-list.cols-2 { grid-template-columns: 1fr; } }

/* ---------- project in depth ---------- */
.project-band { background: var(--ink); color: var(--text-dark); }
.project-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.project-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.project-photos .tile:first-child { grid-column: 1 / -1; }
.project-photos .tile img { aspect-ratio: 16 / 10; }
.project-photos .tile:not(:first-child) img { aspect-ratio: 4 / 3; }
.review-quote {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 20px; margin: 26px 0 0;
}
.review-quote blockquote { margin: 0 0 10px; font-size: 17px; line-height: 1.65; color: #fff; }
.review-quote figcaption { color: var(--steel); font-size: 15px; }

/* ---------- checklist ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--red);
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: 9px;
  width: 6px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  border-bottom: 1px solid var(--line); margin: 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 18px 20px;
  font-family: var(--font-display); font-size: 19px; font-weight: 500;
  list-style: none; position: relative; padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); color: var(--red); font-size: 24px; font-family: var(--font-body);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a { padding: 0 20px 18px; color: var(--grey-600); }
.faq .faq-a p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #FBE9E9; max-width: 640px; }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: #000; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }

/* ---------- forms ---------- */
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 13.5px; }
.form-field input, .form-field textarea {
  font: 16px var(--font-body); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 12px; background: var(--paper); width: 100%;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--red); }
.form-field textarea { min-height: 92px; resize: vertical; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--grey-600); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.form-actions { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; font-size: 13.5px; color: var(--grey-600); margin: 0; }
.field-error { color: var(--red-deep); font-size: 12.5px; min-height: 5px; margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-info .info-row { display: flex; gap: 12px; margin-bottom: 16px; }
.contact-info .info-row strong { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-600); }
.contact-info a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-info a:hover { color: var(--red); }

/* ---------- dark form card ---------- */
.form-card {
  background: var(--ink); color: var(--text-dark);
  padding: clamp(20px, 2.4vw, 30px); border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.form-card .form-field label { color: #fff; }
.form-card .form-field input, .form-card .form-field textarea { border-color: #33373D; }
.form-card .consent, .form-card .form-note { color: var(--steel); }
.form-card .field-error { color: #FFA9A9; }
.form-card .text-link { color: #fff; text-decoration: underline; }

/* ---------- what happens next (contact left column) ---------- */
.next-steps { border-top: 1px solid var(--line); margin-top: 8px; }
.ns-item { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.ns-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
}
.ns-item h3 { font-size: 17px; margin-bottom: 3px; }
.ns-item p { margin: 0; color: var(--grey-600); font-size: 14.5px; }

/* ---------- map ---------- */
.map-embed { width: 100%; }
.map-embed iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); display: block; }

/* ---------- service area hub prose ---------- */
.area-prose { max-width: 760px; color: var(--grey-600); }
.measure-center { margin-inline: auto; }
.legal-body { margin-inline: auto; }

/* ---------- LED boundary sweep (composited, transform only) ---------- */
.led-line { position: relative; height: 3px; overflow: hidden; background: #2C2F34; }
.led-line span {
  position: absolute; top: 0; left: 0; height: 100%; width: 180px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: led-sweep 4.2s linear infinite;
  will-change: transform;
}
@keyframes led-sweep {
  from { transform: translateX(-180px); }
  to { transform: translateX(100vw); }
}

/* ---------- sticky header scrolled state + back-to-top ---------- */
.site-header { transition: box-shadow .18s ease; }
.site-header.is-scrolled { box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 12px 28px rgba(0,0,0,.10); }
.back-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 1150;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lift);
  opacity: 0; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background-color .18s ease;
}
.back-top.show { opacity: 1; transform: none; }
.back-top:hover { background: var(--red); }
.back-top svg { width: 20px; height: 20px; }

/* ---------- service-area map (inline SVG, fresh geometry) ---------- */
.map-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.area-map-svg { width: 100%; height: auto; display: block; max-height: 74vh; }
.am-county { fill: #1D2024; stroke: #3A3F45; stroke-width: 2; }
.am-state { fill: none; stroke: #34383D; stroke-width: 1.5; }
.am-county-mini { fill: var(--red); opacity: .55; stroke: none; }
.am-dot { fill: var(--red); stroke: #fff; stroke-width: 2; }
.am-dot-sm { fill: var(--steel); opacity: .75; }
.am-name { fill: #fff; font: 600 19px var(--font-body); }
.am-mins { fill: var(--steel); font: 500 14.5px var(--font-body); }
.map-sweep { fill: var(--red); opacity: .9; }
/* interactive dots */
.am-link { cursor: pointer; }
.am-link:focus-visible { outline: none; box-shadow: none; } /* the white ring IS the focus indicator (16.4:1 on the county fill) */
.am-hit { fill: transparent; }
.am-ring { fill: none; stroke: #fff; stroke-width: 3; opacity: 0; }
.am-link:focus-visible .am-ring { opacity: 1; }
.am-link:hover .am-dot { r: 8.5px; }
.am-link:hover .am-name { fill: var(--red); }
.am-cov-hit { fill: transparent; cursor: help; }
.am-tip { opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.am-cov:hover .am-tip { opacity: 1; }
.am-tip rect { fill: #fff; }
.am-tip text { fill: var(--ink); font: 600 14px var(--font-body); }
.skip-map {
  position: absolute; left: -9999px; top: 0; z-index: 1200;
  background: var(--red); color: #fff; padding: 8px 16px; border-radius: 999px;
  font: 600 14px var(--font-body); text-decoration: none;
}
.skip-map:focus { left: 8px; top: 8px; }
.area-map { position: relative; }
@media (max-width: 980px) {
  .map-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* phone: county layer and the eight labeled towns only */
  .am-cov { display: none; }
  .am-dot-sm { display: none; }
  .am-name { font-size: 22px; }
  .am-mins { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .map-sweep { display: none; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--text-dark); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 5vw, 56px);
  padding-block: clamp(48px, 7vw, 72px);
}
.footer-grid .f-head { color: #fff; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; font-weight: 500; }
.footer-brand .f-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: .02em; }
.footer-brand .f-rule { width: 44px; height: 3px; background: var(--red); margin: 10px 0 14px; }
.footer-brand p { color: var(--steel); font-size: 15px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid ul a { color: var(--text-dark); text-decoration: none; font-size: 15px; }
.footer-grid ul a:hover { color: #fff; text-decoration: underline; }
.footer-grid .f-contact a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-grid .f-contact a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid #2C2F34; }
.footer-bottom-row {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  padding-block: 20px; font-size: 13.5px; color: var(--steel);
}
.footer-bottom-row a { color: var(--steel); text-decoration: none; }
.footer-bottom-row a:hover { color: #fff; text-decoration: underline; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- entrance choreography ----------
   The hidden state (.rv-hide) is applied BY JAVASCRIPT, only to elements
   fully below the fold at script run, and only under html.jm-anim (armed by
   the inline head script when reduced motion is off). No-JS and
   reduced-motion get the complete static page by construction. */
.jm-anim .rv-hide { opacity: 0; transform: translateY(18px); }
.jm-anim .rv-left.rv-hide { transform: translateX(-30px); }
.jm-anim .rv-right.rv-hide { transform: translateX(30px); }
.jm-anim .rv-hide.in {
  opacity: 1; transform: none;
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--stagger, 0) * .08s);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-lift:hover, .service-card:hover { transform: none; }
  .jm-anim .rv-hide { opacity: 1; transform: none; }
  .jm-anim .hero-rule { animation: none; }
  .led-line span { animation: none; opacity: 0; }
  /* the rail's default IS static and full; JS never arms under reduced motion */
}

/* ---------- utility pages ---------- */
.utility-hero { min-height: 52svh; display: grid; place-items: center; text-align: center; }
.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 24px; text-transform: none; margin-top: 1.6em; }

/* ---------- breakpoints (2f collapse points) ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open .main-nav {
    display: block; position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    box-shadow: var(--shadow-lift); z-index: 1100;
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 14px 20px; }
  .main-nav .nav-parent { display: flex; justify-content: space-between; }
  .main-nav ul.dropdown { position: static; border: 0; box-shadow: none; margin: 0; padding: 0 0 0 16px; min-width: 0; }
}
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2, .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .quote-form { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .header-cta { display: none; }
  .grid-3 > .service-card:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 420px) {
  .brand img { height: 38px; }
}
/* Top-bar shedding order, wide to narrow: the bar must stay ONE line.
   Email is the longest and least phone-valuable item, it goes first; the
   centred hours next (they live in the footer and on the contact page);
   location next (footer bottom, every page). The floor is phone + both
   icons. Breakpoint numbers are measured - re-measure if any bar text
   changes, the same trap as the old 349px header floor. */
/* Measured zero-slack points (Inter is self-hosted, so widths are stable):
   full bar 913px, email-hidden 690px, hours-hidden 428px, floor with just
   phone + two icons ~222px. Each breakpoint sits a little above its
   zero point. */
@media (max-width: 930px) {
  .top-bar .tb-email { display: none; }
}
@media (max-width: 700px) {
  .top-bar-hours { display: none; }
}
@media (max-width: 440px) {
  .top-bar .tb-loc { display: none; }
}

