/* ============================================================
   DIGIPREDICT — styles.css
   Design tokens, reset, typography, nav.
   Section styles added in Tasks 3, 6, 8.
   ============================================================ */

:root {
  /* Colours */
  --navy:        #003a68;
  --navy-mid:    #0d2240;
  --navy-deep:   #091829;
  --teal:        #76d6d5;
  --teal-dark:   #004040;
  --teal-bg:     #005959;
  --surface:     #f8f9fa;
  --surface-low: #f3f4f5;
  --white:       #ffffff;
  --ink:         #191c1d;
  --ink-mid:     #42474f;
  --ink-faint:   #6b7280;  /* darkened from #9ca3af — was 2.85:1 on white, now 4.6:1 (WCAG AA) */
  --green:       #10b981;

  /* Typography */
  --font-display: 'Manrope', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --section-pad: clamp(4rem, 8vw, 6rem);
  --content-max: 1200px;

  /* Easing — custom cubic-bezier only; no ease-in-out anywhere */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);

  /* Border-radius tokens */
  --r-pill:  100px;
  --r-card:  1.5rem;
  --r-inner: calc(1.5rem - 5px);
  --r-sm:    12px;

  /* Teal variants */
  --teal-light: #a0e8e7;
  --teal-pale:  #b0f0ef;  /* gradient text endpoint */
  --teal-text:   #0d7377;   /* WCAG AA-safe teal on white — 4.7:1 contrast */
}

/* ============================================================
   RESET
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;   /* offset for fixed pill nav */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Material Symbols config */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  line-height: 1;
}

/* ============================================================
   NAV — floating glass pill
   ============================================================ */

.pill-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13), 0 1px 4px rgba(0, 0, 0, 0.07);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* Brand logo — fixed top-left corner, icon + wordmark lockup.
   SVG renders at exact pixel dimensions — no transparent-padding issues. */
.nav-brand {
  position: absolute;   /* scrolls with page — disappears naturally past hero */
  top: 29px;            /* vertically centred with pill-nav */
  left: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand:hover { opacity: 0.82; }

/* Icon mark */
.nav-logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: block;
  transition: filter 450ms var(--ease-out);
}

/* Wordmark text */
.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--navy);
  line-height: 1;
  transition: color 450ms var(--ease-out);
}
.nav-brand-sub {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--teal-text);
  line-height: 1;
  transition: color 450ms var(--ease-out);
}

/* Dark-section override: icon → white filter, text → white */
.nav-brand.on-dark .nav-logo       { filter: brightness(0) invert(1); }
.nav-brand.on-dark .nav-brand-name { color: var(--white); }
.nav-brand.on-dark .nav-brand-sub  { color: var(--teal-light); }

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mid);
  transition: all 500ms var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal);
  background: rgba(118, 214, 213, 0.08);
}

.nav-cta {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--teal);
  color: var(--navy);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  transition: all 500ms var(--ease-out);
  min-height: 44px;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: scale(0.98);
}

.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink-mid);
  transition: all 300ms var(--ease-out);
  flex-shrink: 0;
}

.nav-hamburger:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--teal);
}

/* Inline logo inside pill-nav — hidden; logo lives in fixed corner (.nav-brand) */
.pill-nav-logo { display: none; }
.nav-logo-inline { height: 26px; width: auto; display: block; }

/* ============================================================
   MOBILE OVERLAY — full-screen glass nav
   ============================================================ */

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mobile-overlay.open {
  display: flex;
}

.mobile-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mid);
  border-radius: 50%;
  transition: all 300ms var(--ease-out);
}

.mobile-overlay-close:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--teal);
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  padding: 12px 24px;
  border-radius: var(--r-sm);
  transition: all 300ms var(--ease-out);
  opacity: 0;
  transform: translateY(16px);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-overlay.open .mobile-link {
  /* GSAP will animate opacity and translateY — initial state for GSAP */
}

.mobile-link:hover {
  color: var(--teal);
  background: rgba(118, 214, 213, 0.08);
}

.cta-mobile {
  color: var(--teal);
  border: 1px solid rgba(118, 214, 213, 0.3);
  margin-top: 12px;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 60ch;
  margin-bottom: 40px;
}

