/* ══════════════════════════════════════════════════════════════
   AXIS ENGINEERING & SURVEYING — design system
   ══════════════════════════════════════════════════════════════ */

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

:root {
  --navy-950: #050C20;
  --navy-900: #0A1533;
  --navy-800: #101F47;
  --navy-700: #1B2A5E;
  --navy-600: #2A3F7E;
  --steel:    #3A5A8C;

  --accent:      #4A90D9;
  --accent-lit:  #6FB1F0;
  --accent-deep: #2C6DB5;
  --signal:      #FF7A33;

  --white:  #ffffff;
  --paper:  #F7F9FC;
  --paper2: #EDF2F9;
  --line:   #DDE5F0;
  --text:   #16203A;
  --body:   #4A5773;
  --muted:  #8492AE;

  --font-display: 'Barlow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --nav-h: 74px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --shadow-sm: 0 2px 8px rgba(10,21,51,.06);
  --shadow-md: 0 8px 30px rgba(10,21,51,.09);
  --shadow-lg: 0 24px 70px rgba(10,21,51,.16);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }
/* the <picture> wrapper must not become a box, or descendant rules that size
   the <img> against its container (height:100%, object-fit) would break */
picture { display: contents; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* Skip link — visible only once focused */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 400;
  background: var(--accent); color: #fff;
  font-size: .85rem; font-weight: 600; text-decoration: none;
  padding: 12px 20px; border-radius: 3px;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper2); }
::-webkit-scrollbar-thumb { background: var(--steel); border-radius: 99px; border: 3px solid var(--paper2); }
::-webkit-scrollbar-thumb:hover { background: var(--navy-700); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); width: 100%; }

/* ── Shared type ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; display: block; flex: none; opacity: .6; }
.eyebrow.light { color: var(--accent-lit); }

h1,h2,h3,h4 { font-family: var(--font-display); color: var(--text); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }

.sec-title { font-size: clamp(2rem, 4.4vw, 3.35rem); margin-bottom: 20px; text-wrap: balance; }
.sec-title.light { color: var(--white); }
.sec-title em { font-style: normal; color: var(--accent); }

.sec-desc { font-size: 1.05rem; max-width: 62ch; color: var(--body); }
.sec-desc.light { color: rgba(255,255,255,.72); }

.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.sec-head { margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.sec-head.center .sec-desc { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body);
  font-size: .875rem; font-weight: 600; letter-spacing: .03em;
  padding: 15px 30px; border-radius: 3px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(74,144,217,.32); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(74,144,217,.42); }
.btn-primary:active { transform: translateY(0); }

.btn-signal { background: var(--signal); color: #fff; box-shadow: 0 8px 24px rgba(255,122,51,.3); }
.btn-signal:hover { background: #ED6620; transform: translateY(-2px); }

.btn-ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--navy-700); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--paper); }

/* ═══════ SCROLL PROGRESS ═══════ */
#progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 300; pointer-events: none; }
#progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--signal));
  box-shadow: 0 0 12px rgba(74,144,217,.8);
}

/* ═══════ NAV ═══════ */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--nav-h);
  display: flex; align-items: center; background: transparent;
  transition: background .45s var(--ease), height .45s var(--ease), box-shadow .45s var(--ease);
}
#nav::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5,12,32,.8), rgba(5,12,32,0));
  transition: opacity .4s;
}
#nav.scrolled {
  height: 64px;
  background: rgba(8,17,42,.9);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,.07), 0 12px 40px rgba(0,0,0,.3);
}
#nav.scrolled::after { opacity: 0; }

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

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.nav-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); transition: height .45s var(--ease); }
#nav.scrolled .nav-logo img { height: 33px; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links > li > a {
  position: relative; display: block; padding: 9px 14px;
  color: rgba(255,255,255,.76); text-decoration: none;
  font-size: .78rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase;
  transition: color .25s;
}
.nav-links > li > a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav-links > li > a:hover { color: #fff; }
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { transform: scaleX(1); }
.nav-links > li > a.active { color: #fff; }

.nav-right { display: flex; align-items: center; gap: 18px; flex: none; }
.nav-phone {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500;
  color: rgba(255,255,255,.85); text-decoration: none; transition: color .25s;
}
.nav-phone:hover { color: var(--accent-lit); }
.nav-phone svg { width: 15px; height: 15px; }

.nav-cta {
  background: var(--accent); color: #fff !important; padding: 11px 22px; border-radius: 3px;
  font-size: .76rem !important; letter-spacing: .08em; text-decoration: none;
  font-weight: 600; text-transform: uppercase;
  transition: background .3s, transform .3s var(--ease), box-shadow .3s;
  box-shadow: 0 6px 20px rgba(74,144,217,.3);
}
.nav-cta:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(74,144,217,.42); }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0 9px;
}
.nav-burger span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
#drawer {
  position: fixed; inset: 0; z-index: 199;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  padding: calc(var(--nav-h) + 30px) var(--pad) 36px;
  display: flex; flex-direction: column;
  transform: translateY(-101%);
  transition: transform .6s var(--ease-out);
  overflow-y: auto;
  visibility: hidden;
}
#drawer.open { transform: translateY(0); visibility: visible; }
#drawer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image:
    linear-gradient(rgba(74,144,217,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,144,217,.09) 1px, transparent 1px);
  background-size: 48px 48px;
}
#drawer a.d-link {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 7vw, 2rem);
  color: #fff; text-decoration: none; padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  display: flex; align-items: baseline; gap: 14px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .25s;
}
#drawer.open a.d-link { opacity: 1; transform: none; }
#drawer a.d-link:hover { color: var(--accent-lit); }
#drawer a.d-link i { font-family: var(--font-mono); font-style: normal; font-size: .65rem; color: var(--accent); font-weight: 500; }
#drawer .d-foot { margin-top: auto; padding-top: 30px; position: relative; z-index: 1; }
#drawer .d-foot a { display: block; color: rgba(255,255,255,.72); text-decoration: none; font-family: var(--font-mono); font-size: .88rem; margin-bottom: 10px; }
#drawer .d-foot a:hover { color: #fff; }

/* ═══════ HERO ═══════ */
#home {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 56px) 0 76px;
  background: var(--navy-950); overflow: hidden; isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-media video, .hero-media img.poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.05);
}
.hero-media img.poster { z-index: 1; }
.hero-media video { z-index: 2; opacity: 0; transition: opacity 1.4s ease; }
.hero-media video.ready { opacity: 1; }
.hero-media::after {
  content: ''; position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(100deg, rgba(5,12,32,.95) 0%, rgba(5,12,32,.86) 34%, rgba(10,21,51,.58) 66%, rgba(10,21,51,.42) 100%),
    radial-gradient(120% 90% at 82% 18%, rgba(74,144,217,.18), transparent 62%);
}

