/* ============================================================
   AC Pavement Solutions — clean, modern, New England styling
   ============================================================ */

:root {
  --bg:        #0a1220;   /* deep navy page background */
  --deep:      #060d18;   /* darkest navy — footer / ink sections */
  --panel:     #111d30;   /* card / surface navy */
  --panel-2:   #16243a;   /* slightly raised surface */
  --ink:       #eaf1f8;   /* near-white text */
  --ink-soft:  #9fb2c6;   /* muted body text */
  --blue:      #2eaff0;   /* logo sky-blue (brightened for dark) */
  --blue-deep: #57b9ef;   /* light-blue accent text on dark */
  --blue-tint: rgba(46, 175, 240, 0.14); /* translucent blue fill */
  --line:      rgba(255, 255, 255, 0.10); /* subtle border on dark */
  --soft:      #0d1727;   /* alternate section bg */
  --shadow:    0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 12px 30px -16px rgba(0, 0, 0, 0.55);
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1180px;
}

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

html { scroll-behavior: smooth; }

/* ---------- Scroll progress bar ---------- */
.scrollbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}
.scrollbar__fill {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, #0c6fa3 0%, #2eaff0 50%, #7fd6ff 100%);
  box-shadow: 0 0 12px rgba(46, 175, 240, 0.7);
  will-change: transform;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--blue); }

/* ---------- Buttons — clean & modern ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--panel-2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition:
    transform 0.28s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

/* primary: solid refined blue with a soft colored lift */
.btn--primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #1f9ad6 0%, #1378b0 100%);
  box-shadow:
    0 1px 1px rgba(255,255,255,0.25) inset,
    0 8px 20px -8px rgba(15,111,168,0.55);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #28a6e4 0%, #1583be 100%);
  transform: translateY(-2px);
  box-shadow:
    0 1px 1px rgba(255,255,255,0.3) inset,
    0 14px 28px -10px rgba(15,111,168,0.6);
}
.btn--primary:active { transform: translateY(0); }

/* ghost: clean outline that fills softly on hover */
.btn--ghost {
  color: var(--ink);
  background: var(--panel-2);
}
.btn--ghost:hover {
  color: var(--blue-deep);
  border-color: rgba(22,155,220,0.55);
  background: var(--blue-tint);
  transform: translateY(-2px);
}

.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

/* on dark sections, ghost buttons invert to read on the dark bg */
.section--ink .btn--ghost, .footer .btn--ghost {
  color: #fff; background: transparent; border-color: rgba(255,255,255,0.25);
}
.section--ink .btn--ghost:hover, .footer .btn--ghost:hover {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: #fff;
}

