/* ==========================================================================
   Reserve Water Resources — Design System
   ========================================================================== */

:root {
  --navy-950: #081522;
  --navy-900: #0B1F35;
  --navy-800: #0F2A47;
  --navy-700: #16395D;
  --navy-600: #1F4A75;
  --teal-600: #106B70;
  --teal-500: #158A8F;
  --teal-400: #3EA8AB;
  --teal-300: #7FD1C9;
  --teal-200: #B9E7E0;
  --ink: #0A1622;
  --slate: #4C5D6B;
  --slate-light: #7C8A96;
  --paper: #F5F8F9;
  --paper-dim: #EBF1F2;
  --white: #FFFFFF;
  --line: rgba(15, 42, 71, 0.12);
  --shadow: 0 20px 60px rgba(8, 21, 34, 0.25);

  --font-head: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', Arial, sans-serif;

  --container: 1240px;
  --nav-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Sitewide soft grain + ambient atmosphere */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat: repeat;
}

/* Type system: ALL headers are all-caps Space Grotesk with generous,
   deliberate tracking — smaller sizes get wider spacing. Body copy is
   Work Sans regular. Restraint over decoration. */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--navy-800);
  text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: 0.04em; }
h2 { font-size: clamp(1.9rem, 3.7vw, 2.8rem); letter-spacing: 0.05em; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); letter-spacing: 0.08em; }
h4 { letter-spacing: 0.12em; }

p { margin: 0 0 1em; color: var(--slate); font-weight: 400; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--teal-500);
}

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

section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 17px 30px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--teal-500);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(21, 138, 143, 0.35);
}
.btn-primary:hover { background: var(--teal-600); box-shadow: 0 16px 36px rgba(21, 138, 143, 0.45); }

.btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-dark {
  border-color: var(--navy-800);
  color: var(--navy-800);
}
.btn-dark:hover { background: var(--navy-800); color: var(--white); }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  /* Above the fullscreen mobile panel (1050) so the logo, CTA and the
     close toggle stay visible and clickable while the menu is open. */
  z-index: 1100;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}
.site-nav.scrolled {
  background: rgba(8, 21, 34, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  height: 72px;
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.nav-logo-text { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--teal-400);
  transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 28px; }
.nav-phone {
  display: none;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 30px; height: 22px; position: relative;
  z-index: 1100;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--white); transition: all 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.nav-mobile-panel {
  position: fixed; inset: 0;
  background: var(--navy-950);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 34px;
  z-index: 1050;
  /* Clear the fixed nav bar so the first link never hides behind it. */
  padding-top: var(--nav-h);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-mobile-panel.open { opacity: 1; pointer-events: all; }
.nav-mobile-panel a {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 70% 20%, #10314f 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 10%, transparent 70%);
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.hero-copy { max-width: 640px; }

/* ---------- Hero brand mark (R + rolling waves) ---------- */
.hero-visual {
  flex: none;
  width: min(380px, 30vw);
  animation: hero-logo-float 9s ease-in-out infinite;
}
/* Landing page gets the larger mark; contact keeps the base size. */
.hero .hero-visual { width: min(480px, 36vw); }
.hero-logo { width: 100%; height: auto; display: block; overflow: visible; }
/* Brand GIF: screen blend knocks its dark background out against the
   dark hero, leaving just the animated mark. */
.hero-logo-gif {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: screen;
}
@keyframes hero-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual { animation: none; }
}
@media (max-width: 1080px) {
  .hero-visual { display: none; }
}

/* Contact hero: copy left, animated mark right (same as the homepage). */
.contact-hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.contact-hero-copy { max-width: 640px; }
.hero-copy h1 { color: var(--white); }
.hero-copy h1 span { color: var(--teal-300); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.72);
  max-width: 460px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-scroll-cue {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  z-index: 3;
}
.hero-scroll-cue .stick {
  width: 1px; height: 40px;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0.6));
  position: relative; overflow: hidden;
}
.hero-scroll-cue .stick::after {
  content: '';
  position: absolute; top: -40px; left: 0; width: 100%; height: 40px;
  background: linear-gradient(var(--teal-300), rgba(255,255,255,0));
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue { to { top: 40px; } }

/* ---------- 3D Scroll Sequence ---------- */
.scene-section {
  position: relative;
  /* Tall on purpose: more scroll distance per fact = longer dwell time,
     so a small scroll nudge no longer flips the text. */
  height: 850vh;
  /* Underwater, not outer space: deep cold blue, brightest at the top
     where the light enters, falling off with depth. Stays dark to the
     very end — no wash-out gradient into the next section. */
  background: linear-gradient(180deg, #0a1b2c 0%, #071524 16%, #050f1c 55%, #040b16 100%);
}
.scene-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}
#scene-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 2;
}
/* Renders the "front" slice of the particle field — same scene/camera as
   #scene-canvas, but only the particles assigned to pass in front of the
   caption text are visible here. Sits above .scene-overlay/.scene-progress
   /.spec-strip in the stack so those particles occlude the text. */
