/* ==========================================================================
   Fokos Underground — styles
   One family, two widths. True black, brand orange #FE8A33, white.
   Motion language: lines draw, fills wipe, always left to right.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --orange: #FE8A33;
  --orange-light: #FFA45E;      /* map hover only */
  --black: #000000;
  --white: #FFFFFF;
  --gray: #6B6B6B;               /* captions on white */
  --gray-on-dark: #A6A6A6;       /* captions on black */
  --rule: #D9D9D9;
  --rule-on-dark: #2E2E2E;
  --red: #B3261E;                /* form errors only */
  --county: #2A2A2A;             /* unserved counties */

  --font-head: 'Barlow Condensed', 'Archivo Narrow', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'Barlow', 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fast: 150ms;
  --base: 220ms;
  --slow: 350ms;
  --draw: 400ms;
  --hero: 1200ms;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);

  --nav-h: 80px;
  --gutter: 24px;
  --container: 1660px;
  --section-y: 96px;
  --radius: 6px;
  --cable-w: 12px;

  --text: var(--black);
  --bg: var(--white);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}
@media (max-width: 767px) {
  :root { --nav-h: 64px; --section-y: 64px; --cable-w: 8px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --cable-w: 10px; }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1;
  margin: 0;
  letter-spacing: 0;
}

h1 { font-size: clamp(42px, 5.4vw, 78px); line-height: 0.98; }
h2 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1; }
h3 { font-size: 24px; font-weight: 700; line-height: 1.1; }

p { margin: 0; }
p + p { margin-top: 1em; }

.measure { max-width: 62ch; }

img, svg { display: block; max-width: 100%; }

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: 0; padding: 0; }

ul, ol { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section--dark {
  background: var(--black);
  color: var(--white);
  --text: var(--white);
  --bg: var(--black);
}

.section--dark h2 { color: var(--orange); }

.section__intro {
  margin-top: 20px;
  max-width: 62ch;
}

.caption { color: var(--gray); font-size: 15px; }
.section--dark .caption { color: var(--gray-on-dark); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 12px 16px;
  background: var(--black);
  color: var(--white);
  font-weight: 500;
  border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline: 2px solid var(--orange); outline-offset: 2px; }

/* Global focus style for non-text controls (text links use the underline).
   Black on white surfaces (orange is only 2.4:1 against white), orange on black surfaces. */
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.section--dark :focus-visible, .footer :focus-visible, .lightbox :focus-visible { outline-color: var(--orange); }

/* Sample-data flag for the client review. Remove with the sample content. */
.sample-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--gray);
  font-size: 13px;
  font-weight: 500;
}
.sample-note::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.section--dark .sample-note { border-color: var(--rule-on-dark); color: var(--gray-on-dark); }

/* --------------------------------------------------------------------------
   3. Icons — Lucide sprite, stroked, drawn on hover of the parent item
   -------------------------------------------------------------------------- */
.icon {
  width: 24px; height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.icon--lg { width: 32px; height: 32px; stroke-width: 1.5; }
.icon--sm { width: 20px; height: 20px; stroke-width: 2; }

@keyframes icon-draw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

/* Any element with .draws redraws its icons when hovered or focused */
@media (hover: hover) {
  .draws:hover .icon, .draws:focus-visible .icon, .draws:focus-within .icon {
    animation: icon-draw var(--draw) var(--ease-out) both;
  }
}

/* --------------------------------------------------------------------------
   4. Links — a 2px orange underline that grows from the left, leaves right
   -------------------------------------------------------------------------- */
.link {
  position: relative;
  display: inline-block;
  font-weight: 500;
  outline: none;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--fast) var(--ease-in);
}
.link:hover::after, .link:focus-visible::after, .link[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
  transition-timing-function: var(--ease-out);
}
.link:focus-visible { outline: none; }
/* Standalone links (contact details, footer) get a 44px tap area without changing the layout */
.link--tap::before {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   5. Buttons — a black fill wipes in from the left; text inverts
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--fast) var(--ease-out), transform 100ms var(--ease-out);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--base) var(--ease-in);
}
.btn:hover::before, .btn:focus-visible::before, .btn.is-held::before {
  transform: scaleX(1);
  transition-timing-function: var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 20px; height: 20px; stroke-width: 2; }