/* ---------- Nav — floating glass pill ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 0;
  transition: padding 0.35s ease;
}
.nav .container { transition: max-width 0.35s ease; }
.nav__inner {
  display: flex; align-items: center; gap: 24px;
  height: 74px; padding: 0 14px 0 22px;
  border-radius: 18px;
  background: rgba(14, 25, 41, 0.62);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 12px 34px -12px rgba(0, 0, 0, 0.5);
  transition: height 0.35s ease, box-shadow 0.35s ease,
              background 0.35s ease, border-radius 0.35s ease;
}
.nav.scrolled { padding: 8px 0; }
.nav.scrolled .nav__inner {
  height: 64px;
  background: rgba(11, 20, 34, 0.85);
  border-color: var(--line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 16px 40px -14px rgba(0, 0, 0, 0.6);
}
.nav__brand { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo {
  height: 56px; width: auto;
  transition: height 0.35s ease;
}
.nav.scrolled .nav__logo { height: 48px; }

.nav__links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
  padding: 5px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}
.nav__links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  padding: 9px 15px; border-radius: 9px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav__links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.4);
}

.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__phone {
  display: flex; align-items: center; gap: 10px;
  padding-right: 4px;
  color: var(--ink);
  transition: transform 0.2s ease;
}
.nav__phone:hover { transform: translateY(-1px); }
.nav__phone-ic {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid rgba(22, 155, 220, 0.18);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__phone-ic svg { width: 17px; height: 17px; }
.nav__phone:hover .nav__phone-ic {
  background: var(--blue); color: #fff;
}
.nav__phone-txt { display: flex; flex-direction: column; line-height: 1.15; }
.nav__phone-txt small {
  font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}
.nav__phone-txt strong { font-size: 0.95rem; letter-spacing: 0.01em; font-weight: 700; }

.nav__cta { display: inline-flex; align-items: center; gap: 7px; }
.nav__cta-arrow { width: 17px; height: 17px; transition: transform 0.25s ease; }
.nav__cta:hover .nav__cta-arrow { transform: translateX(3px); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; margin-left: auto;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 90px; overflow: hidden; }
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 520px; height: 520px; top: -160px; right: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(60,185,255,0.22), rgba(60,185,255,0) 70%);
  animation: heroGlow 14s ease-in-out infinite;
}
.hero::after {
  width: 460px; height: 460px; bottom: -200px; left: -140px;
  background: radial-gradient(circle at 50% 50%, rgba(12,111,163,0.16), rgba(12,111,163,0) 70%);
  animation: heroGlow 18s ease-in-out infinite reverse;
}
@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-26px, 22px) scale(1.08); }
}
.hero .container { position: relative; z-index: 1; }

/* hero animated paving backdrop — scrolling lane stripes + asphalt grain */
.hero__fx {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(125% 110% at 72% 26%, #000 34%, transparent 74%);
          mask-image: radial-gradient(125% 110% at 72% 26%, #000 34%, transparent 74%);
}
.fx-lane {
  position: absolute;
  top: -45%; height: 190%;
  transform: rotate(20deg);
  transform-origin: top center;
  will-change: background-position;
  animation: laneScroll 9s linear infinite;
}
/* dash pattern: 24px stripe + 42px gap = 66px period (matches keyframe travel) */
.fx-lane--1 {
  left: -2%;  width: 90px; animation-duration: 8s;
  background-image: repeating-linear-gradient(to bottom,
    rgba(22,155,220,0.16) 0 24px, transparent 24px 66px);
}
.fx-lane--2 {
  left: 26%;  width: 58px; animation-duration: 11s;
  background-image: repeating-linear-gradient(to bottom,
    rgba(12,111,163,0.13) 0 24px, transparent 24px 66px);
}
.fx-lane--3 {
  left: 54%;  width: 72px; animation-duration: 9.5s;
  background-image: repeating-linear-gradient(to bottom,
    rgba(245,200,90,0.11) 0 24px, transparent 24px 66px);
}
.fx-lane--4 {
  left: 82%;  width: 50px; animation-duration: 13s;
  background-image: repeating-linear-gradient(to bottom,
    rgba(22,155,220,0.12) 0 24px, transparent 24px 66px);
}
@keyframes laneScroll {
  from { background-position: 0 0; }
  to   { background-position: 0 66px; }
}
.fx-grain {
  position: absolute; inset: -20%;
  background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1.4px);
  background-size: 7px 7px;
  opacity: 0.5;
  animation: grainDrift 24s linear infinite;
}
@keyframes grainDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(28px, -42px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after,
  .fx-lane, .fx-grain { animation: none; }
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center;
}
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); margin-bottom: 22px; }
.hero h1 em { color: var(--blue); font-style: italic; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero__trust { display: flex; gap: 38px; }
.trust { display: flex; flex-direction: column; }
.trust strong {
  font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1;
}
.trust span { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }

.hero__media { position: relative; }
.hero__photo--main {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero__photo--card {
  position: absolute; bottom: -28px; left: -34px;
  width: 46%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 3px solid var(--bg);
}

/* ---------- Placeholders ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, #131f31, #131f31 14px, #18263b 14px, #18263b 28px);
  border: 1.5px dashed #2c3c52;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #7e8fa0; text-align: center;
}
.ph__label { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em; padding: 12px; }
.ph--dark {
  background:
    repeating-linear-gradient(45deg, #1a2330, #1a2330 14px, #202b3a 14px, #202b3a 28px);
  border-color: #38465a; color: #8294a8;
}
.ph--hero { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.ph--floatcard {
  position: absolute; bottom: -28px; left: -34px; width: 46%; aspect-ratio: 4/3;
  box-shadow: var(--shadow); background-color: var(--panel); border-style: solid; border-color: var(--line);
}

/* ---------- Service strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
.strip__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 30px; padding: 22px 24px;
}
.strip__inner span {
  font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--ink-soft); font-weight: 500;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section--ink { background: var(--deep); color: #e7eef5; }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.section__sub { color: var(--ink-soft); font-size: 1.06rem; }
.section--ink .section__sub { color: #aebccb; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* gradient-border wrapper */
.svc {
  position: relative;
  border-radius: 22px;
  padding: 1.5px;
  background: var(--line);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}
.svc::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(140deg, #1f9ad6, #7fd6ff 38%, rgba(127,214,255,0) 72%);
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.svc:hover { transform: translateY(-8px); }
.svc:hover::before { opacity: 1; }

.svc__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; height: 100%;
  border-radius: 20.5px;
  background: var(--panel);
  padding: 30px 30px 26px;
  overflow: hidden;
  box-shadow: 0 14px 34px -24px rgba(0,0,0,0.6);
  transition: box-shadow 0.4s ease;
}
.svc:hover .svc__inner { box-shadow: 0 30px 60px -30px rgba(15,111,168,0.45); }

/* cursor-following spotlight */
.svc__spot {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(31,154,214,0.13), rgba(31,154,214,0) 65%);
}
.svc:hover .svc__spot { opacity: 1; }

.svc__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.svc__icon {
  width: 56px; height: 56px; flex: none;
  display: grid; place-items: center;
  border-radius: 16px; color: #fff;
  background: linear-gradient(150deg, #28a6e4, #0f6fa8);
  box-shadow: 0 12px 24px -10px rgba(15,111,168,0.6), inset 0 1px 1px rgba(255,255,255,0.35);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}
.svc:hover .svc__icon { transform: scale(1.08) rotate(-5deg); }
.svc__icon svg { width: 28px; height: 28px; }
.svc__num {
  font-family: 'Fraunces', serif; font-size: 2.5rem; font-weight: 600;
  line-height: 1; color: rgba(255,255,255,0.07);
  transition: color 0.4s ease;
}
.svc:hover .svc__num { color: rgba(127,214,255,0.28); }

.svc h3 { font-size: 1.4rem; margin-bottom: 10px; }
.svc p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 20px; }

.svc__more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--blue-deep);
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease, gap 0.25s ease;
}
.svc__more svg { width: 15px; height: 15px; }
.svc:hover .svc__more { opacity: 1; transform: none; }
.svc__more:hover { gap: 10px; }

