/* CMK Excavation v2: shared stylesheet for the WordPress-free site. */

:root {
  /* Brand */
  --navy: #252E4D;
  --navy-deep: #1A2139;
  --orange: #FF7318;
  --orange-hover: #FF6C0A;

  /* Surfaces */
  --ink: #0D111D;
  --ink-2: #131829;
  --paper: #F4F2EE;
  --paper-2: #EAE7E1;
  --line-dark: rgba(244, 242, 238, .12);
  --line-light: rgba(37, 46, 77, .14);

  /* Text */
  --on-dark: #F4F2EE;
  --on-dark-dim: rgba(244, 242, 238, .7);
  --on-light: #161B2C;
  --on-light-dim: #4A5068;

  /* Type */
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* Layout */
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 11vw, 150px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 32px;

  /* Motion: durations */
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 700ms;

  /* Motion: easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Depth, tinted with the brand navy */
  --depth-1: 0 1px 2px rgba(13, 17, 29, .06), 0 2px 8px rgba(13, 17, 29, .06);
  --depth-2: 0 2px 4px rgba(13, 17, 29, .08), 0 10px 28px rgba(13, 17, 29, .14);
  --depth-3: 0 4px 8px rgba(13, 17, 29, .10), 0 20px 50px rgba(13, 17, 29, .24);
  --depth-4: 0 8px 16px rgba(13, 17, 29, .14), 0 36px 90px rgba(13, 17, 29, .38);

  /* Photo grade: unifies the bright midday job photos */
  --photo-grade: saturate(.82) contrast(1.06) brightness(.94);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-stretch: 112%;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--orange); color: var(--ink); padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: var(--section-y) 0; }
.section--light { background: var(--paper); color: var(--on-light); }
.section--navy { background: var(--navy-deep); }

/* Section index marker: a small numbered rule above each heading */
.index {
  display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; color: var(--orange);
  margin-bottom: 22px;
}
.index::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .6; }
.section--light .index { color: var(--navy); }

.h-xl { font-size: clamp(42px, 6.4vw, 92px); text-transform: uppercase; }
.h-lg { font-size: clamp(26px, min(3.6vw, 6.6vh), 52px); text-transform: uppercase; }
.h-md { font-size: clamp(22px, 2vw, 28px); }
.accent { color: var(--orange); }
.lede { font-size: clamp(17px, 1.35vw, 19px); color: var(--on-dark-dim); max-width: 60ch; }
.section--light .lede { color: var(--on-light-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-body); font-size: 15px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.btn .arrow {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn .arrow svg { width: 13px; height: 13px; }
.btn:hover .arrow { transform: rotate(45deg); }
.btn:active { transform: scale(.98); }

.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary .arrow { background: var(--ink); color: var(--orange); }
.btn--primary:hover { background: var(--orange-hover); }

.btn--ghost { border-color: rgba(244, 242, 238, .35); color: var(--on-dark); }
.btn--ghost .arrow { background: rgba(244, 242, 238, .12); }
.btn--ghost:hover { border-color: var(--on-dark); background: rgba(244, 242, 238, .06); }

.btn--navy { background: var(--navy); color: var(--on-dark); }
.btn--navy .arrow { background: var(--orange); color: var(--ink); }
.btn--navy:hover { background: var(--navy-deep); }

/* Text link with sliding underline */
.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--orange);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 4px;
  transition: background-size var(--dur-base) var(--ease-out);
}
.link:hover { background-size: 100% 1px; }
.link svg { width: 12px; height: 12px; }
.section--light .link { color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 16px 0 auto; z-index: 100;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav-bar {
  pointer-events: auto;
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  height: 76px; padding: 0 12px 0 12px;
  border: 1px solid var(--line-dark); border-radius: 999px;
  background: rgba(13, 17, 29, .42);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color var(--dur-base) var(--ease-out),
              height var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled .nav-bar { background: rgba(13, 17, 29, .86); height: 66px; }
.brand {
  flex: none; display: block;
  padding: 7px 14px; border-radius: 999px; background: var(--paper);
  box-shadow: var(--depth-1);
}
.brand img { width: 104px; height: auto; transition: width var(--dur-base) var(--ease-out); }
.site-header.is-scrolled .brand img { width: 92px; }

.nav { flex: 1; display: flex; justify-content: center; }
.nav > ul { display: flex; align-items: center; gap: 0; }
.nav a, .nav button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border: 0; border-radius: 999px; background: none;
  white-space: nowrap;
  font: 700 14px/1 var(--font-body); color: var(--on-dark-dim);
  text-decoration: none; cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav a:hover, .nav button:hover, .nav a[aria-current="page"] { color: var(--on-dark); background: rgba(244, 242, 238, .07); }
.nav .caret { width: 10px; height: 10px; transition: transform var(--dur-base) var(--ease-out); }
.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + 12px); left: 50%;
  min-width: 220px; padding: 8px;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: var(--depth-3);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility 0s linear var(--dur-base);
}
.sub::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.sub a { display: flex; width: 100%; border-radius: var(--radius-sm); padding: 11px 14px; }
.has-sub:hover > .sub, .has-sub.is-open > .sub, .has-sub:focus-within > .sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition-delay: 0s;
}
.has-sub:hover .caret, .has-sub.is-open .caret { transform: rotate(180deg); }

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 15px; text-decoration: none; color: var(--on-dark);
  padding: 0 10px;
}
.header-phone svg { width: 16px; height: 16px; color: var(--orange); }
.header-cta .btn { min-height: 52px; }

