/* ============================================================
   MEDIA GROUP ASIA - Design System v2
   Elevated: depth, micro-interactions, refined typography,
   component polish, staggered animations
   ============================================================ */

/* --- Custom Properties (Design Tokens) --- */
:root {
  /* Colors — MGA Brand Book 2026 (page 21) */
  --navy-900:  #0a2342;   /* Primary dark, navy base — brand book */
  --navy-800:  #0f2c50;   /* One step lighter */
  --navy-700:  #143861;   /* Mid navy */
  --navy-600:  #1a4573;   /* Blue-navy */
  --blue-600:  #11538c;   /* Brand book blue */
  --blue-500:  #2a6ba3;   /* One step lighter */
  --teal-600:  #4fa89f;   /* One step darker than brand teal */
  --teal-500:  #6bbfb7;   /* Brand book teal */
  --teal-400:  #8ad0c9;   /* Lighter teal */
  --teal-300:  #a9ded8;   /* Lightest teal */
  --red-600:   #cc0000;   /* Brand book red (accent) */
  --red-700:   #a30000;   /* Pressed */
  --red-100:   rgba(204,0,0,0.08);
  --ink-900:   #0a2342;   /* Body text uses navy */
  --ink-700:   #143861;
  --ink-500:   #4a6b8a;
  --ink-300:   #8ba4b8;
  --paper-50:  #f6f8f9;   /* Off-white */
  --paper-100: #eef2f5;
  --panel-100: #eef2f5;
  --panel-200: #dde4ea;
  --white:     #ffffff;
  --black:     #000000;

  /* Gradients — brand book: navy → blue → teal */
  --gradient-teal: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-300) 100%);
  --gradient-teal-rich: linear-gradient(135deg, var(--blue-600) 0%, var(--teal-500) 50%, var(--teal-300) 100%);
  --gradient-navy: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  --gradient-hero: linear-gradient(180deg, rgba(10,35,66,0.94) 0%, rgba(15,44,80,0.78) 50%, rgba(10,35,66,0.9) 100%);
  --gradient-hero-short: linear-gradient(180deg, rgba(10,35,66,0.9) 0%, rgba(15,44,80,0.72) 100%);
  --gradient-section-navy: linear-gradient(180deg, #0f2c50 0%, #0a2342 100%);
  --gradient-section-dark: linear-gradient(180deg, #0a2342 0%, #061a30 100%);
  --gradient-cta: linear-gradient(135deg, #11538c 0%, #2a6ba3 30%, #6bbfb7 70%, #a9ded8 100%);
  --gradient-glow-teal: radial-gradient(ellipse at 50% 0%, rgba(107,191,183,0.18) 0%, transparent 70%);
  --gradient-glow-red: radial-gradient(ellipse at 50% 0%, rgba(204,0,0,0.06) 0%, transparent 70%);

  /* Typography — DM Sans is the MGA brand book primary font (page 22) */
  --font-display: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', 'SF Mono', 'Menlo', 'Consolas', monospace;

  /* Type Scale (fluid, larger than previous — brand book uses Light/ExtraLight
     for display, Bold for titles, Normal for body) */
  --text-xs:    clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm:    clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base:  clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --text-lg:    clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-xl:    clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --text-2xl:   clamp(1.625rem, 1.4rem + 1.1vw, 2.25rem);
  --text-3xl:   clamp(2rem, 1.6rem + 1.7vw, 2.875rem);
  --text-4xl:   clamp(2.5rem, 2rem + 2.2vw, 3.75rem);
  --text-5xl:   clamp(3rem, 2.2rem + 3.2vw, 4.75rem);
  --text-6xl:   clamp(3.5rem, 2.5rem + 4vw, 5.75rem);

  /* Spacing */
  --space-2xs:  0.25rem;
  --space-xs:   0.5rem;
  --space-sm:   0.75rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --space-5xl:  8rem;

  /* Layout — telus-style generous breathing room */
  --content-max: 1240px;
  --content-narrow: 800px;
  --section-pad-y: clamp(4rem, 7vw, 7rem);
  --section-pad-x: clamp(1.5rem, 5vw, 5rem);

  /* Effects */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;
  --shadow-xs:  0 1px 2px rgba(10,35,66,0.05);
  --shadow-sm:  0 1px 3px rgba(10,35,66,0.06), 0 1px 2px rgba(10,35,66,0.04);
  --shadow-md:  0 4px 6px rgba(10,35,66,0.05), 0 2px 4px rgba(10,35,66,0.04);
  --shadow-lg:  0 10px 25px rgba(10,35,66,0.08), 0 4px 10px rgba(10,35,66,0.04);
  --shadow-xl:  0 20px 40px rgba(10,35,66,0.1), 0 8px 16px rgba(10,35,66,0.05);
  --shadow-glass: 0 8px 32px rgba(10,35,66,0.3), 0 2px 8px rgba(10,35,66,0.15);
  --shadow-glow-teal: 0 0 40px rgba(107,191,183,0.15);
  --shadow-glow-red: 0 4px 20px rgba(204,0,0,0.25);
  --glass-bg:   rgba(10,35,66,0.65);
  --glass-border: rgba(255,255,255,0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 500ms;
  --duration-reveal: 700ms;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@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;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink-900);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

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

ul, ol {
  list-style: none;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink-900);
  letter-spacing: -0.025em;
}

h1 { font-size: var(--text-5xl); line-height: 1.05; text-wrap: balance; font-weight: 300; letter-spacing: -0.035em; }
h2 { font-size: var(--text-4xl); line-height: 1.1; text-wrap: balance; font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: var(--text-2xl); line-height: 1.2; text-wrap: balance; font-weight: 500; }
h4 { font-size: var(--text-xl); line-height: 1.3; text-wrap: balance; font-weight: 500; }
h5 { font-size: var(--text-lg); text-wrap: balance; font-weight: 500; }
h6 { font-size: var(--text-base); font-weight: 600; }

p {
  margin-bottom: var(--space-md);
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

/* Eyebrow / label text */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-500);
}

.eyebrow--red {
  color: var(--red-600);
}

/* In hero / dark overlays, eyebrow needs a brighter tone for AA contrast */
.hero .eyebrow,
.section--dark .eyebrow,
.section--navy .eyebrow,
.section--blue .eyebrow,
.section--teal-gradient .eyebrow {
  color: var(--teal-300);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

/* ─── Scroll progress bar — fixed top, tracks page scroll ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--teal-500) 0%,
    var(--teal-400) 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
  box-shadow: 0 0 8px rgba(107, 191, 183, 0.4);
  transition: transform 100ms linear;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transition: none; }
}

/* ─── SVG draw-on animation (telus-style smooth vector motion) ─── */
/* Add class="draw-on" to any SVG; uses stroke-dasharray to "draw" the line on view */
.draw-on path,
.draw-on circle,
.draw-on line,
.draw-on rect,
.draw-on polyline,
.draw-on polygon {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.draw-on.is-drawn path,
.draw-on.is-drawn circle,
.draw-on.is-drawn line,
.draw-on.is-drawn rect,
.draw-on.is-drawn polyline,
.draw-on.is-drawn polygon {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .draw-on path,
  .draw-on circle,
  .draw-on line,
  .draw-on rect,
  .draw-on polyline,
  .draw-on polygon {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

/* ─── Telus-style soft card with subtle border + hover lift ─── */
.card-soft {
  background: var(--white);
  border: 1px solid rgba(20, 56, 97, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

.card-soft:hover {
  border-color: rgba(107, 191, 183, 0.4);
  box-shadow: 0 8px 30px rgba(10, 35, 66, 0.06);
  transform: translateY(-2px);
}

.section--navy .card-soft,
.section--dark .card-soft,
.section--teal-gradient .card-soft,
.section--blue .card-soft {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.section--navy .card-soft:hover,
.section--dark .card-soft:hover {
  border-color: rgba(107, 191, 183, 0.4);
  background: rgba(107, 191, 183, 0.06);
}

.container--narrow {
  max-width: var(--content-narrow);
}

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

/* Section color variants */
.section--white {
  background-color: var(--white);
}

.section--paper {
  background-color: var(--paper-50);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230E2A3E' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.section--navy {
  background: var(--gradient-section-navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--navy h5 {
  color: var(--white);
}

.section--navy .eyebrow {
  color: var(--teal-300);
}

.section--dark {
  background: var(--gradient-section-dark);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5 {
  color: var(--white);
}

.section--blue {
  background: linear-gradient(135deg, #1A5399 0%, var(--blue-600) 50%, #2872C4 100%);
  color: var(--white);
}

.section--blue h2,
.section--blue h3,
.section--blue h4,
.section--blue h5 {
  color: var(--white);
}

.section--teal-gradient {
  background: var(--gradient-teal-rich);
  color: var(--white);
}

.section--teal-gradient h2,
.section--teal-gradient h3,
.section--teal-gradient h4,
.section--teal-gradient h5 {
  color: var(--white);
}

/* Subtle top glow on dark sections (depth cue from previous section) */
.section--navy::before,
.section--dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138,208,201,0.2), transparent);
}

/* Grid utilities */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

.flex--between {
  align-items: center;
  justify-content: space-between;
}

.flex--col {
  flex-direction: column;
}

.flex--gap-sm { gap: var(--space-sm); }
.flex--gap-md { gap: var(--space-md); }
.flex--gap-lg { gap: var(--space-lg); }
.flex--gap-xl { gap: var(--space-xl); }

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* Max-width prose */
.prose {
  max-width: 680px;
}

.prose--center {
  max-width: 680px;
  margin-inline: auto;
}

/* Spacers */
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }


/* ============================================================
   COMPONENTS
   ============================================================ */

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(10, 35, 66, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(10, 35, 66, 0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  border-bottom-color: rgba(255,255,255,0.03);
}

/* Transparent header — homepage hero only. Becomes opaque once scrolled. */
.site-header.is-transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
.site-header.is-transparent.is-scrolled {
  background: rgba(10, 35, 66, 0.97);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  border-bottom-color: rgba(255,255,255,0.03);
}

/* Header CTA button — always white border + white text on navy header */
.site-header .btn--primary {
  color: #fff !important;
  border-color: #fff;
}
.site-header .btn--primary:hover {
  background: #fff !important;
  color: var(--navy-900) !important;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--space-md) var(--section-pad-x);
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--white);
  letter-spacing: 0.04em;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--duration-fast) ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo__icon {
  width: 36px;
  height: 36px;
}

.logo__text span {
  color: var(--red-600);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.nav__link {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.85);   /* raised from 0.7 → 0.85 — passes AA on navy (~6:1) */
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: color var(--duration-fast) ease,
              background var(--duration-fast) ease;
  white-space: nowrap;
  position: relative;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* When the nav "link" is a <span> (non-clickable category label for dropdowns),
   keep the same styling and cursor so the dropdown still triggers on hover. */
.nav__item--has-dropdown > .nav__link {
  cursor: default;
}

.nav__link.is-active {
  color: var(--white);
}

.nav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: var(--space-sm);
  right: var(--space-sm);
  height: 2px;
  background: var(--teal-400);
  border-radius: 1px;
}

/* Subtle highlight on the nav link whose target section is currently in view */
.nav__link.is-current-section {
  color: var(--teal-300);
  background: rgba(107, 191, 183, 0.08);
}

/* ── Services dropdown ── */
.nav__item--has-dropdown {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: rgba(10, 35, 66, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: var(--space-xs) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out),
              visibility var(--duration-base);
  z-index: 100;
  list-style: none;
  margin: 0;
}

/* Transparent header (homepage hero): dropdown inherits transparency */
.site-header.is-transparent:not(.is-scrolled) .nav__dropdown {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
}

.nav__item--has-dropdown:hover .nav__dropdown,
.nav__item--has-dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--duration-fast) ease,
              background var(--duration-fast) ease;
  white-space: nowrap;
}

.nav__dropdown-link:hover,
.nav__dropdown-link:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav__dropdown-link.is-active {
  color: var(--teal-400);
}

.nav__chevron {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.7em;
  opacity: 0.5;
  transition: transform var(--duration-base) var(--ease-out);
}

.nav__item--has-dropdown:hover .nav__chevron,
.nav__item--has-dropdown:focus-within .nav__chevron {
  transform: rotate(180deg);
}

/* Mobile dropdown — expand inline */
@media (max-width: 900px) {
  .nav__dropdown {
    position: static;
    min-width: 0;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    margin-top: 0;
  }

  .nav__dropdown-link {
    padding: var(--space-sm) var(--space-2xl);
    font-size: var(--text-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) ease;
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.08);
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-fast) ease;
}

.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

  .nav {
    position: fixed;
    inset: 72px 0 0 0;
    z-index: 9000;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10,35,66,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-xl) var(--section-pad-x);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-out);
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-lg);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 0;
  }

  .nav__link.is-active::after {
    bottom: auto;
    top: 50%;
    left: 0;
    right: auto;
    width: 3px;
    height: 24px;
    transform: translateY(-50%);
  }

  .nav .btn--primary {
    margin-top: var(--space-lg);
    text-align: center;
    justify-content: center;
    /* Solid red primary fill so the CTA stands out in the dark mobile menu */
    background: var(--red-600, #cc0000) !important;
    color: #fff !important;
    border-color: var(--red-600, #cc0000) !important;
  }

  .nav .btn--primary:hover,
  .nav .btn--primary:active {
    background: #a30000 !important;
    border-color: #a30000 !important;
    color: #fff !important;
  }
}

/* --- Buttons (harmonised: border only, navy + white, radius-md) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.85em 1.8em;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--navy-900);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary:active {
  transform: translateY(0) scale(0.96);
}

/* Glass button — on dark sections: white border + white text */
.btn--glass {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.8);
}

.btn--glass:hover {
  background: var(--navy-900);
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,35,66,0.45), 0 0 0 1px rgba(255,255,255,0.15);
}