/* staggered reveal */
.cards .reveal:nth-child(2) { transition-delay: 0.06s; }
.cards .reveal:nth-child(3) { transition-delay: 0.12s; }
.cards .reveal:nth-child(4) { transition-delay: 0.06s; }
.cards .reveal:nth-child(5) { transition-delay: 0.12s; }
.cards .reveal:nth-child(6) { transition-delay: 0.18s; }

/* ---------- Gallery — full-bleed marquee ---------- */
.marquee {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 6px 0 2px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 22px;
  width: max-content;
  will-change: transform;
}
.marquee__row--left  { animation: marquee-l 56s linear infinite; }
.marquee__row--right { animation: marquee-r 70s linear infinite; }
.marquee:hover .marquee__row { animation-play-state: paused; }

@keyframes marquee-l {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-r {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.proj {
  position: relative;
  flex: 0 0 auto;
  width: 320px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #0e1620;
  box-shadow: 0 10px 30px rgba(13, 28, 44, 0.16);
  transform: translateZ(0);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.45s ease;
}
.proj:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 50px rgba(13, 28, 44, 0.28);
}
.proj__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(127, 214, 255, 0.28), transparent 60%),
    linear-gradient(160deg, #1b2a39 0%, #0d1722 70%);
  overflow: hidden;
}
.proj__media::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 9px);
  opacity: 0.6;
}
/* once a real photo is present, drop the placeholder texture */
.proj__media:has(img)::after { display: none; }
.proj__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 0.82rem; letter-spacing: 0.04em;
  color: rgba(214, 232, 248, 0.55);
  text-transform: uppercase;
}
.proj__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.proj:hover .proj__media img { transform: scale(1.06); }