.menu-toggle {
  display: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: rgba(244, 242, 238, .06);
  color: var(--on-dark); cursor: pointer; place-items: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) linear;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  padding: 112px var(--gutter) 32px;
  background: var(--ink);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.menu-open .drawer { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer > ul > li { border-bottom: 1px solid var(--line-dark); }
.drawer a, .drawer button {
  display: flex; width: 100%; justify-content: space-between; align-items: center;
  padding: 18px 0; border: 0; background: none; color: var(--on-dark);
  font: 800 24px/1.1 var(--font-display); font-stretch: 112%; text-transform: uppercase;
  text-decoration: none; text-align: left; cursor: pointer;
}
.drawer .caret { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-out); }
.drawer .is-open .caret { transform: rotate(180deg); }
.drawer .drawer-sub { display: none; padding: 0 0 14px 4px; }
.drawer .is-open .drawer-sub { display: block; }
.drawer .drawer-sub a { font: 700 17px/1.2 var(--font-body); text-transform: none; padding: 10px 0; color: var(--on-dark-dim); }
.drawer-foot { display: grid; gap: 12px; margin-top: 28px; }
.drawer-foot .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero-stage { position: relative; }
.hero {
  position: sticky; top: var(--hero-top, 0px);
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: clamp(100px, 14vh, 150px) 0 clamp(64px, 9vh, 88px);
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--photo-grade);
}
.hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero-media video.is-ready { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 17, 29, .92) 0%, rgba(13, 17, 29, .7) 38%, rgba(13, 17, 29, .15) 75%),
    linear-gradient(0deg, rgba(13, 17, 29, .95) 0%, rgba(13, 17, 29, 0) 45%),
    linear-gradient(180deg, rgba(13, 17, 29, .6) 0%, rgba(13, 17, 29, 0) 22%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr);
  gap: clamp(32px, 5vw, 80px); align-items: end;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: clamp(12px, 2vh, 22px);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255, 115, 24, .22); }
.hero h1 { font-size: clamp(34px, min(4.1vw, 8vh), 60px); }
.hero h1 .line { display: block; white-space: nowrap; }
.hero-copy .lede { margin-top: clamp(14px, 2.2vh, 26px); max-width: none; font-size: clamp(15px, 1.1vw, 17px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.4vh, 34px); }
.hero-rule { width: 140px; height: 2px; margin-top: clamp(16px, 2.6vh, 30px); background: linear-gradient(90deg, var(--orange), transparent); }

.video-toggle {
  position: absolute; right: 16px; top: 108px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px;
  background: rgba(13, 17, 29, .5); color: var(--on-dark-dim);
  font: 700 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
}
.video-toggle svg { width: 10px; height: 10px; }
.video-toggle[hidden] { display: none; }

/* Glass card (hero form, contact panels) */
.glass {
  position: relative;
  border: 1px solid rgba(244, 242, 238, .16);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(37, 46, 77, .62), rgba(13, 17, 29, .72));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--depth-4);
}
.form-card { padding: clamp(24px, 2.6vw, 34px); }
.form-card h2, .form-card .h-form {
  font-size: 26px; text-transform: uppercase; margin-bottom: 8px;
}
.form-card .form-intro { color: var(--on-dark-dim); font-size: 15px; margin-bottom: 22px; }
.hero .form-card { padding: clamp(20px, 2.6vh, 28px) 26px; }
.hero .form-card .h-form { font-size: 22px; margin-bottom: 6px; }
.hero .form-card .form-intro { font-size: 14px; line-height: 1.5; margin-bottom: clamp(12px, 1.8vh, 18px); }
.hero .gform_wrapper form { gap: clamp(8px, 1.4vh, 12px); }
.hero .field { gap: 4px; }
.hero .gform_wrapper input[type="text"], .hero .gform_wrapper input[type="tel"] { min-height: 44px; padding: 9px 14px; }
.hero .gform_wrapper input[type="submit"] { min-height: 50px; margin-top: 2px; }

