/* ==========================================================================
   Magnificent Plumbing & Rooter — homepage styles
   Bootstrap 5.3 + this file. No build step, no preprocessor.
   Brand colours sampled from logo.png.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand-blue: #006db7;
  --brand-blue-600: #005fa0;
  --brand-blue-700: #00528a;
  --brand-blue-900: #0b2a4a;
  --brand-blue-950: #071c33;
  --brand-red: #ec1f24;
  --brand-red-600: #d41c21;
  --brand-red-700: #bf1a1e;

  /* Water */
  --water-50: #eaf4fc;
  --water-100: #d6eaf9;
  --water-300: #7cc0ee;
  --water-400: #4aa6e3;

  /* Neutrals */
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --ink: #1e293b;
  --ink-muted: #475569;
  --line: #e2e8f0;
  --gold: #f5b301;

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows (blue tinted) */
  --shadow-sm: 0 1px 2px rgba(11, 42, 74, .06), 0 1px 3px rgba(11, 42, 74, .08);
  --shadow-soft: 0 6px 16px -4px rgba(11, 42, 74, .12), 0 2px 6px -2px rgba(11, 42, 74, .08);
  --shadow-lift: 0 24px 48px -12px rgba(11, 42, 74, .22);
  --shadow-red: 0 10px 24px -8px rgba(212, 28, 33, .55);

  /* Layout */
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --header-h: 76px;

  /* Bootstrap overrides */
  --bs-primary: #006db7;
  --bs-primary-rgb: 0, 109, 183;
  --bs-body-color: #1e293b;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-border-color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* room for the mobile sticky call bar */
}

@media (min-width: 768px) { body { padding-bottom: 0; } }

h1, h2, h3, h4, .font-display {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; }
a { text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--water-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.container-x {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 576px) { .container-x { padding-inline: 24px; } }
@media (min-width: 992px) { .container-x { padding-inline: 32px; } }

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

.bg-alt      { background: var(--surface-alt) !important; }
.bg-water-50 { background: var(--water-50) !important; }
.bg-navy     { background: var(--brand-blue-900) !important; }
.bg-navy-900 { background: var(--brand-blue-950) !important; }
.text-blue   { color: var(--brand-blue) !important; }
.text-red    { color: var(--brand-red-600) !important; }
.text-water  { color: var(--water-300) !important; }
.text-muted-ink { color: var(--ink-muted) !important; }
.text-ink    { color: var(--ink) !important; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 2000;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: 999px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; color: #fff; }

/* --------------------------------------------------------------------------
   3. Shared pieces — eyebrow, headings, buttons, cards
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-red);
}
.eyebrow.light { color: var(--water-300); }

.section-head { max-width: 42rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  margin-top: .75rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
}
.section-head .lead-intro {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-muted);
}
.section-head.light h2 { color: #fff; }
.section-head.light .lead-intro { color: rgba(255, 255, 255, .8); }

/* Buttons — pill shaped, brand coloured */
.btn-pill {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: var(--h);
  padding-inline: 1.5rem;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn-pill:hover { transform: translateY(-2px); }
.btn-pill.sm { --h: 40px; padding-inline: 1rem; font-size: .875rem; }
.btn-pill.lg { --h: 56px; padding-inline: 1.75rem; font-size: 1rem; gap: .625rem; }

.btn-red {
  background: var(--brand-red-600);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-red:hover { background: var(--brand-red-700); color: #fff; }

.btn-blue {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-blue:hover { background: var(--brand-blue-700); color: #fff; }

.btn-outline-brand {
  background: rgba(255, 255, 255, .7);
  color: var(--brand-blue);
  box-shadow: inset 0 0 0 2px var(--brand-blue);
  backdrop-filter: blur(6px);
}
.btn-outline-brand:hover { background: var(--brand-blue); color: #fff; }

.btn-outline-light-brand {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7);
}
.btn-outline-light-brand:hover { background: #fff; color: var(--brand-blue-900); }

.stars { display: inline-flex; gap: 2px; color: var(--gold); font-size: .95rem; }

.card-soft {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* Wave divider between sections */
.wave {
  position: relative;
  height: 44px;
  width: 100%;
  overflow: hidden;
  margin-block: -1px;
}
@media (min-width: 576px) { .wave { height: 64px; } }
.wave svg {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 200%;
  animation: wave-drift 14s linear infinite;
}
.wave.flip { transform: scaleY(-1); }
@keyframes wave-drift { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   4. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1030;
  transition: background-color .3s, box-shadow .3s, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 30px -12px rgba(11, 42, 74, .18);
  backdrop-filter: blur(14px);
}
.site-header.hidden-up { transform: translateY(-100%); }

.header-inner {
  display: flex;
  height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-logo { width: 150px; }
@media (min-width: 576px) { .brand-logo { width: 170px; } }
.brand-logo img { width: 100%; height: auto; display: block; }

.main-nav { display: none; }
@media (min-width: 992px) { .main-nav { display: block; } }
.main-nav > ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link-x {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  transition: color .2s;
}
.nav-link-x:hover { color: var(--brand-blue); }
.nav-link-x[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.nav-link-x .bi-chevron-down { transition: transform .3s; font-size: .75rem; }

/* Mega menu */
.mega {
  position: absolute;
  left: 50%;
  top: calc(var(--header-h) - 6px);
  width: min(1080px, calc(100vw - 48px));
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, transform .22s, visibility .22s;
}
.mega.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
  padding: 1.5rem;
}
.mega-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.mega-groups h3 {
  margin: 0 0 .5rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.mega-groups ul { list-style: none; margin: 0; padding: 0; }
.mega-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem;
  border-radius: 12px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  transition: background-color .2s;
}
.mega-link:hover { background: var(--water-50); color: var(--ink); }
.mega-link .ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--water-50);
  color: var(--brand-blue);
  transition: background-color .2s, color .2s;
}
.mega-link:hover .ic { background: var(--brand-blue); color: #fff; }
.mega-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue-900), var(--brand-blue));
}

/* Mobile offcanvas menu */
.offcanvas.menu-panel { background: var(--brand-blue-950); color: #fff; }
.menu-panel .menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
}
.menu-panel .menu-link i { color: var(--water-300); font-size: 1.25rem; }

.burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-blue-900);
  box-shadow: var(--shadow-soft);
}
@media (min-width: 992px) { .burger { display: none; } }

/* --------------------------------------------------------------------------
   5. Hero (version 2 — pipe + faucet + drop)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 7rem;
  background: radial-gradient(120% 80% at 80% 0%, #dff0fc 0%, #f4f9fe 45%, #ffffff 100%);
}
@media (min-width: 992px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding-bottom: 6rem;
  }
}

/* faded blueprint grid */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .6;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 109, 183, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 109, 183, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
}

.hero-row {
  position: relative;
  display: grid;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
}
@media (min-width: 992px) { .hero-row { grid-template-columns: 1fr 1fr; gap: 2rem; } }

/* status pill */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: .375rem 1rem .375rem .5rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 20px -8px rgba(11, 42, 74, .25), inset 0 0 0 1px var(--line);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.hero-pill .dot {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
}
.hero-pill .dot::before,
.hero-pill .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #10b981;
}
.hero-pill .dot::before { animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; opacity: .6; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.hero-pill .sep { width: 1px; height: 16px; background: var(--line); }

/* headline */
.hero h1 {
  margin-top: 1.75rem;
  margin-bottom: 0;
  font-size: clamp(2.9rem, 7vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .25rem; }
.hero h1 .line > span {
  display: block;
  transform: translateY(110%);
  animation: line-up .9s cubic-bezier(.22, 1, .36, 1) forwards;
}
.hero h1 .line:nth-child(1) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .2s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .3s; }
@keyframes line-up { to { transform: translateY(0); } }

.hero h1 .precision-wrap { position: relative; display: inline-block; }
.hero h1 .word-precision {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand-blue), #0a7fd0, var(--brand-blue-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .underline-pipe {
  position: absolute;
  left: 0;
  bottom: -.5rem;
  width: 100%;
  height: 16px;
  overflow: visible;
}
.hero h1 .underline-pipe path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-path .9s cubic-bezier(.65, 0, .35, 1) .8s forwards;
}
@keyframes draw-path { to { stroke-dashoffset: 0; } }

.hero-sub {
  margin-top: 1.75rem;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-muted);
}
@media (min-width: 576px) { .hero-sub { font-size: 1.25rem; } }

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
@media (min-width: 576px) { .hero-actions { flex-direction: row; flex-wrap: wrap; } }