/* Shared section structure */
.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  margin-bottom: 48px;
}

/* Thread SVG path uses CSS token, not HTML attribute */
#thread-path {
  stroke: var(--teal);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 1440;
  stroke-dashoffset: 1440;
}

/* Focus styles — keyboard navigation */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   HERO — full-viewport dark section
   ============================================================ */

.hero {
  min-height: 100dvh;  /* iOS Safari fix — NOT 100vh */
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 100px 40px 60px;
  position: relative;
  overflow: hidden;
}

/* Subtle ambient glow behind video */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 50%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(118, 214, 213, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Hero entrance animation — CSS-native, avoids GSAP stagger opacity conflicts */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  animation: hero-fade-up 0.7s var(--ease-out) both;
}

/* Teal gradient text on "before" span */
.hero-headline .teal {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-text) 60%, var(--teal-text) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 50ch;
  animation: hero-fade-up 0.7s var(--ease-out) 0.12s both;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  animation: hero-fade-up 0.7s var(--ease-out) 0.24s both;
}

/* Primary CTA — teal pill */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px 14px 26px;
  background: var(--teal);
  color: var(--navy);
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  transition: all 500ms var(--ease-out);
  min-height: 44px;
}

.cta-primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

.cta-primary:active {
  transform: scale(0.98);
}

.cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 58, 104, 0.1); /* --navy at 10% opacity */
  transition: transform 500ms var(--ease-out);
}

.cta-primary:hover .cta-icon {
  transform: translateX(3px);
}

/* Ghost CTA — transparent with white border */
.cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border: 1px solid rgba(0, 58, 104, 0.15);
  border-radius: var(--r-pill);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  transition: all 500ms var(--ease-out);
  min-height: 44px;
}

.cta-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ============================================================
   STAT CARDS — Double-Bezel (Doppelrand) architecture
   ============================================================ */

.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

/* Outer shell */
.stat-outer {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 5px;
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
  cursor: default;
}

.stat-outer:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 58, 104, 0.12);
}

.stat-outer:hover .stat-inner {
  border-left-color: var(--teal-text);
  box-shadow: 0 6px 20px rgba(0, 58, 104, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Staggered entrance for each stat card */
#stat-cards .stat-outer:nth-child(1) { animation: hero-fade-up 0.8s var(--ease-out) 0.40s both; }
#stat-cards .stat-outer:nth-child(2) { animation: hero-fade-up 0.8s var(--ease-out) 0.50s both; }
#stat-cards .stat-outer:nth-child(3) { animation: hero-fade-up 0.8s var(--ease-out) 0.60s both; }

/* Inner core */
.stat-inner {
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-inner);
  padding: 14px 16px;
  box-shadow: 0 2px 12px rgba(0, 58, 104, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  flex: 1;                       /* fills outer shell for equal bezel depth */
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--teal-text);
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 2px;
}

.stat-desc {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-faint);
}

/* ============================================================
   HERO VIDEO — right column
   ============================================================ */

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

.video-halo {
  position: relative;
  width: 100%;
  border-radius: var(--r-card);
  /* No overflow:hidden — ::after uses inset:-20px to create outward ambient glow */
}

/* Ambient teal halo around video when resting */
.video-halo::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(118, 214, 213, 0.06) 0%, transparent 65%);
  pointer-events: none;
  animation: pulse-soft 4s var(--ease-out) infinite; /* ambient effect — 4s deliberate for slow glow */
  border-radius: var(--r-card); /* matches halo wrapper */
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.hero-video {
  width: 100%;
  aspect-ratio: 16 / 9;  /* 16:9 landscape — NOT portrait */
  border-radius: 16px;
  display: block;
  object-fit: cover;
  background: var(--surface);
}

/* ============================================================
   TRANSITION ZONE — dark to light gradient with SVG thread
   ============================================================ */

.transition-zone {
  background: linear-gradient(to bottom, var(--white) 0%, var(--navy) 50%, var(--surface) 100%);
  height: 200px;
  position: relative;
  overflow: visible;
}

.thread-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
}

