/* ==========================================================================
   BGS CyberOps — Design System
   ========================================================================== */

:root {
  /* Brand colors — BGS CyberOps official palette */
  --color-teal: #36ceb1;              /* primary brand mint-teal */
  --color-teal-dark: #26a488;         /* pressed / darker teal */
  --color-teal-mid: #2eb89b;          /* midpoint */
  --color-teal-light: #6ee0c8;        /* tinted teal for hover / accents */
  --color-teal-glow: rgba(54, 206, 177, 0.18);

  /* Neutral scale — anchored on brand navy #132738 */
  --color-black: #0b1b28;             /* deepest bg */
  --color-ink: #0f2131;               /* body bg */
  --color-graphite: #132738;          /* brand navy — surface */
  --color-slate: #1c3346;             /* raised surface */
  --color-steel: #476278;
  --color-fog: #7f95aa;
  --color-mist: #c0cbd8;
  --color-cloud: #e6ecf3;
  --color-snow: #f4f7fa;
  --color-white: #ffffff;

  /* Semantic */
  --color-bg: var(--color-black);
  --color-bg-alt: var(--color-ink);
  --color-surface: var(--color-graphite);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: var(--color-cloud);
  --color-text-muted: var(--color-fog);
  --color-accent: var(--color-teal);
  --color-accent-hover: var(--color-teal-light);

  /* Typography — matches BGS CyberOps brand kit (rounded geometric sans) */
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-brand: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Layout */
  --max-w: 1200px;
  --max-w-narrow: 800px;
  --radius: 6px;
  --radius-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 240ms;
}

/* ==========================================================================
   Reset + Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-text);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.section {
  padding: var(--space-9) 0;
}

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

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.nav-brand-mark {
  width: 32px;
  height: 32px;
  color: var(--color-teal);
}

.nav-brand-lockup {
  height: 34px;
  width: auto;
  color: var(--color-white);
  display: block;
}
.nav-brand-lockup path[fill="currentColor"] { fill: currentColor; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9375rem;
  color: var(--color-mist);
  font-weight: 500;
}

.nav-links a:hover { color: var(--color-white); }
.nav-links a.active { color: var(--color-white); }

.nav-cta {
  display: none;
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

@media (min-width: 900px) {
  .nav-cta { display: inline-flex; }
}

.nav-toggle {
  display: block;
  background: none;
  border: 0;
  color: var(--color-white);
  padding: var(--space-2);
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

@media (max-width: 899px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    gap: var(--space-3);
    display: none;
  }
  .nav.is-open .nav-links { display: flex; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(180deg, var(--color-teal) 0%, var(--color-teal-mid) 100%);
  color: #05121c;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
              0 4px 14px -6px rgba(54, 206, 177, 0.6);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--color-teal-light) 0%, var(--color-teal) 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
              0 6px 20px -6px rgba(54, 206, 177, 0.75);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(54, 206, 177, 0.1);
  border-color: var(--color-teal);
  color: var(--color-white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: var(--space-10) 0 var(--space-9);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(20, 184, 146, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.875rem;
  margin-bottom: var(--space-5);
  background: rgba(20, 184, 146, 0.1);
  border: 1px solid rgba(20, 184, 146, 0.25);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-teal-light);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--color-teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-teal);
}

.hero h1 {
  margin-bottom: var(--space-5);
}

.hero p.lead {
  margin-bottom: var(--space-6);
  color: var(--color-mist);
  max-width: 640px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.trust-label {
  font-size: 0.75rem;
  color: var(--color-fog);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.trust-value {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--color-teal-light);
  font-weight: 500;
}

/* ==========================================================================
   Capabilities grid
   ========================================================================== */

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.capability-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--dur) var(--ease);
}

.capability-card:hover {
  border-color: rgba(20, 184, 146, 0.4);
  transform: translateY(-2px);
}

.capability-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(20, 184, 146, 0.12);
  color: var(--color-teal);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}

.capability-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
}

.capability-card p {
  font-size: 0.9375rem;
  color: var(--color-mist);
  margin: 0;
}

/* ==========================================================================
   Section header
   ========================================================================== */