/* trust strip under the CTAs */
.hero-trust {
  margin-top: 2.5rem;
  max-width: 32rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 10px 30px -12px rgba(11, 42, 74, .2), inset 0 0 0 1px var(--line);
  backdrop-filter: blur(8px);
}
.hero-trust > div {
  padding-inline: .75rem;
  text-align: center;
}
.hero-trust > div + div { border-left: 1px solid var(--line); }
.hero-trust .label {
  margin: .25rem 0 0;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink);
}
@media (min-width: 576px) { .hero-trust .label { font-size: .875rem; } }

/* ---- the pipe stage ---- */
.pipe-stage {
  position: relative;
  width: 90%;
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 600 / 680;
}
@media (min-width: 576px) { .pipe-stage { width: 100%; } }
@media (min-width: 992px) { .pipe-stage { margin-right: 0; margin-left: auto; } }

/* photo frame — matches FRAME = {x:40,y:170,w:480,h:480} in a 600x680 box */
.pipe-frame {
  position: absolute;
  isolation: isolate;
  left: 6.667%;
  top: 25%;
  width: 80%;
  height: 70.588%;
  overflow: hidden;
  border-radius: 30px;
  background: var(--brand-blue-900);
  box-shadow: 0 40px 80px -30px rgba(11, 42, 74, .55), 0 0 0 10px #fff;
}
.pipe-frame .slide {
  position: absolute;
  inset: 0;
  clip-path: circle(0% at 46.25% 0%);
  transition: clip-path 1.1s cubic-bezier(.65, 0, .35, 1);
}
.pipe-frame .slide.shown { clip-path: circle(150% at 46.25% 0%); }
.pipe-frame .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 5.2s linear;
}
.pipe-frame .slide.shown img { transform: scale(1); }
.pipe-frame .scrim {
  position: absolute;
  z-index: 3;
  inset-inline: 0;
  bottom: 0;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7, 28, 51, .85), rgba(7, 28, 51, .3) 45%, transparent);
}
.pipe-caption {
  position: absolute;
  z-index: 4;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem;
}
@media (min-width: 576px) { .pipe-caption { padding: 1.5rem; } }
.pipe-caption .kicker {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--water-300);
}
.pipe-caption .title {
  margin: .25rem 0 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
@media (min-width: 576px) { .pipe-caption .title { font-size: 1.25rem; } }
.pipe-caption .text-wrap { transition: opacity .35s, transform .35s; }
.pipe-dots { display: none; gap: 6px; padding-bottom: 6px; flex: 0 0 auto; }
@media (min-width: 576px) { .pipe-dots { display: flex; } }
.pipe-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  transition: width .5s, background-color .5s;
}
.pipe-dots span.on { width: 20px; background: #fff; }

/* pipe svg */
.pipe-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.pipe-svg .pipe-body {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-path 2.1s cubic-bezier(.65, 0, .35, 1) forwards;
}
.pipe-svg .pipe-body.d1 { animation-delay: .25s; }
.pipe-svg .pipe-body.d2 { animation-delay: .3s; }
.pipe-svg .pipe-body.d3 { animation-delay: .4s; }

.pipe-svg .flow {
  opacity: 0;
  animation: flow-in .6s ease 2.3s forwards, flow-run 2.2s linear 2.3s infinite;
}
@keyframes flow-in { to { opacity: .7; } }
@keyframes flow-run { to { stroke-dashoffset: -252; } }

.pipe-svg .fade-in { opacity: 0; animation: just-fade .5s ease forwards; }
@keyframes just-fade { to { opacity: 1; } }
.pipe-svg .fade-in.t1 { animation-delay: 1.6s; }
.pipe-svg .fade-in.t2 { animation-delay: 1s; }
.pipe-svg .fade-in.t3 { animation-delay: 1.2s; }
.pipe-svg .fade-in.t4 { animation-delay: 2.05s; }

.pipe-svg .valve-wheel {
  transform-origin: -420px 758px;
  animation: spin-slow 9s linear 2s infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.pipe-svg .needle {
  transform-origin: 610px 380px;
  animation: needle-wobble 3.4s ease-in-out 1.4s infinite;
}
@keyframes needle-wobble {
  0%, 100% { transform: rotate(-28deg); }
  50% { transform: rotate(16deg); }
}

/* the drop: leaves the spout (262,112) and falls 52 units into the frame */
.pipe-svg .drop {
  opacity: 0;
  animation: drop-fall 4.2s linear 2.3s infinite;
}
@keyframes drop-fall {
  0%   { transform: translate(262px, 112px) scale(.4); opacity: 0; }
  10%  { transform: translate(262px, 112px) scale(1);  opacity: 1; }
  22%  { transform: translate(262px, 164px) scale(1);  opacity: 1; }
  24%  { transform: translate(262px, 164px) scale(1);  opacity: 0; }
  100% { transform: translate(262px, 112px) scale(.4); opacity: 0; }
}

.pipe-svg .splash {
  transform-origin: 262px 174px;
  opacity: 0;
  animation: splash 4.2s linear 2.3s infinite;
}
.pipe-svg .splash.s2 { animation-delay: 2.45s; }
@keyframes splash {
  0%, 21%  { transform: scale(.1); opacity: 0; }
  23%      { transform: scale(.1); opacity: .95; }
  45%      { transform: scale(1.6); opacity: 0; }
  100%     { transform: scale(1.6); opacity: 0; }
}

/* floating Google chip */
.google-chip {
  position: absolute;
  z-index: 3;
  left: -12px;
  top: 30%;
  display: none;
  opacity: 0;
  animation: chip-in .6s cubic-bezier(.22, 1, .36, 1) 2.4s forwards;
}
@media (min-width: 576px) { .google-chip { display: block; } }
@media (min-width: 992px) { .google-chip { left: -40px; } }
@keyframes chip-in { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
.google-chip .inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.25rem .75rem .75rem;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 20px 40px -16px rgba(11, 42, 74, .35), inset 0 0 0 1px var(--line);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.g-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  background-image: none;
}
.g-mark span {
  background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   6. Trust bar — stats + marquee
   -------------------------------------------------------------------------- */
.stat-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: -4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-lift);
}
@media (min-width: 992px) { .stat-card { grid-template-columns: repeat(4, 1fr); } }
.stat-card > div {
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.stat-card > div:nth-child(odd) { border-right: 1px solid var(--line); }
.stat-card > div:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 992px) {
  .stat-card > div { padding: 2.25rem 2rem; border-bottom: 0; border-right: 1px solid var(--line); }
  .stat-card > div:last-child { border-right: 0; }
}
.stat-card .num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1;
}
.stat-card .cap {
  margin: .5rem 0 0;
  font-size: .95rem;
  color: var(--ink-muted);
}