.proj__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 16px 15px;
  background: linear-gradient(0deg, rgba(8, 16, 24, 0.86) 0%, rgba(8, 16, 24, 0) 100%);
  z-index: 2;
}
.proj__tag {
  align-self: flex-start;
  font-family: var(--serif, 'Fraunces', serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.15;
}
.proj__go {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: #0d1722;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-6px) scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.proj__go svg { width: 17px; height: 17px; }
.proj:hover .proj__go { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .marquee__row { animation: none; }
  .marquee {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    margin-left: 0;
    overflow: visible;
    -webkit-mask-image: none; mask-image: none;
  }
  .marquee__row { width: auto; flex-wrap: wrap; justify-content: center; }
  .proj[aria-hidden="true"] { display: none; }
}

/* ---------- Before / After slider ---------- */
.ba-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
}
.ba {
  position: relative; margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0e1620;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  user-select: none;
  touch-action: pan-y;
  container-type: inline-size;
}
.ba__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  pointer-events: none;
}
/* before image sits in a clip layer revealed from the left */
.ba__before {
  position: absolute; inset: 0;
  width: var(--pos, 50%);
  overflow: hidden;
  will-change: width;
}
/* before image stays full-container width so it doesn't squish as the clip narrows */
.ba__before .ba__img { width: 100cqw; max-width: none; }

/* divider line + handle */
.ba__line {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos, 50%);
  width: 3px; margin-left: -1.5px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 14px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 3;
}
.ba__handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: #0d1722;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 6px 18px -4px rgba(0,0,0,0.6);
}
.ba__handle svg { width: 22px; height: 22px; }

/* tags */
.ba__tag {
  position: absolute; top: 14px; z-index: 4;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  color: #fff; backdrop-filter: blur(4px);
  pointer-events: none;
}
.ba__tag--before { left: 14px; background: rgba(13,23,34,0.7); }
.ba__tag--after  { right: 14px; background: linear-gradient(135deg, #1f9ad6, #0c6fa3); }

/* caption bar */
.ba__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 26px 16px 14px;
  font-size: 0.9rem; font-weight: 600; color: #fff;
  background: linear-gradient(0deg, rgba(8,16,24,0.85), rgba(8,16,24,0));
  pointer-events: none;
}

/* the range input is the invisible interaction layer */
.ba__range {
  position: absolute; inset: 0; z-index: 5;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
  touch-action: pan-y;
  pointer-events: none; /* drag handled on .ba via pointer events; range kept for keyboard a11y only */
  -webkit-appearance: none; appearance: none; background: transparent;
}
.ba__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 48px; height: 100%; cursor: ew-resize;
}
.ba__range::-moz-range-thumb {
  width: 48px; height: 200px; border: 0; background: transparent; cursor: ew-resize;
}
.ba__range:focus-visible { outline: none; }
.ba__range:focus-visible ~ .ba__line .ba__handle {
  box-shadow: 0 0 0 4px var(--blue-tint), 0 6px 18px -4px rgba(0,0,0,0.6);
}