.btn--primary {
  background: var(--orange);
  color: var(--black);
}
.btn--primary:hover, .btn--primary:focus-visible, .btn--primary.is-held { color: var(--orange); }
.section--dark .btn--primary { box-shadow: inset 0 0 0 2px var(--orange); }
/* On black sections the hover fill is white (a black wipe would vanish into the background) */
.section--dark .btn--primary::before { background: var(--white); }
.section--dark .btn--primary:hover, .section--dark .btn--primary:focus-visible, .section--dark .btn--primary.is-held { color: var(--black); }

.btn--secondary {
  background: transparent;
  color: var(--black);
  box-shadow: inset 0 0 0 2px var(--black);
}
.btn--secondary:hover, .btn--secondary:focus-visible { color: var(--white); }

.section--dark .btn--secondary, .btn--secondary.btn--on-dark {
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--white);
}
.section--dark .btn--secondary::before, .btn--secondary.btn--on-dark::before { background: var(--white); }
.section--dark .btn--secondary:hover, .section--dark .btn--secondary:focus-visible,
.btn--secondary.btn--on-dark:hover, .btn--secondary.btn--on-dark:focus-visible { color: var(--black); }

/* The one playful touch: the phone icon rings once on hover (desktop only) */
@keyframes ring {
  0% { transform: rotate(0); }
  33% { transform: rotate(-8deg); }
  66% { transform: rotate(8deg); }
  100% { transform: rotate(0); }
}
@media (hover: hover) {
  .btn--call:hover .icon { animation: ring var(--draw) var(--ease-out) 1; transform-origin: 50% 60%; }
}

