/* ============================================================
   B&E Services — utility & excavation contractors
   Colorway: APWA locate colors (navy field, marking red, water
   blue, proposed-excavation white). Type: Archivo Expanded
   (display) / Overpass (body) / Overpass Mono (plan labels).
   ============================================================ */

:root {
  --navy-950: #07152A;
  --navy-900: #0B1D33;
  --navy-800: #0E2440;
  --line-dark: #1E3A5C;
  --concrete: #EDF0F3;
  --paper: #FFFFFF;
  --ink: #14253A;
  --muted: #54677C;
  --slate: #9FAEBE;
  --red: #C8102E;
  --red-dark: #A50D26;
  --blue: #2E6FD8;
  --blue-bright: #3D7BE0;
  --light-line: #D9DFE6;

  --font-display: 'Archivo', 'Arial Black', sans-serif;
  --font-body: 'Overpass', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Overpass Mono', 'Courier New', monospace;

  --container: 1180px;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- type ---------- */

h1, h2, h3, .stat-num, .proc-num, .brand-plate {
  font-family: var(--font-display);
  font-stretch: 125%;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: .01em;
}

h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.25;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow.on-dark { color: var(--slate); }

.section-sub {
  max-width: 560px;
  margin-top: 18px;
  color: var(--muted);
}

/* paint chips — the APWA legend motif */
.chip {
  display: inline-block;
  width: 18px;
  height: 8px;
  border-radius: 2px;
  flex: none;
}
.chip-blue { background: var(--blue-bright); }
.chip-red { background: var(--red); }
.chip-white { background: #E9EEF4; }
.chip-white-on-light { background: transparent; border: 1.5px solid var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(200, 16, 46, .28); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }

.btn-nav { padding: 10px 18px; font-size: .85rem; }

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(200, 16, 46, .55);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .55); }
  70% { box-shadow: 0 0 0 10px rgba(200, 16, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}

/* ---------- a11y ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.nav.scrolled {
  background: rgba(11, 29, 51, .92);
  border-bottom-color: var(--line-dark);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand-plate {
  background: #fff;
  color: var(--navy-900);
  font-weight: 900;
  font-size: 1.05rem;
  padding: 7px 10px 5px;
  border-radius: 4px;
  box-shadow: inset 0 -4px 0 var(--red);
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
}

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav-links a:hover { color: #fff; border-bottom-color: var(--red); }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .88rem;
  font-weight: 600;
}
.nav-phone:hover { color: var(--blue-bright); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 74px 0 auto 0;
  z-index: 99;
  background: var(--navy-950);
  border-bottom: 1px solid var(--line-dark);
  padding: 10px 24px 24px;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-menu .mobile-phone {
  color: var(--blue-bright);
  font-family: var(--font-mono);
  border-bottom: none;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  color: #fff;
  padding: 150px 0 0;
  background:
    repeating-linear-gradient(to right, rgba(61, 123, 224, .045) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(to bottom, rgba(61, 123, 224, .045) 0 1px, transparent 1px 56px),
    var(--navy-900);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 5.6vw, 4.35rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: .005em;
  margin: 0 0 26px;
}
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line { display: inline-block; }

.spray-wrap { position: relative; display: inline-block; }
.spray {
  position: absolute;
  left: -2%;
  bottom: -.12em;
  width: 104%;
  height: .16em;
  overflow: visible;
}
.spray path {
  fill: none;
  stroke: var(--red);
  stroke-width: 7;
  stroke-linecap: round;
  opacity: .95;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--slate);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.hero-meta {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}

/* field-record slideshow */
.fieldrec {
  margin: 0;
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
}
.fieldrec-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  background: var(--navy-900);
}
.fr-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.fr-slide.is-active { opacity: 1; }
.fr-dots {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 7px;
  z-index: 2;
}
.fr-dot {
  width: 22px;
  height: 5px;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, .38);
  cursor: pointer;
  padding: 0;
  transition: background-color .25s ease;
}
.fr-dot:hover { background: rgba(255, 255, 255, .7); }
.fr-dot.is-active { background: var(--red); }
.fieldrec-bar {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 4px 2px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.fr-label { color: #fff; font-weight: 600; flex: none; }
.fr-label::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 5px;
  border-radius: 2px;
  background: var(--red);
  margin-left: 10px;
  vertical-align: middle;
}
.fr-caption {
  color: var(--slate);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fr-count { color: var(--slate); flex: none; font-variant-numeric: tabular-nums; }

/* legend strip */
.legend {
  margin-top: 72px;
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
  padding-bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 40px;
}
.legend-line {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.legend-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
}
.legend-chips li { display: flex; align-items: center; gap: 9px; }
.legend-mono {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--slate);
}
.legend-sub {
  width: 100%;
  font-size: .92rem;
  color: var(--slate);
}

/* ============================================================
   SECTION SHELLS
   ============================================================ */

.section-light { background: var(--concrete); color: var(--ink); }
.section-white { background: var(--paper); color: var(--ink); }
.section-dark { background: var(--navy-900); color: #fff; }

.services, .why, .process, .area, .faq, .contact { padding: 96px 0; }

.section-head { margin-bottom: 56px; }

/* ============================================================
   STATS
   ============================================================ */

.stats {
  background: var(--paper);
  border-bottom: 1px solid var(--light-line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 44px;
  padding-bottom: 44px;
  gap: 24px;
}
.stat { border-left: 3px solid var(--red); padding-left: 18px; }
.stat-num {
  display: block;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 900;
  line-height: 1;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   SERVICES
   ============================================================ */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.svc-card {
  background: var(--paper);
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  padding: 30px 26px 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(20, 37, 58, .12);
  border-color: var(--blue-bright);
}
.svc-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc-card h3 { margin-bottom: 12px; }
.svc-card p { font-size: .94rem; color: var(--muted); }

.svc-secondary {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.svc-secondary-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.svc-tags li {
  font-size: .88rem;
  font-weight: 600;
  padding: 8px 16px;
  background: var(--paper);
  border: 1px solid var(--light-line);
  border-radius: 999px;
}

/* ============================================================
   WHY B&E
   ============================================================ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.why-item {
  background: var(--navy-900);
  padding: 36px 32px;
}
.why-item h3 { margin-bottom: 12px; }
.why-item h3 sup { font-size: .6em; }
.why-item p { color: var(--slate); font-size: .96rem; }

/* ============================================================
   PROCESS
   ============================================================ */

.proc-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 64px;
  counter-reset: none;
}
.proc-step { display: flex; gap: 24px; align-items: flex-start; }
.proc-num {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  flex: none;
  font-variant-numeric: tabular-nums;
}
.proc-step h3 { margin-bottom: 10px; }
.proc-step p { color: var(--muted); font-size: .96rem; }

/* ============================================================
   AREA + QUOTES
   ============================================================ */

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.area-col {
  background: var(--paper);
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  padding: 30px 32px;
}
.area-county {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--red);
}
.town-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px 18px;
}
.town-list li {
  font-size: .92rem;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}
.town-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 7px;
  height: 3px;
  border-radius: 1px;
  background: var(--blue-bright);
}

.area-note {
  margin-top: 28px;
  font-size: .95rem;
  color: var(--muted);
}

.quotes {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote {
  background: var(--paper);
  border: 1px solid var(--light-line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.quote blockquote {
  font-size: .97rem;
  color: var(--ink);
  margin-bottom: 18px;
}
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }
.quote figcaption {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-narrow { max-width: 780px; }

.faq-item {
  border-bottom: 1px solid var(--light-line);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}
.faq-mark::before, .faq-mark::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 16px;
  height: 2.5px;
  background: var(--red);
  transform: translateY(-50%);
  transition: transform .25s ease;
}
.faq-mark::after { transform: translateY(-50%) rotate(90deg); }
.faq-item[open] .faq-mark::after { transform: translateY(-50%) rotate(0deg); }
.faq-item p {
  padding: 0 4px 24px;
  color: var(--muted);
  max-width: 640px;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  background:
    repeating-linear-gradient(to right, rgba(61, 123, 224, .04) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(to bottom, rgba(61, 123, 224, .04) 0 1px, transparent 1px 56px),
    var(--navy-900);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 18px; }
.contact-lead { color: var(--slate); max-width: 380px; margin-bottom: 34px; }

.contact-phone {
  display: block;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: #fff;
  text-decoration: none;
  letter-spacing: .01em;
  margin-bottom: 8px;
}
.contact-phone:hover { color: var(--blue-bright); }
.contact-email {
  display: inline-block;
  color: var(--blue-bright);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .95rem;
  margin-bottom: 34px;
}
.contact-email:hover { text-decoration: underline; }

.contact-hours { display: grid; gap: 10px; }
.contact-hours div { display: flex; gap: 16px; align-items: baseline; }
.contact-hours dt {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  width: 92px;
  flex: none;
}
.contact-hours dd { color: #fff; font-size: .95rem; }

.contact-form {
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-width: 0;
  font-family: var(--font-body);
  font-size: .96rem;
  color: #fff;
  background: var(--navy-900);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 12px 14px;
  transition: border-color .18s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #5F7288; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--blue-bright);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239FAEBE' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.btn-submit { width: 100%; margin-top: 6px; }
.form-note {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--slate);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--navy-950);
  color: var(--slate);
  padding: 48px 0 96px;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: grid;
  gap: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name {
  color: #fff;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-tag { font-size: .85rem; }
.footer-legend { gap: 10px 22px; }
.footer-fine { font-size: .8rem; line-height: 1.8; }
.footer-fine sup { font-size: .65em; }

/* ============================================================
   MOBILE CALL BAR
   ============================================================ */

.callbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 21, 42, .96);
  border-top: 1px solid var(--line-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.callbar .btn { flex: 1; padding: 13px 10px; font-size: .9rem; }

/* ============================================================
   ANIMATION — load sequence (hero)
   ============================================================ */

.ld, .ld-rise { --d: 0; }

@media (prefers-reduced-motion: no-preference) {
  .ld {
    opacity: 0;
    animation: ld-fade .7s ease forwards;
    animation-delay: calc(var(--d) * 120ms + 100ms);
  }
  .ld-rise {
    transform: translateY(110%);
    animation: ld-rise .8s cubic-bezier(.22, .9, .3, 1) forwards;
    animation-delay: calc(var(--d) * 120ms + 100ms);
  }
  @keyframes ld-fade { to { opacity: 1; } }
  @keyframes ld-rise { to { transform: translateY(0); } }

  /* spray underline draws in */
  .spray path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: spray-draw .55s ease-out forwards;
    animation-delay: 1.15s;
  }
  @keyframes spray-draw { to { stroke-dashoffset: 0; } }

  /* slideshow: slow zoom on the active slide */
  .fr-slide.is-active { animation: fr-zoom 7.5s linear forwards; }
  @keyframes fr-zoom { to { transform: scale(1.06); } }
}

/* ============================================================
   ANIMATION — scroll reveals
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .js .rv {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.22, .9, .3, 1);
    transition-delay: calc(var(--rd, 0) * 95ms);
  }
  .js .rv.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-dot { animation: none; }
  .fr-slide { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { max-width: 560px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-inner { height: 66px; }
  .mobile-menu { inset: 66px 0 auto 0; }
  .nav-phone { display: none; }
  .btn-nav { display: none; }
  .nav-burger { display: flex; }

  .hero { padding-top: 112px; }
  .fieldrec { padding: 9px; }
  .fieldrec-frame { aspect-ratio: 4 / 5; }
  .legend { margin-top: 52px; flex-direction: column; align-items: flex-start; gap: 14px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }

  .services, .why, .process, .area, .faq, .contact { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }

  .svc-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .proc-list { grid-template-columns: 1fr; gap: 36px; }
  .area-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; margin-top: 48px; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { padding: 26px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .callbar { display: flex; }
  .footer { padding-bottom: 110px; }
}
