/* ============================================================
   subterra — Website Styles
   v5 — light theme — March 2026
   Brand: Illumination Green #1DD84B, DM Sans, JetBrains Mono
   ============================================================ */

/* --------------------------------
   DESIGN TOKENS
   -------------------------------- */
:root {
  --g: #1DD84B;
  --g-dim: rgba(29,216,75,0.75);
  --sw: #e8f8ec;
  --gr: #5a7a62;
  --mg: #6b7a72;
  --dg: #2D322E;
  --bk: #000;
  --r: #EF1818;
  --o: #F46D08;
  --y: #EFA706;
  --sd: #f4f7f5;
  --sc: #fff;
  --se: #eef2f0;
  --bs: rgba(29,216,75,0.14);
  --ba: rgba(29,216,75,0.28);
  --t1: #0f1612;
  --t2: #3d4f46;
  --t3: #5a6b62;
  --chart-grid: rgba(29,216,75,0.1);
  --chart-axis: #5a6b62;
  --chart-muted: rgba(90,107,98,0.45);
  --chart-muted-strong: rgba(90,107,98,0.6);
  --chart-band-alt: rgba(90,107,98,0.06);
  --chart-dash: rgba(90,107,98,0.22);
}

/* --------------------------------
   RESET & BASE
   -------------------------------- */
*  { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--sd);
  color: var(--t1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--g);
  outline-offset: 2px;
}

/* --------------------------------
   LEGAL PAGES
   -------------------------------- */
.legal { padding: 96px 48px; }
.legal-back { color: var(--t2); text-decoration: none; }
.legal-back:hover { text-decoration: underline; }
.legal-title { margin: 10px 0 18px; letter-spacing: -0.03em; }
.legal-pre {
  white-space: pre-wrap;
  font-family: 'DM Sans', sans-serif;
  color: var(--t2);
  line-height: 1.7;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(90,107,98,0.18);
  border-radius: 14px;
  padding: 18px 18px;
}

/* --------------------------------
   CURSOR GLOW
   -------------------------------- */
.cg {
  position: fixed;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,216,75,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.1s ease-out, top 0.1s ease-out;
}

/* --------------------------------
   NAVIGATION
   -------------------------------- */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 48px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,14,11,0.8);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(29,216,75,0.08);
  transition: all .3s;
}
nav.scrolled { background: rgba(10,14,11,0.95); }