.marquee { position: relative; overflow: hidden; margin-top: 3rem; }
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 64px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, #fff, transparent); }
@media (min-width: 576px) { .marquee::before, .marquee::after { width: 160px; } }
.marquee ul {
  display: flex;
  width: max-content;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: marquee 32s linear infinite;
}
.marquee:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee li {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .75rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}
.marquee li i { color: var(--brand-blue); }

/* --------------------------------------------------------------------------
   7. Services
   -------------------------------------------------------------------------- */
.svc-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
  list-style: none;
  padding: 0;
}
@media (min-width: 576px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .svc-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.svc-featured { grid-column: span 1; }
@media (min-width: 576px) { .svc-featured { grid-column: span 2; } }
@media (min-width: 992px) { .svc-featured { grid-row: span 2; } }

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: var(--water-300);
  box-shadow: var(--shadow-lift);
}
.svc-card .fill {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(to top, var(--water-50), transparent);
  transition: height .5s ease-out;
}
.svc-card:hover .fill { height: 100%; }
.svc-card .ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--water-50);
  color: var(--brand-blue);
  font-size: 1.5rem;
  transition: background-color .4s, color .4s, transform .4s;
}
.svc-card:hover .ic { background: var(--brand-blue); color: #fff; transform: rotate(-6deg) scale(1.1); }
.svc-card h3 {
  position: relative;
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.svc-card p {
  position: relative;
  flex: 1;
  margin: .5rem 0 0;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.svc-card .more {
  position: relative;
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand-blue);
}
.svc-card:hover .more i { transform: translateX(6px); }
.svc-card .more i { transition: transform .3s; }

.svc-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 340px;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue-900), var(--brand-blue-700) 55%, var(--brand-blue));
  box-shadow: var(--shadow-lift);
}
@media (min-width: 576px) { .svc-hero { padding: 2.25rem; } }
.svc-hero .deco {
  position: absolute;
  right: -40px;
  top: -24px;
  width: 260px;
  height: 260px;
  opacity: .25;
  pointer-events: none;
}
.svc-hero h3 {
  margin: 1.5rem 0 0;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
}
.svc-hero p {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .85);
}
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: var(--brand-red-600);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* --------------------------------------------------------------------------
   8. Before & after
   -------------------------------------------------------------------------- */