/* Outline button — on dark sections: white border + white text */
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
}

.btn--outline:hover {
  background: var(--navy-900);
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,35,66,0.45), 0 0 0 1px rgba(255,255,255,0.15);
}

/* Dark button — navy border + navy text */
.btn--dark {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--navy-900);
}

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

.btn--arrow::after {
  content: '\2192';
  transition: transform var(--duration-base) var(--ease-out);
  display: inline-block;
}

.btn--arrow:hover::after {
  transform: translateX(4px);
}

/* --- Hero ---
   Use 100dvh (dynamic viewport) instead of 100vh to prevent layout
   jumping on iOS Safari when the address bar collapses/expands. */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  z-index: 0;
  padding-top: 72px;
}

/* ── SPLIT HERO layout (homepage) ── */
.hero--split .hero__split-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--space-3xl) var(--section-pad-x);
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: var(--space-4xl);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 680px;
}

.hero__copy .eyebrow {
  color: var(--teal-300);
}

.hero__copy h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.25rem);
  line-height: 1.06;
  font-weight: 300;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(10,35,66,0.4);
  margin: 0;
}

.hero__lead {
  color: rgba(255,255,255,0.88);
  font-size: var(--text-lg);
  line-height: 1.65;
  margin: 0;
  max-width: 560px;
}

.hero__ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xs);
}

/* 3D stage: positioned naturally in the grid column */
.hero--split .hero__3d-stage {
  position: relative;
  top: auto;
  right: auto;
  transform: none;
  width: 100%;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .hero--split .hero__split-content {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    padding-top: var(--space-4xl);
  }
  .hero--split .hero__3d-stage {
    height: 420px;
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .hero--split .hero__split-content {
    padding-block: var(--space-3xl);
  }
  .hero__ctas {
    flex-direction: column;
  }
  .hero--split .hero__3d-stage {
    height: 320px;
  }
}

/* Legacy hero content (other pages unchanged) */
.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--space-md) var(--section-pad-x) var(--space-3xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100dvh - 72px);
}

.hero--short .hero__content,
.hero.hero--short .hero__content {
  min-height: calc(70dvh - 72px);
}

.hero--short {
  min-height: 70dvh;
}

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

.hero__bg img,
.hero__bg canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02); /* prevent sub-pixel gaps */
}