.nl { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nl img { display: block; height: 40px; width: auto; }

.nk { display: flex; gap: 28px; list-style: none; }
nav .nk a { color: #fff; text-decoration: none; font-size: .95rem; font-weight: 500; letter-spacing: .02em; transition: color .2s; }
nav .nk a:hover { color: var(--g); }

.nc {
  padding: 8px 20px;
  background: var(--g); color: var(--bk);
  border: none; border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .82rem;
  cursor: pointer; text-decoration: none; transition: all .2s;
}
.nc:hover { background: #25f058; box-shadow: 0 0 24px rgba(29,216,75,0.25); }
nav button.nc { line-height: inherit; }

/* --------------------------------
   HERO — full viewport video BG
   -------------------------------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 48px 80px;
  position: relative; overflow: hidden;
}

.hero-video-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video-bg video {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.hero-video-bg .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.58) 42%, rgba(244,247,245,0.35) 100%);
  z-index: 1;
}
.hero-video-bg .hero-overlay-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to top, var(--sd), transparent);
  z-index: 2;
}
.hero-video-bg.no-video { background: var(--sd); }
.hero-video-bg.no-video .hero-overlay { background: var(--sd); }

.hbg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hbg::before {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,216,75,0.1) 0%, transparent 70%);
}
.hbg::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ba), transparent);
}

.gp {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(29,216,75,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,216,75,0.07) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 65% 40%, black 20%, transparent 65%);
  z-index: 1; pointer-events: none;
}

.hc { position: relative; z-index: 10; max-width: 1200px; margin: 0 auto; width: 100%; }

.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.035em;
  margin-bottom: 24px;
  animation: fiu .8s ease .1s both;
}
.hero h1 .grn {
  color: var(--g);
  text-shadow:
    0 1px 2px rgba(15, 22, 18, 0.5),
    0 2px 14px rgba(15, 22, 18, 0.4),
    0 0 28px rgba(244, 247, 245, 0.35);
}

.hs {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--t2); line-height: 1.65;
  max-width: 580px; margin-bottom: 40px;
  animation: fiu .8s ease .2s both;
}

/* --------------------------------
   BUTTONS
   -------------------------------- */
.ha { display: flex; gap: 14px; animation: fiu .8s ease .3s both; }

.bp {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: var(--g); color: var(--bk);
  border: none; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .95rem;
  cursor: pointer; text-decoration: none; transition: all .25s;
}
.bp:hover { background: #25f058; box-shadow: 0 0 40px rgba(29,216,75,0.2); transform: translateY(-1px); }

.bs2 {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: transparent; color: var(--t1);
  border: 1px solid var(--ba); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: .95rem;
  cursor: pointer; text-decoration: none; transition: all .25s;
}
.bs2:hover { border-color: var(--g); background: rgba(29,216,75,0.04); }

/* --------------------------------
   PROOF / METRICS STRIP
   -------------------------------- */
.proof-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

section.proof-strip {
  padding: 44px 0 48px;
  background: linear-gradient(180deg, #0c100d 0%, #080b09 100%);
  border-top: 1px solid rgba(29,216,75,0.22);
  border-bottom: 1px solid rgba(29,216,75,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.proof-strip .proof-item {
  padding: 20px 22px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(29,216,75,0.12);
  gap: 10px;
  min-height: 100%;
  align-items: center;
  text-align: center;
}

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-strip .proof-item .pn {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 700;
  color: var(--g);
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 0 40px rgba(29,216,75,0.25);
}

.proof-strip .proof-item .pl {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(245,250,247,0.92);
  letter-spacing: 0.01em;
  line-height: 1.45;
  max-width: 17em;
}

/* --------------------------------
   SHARED LAYOUT
   -------------------------------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
section { position: relative; padding: 72px 0; }
.panel--sd { background: var(--sd); }
.panel--sc { background: var(--sc); }
.sl {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.88rem, 1.55vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 16px;
  text-shadow:
    0 1px 2px rgba(15, 22, 18, 0.22),
    0 2px 14px rgba(15, 22, 18, 0.1);
}
.st {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 18px;
}
.sd { font-size: 1.05rem; color: var(--t2); line-height: 1.7; max-width: 560px; }
.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ba), transparent);
  margin: 0;
}

/* --------------------------------
   ANIMATIONS
   -------------------------------- */
@keyframes fiu { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --------------------------------
   FULLSCREEN VIDEO LIGHTBOX
   -------------------------------- */
.video-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.video-lightbox.active { opacity: 1; pointer-events: all; }
.video-lightbox video { max-width: 92vw; max-height: 88vh; border-radius: 8px; outline: none; }
.video-lightbox .vl-close {
  position: absolute; top: 24px; right: 32px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; z-index: 10001;
  padding: 0;
  appearance: none;
}
.video-lightbox .vl-close:hover { background: rgba(255,255,255,0.15); }
.video-lightbox .vl-close svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; }

/* --------------------------------
   WHAT WE DO — capabilities
   -------------------------------- */
.cap3-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 56px; }
.cc { padding: 36px 28px; border-radius: 14px; border: 1px solid var(--bs); background: var(--sc); transition: all .3s; }
.cc:hover { border-color: var(--ba); }
.cc .ci { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 1.3rem; }
.cc.hyd .ci { background: rgba(29,216,75,0.1); }
.cc.vis .ci { background: rgba(239,24,24,0.1); }
.cc.ver .ci { background: rgba(239,167,6,0.1); }
.cc h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.cc .cc-plain { font-size: .92rem; color: var(--t2); line-height: 1.6; margin-bottom: 14px; }
.cc .cc-detail { font-size: .82rem; color: var(--t3); line-height: 1.55; padding-top: 14px; border-top: 1px solid var(--bs); }

/* Three-up What We Do cards — centered layout */
.cap3-grid .cc { text-align: center; }
.cap3-grid .cc .ci { margin-left: auto; margin-right: auto; }

/* --------------------------------
   HOW IT WORKS — fullscreen carousel
   -------------------------------- */
section#what {
  padding-bottom: 48px;
}

section.how-section {
  padding-top: 48px;
  padding-bottom: 64px;
}
.how-header {
  text-align: left;
  padding-bottom: 48px;
}

/* Carousel container */
.carousel { position: relative; width: 100%; overflow: hidden; background: var(--sc); border-top: 1px solid var(--bs); border-bottom: 1px solid var(--bs); }

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

/* Each slide */
.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 520px;
}

/* Video half */
.slide-video {
  position: relative;
  overflow: hidden;
  background: var(--se);
}
.slide-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s;
}
.slide-video video.loaded { opacity: 1; }
.slide-video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  z-index: 2;
}
.slide-video-placeholder .svpb { width: 64px; height: 64px; border-width: 2px; }
.slide-video-placeholder .svpb svg { width: 20px; height: 20px; }
.slide-video-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--t3);
}
.slide-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 70%, var(--sc) 100%);
  z-index: 1; pointer-events: none;
}

/* Static panel (e.g. Reports slide — PDF illustration, no video) */
.slide-video.slide-video--static {
  background: var(--se);
}
.slide-video--static::before {
  display: none;
}
.slide-video--static img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 0;
}
.slide-video--static .slide-video-overlay {
  background: linear-gradient(90deg, transparent 55%, var(--sc) 100%);
}
.slide-video-label--static {
  position: absolute;
  bottom: 20px;
  left: 22px;
  z-index: 4;
  margin: 0;
}