/* ============================================================
   LIGHT SECTIONS — shared base
   ============================================================ */

.section-light {
  background: var(--surface);
  padding: var(--section-pad) 0;
}

/* What We Do — two-column layout */
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.what-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-mid);
  margin-bottom: 20px;
}

.what-copy p:last-child { margin-bottom: 0; }

/* ============================================================
   FEATURE CARDS — Double-Bezel on white background
   ============================================================ */

.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Outer shell */
.feature-outer {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 5px;
  border-radius: var(--r-card);
}

/* Inner core */
.feature-inner {
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-inner);
  padding: 16px 20px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  color: var(--teal);
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0;
}

/* ============================================================
   HOW IT WORKS — 4-step horizontal strip
   ============================================================ */

.how-strip {
  margin-top: 56px;
}

.how-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.how-steps-wrapper {
  position: relative;
}

/* Branching data-stream: 1 line → 2 → 3 → 4 through the four steps */
.data-stream-svg {
  position: absolute;
  top: 43px;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.stream-path {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stream-s1 {
  stroke-width: 2;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
}

.stream-s2 {
  stroke-width: 1.8;
  stroke-dasharray: 290;
  stroke-dashoffset: 290;
}

.stream-s3 {
  stroke-width: 1.5;
  stroke-dasharray: 285;
  stroke-dashoffset: 285;
  stroke-opacity: 0.85;
}

.stream-s4 {
  stroke-width: 1.2;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  stroke-opacity: 0.7;
}

.stream-pulse {
  fill: none;
  stroke: rgba(118, 214, 213, 0.9);
  stroke-linecap: round;
  stroke-width: 2;
  opacity: 0;
}

/* Mobile-only: per-gap connector SVGs sit between stacked step cards.
   Hidden on desktop (desktop uses the single horizontal branching SVG above). */
.how-step-connector { display: none; }

.connector-svg {
  width: 56px;
  height: 60px;
  overflow: visible;
  display: block;
}

.connector-line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-opacity: 0.75;
}

.connector-pulse {
  fill: none;
  stroke: rgba(118, 214, 213, 1);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 16 52;
  stroke-dashoffset: 68;
  filter: drop-shadow(0 0 4px rgba(118, 214, 213, 0.85));
  animation: connectorPulse 1.1s linear infinite;
}

@keyframes connectorPulse {
  from { stroke-dashoffset: 68; }
  to   { stroke-dashoffset: -8; }
}

@media (prefers-reduced-motion: reduce) {
  .connector-pulse { animation: none; opacity: 0; }
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.how-step-img-wrap {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 8px;
}

.how-step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.how-step-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(118, 214, 213, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-step-icon {
  color: var(--teal);
  font-size: 22px;
}

.how-step-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--teal);
  text-transform: uppercase;
}

.how-step-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.how-step-desc {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-mid);
  margin: 0;
}

/* ============================================================
   STATS BAND — full-width teal-bg strip
   ============================================================ */

.stats-band {
  background: var(--teal-bg);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 100%;
}

.band-stat {
  text-align: center;
  padding: 16px;
}

.band-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 10px;
}

.band-label {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
  max-width: 20ch;
  margin: 0 auto;
}

/* ============================================================
   TIMELINE — vertical with teal pulse
   ============================================================ */

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

/* Vertical track line */
.timeline-track {
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(118, 214, 213, 0.2);
}

.tl-node {
  position: relative;
  padding-bottom: 40px;
}

.tl-node:last-child { padding-bottom: 0; }

/* Timeline dot — fixed positioning bug: use top:50%+transform */
.tl-dot {
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-faint);
  z-index: 1;
}

.tl-dot.complete {
  background: var(--green);
}

.tl-dot.current {
  width: 14px;
  height: 14px;
  left: -42px;
  background: var(--teal);
  animation: tl-pulse 2.5s ease-out infinite;
}

.tl-dot.upcoming {
  background: var(--ink-faint);
}

@keyframes tl-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(118, 214, 213, 0.7); }
  60%  { box-shadow: 0 0 0 10px rgba(118, 214, 213, 0); }
  100% { box-shadow: 0 0 0 0 rgba(118, 214, 213, 0); }
}