/* ---------- Forms (Gravity Forms field names kept for js/form-handler.js) ---------- */
.gform_wrapper form { display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 6px; }
.field > .label, .field legend {
  font-size: 13px; font-weight: 700; color: var(--on-dark-dim); padding: 0;
}
.field .req { color: var(--orange); font-weight: 700; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.sub-label { font-size: 12px; color: rgba(244, 242, 238, .5); }
.gform_wrapper input[type="text"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="email"],
.gform_wrapper textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid rgba(244, 242, 238, .16); border-radius: var(--radius-sm);
  background: rgba(13, 17, 29, .45); color: var(--on-dark);
  font: 500 16px/1.4 var(--font-body);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.gform_wrapper textarea { min-height: 130px; resize: vertical; }
.gform_wrapper input::placeholder, .gform_wrapper textarea::placeholder { color: rgba(244, 242, 238, .45); }
.gform_wrapper input:focus, .gform_wrapper textarea:focus {
  outline: none; border-color: var(--orange); background: rgba(13, 17, 29, .7);
}
.gform_wrapper input[type="submit"] {
  width: 100%; min-height: 54px; margin-top: 6px;
  border: 0; border-radius: 999px; background: var(--orange); color: var(--ink);
  font: 800 15px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.gform_wrapper input[type="submit"]:hover { background: var(--orange-hover); }
.gform_wrapper input[type="submit"]:active { transform: scale(.98); }
.gform_wrapper input[type="submit"]:disabled { opacity: .7; cursor: wait; }
.gform_confirmation_message { color: var(--on-dark); }
.cmk-form-error { color: #FFB089 !important; }

/* ---------- Content lifts over the sticky hero ---------- */
.over-hero {
  position: relative; z-index: 2;
  margin-top: -40px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -30px 60px rgba(13, 17, 29, .35);
}

/* ---------- Section heads ---------- */
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .lede { justify-self: end; }
.section-head--center { display: block; text-align: center; max-width: 820px; margin-inline: auto; }
.section-head--center .lede { margin: 22px auto 0; }

/* ---------- Photo frames ---------- */
.frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--ink-2);
}
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--photo-grade);
  transition: transform 1.1s var(--ease-out);
}
.frame--vignette::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(13, 17, 29, .45));
}
.frame .parallax-img { position: absolute; inset: -7% 0 auto; width: 100%; height: 114%; will-change: transform; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 520px; padding: 28px;
  border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  color: var(--on-dark); text-decoration: none;
  box-shadow: var(--depth-2);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.svc-card img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  filter: var(--photo-grade);
  transition: transform 1.1s var(--ease-out);
}
.svc-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(13, 17, 29, .95) 0%, rgba(13, 17, 29, .55) 42%, rgba(13, 17, 29, .05) 75%);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--depth-3); }
.svc-card:hover img { transform: scale(1.06); }
.svc-num {
  position: absolute; top: 22px; left: 22px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(13, 17, 29, .62); border: 1px solid rgba(244, 242, 238, .18);
  font: 800 13px/1 var(--font-display); letter-spacing: .14em; color: var(--orange);
}
.svc-card h3 { font-size: clamp(28px, 2.6vw, 38px); text-transform: uppercase; }
.svc-card p { margin-top: 12px; color: var(--on-dark-dim); font-size: 16px; }
.svc-card .card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-dark);
  font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
}
.round-arrow {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.round-arrow svg { width: 14px; height: 14px; }
.svc-card:hover .round-arrow { background: var(--orange); transform: rotate(45deg); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.collage { position: relative; aspect-ratio: 1 / 1.02; }
.collage .frame { position: absolute; box-shadow: var(--depth-4); }
.collage .frame:nth-child(1) { inset: 0 18% 22% 0; }
.collage .frame:nth-child(2) { inset: 40% 0 0 30%; border: 6px solid var(--ink); }
.collage .badge {
  position: absolute; left: 6%; bottom: 6%; z-index: 2;
  display: grid; place-items: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--orange);
  box-shadow: var(--depth-3);
}
.collage .badge img { width: 92px; height: auto; }
.about-copy .lede + .lede { margin-top: 18px; }
.about-copy .btn { margin-top: 34px; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tilt-wrap { perspective: 900px; }
.review-card {
  height: 100%; margin: 0;
  display: flex; flex-direction: column; gap: 20px;
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: linear-gradient(170deg, rgba(37, 46, 77, .55), rgba(19, 24, 41, .9));
  box-shadow: var(--depth-2);
}
.stars { display: flex; gap: 3px; color: var(--orange); }
.stars svg { width: 16px; height: 16px; }
.review-card blockquote { margin: 0; flex: 1; font-size: 17px; line-height: 1.6; color: var(--on-dark); }
.review-by { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.avatar {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); border: 1px solid rgba(255, 115, 24, .5);
  font: 800 15px/1 var(--font-display); color: var(--orange);
}
.review-by strong { font-size: 15px; }
.quote-mark { font: 800 64px/0.6 var(--font-display); color: var(--orange); opacity: .9; height: 26px; }
.reviews-foot { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- Gallery rail ---------- */
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.gallery-head .lede { margin-top: 20px; }
.rail-controls { display: flex; gap: 10px; flex: none; }
.rail-btn {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(244, 242, 238, .25); background: transparent; color: var(--on-dark);
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.rail-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.rail-btn svg { width: 16px; height: 16px; }
.rail {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 var(--gutter) 8px;
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail-item {
  flex: none; height: clamp(320px, 38vw, 500px);
  scroll-snap-align: start;
  border: 0; padding: 0; background: none; cursor: zoom-in;
}
.rail-item .frame { height: 100%; }
.rail-item img { width: auto; height: 100%; max-width: none; }
.rail-item:hover img { transform: scale(1.04); }
.rail-progress { height: 2px; margin-top: 28px; background: var(--line-dark); border-radius: 2px; overflow: hidden; }
.rail-progress span { display: block; height: 100%; width: 0; background: var(--orange); transform-origin: left; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 70px 76px;
  background: rgba(8, 10, 18, .94);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); box-shadow: var(--depth-4); }
.lb-btn {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(244, 242, 238, .25); background: rgba(13, 17, 29, .6); color: var(--on-dark);
  cursor: pointer;
}
.lb-btn:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.lb-btn svg { width: 16px; height: 16px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 13px; letter-spacing: .14em; color: var(--on-dark-dim); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 80px);
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 60%, var(--ink-2) 100%);
  border: 1px solid var(--line-dark);
  display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center;
  --mx: 70%; --my: 30%;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 115, 24, .2), transparent 65%);
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; z-index: -1;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(255, 115, 24, .25);
  box-shadow: 0 0 0 60px rgba(255, 115, 24, .04), 0 0 0 120px rgba(255, 115, 24, .03);
}
.cta-band .lede { margin-top: 18px; }

/* ---------- Excavating split ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.split--flip { grid-template-columns: 1.1fr .9fr; }
.split .frame.tall { aspect-ratio: 3 / 4; position: sticky; top: 120px; }
.num-list { margin-top: 36px; border-top: 1px solid var(--line-light); }
.num-list li {
  display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line-light);
  transition: padding-left var(--dur-base) var(--ease-out);
}
.num-list .n { font: 800 34px/1 var(--font-display); font-stretch: 112%; color: transparent; -webkit-text-stroke: 1px var(--navy); }
.num-list .t { font: 800 clamp(18px, 1.6vw, 22px)/1.2 var(--font-display); font-stretch: 112%; text-transform: uppercase; }
.num-list .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform var(--dur-base) var(--ease-out); }
.num-list li:hover .dot { transform: scale(1); }
.split .btn { margin-top: 36px; }

/* ---------- Septic ---------- */
.septic-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.septic-top .frame { aspect-ratio: 3 / 2; }
.septic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.septic-grid--2 { grid-template-columns: repeat(2, 1fr); }
.septic-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line-dark);
  background: var(--ink-2); box-shadow: var(--depth-2);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.septic-card:hover { transform: translateY(-6px); box-shadow: var(--depth-3); border-color: rgba(255, 115, 24, .4); }