.ba-tabs {
  display: inline-flex;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-alt);
}
.ba-tabs button {
  border: 0;
  background: none;
  border-radius: 999px;
  padding: .625rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: background-color .3s, color .3s;
}
@media (min-width: 576px) { .ba-tabs button { padding-inline: 1.5rem; } }
.ba-tabs button[aria-selected="true"] {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.ba-panel { display: none; }
.ba-panel.active { display: grid; }
.ba-wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 64rem;
  margin: 2.5rem auto 0;
}
@media (min-width: 992px) { .ba-wrap { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; } }

.compare {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  border-radius: var(--radius-xl);
  background: var(--surface-alt);
  box-shadow: var(--shadow-lift), 0 0 0 8px #fff;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after-layer { clip-path: inset(0 0 0 50%); }
.compare .handle {
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: #fff;
  box-shadow: 0 0 12px rgba(11, 42, 74, .4);
}
.compare .handle i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-blue);
  box-shadow: var(--shadow-soft);
  font-size: 1.1rem;
}
.ba-tag {
  position: absolute;
  top: 1rem;
  z-index: 3;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: var(--shadow-sm);
}
.ba-tag.before { left: 1rem; background: rgba(7, 28, 51, .8); color: #fff; }
.ba-tag.after { right: 1rem; background: #fff; color: var(--brand-blue-900); }

.side-by-side { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.side-by-side figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.side-by-side img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tick-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-top: .75rem;
  font-weight: 500;
  color: var(--ink);
}
.tick-list li i { color: var(--brand-blue); margin-top: 2px; flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   9. Warning signs (horizontal scroll panels)
   -------------------------------------------------------------------------- */
/* Mobile: the three panels simply stack.
   Desktop (>=992px): the section pins to the viewport and the track slides
   sideways as you scroll — the GSAP ScrollTrigger pin from the original,
   done with position:sticky plus a transform driven in main.js. */
.signs-outer { position: relative; padding-block: var(--section-y); }
.signs-pin { background: #fff; }
.signs-track {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-inline: 16px;
}
@media (min-width: 576px) { .signs-track { padding-inline: 24px; } }
.signs-panel {
  width: 100%;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-alt);
}
@media (min-width: 768px) {
  .signs-panel { grid-template-columns: .9fr 1.1fr; padding: 2rem; gap: 2rem; }
}
@media (min-width: 992px) {
  .signs-outer { padding-block: 0; }
  .signs-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  .signs-track {
    flex-direction: row;
    width: max-content;
    gap: 2rem;
    margin-top: 3rem;
    padding-left: max(32px, calc((100vw - 1240px) / 2 + 32px));
    padding-right: 32px;
    will-change: transform;
  }
  .signs-panel { flex: 0 0 min(1000px, 78vw); width: auto; padding: 2.5rem; gap: 2.5rem; }
  .signs-art { aspect-ratio: 4 / 3; max-height: 46vh; }
}
.signs-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--water-50), var(--water-100));
}
.signs-art svg { width: 100%; height: 100%; display: block; }
.signs-step {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brand-red-600);
}
.signs-panel h3 {
  margin: .5rem 0 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
}

.steps-dots { display: none; align-items: center; gap: .75rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 992px) { .steps-dots { display: flex; } }
.steps-dots li { display: flex; align-items: center; gap: .75rem; }
.steps-dots .n {
  display: grid;
  border: 0;
  padding: 0;
  cursor: pointer;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-muted);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .875rem;
  font-weight: 700;
  transition: background-color .3s, color .3s;
}
.steps-dots li.on .n { background: var(--brand-blue); color: #fff; }
.steps-dots .bar {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-alt);
  overflow: hidden;
}
.steps-dots .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand-blue);
  transition: width .5s;
}
.steps-dots li.done .bar i { width: 100%; }