.tl-year {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.tl-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}

.tl-badge.complete  { background: rgba(16, 185, 129, 0.12); color: var(--green); }
.tl-badge.current   { background: rgba(118, 214, 213, 0.15); color: var(--teal); }
.tl-badge.upcoming  { background: rgba(156, 163, 175, 0.15); color: var(--ink-faint); }

.tl-heading {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.tl-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-mid);
  margin: 0;
  max-width: 65ch;
}

/* ============================================================
   GET INVOLVED — dark bookend, mirrors hero
   ============================================================ */

.involved {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: var(--section-pad) 0;
}

.involved .section-eyebrow  { color: var(--teal); }
.involved .section-title    { color: var(--white); }
.involved .section-intro    { color: rgba(255, 255, 255, 0.7); max-width: 55ch; }

.involved-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Outer shell */
.involve-outer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px;
  border-radius: var(--r-card);
  transition: border-color 400ms var(--ease-out);
}

.involve-outer:hover {
  border-color: rgba(118, 214, 213, 0.4);
}

/* Inner core */
.involve-inner {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-inner);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.involve-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.involve-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.involve-body {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  flex: 1;
}

.involve-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  transition: color 300ms var(--ease-out);
  align-self: flex-start;
}

.involve-link:hover { color: var(--teal-light); }

/* ============================================================
   CONTACT — light section
   ============================================================ */

.contact {
  background: var(--surface);
  padding: var(--section-pad) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-mid);
  margin: 16px 0 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.contact-detail .material-symbols-outlined {
  color: var(--teal);
  font-size: 20px;
}

.contact-detail a {
  color: var(--navy);
  font-weight: 600;
  transition: color 300ms var(--ease-out);
}

.contact-detail a:hover { color: var(--teal); }

/* Info panel — Double-Bezel */
.info-outer {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 5px;
  border-radius: var(--r-card);
}

.info-inner {
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-inner);
  padding: 16px 20px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.info-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0;
}

/* Email CTA card */
.email-cta-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--r-card);
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0, 58, 104, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.email-card-heading {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.email-card-sub {
  font-size: 15px;
  color: var(--ink-mid);
  margin: 0;
}

.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--teal);
  color: var(--navy);
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 700;
  transition: all 400ms var(--ease-out);
  align-self: flex-start;
  min-height: 44px;
}

.email-btn:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
}

.email-btn:active { transform: scale(0.98); }

.response-note {
  font-size: 12px;
  color: var(--ink-faint);
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--surface-low);
  border-top: 1px solid rgba(0, 58, 104, 0.08);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }

.footer-logo {
  height: 44px;
  width: auto;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy);
  line-height: 1;
}

.footer-brand-sub {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal-text, var(--teal));
  text-transform: uppercase;
  line-height: 1;
}

.footer-thco-link {
  display: inline-flex;
  align-items: center;
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid rgba(0, 58, 104, 0.12);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 300ms cubic-bezier(0.32, 0.72, 0, 1);
}

.footer-thco-link:hover,
.footer-thco-link:focus-visible { opacity: 1; }

.footer-thco-logo {
  height: 52px;
  width: auto;
  display: block;
}

.footer-copy {
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
}

.footer-disclaimer {
  flex-basis: 100%;
  margin: 14px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 58, 104, 0.08);
  font-size: 11px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-faint);
  text-align: center;
  max-width: 880px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-link {
  font-size: 12px;
  color: var(--ink-faint);
  transition: color 300ms var(--ease-out);
}

.ref-link {
  color: var(--teal);
  text-decoration: none;
}

.ref-link:hover { text-decoration: underline; }

.references-section {
  background: var(--surface-low);
  padding: 20px 40px;
  border-top: 1px solid rgba(0, 58, 104, 0.08);
}

.references-list {
  max-width: 880px;
  margin: 0 auto;
  padding-left: 20px;
  list-style-type: decimal;
}