.hero__bg canvas {
  display: block;
  object-fit: none;
  /* Reserved for future canvas-based hero animations. Currently unused —
     the ecosystem hero uses a static image, see ecosystem.html. */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

/* Split hero needs a stronger left-to-right gradient so copy is readable */
.hero--split .hero__overlay {
  background: linear-gradient(
    105deg,
    rgba(10,35,66,0.97) 0%,
    rgba(10,35,66,0.88) 45%,
    rgba(10,35,66,0.55) 100%
  );
}

.hero--short .hero__overlay {
  background: var(--gradient-hero-short);
}

/* Subtle noise texture on hero for depth */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* New: hero__top holds eyebrow + H1, lives above the glass card */
.hero__top {
  max-width: 900px;
  display: flex;
  flex-direction: column;
}

.hero__top h1,
.hero__card h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 1.25rem + 3.25vw, 4rem);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.035em;
  margin: 0 0 var(--space-md) 0;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(10, 35, 66, 0.4);
}

/* Split-word spans inside hero h1 — keeps word-by-word reveal working */
.hero__top h1 .split-word,
.hero__card h1 .split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.hero__top h1 .split-word > span,
.hero__card h1 .split-word > span {
  display: inline-block;
  will-change: transform;
}

.hero__card {
  background: rgba(10, 35, 66, 0.65);
  backdrop-filter: blur(32px) saturate(1.4);
  -webkit-backdrop-filter: blur(32px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl) var(--space-2xl);
  max-width: 780px;            /* Wider for more balanced proportion */
  width: 100%;
  box-shadow:
    0 8px 32px rgba(10, 35, 66, 0.4),
    0 2px 8px rgba(10, 35, 66, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

/* Subtle inner glow on the glass card */
.hero__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02), rgba(138,208,201,0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* hero h1 now lives in .hero__top; .hero__card holds paragraph + CTAs */
.hero__card p {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-lg);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.hero__ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero {
    min-height: 100svh;
  }
  .hero--short {
    min-height: 75svh;
  }
  .hero__content {
    padding: var(--space-3xl) var(--section-pad-x) var(--space-3xl);
  }
  .hero__card {
    padding: var(--space-2xl) var(--space-xl);
    border-radius: var(--radius-xl);
  }
  .hero__ctas {
    flex-direction: column;
  }
}

/* --- Numbered Rule List --- */
.rule-list {
  display: flex;
  flex-direction: column;
}

.rule-list__item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: baseline;
  transition: padding-left var(--duration-base) var(--ease-out);
}

.rule-list__item:hover {
  padding-left: var(--space-xs);
}

.section--white .rule-list__item,
.section--paper .rule-list__item {
  border-bottom-color: var(--panel-100);
}

.rule-list__item:last-child {
  border-bottom: none;
}

.rule-list__num {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--teal-500);
  line-height: 1.3;
  transition: color var(--duration-fast) ease;
  font-variant-numeric: tabular-nums;
}

.rule-list__item:hover .rule-list__num {
  color: var(--teal-400);
}

.section--navy .rule-list__num,
.section--dark .rule-list__num,
.section--teal-gradient .rule-list__num,
.section--blue .rule-list__num {
  color: var(--teal-300);
}

.rule-list__text {
  font-size: var(--text-base);
  line-height: 1.6;
  font-weight: 500;
}

/* --- Negative List (What We Don't Do) --- */
.negative-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.negative-list__item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  align-items: center;
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) ease;
}

.negative-list__item:hover {
  background: var(--red-100);
}

.section--dark .negative-list__item:hover,
.section--navy .negative-list__item:hover {
  background: rgba(204,0,0,0.1);
}

.negative-list__icon {
  color: var(--red-600);
  font-weight: 700;
  font-size: var(--text-xl);
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-100);
  border-radius: var(--radius-sm);
}

.section--dark .negative-list__icon,
.section--navy .negative-list__icon {
  background: rgba(204,0,0,0.15);
}

.negative-list__text {
  font-size: var(--text-base);
  line-height: 1.5;
  font-weight: 500;
}

/* --- Check List --- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.check-list__item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  align-items: center;
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) ease;
}

.check-list__item:hover {
  background: rgba(107,191,183,0.06);
}

.section--navy .check-list__item:hover,
.section--dark .check-list__item:hover,
.section--blue .check-list__item:hover {
  background: rgba(138,208,201,0.08);
}

.check-list__icon {
  color: var(--teal-500);
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(107,191,183,0.1);
  border-radius: var(--radius-sm);
}

.section--navy .check-list__icon,
.section--dark .check-list__icon,
.section--blue .check-list__icon {
  color: var(--teal-300);
  background: rgba(138,208,201,0.12);
}

.check-list__text {
  font-size: var(--text-base);
  line-height: 1.5;
  font-weight: 500;
}

/* --- Ecosystem Card --- */
.eco-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 2px 6px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.05);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.eco-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(107,191,183,0.1),
    0 4px 12px rgba(0,0,0,0.06),
    0 16px 40px rgba(0,0,0,0.08);
}

.eco-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
  outline: 1px solid rgba(0,0,0,0.06);
  outline-offset: -1px;
}

.eco-card:hover .eco-card__img {
  transform: scale(1.03);
}

.eco-card__body {
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
}

.eco-card__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--teal-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.eco-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--space-sm);
}

.eco-card__desc {
  font-size: var(--text-sm);
  color: var(--ink-700);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}

.eco-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal-500);
  text-decoration: none;
  transition: gap var(--duration-base) var(--ease-out),
              color var(--duration-fast) ease;
}

.eco-card__link:hover {
  gap: var(--space-sm);
  color: var(--teal-600);
}

.eco-card__link::after {
  content: '\2192';
  transition: transform var(--duration-base) var(--ease-out);
}

.eco-card__link:hover::after {
  transform: translateX(2px);
}

/* --- Ecosystem Row (for Home page compact list) --- */
.eco-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-md);
  border-bottom: 1px solid var(--panel-100);
  align-items: center;
  border-radius: var(--radius-md);
  transition: background var(--duration-fast) ease,
              padding-left var(--duration-base) var(--ease-out);
  margin-inline: calc(var(--space-md) * -1);
}

.eco-row:hover {
  background: var(--paper-50);
  padding-left: var(--space-lg);
}

.eco-row:last-child {
  border-bottom: none;
}

.eco-row__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--space-xs);
}

.eco-row__desc {
  font-size: var(--text-sm);
  color: var(--ink-700);
  line-height: 1.6;
}

.eco-row__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-lg);
  text-decoration: none;
  transition: background var(--duration-fast) ease,
              transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-fast) ease;
  flex-shrink: 0;
}

.eco-row__arrow:hover {
  background: var(--teal-400);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: var(--shadow-glow-teal);
}

/* --- Callout Box --- */
.callout {
  padding: var(--space-xl) var(--space-2xl);
  border-radius: var(--radius-xl);
  margin-top: var(--space-xl);
  position: relative;
  border-left: 4px solid transparent;
}

.callout--navy {
  background: var(--navy-800);
  color: var(--white);
  border-left-color: var(--teal-400);
}

.callout--blue {
  background: var(--blue-600);
  color: var(--white);
  border-left-color: rgba(255,255,255,0.3);
}

.callout--teal {
  background: var(--teal-500);
  color: var(--white);
  border-left-color: var(--teal-300);
}

.callout--paper {
  background: var(--panel-100);
  color: var(--ink-900);
  border-left-color: var(--teal-500);
}

.callout__text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.55;
}

/* --- Stage Block (How We Work) --- */
.stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--panel-100);
  position: relative;
}

.stage:last-child {
  border-bottom: none;
}

.stage:nth-child(even) {
  direction: rtl;
}

.stage:nth-child(even) > * {
  direction: ltr;
}

.stage__img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.05),
    0 4px 12px rgba(0,0,0,0.06),
    0 12px 32px rgba(0,0,0,0.08);
}

.stage__img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.stage:hover .stage__img img {
  transform: scale(1.03);
}

.stage__num {
  font-family: var(--font-mono);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--teal-500);
  line-height: 1;
  margin-bottom: var(--space-sm);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.stage__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: var(--space-md);
}

.stage__desc {
  color: var(--ink-700);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .stage {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .stage:nth-child(even) {
    direction: ltr;
  }
  .stage__img img {
    height: 220px;
  }
}

/* --- CTA Band --- */
.cta-band {
  text-align: center;
  padding: var(--space-5xl) var(--section-pad-x);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind CTA */
.cta-band::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-lg);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.cta-band .eyebrow {
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-band .btn {
  position: relative;
}

/* --- Contact Form --- */
.form {
  max-width: 600px;
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--ink-900);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 0.85em 1.1em;
  font-size: var(--text-base);
  background: var(--white);
  border: 1.5px solid var(--panel-200);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease,
              background var(--duration-fast) ease;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--ink-300);
}