/* Button pairs: mobile = Call then Quote; desktop = Quote then Call */
.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-row .btn--primary { order: 2; }
.btn-row .btn--call { order: 1; }
@media (min-width: 640px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row .btn--primary { order: 1; }
  .btn-row .btn--call { order: 2; }
}
@media (max-width: 639px) {
  .btn-row .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   6. Placeholder image boxes (gradient, labeled; swap for real photos)
   -------------------------------------------------------------------------- */
.ph {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(254, 138, 51, 0.42) 0%, rgba(254, 138, 51, 0) 58%),
    linear-gradient(160deg, #2A2A2A 0%, #0E0E0E 55%, #000 100%);
  color: var(--white);
}
.ph::after {
  /* faint hatch so the box reads as a placeholder, not a broken image */
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
.ph__label {
  position: absolute;
  left: 16px; bottom: 14px; right: 16px;
  z-index: 1;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
}
.ph__label strong { display: block; color: var(--white); font-weight: 500; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--4x3 { aspect-ratio: 4 / 3; }
.ph--3x2 { aspect-ratio: 3 / 2; }

/* --------------------------------------------------------------------------
   7. Navbar
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
}
.nav::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--rule);
  opacity: 0;
  transition: opacity var(--fast) var(--ease-out);
}
.nav.is-scrolled::after { opacity: 1; }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}
@media (max-width: 479px) { .nav__inner { gap: 12px; } }

/* The logo never renders below the kit's 160px minimum: 168px at rest, scaled with
   transform (never width) to 160px once the page is scrolled; a fixed 160px on mobile. */
.nav__logo {
  display: block;
  width: 168px;
  flex: 0 0 auto;
  transform-origin: left center;
  transition: transform var(--base) var(--ease-out);
}
.nav__logo img, .nav__logo svg { width: 100%; height: auto; }
.nav.is-scrolled .nav__logo { transform: scale(0.9524); }
@media (max-width: 767px) {
  .nav__logo, .nav.is-scrolled .nav__logo { width: 160px; transform: none; }
}
.nav__logo:focus-visible { outline-offset: 6px; }

.nav__links {
  position: relative;
  display: none;
  align-items: center;
  gap: 32px;
  transform-origin: center;
  transition: transform var(--base) var(--ease-out);
}
/* Scrolled: the links shrink toward their center while the logo shrinks toward the left */
.nav.is-scrolled .nav__links { transform: scale(0.9); }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  font-size: 17px;
  outline: none;
}
.nav__link:focus-visible { outline: none; }
.no-js .nav__link:focus-visible::after {
  /* keyboard users without JS: a fixed underline (with JS the locate mark moves to the focused link) */
  content: '';
  position: absolute; left: 0; right: 0; bottom: 8px;
  height: 2px; background: var(--orange);
}

/* The locate mark: one orange bar for the whole nav */
.nav__mark {
  position: absolute;
  left: 0; bottom: 8px;
  width: 100px;
  height: 2px;
  background: var(--orange);
  transform-origin: left;
  transform: translateX(0) scaleX(0);
  pointer-events: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__cta { display: none; }

.nav__iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  color: var(--black);
  transition: transform 100ms var(--ease-out);
}
.nav__iconbtn:active { transform: scale(0.98); }

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__iconbtn { display: none; }
}

/* Menu icon: two lines that rotate into an X */
.burger {
  position: relative;
  width: 22px; height: 16px;
}
.burger span {
  position: absolute;
  left: 0; width: 100%; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform var(--base) var(--ease-in), opacity var(--fast) var(--ease-in);
}
.nav__menu[aria-expanded="true"] .burger span { transition-timing-function: var(--ease-out); }
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 12px; }
.nav__menu[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .burger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
.nav__menu { position: relative; z-index: 130; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 8px) var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: var(--white);
  transform: translateX(100%);
  visibility: hidden;
}
.drawer.is-open { visibility: visible; }
.drawer__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
}
.drawer__link {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
}
.drawer__link::after { bottom: 6px; height: 3px; }
.drawer__link { transform-origin: left center; }
.drawer__link:active { transform: scale(0.98); }
.drawer__foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.drawer__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
}
.drawer__phone .link::after { bottom: 2px; }
@media (min-width: 1024px) { .drawer { display: none; } }

/* --------------------------------------------------------------------------
   8. Mobile sticky CTA bar
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--white);
  transform: translateY(100%);
  visibility: hidden;
}
.sticky-cta.is-visible { visibility: visible; }
.sticky-cta .btn {
  min-height: 56px;
  border-radius: 0;
  font-size: 17px;
}
.sticky-cta .btn--dark {
  background: var(--black);
  color: var(--white);
}
.sticky-cta .btn--dark::before { background: var(--orange); }
.sticky-cta .btn--dark:hover, .sticky-cta .btn--dark:focus-visible { color: var(--black); }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: var(--section-y);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
/* Mobile order: text, trust row, photo. Desktop: text | photo, with the trust row spanning both columns. */
.hero__text { order: 1; }
.trust { order: 2; }
.hero__media { order: 3; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); column-gap: clamp(40px, 5vw, 72px); row-gap: 32px; }
  .hero__text, .trust, .hero__media { order: 0; }
}
.hero__text { position: relative; container-type: inline-size; }
/* The headline is always exactly three lines: each line is a nowrap block and the size follows
   the text column's width (longest line = 8.53em, so 11.4cqw leaves a 3% margin). */
.hero__title { font-size: clamp(30px, 5.4vw, 78px); }
@supports (font-size: 1cqw) { .hero__title { font-size: min(11.4cqw, 96px); } }
.hero__line { display: block; white-space: nowrap; }
@media (max-width: 767px) {
  .hero { padding-top: 24px; }
}

/* The cable strip sits between headline and sub; the SVG is built by JS to
   span from the viewport's left edge to the text block's right edge. */