.septic-card .frame { aspect-ratio: 4 / 3; border-radius: 0; }
.septic-card:hover .frame img { transform: scale(1.05); }
.septic-card .body { padding: 26px; }
.septic-card h3 { font-size: 22px; text-transform: uppercase; }
.septic-card p { margin-top: 10px; color: var(--on-dark-dim); font-size: 16px; }

/* ---------- Why choose ---------- */
.why { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); box-shadow: var(--depth-3); }
.why .frame { border-radius: 0; min-height: 460px; height: 100%; }
.why-copy { padding: clamp(32px, 5vw, 72px); align-self: center; color: var(--on-dark); }
.why-copy .lede { color: var(--on-dark-dim); margin-top: 22px; }
.why-copy .btn { margin-top: 34px; }
.why-copy .index { color: var(--orange); }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
}
.contact-bg { position: absolute; inset: 0; z-index: -2; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-grade) blur(2px); transform: scale(1.04); }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 17, 29, .96) 0%, rgba(13, 17, 29, .86) 50%, rgba(13, 17, 29, .96) 100%);
}
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-info { display: grid; gap: 16px; margin-top: 36px; }
.info-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start;
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--line-dark);
  background: rgba(19, 24, 41, .7);
}
.info-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 115, 24, .12); color: var(--orange); }
.info-icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 17px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 8px; }
.info-card a { text-decoration: none; }
.info-card a:hover { color: var(--orange); }
.info-card .big { font: 800 24px/1.2 var(--font-display); font-stretch: 112%; }
.info-card p, .info-card li { color: var(--on-dark-dim); }

/* ---------- Footer ---------- */
.site-footer { background: #090C15; border-top: 1px solid var(--line-dark); padding: clamp(48px, 6vw, 72px) 0 0; }

.footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  padding: clamp(28px, 3.4vw, 42px) clamp(26px, 3.4vw, 48px);
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 62%, var(--ink-2) 100%);
}
.footer-cta h2 { font-size: clamp(24px, 2.6vw, 36px); text-transform: uppercase; }
.footer-cta p { margin-top: 8px; color: var(--on-dark-dim); }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1.15fr .85fr .9fr; gap: clamp(28px, 3.4vw, 56px);
  padding: clamp(48px, 6vw, 76px) 0 clamp(36px, 4vw, 52px);
}
.footer-brand .logo-chip { display: inline-block; padding: 12px 20px; margin-bottom: 24px; border-radius: var(--radius); background: var(--paper); }
.footer-brand .logo-chip img { width: 150px; }
.footer-brand p { color: var(--on-dark-dim); max-width: 42ch; font-size: 16px; }

.footer-contact { display: grid; gap: 14px; margin-top: 26px; }
.footer-contact li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; color: var(--on-dark-dim); font-size: 16px; }
.footer-contact .fi { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 115, 24, .12); color: var(--orange); }
.footer-contact .fi svg { width: 17px; height: 17px; }
.footer-contact a { color: var(--on-dark); text-decoration: none; font-weight: 700; transition: color var(--dur-fast) var(--ease-out); }
.footer-contact a:hover { color: var(--orange); }