.hero-grid {
  position: absolute; inset: -10%; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(111,177,240,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,177,240,.12) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(115% 85% at 28% 45%, #000 18%, transparent 76%);
  -webkit-mask-image: radial-gradient(115% 85% at 28% 45%, #000 18%, transparent 76%);
  animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift { to { transform: translate3d(74px, 74px, 0); } }

#tri { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero-scan {
  position: absolute; top: 0; bottom: 0; width: 240px; z-index: -1; left: -20%;
  background: linear-gradient(90deg, transparent, rgba(111,177,240,.10) 45%, rgba(255,255,255,.15) 50%, rgba(111,177,240,.10) 55%, transparent);
  filter: blur(2px); pointer-events: none;
  animation: scanSweep 9s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes scanSweep {
  0%   { left: -20%; opacity: 0; }
  12%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { left: 108%; opacity: 0; }
}

.hero-inner { position: relative; z-index: 4; width: 100%; }
.hero-copy { max-width: 780px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 8px 17px 8px 11px;
  border: 1px solid rgba(111,177,240,.3);
  background: rgba(74,144,217,.1);
  backdrop-filter: blur(10px);
  border-radius: 99px;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: var(--accent-lit);
  margin-bottom: 28px;
}
.hero-tag .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #38D07A; flex: none;
  animation: livePulse 2.4s infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(56,208,122,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(56,208,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,208,122,0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  font-weight: 900; color: #fff; line-height: 1.02;
  letter-spacing: -.035em; margin-bottom: 26px;
}
.hero-title .l { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .l > span { display: block; transform: translateY(105%); animation: lineUp 1.05s var(--ease-out) forwards; }
.hero-title .l:nth-child(1) > span { animation-delay: .15s; }
.hero-title .l:nth-child(2) > span { animation-delay: .29s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-title .grad {
  background: linear-gradient(100deg, var(--accent-lit) 0%, var(--accent) 48%, #A8D3FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 1.2vw, 1.13rem);
  color: rgba(255,255,255,.76); max-width: 58ch; margin-bottom: 36px;
}

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

/* Instrument readout panel */
.hero-readout {
  position: absolute; right: var(--pad); bottom: 104px; z-index: 5; width: 264px;
  border: 1px solid rgba(111,177,240,.24);
  background: rgba(5,12,32,.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: 4px; padding: 16px 18px;
  font-family: var(--font-mono);
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(22px);
  animation: fadeUp .9s var(--ease-out) 1.05s forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hero-readout .ro-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-lit); padding-bottom: 10px; margin-bottom: 11px;
  border-bottom: 1px solid rgba(111,177,240,.18);
}
.hero-readout .ro-head b { font-weight: 500; color: rgba(255,255,255,.42); }
.hero-readout .ro-row { display: flex; align-items: baseline; justify-content: space-between; font-size: .76rem; padding: 4px 0; }
.hero-readout .ro-row span { color: rgba(255,255,255,.42); font-size: .6rem; letter-spacing: .11em; }
.hero-readout .ro-row var { font-style: normal; color: #fff; font-weight: 500; font-variant-numeric: tabular-nums; }
.hero-readout .ro-bar { margin-top: 12px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.hero-readout .ro-bar i { display: block; height: 100%; width: 12%; background: linear-gradient(90deg, var(--accent), var(--signal)); animation: roScan 3.4s var(--ease) infinite; }
@keyframes roScan { 0%{width:12%} 50%{width:94%} 100%{width:12%} }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(26px, 5vw, 62px);
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.14); max-width: 640px;
}
.stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 3.3vw, 2.8rem);
  color: #fff; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.stat-num sup { color: var(--accent); font-size: .5em; vertical-align: super; margin-left: 1px; }
.stat-label { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 8px; font-weight: 500; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; z-index: 6; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .56rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.38); text-decoration: none; transition: color .3s;
}
.scroll-cue:hover { color: #fff; }
.scroll-cue i { display: block; width: 1px; height: 42px; background: rgba(255,255,255,.14); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; inset: 0; background: var(--accent); animation: cueDrop 2.1s var(--ease) infinite; }
@keyframes cueDrop { 0%{transform:translateY(-100%)} 60%,100%{transform:translateY(100%)} }

/* ═══════ SCROLL REVEAL ═══════ */
[data-rv] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-rv="left"]  { transform: translateX(-36px); }
[data-rv="right"] { transform: translateX(36px); }
[data-rv="scale"] { transform: scale(.94); }
[data-rv].in { opacity: 1; transform: none; }

/* ═══════ CREDENTIAL MARQUEE ═══════ */
.marquee {
  background: var(--navy-900);
  border-block: 1px solid rgba(255,255,255,.07);
  padding: 20px 0; overflow: hidden; position: relative;
}
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: clamp(50px, 12vw, 160px); z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--navy-900), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--navy-900), transparent); }
.mq-track { display: flex; width: max-content; animation: mqRun 44s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mqRun { to { transform: translateX(-50%); } }
.mq-item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 clamp(20px, 3vw, 40px);
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6);
  white-space: nowrap;
}
.mq-item svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.mq-item b { color: #fff; font-weight: 600; }

/* ═══════ ABOUT ═══════ */
#about { background: var(--white); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 84px); align-items: center;
}

.about-visual { position: relative; }
.about-photo {
  position: relative; border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3.1;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.about-photo:hover img { --pscale: 1.16; }
.about-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,12,32,.55));
}
/* blueprint corner ticks */
.about-photo .tick { position: absolute; width: 24px; height: 24px; border: 2px solid var(--accent); z-index: 2; opacity: .9; }
.about-photo .tick.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.about-photo .tick.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.about-photo .tick.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.about-photo .tick.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* Credentials card floating over the photo */
.cred-card {
  position: absolute; right: -22px; bottom: -30px; z-index: 3;
  width: min(290px, 84%);
  background: var(--navy-900);
  border: 1px solid rgba(111,177,240,.2);
  border-radius: 4px; padding: 22px 24px;
  box-shadow: 0 30px 70px rgba(10,21,51,.4);
}
.cred-card::before {
  content: ''; position: absolute; inset: 0; border-radius: 4px; pointer-events: none;
  background-image:
    linear-gradient(rgba(74,144,217,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,144,217,.08) 1px, transparent 1px);
  background-size: 26px 26px;
}
.cred-card .cc-name { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; color: #fff; letter-spacing: -.01em; }
.cred-card .cc-role { position: relative; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-lit); margin-top: 5px; }
.cred-card .cc-badges { position: relative; display: flex; gap: 7px; margin-top: 16px; }
.cred-card .cc-badges b {
  font-family: var(--font-mono); font-size: .65rem; font-weight: 700; letter-spacing: .08em;
  color: #fff; background: rgba(74,144,217,.2);
  border: 1px solid rgba(111,177,240,.35);
  padding: 5px 11px; border-radius: 3px;
}
.cred-card .cc-line { position: relative; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.cred-card .cc-line a { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.8); text-decoration: none; font-family: var(--font-mono); font-size: .74rem; padding: 3px 0; transition: color .25s; }
.cred-card .cc-line a:hover { color: var(--accent-lit); }
.cred-card .cc-line svg { width: 13px; height: 13px; color: var(--accent); flex: none; }

.about-text p { margin-bottom: 18px; font-size: 1.02rem; }
.about-values { margin-top: 34px; display: flex; flex-direction: column; gap: 4px; }
.value-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 18px 20px; border-radius: 4px;
  border: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.value-item:hover { background: var(--paper); border-color: var(--line); transform: translateX(6px); }
.value-icon {
  flex: none; width: 42px; height: 42px; border-radius: 3px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy-700), var(--steel));
  color: #fff; box-shadow: 0 6px 16px rgba(27,42,94,.24);
}
.value-icon svg { width: 20px; height: 20px; }
.value-text strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--text); margin-bottom: 3px; }
.value-text span { font-size: .92rem; color: var(--body); }

/* ═══════ SERVICES ═══════ */
#services { background: var(--paper); position: relative; overflow: hidden; }
/* animated topographic contours behind the section */
.topo-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }
.topo-bg svg { width: 100%; height: 100%; }
.topo-bg path { fill: none; stroke: var(--accent); stroke-width: 1.1; opacity: .16; }
#services > .wrap { position: relative; z-index: 1; }