/* Scanline effect */
.slide-video::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(29,216,75,0.01) 2px, rgba(29,216,75,0.01) 4px);
  pointer-events: none; z-index: 3;
}

/* Content half */
.slide-content {
  padding: 64px 56px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.slide-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3.5rem;
  font-weight: 700;
  color: #3a4540;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.slide-content h3 {
  font-size: 1.6rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 12px;
  color: var(--g);
}
.slide-headline {
  font-size: 1.05rem; font-weight: 600;
  color: var(--t1); line-height: 1.3; margin-bottom: 16px;
}
.slide-body {
  font-size: .92rem; color: var(--t2); line-height: 1.65; margin-bottom: 16px;
}
.slide-detail {
  font-size: .8rem; color: var(--t3); line-height: 1.55;
  padding-top: 16px; border-top: 1px solid var(--bs);
}

/* Content entrance animation */
.carousel-slide .slide-content > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.carousel-slide.active .slide-content > * {
  opacity: 1; transform: translateY(0);
}
.carousel-slide.active .slide-content > *:nth-child(1) { transition-delay: 0.1s; }
.carousel-slide.active .slide-content > *:nth-child(2) { transition-delay: 0.15s; }
.carousel-slide.active .slide-content > *:nth-child(3) { transition-delay: 0.2s; }
.carousel-slide.active .slide-content > *:nth-child(4) { transition-delay: 0.3s; }
.carousel-slide.active .slide-content > *:nth-child(5) { transition-delay: 0.4s; }

/* Navigation bar */
.carousel-nav {
  display: flex;
  align-items: center;
  padding: 22px 48px;
  background: var(--sd);
  border-bottom: 1px solid var(--bs);
}
.carousel-steps {
  display: flex;
  flex: 1;
  gap: clamp(14px, 2.5vw, 28px);
  min-width: 0;
  width: 100%;
}
.carousel-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: var(--sc);
  border: 1px solid var(--bs);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 22, 18, 0.06);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.carousel-step:hover {
  border-color: var(--ba);
  background: var(--se);
  box-shadow: 0 4px 14px rgba(15, 22, 18, 0.1);
}
.carousel-step .step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  font-weight: 600;
  color: #3a4540;
  letter-spacing: 0.05em;
  transition: color 0.25s;
}
.carousel-step .step-label {
  font-size: .92rem;
  font-weight: 600;
  color: var(--t2);
  transition: color 0.25s;
}
.carousel-step:hover .step-num,
.carousel-step:hover .step-label { color: var(--t1); }
.carousel-step.active {
  border-color: var(--g);
  background: rgba(29,216,75,0.1);
  box-shadow:
    0 0 0 1px rgba(29,216,75,0.35),
    0 6px 20px rgba(29,216,75,0.15);
}
.carousel-step.active .step-num { color: var(--g); }
.carousel-step.active .step-label { color: var(--t1); }

/* Progress bar */
.carousel-progress {
  height: 2px; background: var(--bs);
}
.carousel-progress-bar {
  height: 100%; width: 25%;
  background: var(--g);
  transition: width 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.svpb {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(29,216,75,0.06); border: 1.5px solid var(--g);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s;
}
.svpb:hover { background: rgba(29,216,75,0.12); }
.svpb svg { width: 14px; height: 14px; fill: var(--g); margin-left: 2px; }

/* --------------------------------
   FAQ STRIP
   -------------------------------- */
.faq-strip { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.faq-heading { margin-top: 72px; margin-bottom: 0; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.01em; color: var(--t1); }
.faq-heading + .faq-strip { margin-top: 24px; }
.faq-item { padding: 24px; background: var(--sc); border: 1px solid var(--bs); border-radius: 12px; }
.faq-item h4 { font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--t1); }
.faq-item p { font-size: .84rem; color: var(--t2); line-height: 1.55; }

/* --------------------------------
   CREDIBILITY — ASCE banner
   -------------------------------- */
.cred-banner {
  margin-top: 56px;
  padding: 40px 36px;
  background: linear-gradient(165deg, #121a15 0%, #0a0f0c 55%, #080c0a 100%);
  border: 1px solid rgba(29,216,75,0.28);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cred-badge { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.cred-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(29,216,75,0.14);
  border: 1px solid rgba(29,216,75,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}
.cred-badge-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--g);
  line-height: 1.4;
}
.cred-banner h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #f2faf8;
  letter-spacing: -0.02em;
}
.cred-banner .cred-body {
  font-size: .92rem;
  color: rgba(220,232,226,0.92);
  line-height: 1.65;
}
/* Matches .bp (Request a Demo) — orange variant for dark banner */
.cred-asce-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 28px;
  background: var(--o);
  color: var(--bk);
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}
.cred-asce-link:hover {
  background: #ff8a3d;
  box-shadow: 0 0 40px rgba(244, 109, 8, 0.45);
  transform: translateY(-1px);
  color: var(--bk);
}
.cred-asce-link:focus-visible {
  outline: 2px solid #ffb380;
  outline-offset: 2px;
}
.cred-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cred-stat {
  padding: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(29,216,75,0.12);
  border-radius: 12px;
  text-align: center;
}
.cred-stat .cs-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g);
  line-height: 1;
  margin-bottom: 4px;
}
.cred-stat .cs-label { font-size: .78rem; color: rgba(210,222,216,0.85); line-height: 1.35; }