.form__input:hover,
.form__textarea:hover,
.form__select:hover {
  border-color: var(--ink-300);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(107,191,183,0.12);
  background: var(--white);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__consent {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: var(--space-sm);
  align-items: start;
  margin-bottom: var(--space-xl);
}

.form__consent input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 3px;
  accent-color: var(--teal-500);
  cursor: pointer;
}

.form__consent label {
  font-size: var(--text-sm);
  color: var(--ink-700);
  line-height: 1.5;
}

.form__status {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: var(--space-lg);
  display: none;
}

.form__status--success {
  display: block;
  background: rgba(107,191,183,0.08);
  color: var(--teal-600);
  border: 1px solid rgba(107,191,183,0.2);
}

.form__status--error {
  display: block;
  background: var(--red-100);
  color: var(--red-700);
  border: 1px solid rgba(204,0,0,0.2);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: var(--space-5xl) 0 var(--space-xl);
  position: relative;
}

/* Top glow line */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138,208,201,0.3), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer__brand .logo {
  margin-bottom: var(--space-lg);
}

.footer__brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.7);    /* raised from 0.5 → 0.7 — passes AA on navy (~4.7:1) */
  max-width: 340px;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255,255,255,0.7);    /* raised from 0.5 → 0.7 */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.footer__list li {
  margin-bottom: var(--space-sm);
}

.footer__list a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);   /* raised from 0.6 → 0.75 — passes AA on navy (~5.2:1) */
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.footer__list a:hover {
  color: var(--white);
}

/* Non-link footer list items (addresses) */
.footer__list li:not(:has(a)) {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);    /* raised from 0.45 → 0.6 */
  line-height: 1.6;
}

.footer-bottom {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--space-xl) var(--section-pad-x) 0;
  margin-top: var(--space-3xl);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);   /* raised from 0.35 → 0.55 — small text needs more contrast */
}

.footer-bottom a {
  color: rgba(255,255,255,0.65);   /* raised from 0.45 → 0.65 */
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

/* Social icons */
.social-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  transition: background var(--duration-fast) ease,
              color var(--duration-fast) ease,
              transform var(--duration-fast) var(--ease-spring);
}

.social-links a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Scroll Reveal ---
   The opacity:0 state is gated behind `html.js-ready` so that:
   - No-JS users see fully visible content
   - Crawlers / OG-image tools / screenshots render real content
   - Reduced-motion users get a working page even with JS
   Only progressive enhancement is added when JS successfully attaches. */
html.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
              transform var(--duration-reveal) var(--ease-out-expo);
}

html.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal delays for sequential elements */
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Info Panel (blue) --- */
.info-panel {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-3xl);
  box-shadow: var(--shadow-lg);
}

.info-panel h3 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.info-panel p {
  color: rgba(255,255,255,0.9);
}

/* --- Card (generic) --- */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-xl);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.03),
    0 1px 3px rgba(0,0,0,0.04),
    0 4px 12px rgba(0,0,0,0.03);
  border: none;
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

.card:hover {
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 2px 6px rgba(0,0,0,0.05),
    0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.card--navy {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card--navy:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(138,208,201,0.2);
}

.card--navy h3,
.card--navy h4 {
  color: var(--white);
}

.card--navy p {
  color: rgba(255,255,255,0.7);
}

/* --- Trust Strip --- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  padding: var(--space-xl) 0;
  opacity: 0.5;
  transition: opacity var(--duration-slow) ease;
}

.trust-strip:hover {
  opacity: 0.8;
}

.trust-strip img {
  height: 28px;
  width: auto;
  filter: grayscale(1) brightness(2);
}

.trust-strip span {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* --- Section intro pattern --- */
.section-intro {
  max-width: 680px;
  margin-bottom: var(--space-3xl);
}

.section-intro h2 {
  margin-bottom: var(--space-lg);
}

.section-intro p {
  font-size: var(--text-lg);
  color: var(--ink-700);
  line-height: 1.7;
}

.section--navy .section-intro p,
.section--dark .section-intro p,
.section--blue .section-intro p {
  color: rgba(255,255,255,0.75);
}

.section-intro--center {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-intro--center p {
  font-size: var(--text-lg);
  color: var(--ink-700);
  line-height: 1.7;
}

/* --- Two-column layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* --- Accent line --- */
.accent-line {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--teal-500);
  line-height: 1.5;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 3px solid var(--teal-500);
}

.section--navy .accent-line,
.section--dark .accent-line {
  color: var(--teal-300);
  border-top-color: var(--teal-300);
}

/* --- Map graphic placeholder --- */
.world-map {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 16/9;
  background: var(--navy-800);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-size: var(--text-xs);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.06);
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--red-600);
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  z-index: 2000;
  font-weight: 600;
  transition: top var(--duration-fast) ease;
}

.skip-link:focus {
  top: var(--space-md);
}

/* --- FAQ Section --- */
.prose--center h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--panel-100);
}

.prose--center > div:first-child h3 {
  border-top: none;
  padding-top: 0;
}

.prose--center p {
  color: var(--ink-700);
  line-height: 1.7;
}

/* --- Legal pages prose --- */
.container--narrow h2 {
  font-size: var(--text-xl);
}

.container--narrow ul {
  line-height: 1.8;
  color: var(--ink-700);
}

.container--narrow ul li {
  margin-bottom: var(--space-xs);
}

/* --- Responsive form in split layout --- */
@media (max-width: 768px) {
  .split .form {
    max-width: 100%;
  }
}

/* --- Select styling --- */
.form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%234A6B7A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
}

/* --- Separator decoration between major sections --- */
.section--white + .section--white::before,
.section--paper + .section--paper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--panel-200);
}

/* --- Text selection --- */
::selection {
  background: rgba(107,191,183,0.2);
  color: var(--ink-900);
}

/* --- Smooth image container overflow for eco-cards --- */
.eco-card__img-wrap {
  overflow: hidden;
}

/* --- Print styles --- */
@media print {
  .site-header,
  .nav-toggle,
  .btn,
  .hero__ctas,
  .cta-band,
  .social-links {
    display: none !important;
  }

  .hero {
    min-height: auto !important;
    padding: 2rem 0;
  }

  .section {
    padding: 2rem 0;
  }

  body {
    color: #000;
    background: #fff;
  }
}


/* ============================================================
   DESIGN UPGRADE — Advanced Animations, Visual Richness, Careers
   ============================================================ */

/* --- Animated Gradient Mesh Backgrounds --- */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(30px, -20px) scale(1.05); }
  50%      { transform: translate(-10px, 15px) scale(0.97); }
  75%      { transform: translate(-25px, -10px) scale(1.02); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.08); }
}

@keyframes subtleDrift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes lineExpand {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

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

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes counterPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

@keyframes rotateGlow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes drawPath {
  from { stroke-dashoffset: 1000; }
  to   { stroke-dashoffset: 0; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.35; }
}

/* --- Animated Mesh Orbs (reusable decoration) --- */
.mesh-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.mesh-orbs__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.mesh-orbs__orb--teal {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107,191,183,0.25) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: floatOrb 18s ease-in-out infinite;
}

.mesh-orbs__orb--navy {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(31,95,168,0.2) 0%, transparent 70%);
  bottom: -15%;
  left: -8%;
  animation: floatOrb 22s ease-in-out infinite reverse;
}

.mesh-orbs__orb--red {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(204,0,0,0.1) 0%, transparent 70%);
  top: 30%;
  left: 40%;
  animation: floatOrb 15s ease-in-out infinite 3s;
}

/* --- Animated Section Divider Lines --- */
.section-divider {
  width: 100%;
  height: 1px;
  position: relative;
  overflow: hidden;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-400), transparent);
  transform: scaleX(0);
  transform-origin: center;
}

.section-divider.is-visible::after {
  animation: lineExpand 1.2s var(--ease-out-expo) forwards;
}

/* --- Enhanced Hero — Cinematic Entry --- */
.hero .hero__card {
  animation: fadeInScale 1s var(--ease-out-expo) 0.3s both;
}