.footer-col h3 {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 18px; font-stretch: 100%; text-wrap: balance;
}
.footer-col h3.mt { margin-top: 32px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a {
  color: var(--on-dark-dim); text-decoration: none; font-size: 15px; line-height: 1.5;
  display: inline-flex; align-items: baseline; gap: 9px;
  transition: color var(--dur-fast) var(--ease-out);
}
/* The sliding dash applies to text links only; the social icons live in this column too. */
.footer-col li a::before {
  content: ""; flex: none; width: 0; height: 1px; background: var(--orange);
  transition: width var(--dur-base) var(--ease-out);
}
.footer-col a:hover { color: var(--on-dark); }
.footer-col li a:hover::before { width: 14px; }

.footer-social { display: flex; gap: 10px; margin-top: 28px; }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-size: 0; line-height: 0;
  border: 1px solid var(--line-dark); color: var(--on-dark);
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.footer-social a:hover { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 24px 0 28px; border-top: 1px solid var(--line-dark);
  font-size: 14px; color: var(--on-dark-dim);
}
.footer-bar a { color: var(--on-dark); }


/* ---------- Inner page hero ---------- */
.page-hero {
  position: sticky; top: 0;
  min-height: clamp(460px, 72vh, 700px);
  display: flex; align-items: flex-end;
  padding: clamp(120px, 16vh, 170px) 0 clamp(80px, 11vh, 120px);
  overflow: hidden; isolation: isolate;
}
.page-hero .hero-media img { animation: slow-push 18s var(--ease-out) both; }
@keyframes slow-push { from { transform: scale(1.12); } to { transform: scale(1); } }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 17, 29, .9) 0%, rgba(13, 17, 29, .62) 45%, rgba(13, 17, 29, .25) 100%),
    linear-gradient(0deg, rgba(13, 17, 29, .9) 0%, rgba(13, 17, 29, 0) 55%);
}
.page-hero h1 { font-size: clamp(36px, min(5.2vw, 9vh), 76px); text-transform: uppercase; max-width: 15ch; }
.page-hero .lede { margin-top: 24px; max-width: 64ch; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.rating-pill {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: 999px;
}
.rating-pill .stars svg { width: 20px; height: 20px; }
.g-mark { width: 28px; height: 28px; flex: none; }

/* ---------- About: journey ---------- */
.journey { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.journey-head { position: sticky; top: 130px; }
.journey-head .btn { margin-top: 32px; }
.journey-body .lede + .lede { margin-top: 22px; }
.journey-body .lede:first-child { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; color: var(--on-light); }
.journey-band { margin-top: clamp(48px, 6vw, 80px); aspect-ratio: 21 / 8; }

/* ---------- About: mission pull quote ---------- */
.pull-quote {
  position: relative; margin: 34px 0 0; padding: 28px 0 0 34px;
  border-left: 2px solid var(--orange);
  font: 700 clamp(20px, 1.8vw, 26px)/1.4 var(--font-display); font-stretch: 105%;
  color: var(--on-dark);
}
.pull-quote::before {
  content: "\201C"; position: absolute; top: -18px; left: 22px;
  font: 800 90px/1 var(--font-display); color: var(--orange); opacity: .35;
}

/* ---------- About: team mosaic ---------- */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / .95; }
.mosaic .frame { box-shadow: var(--depth-3); }
.mosaic .frame:first-child { grid-row: 1 / 3; }
.team-copy .lede + .lede { margin-top: 18px; }
.team-copy .btn { margin-top: 34px; }

/* ---------- Reviews page wall ---------- */
.review-wall { columns: 3 320px; column-gap: 18px; }
.review-wall .tilt-wrap { break-inside: avoid; margin-bottom: 18px; }
.review-wall .review-card { height: auto; }
.review-wall .review-card.is-featured blockquote { font-size: clamp(18px, 1.5vw, 21px); }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-top .g-mark { width: 22px; height: 22px; }

/* ---------- Contact page ---------- */
.contact-page { padding-top: clamp(64px, 8vw, 110px); }
.map-card {
  position: relative; overflow: hidden; margin-top: 16px;
  border-radius: var(--radius); border: 1px solid var(--line-dark);
  aspect-ratio: 16 / 10; background: var(--ink-2);
}
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
.map-section .map-card { margin-top: 0; aspect-ratio: 21 / 9; box-shadow: var(--depth-3); }
@media (max-width: 760px) { .map-section .map-card { aspect-ratio: 4 / 3; } }

.call-big {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 30px;
  font: 800 clamp(26px, 3vw, 40px)/1 var(--font-display); font-stretch: 112%;
  color: var(--on-dark); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.call-big:hover { color: var(--orange); }
.call-big .info-icon { width: 56px; height: 56px; border-radius: 50%; }

/* ---------- 404 ---------- */
.err-hero { min-height: 100vh; min-height: 100svh; }
.err-hero .wrap { position: relative; }
.err-num {
  position: absolute; right: var(--gutter); bottom: -10px; z-index: -1;
  width: min(56vw, 720px); pointer-events: none;
}
.err-num text { font-family: var(--font-display); font-weight: 800; font-stretch: 125%; fill: none; stroke: rgba(255, 115, 24, .35); stroke-width: 1.2; }
.err-hero .hero-actions { margin-top: 36px; }

/* ---------- Service page hero: split stage over survey contours ---------- */
.svc-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(116px, 15vh, 170px) 0 clamp(56px, 8vh, 96px);
  background:
    radial-gradient(900px 600px at 78% 40%, rgba(37, 46, 77, .75), transparent 70%),
    radial-gradient(600px 400px at 10% 100%, rgba(255, 115, 24, .08), transparent 70%),
    var(--ink);
}
.contours { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.contours path {
  fill: none; stroke: rgba(255, 115, 24, .16); stroke-width: 1;
  stroke-dasharray: 2600; stroke-dashoffset: 2600;
  animation: contour-draw 3.2s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0) * 120ms);
}
.contours path:nth-child(3n) { stroke: rgba(244, 242, 238, .07); }
@keyframes contour-draw { to { stroke-dashoffset: 0; } }

.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.svc-hero h1 { font-size: clamp(30px, min(3.9vw, 7.4vh), 56px); text-transform: uppercase; }
/* Clip vertically only, so the reveal mask never trims the end of a long line */
.svc-hero h1 .line { display: block; overflow: visible clip; padding-bottom: .04em; }
.svc-hero h1 .line > span { display: block; white-space: nowrap; animation: line-up 1s var(--ease-out) both; animation-delay: calc(80ms + var(--i, 0) * 110ms); }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
.svc-hero .sub-h { margin-top: clamp(14px, 2.2vh, 22px); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; color: var(--on-dark); max-width: 30ch; font-stretch: 105%; }
.svc-hero .lede { margin-top: 18px; max-width: 58ch; }
.svc-hero .hero-actions { margin-top: clamp(20px, 3.4vh, 32px); }
.coords {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: clamp(14px, 2.6vh, 26px);
  font: 700 12px/1 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-dark-dim);
}
.coords::before { content: ""; width: 26px; height: 1px; background: var(--orange); }