/* ---------- Process steps ---------- */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  counter-reset: step;
}
.step { display: flex; flex-direction: column; }
.step__media {
  position: relative;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.step__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.2,0.7,0.2,1);
}
.step:hover .step__media img { transform: scale(1.05); }
.step__num {
  position: absolute; top: 12px; left: 12px;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(150deg, #28a6e4, #0f6fa8);
  box-shadow: 0 10px 22px -8px rgba(15,111,168,0.7), inset 0 1px 1px rgba(255,255,255,0.35);
}
.step__body { padding: 18px 4px 0; }
.step__body h3 { font-size: 1.18rem; margin-bottom: 7px; }
.step__body p { color: var(--ink-soft); font-size: 0.94rem; }
.steps .reveal:nth-child(2) { transition-delay: 0.07s; }
.steps .reveal:nth-child(3) { transition-delay: 0.14s; }
.steps .reveal:nth-child(4) { transition-delay: 0.21s; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about__media .ph--about { aspect-ratio: 1/1; box-shadow: var(--shadow); }
.about__photo {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.about__copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 18px; }
.about__copy p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 26px; }
.ticks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-bottom: 30px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 500; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--blue-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23169bdc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Service area ---------- */
.area__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.area__copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 16px; color: #fff; }
.area__copy p { color: #aebccb; font-size: 1.05rem; margin-bottom: 28px; }
.area__states { display: flex; flex-wrap: wrap; gap: 12px; }
.area__states span {
  border: 1px solid #33445a; border-radius: 999px; padding: 9px 20px; font-weight: 500; font-size: 0.95rem;
}
.area__media { perspective: 1300px; perspective-origin: 60% 40%; }
.area__media .ph--map { aspect-ratio: 4/3; }

/* futuristic service-area map — floating 3D panel */
.usmap {
  position: relative;
  margin: 0;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 70% 20%, rgba(31,168,236,0.12), rgba(14,23,34,0) 60%),
    linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(111,205,255,0.18);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.05) inset,
    0 40px 80px -30px rgba(0,0,0,0.85),
    0 18px 40px -24px rgba(12,111,163,0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transform-style: preserve-3d;
  /* resting tilt — gives the panel depth even before interaction */
  transform:
    rotateX(var(--rx, 6deg)) rotateY(var(--ry, -12deg)) translateZ(0);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.45s ease;
  animation: mapFloat 7s ease-in-out infinite;
}
.usmap::after {
  /* soft sheen that catches the light on the raised face */
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0) 38%);
  pointer-events: none;
}
.usmap.tilt { animation: none; }
.usmap img {
  display: block; width: 100%; height: auto;
  transform: translateZ(40px);
  filter: drop-shadow(0 16px 26px rgba(0,0,0,0.55));
}
.usmap__corner {
  position: absolute; width: 18px; height: 18px;
  border: 2px solid rgba(111,205,255,0.55); pointer-events: none;
  transform: translateZ(60px);
}
@keyframes mapFloat {
  0%, 100% { transform: rotateX(6deg) rotateY(-12deg) translateY(0); }
  50%      { transform: rotateX(4deg) rotateY(-9deg) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .usmap { animation: none; transform: none; }
  .usmap img, .usmap__corner { transform: none; }
}
.usmap__corner--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.usmap__corner--tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.usmap__corner--bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.usmap__corner--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

/* ---------- Quote ---------- */
.quote {
  position: relative;
  background:
    radial-gradient(80% 60% at 90% 0%, rgba(60,185,255,0.07), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(12,111,163,0.06), transparent 60%),
    var(--soft);
}
.quote__grid { display: grid; grid-template-columns: 0.84fr 1.16fr; gap: 56px; align-items: start; }

/* ----- intro / left column ----- */
.quote__intro { display: flex; flex-direction: column; }
.quote__intro h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 16px; }
.quote__intro p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 26px; }
.quote__intro a { color: var(--blue-deep); font-weight: 600; }

.quote__perks { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; }
.quote__perks li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.97rem; font-weight: 500; color: var(--ink);
}
.quote__perk-ic {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #1f9ad6, #0c6fa3);
  box-shadow: 0 4px 12px -4px rgba(22,155,220,0.6);
}
.quote__perk-ic svg { width: 14px; height: 14px; }

.quote__contact {
  display: grid; gap: 6px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.quote__contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: background 0.2s ease;
}
a.quote__contact-row:hover { background: var(--blue-tint); }
.quote__contact-ic {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid rgba(22,155,220,0.16);
}
.quote__contact-ic svg { width: 20px; height: 20px; }
.quote__contact-txt { display: flex; flex-direction: column; gap: 2px; }
.quote__contact .lbl { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); font-weight: 600; }
.quote__contact strong { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em; }

/* ----- form card ----- */
.quote__form {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 30px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}
.quote__form::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #1f9ad6, #7fd6ff 50%, #0c6fa3);
}
.quote__form-head { margin-bottom: 2px; }
.quote__step,
.quote__divider span {
  display: inline-block;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-deep);
}
.quote__divider {
  display: flex; align-items: center; gap: 14px;
  margin: 4px 0 0;
}
.quote__divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* ----- inputs ----- */
.field { display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.94rem; color: var(--ink);
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #6f8095; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,0.2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 4px var(--blue-tint);
}
.field textarea { resize: vertical; min-height: 88px; }