.hero__cable {
  position: relative;
  height: 56px;
  margin: 20px 0 24px;
}
@media (max-width: 767px) { .hero__cable { height: 44px; margin: 16px 0 20px; } }
.hero__cable svg {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: calc(100% + var(--edge-left, 0px));
  max-width: none;
  overflow: visible;
}
.hero__cable-static { overflow: hidden; }
.cable-fill { fill: var(--black); }
.section--dark .cable-fill { fill: var(--white); }


.hero__sub {
  font-size: clamp(17.5px, 1.35vw, 20px);
  max-width: 54ch;
}
.hero .btn-row { margin-top: 28px; }

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: -4px; /* 40px grid gap - 4px = 36px below the buttons */
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 16px;
}
@media (max-width: 479px) {
  .trust { flex-direction: column; }
}
@media (min-width: 900px) {
  .trust { grid-column: 1 / -1; margin-top: 0; }
}

.hero__media { position: relative; }
.hero__media .ph { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .hero__media .ph { aspect-ratio: 4 / 3; } }

/* --------------------------------------------------------------------------
   10. Services
   -------------------------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 40px;
  margin-top: 40px;
}
@media (min-width: 640px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: 1fr 1fr 1fr; } }

.service {
  position: relative;
  padding: 32px 0 34px;
  border-bottom: 1px solid var(--rule);
}
.service::after {
  /* the hairline turns orange on hover: a wipe, left to right */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--fast) var(--ease-in);
}
@media (hover: hover) {
  .service:hover::after, .service:focus-within::after { transform: scaleX(1); transform-origin: left; transition-timing-function: var(--ease-out); }
}
.service .icon { margin-bottom: 18px; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--black); }
.services__more { margin-top: 32px; font-size: 18px; }

/* --------------------------------------------------------------------------
   11. Why Fokos
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); }
}
.about__copy p { margin-top: 20px; max-width: 58ch; }

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  margin-top: 64px;
}
@media (min-width: 900px) { .values { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.value .icon { margin-bottom: 14px; }
.value h3 { font-size: 22px; margin-bottom: 8px; }
.value p { color: var(--black); }

.stats {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.stats__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 40px;
}
.stat { flex: 1 1 160px; }
.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
}
.stat__label { margin-top: 6px; color: var(--gray); font-size: 16px; }

/* --------------------------------------------------------------------------
   12. Process (black) — the cable's second and last appearance
   -------------------------------------------------------------------------- */
.process__steps {
  position: relative;
  margin-top: 56px;
}
.process__cable {
  position: absolute;
  pointer-events: none;
  overflow: visible;
}
.process__cable svg { overflow: visible; width: 100%; height: 100%; }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.step { position: relative; }
.step__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(56px, 6vw, 80px);
  line-height: 1;
  color: var(--orange);
  transition: opacity var(--fast) var(--ease-out);
}
/* Numerals start dim only when JS can light them as the cable reaches them */
.js .step__num { opacity: 0.4; }
.js .step.is-reached .step__num { opacity: 1; }
.step h3 { margin-top: 18px; color: var(--white); }
.step p { margin-top: 8px; color: var(--white); max-width: 34ch; }

/* Mobile: vertical timeline in a 48px gutter, line drawn top to bottom */
@media (max-width: 899px) {
  .steps { padding-left: 48px; }
  .process__cable { left: 0; top: 0; right: 0; bottom: 0; }
  .step__num { line-height: 1; }
}
/* Desktop: four columns, line runs beneath the numerals */
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 40px; }
  .process__cable { left: 0; right: 0; top: 0; height: 100%; }
  .step__num { padding-bottom: 28px; }
  .step h3 { margin-top: 22px; }
}
.process .btn-row { margin-top: 56px; }

/* --------------------------------------------------------------------------
   13. Projects
   -------------------------------------------------------------------------- */
.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 32px;
  margin-top: 40px;
}
@media (min-width: 640px) { .projects__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .projects__grid { grid-template-columns: 1fr 1fr 1fr; } }