/* Photo stack: main frame wipes up, second frame slides in, logo badge pops */
.stack { position: relative; aspect-ratio: 1 / 1.08; max-width: 560px; margin-left: auto; width: 100%; }
.stack-main, .stack-sec { position: absolute; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--depth-4); }
.stack-main { inset: 0 0 0 16%; animation: wipe-up 1.2s var(--ease-in-out) .15s both; }
.stack-sec { left: 0; bottom: 8%; width: 46%; aspect-ratio: 4 / 3; border: 6px solid var(--ink); border-radius: var(--radius); animation: slide-in 1s var(--ease-out) .75s both; }
.stack img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-grade); }
.stack-main img { animation: settle 1.8s var(--ease-out) .15s both; }
.stack-main::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 50%, rgba(13, 17, 29, .55));
}
@keyframes wipe-up { from { clip-path: inset(100% 0 0 0 round 32px); } to { clip-path: inset(0 0 0 0 round 32px); } }
@keyframes settle { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes slide-in { from { opacity: 0; transform: translate(-30px, 20px); } to { opacity: 1; transform: none; } }
.stack-badge {
  position: absolute; right: -18px; top: 9%; z-index: 2;
  display: grid; place-items: center; width: 124px; height: 124px; border-radius: 50%;
  background: var(--orange); box-shadow: var(--depth-3);
  animation: pop-in .8s var(--ease-spring) 1.1s both;
}
.stack .stack-badge img { width: 84px; height: auto; object-fit: contain; filter: none; }
.stack-badge svg { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); animation: spin 22s linear infinite; }
.stack-badge circle { fill: none; stroke: rgba(255, 115, 24, .55); stroke-width: 1.2; stroke-dasharray: 3 7; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.stack .layer { transition: translate .6s var(--ease-out); }

/* Scroll-driven marquee: moves with scroll position, never on its own */
.marquee {
  position: relative; overflow: hidden; padding: 26px 0;
  background: var(--orange); color: var(--ink);
}
.marquee-track { display: flex; gap: 36px; width: max-content; will-change: transform; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 36px; white-space: nowrap;
  font: 800 clamp(22px, 2.6vw, 38px)/1 var(--font-display); font-stretch: 118%; text-transform: uppercase;
}
.marquee-track span::after { content: ""; width: 14px; height: 14px; background: var(--ink); transform: rotate(45deg); }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }

/* Anchor-linked service rows */
.link-rows { margin-top: 8px; border-top: 1px solid var(--line-light); }
.link-rows a {
  display: grid; grid-template-columns: 64px 1fr 44px; align-items: center; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line-light);
  text-decoration: none; color: var(--on-light);
  transition: padding-left var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.link-rows .n { font: 800 30px/1 var(--font-display); font-stretch: 112%; color: transparent; -webkit-text-stroke: 1px var(--navy); }
.link-rows .t { font: 800 clamp(18px, 1.7vw, 24px)/1.2 var(--font-display); font-stretch: 112%; text-transform: uppercase; }
.link-rows .round-arrow { background: var(--navy); color: var(--paper); width: 40px; height: 40px; }
.link-rows a:hover { padding-left: 12px; color: var(--navy); }
.link-rows a:hover .round-arrow { background: var(--orange); color: var(--ink); transform: rotate(45deg); }

.svc-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.svc-intro .btn { margin-top: 34px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-grid .frame { aspect-ratio: 4 / 3; }
.photo-grid .frame:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.photo-grid--quad .frame:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
.photo-grid--even .frame, .photo-grid--even .frame:first-child { grid-column: auto; aspect-ratio: auto; height: clamp(220px, 24vw, 340px); }

/* Alternating feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 8vw, 120px); }
.feature--flip .feature-media { order: 2; }
.feature-media { aspect-ratio: 5 / 4; }
.feature .lede { margin-top: 22px; }
.feature .btn { margin-top: 32px; }

/* Check list */
.check-list { display: grid; gap: 14px; margin-top: 26px; }
.check-list li { position: relative; padding-left: 40px; color: var(--on-dark-dim); }
.section--light .check-list li { color: var(--on-light-dim); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 115, 24, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5' fill='none' stroke='%23FF7318' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.check-list strong { color: var(--on-dark); }
.section--light .check-list strong { color: var(--on-light); }

/* Media cards with a wide image strip */
.media-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.media-trio .septic-card .frame { aspect-ratio: 20 / 9; }
.media-trio--2 { grid-template-columns: repeat(2, 1fr); }
.section--light .septic-card { background: #fff; border-color: var(--line-light); }
.section--light .septic-card p { color: var(--on-light-dim); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; padding: 30px 28px; border-radius: var(--radius);
  border: 1px solid var(--line-dark); background: linear-gradient(170deg, rgba(37, 46, 77, .5), rgba(19, 24, 41, .9));
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.step:hover { transform: translateY(-4px); border-color: rgba(255, 115, 24, .45); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 22px;
  font: 800 44px/1 var(--font-display); font-stretch: 112%; color: transparent; -webkit-text-stroke: 1px var(--orange);
}
.step h3 { font-size: 20px; text-transform: uppercase; }
.step p { margin-top: 10px; color: var(--on-dark-dim); font-size: 16px; }
.step-bar { position: relative; height: 2px; margin: 0 0 34px; background: var(--line-dark); border-radius: 2px; overflow: hidden; }
.step-bar span { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* FAQ accordion (native details/summary, works without JS) */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-wrap .faq-head { position: sticky; top: 130px; }
.faq { border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font: 800 clamp(17px, 1.4vw, 20px)/1.35 var(--font-display); font-stretch: 105%; color: var(--on-light);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: none; position: relative; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--paper);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus { background: var(--orange); transform: rotate(180deg); }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: var(--ink); }
.faq .answer { padding: 0 60px 26px 0; color: var(--on-light-dim); }
.faq .answer a { color: var(--navy); font-weight: 800; }
.faq details[open] .answer { animation: faq-open var(--dur-base) var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Areas We Serve (service pages) ---------- */
.areas { background: var(--navy-deep); border-top: 1px solid var(--line-dark); padding: clamp(56px, 7vw, 96px) 0; }
.areas-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.areas .lede { color: var(--on-dark); font-size: clamp(18px, 1.5vw, 21px); line-height: 2; max-width: none; }
.areas .lede a {
  display: inline-block; padding: 2px 14px; margin: 2px 0; border-radius: 999px;
  border: 1px solid rgba(255, 115, 24, .45); color: var(--orange); font-weight: 800; text-decoration: none; line-height: 1.6;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.areas .lede a:hover { background: var(--orange); color: var(--ink); }

/* ---------- City page hero: live service-area map + docked booking bar ---------- */
.city-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(118px, 15vh, 160px) 0 clamp(110px, 14vh, 150px);
  background:
    radial-gradient(800px 520px at 75% 35%, rgba(255, 115, 24, .10), transparent 65%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--ink) 100%);
}
.city-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(244, 242, 238, .09) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.city-hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.city-hero h1 { font-size: clamp(30px, min(4vw, 7.4vh), 60px); font-stretch: 100%; text-transform: uppercase; }
.city-hero h1 .line { display: block; white-space: nowrap; }
.city-hero .lede { margin-top: clamp(14px, 2.4vh, 24px); max-width: 54ch; }
.city-hero .hero-actions { margin-top: clamp(20px, 3.4vh, 32px); }

/* The map card */
.map-wrap { perspective: 1100px; }
.svc-map {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(244, 242, 238, .14);
  background:
    radial-gradient(circle at 50% 50%, rgba(37, 46, 77, .55), rgba(13, 17, 29, .9) 70%),
    var(--ink-2);
  box-shadow: var(--depth-4);
  aspect-ratio: 6 / 5;
}
.svc-map::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 242, 238, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 242, 238, .05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.svc-map svg { position: relative; display: block; width: 100%; height: 100%; }
.svc-map .ring { fill: none; stroke: rgba(255, 115, 24, .28); stroke-width: 1; stroke-dasharray: 3 6; transform-box: fill-box; transform-origin: center; animation: ring-in 1.4s var(--ease-out) both; animation-delay: calc(200ms + var(--i, 0) * 160ms); }
@keyframes ring-in { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.svc-map .route { fill: none; stroke: rgba(255, 115, 24, .55); stroke-width: 1.4; stroke-dasharray: 600; stroke-dashoffset: 600; animation: route-draw 1.6s var(--ease-out) forwards; animation-delay: calc(700ms + var(--i, 0) * 120ms); }
@keyframes route-draw { to { stroke-dashoffset: 0; } }
.svc-map .town { opacity: 0; animation: town-in .6s var(--ease-out) forwards; animation-delay: calc(900ms + var(--i, 0) * 120ms); }
@keyframes town-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.svc-map .town circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2; transition: fill var(--dur-fast) var(--ease-out); }
.svc-map .town text { fill: var(--on-dark); font: 700 15px var(--font-body); paint-order: stroke; stroke: var(--ink-2); stroke-width: 5px; stroke-linejoin: round; }
.svc-map a.town:hover circle, .svc-map a.town:focus-visible circle { fill: var(--orange); }
.svc-map a.town:hover text, .svc-map a.town:focus-visible text { fill: var(--orange); }
.svc-map a.town { cursor: pointer; }
.svc-map .here circle.core { fill: var(--orange); stroke: var(--paper); stroke-width: 3; }
.svc-map .here circle.pulse { fill: none; stroke: var(--orange); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease-out) infinite; }
.svc-map .here text { fill: var(--orange); font: 800 20px var(--font-display); font-stretch: 112%; letter-spacing: .02em; text-transform: uppercase; }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.map-legend {
  position: absolute; left: 18px; bottom: 16px; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; background: rgba(13, 17, 29, .78); border: 1px solid var(--line-dark);
  font: 700 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-dim);
}
.map-legend::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 115, 24, .25); }