/* --------------------------------
   CASE STUDIES
   -------------------------------- */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 56px; }
.case-card { padding: 32px 28px; background: var(--sc); border: 1px solid var(--bs); border-radius: 14px; transition: border-color .3s; cursor: default; }
.case-card:hover { border-color: var(--ba); }
.case-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.case-loc { font-size: .92rem; font-weight: 600; }
.case-tag { font-family: 'JetBrains Mono', monospace; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; }
.case-tag.screen { background: rgba(29,216,75,0.1); color: var(--g); }
.case-tag.flag { background: rgba(239,24,24,0.1); color: var(--r); }
.case-tag.verify { background: rgba(239,167,6,0.1); color: var(--y); }
.case-tag.multi { background: rgba(29,216,75,0.06); color: var(--t2); }
.case-finding { font-size: .88rem; font-weight: 500; color: var(--t1); margin-bottom: 8px; }
.case-story { font-size: .84rem; color: var(--t2); line-height: 1.55; }

/* --------------------------------
   LEAFLET MAP — case studies (CONUS)
   -------------------------------- */
.map-fullscreen {
  margin-top: 48px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  border-top: 1px solid var(--bs);
  border-bottom: 1px solid var(--bs);
}
.map-wrap {
  max-width: 1400px;
  margin: 32px auto 0;
  padding: 0 40px;
}
#caseStudyMap {
  width: 100%;
  height: clamp(360px, 54vh, 620px);
  min-height: 340px;
  border: 1px solid var(--bs);
  background: var(--sd);
}
#caseStudyMap .leaflet-control-attribution {
  background: rgba(255,255,255,0.92);
  color: var(--t3); font-size: 9px;
  border: 1px solid var(--bs);
  border-radius: 4px;
}
#caseStudyMap .leaflet-control-attribution a { color: var(--t3); }

/* Custom pulsing marker */
.subterra-marker {
  width: 18px; height: 18px;
  background: var(--g);
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(29,216,75,0.5);
  position: relative;
  transition: transform 0.2s;
}
.subterra-marker::after {
  content: '';
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(29,216,75,0.3);
  animation: markerPing 2.5s ease-in-out infinite;
}
@keyframes markerPing {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(2); opacity: 0; }
}
.subterra-marker:hover { transform: scale(1.3); }

/* Custom popup */
.leaflet-popup-content-wrapper {
  background: var(--se) !important;
  border: 1px solid var(--ba) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12) !important;
  color: var(--t1) !important;
  padding: 0 !important;
}
.leaflet-popup-tip { background: var(--se) !important; border: 1px solid var(--ba) !important; }
.leaflet-popup-content { margin: 0 !important; font-family: 'DM Sans', sans-serif !important; }
.leaflet-popup-close-button {
  color: var(--t3) !important;
  font-size: 18px !important;
  top: 8px !important; right: 10px !important;
}
.leaflet-popup-close-button:hover { color: var(--g) !important; }

.popup-inner { padding: 18px 20px; min-width: 220px; }
.popup-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px;
  margin-bottom: 8px;
}
.popup-tag.screen { background: rgba(29,216,75,0.12); color: var(--g); }
.popup-tag.flag { background: rgba(239,24,24,0.12); color: var(--r); }
.popup-tag.verify { background: rgba(239,167,6,0.12); color: var(--y); }
.popup-tag.multi { background: rgba(29,216,75,0.06); color: var(--t2); }
.popup-title { font-size: .95rem; font-weight: 600; margin-bottom: 4px; color: var(--t1); }
.popup-finding { font-size: .8rem; font-weight: 500; color: var(--g); margin-bottom: 6px; }
.popup-story { font-size: .78rem; color: var(--t2); line-height: 1.5; }

/* --------------------------------
   DEGRADATION CHART
   -------------------------------- */
.degrad-visual { background: var(--sc); border: 1px solid var(--bs); border-radius: 14px; padding: 40px; margin-top: 56px; position: relative; overflow: hidden; }
#degradChart { width: 100%; height: 420px; }
.degrad-legend { display: flex; gap: 28px; margin-top: 20px; justify-content: center; flex-wrap: wrap; }
.degrad-legend-item { display: flex; align-items: center; gap: 7px; font-size: .75rem; color: var(--t2); }
.degrad-legend-item .dot { width: 8px; height: 8px; border-radius: 50%; }

/* --------------------------------
   PERFORMANCE GRADES
   -------------------------------- */