.svc-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px; position: relative;
}
.svc-tab {
  font-family: var(--font-body); font-size: .84rem; font-weight: 600; letter-spacing: .02em;
  padding: 13px 24px; border-radius: 3px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--body);
  transition: all .32s var(--ease);
}
.svc-tab:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }
.svc-tab.active {
  background: var(--navy-700); border-color: var(--navy-700); color: #fff;
  box-shadow: 0 10px 26px rgba(27,42,94,.28);
}

.svc-panel { display: none; }
.svc-panel.active { display: block; animation: panelIn .6s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Panel hero strip — the field photo for this discipline */
.svc-banner {
  position: relative; border-radius: 4px; overflow: hidden;
  margin-bottom: 32px; aspect-ratio: 21/6; min-height: 190px;
  box-shadow: var(--shadow-md);
}
.svc-banner img { width: 100%; height: 100%; object-fit: cover; }
.svc-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,12,32,.9), rgba(5,12,32,.55) 45%, rgba(5,12,32,.18));
}
.svc-banner .sb-copy {
  position: absolute; z-index: 2; left: clamp(22px, 4vw, 46px); top: 50%; transform: translateY(-50%);
  max-width: 52ch;
}
.svc-banner .sb-copy h3 { color: #fff; font-size: clamp(1.2rem, 2.4vw, 1.85rem); margin-bottom: 7px; }
.svc-banner .sb-copy p { color: rgba(255,255,255,.75); font-size: .94rem; }
.svc-banner .sb-code {
  position: absolute; z-index: 2; right: 20px; top: 18px;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.2); padding: 5px 10px; border-radius: 3px;
  backdrop-filter: blur(6px);
}

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }

.service-card {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 30px 28px 32px; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.service-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--signal));
  transform: scaleY(0); transform-origin: top;
  transition: transform .5s var(--ease-out);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-card .sc-num {
  position: absolute; right: 22px; top: 22px;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; color: var(--muted); opacity: .55;
}
.service-icon {
  width: 48px; height: 48px; border-radius: 3px; display: grid; place-items: center;
  background: var(--paper2); color: var(--navy-700); margin-bottom: 20px;
  transition: background .4s var(--ease), color .4s, transform .5s var(--ease);
}
.service-card:hover .service-icon { background: var(--navy-700); color: #fff; transform: rotate(-6deg) scale(1.06); }
.service-icon svg { width: 23px; height: 23px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; }
.service-card p { font-size: .93rem; color: var(--body); }

/* ═══════ PROCESS TIMELINE ═══════ */
#process { background: var(--white); position: relative; }
.proc-wrap { position: relative; margin-top: 20px; }
/* the drawn survey traverse line */
.proc-rail {
  position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.proc-rail i {
  display: block; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--accent), var(--signal));
  transition: height .18s linear;
}
.proc-step {
  position: relative; display: grid;
  grid-template-columns: 56px 1fr; gap: 26px;
  padding-bottom: 72px;
}
.proc-step:last-child { padding-bottom: 0; }
.proc-dot {
  position: relative; z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); border: 2px solid var(--line);
  font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: var(--muted);
  transition: all .5s var(--ease);
}
.proc-step.lit .proc-dot {
  border-color: var(--accent); color: #fff;
  background: linear-gradient(140deg, var(--navy-700), var(--accent-deep));
  box-shadow: 0 0 0 6px rgba(74,144,217,.14), 0 10px 26px rgba(44,109,181,.3);
  transform: scale(1.06);
}
.proc-body { padding-top: 8px; }
.proc-body h3 { font-size: 1.22rem; margin-bottom: 8px; transition: color .4s; }
.proc-step.lit .proc-body h3 { color: var(--navy-700); }
.proc-body p { font-size: .97rem; max-width: 66ch; }
.proc-body .proc-meta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--paper2);
  padding: 6px 12px; border-radius: 3px;
}

/* ═══════ PROJECTS ═══════ */
#projects { background: var(--paper); }
.proj-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.proj-filter {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase;
  padding: 9px 17px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--body);
  transition: all .3s var(--ease);
}
.proj-filter:hover { border-color: var(--accent); color: var(--accent-deep); }
.proj-filter.active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }

.project-card {
  position: relative; background: var(--white);
  border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .4s;
  display: flex; flex-direction: column;
}
.project-card.hide { display: none; }
.project-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: transparent; }

.project-thumb { position: relative; aspect-ratio: 16/10.5; overflow: hidden; background: var(--navy-800); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.project-card:hover .project-thumb img { --pscale: 1.18; }
.project-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,12,32,.35) 0%, transparent 40%, rgba(5,12,32,.5));
  opacity: .85; transition: opacity .5s;
}
.project-card:hover .project-thumb::after { opacity: .6; }

/* survey crosshair reticle that appears on hover */
.project-thumb .reticle {
  position: absolute; z-index: 3; left: 50%; top: 50%;
  width: 66px; height: 66px; transform: translate(-50%,-50%) scale(.6) rotate(-25deg);
  opacity: 0; transition: opacity .45s var(--ease), transform .55s var(--ease-out);
  color: #fff;
}
.project-card:hover .project-thumb .reticle { opacity: .95; transform: translate(-50%,-50%) scale(1) rotate(0deg); }

.project-thumb-label {
  position: absolute; z-index: 3; left: 14px; top: 14px;
  font-family: var(--font-mono); font-size: .6rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: rgba(5,12,32,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 11px; border-radius: 3px;
}
.project-meta-tag {
  position: absolute; z-index: 3; right: 14px; bottom: 14px;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em;
  color: rgba(255,255,255,.9);
}

.project-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.project-body h3 { font-size: 1.08rem; margin-bottom: 9px; line-height: 1.25; }
.project-body p { font-size: .92rem; color: var(--body); }
.project-body .pb-foot {
  margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px;
}
.project-body .pb-foot span {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--paper2); padding: 5px 9px; border-radius: 3px;
}

/* ═══════ STATS BAND ═══════ */
#why {
  position: relative; overflow: hidden;
  background: var(--navy-950);
  padding: clamp(90px, 12vw, 150px) 0;
  isolation: isolate;
}
#why .why-bg { position: absolute; inset: 0; z-index: -2; }
#why .why-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
#why::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,12,32,.92), rgba(5,12,32,.78) 50%, rgba(5,12,32,.95)),
    radial-gradient(80% 60% at 50% 40%, rgba(74,144,217,.16), transparent 70%);
}
#why .why-grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(111,177,240,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,177,240,.09) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(100% 80% at 50% 50%, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(100% 80% at 50% 50%, #000 25%, transparent 80%);
}
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1); border-radius: 4px; overflow: hidden;
}
.why-item {
  background: rgba(10,21,51,.55); backdrop-filter: blur(6px);
  padding: 40px 26px; text-align: center;
  transition: background .45s var(--ease);
}
.why-item:hover { background: rgba(74,144,217,.14); }
.why-num {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(160deg, #fff 20%, var(--accent-lit));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.why-label {
  margin-top: 14px; font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255,255,255,.55); font-weight: 500; line-height: 1.6;
}

/* ═══════ SERVICE AREA ═══════ */
#area { background: var(--white); }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.county-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-top: 28px; }
.county {
  background: var(--white); padding: 16px 18px;
  display: flex; align-items: center; gap: 11px;
  font-size: .9rem; font-weight: 500; color: var(--text);
  transition: background .3s, color .3s;
}
.county:hover { background: var(--navy-700); color: #fff; }
.county i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none;
  box-shadow: 0 0 0 3px rgba(74,144,217,.16);
}
.county:hover i { background: var(--signal); box-shadow: 0 0 0 3px rgba(255,122,51,.25); }