/* Docked booking bar (the hero callback form, laid out horizontally) */
/* Sits at the top of the next section and pulls up across the hero's bottom edge */
.book-bar { position: relative; z-index: 2; margin: calc(-1 * var(--section-y) - 72px) 0 clamp(56px, 7vw, 96px); }
.book-bar { color: var(--on-dark); }
.book-bar .glass {
  padding: 24px 28px 26px; border-radius: var(--radius-lg); display: grid; gap: 18px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 55%, var(--ink-2) 100%);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.book-bar .bar-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.book-bar h2 { font-size: 20px; text-transform: uppercase; color: var(--on-dark); }
.book-bar .form-intro { margin: 0; font-size: 15px; color: var(--on-dark-dim); }
.book-bar form { display: grid !important; grid-template-columns: 1fr 1fr 1.15fr 1.6fr auto; gap: 10px; align-items: start; }
.book-bar fieldset.field { display: contents; }
.book-bar fieldset.field > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.book-bar .field-row { display: contents; }
.book-bar .field > .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.book-bar .sub-label { display: none; }
.book-bar input[type="text"], .book-bar input[type="tel"] { min-height: 52px; }
.book-bar input[type="submit"] { margin-top: 0 !important; min-height: 52px !important; padding: 0 26px; white-space: nowrap; }

/* City body bits */
.svc-list { display: grid; gap: 14px; }
.svc-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center;
  padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-light);
  box-shadow: var(--depth-1); text-decoration: none; color: var(--on-light);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.svc-row:hover { transform: translateX(6px); box-shadow: var(--depth-2); }
.svc-row .ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--navy); color: var(--orange); font: 800 18px var(--font-display); }
.svc-row h3 { font-size: 20px; text-transform: uppercase; }
.svc-row p { margin-top: 6px; color: var(--on-light-dim); font-size: 16px; }
.svc-row .more { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.svc-row:hover .more { color: var(--orange); }
.svc-row .more svg { width: 12px; height: 12px; }

.local-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(36px, 5vw, 56px); }
.local-card {
  padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-light); box-shadow: var(--depth-1);
}
.local-card .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 115, 24, .12); color: var(--orange); margin-bottom: 20px; }
.local-card .ico svg { width: 22px; height: 22px; }
.local-card h3 { font-size: 19px; text-transform: uppercase; line-height: 1.2; }
.local-card p { margin-top: 12px; color: var(--on-light-dim); font-size: 16px; }
.local-card a { color: var(--navy); font-weight: 800; }