.section-head {
  max-width: 720px;
  margin-bottom: var(--space-6);
}

.section-label {
  display: inline-block;
  margin-bottom: var(--space-3);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-teal);
  background: rgba(20, 184, 146, 0.1);
  border-radius: 100px;
}

.section-head p {
  color: var(--color-mist);
  font-size: 1.0625rem;
}

/* ==========================================================================
   NAICS strip
   ========================================================================== */

.naics-strip {
  padding: var(--space-6) 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.naics-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
}

.naics-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-fog);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.naics-codes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.naics-code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-mist);
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

/* ==========================================================================
   Why us
   ========================================================================== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.why-card {
  padding: var(--space-6);
  border-left: 3px solid var(--color-teal);
  background: rgba(255, 255, 255, 0.02);
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}

.why-card p {
  color: var(--color-mist);
  margin: 0;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  padding: var(--space-8) 0;
  background: linear-gradient(135deg, var(--color-ink) 0%, var(--color-graphite) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.cta-band h2 {
  margin-bottom: var(--space-4);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band p {
  color: var(--color-mist);
  max-width: 560px;
  margin: 0 auto var(--space-6);
  font-size: 1.0625rem;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: var(--space-8) 0 var(--space-6);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-weight: 700;
  color: var(--color-white);
}

.footer-brand-lockup {
  height: 30px;
  width: auto;
  color: var(--color-white);
  display: block;
}

.footer-brand p {
  color: var(--color-fog);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-fog);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a,
.footer-col li {
  font-size: 0.9375rem;
  color: var(--color-mist);
}

.footer-col a:hover { color: var(--color-teal); }

.footer-bottom {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--color-fog);
}

.footer-bottom .cage {
  font-family: var(--font-mono);
  color: var(--color-teal-light);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Federal-contractor "flare" — hero grid, stats, diagonals, reveals, hovers
   ========================================================================== */

/* --- Animated hero background (grid + orbit rings + drifting particles) --- */
.hero {
  position: relative;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(54, 206, 177, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 206, 177, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 75% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 30%, black 20%, transparent 75%);
  animation: gridDrift 40s linear infinite;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle at center,
    rgba(54, 206, 177, 0.16) 0%,
    rgba(54, 206, 177, 0.04) 40%,
    transparent 70%);
  filter: blur(20px);
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes gridDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.1); opacity: 1; }
}

/* Concentric orbit rings behind the hero */
.hero-orbit {
  position: absolute;
  top: 10%;
  right: -8%;
  width: 600px;
  height: 600px;
  pointer-events: none;
  opacity: 0.35;
}
.hero-orbit circle {
  fill: none;
  stroke: var(--color-teal);
  stroke-width: 1;
  transform-origin: center;
  transform-box: fill-box;
}
.hero-orbit .r1 { stroke-dasharray: 3 8; animation: spin 40s linear infinite; }
.hero-orbit .r2 { stroke-dasharray: 2 6; animation: spin 60s linear infinite reverse; }
.hero-orbit .r3 { stroke-dasharray: 1 4; animation: spin 80s linear infinite; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Stats band --- */
.stats-band {
  position: relative;
  padding: var(--space-8) 0;
  background: linear-gradient(180deg, var(--color-ink) 0%, var(--color-graphite) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.stat {
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-3));
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--color-border);
}
@media (max-width: 800px) {
  .stat + .stat::before { display: none; }
}

.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: var(--space-3);
  background: linear-gradient(180deg, var(--color-teal-light) 0%, var(--color-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-suffix {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-teal);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-mist);
}

.stat-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--color-fog);
  margin-top: var(--space-1);
  text-transform: none;
  letter-spacing: 0;
}

/* --- Partners strip --- */
.partners-strip {
  padding: var(--space-6) 0;
  background: var(--color-black);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.partners-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.partners-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-fog);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.partners-list li {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-mist);
  opacity: 0.72;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
.partners-list li:hover { opacity: 1; color: var(--color-teal); }

/* --- Diagonal section divider --- */
.section-diag-top {
  position: relative;
}
.section-diag-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0; right: 0;
  height: 60px;
  background: inherit;
  clip-path: polygon(0 0, 100% 60px, 100% 0);
  transform: translateY(-60px);
}