.project { margin: 0; }
.project__btn {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: var(--radius);
  transition: transform 100ms var(--ease-out);
}
.project__btn:active { transform: scale(0.98); }
.project__btn .ph { transition: filter var(--fast) var(--ease-out); }
.project__btn:hover .ph, .project__btn:focus-visible .ph { filter: brightness(1.05); }
.project figcaption {
  margin-top: 12px;
  color: var(--gray);
  font-size: 16px;
  transition: color var(--fast) var(--ease-out);
}
.project:hover figcaption, .project:focus-within figcaption { color: var(--black); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
}
.lightbox.is-open { visibility: visible; }
.lightbox__dim {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
}
.lightbox__stage {
  position: relative;
  width: min(100%, 1100px, calc((100vh - 140px) * 1.3333));
  width: min(100%, 1100px, calc((100dvh - 140px) * 1.3333));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lightbox__figure {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  transform-origin: top left;
  will-change: transform;
}
.lightbox__figure .ph { position: absolute; inset: 0; height: 100%; width: 100%; aspect-ratio: auto; }
.lightbox__caption {
  color: var(--white);
  font-size: 16px;
  opacity: 0;
  min-height: 24px;
}
.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(0, 0, 0, 0.5);
  transition: background var(--fast) var(--ease-out), color var(--fast) var(--ease-out), transform 100ms var(--ease-out);
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: var(--orange); color: var(--black); }
.lightbox__btn:active { transform: scale(0.98); }
.lightbox__btn .icon { stroke-width: 2; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__prev:active, .lightbox__next:active { transform: translateY(-50%) scale(0.98); }
.lightbox__chrome { opacity: 0; }
@media (max-width: 639px) {
  .lightbox { padding: 16px; }
  .lightbox__stage { width: min(100%, calc((100dvh - 200px) * 1.3333)); }
  /* caption and the prev/next pair share one row beneath the image */
  .lightbox__caption { min-height: 48px; padding-right: 116px; display: flex; align-items: center; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 0; transform: none; left: auto; }
  .lightbox__prev { right: 60px; }
  .lightbox__next { right: 0; }
  .lightbox__prev:active, .lightbox__next:active { transform: scale(0.98); }
}

/* --------------------------------------------------------------------------
   14. Service area (black)
   -------------------------------------------------------------------------- */
.area__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .area__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); }
}
.area__copy p { margin-top: 20px; max-width: 54ch; }
.county-name { font-weight: 500; transition: color var(--fast) var(--ease-out); }
.county-name.is-lit { color: var(--orange); }
.area__map { position: relative; }
.area__map svg { width: 100%; height: auto; }
@media (max-width: 899px) {
  .area__map { max-width: 560px; margin: 0 auto; width: 100%; }
}