.gt { width: 100%; border-collapse: separate; border-spacing: 0 3px; margin-top: 56px; }
.gt thead th { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: var(--t3); text-transform: uppercase; letter-spacing: .1em; padding: 10px 20px; text-align: left; }
.gt tbody tr { background: var(--sc); transition: all .2s; }
.gt tbody tr:hover { background: var(--se); }
.gt td { padding: 18px 20px; font-size: .9rem; color: var(--t2); border-top: 1px solid var(--bs); border-bottom: 1px solid var(--bs); }
.gt td:first-child { border-left: 1px solid var(--bs); border-radius: 8px 0 0 8px; }
.gt td:last-child { border-right: 1px solid var(--bs); border-radius: 0 8px 8px 0; }
.gb { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 1rem; }
.ga  { background: rgba(29,216,75,0.15); color: var(--g); }
.gbb { background: rgba(29,216,75,0.1); color: #158a3a; }
.gc  { background: rgba(239,167,6,0.1);  color: var(--y); }
.gd  { background: rgba(244,109,8,0.1);  color: var(--o); }
.gf  { background: rgba(239,24,24,0.1);  color: var(--r); }

/* --------------------------------
   EPA / CMOM
   -------------------------------- */
.epa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; align-items: start; }
.epa-rows { display: grid; gap: 2px; }
.epa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.epa-cell { padding: 18px 20px; background: var(--sc); font-size: .85rem; color: var(--t2); line-height: 1.5; }
.epa-cell:first-child { border-radius: 6px 0 0 6px; }
.epa-cell:last-child  { border-radius: 0 6px 6px 0; }
.epa-cell.hdr { font-family: 'JetBrains Mono', monospace; font-size: .65rem; color: var(--t3); text-transform: uppercase; letter-spacing: .1em; background: transparent; padding: 6px 20px; }
.epa-cell.hl { color: var(--g); font-weight: 500; }
.epa-rfp { padding: 36px; background: linear-gradient(135deg, rgba(29,216,75,0.04), rgba(29,216,75,0.01)); border: 1px solid var(--ba); border-radius: 14px; }
.epa-rfp .et { font-family: 'JetBrains Mono', monospace; font-size: .62rem; color: var(--g); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.epa-rfp h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }
.epa-rfp p { font-size: .9rem; color: var(--t2); line-height: 1.65; margin-bottom: 14px; }
.rfpb { padding: 18px; background: rgba(29,216,75,0.03); border: 1px solid var(--bs); border-radius: 8px; font-family: 'JetBrains Mono', monospace; font-size: .74rem; color: var(--t2); line-height: 1.65; font-style: italic; margin-bottom: 18px; }
.spec-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--g); color: var(--bk); border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .82rem; cursor: pointer; text-decoration: none; transition: all .25s; }
.spec-cta:hover { background: #25f058; box-shadow: 0 0 24px rgba(29,216,75,0.2); }

/* --------------------------------
   ECOSYSTEM
   -------------------------------- */
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.ecc { padding: 32px 24px; background: var(--sc); border: 1px solid var(--bs); border-radius: 14px; transition: all .3s; }
.ecc:hover { border-color: var(--ba); }
.ecc .ect { font-family: 'JetBrains Mono', monospace; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); margin-bottom: 14px; }
.ecc h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.ecc.hi { border-color: var(--g); background: linear-gradient(135deg, rgba(29,216,75,0.04), rgba(29,216,75,0.01)); }
.ecc.hi .ect { color: var(--g); }
.ecc p { font-size: .85rem; color: var(--t2); line-height: 1.55; }

/* --------------------------------
   QUOTE + CTA + FOOTER
   -------------------------------- */
.bq { padding: 120px 48px; max-width: 1200px; margin: 0 auto; text-align: center; }
.bq blockquote { font-size: clamp(1.3rem, 3vw, 2.2rem); font-weight: 500; font-style: italic; line-height: 1.4; letter-spacing: -0.02em; max-width: 800px; margin: 0 auto; }
.bq blockquote .grn { color: var(--g); font-style: normal; }

.fc { padding: 60px 0 120px; }
.fcc { padding: 72px; background: var(--sc); border: 1px solid var(--bs); border-radius: 20px; text-align: center; position: relative; overflow: hidden; }
.fcc::before { content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(29,216,75,0.05) 0%, transparent 70%); }
.fc h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 14px; position: relative; }
.fc .dsc { font-size: 1rem; color: var(--t2); max-width: 480px; margin: 0 auto 36px; position: relative; }
.fc .bp { border: none; font: inherit; }

/* --------------------------------
   DEMO REQUEST MODAL
   -------------------------------- */