#scene-canvas-front {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 7;
  pointer-events: none;
}
.scene-vignette {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 28%, transparent 38%, rgba(2,7,14,0.6) 100%);
}
.scene-tagline {
  position: absolute;
  inset: 0;
  /* Sits BEHIND the canvas on purpose: the falling droplet is rendered on
     the (mostly transparent) canvas above this text, so it visually
     passes in front of / over the tagline as it falls. */
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.scene-tagline.is-active { opacity: 1; }
.scene-tagline span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 0 50px rgba(127,209,201,0.4), 0 0 120px rgba(127,209,201,0.15);
}
.scene-tagline .accent { color: var(--teal-300); }
.scene-overlay {
  position: relative;
  z-index: 5;
  width: 100%;
}
.scene-overlay .container { position: relative; }

/* All five facts now share one centered position and crossfade in place
   (rather than sitting in five different screen corners), so exactly one
   is ever visible at a time and particles can swirl through the same
   fixed spot in front of / behind the text. */
.scene-caption {
  position: absolute;
  top: 50%; left: 50%; /* default — JS assigns each fact its own anchor */
  width: min(660px, 86vw);
  transform: translate(-50%, -46%) scale(0.97);
  color: var(--white);
  text-align: center;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
  pointer-events: none;
}
.scene-caption.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
/* Oversized editorial ghost numeral behind each fact (content set from
   data-index by scene.js) — quiet, structural, expensive-looking. */