.fig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fig-grid figure { margin: 0; }
.fig-grid .frame { aspect-ratio: 4 / 3; }
.fig-grid figcaption { margin-top: 12px; font-size: 15px; color: var(--on-dark-dim); display: flex; gap: 10px; }
.fig-grid figcaption::before { content: ""; flex: none; width: 18px; height: 1px; margin-top: .8em; background: var(--orange); }

.nearby { margin-top: 30px; color: var(--on-light-dim); line-height: 2.1; }
.nearby a {
  display: inline-block; padding: 2px 14px; border-radius: 999px; margin: 2px 0;
  border: 1px solid var(--line-light); color: var(--navy); font-weight: 800; text-decoration: none; line-height: 1.6;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nearby a:hover { background: var(--navy); color: var(--paper); }

@media (max-width: 980px) {
  .city-hero-grid { grid-template-columns: 1fr; }
  .map-wrap { max-width: 560px; }
  .book-bar { margin-top: calc(-1 * var(--section-y) - 56px); }
  .book-bar form { grid-template-columns: 1fr 1fr; }
  .book-bar input[type="submit"] { grid-column: 1 / -1; }
  .local-grid, .fig-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .book-bar form { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 48px 1fr; }
  .svc-row .ico { width: 48px; height: 48px; }
  .svc-row .more { grid-column: 2; }
  .city-hero h1 { font-size: calc((100vw - 2 * var(--gutter)) / 11.4); }
}
@media (prefers-reduced-motion: reduce) {
  .svc-map .town { opacity: 1 !important; }
  .svc-map .route { stroke-dashoffset: 0 !important; }
  .svc-map .here circle.pulse { display: none; }
}

/* ---------- Mobile sticky call bar ---------- */
.call-bar { display: none; }

/* ---------- Scroll reveals: visible by default, hidden only once JS confirms motion ---------- */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js-reveal .reveal--img { transform: translateY(26px) scale(.97); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* Hero entrance: runs once on load, never hides content without JS */
.js-reveal .hero-in { opacity: 0; transform: translateY(18px); animation: hero-in var(--dur-slow) var(--ease-out) forwards; animation-delay: calc(120ms + var(--i, 0) * 110ms); }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* Tilt cards: pointer devices only */
@media (hover: hover) and (pointer: fine) {
  .tilt-card { transform-style: preserve-3d; transition: transform var(--dur-base) var(--ease-out); will-change: transform; }
  .tilt-card.is-tilting { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  /* Four link columns get cramped before the brand block stacks. */
  .footer-grid { grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); gap: 30px 26px; }
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header-cta .btn { display: none; }
  .nav-bar { justify-content: space-between; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .page-hero { position: relative; }
  .areas-grid { grid-template-columns: 1fr; }
  .svc-hero-grid, .svc-intro, .feature, .faq-wrap { grid-template-columns: 1fr; }
  .feature--flip .feature-media { order: 0; }
  .faq-wrap .faq-head { position: static; }
  .stack { max-width: 520px; margin: 12px auto 0; }
  .media-trio, .steps { grid-template-columns: 1fr; }
  .photo-grid--even { grid-template-columns: 1fr !important; }
  .contact-page .form-card { order: -1; }
  .err-num { width: 90vw; right: 0; bottom: auto; top: -30%; opacity: .6; }
  .page-hero-grid, .journey, .team-grid { grid-template-columns: 1fr; }
  .journey-head { position: static; }
  .journey-band { aspect-ratio: 16 / 9; }
  .hero { position: relative; top: auto; min-height: auto; padding: 130px 0 64px; }
  .hero-grid, .about-grid, .split, .split--flip, .septic-top, .contact-grid, .why { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .lede { justify-self: start; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { min-height: 420px; }
  .split .frame.tall { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .septic-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
  .collage { max-width: 560px; }
  .why .frame { min-height: 320px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(13, 17, 29, .96) 0%, rgba(13, 17, 29, .72) 55%, rgba(13, 17, 29, .55) 100%);
  }
  .brand { padding: 6px 12px; }
  .site-header { inset: 10px 0 auto; padding: 0 10px; }
  .nav-bar { height: 64px; padding: 0 6px 0 16px; }
  .site-header.is-scrolled .nav-bar { height: 60px; }
  .brand img, .site-header.is-scrolled .brand img { width: 84px; }
  .header-phone { display: none; }
  .menu-toggle { width: 48px; height: 48px; }
  .hero { padding: 108px 0 56px; }
  .hero h1 { font-size: calc((100vw - 2 * var(--gutter)) / 10.9); font-stretch: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .field-row { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery-head { flex-direction: column; align-items: start; }
  .rail-item { height: 300px; }
  .num-list li { grid-template-columns: 52px 1fr; }
  .num-list .dot { display: none; }
  .num-list .n { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .site-footer { padding-bottom: 8px; }
  .footer-cta-actions { width: 100%; }
  .footer-cta-actions .btn { flex: 1 1 100%; }
  .collage .badge { width: 96px; height: 96px; }
  .collage .badge img { width: 70px; }
  .lightbox { padding: 64px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
  .js-reveal .reveal { transform: translateY(16px); transition-delay: calc(var(--i, 0) * 60ms); }
  .call-bar {
    position: fixed; inset: auto 0 0; z-index: 95;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: rgba(9, 12, 21, .96); border-top: 1px solid var(--line-dark);
  }
  .call-bar .btn { min-height: 50px; padding: 0 12px; font-size: 14px; }
}

/* ---------- Reduced motion: remove motion, never hide content ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hero-in { opacity: 1 !important; transform: none !important; }
  .parallax-img { transform: none !important; }
  .tilt-card { transform: none !important; }
  .hero-media video { display: none !important; }
  .page-hero .hero-media img { animation: none !important; }
  .contours path { stroke-dashoffset: 0 !important; }
  .stack-main { clip-path: none !important; }
  .stack-badge svg { animation: none !important; }
  .marquee-track { transform: none !important; }
}