/* --- Capability card upgraded hover: teal glow + slight tilt --- */
.capability-card {
  position: relative;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(54, 206, 177, 0) 0%,
    rgba(54, 206, 177, 0) 50%,
    rgba(54, 206, 177, 0.5) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.capability-card:hover {
  transform: translateY(-4px);
  border-color: rgba(54, 206, 177, 0.5);
  box-shadow: 0 20px 40px -20px rgba(54, 206, 177, 0.25);
}
.capability-card:hover::before {
  opacity: 1;
}
.capability-card:hover .capability-icon {
  background: rgba(54, 206, 177, 0.22);
  transform: scale(1.06);
}
.capability-icon { transition: transform var(--dur) var(--ease), background var(--dur) var(--ease); }

/* --- Section label with number chip --- */
.section-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-teal);
  margin-right: var(--space-3);
  opacity: 0.85;
  letter-spacing: 0.1em;
}

/* --- Scroll-triggered reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg::before, .hero-bg::after,
  .hero-orbit .r1, .hero-orbit .r2, .hero-orbit .r3 { animation: none; }
}

/* --- Hero CTA glow accent --- */
.hero-cta .btn-primary {
  position: relative;
  box-shadow: 0 0 0 0 rgba(54, 206, 177, 0.7);
  animation: ctaPulse 2.4s ease-out infinite;
}
@keyframes ctaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(54, 206, 177, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(54, 206, 177, 0); }
  100% { box-shadow: 0 0 0 0 rgba(54, 206, 177, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cta .btn-primary { animation: none; }
}

/* --- Mission Environments (illustrated scenes) --- */
.environments {
  background: linear-gradient(180deg, var(--color-ink) 0%, var(--color-graphite) 100%);
  padding: var(--space-10) 0 var(--space-9);
}

.environments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.env-card {
  position: relative;
  background: var(--color-graphite);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.env-card:hover {
  transform: translateY(-4px);
  border-color: rgba(54, 206, 177, 0.5);
  box-shadow: 0 24px 48px -24px rgba(54, 206, 177, 0.35);
}

.env-visual {
  position: relative;
  aspect-ratio: 400 / 260;
  overflow: hidden;
  background: var(--color-graphite);
}
.env-visual .env-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05) brightness(0.7);
  transform: scale(1.02);
  transition: transform 600ms var(--ease), filter 400ms var(--ease);
}
.env-card:hover .env-photo {
  transform: scale(1.08);
  filter: saturate(0.9) contrast(1.1) brightness(0.8);
}
.env-visual .env-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
}
.env-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 27, 40, 0.3) 0%, rgba(11, 27, 40, 0.85) 100%),
    linear-gradient(135deg, rgba(54, 206, 177, 0.28) 0%, rgba(11, 27, 40, 0) 60%);
  pointer-events: none;
  z-index: 1;
}
.env-visual::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, var(--color-graphite) 100%);
  pointer-events: none;
  z-index: 2;
}

.env-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
}

.env-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem;
  background: rgba(54, 206, 177, 0.12);
  border: 1px solid rgba(54, 206, 177, 0.28);
  border-radius: 100px;
  margin-bottom: var(--space-3);
}

.env-card h3 {
  font-size: 1.375rem;
  margin-bottom: var(--space-3);
}

.env-card p {
  color: var(--color-mist);
  font-size: 0.9375rem;
  margin: 0;
}

/* --- Rhythm & polish for the homepage flow --- */
.stats-band { padding: var(--space-9) 0; }
.stats-grid { gap: var(--space-7); }

.partners-strip { padding: var(--space-7) 0; }
.partners-inner { justify-content: center; gap: var(--space-7); }
.partners-list { gap: var(--space-7); }

.section { padding: var(--space-9) 0 var(--space-9); }

/* Bigger, breathing hero */
.hero { padding: var(--space-10) 0 var(--space-10); }
.hero p.lead { max-width: 620px; }
.hero-trust { gap: var(--space-6); }