.area-photo { position: relative; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.area-photo img { width: 100%; height: 100%; object-fit: cover; }
.area-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(74,144,217,.1), rgba(5,12,32,.35)); }
.area-photo .ap-badge {
  position: absolute; z-index: 2; left: 20px; bottom: 20px;
  background: rgba(5,12,32,.66); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 4px;
  padding: 13px 18px; color: #fff;
}
.area-photo .ap-badge b { display: block; font-family: var(--font-display); font-size: 1.06rem; }
.area-photo .ap-badge span { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-lit); }

/* ═══════ FAQ ═══════ */
#faq { background: var(--paper); }
.faq-list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 24px 44px 24px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: var(--text); transition: color .3s;
}
.faq-q:hover { color: var(--accent-deep); }
.faq-q::after, .faq-q::before {
  content: ''; position: absolute; right: 6px; top: 50%; background: var(--accent);
  transition: transform .4s var(--ease), opacity .3s;
}
.faq-q::before { width: 15px; height: 2px; transform: translateY(-50%); }
.faq-q::after  { width: 2px; height: 15px; right: 12.5px; transform: translateY(-50%); }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; height: 0; transition: height .45s var(--ease); }
.faq-a > div { padding: 0 40px 26px 0; font-size: .97rem; color: var(--body); }

/* ═══════ CONTACT ═══════ */
#contact { background: var(--white); position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 5vw, 66px); align-items: start; }

.contact-info { display: flex; flex-direction: column; gap: 6px; }
.contact-detail {
  display: flex; gap: 17px; align-items: flex-start;
  padding: 19px 20px; border-radius: 4px; border: 1px solid transparent;
  transition: background .35s, border-color .35s, transform .35s var(--ease);
}
.contact-detail:hover { background: var(--paper); border-color: var(--line); transform: translateX(5px); }
.contact-detail-icon {
  flex: none; width: 42px; height: 42px; border-radius: 3px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy-700), var(--steel)); color: #fff;
  box-shadow: 0 6px 16px rgba(27,42,94,.22);
}
.contact-detail-icon svg { width: 19px; height: 19px; }
.contact-detail-text strong {
  display: block; font-family: var(--font-mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.contact-detail-text a, .contact-detail-text span {
  font-size: 1rem; font-weight: 600; color: var(--text); text-decoration: none;
  transition: color .25s;
}
.contact-detail-text a:hover { color: var(--accent-deep); }

.contact-form {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 4px; padding: clamp(26px, 3.4vw, 40px);
  position: relative; overflow: hidden;
}
.contact-form::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--accent), var(--signal));
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 17px; }
.form-group label {
  display: block; font-family: var(--font-mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.form-group label .req { color: var(--signal); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; font-family: var(--font-body); font-size: .95rem; color: var(--text);
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  padding: 13px 15px; transition: border-color .3s, box-shadow .3s, background .3s;
}
.form-group textarea { min-height: 128px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,144,217,.14);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #A9B4C9; }
.form-group.err input, .form-group.err select, .form-group.err textarea { border-color: #E0574A; box-shadow: 0 0 0 3px rgba(224,87,74,.12); }
.form-group .msg { display: none; font-size: .76rem; color: #D0453A; margin-top: 6px; }
.form-group.err .msg { display: block; }

.form-submit {
  width: 100%; margin-top: 6px; padding: 17px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  color: #fff; background: var(--navy-700); border: 0; border-radius: 3px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .3s, transform .3s var(--ease), box-shadow .3s;
  box-shadow: 0 10px 28px rgba(27,42,94,.26);
}
.form-submit:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(44,109,181,.34); }
.form-submit svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.form-submit:hover svg { transform: translateX(4px); }
.form-note { margin-top: 14px; font-size: .78rem; color: var(--muted); text-align: center; }
.form-ok {
  display: none; align-items: flex-start; gap: 12px;
  background: #E9F7EF; border: 1px solid #B6E3C8; border-radius: 3px;
  padding: 15px 17px; margin-bottom: 18px; color: #1C6B41; font-size: .9rem;
}
.form-ok.show { display: flex; }
.form-ok svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.form-ok.is-error { background: #FDECEA; border-color: #F3C0BA; color: #A5352A; }

/* honeypot — real people never see it, bots fill it in */
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

/* ═══════ CTA BAND ═══════ */
#cta {
  background: var(--navy-900);
  padding: clamp(60px, 8vw, 96px) 0; position: relative; overflow: hidden; isolation: isolate;
}
#cta .cta-bg { position: absolute; inset: 0; z-index: -2; }
#cta .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
#cta::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(10,21,51,.96), rgba(27,42,94,.9) 55%, rgba(44,109,181,.82));
}
#cta::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(90% 100% at 80% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 100% at 80% 50%, #000, transparent 75%);
}
.cta-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 34px; flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.cta-inner p { color: rgba(255,255,255,.74); max-width: 52ch; }
.cta-actions { display: flex; gap: 13px; flex-wrap: wrap; }

/* ═══════ FOOTER ═══════ */
footer { background: var(--navy-950); color: rgba(255,255,255,.6); padding: clamp(56px, 7vw, 80px) 0 0; }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 54px); padding-bottom: 52px;
}
.foot-brand img { height: 44px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.foot-brand p { font-size: .9rem; max-width: 36ch; margin-bottom: 20px; }
.foot-badges { display: flex; gap: 7px; }
.foot-badges b {
  font-family: var(--font-mono); font-size: .64rem; font-weight: 700; letter-spacing: .08em; color: #fff;
  background: rgba(74,144,217,.16); border: 1px solid rgba(111,177,240,.3);
  padding: 5px 11px; border-radius: 3px;
}
.foot-col h4 {
  color: #fff; font-family: var(--font-mono); font-size: .64rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { text-decoration: none; font-size: .9rem; transition: color .25s, transform .25s var(--ease); display: inline-block; }
.foot-col a:hover { color: var(--accent-lit); transform: translateX(3px); }
.foot-contact a { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .84rem; }
.foot-contact svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 24px 0 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem;
}
.foot-bottom .fb-coord { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; color: rgba(255,255,255,.35); }

/* Back to top */
#toTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy-700); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(10,21,51,.35);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.85);
  transition: all .4s var(--ease);
}
#toTop.show { opacity: 1; visibility: visible; transform: none; }
#toTop:hover { background: var(--accent); transform: translateY(-3px); }
#toTop svg { width: 18px; height: 18px; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1080px) {
  .about-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; }
  .cred-card { right: 16px; bottom: -26px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-readout { display: none; }
}

@media (max-width: 900px) {
  .nav-links, .nav-phone { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .svc-banner { aspect-ratio: 16/9; }
  .svc-banner .sb-copy { top: auto; bottom: 22px; transform: none; }
}

@media (max-width: 640px) {
  :root { --nav-h: 66px; }
  .why-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px 34px; }
  .proc-step { grid-template-columns: 44px 1fr; gap: 18px; }
  .proc-dot { width: 44px; height: 44px; font-size: .72rem; }
  .proc-rail { left: 21px; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
  .cta-actions { width: 100%; flex-direction: column; }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .foot-bottom { justify-content: flex-start; }
}


/* ══════════════════════════════════════════════════════════════
   SECTION MOTION — life below the fold
   ══════════════════════════════════════════════════════════════ */

/* ── Section titles reveal word by word ── */
.sec-title .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: .14em; margin-bottom: -.14em;
}
.sec-title .w > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform .85s var(--ease-out);
}
.sec-title.rv-in .w > span { transform: translateY(0); }

/* ── Drifting blueprint grid for the light sections ── */
.blueprint {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(58,90,140,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,90,140,.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 10%, transparent 72%);
  animation: bpDrift 34s linear infinite;
}
@keyframes bpDrift { to { background-position: 58px 58px; } }
#about > .wrap, #process > .wrap, #contact > .wrap, #area > .wrap { position: relative; z-index: 1; }
/* `clip` contains the drifting blueprint grid without creating a scroll
   container — `hidden` would, and that silently disables position:sticky
   for descendants (the site plan in #process). `hidden` stays first as the
   fallback for engines that do not know `clip`. */