.county {
  fill: var(--county);
  stroke: var(--black);
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: fill var(--fast) var(--ease-out);
}
.county.served {
  fill: var(--orange);
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: fill var(--fast) var(--ease-out), transform 100ms var(--ease-out);
}
.county.served:hover, .county.served.is-lit, .county.served:focus-visible { fill: var(--orange-light); outline: none; }
.county.served:focus-visible { stroke: var(--white); stroke-width: 3; }
.county.served:active { transform: scale(0.98); }
.map-label {
  fill: var(--gray-on-dark);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 21px;
  pointer-events: none;
  paint-order: stroke;
}
.map-label.served { fill: var(--black); font-weight: 500; font-size: 25px; }
.pin-ring { fill: none; stroke: var(--white); stroke-width: 3; }
.pin-dot { fill: var(--white); }
.pin-label {
  fill: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  paint-order: stroke;
  stroke: rgba(0,0,0,0.5);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.map-callout {
  position: absolute;
  left: 0; bottom: 0;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  font-weight: 500;
  font-size: 15px;
  opacity: 0;
  transition: opacity var(--fast) var(--ease-out);
  pointer-events: none;
}
.map-callout.is-visible { opacity: 1; }

.cities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 32px;
  margin-top: 28px;
  max-width: 420px;
}
.cities__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border-bottom: 1px solid var(--rule-on-dark);
  border-radius: 0;
  font-weight: 500;
  text-align: left;
  color: var(--white);
  cursor: pointer;
  transition: color var(--fast) var(--ease-out), transform 100ms var(--ease-out);
}
.cities__item:active { transform: scale(0.98); }
.cities__item:hover, .cities__item:focus-visible, .cities__item.is-lit { color: var(--orange); outline: none; }
.cities__item:focus-visible { box-shadow: inset 0 -2px 0 var(--orange); }
.area__legend {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  color: var(--gray-on-dark);
  font-size: 14px;
}
.area__legend span { display: inline-flex; align-items: center; gap: 8px; }
.area__legend i { width: 14px; height: 14px; border-radius: 3px; background: var(--orange); }
.area__legend i.dim { background: var(--county); box-shadow: inset 0 0 0 1px #444; }

/* --------------------------------------------------------------------------
   15. Testimonials (optional; sample content until real quotes arrive)
   -------------------------------------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}
@media (min-width: 768px) { .quotes { grid-template-columns: 1fr 1fr; gap: 48px; } }
.quote {
  margin: 0;
  padding-left: 20px;
  border-left: 3px solid var(--orange);
}
.quote p { font-size: 19px; line-height: 1.5; }
.quote footer { margin-top: 14px; color: var(--gray); font-size: 15.5px; }
.quote footer strong { display: block; color: var(--black); font-weight: 500; font-size: 16.5px; }

/* --------------------------------------------------------------------------
   16. Contact
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 40px;
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(48px, 7vw, 112px); }
  .contact__details { order: 2; }
  .contact__form { order: 1; }
}
@media (max-width: 899px) {
  .contact__details { order: 1; }
  .contact__form { order: 2; }
}

.details { display: flex; flex-direction: column; }
.detail {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.detail:first-child { padding-top: 0; }
.detail .icon { margin-top: 3px; }
.detail__label { display: block; color: var(--gray); font-size: 14.5px; font-weight: 500; margin-bottom: 2px; }
.detail__value { font-size: 18px; font-weight: 500; }
.detail__value .link { font-weight: 500; }
.detail__value--big { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1.05; }

/* Form */
.form { position: relative; }
.form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px 24px;
  transition: opacity var(--base) var(--ease-in), visibility 0s linear var(--base);
}
@media (min-width: 640px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field { position: relative; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
}
.field label .req { color: var(--gray); font-weight: 400; }
.field__control { position: relative; }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 36px 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gray);
  border-radius: 0;
  outline: none;
  color: var(--black);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray); opacity: 1; }
.field select { padding-right: 36px; cursor: pointer; }
.field select:invalid, .field select.is-empty { color: var(--gray); }
.field__chevron {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--black);
}

/* Focus rule: 2px orange, grows left to right, retracts to the right on blur */
.field__rule {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--base) var(--ease-in), background var(--fast) var(--ease-out);
  pointer-events: none;
}
.field__control:focus-within .field__rule {
  transform: scaleX(1);
  transform-origin: left;
  transition-timing-function: var(--ease-out);
}
.field.is-invalid .field__rule { transform: scaleX(1); background: var(--red); }
/* A focused invalid field still shows the orange focus rule; the red border and error text stay */
.field.is-invalid .field__control:focus-within .field__rule { background: var(--orange); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: var(--red); }

/* Valid checkmark draws at the right end */
.field__check {
  position: absolute;
  right: 6px; top: 14px;
  width: 20px; height: 20px;
  stroke: var(--orange);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}
.field.is-valid .field__check {
  opacity: 1;
  animation: icon-draw var(--draw) var(--ease-out) forwards;
}
.field--textarea .field__check { top: 12px; }