.ref-item {
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.ref-item:last-child { margin-bottom: 0; }

.footer-link:hover { color: var(--navy); }

/* Personal branding footer credit */
.footer-credit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-credit-text {
  font-size: 13px;
  color: var(--ink-mid);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .footer-credit-text { white-space: normal; text-align: center; }
  .footer-thco-link { padding-left: 0; margin-left: 0; border-left: 0; }
  .footer-thco-logo { height: 40px; }
}

.footer-credit-text a {
  color: var(--teal-text);
  font-weight: 600;
  text-decoration: none;
  transition: color 300ms var(--ease-out);
}

.footer-credit-text a:hover { color: var(--navy); }

.footer-qr {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── Logo responsive scaling ─────────────────── */
@media (max-width: 1024px) { .nav-logo { width: 56px; height: 56px; } .nav-brand-name { font-size: 15px; } .nav-brand-sub { font-size: 10px; } }
@media (max-width: 640px)  { .nav-brand-text { display: none; } .nav-logo { width: 44px; height: 44px; } }
@media (max-width: 480px)  { .nav-brand { display: none; } }

/* ── 1024px: single-column hero ──────────────── */
@media (max-width: 1024px) {
  /* Hero: stack to single column, video above text */
  .hero-grid        { grid-template-columns: 1fr; gap: 24px; }
  .hero-right       { order: -1; }
  .hero-video       { max-height: 450px; }
  /* Extra top padding so video clears the fixed pill nav */
  .hero             { padding-top: 110px; }
}

/* ── 900px: collapse multi-column grids ─────── */
@media (max-width: 900px) {
  .what-grid        { grid-template-columns: 1fr; }
  .timeline-grid    { grid-template-columns: 1fr; }
  .involved-cards   { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; gap: 36px; }
}

/* ── 768px: mobile layout ───────────────────── */
@media (max-width: 768px) {
  /* Hero: video ABOVE text on mobile */
  .hero-grid        { grid-template-columns: 1fr; gap: 24px; }
  .hero-right       { order: -1; }    /* video moves above headline */
  .hero-video       { max-height: 320px; } /* was 200px — raised to show full video incl ASTHMA text */
  .hero             { padding: 110px 20px 48px; }

  /* Nav collapse to hamburger */
  .nav-links        { display: none; }
  .nav-hamburger    { display: flex; align-items: center; justify-content: center; }
  .pill-nav         { gap: 12px; }
  /* Corner logo hidden at mobile — moved to 1024px block below */

  /* Stats band: 2 columns */
  .stat-cards       { grid-template-columns: repeat(2, 1fr); }
  .stats-band       { grid-template-columns: repeat(2, 1fr); padding: 28px 20px; }

  /* Section padding */
  .section-light,
  .involved,
  .contact          { padding: 3rem 20px; }
  .site-footer      { padding: 20px; flex-direction: column; text-align: center; }
  .footer-links     { justify-content: center; flex-wrap: wrap; }

  /* How It Works: full-width stacked cards + per-gap electricity connectors */
  .data-stream-svg  { display: none; }
  .how-steps-wrapper { padding-left: 0; position: relative; }
  .how-steps        {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
    z-index: 1;
  }
  .how-step-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60px;
    margin: 4px 0;
    pointer-events: none;
  }
  .how-step         {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px 16px;
    background: var(--surface);
    border-radius: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 12px rgba(10, 46, 69, 0.04);
  }
  .how-step-img-wrap {
    width: 70%;
    max-width: 220px;
    margin-bottom: 4px;
  }
  .how-step-icon-wrap { margin: 4px 0 0; }
  .how-step-label    { font-size: 17px; }
  .how-step-desc     { font-size: 13px; max-width: 36ch; line-height: 1.6; }

  /* Touch targets: minimum 44px */
  .nav-cta, .cta-primary, .cta-ghost, .email-btn { min-height: 44px; }
  .nav-hamburger    { min-width: 44px; min-height: 44px; }
}

/* ── 480px: very small screens ──────────────── */
@media (max-width: 480px) {
  .stat-cards       { grid-template-columns: 1fr; }
  .stats-band       { grid-template-columns: 1fr; }
  .hero h1,
  .hero-headline    { font-size: 2rem; }
}

/* ── Reduced motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .gsap-reveal { opacity: 1 !important; transform: none !important; }
  .video-halo::after { animation: none; }
}