/* --------------------------------------------------------------------------
   10. Why trust us (navy band)
   -------------------------------------------------------------------------- */
.why { position: relative; overflow: hidden; color: #fff; }
.why .dots {
  position: absolute;
  inset: 0;
  opacity: .08;
  pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 28px 28px;
}
.why .glow {
  position: absolute;
  right: -160px;
  top: 0;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  background: var(--brand-blue);
  opacity: .4;
  filter: blur(80px);
  pointer-events: none;
}
.why-list {
  position: relative;
  display: grid;
  gap: 2.5rem;
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 576px) { .why-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .why-list { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }
.why-rail {
  display: none;
  position: absolute;
  z-index: 0;
  left: 10%;
  right: 10%;
  top: 33px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
@media (min-width: 992px) { .why-rail { display: block; } }
.why-rail i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--brand-red);
  transition: width 1.8s cubic-bezier(.22, 1, .36, 1);
}
.why-rail.in i { width: 100%; }
.why-list li { text-align: center; }
.why-list .ic {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--brand-blue);
  font-size: 1.75rem;
  box-shadow: var(--shadow-lift);
  transition: transform .3s;
}
.why-list .reveal.in:hover .ic { transform: translateY(-6px) rotate(-6deg); }
.why-list .ic b {
  position: absolute;
  right: -6px;
  top: -6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--brand-red-600);
  color: #fff;
  font-size: .75rem;
}
.why-list h3 { margin: 1.5rem 0 0; font-size: 1.125rem; font-weight: 700; }
.why-list p {
  margin: .5rem auto 0;
  max-width: 20rem;
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .75);
}

/* --------------------------------------------------------------------------
   11. About
   -------------------------------------------------------------------------- */
.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
}
@media (min-width: 576px) and (max-width: 991.98px) { .about-photo { aspect-ratio: 5 / 4; } }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-badge {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(6px);
}
@media (min-width: 576px) { .about-badge { right: auto; max-width: 300px; } }
.about-badge .big {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--brand-blue);
}
.pipe-specs { list-style: none; margin: 2rem 0 0; padding: 0; }
.pipe-specs li {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.pipe-specs .ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--water-50);
  color: var(--brand-blue);
}

/* --------------------------------------------------------------------------
   12. Projects gallery
   -------------------------------------------------------------------------- */
.proj-filters {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.proj-filters::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .proj-filters { flex-wrap: wrap; justify-content: flex-end; overflow: visible; } }
.proj-filters button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .1);
  transition: background-color .2s, color .2s;
}
.proj-filters button:hover { background: rgba(255, 255, 255, .2); }
.proj-filters button[aria-pressed="true"] { background: #fff; color: var(--brand-blue-900); }

.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-top: 2.5rem;
  list-style: none;
  padding: 0;
}
@media (min-width: 576px) { .proj-grid { gap: 1rem; } }
@media (min-width: 992px) { .proj-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem; } }
.proj-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brand-blue-900);
  text-align: left;
  aspect-ratio: 3 / 4;
}
.proj-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease-out;
}
.proj-tile:hover img { transform: scale(1.1); }
.proj-tile .grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 28, 51, .9), rgba(7, 28, 51, .1) 55%, transparent);
}
.proj-tile .meta { position: absolute; inset-inline: 0; bottom: 0; padding: .75rem; }
@media (min-width: 576px) { .proj-tile .meta { padding: 1.25rem; } }
.proj-tile .cat {
  display: none;
  margin-bottom: .375rem;
  padding: .125rem .625rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--water-300);
  backdrop-filter: blur(4px);
}
@media (min-width: 576px) { .proj-tile .cat { display: inline-block; } }
.proj-tile .name {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
@media (min-width: 576px) { .proj-tile .name { font-size: 1.0625rem; } }
.proj-tile .zoom {
  position: absolute;
  right: .75rem;
  top: .75rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--brand-blue-900);
  opacity: 0;
  transform: scale(.75);
  transition: opacity .3s, transform .3s;
}
.proj-tile:hover .zoom,
.proj-tile:focus-visible .zoom { opacity: 1; transform: scale(1); }

#lightbox .modal-content { background: transparent; border: 0; }
#lightbox img { max-height: 76vh; width: auto; max-width: 100%; border-radius: var(--radius-md); }
#lightbox .lb-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
#lightbox .lb-btn:hover { background: rgba(255, 255, 255, .22); }