.demo-modal[hidden] { display: none !important; }
.demo-modal {
  position: fixed; inset: 0; z-index: 10001;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.demo-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
}
.demo-modal-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  max-height: min(90vh, 720px);
  overflow: auto;
  padding: 28px 28px 24px;
  background: var(--sc);
  border: 1px solid var(--ba);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.14);
  text-align: left;
}
.demo-modal-panel h2 {
  font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 8px; color: var(--t1);
}
.demo-modal-lead {
  font-size: .88rem; color: var(--t2); line-height: 1.5; margin-bottom: 22px;
}
.demo-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--bs); background: var(--se);
  color: var(--t2); font-size: 1.4rem; line-height: 1;
  cursor: pointer; transition: all .2s;
}
.demo-modal-close:hover { border-color: var(--g); color: var(--g); }
.demo-field { margin-bottom: 16px; }
.demo-field label {
  display: block; font-size: .78rem; font-weight: 500; color: var(--t2); margin-bottom: 6px;
}
.demo-field .req { color: var(--g); }
.demo-field input,
.demo-field textarea {
  width: 100%; padding: 10px 12px;
  background: var(--se); border: 1px solid var(--bs); border-radius: 8px;
  color: var(--t1); font-family: 'DM Sans', sans-serif; font-size: .9rem;
  transition: border-color .2s;
}
.demo-field input:focus,
.demo-field textarea:focus {
  outline: none; border-color: var(--ba);
  box-shadow: 0 0 0 2px rgba(29,216,75,0.15);
}
.demo-field textarea { resize: vertical; min-height: 96px; }
.demo-hp {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.demo-form-msg { font-size: .82rem; min-height: 1.25em; margin-bottom: 12px; color: var(--y); }
.demo-form-msg.is-ok { color: var(--g); }
.demo-form-msg.is-err { color: var(--r); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.demo-fallback { font-size: .75rem; color: var(--t3); }
.demo-fallback a { color: var(--g); }

.spec-sheet-modal .demo-modal-panel { max-width: 420px; }
.demo-field--checkbox { margin-bottom: 16px; }
.demo-field--checkbox .spec-consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--t2);
  cursor: pointer;
  font-weight: 400;
}
.demo-field--checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--g);
}
.spec-consent-label a { color: var(--g); text-decoration: underline; text-underline-offset: 2px; }
.spec-consent-label a:hover { color: var(--t1); }

footer { padding: 40px 0; border-top: 1px solid var(--bs); }
.fi { display: flex; justify-content: flex-start; align-items: center; }
.ft { font-size: .75rem; color: var(--t3); }
.fm { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--bs); text-align: center; }
.fks { display: flex; gap: 20px; }
.fks a { font-size: .75rem; color: var(--t3); text-decoration: none; transition: color .2s; }
.fks a:hover { color: var(--g); }

/* --------------------------------
   RESPONSIVE
   -------------------------------- */
@media (max-width: 1024px) {
  .cap3-grid, .cases-grid { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .epa-grid { grid-template-columns: 1fr; }
  .cred-banner { grid-template-columns: 1fr; }
  .faq-strip { grid-template-columns: 1fr; }
  .proof-bar { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .carousel-slide { grid-template-columns: 1fr; min-height: auto; }
  .slide-video { min-height: 300px; }
  .slide-video-overlay { background: linear-gradient(180deg, transparent 60%, var(--sc) 100%); }
  .slide-content { padding: 40px 32px; }
  .carousel-steps { flex-wrap: wrap; gap: 10px; }
  .carousel-step { padding: 12px 14px; }
  .carousel-nav { padding: 16px 24px; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nk { display: none; }
  .hero { padding: 100px 20px 60px; }
  .wrap { padding: 0 20px; }
  section { padding: 56px 0; }
  section.proof-strip { padding: 32px 0 36px; }
  .proof-strip .proof-item { padding: 16px 18px; }
  .proof-bar { grid-template-columns: 1fr 1fr; }
  .eco-grid { grid-template-columns: 1fr; }
  .ha { flex-direction: column; }
  .fi { flex-direction: column; gap: 20px; text-align: center; }
  .fm { text-align: center; }
  .fcc { padding: 40px 20px; }
  .map-wrap { padding: 20px; }
  .hero-video-bg video { display: none; }
  .slide-video { min-height: 220px; }
  .slide-content { padding: 32px 20px; }
  .slide-num { font-size: 2.5rem; }
  .slide-content h3 { font-size: 1.3rem; }
  .carousel-step .step-label { display: none; }
  .carousel-nav { padding: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* --------------------------------
   CLIENT LOGO MARQUEE
   -------------------------------- */
.logos {
  padding: 44px 0 40px;
  background: transparent;
  overflow: hidden;
}
.logos-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 22px;
  text-align: center;
}
.logos-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logos-track {
  display: flex;
  width: max-content;
  animation: logoScroll 38s linear infinite;
  will-change: transform;
}
.logos-marquee:hover .logos-track { animation-play-state: paused; }

.logos-group {
  display: flex;
  flex-shrink: 0;
  padding: 0 0 0 0;
}
.logo-item {
  flex: 0 0 auto;
  padding: 0 clamp(28px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px dashed rgba(90,107,98,0.18);
}
.logos-group:last-child .logo-item:last-child { border-right: 1px dashed rgba(90,107,98,0.18); }
.logo-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--t2);
  filter: grayscale(1) opacity(.8);
}
.logo-mark {
  width: calc(44px * 1.2 * 1.2 * 1.2 * 1.2);
  height: calc(44px * 1.2 * 1.2 * 1.2 * 1.2);
  flex-shrink: 0;
  display: block;
}
.logos .logo-mark {
  background: var(--bk);
  border-radius: 10px;
  overflow: hidden;
}
.logo-mark svg {
  width: calc(44px * 1.2 * 1.2 * 1.2 * 1.2);
  height: calc(44px * 1.2 * 1.2 * 1.2 * 1.2);
  display: block;
}
.logo-mark img {
  width: calc(44px * 1.2 * 1.2 * 1.2 * 1.2);
  height: calc(44px * 1.2 * 1.2 * 1.2 * 1.2);
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Marquee translates one group-width; three identical groups give seamless loop */
@keyframes logoScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-33.3333%, 0, 0); }
}

.logos-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  pointer-events: none;
  z-index: 2;
}
.logos-fade-l { left: 0; background: linear-gradient(90deg, var(--sd), transparent); }
.logos-fade-r { right: 0; background: linear-gradient(-90deg, var(--sd), transparent); }