/* --- Cinematic hero (single message, Ken Burns background) --- */
.hero-cinematic {
  position: relative;
  overflow: hidden;
  padding: var(--space-10) 0;
  min-height: 640px;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-cinematic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-cinematic-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.7) contrast(1.05) brightness(0.55);
  animation: kenBurns 32s ease-in-out infinite alternate;
  transform-origin: 65% 40%;
}

@keyframes kenBurns {
  0%   { transform: scale(1.05) translate3d(0, 0, 0); }
  100% { transform: scale(1.18) translate3d(-2%, -1%, 0); }
}

.hero-cinematic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 27, 40, 0.92) 0%, rgba(11, 27, 40, 0.72) 45%, rgba(11, 27, 40, 0.45) 100%),
    linear-gradient(180deg, rgba(11, 27, 40, 0.35) 0%, rgba(11, 27, 40, 0.75) 100%);
  pointer-events: none;
}

.hero-cinematic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 85% 25%, rgba(54, 206, 177, 0.16) 0%, transparent 55%);
  pointer-events: none;
}

.hero-cinematic .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-cinematic .hero-slide-content {
  max-width: 720px;
  animation: heroFadeUp 900ms var(--ease) both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-cinematic h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.hero-cinematic .lead {
  color: var(--color-cloud);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: var(--space-6);
  font-size: 1.15rem;
}

.hero-cinematic .hero-trust {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: var(--space-7);
}

.hero-cinematic .trust-label {
  color: rgba(201, 209, 220, 0.7);
}

.hero-cinematic .trust-value {
  color: var(--color-teal-light);
  text-shadow: 0 0 20px rgba(54, 206, 177, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .hero-cinematic-bg img { animation: none; transform: scale(1.05); }
  .hero-cinematic .hero-slide-content { animation: none; }
}

@media (max-width: 700px) {
  .hero-cinematic { min-height: 560px; }
}

/* --- Deprecated hero-slider styles (kept for CSS validity, no longer used) --- */
.hero-slider {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 640px;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms var(--ease), visibility 900ms var(--ease);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 27, 40, 0.94) 0%, rgba(11, 27, 40, 0.75) 50%, rgba(11, 27, 40, 0.55) 100%),
    linear-gradient(180deg, rgba(11, 27, 40, 0.4) 0%, rgba(11, 27, 40, 0.85) 100%);
  z-index: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 30%, rgba(54, 206, 177, 0.18) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.hero-slider .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-slide-content {
  max-width: 720px;
}

/* Slide-in animation for the active slide's content */
.hero-slide.is-active .hero-slide-content {
  animation: heroSlideIn 900ms var(--ease) both;
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Slide navigation dots */
.hero-nav {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-3);
  z-index: 5;
}

.hero-dot {
  position: relative;
  width: 40px;
  height: 3px;
  padding: 8px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.hero-dot::before {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transition: background var(--dur) var(--ease);
}

.hero-dot:hover::before {
  background: rgba(255, 255, 255, 0.4);
}

.hero-dot.is-active::before {
  background: var(--color-teal);
  box-shadow: 0 0 12px rgba(54, 206, 177, 0.6);
}

/* Progress bar animation on active dot */
.hero-dot.is-active::after {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  height: 3px;
  background: var(--color-teal-light);
  border-radius: 2px;
  animation: dotProgress 6.5s linear both;
  z-index: 1;
}

@keyframes dotProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

.hero-slide-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  margin-bottom: var(--space-5);
  background: rgba(54, 206, 177, 0.15);
  border: 1px solid rgba(54, 206, 177, 0.4);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-teal-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-slide-tag-dot {
  width: 6px;
  height: 6px;
  background: var(--color-teal);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-teal);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active .hero-slide-content { animation: none; transition: none; }
  .hero-dot.is-active::after { animation: none; width: 100%; }
}

@media (max-width: 700px) {
  .hero-slider { min-height: 560px; }
  .hero-slide::before {
    background: linear-gradient(180deg, rgba(11, 27, 40, 0.75) 0%, rgba(11, 27, 40, 0.92) 100%);
  }
}

.hero-slide-content h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-slide-content p.lead {
  color: var(--color-cloud);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  margin-bottom: var(--space-6);
}
.hero-slide-content .hero-cta { margin-bottom: 0; }
</content>