.hero .hero__card .eyebrow {
  animation: fadeInUp 0.7s var(--ease-out-expo) 0.5s both;
}

.hero .hero__card h1 {
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.65s both;
}

.hero .hero__card > p:not(.eyebrow) {
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.8s both;
}

.hero .hero__ctas {
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.95s both;
}

/* Hero rotating conic glow */
.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: conic-gradient(
    from 0deg,
    transparent, 
    rgba(107,191,183,0.08),
    transparent,
    rgba(31,95,168,0.06),
    transparent
  );
  border-radius: 50%;
  animation: rotateGlow 30s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* ===========================================================
   3D HERO STAGE
   Floating CSS-3D cube + orbital rings on the right of the
   hero. Pure CSS — no WebGL, no JS, GPU-composited.
   =========================================================== */
.hero__3d-stage {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translate(0, -50%);
  width: 360px;
  height: 360px;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  z-index: 2;
  pointer-events: none;
  display: none; /* hidden by default; shown via media query */
}

@media (min-width: 1024px) {
  .hero__3d-stage {
    display: block;
  }
}

@media (min-width: 1280px) {
  .hero__3d-stage {
    right: 6%;
    width: 440px;
    height: 440px;
  }
}

@media (min-width: 1600px) {
  .hero__3d-stage {
    width: 520px;
    height: 520px;
  }
}

/* Override for split hero: stage is in-flow (grid column), not absolute */
.hero--split .hero__3d-stage {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
  display: flex !important;
  width: 100% !important;
  height: 620px;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.hero__3d-cube {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(-22deg) rotateY(38deg);
  animation: cubeSpin 22s linear infinite;
  will-change: transform;
}

@keyframes cubeSpin {
  0%   { transform: translate(-50%, -50%) rotateX(-22deg) rotateY(0deg); }
  100% { transform: translate(-50%, -50%) rotateX(-22deg) rotateY(360deg); }
}

.cube-face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(107, 191, 183, 0.45);
  background: linear-gradient(135deg, rgba(17, 83, 140, 0.18), rgba(107, 191, 183, 0.10));
  backdrop-filter: blur(2px);
  box-shadow: inset 0 0 60px rgba(107, 191, 183, 0.12);
}

.cube-face--front  { transform: translateZ(110px); }
.cube-face--back   { transform: rotateY(180deg) translateZ(110px); }
.cube-face--right  { transform: rotateY(90deg)  translateZ(110px); }
.cube-face--left   { transform: rotateY(-90deg) translateZ(110px); }
.cube-face--top    { transform: rotateX(90deg)  translateZ(110px); background: linear-gradient(135deg, rgba(204, 0, 0, 0.22), rgba(107, 191, 183, 0.18)); }
.cube-face--bottom { transform: rotateX(-90deg) translateZ(110px); }

.hero__3d-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(107, 191, 183, 0.4);
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__3d-ring--1 {
  width: 420px;
  height: 420px;
  border-color: rgba(107, 191, 183, 0.55);
  border-style: dashed;
  animation: ringSpin 18s linear infinite;
  box-shadow: 0 0 40px rgba(107, 191, 183, 0.1) inset;
}

.hero__3d-ring--2 {
  width: 560px;
  height: 560px;
  border-color: rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%) rotateX(72deg);
  animation: ringSpin 28s linear infinite reverse;
}

.hero__3d-ring--3 {
  width: 680px;
  height: 680px;
  border-color: rgba(204, 0, 0, 0.25);
  border-style: dotted;
  transform: translate(-50%, -50%) rotateY(72deg);
  animation: ringSpin 36s linear infinite;
}

@keyframes ringSpin {
  from { transform: translate(-50%, -50%) rotateZ(0deg); }
  to   { transform: translate(-50%, -50%) rotateZ(360deg); }
}

.hero__3d-ring--2 {
  animation-name: ringSpin2;
}

@keyframes ringSpin2 {
  from { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(0deg); }
  to   { transform: translate(-50%, -50%) rotateX(72deg) rotateZ(360deg); }
}

.hero__3d-ring--3 {
  animation-name: ringSpin3;
}

@keyframes ringSpin3 {
  from { transform: translate(-50%, -50%) rotateY(72deg) rotateZ(0deg); }
  to   { transform: translate(-50%, -50%) rotateY(72deg) rotateZ(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__3d-cube,
  .hero__3d-ring { animation: none; }
}

@media (max-width: 1023px) {
  .hero__3d-stage { display: none; }
}

/* ===========================================================
   3D TILT on cards
   Cards lift toward the mouse pointer in 3D space.
   =========================================================== */
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 400ms var(--ease-out);
  will-change: transform;
}

.tilt-3d:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(8px);
}

/* ===========================================================
   3D parallax on hero image
   Background drifts in 3D as you scroll
   =========================================================== */
.hero__bg {
  transform-style: preserve-3d;
}

/* --- Enhanced Reveal Variants ---
   Gated behind `html.js-ready` — see the base .reveal rule above. */
html.js-ready .reveal--left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
              transform var(--duration-reveal) var(--ease-out-expo);
}

html.js-ready .reveal--left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

html.js-ready .reveal--right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
              transform var(--duration-reveal) var(--ease-out-expo);
}

html.js-ready .reveal--right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

html.js-ready .reveal--scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
              transform var(--duration-reveal) var(--ease-out-expo);
}

html.js-ready .reveal--scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

html.js-ready .reveal--blur {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  transition: opacity 800ms var(--ease-out-expo),
              filter 800ms var(--ease-out-expo),
              transform 800ms var(--ease-out-expo);
}

html.js-ready .reveal--blur.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* --- Magnetic Card Hover --- */
.card--magnetic {
  transition: transform 400ms var(--ease-out),
              box-shadow 400ms var(--ease-out);
  will-change: transform;
}

.card--magnetic:hover {
  box-shadow:
    0 0 0 1px rgba(107,191,183,0.12),
    0 8px 30px rgba(0,0,0,0.08),
    0 20px 50px rgba(0,0,0,0.06);
}

/* Magnetic inner glow on hover */
.card--magnetic::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(107,191,183,0.08) 0%, transparent 60%);
  transition: opacity 400ms ease;
  pointer-events: none;
}

.card--magnetic:hover::after {
  opacity: 1;
}

/* --- Animated Stats / Counter Section --- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
  padding: var(--space-3xl) 0;
}

@media (max-width: 768px) {
  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-band {
    grid-template-columns: 1fr;
  }
}

/* Bento variant — varied column spans for visual interest.
   Default: 4-up equal. Add `.stats-band--bento` to enable the asymmetric layout. */
.stats-band--bento {
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: var(--space-lg);
  text-align: left;
}

.stats-band--bento .stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}

.stats-band--bento .stat:hover {
  border-color: rgba(138,208,201,0.25);
  background: rgba(107,191,183,0.06);
  transform: translateY(-2px);
}

/* Bento variant — varied column spans for visual interest.
   6-col grid, 2 rows. 1st+2nd share row 1 (3+3). 3rd+4th share row 2 (2+4). */
.stats-band--bento .stat:nth-child(1) { grid-column: span 3; grid-row: 1; }
.stats-band--bento .stat:nth-child(2) { grid-column: span 3; grid-row: 1; }
.stats-band--bento .stat:nth-child(3) { grid-column: span 2; grid-row: 2; }
.stats-band--bento .stat:nth-child(4) { grid-column: span 4; grid-row: 2; }

.stats-band--bento .stat__number {
  font-size: clamp(3rem, 5vw, 5rem);
  margin-bottom: var(--space-sm);
}

.stats-band--bento .stat__label {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.85);   /* raised from 0.75 → 0.85 */
}

@media (max-width: 1024px) {
  .stats-band--bento { grid-template-columns: repeat(4, 1fr); }
  .stats-band--bento .stat:nth-child(1) { grid-column: span 4; grid-row: span 1; }
  .stats-band--bento .stat:nth-child(2) { grid-column: span 2; }
  .stats-band--bento .stat:nth-child(3) { grid-column: span 2; }
  .stats-band--bento .stat:nth-child(4) { grid-column: span 4; }
}

@media (max-width: 600px) {
  .stats-band--bento { grid-template-columns: 1fr; }
  .stats-band--bento .stat:nth-child(n) { grid-column: span 1; grid-row: auto; }
}