@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; }
}

/* --------------------------------
   CASE STUDY CAROUSEL (replaces grid)
   -------------------------------- */
.case-carousel {
  margin-top: 56px;
  background: var(--sc);
  border: 1px solid var(--bs);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 0 rgba(15,22,18,0.02), 0 8px 28px rgba(15,22,18,0.04);
}
.case-carousel-viewport {
  overflow: hidden;
}
.case-carousel-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}
.case-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 440px;
}

/* MEDIA side */
.case-slide-media {
  position: relative;
  background: var(--se);
  overflow: hidden;
  border-right: 1px solid var(--bs);
  min-height: 380px;
}
.case-slide-media::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(29,216,75,0.05) 0 2px,
      transparent 2px 14px),
    linear-gradient(180deg, rgba(29,216,75,0.04), transparent 60%);
  pointer-events: none;
}
.case-media-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 22px 24px;
}
.cmp-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--t3);
  background: rgba(255,255,255,0.85);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--bs);
  backdrop-filter: blur(4px);
}

/* BODY side */
.case-slide-body {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.case-slide-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.case-slide-loc {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--t3);
}
.case-slide-finding {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--t1);
  margin: 4px 0 2px;
}
.case-slide-finding strong {
  color: var(--g);
  font-weight: 700;
}
.case-slide-story {
  font-size: .95rem;
  color: var(--t2);
  line-height: 1.65;
  max-width: 48ch;
}
.case-slide-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--bs);
}
.case-slide-stats .css {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.case-slide-stats .cs-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--g);
  letter-spacing: -0.01em;
  line-height: 1;
}
.case-slide-stats .cs-v {
  font-size: .72rem;
  color: var(--t3);
  letter-spacing: .02em;
  margin-top: 4px;
  line-height: 1.3;
}

/* Entrance animation for active slide body */
.case-slide .case-slide-body > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.case-slide.is-active .case-slide-body > * {
  opacity: 1;
  transform: translateY(0);
}
.case-slide.is-active .case-slide-body > *:nth-child(1) { transition-delay: 0.10s; }
.case-slide.is-active .case-slide-body > *:nth-child(2) { transition-delay: 0.16s; }
.case-slide.is-active .case-slide-body > *:nth-child(3) { transition-delay: 0.22s; }
.case-slide.is-active .case-slide-body > *:nth-child(4) { transition-delay: 0.30s; }

/* Controls */
.case-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-top: 1px solid var(--bs);
  background: var(--sd);
}
.case-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sc);
  border: 1px solid var(--bs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--t2);
  transition: all .22s;
  flex-shrink: 0;
  padding: 0;
}
.case-arrow:hover {
  border-color: var(--g);
  color: var(--g);
  background: rgba(29,216,75,0.06);
  box-shadow: 0 4px 14px rgba(29,216,75,0.12);
}
.case-arrow:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; }
.case-arrow svg { width: 18px; height: 18px; }

.case-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}
.case-dot {
  width: 28px; height: 6px;
  border-radius: 100px;
  background: rgba(90,107,98,0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, width .25s;
}
.case-dot:hover { background: rgba(29,216,75,0.4); }
.case-dot.is-active {
  background: var(--g);
  width: 40px;
}
.case-dot:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; }

.case-carousel-progress {
  height: 2px;
  background: var(--bs);
}
.case-carousel-progress-bar {
  height: 100%;
  width: 0;
  background: var(--g);
  transition: width .1s linear;
}

/* --------------------------------
   LEGAL PAGES — extra styles
   -------------------------------- */