/* --------------------------------------------------------------------------
   13. Process timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; max-width: 56rem; margin: 4rem auto 0; padding: 0; list-style: none; }
/* the pipe: white track + blue water fill that rises when the list scrolls in */
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 23px;
  width: 12px;
  border-radius: 999px;
}
@media (min-width: 768px) {
  .timeline::before, .timeline::after { left: 50%; margin-left: -6px; }
}
.timeline::before { background: #fff; box-shadow: inset 0 0 0 1px var(--water-100); }
.timeline::after {
  background: linear-gradient(to bottom, var(--water-400), var(--brand-blue));
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.4s ease-out;
}
.timeline.in::after { transform: scaleY(1); }
.timeline > li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 1rem;
  padding-bottom: 3rem;
}
.timeline > li:last-child { padding-bottom: 0; }
@media (min-width: 768px) {
  .timeline > li { grid-template-columns: 1fr 80px 1fr; gap: 0; }
}
.timeline .box {
  grid-column: 2;
  padding: 1.5rem;
  border: 1px solid #fff;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 768px) {
  .timeline li:nth-child(odd) .box  { grid-column: 1; grid-row: 1; padding-right: 1.5rem; text-align: right; margin-right: 2rem; }
  .timeline li:nth-child(even) .box { grid-column: 3; grid-row: 1; margin-left: 2rem; }
}
.timeline .step {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brand-red-600);
}
.timeline .box h3 { margin: .25rem 0 0; font-size: 1.25rem; font-weight: 700; }
.timeline .box p { margin: .5rem 0 0; line-height: 1.65; color: var(--ink-muted); }
.timeline .node {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  align-self: start;
  border: 4px solid var(--water-50);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-blue);
  font-size: 1.25rem;
  transition: background-color .4s, color .4s, transform .4s;
}
@media (min-width: 768px) { .timeline .node { grid-column: 2; margin-inline: auto; } }
.timeline > li.in .node { background: var(--brand-blue); color: #fff; }

/* --------------------------------------------------------------------------
   14. Reviews
   -------------------------------------------------------------------------- */
.rev-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}
.rev-rating .g-mark { width: 56px; height: 56px; font-size: 1.5rem; }

.rev-track {
  display: flex;
  gap: 20px;
  margin-top: 3rem;
  padding-bottom: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rev-track::-webkit-scrollbar { display: none; }
.rev-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 576px) { .rev-card { flex-basis: calc((100% - 20px) / 2); } }
@media (min-width: 992px) { .rev-card { flex-basis: calc((100% - 40px) / 3); } }
.rev-card .quote-mark { color: var(--water-100); font-size: 2rem; line-height: 1; }
.rev-card .rev-title {
  margin: 1rem 0 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
}
.rev-card .rev-text { margin: .75rem 0 0; flex: 1; line-height: 1.7; color: var(--ink-muted); }
.rev-card .rev-foot {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.rev-card .avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
}
.round-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, color .2s, background-color .2s;
}
.round-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.round-btn.solid { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.round-btn.solid:hover { background: var(--brand-blue-700); color: #fff; }

/* --------------------------------------------------------------------------
   15. Service areas
   -------------------------------------------------------------------------- */
.city-search {
  position: relative;
  max-width: 24rem;
  margin-top: 2rem;
}
.city-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}
.city-search input {
  height: 48px;
  width: 100%;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.city-search input:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 4px var(--water-100); }

.city-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.city-chips a {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  transition: all .2s;
}
.city-chips a:hover {
  transform: translateY(-2px);
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
}
.city-chips li.hide { display: none; }

.map-card {
  position: relative;
  padding: .75rem;
  border: 1px solid #fff;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-lift);
}
.map-card svg { width: 100%; height: auto; display: block; }
.map-card .hq-pill {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-sm);
  font-size: .75rem;
  font-weight: 600;
}
.map-card .hq-pill b { width: 10px; height: 10px; border-radius: 999px; background: var(--brand-red); }
.map-card .city-dot { transition: r .2s, fill .2s; cursor: pointer; }
.map-card .city-label { opacity: 0; transition: opacity .2s; }
.map-card .city-g:hover .city-label,
.map-card .city-g.on .city-label { opacity: 1; }
.map-card .city-g:hover .city-dot,
.map-card .city-g.on .city-dot { r: 8; fill: var(--brand-blue); }
.map-card .city-g .spoke { stroke-opacity: 0; transition: stroke-opacity .2s; }
.map-card .city-g:hover .spoke,
.map-card .city-g.on .spoke { stroke-opacity: .5; }

/* --------------------------------------------------------------------------
   16. Estimate form
   -------------------------------------------------------------------------- */
.estimate-grid { display: grid; gap: 3rem; }
@media (min-width: 992px) { .estimate-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; } }

.form-card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-lift);
}
@media (min-width: 576px) { .form-card { padding: 2.25rem; } }
.form-card .form-label { margin-bottom: .375rem; font-size: .875rem; font-weight: 600; color: var(--ink); }
.form-card .form-control,
.form-card .form-select {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-card textarea.form-control { height: auto; padding-block: .75rem; }
.form-card .form-control:focus,
.form-card .form-select:focus {
  background: #fff;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px var(--water-100);
}
.form-card .form-control.is-invalid,
.form-card .form-select.is-invalid { border-color: var(--brand-red-600); background-image: none; }
.form-card .form-control.is-invalid:focus { box-shadow: 0 0 0 4px #fde8e8; }
.invalid-feedback { font-weight: 500; color: var(--brand-red-600); }
.honeypot { position: absolute; left: -9999px; width: 0; height: 0; overflow: hidden; }

.form-benefits { list-style: none; margin: 2rem 0 0; padding: 0; }
.form-benefits li { display: flex; gap: 1rem; margin-top: 1rem; }
.form-benefits .ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  background: var(--water-50);
  color: var(--brand-blue);
}
.call-box {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1rem 1.5rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  transition: border-color .2s;
}
.call-box:hover { border-color: var(--brand-red-600); }
.call-box .ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--brand-red-600);
  color: #fff;
}
.form-done { display: none; min-height: 480px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.form-done.show { display: flex; }
.form-done .tick {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 2.5rem;
}
.form-done .tick::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid var(--water-300);
  border-radius: 999px;
  animation: pulse-ring 1.6s ease-out 3;
}
@keyframes pulse-ring { to { transform: scale(1.7); opacity: 0; } }