.stat {
  position: relative;
}

.stat__number {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  color: var(--teal-400);
  line-height: 1;
  margin-bottom: var(--space-xs);
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.stat__number.is-counting {
  animation: counterPulse 0.6s var(--ease-spring) forwards;
}

.stat__label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.85);   /* raised from 0.65 → 0.85 — passes AA on navy (~6.3:1) */
  letter-spacing: 0.02em;
}

.stat__divider {
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), transparent);
}

.stat:last-child .stat__divider {
  display: none;
}

/* --- Trust Marquee / Logo Ticker --- */
.trust-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: var(--space-xl) 0;
  position: relative;
}

.trust-marquee::before,
.trust-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.trust-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--white), transparent);
}

.trust-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--white), transparent);
}

.section--navy .trust-marquee::before {
  background: linear-gradient(90deg, var(--navy-800), transparent);
}

.section--navy .trust-marquee::after {
  background: linear-gradient(270deg, var(--navy-800), transparent);
}

.trust-marquee__track {
  display: inline-flex;
  gap: var(--space-4xl);
  animation: marquee 30s linear infinite;
  align-items: center;
}

.trust-marquee__track span {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.trust-marquee__track .marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* --- Animated Grid Pattern Background --- */
.grid-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(138,208,201,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,208,201,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

.grid-pattern--animated {
  animation: breathe 6s ease-in-out infinite;
}

/* --- Floating Badges / Proof Indicators --- */
.floating-badge {
  display: inline-flex;
  align-self: flex-start;  /* prevents stretching to parent flex column width */
  width: fit-content;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: rgba(10, 35, 66, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(107, 191, 183, 0.4);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.04em;
  animation: subtleDrift 4s ease-in-out infinite;
}

.floating-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
  animation: pulseGlow 2s ease-in-out infinite;
}

/* --- Horizontal Scroll Gallery --- */
.gallery-scroll {
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-lg) var(--section-pad-x);
  scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-scroll__item {
  flex: 0 0 320px;
  scroll-snap-align: start;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  background: var(--navy-800);
}

.gallery-scroll__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.gallery-scroll__item:hover img {
  transform: scale(1.05);
}

.gallery-scroll__item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  background: linear-gradient(0deg, rgba(10,35,66,0.9) 0%, transparent 100%);
}

/* --- Text Shimmer Effect --- */
.text-shimmer {
  background: linear-gradient(
    90deg,
    var(--teal-300) 0%,
    var(--white) 40%,
    var(--teal-300) 80%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* --- Animated Connection Lines (for ecosystem) --- */
.connection-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.connection-lines svg {
  width: 100%;
  height: 100%;
}

.connection-lines path {
  stroke: rgba(138,208,201,0.15);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.connection-lines.is-visible path {
  animation: drawPath 2s var(--ease-out-expo) forwards;
}

.connection-lines.is-visible path:nth-child(2) { animation-delay: 300ms; }
.connection-lines.is-visible path:nth-child(3) { animation-delay: 600ms; }
.connection-lines.is-visible path:nth-child(4) { animation-delay: 900ms; }

/* --- Enhanced Eco Card with Gradient Border --- */
.eco-card--enhanced {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 4px 16px rgba(0,0,0,0.04),
    0 12px 32px rgba(0,0,0,0.05);
  transition: transform 500ms var(--ease-out),
              box-shadow 500ms var(--ease-out);
}

.eco-card--enhanced::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(107,191,183,0.3), transparent 50%, rgba(31,95,168,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 500ms ease;
}

.eco-card--enhanced:hover {
  transform: translateY(-8px);
  box-shadow:
    0 0 0 1px rgba(107,191,183,0.1),
    0 8px 24px rgba(0,0,0,0.06),
    0 20px 48px rgba(0,0,0,0.08);
}

.eco-card--enhanced:hover::before {
  opacity: 1;
}

/* --- Careers / Jobs Page --- */
.careers-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
  background: var(--gradient-section-navy);
}

.careers-hero .mesh-orbs__orb--teal {
  width: 500px;
  height: 500px;
  top: -20%;
  right: -10%;
}

.careers-hero .mesh-orbs__orb--navy {
  width: 400px;
  height: 400px;
  bottom: -20%;
  left: -10%;
}

.job-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
}

.job-filter {
  padding: var(--space-xs) var(--space-lg);
  background: transparent;
  border: 1.5px solid var(--panel-200);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
}

.job-filter:hover {
  border-color: var(--teal-400);
  color: var(--teal-600);
  background: rgba(107,191,183,0.04);
}

.job-filter.is-active {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: var(--white);
}

.job-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl) var(--space-2xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--panel-100);
  transition: all 400ms var(--ease-out);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.job-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-teal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 400ms var(--ease-out);
}

.job-card:hover {
  border-color: rgba(107,191,183,0.2);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.04),
    0 12px 32px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

.job-card:hover::before {
  transform: scaleY(1);
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.job-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px var(--space-sm);
  background: var(--paper-50);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.02em;
}

.job-card__tag--location::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
}

.job-card__tag--type::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

.job-card__tag--company::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-600);
}

.job-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0;
  line-height: 1.3;
}

.job-card__dept {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--teal-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.job-card__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--ink-500);
  transition: all 300ms var(--ease-out);
  flex-shrink: 0;
}

.job-card:hover .job-card__arrow {
  background: var(--teal-500);
  color: var(--white);
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .job-card {
    grid-template-columns: 1fr;
    padding: var(--space-lg);
  }
  .job-card__arrow {
    justify-self: end;
  }
}

/* Job Detail Expandable */
.job-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms var(--ease-out);
  background: var(--paper-50);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-top: -var(--space-md);
}

.job-detail.is-open {
  max-height: 800px;
}

.job-detail__inner {
  padding: var(--space-2xl);
}

/* --- Enhanced Section Backgrounds --- */
.section--gradient-mesh {
  position: relative;
  background: var(--gradient-section-navy);
  overflow: hidden;
}

.section--gradient-mesh .mesh-orbs {
  opacity: 0.7;
}

/* --- Animated Number Highlight --- */
.highlight-number {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--teal-400);
  font-size: 1.2em;
  font-variant-numeric: tabular-nums;
}

/* --- Progress Line (visual indicator for engagement stages) --- */
.progress-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  margin: var(--space-2xl) 0;
  overflow: hidden;
}

.progress-line__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--gradient-teal);
  border-radius: 1px;
  width: 0;
  transition: width 1.5s var(--ease-out-expo);
}

.progress-line.is-visible .progress-line__fill {
  width: 100%;
}

/* --- Tooltip-style hover card enhancement --- */
.eco-row--enhanced {
  position: relative;
}

.eco-row--enhanced::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease-out);
}

.eco-row--enhanced:hover::after {
  transform: scaleX(1);
}

/* --- Value Proposition Cards (enhanced) --- */
.value-card {
  position: relative;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 400ms var(--ease-out);
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}

.value-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(138,208,201,0.15);
  transform: translateY(-4px);
}

.value-card:hover::before {
  transform: scaleX(1);
}

.value-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(107,191,183,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--teal-300);
  font-size: var(--text-xl);
  transition: background 300ms ease, transform 300ms var(--ease-spring);
}

.value-card:hover .value-card__icon {
  background: rgba(107,191,183,0.25);
  transform: scale(1.1);
}

.value-card h4 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.value-card p {
  color: rgba(255,255,255,0.82);   /* raised from 0.6 → 0.82 — passes AA on near-black (~5.9:1) */
  font-size: var(--text-sm);
  line-height: 1.65;
}

/* --- Region Indicators (for Careers / About) --- */
.region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.region-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px var(--space-md);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(107,191,183,0.08);
  color: var(--teal-600);
  border: 1px solid rgba(107,191,183,0.12);
}

.section--navy .region-tag,
.section--dark .region-tag {
  background: rgba(138,208,201,0.1);
  color: var(--teal-300);
  border-color: rgba(138,208,201,0.15);
}

/* --- Culture Grid (for Careers page) --- */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .culture-grid {
    grid-template-columns: 1fr;
  }
}

.culture-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--panel-100);
  transition: all 400ms var(--ease-out);
  position: relative;
  overflow: hidden;
}