#about, #process, #contact, #area { overflow: hidden; overflow: clip; }

/* ── Parallax layers ──
   The offset rides a custom property so hover scaling still composes
   instead of being clobbered by an inline transform. */
[data-par] {
  will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0) scale(var(--pscale, 1.1));
}
.about-photo img   { --pscale: 1.1; }
.project-thumb img { --pscale: 1.1; }
.svc-banner img    { --pscale: 1.08; }
#why .why-bg img   { --pscale: 1.18; }
.area-photo img    { --pscale: 1.1; }
#cta .cta-bg img   { --pscale: 1.14; }

/* ── About photo: surveyor's annotation overlay ── */
.about-photo .annot {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  width: 100%; height: 100%;
}
.about-photo .annot .ln {
  fill: none; stroke: var(--accent-lit); stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 3px rgba(5,12,32,.6));
}
.about-photo .annot .bnd {
  fill: rgba(111,177,240,.07);
  stroke: var(--accent-lit); stroke-width: 1.6;
  stroke-dasharray: 7 5;
  vector-effect: non-scaling-stroke;
}
.about-photo .annot .pt {
  fill: var(--signal); stroke: #fff; stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  opacity: 0; transform-box: fill-box; transform-origin: center;
  transition: opacity .4s var(--ease);
}
.about-photo.annot-in .annot .pt { opacity: 1; animation: ptPop .6s var(--ease-out) backwards; }
.about-photo.annot-in .annot .pt:nth-of-type(1) { animation-delay: .95s; }
.about-photo.annot-in .annot .pt:nth-of-type(2) { animation-delay: 1.08s; }
.about-photo.annot-in .annot .pt:nth-of-type(3) { animation-delay: 1.21s; }
.about-photo.annot-in .annot .pt:nth-of-type(4) { animation-delay: 1.34s; }
@keyframes ptPop { from { transform: scale(0); } to { transform: scale(1); } }

.about-photo .annot .lbl {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  fill: #fff; letter-spacing: .06em;
  paint-order: stroke; stroke: rgba(5,12,32,.75); stroke-width: 3px; stroke-linejoin: round;
  opacity: 0; transition: opacity .6s var(--ease) 1.35s;
}
.about-photo.annot-in .annot .lbl { opacity: 1; }

/* ── Service tabs: sliding indicator ── */
.svc-tabs { position: relative; }
.svc-tab-ind {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%;
  border-radius: 3px; background: var(--navy-700);
  box-shadow: 0 10px 26px rgba(27,42,94,.28);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
  pointer-events: none;
}
.svc-tab { position: relative; z-index: 1; }
/* the indicator now supplies the fill, so the active chip goes transparent */
.svc-tab.active { background: transparent; border-color: transparent; box-shadow: none; }

/* ── Service + value icons draw themselves in ── */
.service-icon svg path, .value-icon svg path,
.contact-detail-icon svg path { stroke-dasharray: var(--len, 0); }
.icon-draw path { stroke-dashoffset: var(--len, 0); }
.icon-draw.drawn path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.15s var(--ease-out);
}

/* ── Service card: sheen sweep on hover ── */
.service-card > .sheen {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.service-card > .sheen::before {
  content: ''; position: absolute; top: -60%; bottom: -60%; width: 40px; left: -80px;
  background: linear-gradient(90deg, transparent, rgba(111,177,240,.16), transparent);
  transform: rotate(14deg);
  transition: left .75s var(--ease-out);
}
.service-card:hover > .sheen::before { left: 118%; }
.service-card > * { position: relative; z-index: 1; }

/* ── Process: live station dot ── */
.proc-step.lit .proc-dot::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid var(--accent);
  animation: stationPing 2.2s var(--ease) infinite;
}
@keyframes stationPing {
  0%   { transform: scale(1);    opacity: .7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
/* a bearing tick that travels the rail as it fills */
.proc-rail i::after {
  content: ''; position: absolute; left: -4px; right: -4px; bottom: 0; height: 10px;
  background: linear-gradient(180deg, transparent, var(--signal));
  filter: blur(2px);
}

/* ── Projects: index + live coordinate on hover ── */
.project-thumb .pt-coord {
  position: absolute; z-index: 3; left: 14px; bottom: 14px;
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em;
  color: #fff; background: rgba(5,12,32,.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16);
  padding: 5px 9px; border-radius: 3px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .45s var(--ease-out);
}
.project-card:hover .pt-coord { opacity: 1; transform: none; }

/* ── Stats band: theodolite sweep ── */
#why .why-sweep {
  position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 150vmax; height: 150vmax; transform: translate(-50%,-50%);
  pointer-events: none;
  background: conic-gradient(from 0deg,
    rgba(111,177,240,.16) 0deg,
    rgba(111,177,240,.05) 22deg,
    transparent 55deg,
    transparent 360deg);
  animation: sweepSpin 14s linear infinite;
  mask-image: radial-gradient(closest-side, #000 12%, transparent 62%);
  -webkit-mask-image: radial-gradient(closest-side, #000 12%, transparent 62%);
  opacity: .85;
}
@keyframes sweepSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* concentric range rings under the stats */
#why .why-rings {
  position: absolute; z-index: -1; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: min(760px, 90vw); aspect-ratio: 1;
  pointer-events: none; opacity: .5;
}
#why .why-rings i {
  position: absolute; inset: 0; margin: auto;
  border: 1px solid rgba(111,177,240,.16); border-radius: 50%;
  animation: ringPulse 5s var(--ease) infinite;
}
#why .why-rings i:nth-child(1) { width: 34%; height: 34%; animation-delay: 0s; }
#why .why-rings i:nth-child(2) { width: 62%; height: 62%; animation-delay: .7s; }
#why .why-rings i:nth-child(3) { width: 90%; height: 90%; animation-delay: 1.4s; }
@keyframes ringPulse {
  0%, 100% { opacity: .25; transform: scale(.98); }
  50%      { opacity: .7;  transform: scale(1); }
}

/* ── Service area: counties light up as a traverse ── */
.county { position: relative; overflow: hidden; }
.county i { transition: background .4s, box-shadow .4s, transform .5s var(--ease-out); }
.county.lit i {
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255,122,51,.2);
  transform: scale(1.25);
}
.county::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(74,144,217,.14), transparent);
  transform: translateX(-101%);
}
.county.lit::after { animation: countySweep .85s var(--ease-out); }
@keyframes countySweep { to { transform: translateX(101%); } }

/* ── Area photo: pulsing GPS fix ── */
.area-photo .fix {
  position: absolute; z-index: 3; right: 22%; top: 34%;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--signal); border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.area-photo .fix::before, .area-photo .fix::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid rgba(255,122,51,.85);
  animation: fixPing 2.6s var(--ease) infinite;
}
.area-photo .fix::after { animation-delay: 1.3s; }
@keyframes fixPing {
  0%   { transform: scale(1); opacity: .9; }
  80%, 100% { transform: scale(3.4); opacity: 0; }
}

/* ── Contact: focus glow ── */
.form-group { position: relative; }
.form-group input, .form-group select, .form-group textarea { position: relative; z-index: 1; }
.form-group::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--signal));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
  border-radius: 2px;
}
.form-group:focus-within::after { transform: scaleX(1); }