.field__error {
  display: none;
  margin-top: 6px;
  color: var(--red);
  font-size: 14.5px;
  font-weight: 500;
}
.field.is-invalid .field__error {
  display: block;
  animation: error-in var(--base) var(--ease-out) both;
}
@keyframes error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* File field */
.file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.file__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--gray);
  font-weight: 500;
  cursor: pointer;
  transition: transform 100ms var(--ease-out);
}
.file__btn:hover, .file:focus-within .file__btn { box-shadow: inset 0 0 0 2px var(--black); }
.file__btn:active { transform: scale(0.98); }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file__name { color: var(--gray); font-size: 15px; }
.file__hint { flex-basis: 100%; color: var(--gray); font-size: 14px; }

/* Honeypot: never shown */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Submit */
.form__actions { margin-top: 32px; transition: opacity var(--base) var(--ease-in), visibility 0s linear var(--base); }
.form__submit { position: relative; min-width: 180px; }
.form__submit .btn__current {
  position: absolute;
  left: 0; bottom: 0;
  width: 40%;
  height: 2px;
  background: var(--orange);
  transform: translateX(-100%);
  opacity: 0;
}
.form__submit.is-sending .btn__current {
  opacity: 1;
  animation: current var(--slow) linear infinite;
}
@keyframes current {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}
.form__submit[aria-disabled="true"] { cursor: progress; }

.form__status {
  display: none;
  margin-bottom: 20px;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--red);
  color: var(--black);
  font-size: 16px;
}
.form__status.is-visible { display: block; }
.form__status strong { font-weight: 500; }

/* Success state */
.form__success {
  position: absolute;
  inset: 0;
  display: none;
  align-content: start;
  gap: 16px;
  opacity: 0;
}
.form.is-sent .form__success { display: grid; }
/* On success the fields and button fade out (base, ease-in) while the message fades in: a crossfade */
.form.is-sent .form__grid, .form.is-sent .form__actions { opacity: 0; visibility: hidden; }
.form__success-head {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 44px);
}
.form__success-check {
  width: 56px; height: 56px;
  stroke: var(--orange);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  flex: 0 0 auto;
}
.form.is-sent .form__success-check { animation: icon-draw var(--draw) var(--ease-out) 120ms forwards; }
.form__success p { font-size: 18px; max-width: 46ch; }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--black);
  color: var(--white);
  --text: var(--white);
  --bg: var(--black);
  padding-top: 72px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}
@media (max-width: 1023px) { .footer { padding-bottom: calc(40px + 56px + env(safe-area-inset-bottom)); } }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 0.8fr 1.1fr 1fr; gap: 48px; } }
.footer__logo { width: 200px; }
.footer__logo img { width: 100%; height: auto; }
.footer__col p { margin-top: 18px; max-width: 32ch; color: var(--gray-on-dark); }
.footer__list { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 1023px) { .footer__list { gap: 18px; } } /* 44px tap zones must not overlap */
.footer__list li { display: flex; align-items: flex-start; gap: 10px; }
.footer__list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--gray-on-dark); }
.footer__list .link { font-weight: 400; }
.footer__list .link::after { background: var(--orange); }
.footer a { transition: color var(--fast) var(--ease-out); }
.footer a:hover, .footer a:focus-visible { color: var(--orange); }
.footer__meta { color: var(--gray-on-dark); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-on-dark);
  color: var(--gray-on-dark);
  font-size: 15px;
}
.footer__bottom .link { font-weight: 400; }

/* --------------------------------------------------------------------------
   18. Reduced motion — everything is shown in its final state
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .link::after, .btn::before, .field__rule, .service::after {
    transition: none !important;
  }
  .drawer, .sticky-cta, .lightbox__dim, .lightbox__caption, .lightbox__chrome {
    transition: opacity 100ms linear !important;
  }
  .icon, .field__check, .form__success-check { stroke-dashoffset: 0 !important; animation: none !important; }
  .step__num { opacity: 1 !important; }
  .form__submit.is-sending .btn__current { animation: none !important; transform: none !important; width: 100% !important; left: 0; }
  .field.is-invalid .field__error { animation: none !important; }
  html { scroll-behavior: auto; }
}