.scene-caption::before {
  content: attr(data-index);
  position: absolute;
  top: -0.62em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(6rem, 11vw, 9.5rem);
  line-height: 1;
  color: rgba(159, 240, 232, 0.045);
  -webkit-text-stroke: 1px rgba(159, 240, 232, 0.10);
  letter-spacing: 0.04em;
  z-index: -1;
  pointer-events: none;
}
.scene-caption .tag {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  color: var(--teal-300);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
/* Thin technical rules flanking the tag. */
.scene-caption .tag::before,
.scene-caption .tag::after {
  content: '';
  height: 1px;
  width: 34px;
  flex: none;
}
.scene-caption .tag::before { background: linear-gradient(90deg, transparent, rgba(127,209,201,0.7)); }
.scene-caption .tag::after { background: linear-gradient(90deg, rgba(127,209,201,0.7), transparent); }
.scene-caption h3 {
  color: #f4fafb; /* fallback when background-clip:text is unsupported */
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 26px rgba(127, 209, 201, 0.16));
}
/* Light sweep across the headline as it appears — sunlight catching it. */
@supports (-webkit-background-clip: text) {
  .scene-caption h3 {
    background: linear-gradient(100deg,
      #f4fafb 0%, #f4fafb 40%,
      #aef2ea 50%,
      #f4fafb 60%, #f4fafb 100%);
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
  .scene-caption.is-active h3 {
    animation: cap-sweep 2.4s ease 0.45s both;
  }
}
@keyframes cap-sweep {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}
.scene-caption p {
  color: rgba(255,255,255,0.66);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 560px;
}

.scene-progress {
  position: absolute;
  left: 32px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px;
  z-index: 8;
}
/* Tick-style progress rail — instrument panel, not slideshow dots. */
.scene-progress .dot {
  width: 20px; height: 2px; border-radius: 0;
  background: rgba(255,255,255,0.16);
  transition: background 0.4s ease, width 0.4s ease, box-shadow 0.4s ease;
}
.scene-progress .dot.is-active {
  background: var(--teal-300);
  width: 34px;
  box-shadow: 0 0 14px rgba(127,209,201,0.55);
}

.spec-strip {
  position: absolute;
  bottom: 4%; left: 0; right: 0;
  z-index: 8;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.spec-strip.is-active { opacity: 1; }
.spec-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.spec-strip .spec-item {
  background: rgba(8,21,34,0.55);
  backdrop-filter: blur(6px);
  padding: 18px 20px;
  color: var(--white);
}
.spec-strip .spec-item .label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 6px;
}
.spec-strip .spec-item .value {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
}

.reduced-motion-note { display: none; }

/* Fallback when WebGL is unavailable / reduced motion preferred */
.scene-section.no-3d {
  height: auto;
  padding: 100px 0 140px;
}
.scene-section.no-3d #scene-canvas,
.scene-section.no-3d #scene-canvas-front { display: none; }
.scene-section.no-3d .scene-vignette,
.scene-section.no-3d .scene-tagline { display: none; }
.scene-section.no-3d .scene-sticky {
  position: relative;
  height: auto;
  display: block;
  padding: 0 0 40px;
}
.scene-section.no-3d .scene-overlay .container {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-top: 40px;
}
.scene-section.no-3d .scene-caption {
  position: relative;
  top: auto; left: auto; right: auto; bottom: auto;
  max-width: 520px;
  transform: none;
}
.scene-section.no-3d .scene-progress { display: none; }
.scene-section.no-3d .spec-strip { position: relative; opacity: 1; margin-top: 40px; }
.scene-section.no-3d .scene-fallback-art {
  display: block;
  margin: 0 auto 20px;
  width: min(560px, 90%);
}

.scene-fallback-art { display: none; }

/* Generic scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Who We Are ---------- */
.section-pad { padding: 130px 0; }
.who {
  background: var(--paper);
}
.who-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
.who h2 { max-width: 560px; }
.who-lead {
  font-size: 1.3rem;
  color: var(--navy-700);
  font-weight: 500;
  line-height: 1.5;
}
.who-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 8px;
}
.who-stats .stat {
  border-top: 2px solid var(--navy-800);
  padding-top: 16px;
}
.who-stats .stat .num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy-800);
  display: block;
}
.who-stats .stat .label {
  font-size: 0.85rem;
  color: var(--slate);
  letter-spacing: 0.02em;
}

/* ---------- What We Do ---------- */
.what {
  background: var(--navy-900);
  color: var(--white);
}
.what .eyebrow { color: var(--teal-300); }
.what .eyebrow::before { background: var(--teal-300); }
.what h2 { color: var(--white); max-width: 640px; }
.what-intro { color: rgba(255,255,255,0.65); max-width: 560px; margin-bottom: 60px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
}
.service-card {
  background: var(--navy-900);
  padding: 40px 30px;
  transition: background 0.3s ease, transform 0.3s ease;
  position: relative;
}
.service-card:hover { background: var(--navy-800); transform: translateY(-4px); }
.service-card .num {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: var(--teal-300);
  letter-spacing: 0.08em;
  margin-bottom: 26px;
  display: block;
}
.service-card .icon {
  width: 46px; height: 46px;
  margin-bottom: 24px;
  color: var(--teal-300);
}
.service-card h3 { color: var(--white); margin-bottom: 12px; }
.service-card p { color: rgba(255,255,255,0.6); font-size: 0.92rem; margin: 0; }

/* ---------- Industries ---------- */
.industries {
  background: var(--paper-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.industries-intro {
  max-width: 560px;
  font-size: 1.05rem;
  margin-bottom: 56px;
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);         /* hairline seams between tiles */
  border: 1px solid var(--line);
}
.industry-card {
  position: relative;
  background: var(--white);
  padding: 36px 18px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
/* Corner index — quiet technical numbering, echoing the service cards. */
.industry-card .num {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--slate-light);
  transition: color 0.3s ease;
}
.industry-card .icon {
  width: 34px;
  height: 34px;
  color: var(--teal-500);
  transition: transform 0.3s ease, color 0.3s ease;
}
.industry-card h3 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--navy-800);
  margin: 0;
}
.industry-card:hover {
  background: var(--paper);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(8, 21, 34, 0.10);
  z-index: 1;
}
.industry-card:hover .icon { color: var(--teal-600); transform: scale(1.12); }
.industry-card:hover .num { color: var(--teal-500); }