.culture-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-teal);
  transform: scaleX(0);
  transition: transform 500ms var(--ease-out);
  transform-origin: left;
}

.culture-card:hover {
  border-color: rgba(107,191,183,0.15);
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  transform: translateY(-4px);
}

.culture-card:hover::after {
  transform: scaleX(1);
}

.culture-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(107,191,183,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.25rem;
  color: var(--teal-500);
}

.culture-card h4 {
  margin-bottom: var(--space-sm);
}

.culture-card p {
  color: var(--ink-700);
  font-size: var(--text-sm);
  line-height: 1.65;
}

/* --- Perks List (Careers) --- */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .perks-grid {
    grid-template-columns: 1fr;
  }
}

.perk-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 300ms ease, border-color 300ms ease;
}

.perk-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(138,208,201,0.15);
}

.perk-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(107,191,183,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-300);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.perk-item__text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.92);   /* raised from 0.8 → 0.92 — passes AA comfortably */
}

/* --- Enhanced CTA Band with animated gradient --- */
.cta-band--enhanced {
  background: linear-gradient(135deg, #1E665F, #2E7E78, #3A9A92, #2872C4, #1E665F);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}

/* --- Animated Globe Points (enhanced world map) --- */
.globe-points {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.globe-point {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 12px rgba(107,191,183,0.4);
}

.globe-point::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(107,191,183,0.3);
  animation: pulseGlow 2.5s ease-in-out infinite;
}

.globe-point--hub {
  width: 12px;
  height: 12px;
  background: var(--red-600);
  box-shadow: 0 0 16px rgba(204,0,0,0.4);
}

.globe-point--hub::before {
  border-color: rgba(204,0,0,0.3);
}

@media (prefers-reduced-motion: reduce) {
  .mesh-orbs__orb,
  .floating-badge,
  .trust-marquee__track,
  .hero__glow,
  .text-shimmer,
  .grid-pattern--animated,
  .globe-point::before,
  .cta-band--enhanced {
    animation: none;
  }
  
  .reveal--left,
  .reveal--right,
  .reveal--scale,
  .reveal--blur {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  
  .hero .hero__card,
  .hero .hero__card .eyebrow,
  .hero .hero__card h1,
  .hero .hero__card > p:not(.eyebrow),
  .hero .hero__ctas {
    animation: none;
  }
}


/* ============================================================
   LAYOUT OVERHAUL — Break the grid, create tension and rhythm
   ============================================================ */

/* ─── OVERSIZED DISPLAY TYPE ─── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--white);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.display-outline {
  -webkit-text-stroke: 1.5px currentColor;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─── FULL-BLEED SECTIONS THAT BREAK THE CONTAINER ─── */
.section--full {
  padding-inline: 0;
  overflow: hidden;
}

.section--full .container {
  max-width: none;
  padding-inline: 0;
}

/* ─── ASYMMETRIC 60/40 SPLIT ─── */
.split-offset {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.split-offset--reverse {
  grid-template-columns: 1fr 1.3fr;
}

@media (max-width: 768px) {
  .split-offset,
  .split-offset--reverse {
    grid-template-columns: 1fr;
  }
}

/* ─── OVERLAP LAYOUT — elements bleeding over section boundaries ─── */
.overlap-up {
  margin-top: calc(var(--space-5xl) * -1);
  position: relative;
  z-index: 5;
}

.overlap-bleed {
  margin-right: calc(var(--section-pad-x) * -1);
  border-radius: var(--radius-2xl) 0 0 var(--radius-2xl);
  overflow: hidden;
}

@media (max-width: 768px) {
  .overlap-bleed {
    margin-right: 0;
    border-radius: var(--radius-xl);
  }
}

/* ─── HORIZONTAL SCROLL PANEL ─── */
.eco-cards-hscroll {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.eco-cards-hscroll__track {
  display: flex;
  gap: var(--space-xl);
  width: max-content;
  padding: var(--space-2xl) var(--section-pad-x);
}

.eco-cards-hscroll .eco-card,
.eco-cards-hscroll .eco-card--enhanced {
  flex: 0 0 380px;
  min-height: 480px;
}

@media (max-width: 768px) {
  .eco-cards-hscroll .eco-card,
  .eco-cards-hscroll .eco-card--enhanced {
    flex: 0 0 300px;
    min-height: 400px;
  }
}

/* ─── BENTO GRID — mixed sizes for visual interest ─── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
}

.bento__item--wide {
  grid-column: span 7;
}

.bento__item--narrow {
  grid-column: span 5;
}

.bento__item--half {
  grid-column: span 6;
}

.bento__item--third {
  grid-column: span 4;
}

.bento__item--full {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .bento__item--wide,
  .bento__item--narrow,
  .bento__item--half,
  .bento__item--third {
    grid-column: 1 / -1;
  }
}

.bento__card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  transition: border-color 400ms ease, transform 500ms var(--ease-out);
}

.bento__card:hover {
  border-color: rgba(138,208,201,0.2);
  transform: translateY(-4px);
}

.bento__card h4 {
  color: var(--white);
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.bento__card p {
  color: rgba(255,255,255,0.78);   /* raised from 0.6 → 0.78 */
  font-size: var(--text-sm);
}

.bento__card__num {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-xl);
  font-family: var(--font-mono);
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 700;
  color: rgba(138,208,201,0.08);
  line-height: 1;
  pointer-events: none;
}

/* Icon inside a bento card */
.bento__card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: rgba(107,191,183,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-300);
  margin-bottom: var(--space-lg);
  transition: transform 300ms var(--ease-spring), background 300ms ease;
}

.bento__card:hover .bento__card__icon {
  transform: scale(1.1) rotate(-3deg);
  background: rgba(107,191,183,0.25);
}

/* ─── OVERSIZED BACKGROUND NUMBERS (decorative) ─── */
.bg-number {
  position: absolute;
  font-family: var(--font-mono);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(138,208,201,0.04);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.bg-number--right {
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
}

.bg-number--left {
  left: -2%;
  top: 10%;
}

/* ─── TICKER / LARGE SLIDING TEXT ─── */
.ticker-xl {
  white-space: nowrap;
  overflow: hidden;
  padding: var(--space-3xl) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ticker-xl__track {
  display: inline-flex;
  gap: var(--space-3xl);
  animation: marquee 25s linear infinite;
}

.ticker-xl__track span {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  text-transform: uppercase;
}

.ticker-xl__track .ticker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(138,208,201,0.12);
  align-self: center;
  flex-shrink: 0;
}

/* ─── DIAGONAL SECTION CUT ─── */
.section--diagonal {
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
  padding-top: calc(var(--section-pad-y) + 4vw);
  padding-bottom: calc(var(--section-pad-y) + 4vw);
}

@media (max-width: 768px) {
  .section--diagonal {
    clip-path: polygon(0 2vw, 100% 0, 100% calc(100% - 2vw), 0 100%);
    padding-top: calc(var(--section-pad-y) + 2vw);
    padding-bottom: calc(var(--section-pad-y) + 2vw);
  }
}

/* ─── SPLIT-WORD ANIMATION SUPPORT ─── */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.split-word__inner {
  display: inline-block;
  will-change: transform;
}

/* ─── STICKY NUMBER ASIDE (for staged processes) ─── */
.stage-layout {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-2xl);
  position: relative;
}

.stage-layout__sidebar {
  position: sticky;
  top: calc(72px + var(--space-2xl));
  align-self: start;
  text-align: right;
}

.stage-layout__number {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 700;
  color: var(--teal-400);
  line-height: 1;
  opacity: 0.3;
  transition: opacity 500ms ease, color 500ms ease;
}

.stage-layout__number.is-active {
  opacity: 1;
  color: var(--teal-300);
}

@media (max-width: 768px) {
  .stage-layout {
    grid-template-columns: 1fr;
  }
  .stage-layout__sidebar {
    position: relative;
    top: auto;
    text-align: left;
  }
}

/* ─── GLASS METRIC TILES (stats with depth) ─── */
.metric-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 400ms ease, transform 400ms var(--ease-out);
}

.metric-tile:hover {
  border-color: rgba(138,208,201,0.2);
  transform: translateY(-4px);
}

.metric-tile::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 90deg, transparent, rgba(107,191,183,0.06), transparent, rgba(31,95,168,0.04), transparent);
  animation: rotateGlow 20s linear infinite;
  pointer-events: none;
}