/* --------------------------------------------------------------------------
   17. Final CTA + footer + sticky bars
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative;
  overflow: hidden;
  padding-block: 5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue-900), var(--brand-blue-700) 55%, var(--brand-blue));
}
.final-cta .deco { position: absolute; right: 0; bottom: -40px; width: 620px; height: 320px; opacity: .2; pointer-events: none; }
.final-cta .glow {
  position: absolute;
  left: -96px;
  top: -96px;
  width: 288px;
  height: 288px;
  border-radius: 999px;
  background: var(--water-400);
  opacity: .25;
  filter: blur(80px);
}
.final-cta h2 {
  margin: .75rem 0 0;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

.site-footer { padding: 4rem 0 2.5rem; color: rgba(255, 255, 255, .75); background: var(--brand-blue-950); }
.site-footer a { color: inherit; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 3rem; }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr 1.3fr; } }
.site-footer h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.site-footer ul { list-style: none; margin: 1.25rem 0 0; padding: 0; font-size: .875rem; }
.site-footer ul li + li { margin-top: .625rem; }
.site-footer ul.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem 1rem; }
.site-footer ul.two-col li + li { margin-top: 0; }
.footer-logo { display: inline-block; padding: .75rem; border-radius: var(--radius-md); background: #fff; }
.footer-logo img { width: 170px; height: auto; display: block; }
.footer-contact li { display: flex; align-items: center; gap: .75rem; }
.footer-bottom {
  display: flex;
  flex-direction: column-reverse;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .875rem;
}
@media (min-width: 576px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.social-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background-color .2s;
}
.social-btn:hover { background: var(--brand-blue); color: #fff; }

/* mobile sticky call bar */
.mobile-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1020;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: .5rem;
  padding: .75rem .75rem max(.75rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
}
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* desktop floating call button */
.float-call {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1020;
  display: none;
  align-items: center;
  opacity: 0;
  transform: translateY(20px) scale(.6);
  transition: opacity .3s, transform .3s;
}
@media (min-width: 768px) { .float-call { display: flex; } }
.float-call.show { opacity: 1; transform: none; }
.float-call .tip {
  margin-right: .75rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .3s, transform .3s;
}
.float-call:hover .tip { opacity: 1; transform: none; }
.float-call .circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--brand-red-600);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: var(--shadow-red);
  transition: transform .3s;
}
.float-call:hover .circle { transform: scale(1.05); }
.float-call .circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--brand-red);
  animation: ring 2.2s cubic-bezier(.2, .6, .4, 1) infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* --------------------------------------------------------------------------
   18. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .pipe-svg .pipe-body, .hero h1 .underline-pipe path { stroke-dashoffset: 0; }
  .pipe-frame .slide { clip-path: circle(150% at 46.25% 0%); }
  .pipe-frame .slide img { transform: none; }
}

/* --------------------------------------------------------------------------
   19. Warning-sign illustrations (pure CSS/SVG animation)
   -------------------------------------------------------------------------- */
@keyframes sa-needle { 0%, 100% { transform: rotate(-30deg); } 50% { transform: rotate(38deg); } }
@keyframes sa-flick  { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.75); } }
@keyframes sa-shake  { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@keyframes sa-steam  { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: .8; } 100% { transform: translateY(-34px); opacity: 0; } }
@keyframes sa-bub    { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-70px) scale(1); opacity: 0; } }
@keyframes sa-spin   { to { transform: rotate(360deg); } }
@keyframes sa-drip   { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@keyframes sa-gurgle { 0% { transform: translateY(0) scale(.5); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-30px) scale(1.1); opacity: 0; } }
@keyframes sa-odor   { 0%, 100% { transform: translateY(0); opacity: .2; } 50% { transform: translateY(-8px); opacity: .9; } }
@keyframes sa-flow   { to { stroke-dashoffset: -40; } }

.sa-needle { transform-origin: 200px 128px; animation: sa-needle 2.4s ease-in-out infinite; }
.sa-flame  { transform-origin: 200px 248px; animation: sa-flick .5s ease-in-out infinite; }
.sa-tank   { animation: sa-shake .25s linear infinite; }
.sa-steam  { animation: sa-steam 2.4s ease-out infinite; }
.sa-bub    { animation: sa-bub 2.2s ease-in infinite; transform-box: fill-box; transform-origin: center; }
.sa-dial   { transform-origin: 330px 72px; animation: sa-spin 1.2s linear infinite; }
.sa-drip   { animation: sa-drip 1.2s ease-in infinite; }
.sa-gur    { animation: sa-gurgle 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.sa-odor   { animation: sa-odor 2.6s ease-in-out infinite; }
.sa-flow   { animation: sa-flow 1.4s linear infinite; }

/* --------------------------------------------------------------------------
   20. Late overrides
   -------------------------------------------------------------------------- */
/* .ba-wrap also sets display:grid, so hide inactive panels with a stronger rule */
.ba-panel:not(.active) { display: none; }
.map-card .city-label.always { opacity: 1; }

/* ==========================================================================
   21. Motion restored from the original React build
   These are the scroll-linked, pointer-driven and staggered effects that
   Framer Motion / GSAP handled before. All driven from assets/js/main.js.
   ========================================================================== */

/* ---- reading progress bar (was <ScrollProgress />) ---------------------- */
.scroll-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1070;
  height: 3px;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--brand-blue), var(--water-400), var(--brand-blue));
}