/* ── FAQ: marker slides in on the open row ── */
.faq-item { position: relative; }
.faq-item::before {
  content: ''; position: absolute; left: -14px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--signal));
  transform: scaleY(0); transform-origin: top;
  transition: transform .45s var(--ease-out);
  border-radius: 2px;
}
.faq-item.open::before { transform: scaleY(1); }

/* ══════════════════════════════════════════════════════════════
   PROGRESSIVE SITE PLAN — assembles as the process is read
   ══════════════════════════════════════════════════════════════ */
.proc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
  margin-top: 24px;
}
.proc-sticky { position: sticky; top: calc(var(--nav-h) + 34px); }

/* The sheet must stay comfortably shorter than the viewport, or it both
   overflows a laptop screen and leaves almost no room to stay pinned while
   the steps scroll past it. */
.plan-sheet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 620px;
  max-height: min(620px, calc(100vh - var(--nav-h) - 96px));
  max-height: min(620px, calc(100svh - var(--nav-h) - 96px));
}
.plan-head, .plan-legend { flex: none; }
.plan-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px;
  background: var(--navy-900);
  font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase;
}
.plan-head .ps-title { color: rgba(255,255,255,.62); }
.plan-head .ps-step {
  color: #fff; background: rgba(74,144,217,.24);
  border: 1px solid rgba(111,177,240,.4);
  padding: 4px 10px; border-radius: 3px; white-space: nowrap;
}
.plan-body {
  background: #FBFCFE;
  position: relative;
  /* aspect-ratio supplies the natural height the absolute SVG cannot;
     flex-shrink then lets it give way when the sheet's max-height binds */
  aspect-ratio: 1;
  flex: 0 1 auto;
  min-height: 0;
}
/* Absolutely filling the remaining space is the only way the drawing reliably
   shrinks on a short screen — as a flex child its 1:1 viewBox wins and the
   bottom of the sheet gets clipped. preserveAspectRatio letterboxes inside. */
/* An SVG is a replaced element: with height:auto it keeps its intrinsic 1:1
   size and simply ignores `bottom`, overflowing the sheet on short screens.
   Explicit percentage dimensions are what actually constrain it. */
.plan-svg {
  position: absolute; top: 6px; left: 6px;
  width: calc(100% - 12px); height: calc(100% - 12px);
  display: block;
}

/* layers stay dark until their step is reached */
.plan-svg .pl { opacity: 0; transition: opacity .5s var(--ease); }
.plan-svg .pl.on { opacity: 1; }

.plan-svg .d {
  fill: none;
  stroke: var(--navy-700);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.plan-svg .parcel { stroke: var(--navy-700); stroke-width: 2.2; }
.plan-svg .parcel-fill { fill: rgba(74,144,217,.05); stroke: none; }
.plan-svg .mon circle { fill: var(--signal); stroke: var(--navy-900); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.plan-svg .ctr { stroke: var(--accent); stroke-width: 1; opacity: .55; }
.plan-svg .ctr.idx { stroke-width: 1.8; opacity: .8; }
.plan-svg .spot .d { stroke: var(--navy-600); stroke-width: 1.3; }
.plan-svg .pad { fill: rgba(27,42,94,.09); stroke: var(--navy-700); stroke-width: 1.8; }
.plan-svg .hatch { stroke: var(--navy-600); stroke-width: .7; opacity: .45; }
.plan-svg .drive { stroke: var(--steel); stroke-width: 5; opacity: .5; }
.plan-svg .basin { fill: rgba(74,144,217,.14); stroke: var(--accent-deep); stroke-width: 1.4; stroke-dasharray: 5 3; }
.plan-svg .util { stroke-width: 1.5; }
.plan-svg .util.san { stroke: var(--signal); stroke-dasharray: 8 4; }
.plan-svg .util.wtr { stroke: var(--accent-deep); stroke-dasharray: 2 4; }
.plan-svg .str { fill: #fff; stroke: var(--navy-700); stroke-width: 1.4; }
.plan-svg .seal circle { fill: rgba(255,122,51,.08); stroke: var(--signal); stroke-width: 1.4; }

.plan-svg .t { font-family: var(--font-mono); fill: var(--navy-700); }
.plan-svg .t.lg  { font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.plan-svg .t.sm  { font-size: 9.5px; font-weight: 500; letter-spacing: .08em; }
.plan-svg .t.xs  { font-size: 8px;  letter-spacing: .04em; }
.plan-svg .t.xxs { font-size: 5.4px; letter-spacing: .06em; fill: var(--signal); }
.plan-svg .t.mut { fill: var(--muted); }

.plan-legend {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.lg-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted);
  transition: color .4s var(--ease);
}
.lg-item i {
  width: 7px; height: 7px; border-radius: 2px; flex: none;
  background: var(--line);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.lg-item.on { color: var(--navy-700); }
.lg-item.on i {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,144,217,.16);
  transform: scale(1.15);
}

/* ══════════════════════════════════════════════════════════════
   MORE SECTION LIFE
   ══════════════════════════════════════════════════════════════ */

/* ── Cursor spotlight on cards ── */
.service-card::after, .project-card::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
              rgba(74,144,217,.13), transparent 62%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.service-card:hover::after, .project-card:hover::after { opacity: 1; }
.project-card > * { position: relative; z-index: 1; }

/* ── Service card: arrow slides in ── */
.service-card .sc-go {
  position: absolute; right: 22px; bottom: 22px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-700); color: #fff;
  opacity: 0; transform: translate(6px, 6px) scale(.7);
  transition: opacity .4s var(--ease), transform .5s var(--ease-out);
}
.service-card .sc-go svg { width: 13px; height: 13px; }
.service-card:hover .sc-go { opacity: 1; transform: none; }
.service-card { padding-bottom: 56px; }

/* ── Magnetic buttons ──
   Offset rides custom props so the hover lift still composes. */
.btn-primary, .btn-signal, .nav-cta, .form-submit {
  transform: translate(var(--mgx, 0px), var(--mgy, 0px));
}
.btn-primary:hover, .btn-signal:hover, .nav-cta:hover, .form-submit:hover {
  transform: translate(var(--mgx, 0px), calc(var(--mgy, 0px) - 2px));
}

/* ── Wipe reveals for photography ── */
[data-rv="wipe"] {
  opacity: 1; transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.15s var(--ease-out);
}
[data-rv="wipe"].in { clip-path: inset(0 0 0 0); }

/* ── Eyebrow scramble keeps a stable box ── */
.eyebrow { font-variant-numeric: tabular-nums; }

/* ── Marquee is JS-driven once scripted ── */
.mq-track.js { animation: none; }

@media (max-width: 900px) {
  .proc-layout { grid-template-columns: 1fr; }
  .proc-sticky { position: static; }
  .plan-sheet { max-width: 520px; margin-inline: auto; }
}
/* ═══════ 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;
  }
  [data-rv] { opacity: 1 !important; transform: none !important; }
  .hero-title .l > span { transform: none !important; }
  .hero-readout { opacity: 1 !important; transform: none !important; }
  .hero-scan, .hero-grid { display: none; }

  /* section motion stands down too */
  .sec-title .w > span { transform: none !important; }
  .blueprint, #why .why-sweep, #why .why-rings,
  .proc-rail i::after, .area-photo .fix::before, .area-photo .fix::after { display: none; }
  [data-par] { transform: none !important; }
  .icon-draw path { stroke-dashoffset: 0 !important; }
  .about-photo .annot .pt, .about-photo .annot .lbl { opacity: 1 !important; }
  .about-photo .annot .bnd, .about-photo .annot .ln { stroke-dashoffset: 0 !important; }

  /* the newer section effects stand down too */
  .plan-svg .pl { opacity: 1 !important; }
  .plan-svg .d { stroke-dashoffset: 0 !important; }
  .lg-item { color: var(--navy-700); }
  .lg-item i { background: var(--accent); }
  [data-rv="wipe"] { clip-path: none !important; }
  .service-card::after, .project-card::after { display: none; }
  .service-card .sc-go { opacity: 1; transform: none; }
  .mq-track { animation: none !important; }
  .btn-primary, .btn-signal, .nav-cta, .form-submit { transform: none !important; }
  .proc-sticky { position: static; }
}

/* ═══════ PRINT ═══════ */
@media print {
  #nav, #drawer, #progress, #toTop, .scroll-cue, .hero-media, .marquee, #cta { display: none !important; }
  body { color: #000; }
  .section { padding: 20px 0; }
}

/* ══════════════════════════════════════════════════════════════
   SERVICE PAGES
   ══════════════════════════════════════════════════════════════ */

/* nav on inner pages is always solid — there is no dark hero behind it */
#nav.solid {
  background: rgba(8,17,42,.94);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,.07);
}
#nav.solid::after { opacity: 0; }

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 78px) 0 clamp(58px, 8vw, 96px);
  background: var(--navy-950);
  overflow: hidden;
  isolation: isolate;
}
.page-hero .ph-media { position: absolute; inset: 0; z-index: -2; }
.page-hero .ph-media img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(5,12,32,.96), rgba(5,12,32,.82) 55%, rgba(10,21,51,.6)),
    radial-gradient(90% 80% at 85% 15%, rgba(74,144,217,.2), transparent 62%);
}
.page-hero .ph-grid {
  position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(111,177,240,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,177,240,.1) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: radial-gradient(110% 85% at 25% 45%, #000 15%, transparent 76%);
  -webkit-mask-image: radial-gradient(110% 85% at 25% 45%, #000 15%, transparent 76%);
}
.ph-inner { position: relative; z-index: 1; max-width: 800px; }

.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.42); margin-bottom: 22px;
}
.crumb a { color: var(--accent-lit); text-decoration: none; transition: color .25s; }
.crumb a:hover { color: #fff; }
.crumb b { color: rgba(255,255,255,.7); font-weight: 500; }

.ph-title {
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  font-weight: 900; color: #fff; letter-spacing: -.035em;
  line-height: 1.03; margin-bottom: 20px;
}
.ph-lead {
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  color: rgba(255,255,255,.76); max-width: 62ch; margin-bottom: 34px;
}

.section.alt { background: var(--paper); }

/* overview + what's included */
.svc-split {
  display: grid; grid-template-columns: 1.35fr .95fr;
  gap: clamp(34px, 5vw, 68px); align-items: start;
  position: relative; z-index: 1;
}
.svc-copy p { font-size: 1.03rem; margin-bottom: 18px; }
.svc-copy .sec-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }

.svc-inc {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 4px; padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
  position: sticky; top: calc(var(--nav-h) + 30px);
}
.svc-inc::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--accent), var(--signal));
}
.svc-inc h3 {
  font-family: var(--font-mono); font-size: .64rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.svc-inc ul { list-style: none; margin-bottom: 26px; }
.svc-inc li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .94rem; color: var(--text); font-weight: 500;
  padding: 9px 0; border-bottom: 1px solid var(--paper2);
}
.svc-inc li:last-child { border-bottom: 0; }
.svc-inc li svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--accent); }
.svc-inc .btn { width: 100%; }

/* triggers */
.when-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.when-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 4px; padding: 28px 26px 30px; position: relative;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.when-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.when-card .wc-num {
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em;
  color: var(--accent-deep); display: block; margin-bottom: 12px;
}
.when-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.when-card p { font-size: .92rem; color: var(--body); }

/* related services */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.rel-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 4px; padding: 28px 26px 26px;
  text-decoration: none; position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.rel-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--signal));
  transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease-out);
}
.rel-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.rel-card:hover::before { transform: scaleY(1); }
.rel-card h3 { font-size: 1.08rem; margin-bottom: 9px; }
.rel-card p { font-size: .9rem; color: var(--body); margin-bottom: 18px; }
.rel-go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep);
}
.rel-go svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.rel-card:hover .rel-go svg { transform: translateX(4px); }

/* page CTA band */
.cta-page {
  background: linear-gradient(115deg, var(--navy-900), var(--navy-700) 55%, var(--accent-deep));
  padding: clamp(60px, 8vw, 92px) 0; position: relative; overflow: hidden;
}
.cta-page::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(90% 100% at 80% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 100% at 80% 50%, #000, transparent 75%);
}
.cta-page .cta-inner { position: relative; z-index: 1; }
.cta-page h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 10px; }
.cta-page p { color: rgba(255,255,255,.74); max-width: 54ch; }

@media (max-width: 900px) {
  .svc-split { grid-template-columns: 1fr; }
  .svc-inc { position: static; }
}


/* ══════════════════════════════════════════════════════════════
   GROUND TO PAPER — three-stage reveal
   ══════════════════════════════════════════════════════════════ */
.ba { position: relative; z-index: 1; }

/* how-to strip */
.ba-howto {
  display: flex; align-items: center; gap: 14px;
  max-width: 680px; margin: 0 auto 26px;
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px; padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}
.ba-howto .bh-icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper2); color: var(--accent-deep);
}
.ba-howto .bh-icon svg { width: 17px; height: 17px; }
.ba-howto p { font-size: .9rem; color: var(--body); }
.ba-howto b { color: var(--text); font-weight: 600; }
.ba-howto kbd {
  font-family: var(--font-mono); font-size: .74rem;
  background: var(--paper2); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 3px;
  padding: 1px 6px; color: var(--navy-700);
}