/* ----- service tiles — compact text pills, multi-select ----- */
.pick-label { font-size: 0.82rem; font-weight: 600; margin-bottom: 9px; display: flex; align-items: center; gap: 8px; }
.pick-hint {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--blue-deep); background: var(--blue-tint);
  padding: 3px 9px; border-radius: 999px;
}
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.pick__inner {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 15px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,0.04);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.pick__inner::before {
  content: '';
  width: 0; height: 11px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0;
  transition: width 0.2s ease, opacity 0.2s ease;
  /* checkmark drawn via mask so it inherits color */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pick__name { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); line-height: 1.2; white-space: nowrap; }

.pick:hover .pick__inner {
  border-color: rgba(22,155,220,0.5);
  box-shadow: 0 5px 14px -8px rgba(13,95,150,0.5);
}
.pick:hover .pick__name { color: var(--ink); }

.pick input:checked + .pick__inner {
  border-color: transparent; color: #fff;
  background: linear-gradient(150deg, #1f9ad6, #0c6fa3);
  box-shadow: 0 8px 18px -10px rgba(13,95,150,0.75);
}
.pick input:checked + .pick__inner::before { width: 13px; opacity: 1; }
.pick input:checked + .pick__inner .pick__name { color: #fff; }
.pick input:focus-visible + .pick__inner { box-shadow: 0 0 0 4px var(--blue-tint); }

/* ----- submit + reassurance ----- */
.btn__arrow { width: 18px; height: 18px; margin-left: 2px; transition: transform 0.25s ease; }
.btn--block:hover .btn__arrow { transform: translateX(4px); }
.quote__reassure {
  display: flex; align-items: center; gap: 9px;
  margin-top: -2px;
  font-size: 0.85rem; color: var(--ink-soft);
}
.quote__reassure svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }
.form__note {
  margin-top: -4px; padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--blue-tint); color: var(--blue-deep); font-weight: 500; font-size: 0.92rem;
}
.form__note--error {
  background: rgba(220, 70, 70, 0.14); color: #ffb3b3;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: #aebccb; padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__logo { height: 50px; margin-bottom: 18px; }
.footer__brand p { font-size: 0.95rem; max-width: 30em; }
.footer__col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; font-size: 0.94rem; margin-bottom: 10px; color: #aebccb; }
.footer__col a:hover { color: var(--blue); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid #2a3848; font-size: 0.85rem; color: #7d8da0;
}
.footer__made {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.85rem; color: #8b9aac; letter-spacing: 0.01em;
}
.footer__mark {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  font-family: 'Fraunces', serif;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #1f9ad6 0%, #0c6fa3 100%);
  box-shadow:
    0 0 0 1px rgba(127, 214, 255, 0.35) inset,
    0 6px 18px -4px rgba(22, 155, 220, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: markGlow 3.2s ease-in-out infinite;
}
.footer__mark:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(127, 214, 255, 0.5) inset,
    0 10px 26px -4px rgba(22, 155, 220, 0.85);
}
.footer__mark-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #bdeaff;
  box-shadow: 0 0 8px 2px rgba(189, 234, 255, 0.9);
}
@keyframes markGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(127,214,255,0.35) inset, 0 6px 18px -4px rgba(22,155,220,0.55); }
  50%      { box-shadow: 0 0 0 1px rgba(127,214,255,0.55) inset, 0 8px 24px -2px rgba(22,155,220,0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .footer__mark { animation: none; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(80%, 320px);
  background: var(--panel); box-shadow: -20px 0 60px -20px rgba(0,0,0,0.6);
  transform: translateX(100%); transition: transform 0.3s ease;
  z-index: 60; padding: 100px 32px 32px; display: flex; flex-direction: column; gap: 22px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.mobile-menu .btn { margin-top: 10px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { max-width: 460px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .about__grid, .area__grid, .quote__grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 26px; }
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 68px 0; }
  .cards { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 22px; }
  .proj { width: 256px; }
  .hero__photo--card { display: none; }
  .hero__trust { gap: 26px; }
  .ticks { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .quote__form { padding: 24px 20px 22px; }
}