.metric-tile__value {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--teal-300);
  line-height: 1;
  margin-bottom: var(--space-xs);
  position: relative;
  font-variant-numeric: tabular-nums;
}

.metric-tile__label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.78);   /* raised from 0.5 → 0.78 — passes AA on dark glass (~5.5:1) */
  position: relative;
}

/* ─── FULL-WIDTH IMAGE BAND (cinematic break) ─── */
.image-band {
  width: 100%;
  height: clamp(300px, 40vh, 500px);
  position: relative;
  overflow: hidden;
}

.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--navy-900) 0%, transparent 40%, transparent 60%, var(--navy-900) 100%);
}

/* ─── QUOTE / PULLQUOTE ─── */
.pullquote {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.3;
  color: var(--white);
  max-width: 800px;
  position: relative;
  padding-left: var(--space-2xl);
  border-left: 3px solid var(--teal-400);
}

.pullquote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  font-style: normal;
  color: rgba(255,255,255,0.65);   /* raised from 0.4 → 0.65 — cite text is readable attribution */
  margin-top: var(--space-lg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── GRID-BREAKING ACCENT BLOCK ─── */
.accent-block {
  background: var(--gradient-teal-rich);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  position: relative;
  overflow: hidden;
  margin-left: calc(var(--section-pad-x) * -0.5);
  width: calc(100% + var(--section-pad-x));
}

@media (max-width: 768px) {
  .accent-block {
    margin-left: 0;
    width: 100%;
    border-radius: var(--radius-xl);
  }
}

.accent-block h3 {
  color: var(--white);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.accent-block p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
}

/* ─── HOVER CARD WITH GLOWING BORDER ─── */
.glow-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  overflow: hidden;
  isolation: isolate;
  transition: transform 500ms var(--ease-out);
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 180deg, var(--teal-400), var(--blue-500), var(--teal-300), var(--teal-400));
  opacity: 0;
  transition: opacity 500ms ease;
  z-index: -2;
}

.glow-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--white);
  z-index: -1;
}

.glow-card:hover {
  transform: translateY(-6px);
}

.glow-card:hover::before {
  opacity: 1;
}

/* Dark variant */
.glow-card--dark::after {
  background: var(--navy-800);
}

.glow-card--dark h4 { color: var(--white); }
.glow-card--dark p { color: rgba(255,255,255,0.82); } /* raised from 0.65 → 0.82 */

/* ─── SCROLL-DRIVEN NUMBER COUNTER STYLES ─── */
.stat-hero {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
}

.stat-hero__val {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--teal-300);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat-hero__label {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: rgba(255,255,255,0.78);   /* raised from 0.5 → 0.78 */
}

@media (prefers-reduced-motion: reduce) {
  .ticker-xl__track,
  .metric-tile::before {
    animation: none;
  }
}


/* ================================================================
   HOMEPAGE REDESIGN — new layout components
   Telus-inspired: generous whitespace, clear section rhythm,
   left-right splits for hierarchy, balanced column widths.
   ================================================================ */

/* ── Section lead text (large intro paragraph) ── */
.section-lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--ink-700);
  margin-bottom: var(--space-xl);
}

.section--navy .section-lead,
.section--dark .section-lead {
  color: rgba(255,255,255,0.78);
}

/* ── section-split: asymmetric 40/60 left-right layout ──
   Left: heading/eyebrow (sticky label zone)
   Right: content body (list, cards, callout)
*/
.section-split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-4xl);
  align-items: start;
}

.section-split--reverse {
  grid-template-columns: 3fr 2fr;
}

.section-split--center {
  align-items: center;
}

.section-split__lead {
  position: sticky;
  top: calc(72px + var(--space-2xl));
}

.section-split__lead .eyebrow {
  margin-bottom: var(--space-md);
  display: block;
}

.section-split__lead h2 {
  margin-bottom: 0;
}

.section-split__body {
  padding-top: var(--space-xs);
}

@media (max-width: 900px) {
  .section-split,
  .section-split--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .section-split__lead {
    position: relative;
    top: auto;
  }
}

/* ── Stats row: horizontal band of 4 metrics ── */
.section--stats {
  padding-block: var(--space-3xl) !important;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr) repeat(3, 24px);
  grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr;
  align-items: center;
  gap: 0;
  padding: var(--space-2xl) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-xl);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: var(--space-lg);
}

.stat-item__num {
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 3.5vw, 3.5rem);
  font-weight: 700;
  color: var(--teal-400);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: var(--space-xs);
}

.stat-item__label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.stat-item__divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  justify-self: center;
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl) var(--space-md);
    border: none;
    padding: var(--space-xl) 0;
  }
  .stat-item__divider { display: none; }
  .stat-item { align-items: flex-start; text-align: left; padding-inline: 0; }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}

/* ── method-cta: callout + button side-by-side ── */
.method-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2xl);
  align-items: center;
  margin-top: var(--space-2xl);
}

.method-cta .callout {
  margin-top: 0;
}

@media (max-width: 768px) {
  .method-cta {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ── Improved section-intro spacing ── */
.section-intro {
  max-width: 720px;
  margin-bottom: var(--space-3xl);
}

.section-intro .eyebrow {
  display: block;
  margin-bottom: var(--space-md);
}

.section-intro h2 {
  margin-bottom: var(--space-lg);
}

.section-intro p {
  font-size: var(--text-lg);
  color: var(--ink-700);
  line-height: 1.7;
}

.section--navy .section-intro p,
.section--dark .section-intro p,
.section--blue .section-intro p {
  color: rgba(255,255,255,0.78);
}

/* ── callout--paper: for light sections ── */
.callout--paper {
  background: var(--paper-50);
  color: var(--ink-900);
  border-left-color: var(--teal-500);
}

/* ── Typography refinements ──
   h1 larger and lighter on dark hero;
   h2 bolder, tighter tracking on section headings */
h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.25rem);
  line-height: 1.06;
  font-weight: 300;
  letter-spacing: -0.038em;
}

h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Dark section headings already white via section rules above */

/* ── Header height tighter at 64px ── */
.header-inner {
  height: 64px;
}

/* Adjust hero padding-top to match */
.hero,
.hero--split {
  padding-top: 64px;
}

.hero__content,
.hero--split .hero__split-content {
  min-height: calc(100dvh - 64px);
}

.hero--short .hero__content {
  min-height: calc(70dvh - 64px);
}

/* ── Footer: tighter brand description ── */
.footer__brand p {
  max-width: 300px;
}

/* ── Eyebrow on light sections ── */
.section--white .eyebrow,
.section--paper .eyebrow {
  color: var(--teal-600);
}

/* ── Value card text improved ── */
.value-card h4 {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-xs);
}

/* ── eco-row spacing balanced ── */
.eco-row {
  padding-block: var(--space-lg);
}

/* ── section gap consistency ── */
.section {
  padding-block: clamp(5rem, 9vw, 10rem);
}

/* Override the very tall default for navy stats section */
.section--stats.section {
  padding-block: var(--space-3xl);
}

/* ── World map (ecosystem page) ── */
.world-map-container {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(107,191,183,0.15);
  background: rgba(10,35,66,0.4);
  margin-top: var(--space-2xl);
}

.world-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .world-map-container {
    border-radius: var(--radius-lg);
  }
  /* Hide labels on very small screens */
  .world-map-svg text {
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-map-svg animate {
    display: none;
  }
}

/* ── Reveal safety net — same pattern as telus-design.css ── */
html.js-ready .reveal,
html.js-ready .reveal--left,
html.js-ready .reveal--right,
html.js-ready .reveal--scale,
html.js-ready .reveal--blur {
  animation: revealFallbackStyles 0ms 1200ms forwards;
}
@keyframes revealFallbackStyles {
  to { opacity: 1; transform: none; clip-path: none; }
}
html.js-ready .reveal.is-visible,
html.js-ready .reveal--left.is-visible,
html.js-ready .reveal--right.is-visible,
html.js-ready .reveal--scale.is-visible,
html.js-ready .reveal--blur.is-visible {
  animation: none;
}
/* scroll-section fallback */
.scroll-section:not(.is-in) {
  animation: revealFallbackStyles 0ms 1500ms forwards;
}