/* stage picker */
.ba-steps {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 16px;
}
.ba-steps-ind {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%;
  width: calc((100% - 16px) / 3);
  background: var(--navy-700); border-radius: 4px;
  box-shadow: 0 10px 26px rgba(27,42,94,.26);
  transition: transform .5s var(--ease-out);
}
.ba-step {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; cursor: pointer; text-align: left;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 4px; color: var(--body);
  transition: color .35s var(--ease), border-color .35s, background .35s;
}
.ba-step.is-on { background: transparent; border-color: transparent; color: #fff; }
.ba-step:not(.is-on):hover { border-color: var(--accent); color: var(--accent-deep); }
.ba-step .bs-num {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; opacity: .6; flex: none;
}
.ba-step .bs-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ba-step .bs-txt b { font-family: var(--font-display); font-size: .95rem; font-weight: 700; }
.ba-step .bs-txt i {
  font-style: normal; font-size: .7rem; opacity: .72;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* the viewer */
.ba-stage {
  position: relative; overflow: hidden;
  border-radius: 4px; box-shadow: var(--shadow-lg);
  aspect-ratio: 1200 / 896;
  background: var(--navy-900);
  cursor: grab; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.ba-stage:active { cursor: grabbing; }
.ba-stage:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Layers stack; each wipes in from the left. Higher stages sit on top, so
   revealing one simply uncovers it over everything before it. */
.ba-layer {
  position: absolute; inset: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .75s var(--ease-out);
}
.ba-layer[data-layer="0"] { z-index: 1; }
.ba-layer[data-layer="1"] { z-index: 2; }
.ba-layer[data-layer="2"] { z-index: 3; }
.ba-layer.is-on { clip-path: inset(0 0 0 0); }
.ba-layer.dragging { transition: none; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; }

/* darkening wash so the drafting reads over the photograph */
.ba-wash {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,12,32,.55), rgba(5,12,32,.68));
}

.ba-plat { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.ba-plat path, .ba-plat polygon, .ba-plat ellipse, .ba-plat circle { fill: none; vector-effect: non-scaling-stroke; }
.ba-plat .p-bnd   { stroke: #fff; stroke-width: 2.6; }
.ba-plat .p-rowc  { stroke: var(--signal); stroke-width: 2; stroke-dasharray: 18 10 4 10; }
.ba-plat .p-row   { stroke: var(--signal); stroke-width: 1.8; }
.ba-plat .p-lot path { stroke: #A0CDFF; stroke-width: 1.5; }
.ba-plat .p-rear  { stroke: #fff; stroke-width: 1.8; stroke-dasharray: 10 6; }
.ba-plat .p-ctr path { stroke: #6FB1F0; stroke-width: 1.2; opacity: .5; }
.ba-plat .p-basin { stroke: #6FB1F0; stroke-width: 1.8; stroke-dasharray: 8 5; fill: rgba(74,144,217,.2); }
.ba-plat .p-mon circle { fill: var(--signal); stroke: #fff; stroke-width: 2.2; }
.ba-plat .p-north path { stroke: #A0CDFF; stroke-width: 2; }
.ba-plat .p-num text {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  fill: #fff; text-anchor: middle;
  paint-order: stroke; stroke: rgba(5,12,32,.85); stroke-width: 5px; stroke-linejoin: round;
}
.ba-plat .p-lbl {
  font-family: var(--font-mono); font-size: 17px; fill: #A0CDFF; letter-spacing: .06em;
  paint-order: stroke; stroke: rgba(5,12,32,.85); stroke-width: 5px; stroke-linejoin: round;
}
.ba-plat .p-lbl.mid { text-anchor: middle; }

/* bottom-left keeps the stage tag clear of the drafting call-outs
   along the top of the plat */
/* bottom-RIGHT: the top carries the drafting call-outs and the
   bottom-left carries the P.O.B. marker */
.ba-tag {
  position: absolute; z-index: 4; right: 16px; bottom: 16px;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: #fff;
  background: rgba(5,12,32,.62); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 7px 13px; border-radius: 3px;
}
.ba-tag.alt { border-color: rgba(111,177,240,.5); color: var(--accent-lit); }
/* keep clear of the next-stage arrow */
.ba-stage .ba-tag { right: 74px; }

/* prev / next */
.ba-nav {
  position: absolute; z-index: 6; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255,255,255,.94); color: var(--navy-700);
  border: 0; box-shadow: 0 8px 24px rgba(0,0,0,.34);
  transition: opacity .3s, transform .3s var(--ease), background .3s;
}
.ba-nav.prev { left: 16px; }
.ba-nav.next { right: 16px; }
.ba-nav svg { width: 20px; height: 20px; }
.ba-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.ba-nav[disabled] { opacity: 0; pointer-events: none; }

.ba-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.ba-dots i {
  width: 26px; height: 4px; border-radius: 99px;
  background: var(--line); transition: background .4s var(--ease), width .4s var(--ease);
}
.ba-dots i.is-on { background: var(--accent); width: 40px; }

@media (max-width: 720px) {
  .ba-steps { grid-template-columns: 1fr; gap: 6px; }
  .ba-steps-ind { width: 100%; height: calc((100% - 12px) / 3); }
  .ba-step .bs-txt i { display: none; }
  .ba-plat .p-num text { font-size: 34px; }
  .ba-plat .p-lbl { font-size: 26px; }
  .ba-howto { flex-direction: column; text-align: center; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ba-layer { transition: none; }
  .ba-steps-ind { transition: none; }
}

/* ══════════════════════════════════════════════════════════════
   MICHIGAN SERVICE-AREA MAP
   Outline projected from public-domain state boundary data; county
   pins sit at their real coordinates.
   ══════════════════════════════════════════════════════════════ */
.area-map {
  position: relative;
  border-radius: 4px; overflow: hidden;
  background: linear-gradient(165deg, var(--navy-900), var(--navy-950));
  box-shadow: var(--shadow-lg);
  padding: clamp(18px, 3vw, 30px);
  /* stacked, not overlaid — an absolute badge sat on top of Wayne County */
  display: flex; flex-direction: column; gap: 16px;
  min-height: 420px;
}
.area-map::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image:
    linear-gradient(rgba(111,177,240,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111,177,240,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(100% 80% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(100% 80% at 50% 40%, #000 20%, transparent 78%);
}

.mi-map {
  position: relative; z-index: 1;
  width: 100%; height: auto; margin-inline: auto;
  max-height: min(560px, 62vh);
  overflow: visible;
}

.mi-land path {
  fill: rgba(74,144,217,.14);
  stroke: var(--accent-lit);
  stroke-width: 2.4;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 14px rgba(74,144,217,.28));
}

.mi-pin .mi-dot {
  fill: var(--accent-lit);
  stroke: var(--navy-950); stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.mi-pin.is-main .mi-dot {
  fill: var(--signal);
  stroke: #fff; stroke-width: 2.5;
  filter: drop-shadow(0 0 12px rgba(255,122,51,.85));
}
.mi-ping {
  fill: none; stroke: var(--signal); stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transform-origin: center; transform-box: fill-box;
  animation: miPing 2.8s cubic-bezier(.22,.61,.36,1) infinite;
}
.mi-ping.d2 { animation-delay: 1.4s; }
@keyframes miPing {
  0%   { transform: scale(.6); opacity: .95; }
  75%, 100% { transform: scale(3.4); opacity: 0; }
}

.mi-label .mi-leader {
  fill: none; stroke: rgba(255,255,255,.45);
  stroke-width: 1.6; vector-effect: non-scaling-stroke;
}
.mi-label text {
  font-family: var(--font-mono); fill: #fff;
  font-size: 26px; font-weight: 700; letter-spacing: .1em;
}
.mi-label text.sub {
  font-size: 18px; font-weight: 400; letter-spacing: .14em;
  fill: var(--signal-soft, #FFA76B);
}

.area-map .ap-badge {
  position: static; z-index: 2; align-self: flex-start;
  background: rgba(5,12,32,.72); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 4px;
  padding: 13px 18px; color: #fff;
}
.area-map .ap-badge b { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.area-map .ap-badge span {
  font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--accent-lit);
}

@media (max-width: 1080px) { .area-map { min-height: 360px; } }
@media (prefers-reduced-motion: reduce) { .mi-ping { display: none; } }

/* P.O.B. marker — repeated on stages 1 and 3 at the identical viewBox
   coordinate, so the point visibly holds still across all three images. */
.ba-pob { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; }
.ba-pob .pob-dot {
  fill: var(--signal); stroke: #fff; stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 4px rgba(5,12,32,.8));
}
.ba-pob .pob-ping {
  fill: none; stroke: var(--signal); stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transform-origin: center; transform-box: fill-box;
  animation: pobPing 3s cubic-bezier(.22,.61,.36,1) infinite;
}
@keyframes pobPing {
  0%   { transform: scale(.7); opacity: .9; }
  75%, 100% { transform: scale(3); opacity: 0; }
}
.ba-plat .p-leader, .ba-pob .p-leader {
  fill: none; stroke: rgba(255,255,255,.6);
  stroke-width: 1.6; vector-effect: non-scaling-stroke;
}
.ba-pob .p-lbl {
  font-family: var(--font-mono); font-size: 17px; fill: #fff; letter-spacing: .08em;
  paint-order: stroke; stroke: rgba(5,12,32,.85); stroke-width: 5px; stroke-linejoin: round;
}
.ba-plat .p-lbl.sm { font-size: 13px; fill: rgba(255,255,255,.75); }

@media (max-width: 720px) {
  .ba-pob .p-lbl { font-size: 26px; }
  .ba-plat .p-lbl.sm { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .ba-pob .pob-ping { display: none; } }