.legal-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem;
  color: var(--t3);
  letter-spacing: .05em;
  margin-bottom: 20px;
}
.legal-placeholder {
  background: rgba(239,167,6,0.12);
  color: var(--y);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.legal-related {
  margin-top: 24px;
  font-size: .85rem;
  color: var(--t2);
}
.legal-related a {
  color: var(--g);
  text-decoration: none;
  margin: 0 2px;
}
.legal-related a:hover { text-decoration: underline; }

/* --------------------------------
   RESPONSIVE — new components
   -------------------------------- */
@media (max-width: 1024px) {
  .case-slide { grid-template-columns: 1fr; min-height: auto; }
  .case-slide-media { min-height: 220px; border-right: none; border-bottom: 1px solid var(--bs); }
  .case-slide-body { padding: 32px 28px; }
  .case-slide-finding { font-size: 1.35rem; }
}
@media (max-width: 768px) {
  .logo-item { padding: 0 24px; }
  .logo-mark { width: calc(36px * 1.2 * 1.2 * 1.2 * 1.2); height: calc(36px * 1.2 * 1.2 * 1.2 * 1.2); }
  .logo-mark svg { width: calc(36px * 1.2 * 1.2 * 1.2 * 1.2); height: calc(36px * 1.2 * 1.2 * 1.2 * 1.2); }
  .logo-mark img { width: calc(36px * 1.2 * 1.2 * 1.2 * 1.2); height: calc(36px * 1.2 * 1.2 * 1.2 * 1.2); }
  .case-slide-body { padding: 28px 20px; }
  .case-slide-media { min-height: 180px; }
  .case-slide-stats .cs-k { font-size: .9rem; }
  .case-carousel-controls { padding: 14px 16px; }
  .case-arrow { width: 40px; height: 40px; }
  .case-dot { width: 22px; }
  .case-dot.is-active { width: 32px; }
}


/* --------------------------------
   FIELD FOOTAGE — single-stage carousel
   -------------------------------- */
.footage-stage-wrap {
  max-width: 1320px;
  margin: 36px auto 0;
  padding: 0 40px;
}
.footage-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--se);
  border: 1px solid var(--bs);
}
.footage-track {
  position: absolute;
  inset: 0;
}
.footage-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
  z-index: 1;
}
.footage-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.footage-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .4s;
}
.footage-slide video.loaded { opacity: 1; }

.footage-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(ellipse at center, rgba(29,216,75,0.05), transparent 70%),
    var(--se);
  z-index: 1;
  transition: opacity .4s ease;
}
.footage-placeholder .svpb {
  width: 72px;
  height: 72px;
  border-width: 1.5px;
}
.footage-placeholder .svpb svg {
  width: 22px;
  height: 22px;
}
.footage-placeholder-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t3);
}

/* Subtle scanline overlay */
.footage-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(29,216,75,0.015) 2px,
    rgba(29,216,75,0.015) 4px
  );
  pointer-events: none;
  z-index: 3;
}

/* Nav arrows */
.footage-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(10, 15, 11, 0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.footage-nav:hover {
  background: rgba(10, 15, 11, 0.78);
  border-color: rgba(29,216,75,0.55);
  color: var(--g);
}
.footage-nav:focus-visible {
  outline: 2px solid var(--g);
  outline-offset: 3px;
}
.footage-nav.prev { left: 20px; }
.footage-nav.next { right: 20px; }
.footage-nav svg { width: 22px; height: 22px; }

/* Chrome below (meta + dots + counter) */
.footage-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding-top: 22px;
}
.footage-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}
.footage-tag-active {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--g);
  padding: 4px 8px;
  border: 1px solid rgba(29,216,75,0.35);
  background: rgba(29,216,75,0.06);
  flex: 0 0 auto;
}
.footage-title-active {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--t1);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dot pagination — thin pill bars */
.footage-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
}
.footage-dot {
  appearance: none;
  border: 0;
  background: var(--bs);
  width: 28px;
  height: 3px;
  padding: 0;
  cursor: pointer;
  transition: background .25s ease, width .3s ease;
  border-radius: 2px;
}
.footage-dot:hover { background: var(--t3); }
.footage-dot.active {
  background: var(--g);
  width: 52px;
}
.footage-dot:focus-visible {
  outline: 2px solid var(--g);
  outline-offset: 3px;
}

.footage-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--t3);
  text-align: right;
  justify-self: end;
}
.footage-counter .fc-cur { color: var(--t1); }

@media (max-width: 860px) {
  .footage-stage-wrap { padding: 0 20px; margin-top: 24px; }
  .footage-nav { width: 44px; height: 44px; }
  .footage-nav.prev { left: 10px; }
  .footage-nav.next { right: 10px; }
  .footage-dots { gap: 8px; justify-content: center; }
  .footage-chrome {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  .footage-meta { justify-content: center; }
  .footage-counter { text-align: center; justify-self: center; }
  .footage-title-active { font-size: 1.05rem; white-space: normal; }
}