/* ---------- Spec Sheet Section ---------- */
.spec-section { background: var(--paper); }
.spec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.spec-header .model-tag {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--slate);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 40px;
}
.spec-table {
  border-top: 1px solid var(--line);
}
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  gap: 20px;
}
.spec-row .cat {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-800);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.spec-row ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; }
.spec-row li {
  font-size: 0.94rem;
  color: var(--slate);
  padding: 6px 0;
  break-inside: avoid;
  position: relative;
  padding-left: 18px;
}
.spec-row li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px;
  background: var(--teal-500);
}

.dosing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.9rem;
}
.dosing-table th {
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--navy-800);
}
.dosing-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--navy-700);
}
.dosing-table tr td:first-child { font-weight: 600; color: var(--navy-800); }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-600), var(--teal-500));
  color: var(--white);
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: -20%;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 55%);
}
.cta-inner { position: relative; text-align: center; max-width: 640px; margin: 0 auto; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.6); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 30px;
}
.site-footer p { color: var(--white); }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo img { height: 44px; margin-bottom: 20px; }
.footer-top p { max-width: 320px; font-size: 0.92rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 14px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--teal-300); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Contact Page ---------- */
.contact-hero {
  background: var(--navy-900);
  color: var(--white);
  padding: calc(var(--nav-h) + 100px) 0 100px;
  position: relative;
  overflow: hidden;
}
.contact-hero .hero-grid { opacity: 0.6; }
.contact-hero h1 { color: var(--white); max-width: 700px; }
.contact-hero p { color: rgba(255,255,255,0.7); max-width: 520px; font-size: 1.1rem; }

.contact-main { background: var(--paper); padding: 110px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}
.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  padding: 50px 42px;
  border-radius: 6px;
  height: fit-content;
}
.contact-info-card h3 { color: var(--white); }
.contact-detail {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-detail:first-of-type { margin-top: 24px; }
.contact-detail .icon {
  width: 22px; height: 22px;
  color: var(--teal-300);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-detail .label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: 4px;
}
.contact-detail a, .contact-detail span { font-size: 1rem; color: var(--white); }

.industries-mini {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px;
}
.industries-mini span {
  font-size: 0.78rem;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px;
  color: rgba(255,255,255,0.75);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 50px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--slate-light); margin-top: 6px; }

.map-strip { height: 420px; background: var(--navy-800); position: relative; overflow: hidden; }
.map-strip iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }
.map-overlay {
  position: absolute; bottom: 30px; left: 30px;
  background: var(--white);
  padding: 22px 26px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  max-width: 280px;
}
.map-overlay .label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--teal-500);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.map-overlay strong { display: block; color: var(--navy-800); font-size: 1rem; margin-bottom: 4px; }
.map-overlay span { font-size: 0.85rem; color: var(--slate); }

/* ---------- Responsive ---------- */
@media (min-width: 1200px) {
  .nav-phone { display: flex; align-items: center; }
}

@media (max-width: 1080px) {
  .who-grid { grid-template-columns: 1fr; gap: 50px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .spec-strip .container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-phone { display: none !important; }
  .section-pad { padding: 90px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-row { grid-template-columns: 1fr; }
  .spec-row ul { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }
  .who-stats { grid-template-columns: 1fr 1fr; }
  /* Narrow screens: ignore the JS-assigned anchor positions (inline styles)
     and keep every fact centered so nothing crowds the edges. */
  .scene-caption { left: 50% !important; top: 50% !important; }
  .scene-progress { left: 14px; }
}

@media (max-width: 700px) {
  /* The progress rail collides with the centered mobile captions. */
  .scene-progress { display: none; }
  /* Keep the scroll cue on phones, but tucked to the very bottom edge —
     and reserve space below the hero buttons so they can never meet. */
  .hero-scroll-cue { bottom: 12px; }
  .hero .container { padding-bottom: 110px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .spec-strip .container { grid-template-columns: 1fr 1fr; }
  .scene-caption { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