/* ---- hero parallax ------------------------------------------------------ */
.hero-copy, .hero-art { will-change: transform; }

/* ---- service cards: 3D tilt toward the cursor --------------------------- */
.svc-tilt {
  height: 100%;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.svc-tilt.tilting { transition: none; }

/* ---- magnetic buttons + water ripple on press --------------------------- */
.btn-pill { position: relative; overflow: hidden; isolation: isolate; }
.btn-pill.magnetic { transition: background-color .2s, color .2s, box-shadow .2s, transform .35s cubic-bezier(.22, 1, .36, 1); }
.btn-pill.magnetic:hover { transform: none; }
.btn-pill.magnetic.pulling { transition: transform .08s linear, background-color .2s; }
.btn-pill > * { position: relative; z-index: 1; }
.ripple-dot {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  background: currentColor;
  opacity: .35;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 650ms ease-out forwards;
}
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* ---- about: photo mask reveal + inner parallax + pipe that draws -------- */
.mask-reveal > .about-photo {
  clip-path: inset(100% 0 0 0 round 28px);
  transition: clip-path 1.1s cubic-bezier(.65, 0, .35, 1);
}
.mask-reveal.in > .about-photo { clip-path: inset(0% 0 0 0 round 28px); }
.about-photo-inner {
  position: absolute;
  inset: -10% 0;
  will-change: transform;
}
.about-photo-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
#aboutPipe {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--draw, 0));
}

/* ---- projects: tiles clip in, columns drift at different speeds --------- */
.proj-tile.tile-reveal {
  clip-path: inset(12% 0 0 0 round 20px);
  opacity: 0;
  transform: scale(.94);
  transition: clip-path .7s cubic-bezier(.22, 1, .36, 1),
              opacity .7s cubic-bezier(.22, 1, .36, 1),
              transform .7s cubic-bezier(.22, 1, .36, 1);
}
.proj-tile.tile-reveal.in { clip-path: inset(0% 0 0 0 round 20px); opacity: 1; transform: none; }
.proj-grid > li { will-change: transform; }

/* ---- why trust us: icons spring in -------------------------------------- */
.why-list .ic {
  transform: scale(.4) rotate(-20deg);
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
.why-list .reveal.in .ic { transform: scale(1) rotate(0deg); }
.why-list .reveal.in:hover .ic { transform: translateY(-6px) rotate(-6deg); }

/* ---- service areas: chips pop in ---------------------------------------- */
.chip-reveal {
  opacity: 0;
  transform: scale(.8) translateY(10px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.chip-reveal.in { opacity: 1; transform: none; }
.chip-reveal.hide { display: none; }

/* ---- before & after: the pill slides between tabs ----------------------- */
.ba-tabs { position: relative; }
.ba-pill {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--brand-blue);
  box-shadow: var(--shadow-soft);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), width .4s cubic-bezier(.22, 1, .36, 1);
}
.ba-tabs button { position: relative; z-index: 1; background: none !important; }
.ba-tabs button[aria-selected="true"] { color: #fff; box-shadow: none; }

/* ---- reviews: grab cursor + off-view cards dim -------------------------- */
.rev-track { cursor: grab; }
.rev-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rev-card { transition: opacity .5s; }
.rev-card.off { opacity: .4; }

/* ---- estimate form: the tick draws itself ------------------------------- */
.form-done .tick svg { width: 48px; height: 48px; }
.form-done .tick svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.form-done.show .tick svg path { animation: draw-path .5s ease .3s forwards; }

/* ---- mobile menu: links stagger in -------------------------------------- */
.menu-panel .menu-link {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .5s cubic-bezier(.22, 1, .36, 1), transform .5s cubic-bezier(.22, 1, .36, 1);
}
.menu-panel.in .menu-link { opacity: 1; transform: none; }
.menu-panel .menu-link:nth-child(1) { transition-delay: .06s; }
.menu-panel .menu-link:nth-child(2) { transition-delay: .12s; }
.menu-panel .menu-link:nth-child(3) { transition-delay: .18s; }
.menu-panel .menu-link:nth-child(4) { transition-delay: .24s; }
.menu-panel .menu-link:nth-child(5) { transition-delay: .30s; }
.menu-panel .menu-link:nth-child(6) { transition-delay: .36s; }

/* ---- reduced motion: everything above resolves to its finished state ---- */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .hero-copy, .hero-art, .about-photo-inner, .proj-grid > li { transform: none !important; }
  .mask-reveal > .about-photo { clip-path: inset(0% 0 0 0 round 28px); }
  .proj-tile.tile-reveal { clip-path: inset(0% 0 0 0 round 20px); opacity: 1; transform: none; }
  .why-list .ic { transform: none; }
  .chip-reveal { opacity: 1; transform: none; }
  .menu-panel .menu-link { opacity: 1; transform: none; }
  #aboutPipe { stroke-dashoffset: 0; }
  .form-done .tick svg path { stroke-dashoffset: 0; }
}
