/* =========================================================
   ASCENDED INTELLIGENCE - MASTER STYLESHEET
   ========================================================= */

/* 1. DESIGN TOKENS
   ========================================================= */
:root {
  /* Brand Colors */
  --blue-deep: #0052A3;
  --blue-primary: #0066CC;
  --blue-bright: #0080FF;
  --teal-primary: #00B8A9;
  --teal-bright: #00D4C5;
  --green-primary: #00E5A0;
  --green-bright: #57FF92;

  /* Neutrals */
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f2a44;

  /* Dimensions */
  --header-height: 88px;
  --header-height-mobile: 76px;
  --field-radius: 16px;
  --field-height: 46px;
  --field-pad-x: 24px;

  /* Animation */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-smooth: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Glass Design System */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-heavy: rgba(255, 255, 255, 0.90);
  --glass-bg-light: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-subtle: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(0, 52, 103, 0.08);
  --glass-shadow-lg: 0 16px 48px rgba(0, 52, 103, 0.12);
  --glass-blur: 20px;
  --glass-blur-heavy: 40px;
  --glass-saturate: 180%;
  --glass-bg-medium: rgba(255, 255, 255, 0.60);
  --glass-bg-solid: rgba(255, 255, 255, 0.95);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --color-bg-white: #ffffff;
}

:root[data-theme="dark"] {
  --color-bg-white: #0a1128;
  /* Dark navy background */

  /* Neutrals mapped for Dark Mode
     Background-safe at the low end (50–200),
     text-legible at the mid range (400–600). */
  --slate-50: #040914;
  --slate-100: #0a1128;
  --slate-200: #141f3e;
  --slate-300: #1e2d53;
  --slate-400: #7889a8;
  --slate-500: #6a7d9b;
  --slate-600: #8b9fba;
  --slate-700: #94b2da;
  --slate-800: #c2d6ef;
  --slate-900: #F8FAFC;

  /* Glass Design System for Dark Mode */
  --glass-bg: rgba(10, 17, 40, 0.75);
  --glass-bg-heavy: rgba(10, 17, 40, 0.90);
  --glass-bg-light: rgba(10, 17, 40, 0.45);
  --glass-border: rgba(68, 89, 132, 0.5);
  --glass-border-subtle: rgba(68, 89, 132, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --glass-bg-medium: rgba(10, 17, 40, 0.60);
  --glass-bg-solid: rgba(10, 17, 40, 0.95);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ══════════════════════════════════════════════════════════════
   DARK-MODE TEXT READABILITY FIXES
   The Tailwind config maps `white` to --color-bg-white which
   becomes #0a1128 in dark mode.  That's correct for backgrounds
   but makes text-white invisible.  These rules restore legible
   text colours for dark surfaces.
   ══════════════════════════════════════════════════════════════ */

/* 1. Tailwind text-white → actual white on dark surfaces */
:root[data-theme="dark"] .text-white {
  color: #ffffff !important;
}

/* 2. Tailwind slate text utilities — bump low-end for readability */
:root[data-theme="dark"] .text-slate-400 {
  color: #94a3b8 !important;
  /* same as default Tailwind slate-400 */
}

:root[data-theme="dark"] .text-slate-500 {
  color: #64748b !important;
  /* default Tailwind slate-500 */
}

:root[data-theme="dark"] .text-slate-600 {
  color: #94a3b8 !important;
}

:root[data-theme="dark"] .text-slate-900 {
  color: #f1f5f9 !important;
}

/* 3. Footer headings (font-semibold mb-5 in footer partials) */
:root[data-theme="dark"] footer .font-semibold {
  color: #e2e8f0;
}

/* 4. Problem visualization component labels */
:root[data-theme="dark"] .pv-ec-label,
:root[data-theme="dark"] .pv-queue-label,
:root[data-theme="dark"] .pv-pressure-label,
:root[data-theme="dark"] .pv-ec-icon {
  color: #94a3b8;
}

/* 5. Solution visual / capability animation labels */
:root[data-theme="dark"] .sv-tile-label,
:root[data-theme="dark"] .cin-ot-label,
:root[data-theme="dark"] .cin-display-kicker,
:root[data-theme="dark"] .legend-lbl,
:root[data-theme="dark"] .status-lbl,
:root[data-theme="dark"] .evo-bar-lbl {
  color: rgba(148, 163, 184, 0.78);
}

/* 6. Solution flow items text */
:root[data-theme="dark"] .sv-flow-item {
  color: #cbd5e1;
}

/* 7. Step rail numbers */
:root[data-theme="dark"] .cin-step-number {
  color: rgba(148, 163, 184, 0.25);
}

/* 8. Chat bubble text */
:root[data-theme="dark"] .chat-bubble {
  color: #cbd5e1;
}

:root[data-theme="dark"] .chat-bubble.chat-user {
  color: #e2e8f0;
}

/* 9. Capability card body text */
:root[data-theme="dark"] .capability-item-centered p,
:root[data-theme="dark"] .platform-card p {
  color: #94a3b8;
}

/* 10. Status box labels inside capability visuals */
:root[data-theme="dark"] .status-yes {
  color: #34d399;
}

/* 11. Problem-card story impact text */
:root[data-theme="dark"] .story-impact {
  color: rgba(148, 163, 184, 0.75);
}

/* 12. Solution step descriptions & shift labels */
:root[data-theme="dark"] .cin-step-desc {
  color: #94a3b8;
}

:root[data-theme="dark"] .cin-shift-before {
  color: #7889a8;
}

/* 13. About page text */
:root[data-theme="dark"] .about-mission-text,
:root[data-theme="dark"] .about-mission-pillar-text,
:root[data-theme="dark"] .about-story-intro,
:root[data-theme="dark"] .about-story-card p {
  color: #94a3b8;
}

/* ── Dark-Mode Transition ──
   Smooth colour / background / border / shadow crossfade
   when the theme changes (toggle or system pref).          */
:root {
  --theme-speed: 350ms;
}

body,
body::before,
body::after,
.gradient-mesh,
#header,
footer,
.card,
.contact-form,
.contact-form::after,
.testimonial-glass-card,
.testimonial-dynamic::after,
.about-mission-card,
.about-story-card,
.about-mission-pillars,
.about-pillar-visual,
.asc-visual,
.asc-win,
.asc-win-header,
.asc-win-body,
.asc-gc-card,
.video-glass-frame,
.capability-item-centered,
.section-glass-pill,
.hero-stat-card,
.hero-brain-orb,
.feature-icon,
.feature-icon-inline,
.contact-section-box,
.error-container,
.btn-glass-secondary,
.btn-secondary,
form input[type="text"],
form input[type="email"],
form textarea,
form select,
.nav-link,
.header-brand-text {
  transition:
    background-color var(--theme-speed) var(--ease-smooth),
    color var(--theme-speed) var(--ease-smooth),
    border-color var(--theme-speed) var(--ease-smooth),
    box-shadow var(--theme-speed) var(--ease-smooth);
}

/* Suppress transitions on initial page load so dark-mode users
   don't see a light→dark flash. Removed by JS after first paint. */
.no-theme-transition,
.no-theme-transition *,
.no-theme-transition *::before,
.no-theme-transition *::after {
  transition-duration: 0s !important;
}

/* Tailwind slate-900 override to match brand navy */
.text-slate-900 {
  color: var(--slate-900) !important;
}

.bg-slate-900 {
  background-color: var(--slate-900) !important;
}

/* 2. BASE & RESET
   ========================================================= */
html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--slate-50);
  color: var(--slate-900);
  position: relative;
  padding-top: var(--header-height);
  line-height: 1.6;
  font-size: 16px;
  /* Base font size for mobile */
}

/* Desktop font size increase */
@media (min-width: 1024px) {
  body {
    font-size: 18px;
  }
}

/* Gradient Mesh Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  /* Super light base tint */
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.2) 0%, rgba(255, 255, 255, 0.4) 100%);
}

/* Container for GSAP animated gradient orbs */
.gradient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  overflow: hidden;
  background-color: var(--slate-50);
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  transform: translateZ(0);
  /* Let GSAP manage will-change — permanent promotion of 90vw layers
     eats GPU memory and causes compositing flicker.  */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  opacity: 0.9;
}

.mesh-orb--blue {
  background: radial-gradient(circle closest-side, rgba(0, 102, 204, 0.10) 0%, rgba(0, 102, 204, 0.05) 40%, transparent 100%);
  width: 90vw;
  height: 90vw;
  max-width: 1400px;
  max-height: 1400px;
  top: -15%;
  left: -20%;
}

.mesh-orb--teal {
  background: radial-gradient(circle closest-side, rgba(0, 184, 169, 0.20) 0%, rgba(0, 184, 169, 0.10) 40%, transparent 100%);
  width: 80vw;
  height: 80vw;
  max-width: 1200px;
  max-height: 1200px;
  top: 35%;
  right: -10%;
}

.mesh-orb--green {
  background: radial-gradient(circle closest-side, rgba(0, 229, 160, 0.18) 0%, rgba(0, 229, 160, 0.09) 40%, transparent 100%);
  width: 75vw;
  height: 75vw;
  max-width: 1100px;
  max-height: 1100px;
  bottom: -5%;
  left: 10%;
}

.mesh-orb--blue-2 {
  background: radial-gradient(circle closest-side, rgba(0, 102, 204, 0.08) 0%, rgba(0, 102, 204, 0.04) 40%, transparent 100%);
  width: 85vw;
  height: 85vw;
  max-width: 1300px;
  max-height: 1300px;
  bottom: -20%;
  right: 10%;
}

.mesh-orb--teal-2 {
  background: radial-gradient(circle closest-side, rgba(0, 184, 169, 0.18) 0%, rgba(0, 184, 169, 0.09) 40%, transparent 100%);
  width: 90vw;
  height: 90vw;
  max-width: 1400px;
  max-height: 1400px;
  top: 60%;
  left: -15%;
}

.mesh-orb--green-2 {
  background: radial-gradient(circle closest-side, rgba(0, 229, 160, 0.16) 0%, rgba(0, 229, 160, 0.08) 40%, transparent 100%);
  width: 70vw;
  height: 70vw;
  max-width: 1000px;
  max-height: 1000px;
  top: -5%;
  right: -20%;
}

/* =====================================================
   HERO — "Data Ascending" System
   ===================================================== */

.hero-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* --- Aurora Gradient Blobs --- */
.hero-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-aurora-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: normal;
}

.hero-aurora-blob--blue {
  width: clamp(400px, 55vw, 900px);
  height: clamp(400px, 55vw, 900px);
  background: radial-gradient(circle, rgba(0, 102, 204, 0.18) 0%, rgba(0, 102, 204, 0) 70%);
  top: -15%;
  left: -5%;
  animation: auroraDrift1 12s ease-in-out infinite alternate;
}

.hero-aurora-blob--teal {
  width: clamp(350px, 45vw, 750px);
  height: clamp(350px, 45vw, 750px);
  background: radial-gradient(circle, rgba(0, 184, 169, 0.16) 0%, rgba(0, 184, 169, 0) 70%);
  top: 10%;
  right: -10%;
  animation: auroraDrift2 14s ease-in-out infinite alternate;
  transform: translateZ(0);
}

.hero-aurora-blob--green {
  width: clamp(300px, 40vw, 650px);
  height: clamp(300px, 40vw, 650px);
  background: radial-gradient(circle, rgba(0, 229, 160, 0.12) 0%, rgba(0, 229, 160, 0) 70%);
  bottom: -10%;
  left: 25%;
  animation: auroraDrift3 16s ease-in-out infinite alternate;
  transform: translateZ(0);
}

.hero-aurora-blob--accent {
  width: clamp(250px, 30vw, 500px);
  height: clamp(250px, 30vw, 500px);
  background: radial-gradient(circle, rgba(0, 102, 204, 0.10) 0%, transparent 70%);
  bottom: 5%;
  right: 15%;
  animation: auroraDrift4 18s ease-in-out infinite alternate;
  transform: translateZ(0);
}

@keyframes auroraDrift1 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translate3d(60px, 30px, 0) scale(1.12);
    opacity: 1;
  }

  100% {
    transform: translate3d(-30px, 50px, 0) scale(1.05);
    opacity: 0.8;
  }
}

@keyframes auroraDrift2 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.6;
  }

  50% {
    transform: translate3d(-50px, 40px, 0) scale(1.08);
    opacity: 0.9;
  }

  100% {
    transform: translate3d(30px, -20px, 0) scale(1.15);
    opacity: 0.7;
  }
}

@keyframes auroraDrift3 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.5;
  }

  100% {
    transform: translate3d(40px, -40px, 0) scale(1.1);
    opacity: 0.9;
  }
}

@keyframes auroraDrift4 {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.4;
  }

  100% {
    transform: translate3d(-40px, -30px, 0) scale(1.12);
    opacity: 0.7;
  }
}

/* --- Orbit System (around brain logo) --- */
.hero-orbit-system {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 240px;
  margin: 0 auto 1rem;
  z-index: 10;
}

.hero-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 102, 204, 0.08);
  animation: orbitSpin var(--orbit-duration, 20s) linear infinite;
}

.hero-orbit-ring--1 {
  width: 100%;
  height: 100%;
  --orbit-duration: 25s;
  border-color: rgba(0, 102, 204, 0.10);
}

.hero-orbit-ring--2 {
  width: 140%;
  height: 140%;
  --orbit-duration: 35s;
  animation-direction: reverse;
  border-color: rgba(0, 184, 169, 0.08);
}

.hero-orbit-ring--3 {
  width: 180%;
  height: 180%;
  --orbit-duration: 45s;
  border-color: rgba(0, 229, 160, 0.06);
}

@keyframes orbitSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Data particles on orbit rings */
.hero-orbit-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-primary);
  box-shadow: 0 0 12px rgba(0, 102, 204, 0.4);
}

.hero-orbit-particle--teal {
  background: var(--teal-primary);
  box-shadow: 0 0 12px rgba(0, 184, 169, 0.4);
}

.hero-orbit-particle--green {
  background: var(--green-primary);
  box-shadow: 0 0 12px rgba(0, 229, 160, 0.4);
}

/* Brain logo in orbit center */
.hero-brain-center {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-brain-glow {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(0, 184, 169, 0.20) 0%,
      rgba(0, 102, 204, 0.12) 40%,
      transparent 70%);
  animation: brainGlowPulse 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.hero-brain-orb {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: var(--glass-bg-heavy);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 32px rgba(0, 102, 204, 0.12),
    0 0 80px rgba(0, 184, 169, 0.08);
  pointer-events: none;
  z-index: 1;
}

.hero-brain-center img,
.hero-brain-center svg.hero-brain-svg {
  position: relative;
  z-index: 2;
  width: 150px;
  height: 150px;
  filter: drop-shadow(0 4px 20px rgba(0, 102, 204, 0.15));
}

.hero-brain-center svg.hero-brain-svg>g,
.hero-brain-center svg.hero-brain-svg>path {
  will-change: opacity;
}

@keyframes brainGlowPulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* --- Floating Glass Stat Cards --- */
.hero-stat-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 4px 16px rgba(0, 52, 103, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-700);
  white-space: nowrap;
  z-index: 15;
  opacity: 0;
  animation: statCardFloat 6s ease-in-out infinite alternate;
}

.hero-stat-card .stat-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: white;
}

.hero-stat-card .stat-icon--blue {
  background: var(--blue-primary);
}

.hero-stat-card .stat-icon--teal {
  background: var(--teal-primary);
}

.hero-stat-card .stat-icon--green {
  background: var(--green-primary);
}

.hero-stat-card .stat-value {
  font-weight: 700;
  color: var(--blue-deep);
}

.hero-stat-card--1 {
  top: 5%;
  right: -35%;
  animation-delay: 0s;
}

.hero-stat-card--2 {
  bottom: 15%;
  right: -45%;
  animation-delay: 2s;
}

.hero-stat-card--3 {
  bottom: 5%;
  left: -40%;
  animation-delay: 4s;
}

@keyframes statCardFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-12px);
  }
}

/* --- Ascending Particles --- */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
}

.hero-particle {
  position: absolute;
  bottom: -5%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0, 102, 204, 0.25);
  animation: particleAscend var(--p-dur, 8s) linear infinite;
}

.hero-particle--teal {
  background: rgba(0, 184, 169, 0.25);
}

.hero-particle--green {
  background: rgba(0, 229, 160, 0.20);
}

.hero-particle--lg {
  width: 5px;
  height: 5px;
  background: rgba(0, 102, 204, 0.18);
}

@keyframes particleAscend {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-110vh) translateX(20px);
    opacity: 0;
  }
}

/* --- Hero Content Layout (centered) --- */
.hero-content-centered {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content-centered .text-xl {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content-centered .flex-wrap {
  justify-content: center;
}

/* --- Hero Entrance Animations (CSS fallback, enhanced by GSAP) --- */
/* visibility:hidden prevents the CSS animation from flashing content
   before GSAP takes over and sets animation:none.  */
.hero-entrance {
  opacity: 0;
  visibility: hidden;
}

.hero-entrance--orbit {
  animation: heroFadeUp 0.8s ease-out 0.1s forwards;
}

.hero-entrance--pill {
  animation: heroFadeUp 0.6s ease-out 0.4s forwards;
}

.hero-entrance--h1 {
  animation: heroFadeUp 0.9s ease-out 0.6s forwards;
}

.hero-entrance--sub {
  animation: heroFadeUp 0.7s ease-out 0.9s forwards;
}

.hero-entrance--cta {
  animation: heroFadeUp 0.6s ease-out 1.1s forwards;
}

.hero-entrance--trust {
  animation: heroFadeUp 0.5s ease-out 1.3s forwards;
}

.hero-entrance--stats {
  animation: heroFadeUp 0.5s ease-out 1.5s forwards;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    visibility: visible;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gradient-orb--blue {
  width: clamp(500px, 50vw, 900px);
  height: clamp(500px, 50vw, 900px);
  background: radial-gradient(circle, rgba(0, 102, 204, 0.12) 0%, rgba(0, 102, 204, 0) 70%);
  top: -10%;
  left: 10%;
  animation: orbDrift1 20s ease-in-out infinite alternate;
}

.gradient-orb--teal {
  width: clamp(400px, 45vw, 800px);
  height: clamp(400px, 45vw, 800px);
  background: radial-gradient(circle, rgba(0, 184, 169, 0.10) 0%, rgba(0, 184, 169, 0) 70%);
  top: 40%;
  right: 5%;
  animation: orbDrift2 24s ease-in-out infinite alternate;
}

.gradient-orb--green {
  width: clamp(350px, 40vw, 700px);
  height: clamp(350px, 40vw, 700px);
  background: radial-gradient(circle, rgba(0, 229, 160, 0.09) 0%, rgba(0, 229, 160, 0) 70%);
  bottom: -5%;
  left: 30%;
  animation: orbDrift3 22s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(60px, 40px) scale(1.08);
  }
}

@keyframes orbDrift2 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-50px, -30px) scale(1.05);
  }
}

@keyframes orbDrift3 {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(40px, -50px) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-orb {
    animation: none !important;
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 102, 204, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 204, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
  /* Promote to own layer so it doesn't repaint with animated siblings */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* 3. TYPOGRAPHY
   ========================================================= */
.heading-hero {
  font-family: 'Lexend', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.heading-lg {
  font-family: 'Lexend', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.heading-md {
  font-family: 'Lexend', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.heading-sm {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.text-balance {
  text-wrap: balance;
}

.gradient-ascend-text {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--teal-primary) 50%, var(--green-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0 0.05em;
}

/* 4. LAYOUT & SECTIONS
   ========================================================= */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

/* Standard Section Padding */
.section {
  padding: 6rem 0;
  position: relative;
  background: transparent;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* Tighter padding on index; about page uses .hero-about override */

/* Section Transitions */
/* We're keeping these mostly transparent now so the animated gradient shows through */
.section::before,
.section::after,
.section-white::before,
.section-white::after,
.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  z-index: 0;
}

/* Standard Fade */
.section::before,
.hero-section::before {
  top: 0;
  background: transparent;
}

.section::after,
.hero-section::after {
  bottom: 0;
  background: transparent;
}

/* White Section Fade */
.section-white::before {
  top: 0;
  height: 250px;
  background: transparent;
}

.section-white::after {
  bottom: 0;
  height: 250px;
  background: transparent;
}

.section-from-white {
  background: transparent;
}

.section-to-white {
  background: transparent;
}

/* 5. COMPONENTS
   ========================================================= */

/* Glass Pill Badges */
.section-glass-pill {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(var(--glass-saturate));
  backdrop-filter: blur(16px) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border-subtle);
  box-shadow: var(--glass-highlight), 0 2px 8px rgba(0, 52, 103, 0.05);
}

/* Hero Glass Pill Badge */


.hero-glass-pill:hover {
  background: var(--glass-bg-heavy);
  box-shadow: var(--glass-highlight), var(--glass-shadow-lg);
  transform: translateY(-1px);
}

/* Glass Orb Behind Brain Logo */
.brain-glass-orb {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(0, 184, 169, 0.18) 0%,
      rgba(0, 102, 204, 0.10) 40%,
      transparent 70%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 0 60px rgba(0, 184, 169, 0.15),
    0 0 120px rgba(0, 102, 204, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: glassOrbPulse 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes glassOrbPulse {

  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* Glass CTA Buttons */
.btn-glass-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.75rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: var(--blue-deep);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 4px 16px rgba(0, 52, 103, 0.30),
    0 1px 3px rgba(0, 0, 0, 0.10);
  transition: background-color 280ms var(--ease-smooth), box-shadow 280ms var(--ease-smooth), border-color 280ms var(--ease-smooth), color 280ms var(--ease-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-glass-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-deep));
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 320ms var(--ease-smooth);
}

.btn-glass-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 28px rgba(0, 52, 103, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-glass-primary:hover::before {
  opacity: 1;
}

.btn-glass-primary:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 2px 8px rgba(0, 52, 103, 0.20);
}

.btn-glass-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  color: var(--slate-700);
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  transition: background-color 280ms var(--ease-smooth), box-shadow 280ms var(--ease-smooth), border-color 280ms var(--ease-smooth), color 280ms var(--ease-smooth);
}

.btn-glass-secondary:hover {
  background: var(--glass-bg-heavy);
  border-color: rgba(0, 102, 204, 0.25);
  color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow:
    var(--glass-highlight),
    var(--glass-shadow-lg);
}

.btn-glass-secondary:active {
  transform: translateY(1px);
  box-shadow: var(--glass-highlight), 0 2px 8px rgba(0, 52, 103, 0.06);
}

@media (min-width: 1024px) {

  .btn-glass-primary,
  .btn-glass-secondary {
    font-size: 1.0625rem;
  }
}


@media (prefers-reduced-motion: reduce) {
  .brain-glass-orb {
    animation: none;
  }
}

/* Feature Icons - Inline Version (no box) */
.feature-icon-inline {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(0, 184, 169, 0.08));
  transition: all 340ms var(--ease-smooth);
  flex-shrink: 0;
}

/* Capabilities Flow - Centered Grid */
.capabilities-flow-centered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Base glass capability card */
.capability-item-centered {
  padding: 2rem;
  border-radius: 16px;
  transition: all 400ms var(--ease-smooth);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.capability-item-centered:hover {
  transform: translateY(-6px);
  box-shadow:
    var(--glass-highlight),
    var(--glass-shadow-lg),
    0 0 0 1px rgba(0, 102, 204, 0.06);
}

/* Tinted glass variants */
.capability-glass-blue {
  background: var(--glass-bg-heavy);
  border-bottom: 2px solid var(--blue-primary);
}

.capability-glass-blue:hover {
  background: rgb(255, 255, 255);
}

.capability-glass-teal {
  background: var(--glass-bg-heavy);
  border-bottom: 2px solid var(--teal-primary);
}

.capability-glass-teal:hover {
  background: rgb(255, 255, 255);
}

.capability-glass-green {
  background: var(--glass-bg-heavy);
  border-bottom: 2px solid var(--green-primary);
}

.capability-glass-green:hover {
  background: rgb(255, 255, 255);
}

/* Testimonials Flow */
.testimonials-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.testimonial-item {
  padding: 2.5rem 0;
  border-left: 3px solid rgba(0, 184, 169, 0.2);
  padding-left: 2.5rem;
  transition: all 300ms var(--ease-smooth);
}

.testimonial-item:hover {
  border-left-color: var(--teal-primary);
  padding-left: 3rem;
}

/* Testimonial Quote Card - Premium Glass with Gradient Border */
.testimonial-glass-card {
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  background: var(--glass-bg-heavy);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  border: 1.5px solid transparent;
  background-clip: padding-box;
  box-shadow:
    var(--glass-highlight),
    var(--glass-shadow-lg);
  transition: all 400ms var(--ease-smooth);
  overflow: hidden;
}

/* Gradient border via pseudo-element */
.testimonial-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(135deg,
      rgba(0, 102, 204, 0.25),
      rgba(0, 184, 169, 0.35),
      rgba(0, 229, 160, 0.25),
      rgba(0, 184, 169, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 400ms var(--ease-smooth);
}

.testimonial-glass-card:hover {
  transform: translateY(-4px);
  box-shadow:
    var(--glass-highlight),
    0 20px 60px rgba(0, 102, 204, 0.12),
    0 0 40px rgba(0, 184, 169, 0.06);
}

.testimonial-glass-card:hover::before {
  background: linear-gradient(135deg,
      rgba(0, 102, 204, 0.35),
      rgba(0, 184, 169, 0.50),
      rgba(0, 229, 160, 0.35),
      rgba(0, 184, 169, 0.25));
}

/* Testimonial — rotating gradient border card */
.testimonial-glass-card {
  position: relative;
  border-radius: 24px;
  z-index: 0;
}

/* Rotating gradient border (same technique as contact form) */
.testimonial-dynamic::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: conic-gradient(from var(--contact-angle, 0deg),
      rgba(0, 102, 204, 0.5),
      rgba(0, 184, 169, 0.7),
      rgba(0, 229, 160, 0.5),
      rgba(0, 184, 169, 0.7),
      rgba(0, 102, 204, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: contactBorderSpin 6s linear infinite;
  pointer-events: none;
  z-index: -1;
}

/* Glass fill background */
.testimonial-dynamic::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 22px;
  background: var(--glass-bg-heavy);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  z-index: -1;
}

/* Decorative quote marks — starts hidden, pops in via GSAP */
.testimonial-quote-mark {
  font-family: 'Lexend', 'Inter', sans-serif;
  font-size: 6rem;
  font-weight: 800;
  line-height: 0.65;
  background: linear-gradient(135deg, var(--blue-primary), var(--teal-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: scale(0.5) translateY(20px);
  margin-bottom: 0.75rem;
  user-select: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-quote-mark.is-visible {
  opacity: 0.3;
  transform: scale(1) translateY(0);
}

/* Attribution row */
.testimonial-attribution {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(0, 184, 169, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-primary);
}

.testimonial-avatar svg {
  width: 24px;
  height: 24px;
}

/* About page hero — fills screen, but content anchored closer to top */
.hero-about {
  min-height: 100vh !important;
  align-items: flex-start !important;
  padding-top: 12rem !important;
  padding-bottom: 4rem !important;
}

@media (max-width: 768px) {
  .testimonial-attribution {
    justify-content: center;
  }

  .hero-about {
    min-height: auto !important;
    padding-top: 8rem !important;
    padding-bottom: 2rem !important;
  }
}


/* Team Grid - Symmetrical Layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.team-member-centered {
  text-align: center;
  transition: all 400ms var(--ease-smooth);
}

.team-member-centered img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 102, 204, 0.15);
  transition: all 400ms var(--ease-smooth);
}

.team-member-centered img[alt="Chris Chism"] {
  object-position: center 20%;
}

.team-member-centered img[alt="Mike Cimino"] {
  object-position: center 10%;
}

.team-member-centered:hover img {
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 102, 204, 0.25);
}

/* Video Container - Glass Frame */
.video-container {
  max-width: 1000px;
  margin: 0 auto;
  transition: all 400ms var(--ease-smooth);
}

.video-glass-frame {
  position: relative;
  padding: 10px;
  border-radius: 28px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--glass-highlight),
    0 12px 40px rgba(0, 102, 204, 0.12),
    0 0 80px rgba(0, 184, 169, 0.06);
  transition: all 400ms var(--ease-smooth);
}

.video-glass-frame:hover {
  transform: translateY(-6px);
  box-shadow:
    var(--glass-highlight),
    0 20px 60px rgba(0, 102, 204, 0.18),
    0 0 100px rgba(0, 184, 169, 0.10);
  border-color: rgba(255, 255, 255, 0.6);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--slate-900);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

/* Contact Flow - Open Layout */
.contact-flow {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-header {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  padding: 3rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.60);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  border: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 16px 48px rgba(0, 52, 103, 0.10),
    0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 400ms var(--ease-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Animated rotating gradient border */
@property --contact-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.contact-form::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: conic-gradient(from var(--contact-angle),
      var(--blue-primary),
      var(--teal-primary),
      var(--green-primary),
      var(--teal-primary),
      var(--blue-primary));
  z-index: -2;
  animation: contactBorderSpin 6s linear infinite;
  opacity: 0.5;
  transition: opacity 600ms var(--ease-smooth);
}

.contact-form::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.60);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  z-index: -1;
}

@keyframes contactBorderSpin {
  0% {
    --contact-angle: 0deg;
  }

  100% {
    --contact-angle: 360deg;
  }
}

.contact-form:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 20px 56px rgba(0, 52, 103, 0.12),
    0 6px 16px rgba(0, 0, 0, 0.05);
}

.contact-form:hover::before {
  opacity: 0.8;
}

/* Index contact section: full-width panel that meets the footer */
#contact .contact-flow {
  max-width: none;
  gap: 2.25rem;
  position: relative;
  padding-top: clamp(0.75rem, 1.5vw, 1.5rem);
  z-index: 0;
}

#contact .contact-flow::before {
  content: "";
  position: absolute;
  inset: -520px 0 -20px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(120% 90% at 50% 16%,
      rgba(255, 255, 255, 0.24) 0%,
      rgba(255, 255, 255, 0.06) 46%,
      transparent 74%),
    conic-gradient(from calc(var(--contact-angle) + 22deg) at 50% 58%,
      var(--blue-primary),
      var(--teal-primary),
      var(--green-primary),
      var(--teal-primary),
      var(--blue-primary));
  opacity: 0.88;
  z-index: -2;
  animation: contactBorderSpin 6s linear infinite;
  filter: blur(26px) saturate(1.2) brightness(1.1);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0,
      transparent 420px,
      rgba(0, 0, 0, 0.02) 540px,
      rgba(0, 0, 0, 0.10) 700px,
      rgba(0, 0, 0, 0.26) 880px,
      rgba(0, 0, 0, 0.54) 1080px,
      #000 1280px,
      #000 100%);
  mask-image: linear-gradient(to bottom,
      transparent 0,
      transparent 420px,
      rgba(0, 0, 0, 0.02) 540px,
      rgba(0, 0, 0, 0.10) 700px,
      rgba(0, 0, 0, 0.26) 880px,
      rgba(0, 0, 0, 0.54) 1080px,
      #000 1280px,
      #000 100%);
  transition: opacity 360ms var(--ease-smooth), filter 360ms var(--ease-smooth), transform 360ms var(--ease-smooth);
  pointer-events: none;
}

#contact .contact-flow::after {
  content: "";
  position: absolute;
  inset: -480px 0 -20px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.38) 0%,
      rgba(255, 255, 255, 0.26) 34%,
      rgba(255, 255, 255, 0.20) 100%);
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0,
      transparent 390px,
      rgba(0, 0, 0, 0.01) 520px,
      rgba(0, 0, 0, 0.08) 670px,
      rgba(0, 0, 0, 0.22) 840px,
      rgba(0, 0, 0, 0.46) 1020px,
      #000 1200px,
      #000 100%);
  mask-image: linear-gradient(to bottom,
      transparent 0,
      transparent 390px,
      rgba(0, 0, 0, 0.01) 520px,
      rgba(0, 0, 0, 0.08) 670px,
      rgba(0, 0, 0, 0.22) 840px,
      rgba(0, 0, 0, 0.46) 1020px,
      #000 1200px,
      #000 100%);
  pointer-events: none;
}

#contact .contact-flow:hover::before {
  opacity: 1;
  filter: blur(18px) saturate(1.45) brightness(1.24);
}

#contact.section {
  overflow: hidden;
  padding-bottom: 0;
}

#contact .contact-header {
  display: grid;
  row-gap: 1rem;
  padding-bottom: 0;
}

#contact .contact-header .heading-lg {
  margin: 0 !important;
  line-height: 1.2;
}

#contact .contact-header p {
  margin: 0 !important;
}

#contact .contact-form {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  overflow: visible;
}

#contact .contact-form:hover {
  box-shadow: none;
}

#contact .contact-form::before,
#contact .contact-form::after {
  display: none;
}

/* Keep input rows at the original centered width while gradient stays full-bleed */
#contact #contactForm>.grid.gap-2\.5,
#contact #contactForm>.text-center {
  width: min(900px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

/* Keep inputs readable when the contact gradient brightens on hover */
#contact #contactForm input[type="text"],
#contact #contactForm input[type="email"],
#contact #contactForm textarea,
#contact #contactForm select {
  background: rgba(255, 255, 255, 0.95);
}

#contact #contactForm input:focus,
#contact #contactForm textarea:focus,
#contact #contactForm select:focus {
  background: rgba(255, 255, 255, 0.99);
}

:root[data-theme="dark"] #contact #contactForm input[type="text"],
:root[data-theme="dark"] #contact #contactForm input[type="email"],
:root[data-theme="dark"] #contact #contactForm textarea,
:root[data-theme="dark"] #contact #contactForm select {
  background: rgba(10, 17, 40, 0.8);
}

:root[data-theme="dark"] #contact #contactForm input:focus,
:root[data-theme="dark"] #contact #contactForm textarea:focus,
:root[data-theme="dark"] #contact #contactForm select:focus {
  background: rgba(10, 17, 40, 0.9);
}

/* Decorative visual element — top-right corner accent */
.contact-form-deco {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(0, 184, 169, 0.12) 0%,
      rgba(0, 102, 204, 0.06) 50%,
      transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: contactDecoFloat 8s ease-in-out infinite alternate;
}

.contact-form-deco::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(0, 184, 169, 0.15);
  animation: contactDecoRing 12s linear infinite;
}

.contact-form-deco::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 102, 204, 0.08);
  animation: contactDecoRing 18s linear infinite reverse;
}

@keyframes contactDecoFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }

  100% {
    transform: translate(-10px, 10px) scale(1.1);
    opacity: 1;
  }
}

@keyframes contactDecoRing {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.75rem;
  transition: background-color 280ms var(--ease-smooth), box-shadow 280ms var(--ease-smooth), color 280ms var(--ease-smooth), border-color 280ms var(--ease-smooth), opacity 280ms var(--ease-smooth);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

@media (min-width: 1024px) {
  .btn {
    font-size: 1.0625rem;
  }
}

.btn-primary {
  background: var(--blue-deep);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 52, 103, 0.30);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-deep));
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 320ms var(--ease-smooth);
}

.btn-primary>* {
  position: relative;
  z-index: 2;
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(0, 52, 103, 0.35);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  box-shadow: 0 2px 8px rgba(0, 52, 103, 0.20);
}

.btn-secondary {
  background: white;
  color: var(--slate-700);
  border: 1.5px solid rgba(0, 102, 204, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.12);
}

.btn-secondary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Cards */
.card {
  background: var(--glass-bg-heavy);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border-subtle);
  border-radius: 24px;
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  position: relative;
  transition: all 320ms var(--ease-smooth);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-highlight), var(--glass-shadow-lg);
  border-color: rgba(0, 102, 204, 0.20);
}

.card-glow {
  position: relative;
  overflow: hidden;
}

.card-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 184, 169, 0.12), transparent);
  transition: left 700ms var(--ease-smooth);
}

.card-glow:hover::before {
  left: 100%;
}

/* Feature Icons */
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.12), rgba(0, 184, 169, 0.12));
  border: 1.5px solid rgba(0, 102, 204, 0.2);
  transition: all 340ms var(--ease-smooth);
  flex-shrink: 0;
}

.feature-icon:hover,
.card:hover .feature-icon {
  transform: scale(1.12) rotate(3deg);
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.18), rgba(0, 184, 169, 0.18));
  border-color: rgba(0, 102, 204, 0.35);
}

/* Contact Section Container */
.contact-section-box {
  background: linear-gradient(135deg, rgba(0, 184, 169, 0.1), rgba(0, 229, 160, 0.1));
  border-radius: 24px;
  padding: 2.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.03),
    0 12px 36px rgba(0, 102, 204, 0.07),
    inset 0 1px 0 rgba(0, 184, 169, 0.15);
  border: 1.5px solid rgba(0, 184, 169, 0.2);
  position: relative;
  transition: all 320ms var(--ease-smooth);
  text-align: center;
  overflow: hidden;
}

.contact-section-box::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--blue-bright), var(--teal-bright), var(--green-bright));
  border-radius: 24px;
  opacity: 0;
  filter: blur(24px);
  transition: opacity 1200ms var(--ease-smooth);
  z-index: -1;
}

.contact-section-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04), 0 24px 60px rgba(0, 102, 204, 0.10);
  border-color: rgba(0, 184, 169, 0.35);
}

.contact-section-box:hover::before {
  opacity: 0.5;
}

/* Form Container */
#contactForm {
  position: relative;
  z-index: 1;
}

.contact-section-box>* {
  position: relative;
  z-index: 1;
}

/* Form Inputs - Glass Style */
#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea,
#contactForm select,
form input[type="text"],
form input[type="email"],
form textarea,
form select {
  width: 100%;
  padding-left: 1.85rem;
  padding-right: 1.85rem;
  padding-top: 0;
  padding-bottom: 0;
  height: var(--field-height);
  line-height: var(--field-height);
  border: 1.5px solid var(--glass-border-subtle);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  border-radius: var(--field-radius);
  font-size: 1.0625rem;
  color: var(--slate-900);
  transition: all 220ms var(--ease-smooth);
  font-family: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 2px 4px rgba(0, 40, 80, 0.04);
}

#contactForm textarea,
form textarea {
  min-height: 100px;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  padding-left: 1.85rem;
  padding-right: 1.85rem;
  line-height: 1.55;
  resize: vertical;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.80);
  border-color: rgba(0, 102, 204, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 4px rgba(0, 102, 204, 0.08),
    0 4px 12px rgba(0, 102, 204, 0.10);
  transform: translateY(-1px);
}

form input::placeholder,
form textarea::placeholder {
  color: var(--slate-400);
  font-size: 1.0625rem;
}

form label {
  display: block;
  font-weight: 500;
  color: var(--slate-700);
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

form label .required {
  color: var(--blue-primary);
}

@media (min-width: 1024px) {

  #contactForm input[type="text"],
  #contactForm input[type="email"],
  #contactForm textarea,
  #contactForm select,
  form input[type="text"],
  form input[type="email"],
  form textarea,
  form select {
    font-size: 1.125rem;
  }

  form input::placeholder,
  form textarea::placeholder {
    font-size: 1.125rem;
  }

  form label {
    font-size: 1rem;
  }
}

/* Contact Form Submit - Glass Primary */
.contact-form .btn-glass-primary {
  width: 100%;
}

@media (min-width: 768px) {
  .contact-form .btn-glass-primary {
    width: auto;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Contact Section Button - Inherits from .btn-primary */
.contact-section-box .btn-primary {
  box-shadow: 0 4px 16px rgba(0, 52, 103, 0.35);
}

.contact-section-box .btn-primary:hover {
  box-shadow: 0 8px 28px rgba(0, 52, 103, 0.40);
}

/* 6. PAGE ELEMENTS
   ========================================================= */
.ascend-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-bright), transparent);
  opacity: 0.2;
  transform-origin: bottom left;
}

.ascend-line-1 {
  bottom: 10%;
  left: 10%;
  width: 300px;
  transform: rotate(35deg);
  animation: flow-up 20s infinite ease-in-out;
}

.ascend-line-2 {
  bottom: 20%;
  left: 40%;
  width: 250px;
  transform: rotate(40deg);
  animation: flow-up 18s infinite ease-in-out 3s;
}

.ascend-line-3 {
  bottom: 15%;
  right: 20%;
  width: 280px;
  transform: rotate(45deg);
  animation: flow-up 22s infinite ease-in-out 7s;
}

@keyframes flow-up {

  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0) rotate(35deg);
  }

  50% {
    opacity: 0.4;
    transform: translateY(-100px) rotate(38deg);
  }
}

.brain-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: calc((100vw - 1320px) / 4);
}

.brain-container-mobile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.brain-container video,
.brain-container-mobile video {
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

/* Hero brain positioning - for desktop */
.hero-brain-desktop {
  margin-left: auto;
  margin-right: calc((100vw - 1320px) / 4);
}

/* Process flow with transition delay */
.process-flow-delayed {
  transition-delay: 200ms;
}

/* Fade in with transition delay */
.fade-in-delayed {
  transition-delay: 200ms;
}

/* About Page - Mission & Story Layout */
.about-mission-card {
  position: relative;
  padding: 2.75rem 3rem;
  border-radius: 24px;
  background: var(--glass-bg-heavy);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow-lg);
}

.about-mission-header {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.about-story-header .section-glass-pill {
  margin-bottom: 1.75rem;
}

.about-mission {
  padding-top: 3rem;
}

.about-mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.about-mission-title {
  font-family: 'Lexend', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.15;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.about-mission-text {
  color: var(--slate-600);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.about-mission-pillars {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: var(--glass-bg-light);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.about-mission-pillar {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  transition: all 300ms var(--ease-smooth);
}

.about-mission-pillar:last-child {
  border-bottom: none;
}

.about-mission-pillar:hover {
  background: rgba(255, 255, 255, 0.56);
  transform: translateX(4px);
  box-shadow: 0 6px 14px rgba(0, 52, 103, 0.09);
}

.about-pillar-visual {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 52, 103, 0.06), inset 0 1px 0 rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.about-pillar-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
  border-radius: inherit;
  pointer-events: none;
}

.apv-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  z-index: 1;
}

.apv-bar {
  width: 4px;
  background: rgba(0, 102, 204, 0.15);
  border-radius: 2px 2px 0 0;
}

.apv-bar--accent {
  background: rgba(0, 102, 204, 0.45);
}

.apv-bar--peak {
  background: var(--blue-primary);
}

.apv-trend-line {
  position: absolute;
  top: 14px;
  left: 6px;
  right: 6px;
  height: 24px;
  z-index: 2;
}

.apv-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 38px;
  z-index: 1;
}

.apv-check-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.apv-check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(0, 184, 169, 0.2);
}

.apv-check-dot--done {
  background: var(--teal-primary);
}

.apv-check-dot--active {
  background: white;
  border: 2px solid var(--teal-primary);
}

.apv-check-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 184, 169, 0.15);
}

.apv-check-line--shimmer {
  background: linear-gradient(90deg, rgba(0, 184, 169, 0.2), rgba(0, 184, 169, 0.7), rgba(0, 184, 169, 0.2));
  background-size: 200% 100%;
}

.apv-ai-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: var(--teal-primary);
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 184, 169, 0.3);
}

.apv-gauge-wrap {
  position: relative;
  width: 44px;
  height: 26px;
  z-index: 1;
  margin-bottom: 6px;
}

.apv-gauge-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.apv-gauge-val {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-900);
}

.apv-growth-label {
  position: absolute;
  bottom: 6px;
  font-size: 8px;
  color: var(--slate-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.about-mission-pillar-title {
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.about-mission-pillar-text {
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.55;
}

.about-story-header,
.solution-header {
  max-width: 900px;
  margin: 0 auto 0.5rem;
  text-align: center;
  grid-column: 1 / -1;
}

.about-story-header .heading-lg,
.solution-header .heading-lg {
  margin-bottom: 0.5rem;
}

.about-story-intro,
.solution-intro {
  color: var(--slate-600);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.about-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.about-story-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.78) 0%, rgba(248, 250, 252, 0.58) 100%);
  border-radius: 18px;
  border: 1px solid var(--glass-border-subtle);
  padding: 1.5rem;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow:
    var(--glass-highlight),
    0 8px 22px rgba(0, 52, 103, 0.09);
  transition: all 400ms var(--ease-smooth);
}

.about-story-card:hover {
  transform: translateY(-3px);
  box-shadow:
    var(--glass-highlight),
    0 14px 32px rgba(0, 52, 103, 0.13);
}

.asc-visual {
  position: relative;
  width: 100%;
  height: 96px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 52, 103, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}

.asc-visual:not(.asc-visual--grid):not(.asc-visual--build) {
  flex-direction: column;
}

/* 01. The Signal: 4-Window Grid */
.asc-windows {
  position: relative;
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asc-window-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  height: 100%;
  max-width: 560px;
  position: relative;
}

.asc-win {
  background: white;
  border-radius: 6px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 4px 12px rgba(15, 42, 68, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

:root[data-theme="dark"] .asc-win {
  background: var(--glass-bg-heavy);
  border-color: rgba(68, 89, 132, 0.35);
}

.asc-win-header {
  height: 8px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  padding: 0 4px;
  gap: 2px;
}

:root[data-theme="dark"] .asc-win-header {
  background: rgba(10, 17, 40, 0.6);
  border-bottom-color: rgba(68, 89, 132, 0.25);
}

.asc-win-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
}

.doc-red {
  background: #ff5f56;
}

.doc-yel {
  background: #ffbd2e;
}

.doc-grn {
  background: #27c93f;
}

.asc-win-body {
  flex: 1;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: white;
}

:root[data-theme="dark"] .asc-win-body {
  background: transparent;
}

/* Window 1: Excel */
.asc-xls {
  gap: 1px;
}

.asc-xls-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1px;
  height: 10px;
}

.asc-xls-cell {
  background: var(--slate-100);
  border-radius: 1px;
}

:root[data-theme="dark"] .asc-xls-cell {
  background: rgba(255, 255, 255, 0.05);
}

.asc-xls-row.header .asc-xls-cell {
  background: var(--slate-300);
}

:root[data-theme="dark"] .asc-xls-row.header .asc-xls-cell {
  background: rgba(255, 255, 255, 0.15);
}

/* Window 2: Behavior Log */
.asc-bhv {
  justify-content: flex-start;
  gap: 5px;
}

.asc-bhv-item {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--slate-50);
  padding: 4px;
  border-radius: 2px;
  border-left: 2px solid transparent;
}

.asc-bhv-item.alert {
  border-left-color: #ef4444;
}

.asc-bhv-item.warn {
  border-left-color: #f59e0b;
}

.asc-bhv-item.ok {
  border-left-color: #10b981;
}

.asc-bhv-icon {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.asc-bhv-item.alert .asc-bhv-icon {
  background: #ef4444;
}

.asc-bhv-item.warn .asc-bhv-icon {
  background: #f59e0b;
}

.asc-bhv-item.ok .asc-bhv-icon {
  background: #10b981;
}

.asc-bhv-line {
  flex: 1;
  height: 3px;
  background: var(--slate-200);
  border-radius: 1px;
}

.asc-bhv-line.shrt {
  width: 60%;
  flex: none;
}

/* Window 3: Google Classroom */
.asc-gc {
  gap: 4px;
  justify-content: flex-start;
}

.asc-gc-card {
  border: 1px solid var(--slate-200);
  border-radius: 3px;
  padding: 5px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
}

.alert-card {
  border-color: #fca5a5;
  background: #fef2f2;
}

.warn-card {
  border-color: #fcd34d;
  background: #fffbeb;
}

.asc-gc-title {
  width: 30px;
  height: 4px;
  background: var(--blue-primary);
  border-radius: 1px;
}

.asc-gc-title.shrt {
  width: 20px;
}

.asc-gc-title.med {
  width: 24px;
}

.asc-gc-score {
  font-size: 7px;
  font-weight: 700;
  color: var(--slate-700);
}

.asc-gc-score.missing {
  color: #ef4444;
}

.asc-gc-score.warn {
  color: #d97706;
}

/* Window 4: FAST Test */
.asc-fast {
  justify-content: center;
  align-items: flex-start;
  padding-top: 2px;
}

.asc-fast-title {
  font-size: 7px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.asc-fast-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 55px;
  width: 100%;
  padding: 0 2px;
  margin-bottom: 3px;
}

.asc-fast-bar-col {
  flex: 1;
  background: var(--slate-100);
  border-radius: 2px 2px 0 0;
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.asc-fast-fill {
  width: 100%;
  border-radius: 2px 2px 0 0;
}

.fill-l1 {
  background: #ef4444;
  height: 28%;
}

.fill-l2 {
  background: #f59e0b;
  height: 52%;
}

.fill-l3 {
  background: #10b981;
  height: 78%;
}

.fill-l4 {
  background: #10b981;
  height: 65%;
}

.fill-l5 {
  background: #f59e0b;
  height: 45%;
}

.asc-fast-badge {
  font-size: 7px;
  font-weight: 600;
  background: var(--green-primary);
  color: white;
  padding: 2px 4px;
  border-radius: 2px;
  align-self: flex-start;
  margin-top: 2px;
}

/* Animated Cursor */
.asc-cursor {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 10;
  top: 50%;
  left: 50%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  animation: moveCursor 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: top left;
}

@keyframes moveCursor {
  0% {
    transform: translate(-50%, -50%) scale(1);
    top: 50%;
    left: 50%;
  }

  /* To Window 1: Excel data row — top-left quadrant */
  10% {
    transform: translate(0, 0) scale(1);
    top: 6.2%;
    left: 33.9%;
  }

  15% {
    transform: translate(0, 0) scale(0.85);
    top: 6.2%;
    left: 33.9%;
  }

  22% {
    transform: translate(0, 0) scale(0.85);
    top: 6.2%;
    left: 33.9%;
  }

  25% {
    transform: translate(0, 0) scale(1);
    top: 6.2%;
    left: 33.9%;
  }

  /* To Window 2: Behavior alert item — top-right quadrant */
  30% {
    transform: translate(0, 0) scale(1);
    top: 4.2%;
    left: 75.5%;
  }

  35% {
    transform: translate(0, 0) scale(0.85);
    top: 4.2%;
    left: 75.5%;
  }

  45% {
    transform: translate(0, 0) scale(0.85);
    top: 4.2%;
    left: 75.5%;
  }

  48% {
    transform: translate(0, 0) scale(1);
    top: 4.2%;
    left: 75.5%;
  }

  /* To Window 3: Google Classroom missing grade card — bottom-left */
  50% {
    transform: translate(0, 0) scale(1);
    top: 61.7%;
    left: 24.5%;
  }

  55% {
    transform: translate(0, 0) scale(0.85);
    top: 61.7%;
    left: 24.5%;
  }

  65% {
    transform: translate(0, 0) scale(0.85);
    top: 61.7%;
    left: 24.5%;
  }

  68% {
    transform: translate(0, 0) scale(1);
    top: 61.7%;
    left: 24.5%;
  }

  /* To Window 4: FAST lowest bar — bottom-right quadrant */
  70% {
    transform: translate(0, 0) scale(1);
    top: 79.9%;
    left: 75.5%;
  }

  75% {
    transform: translate(0, 0) scale(0.85);
    top: 79.9%;
    left: 75.5%;
  }

  85% {
    transform: translate(0, 0) scale(0.85);
    top: 79.9%;
    left: 75.5%;
  }

  88% {
    transform: translate(0, 0) scale(1);
    top: 79.9%;
    left: 75.5%;
  }

  /* Back to center */
  95% {
    transform: translate(-50%, -50%) scale(1);
    top: 50%;
    left: 50%;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    top: 50%;
    left: 50%;
  }
}

/* --- Interactive Window Animations --- */

/* 1. Excel Cell (1s to 2.4s -> 12.5% to 30%) */
.anim-xls-cell {
  animation: xlsInteract 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes xlsInteract {

  0%,
  15% {
    background: var(--slate-100);
    transform: scale(1);
    border-radius: 1px;
  }

  18% {
    background: var(--blue-primary);
    transform: scale(1.1);
    border-radius: 2px;
  }

  22% {
    background: var(--blue-primary);
    transform: scale(1.1);
    border-radius: 2px;
  }

  25%,
  100% {
    background: var(--slate-100);
    transform: scale(1);
    border-radius: 1px;
  }
}

/* 2. Behavior Log Alert (3s to 4.4s -> 37.5% - 55%) */
.anim-bhv-item {
  animation: bhvInteract 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.anim-bhv-item .asc-bhv-icon {
  animation: bhvIconInteract 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bhvInteract {

  0%,
  35% {
    border-left-color: #ef4444;
  }

  45%,
  100% {
    border-left-color: #10b981;
  }
}

@keyframes bhvIconInteract {

  0%,
  35% {
    background: #ef4444;
  }

  45%,
  100% {
    background: #10b981;
  }
}

/* 3. Google Classroom Grade (5s to 6.4s -> 62.5% - 75%) */
.anim-gc-card {
  animation: gcCardInteract 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes gcCardInteract {

  0%,
  55% {
    border-color: #fca5a5;
    background: #fef2f2;
  }

  65%,
  100% {
    border-color: var(--slate-200);
    background: white;
  }
}

.relative-score {
  position: relative;
  width: 24px;
  height: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.anim-gc-missing {
  color: #ef4444;
  position: absolute;
  right: 0;
  animation: fadeOutMissing 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.anim-gc-graded {
  color: var(--slate-700);
  position: absolute;
  right: 0;
  opacity: 0;
  animation: fadeInGraded 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeOutMissing {

  0%,
  55% {
    opacity: 1;
    transform: translateY(0);
  }

  65%,
  100% {
    opacity: 0;
    transform: translateY(-2px);
  }
}

@keyframes fadeInGraded {

  0%,
  55% {
    opacity: 0;
    transform: translateY(2px);
  }

  65%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 4. FAST Test Bar (7s to 8s -> 87.5% - 100%) */
.anim-fast-bar {
  animation: fastBarInteract 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom center;
}

@keyframes fastBarInteract {

  0%,
  75% {
    height: 30%;
    background: #ef4444;
  }

  85%,
  100% {
    height: 80%;
    background: #10b981;
  }
}

/* 02. The Friction: Notification Stack */
.asc-visual--flex {
  align-items: center;
  justify-content: center;
}

.asc-notifications {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 96px;
  /* Bound to container height */
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.asc-notification-card {
  position: absolute;
  top: 0px;
  /* Moved up */
  width: 90%;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 4px 12px rgba(15, 42, 68, 0.08);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  animation: notificationStack 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
  animation-delay: var(--anim-delay, 0s);
  z-index: 10;
}

.asc-notification-card.doc-red {
  border-left: 3px solid #ef4444;
}

.asc-notification-card.doc-yel {
  border-left: 3px solid #f59e0b;
}

.asc-notification-icon {
  width: 16px;
  height: 16px;
  color: var(--slate-500);
  flex-shrink: 0;
}

.asc-notification-icon svg {
  width: 100%;
  height: 100%;
}

.asc-notification-card.doc-red .asc-notification-icon {
  color: #ef4444;
}

.asc-notification-card.doc-yel .asc-notification-icon {
  color: #f59e0b;
}

.asc-notification-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--slate-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 
  Animation cycle: 
  0% - 5%: Drop in (top position, full scale/opacity, z-index highest)
  25% - 30%: Pushed down 1st level (scale down, opacity darkens, z-index lowers)
  50% - 55%: Pushed down 2nd level (scale down further)
  75% - 80%: Pushed out of bounds (fade to 0 opacity)
  100%: Reset
*/
@keyframes notificationStack {

  0%,
  4% {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    z-index: 10;
  }

  8%,
  25% {
    opacity: 1;
    transform: translateY(10px) scale(1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(15, 42, 68, 0.08);
  }

  33%,
  50% {
    opacity: 0.85;
    transform: translateY(34px) scale(0.95);
    z-index: 9;
    box-shadow: 0 2px 8px rgba(15, 42, 68, 0.05);
  }

  58%,
  75% {
    opacity: 0.5;
    transform: translateY(58px) scale(0.9);
    z-index: 8;
    box-shadow: none;
  }

  83%,
  100% {
    opacity: 0;
    transform: translateY(82px) scale(0.85);
    z-index: 7;
    box-shadow: none;
  }
}

/* 03. The Shift: Matrix Synthesis */
.asc-visual--shift {
  display: flex;
  flex-direction: column !important;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

/* Data Rain (Top Section) */
.asc-matrix-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: 1;
}

.asc-data-stream {
  position: absolute;
  top: -20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--slate-300);
  opacity: 0.6;
  animation: matrixFall var(--speed) linear infinite;
  animation-delay: var(--delay);
}

.asc-data-stream span {
  display: block;
  text-shadow: 0 0 2px rgba(148, 163, 184, 0.5);
}

@keyframes matrixFall {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }

  10% {
    opacity: 0.7;
  }

  80% {
    opacity: 0.7;
  }

  100% {
    transform: translateY(120px);
    opacity: 0;
  }
}

/* Background Numbers Layer */
.asc-matrix-rain--numbers {
  height: 100%;
  opacity: 0.8;
  filter: blur(0.5px);
  z-index: 1;
}

/* Foreground Icons Layer */
.asc-matrix-rain--icons {
  height: 100%;
  z-index: 2;
}

.asc-icon-stream {
  position: absolute;
  top: -30px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--teal-primary);
  border-radius: 6px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 4px 8px rgba(15, 42, 68, 0.08);
  opacity: 0;
  animation: iconFall var(--icon-speed) cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: var(--icon-delay);
}

:root[data-theme="dark"] .asc-icon-stream {
  background: var(--glass-bg-heavy);
  border-color: rgba(68, 89, 132, 0.35);
}

.asc-icon-stream svg {
  width: 14px;
  height: 14px;
}

@keyframes iconFall {
  0% {
    transform: translateY(-30px) rotate(-10deg);
    opacity: 0;
  }

  15% {
    opacity: 1;
    transform: translateY(10px) rotate(0deg);
  }

  85% {
    opacity: 1;
    transform: translateY(70px) rotate(5deg);
  }

  100% {
    transform: translateY(100px) rotate(10deg);
    opacity: 0;
  }
}

/* 04. The Build: Staircase Stack */
.asc-build-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 8px;
}

.asc-stack-block {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-600);
  box-shadow: 0 4px 6px rgba(15, 42, 68, 0.05);
  opacity: 0;
  transform: translateX(-15px);
  animation: stackBuild 5s infinite;
  will-change: opacity, transform;
}

:root[data-theme="dark"] .asc-stack-block {
  background: var(--glass-bg-heavy);
  border-color: rgba(68, 89, 132, 0.35);
}

.block-1 {
  animation-delay: 0s;
  z-index: 1;
}

.block-2 {
  animation-delay: 0.5s;
  z-index: 2;
  margin-left: -4px;
}

.block-3 {
  animation-delay: 1.0s;
  z-index: 3;
  margin-left: -4px;
}

.asc-stack-peak {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: 12px;
  padding-left: 16px;
  border-left: 2px dashed rgba(0, 102, 204, 0.2);
  opacity: 0;
  transform: translateX(-15px);
  animation: stackPeak 5s infinite;
  animation-delay: 1.5s;
  z-index: 4;
}

.asc-peak-logo {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 8px rgba(0, 184, 169, 0.4));
}

.asc-peak-text {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--slate-900);
}

@keyframes stackBuild {
  0% {
    opacity: 0;
    transform: translateX(-15px);
  }

  10%,
  80% {
    opacity: 1;
    transform: translateX(0);
  }

  90%,
  100% {
    opacity: 0;
    transform: translateX(10px);
  }
}

@keyframes stackPeak {
  0% {
    opacity: 0;
    transform: translateX(-15px) scale(0.95);
  }

  15%,
  85% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  95%,
  100% {
    opacity: 0;
    transform: translateX(10px) scale(0.95);
  }
}

@media (max-width: 640px) {
  .asc-build-stack {
    gap: 4px;
  }

  .asc-stack-block {
    padding: 6px 8px;
    font-size: 9px;
  }

  .block-2,
  .block-3 {
    margin-left: -2px;
  }

  .asc-stack-peak {
    margin-left: 8px;
    padding-left: 10px;
  }

  .asc-peak-logo {
    width: 20px;
    height: 20px;
  }

  .asc-peak-text {
    font-size: 13px;
  }
}



.about-story-index {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 102, 204, 0.06);
  border: 1px solid rgba(0, 102, 204, 0.14);
  color: var(--blue-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.about-story-title {
  font-family: 'Lexend', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.6rem;
}

.about-story-card p {
  color: var(--slate-600);
  font-size: 0.98rem;
  line-height: 1.65;
}

.about-story-highlight {
  margin-top: 3.5rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  background: var(--blue-deep);
  display: inline-block;
  text-align: center;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 102, 204, 0.2);
}

/* Show more/less button visibility */
.show-more-hide-text {
  display: none;
}

.brain-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, var(--teal-bright) 0%, transparent 70%);
  opacity: 0.25;
  filter: blur(40px);
  animation: pulse-brain 5s infinite ease-in-out;
}

@keyframes pulse-brain {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(1.15);
  }
}

@keyframes bounce-brain {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.team-member-card {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.team-member-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.12);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 600ms ease;
}

.team-member-card img[alt="Chris Chism"] {
  object-position: center 20%;
}

.team-member-card img[alt="Mike Cimino"] {
  object-position: center 10%;
}

.team-member-card .linkedin-link {
  margin-top: auto;
  align-self: flex-end;
}

#team {
  scroll-margin-top: 120px;
}

/* Clickable team card hover */
.team-card-clickable {
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: all 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.team-card-clickable::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 184, 169, 0.5), rgba(0, 102, 204, 0.2));
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
  z-index: -1;
}

.team-card-clickable:hover::before {
  opacity: 1;
}

.team-card-clickable:hover {
  border-color: transparent;
  transform: translateY(-8px);
  box-shadow: var(--glass-highlight), 0 24px 48px rgba(0, 52, 103, 0.15), 0 0 30px rgba(0, 184, 169, 0.08);
}

.team-card-clickable:hover img {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 102, 204, 0.2);
}

.team-card-clickable:hover .show-more-btn svg {
  transform: translateX(4px);
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.75rem;
  cursor: pointer;
}

.team-member-card .show-more-btn {
  margin-top: auto;
  padding-top: 0.75rem;
}

.show-more-btn svg {
  transition: transform 200ms var(--ease-smooth);
}

.show-more-btn:hover {
  gap: 0.75rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 1rem;
  text-decoration: none;
}

.linkedin-link:hover {
  color: var(--teal-primary);
  gap: 0.75rem;
}

/* Bio Modal Contact Links */
.bio-modal-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
  position: relative;
  z-index: 5;
}

.bio-modal-email-btn,
.bio-modal-linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.bio-modal-email-btn {
  background: var(--blue-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bio-modal-email-btn:hover {
  background: var(--blue-deep);
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
  transform: translateY(-2px);
}

.bio-modal-linkedin-btn {
  background: var(--glass-bg-medium);
  backdrop-filter: blur(8px);
  color: var(--slate-700);
  border: 1px solid rgba(0, 102, 204, 0.15);
  box-shadow: 0 4px 12px rgba(0, 52, 103, 0.05);
}

.bio-modal-linkedin-btn:hover {
  background: var(--glass-bg-heavy);
  color: var(--blue-primary);
  border-color: rgba(0, 102, 204, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 52, 103, 0.1);
}

/* Bio Modal Overlay */
/* Bio Modal Overlay — all transitions driven by GSAP */
.bio-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(15, 42, 68, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overscroll-behavior: contain;
}

.bio-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bio-modal {
  background: linear-gradient(135deg, rgba(0, 184, 169, 0.4), rgba(0, 102, 204, 0.15)), var(--glass-bg-heavy);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 6px;
  max-width: 900px;
  width: 100%;
  max-height: 75vh;
  max-height: 75dvh;
  position: relative;
  box-shadow: var(--glass-highlight), 0 32px 80px rgba(0, 0, 0, 0.15), 0 0 80px rgba(0, 102, 204, 0.08);
  opacity: 1;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  transform-origin: center center;
}

/* During counter-scale animation: clip content that overflows the shrunk container */
.bio-modal.bio-modal-animating {
  overflow: hidden;
  will-change: transform;
}

.bio-modal.bio-modal-animating .bio-modal-content {
  will-change: transform;
}

/* Photo — no CSS transitions, GSAP controls visibility */
.bio-modal-photo {
  transition: box-shadow 300ms ease;
}

.bio-modal-photo:hover {
  box-shadow: 0 12px 36px rgba(0, 102, 204, 0.25);
}

.bio-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--slate-100);
  color: var(--slate-600);
  cursor: pointer;
  transition: all 200ms var(--ease-smooth);
  z-index: 10;
  flex-shrink: 0;
}

.bio-modal-close:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

/* Skeleton Loading Animation */
.bio-skeleton-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.bio-skeleton-line {
  background: linear-gradient(90deg, var(--slate-200) 0%, var(--slate-100) 50%, var(--slate-200) 100%);
  background-size: 200% 100%;
  border-radius: 12px;
  transform-origin: left center;
  transform: scaleX(0);
  /* Animation driven by GSAP — no CSS animation */
}

.skeleton-img {
  background: linear-gradient(90deg, var(--slate-200) 25%, var(--slate-100) 50%, var(--slate-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes type-skeleton {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

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

  100% {
    background-position: -200% 0;
  }
}

.fade-in-fast {
  animation: fadeInFast 300ms ease-out forwards;
}

@keyframes fadeInFast {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.bio-modal-content {
  display: flex;
  gap: 2.5rem;
  flex: 1;
  min-height: 0;
  padding: 4.5rem 2.5rem 4.5rem;
  background: var(--glass-bg-solid);
  border-radius: 18px;
  overflow: hidden;
}

.bio-modal-sidebar {
  flex-shrink: 0;
  width: 220px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bio-modal-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 102, 204, 0.15);
}

.bio-modal-photo[alt="Chris Chism"] {
  object-position: center 20%;
}

.bio-modal-photo[alt="Mike Cimino"] {
  object-position: center 10%;
}

.bio-modal-body {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem 0.25rem 1.25rem 1.5rem;
  border-radius: 12px;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

.bio-modal-body p {
  color: var(--slate-700);
  line-height: 1.75;
  margin-bottom: 1rem;
  padding-right: 0.75rem;
}

.bio-modal-body p:last-child {
  margin-bottom: 0;
}

/* Bio modal tablet */
@media (max-width: 768px) {
  .bio-modal-overlay {
    padding: 1.5rem 1rem;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .bio-modal {
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 20px;
  }

  .bio-modal-close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .bio-modal-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3.5rem 1.75rem 1.75rem;
    background: var(--glass-bg-solid);
    border-radius: 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .bio-modal-sidebar {
    width: auto;
    flex-shrink: 0;
    justify-content: flex-start;
  }

  .bio-modal-links {
    flex-direction: row;
    justify-content: center;
  }

  .bio-modal-email-btn,
  .bio-modal-linkedin-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  .bio-modal-body {
    overflow-y: visible;
    max-height: none;
    padding: 1rem 1.25rem;
    flex-shrink: 0;
    min-height: 0;
  }

  .bio-modal-photo {
    width: 160px;
    height: 160px;
  }
}

/* Bio modal small mobile */
@media (max-width: 640px) {
  .bio-modal-overlay {
    padding: 0.75rem;
    padding-top: 1rem;
  }

  .bio-modal {
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 16px;
  }

  .bio-modal-content {
    padding: 2.75rem 1.25rem 1.25rem;
    gap: 1rem;
    overscroll-behavior: contain;
  }

  .bio-modal-photo {
    width: 100px;
    height: 100px;
    border-radius: 16px;
  }

  .bio-modal-sidebar .heading-md {
    font-size: 1.125rem;
  }

  .bio-modal-sidebar .text-sm {
    font-size: 0.8125rem;
  }

  .bio-modal-links {
    flex-direction: row;
    width: 100%;
    gap: 0.375rem;
  }

  .bio-modal-email-btn,
  .bio-modal-linkedin-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .bio-modal-body {
    padding: 0.875rem 1rem;
    border-radius: 12px;
  }

  .bio-modal-body p {
    font-size: 0.875rem;
    line-height: 1.65;
  }
}

/* 7. PRIVACY & CONTENT
   ========================================================= */
.legal-main {
  padding-top: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.legal-main .content-section {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: clamp(20px, 3vw, 28px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.88) 100%);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow-lg);
  position: relative;
}

.legal-main .content-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(0, 102, 204, 0.08) 0%, transparent 55%),
    radial-gradient(120% 80% at 100% 100%, rgba(0, 184, 169, 0.07) 0%, transparent 55%);
  pointer-events: none;
}

.legal-main .content-section>* {
  position: relative;
  z-index: 1;
}

.content-section h1 {
  font-family: 'Lexend', 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.content-section h2 {
  font-family: 'Lexend', 'Inter', sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.95rem);
  font-weight: 600;
  color: var(--slate-900);
  margin-top: 2.6rem;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.content-section h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-top: 1.8rem;
  margin-bottom: 0.65rem;
  line-height: 1.45;
}

.content-section p {
  color: var(--slate-700);
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.content-section ul,
.content-section ol {
  margin-left: 1.25rem;
  margin-bottom: 1.1rem;
  color: var(--slate-700);
  list-style-type: disc;
}

.content-section li {
  margin-bottom: 0.45rem;
  line-height: 1.7;
}

.content-section a {
  color: var(--blue-primary);
  font-weight: 500;
}

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--slate-600);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border-subtle);
}

/* Privacy/Accessibility specific styles */
.privacy-contact-info {
  margin-top: 1.5rem;
}

.privacy-notice-box,
.accessibility-notice-box {
  margin-top: 2rem;
  padding: 1.2rem 1.25rem;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border-subtle);
  border-radius: 14px;
  box-shadow: var(--glass-highlight), 0 8px 20px rgba(0, 52, 103, 0.07);
}

.accessibility-section-margin {
  margin-top: 1rem;
}

.accessibility-contact-margin {
  margin-top: 2rem;
}

/* 8. HEADER — Frosted Glass
   ========================================================= */
#header {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  border-bottom: 1px solid var(--glass-border-subtle);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  transition: box-shadow 240ms var(--ease-smooth), border-color 240ms var(--ease-smooth);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  isolation: isolate;
}

/* Stabilize compositing for glass layers to reduce scroll flicker in Safari/Chromium */
.hero-glass-pill,
.section-glass-pill,
.about-mission-card,
.about-story-card,
.legal-main .content-section,
.card,
.contact-form,
footer {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Fallback for browsers without backdrop-filter */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  #header {
    background: rgba(248, 250, 252, 0.96);
  }

  .hero-glass-pill,
  .section-glass-pill {
    background: rgba(255, 255, 255, 0.85);
  }

  .btn-glass-primary {
    background: linear-gradient(135deg, var(--blue-primary), var(--teal-primary));
  }

  .btn-glass-secondary {
    background: rgba(255, 255, 255, 0.92);
  }

  .capability-item-centered {
    background: rgba(255, 255, 255, 0.92);
  }

  .video-glass-frame {
    background: rgba(255, 255, 255, 0.90);
  }

  .testimonial-glass-card {
    background: rgba(255, 255, 255, 0.95);
  }

  .contact-form {
    background: rgba(255, 255, 255, 0.92);
  }

  #contactForm input[type="text"],
  #contactForm input[type="email"],
  #contactForm textarea,
  #contactForm select,
  form input[type="text"],
  form input[type="email"],
  form textarea,
  form select {
    background: rgba(255, 255, 255, 0.95);
  }

  .card {
    background: rgba(255, 255, 255, 0.95);
  }

  footer {
    background: rgba(15, 42, 68, 0.97);
  }
}

/* Mobile performance: reduce blur intensity for lower-end devices */
@media (max-width: 640px) {
  :root {
    --glass-blur: 12px;
    --glass-blur-heavy: 20px;
  }
}

#header.scrolled {
  background: var(--glass-bg-heavy);
  box-shadow: var(--glass-highlight), var(--glass-shadow-lg);
  border-bottom-color: var(--glass-border);
}

.header-brand-text {
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
}

.nav-link {
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 220ms var(--ease-smooth);
}

.nav-link:hover {
  color: var(--blue-primary);
}

@media (min-width: 1024px) {
  .nav-link {
    font-size: 1.0625rem;
  }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--blue-primary);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 101;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* 9. FOOTER — Frosted Dark Glass
   ========================================================= */
footer {
  background: rgba(15, 42, 68, 0.85);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 -8px 32px rgba(0, 0, 0, 0.12);
}

footer a {
  text-decoration: none;
  transition: color 200ms var(--ease-smooth);
}

.footer-logo {
  filter: brightness(0) invert(1);
}

.footer-brand-text {
  font-size: 1.0625rem;
}

/* 10. 404 ERROR PAGE
   ========================================================= */
.error-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--slate-50) 0%, white 100%);
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-primary), var(--teal-primary), var(--green-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .error-code {
    font-size: 5rem;
  }
}

/* 11. ANIMATIONS & UTILS
   ========================================================= */
.gradient-ascend {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--teal-primary) 50%, var(--green-primary) 100%);
}

.gradient-glow {
  position: relative;
}

.gradient-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--blue-bright), var(--teal-bright), var(--green-bright));
  border-radius: inherit;
  opacity: 0;
  filter: blur(24px);
  transition: opacity 400ms var(--ease-smooth);
  z-index: -1;
}

.gradient-glow:hover::before {
  opacity: 0.5;
}

@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  }

  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .fade-in-delayed {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms var(--ease-out) 200ms, transform 800ms var(--ease-out) 200ms;
  }

  .fade-in-delayed.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .stagger-children>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  }

  .stagger-children.visible>* {
    opacity: 1;
    transform: translateY(0);
  }

  .stagger-children.visible>*:nth-child(1) {
    transition-delay: 100ms;
  }

  .stagger-children.visible>*:nth-child(2) {
    transition-delay: 200ms;
  }

  .stagger-children.visible>*:nth-child(3) {
    transition-delay: 300ms;
  }

  .stagger-children.visible>*:nth-child(4) {
    transition-delay: 400ms;
  }

  .stagger-children.visible>*:nth-child(5) {
    transition-delay: 500ms;
  }

  .stagger-children.visible>*:nth-child(6) {
    transition-delay: 600ms;
  }
}

@media (max-width: 1400px) {
  .brain-container {
    margin-right: 0;
  }

  .container {
    padding: 0 2rem;
  }
}

@media (max-width: 1023px) {
  body {
    padding-top: var(--header-height-mobile);
  }

  .section {
    padding: 4rem 0;
  }

  .hero-section {
    padding-top: 2rem !important;
    padding-bottom: 3rem;
    min-height: auto;
  }

  .hero-orbit-system {
    width: 180px;
    height: 180px;
    margin-bottom: 1.5rem;
  }

  .hero-brain-center img,
  .hero-brain-center svg.hero-brain-svg {
    width: 110px;
    height: 110px;
  }

  .hero-stat-card {
    display: none;
  }

  .hero-orbit-ring--3 {
    display: none;
  }

  h1,
  .heading-hero {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2,
  .heading-lg {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  h3,
  .heading-md {
    font-size: 1.5rem;
  }

  .team-member-card {
    text-align: center;
  }

  .team-member-card img {
    margin-left: auto;
    margin-right: auto;
  }

  .team-member-card .linkedin-link {
    align-self: center;
  }

  .team-member-card .show-more-btn {
    align-self: center;
  }

  .team-card-clickable .show-more-btn {
    align-self: center;
  }

  .legal-main .content-section {
    padding: 2rem 1.25rem;
  }

  .contact-section-box.scroll-active::before {
    opacity: 0.5;
  }


  /* Video responsive adjustments */
  .video-glass-frame {
    padding: 6px;
    border-radius: 20px;
  }

  .video-wrapper {
    border-radius: 16px;
  }

  .video-wrapper iframe {
    border-radius: 16px;
  }

  /* Mobile: Center align mission bullets on about page */
  .lg\:grid-cols-2 .space-y-6 .flex.items-start {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* About page - mission/story layout */
  .about-mission-card {
    padding: 2.25rem 1.5rem;
  }

  .about-mission-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-mission-pillars {
    width: 100%;
  }

  .about-mission-pillar {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
    text-align: center;
    justify-items: center;
  }

  .about-mission-pillar-title,
  .about-mission-pillar-text {
    text-align: center;
  }

  .about-mission-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .about-story-header,
  .solution-header {
    text-align: center;
  }

  .about-story-intro,
  .solution-intro {
    margin-left: auto;
    margin-right: auto;
  }

  .about-story-grid {
    grid-template-columns: 1fr;
  }

  .about-story-card {
    padding: 1.5rem;
    text-align: center;
  }

  .about-story-index {
    margin-left: auto;
    margin-right: auto;
  }

  .about-story-highlight {
    text-align: center;
  }

  .capabilities-flow-centered {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .capability-item-centered {
    padding: 1.5rem;
  }

  .testimonial-item {
    border-left: none;
    border-top: 3px solid rgba(0, 184, 169, 0.2);
    padding-left: 0;
    padding-top: 2rem;
  }

  .testimonial-item:hover {
    border-top-color: var(--teal-primary);
    padding-left: 0;
    padding-top: 2.5rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
  }

  .team-member-centered img {
    max-width: 240px;
  }

  .contact-flow {
    gap: 2rem;
  }

  .contact-form {
    padding: 2rem;
  }

  /* Center mission statement text on mobile */
  .grid.lg\:grid-cols-2 .fade-in:first-child {
    text-align: center;
  }

  /* Mission section features - adjust for mobile */
  .grid.lg\:grid-cols-2 .fade-in .flex.items-start {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  /* Keep feature card text left-aligned on mobile */
  .grid.lg\:grid-cols-2 .card {
    text-align: left;
  }

  /* Testimonial Carousel for Mobile */
  #testimonials .testimonial-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 3rem;
  }

  #testimonials .testimonial-carousel {
    display: flex;
    transition: transform 500ms var(--ease-smooth);
  }

  #testimonials .testimonial-carousel .testimonial-item {
    flex: 0 0 100%;
    margin: 0 !important;
  }

  #testimonials .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  #testimonials .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--slate-300);
    border: none;
    cursor: pointer;
    transition: all 300ms var(--ease-smooth);
    padding: 0;
  }

  #testimonials .carousel-dot.active {
    background: var(--blue-primary);
    width: 24px;
    border-radius: 5px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .contact-form-wrapper {
    padding: 1.25rem 1rem;
    max-width: 100%;
  }

  .contact-form-wrapper .heading-lg {
    font-size: 1.875rem;
    margin-bottom: 0.625rem;
  }

  .contact-form-wrapper .text-lg {
    font-size: 1rem;
    margin-bottom: 0.875rem;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 80px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  h1,
  .heading-hero {
    font-size: 1.75rem;
  }

  .legal-main {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .legal-main .content-section {
    padding: 1.35rem 1rem;
    border-radius: 18px;
  }

  /* Team grid: single column on small mobile */
  .team-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
  }

  .team-member-centered img {
    max-width: 280px;
  }

  /* About page mobile adjustments */
  .about-mission-card {
    padding: 1.75rem 1.25rem;
  }

  .about-mission-title {
    font-size: 1.5rem;
  }

  .about-story-card {
    padding: 1.25rem;
  }

  /* Contact CTA box mobile */
  .contact-section-box {
    padding: 2rem 1.25rem;
    border-radius: 20px;
  }

  .contact-section-box .heading-lg {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .about-story-card p {
    font-size: 0.9375rem;
  }

  .about-story-highlight {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }



  .contact-form-wrapper {
    padding: 1rem 0.875rem;
  }

  .contact-form-wrapper .heading-lg {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .contact-form-wrapper .text-lg {
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
  }

  textarea {
    min-height: 65px;
  }

  #contactForm .grid.gap-2\.5 {
    gap: 0.5rem;
  }

  #contactForm .mb-3\.5 {
    margin-bottom: 0.75rem;
  }

  /* Video mobile optimizations */
  .video-glass-frame {
    padding: 4px;
    border-radius: 16px;
  }

  .video-glass-frame:hover {
    transform: translateY(-3px);
  }

  .video-wrapper {
    border-radius: 12px;
  }

  .video-wrapper iframe {
    border-radius: 12px;
  }

  /* Mobile-specific: stack name fields and district/role fields side by side */
  #contactForm .grid.md\:grid-cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  /* Mobile-specific: reduce padding inside form fields */
  #contactForm input[type="text"],
  #contactForm input[type="email"],
  #contactForm textarea,
  #contactForm select {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    font-size: 0.9375rem;
  }

  #contactForm textarea {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  form input::placeholder,
  form textarea::placeholder {
    font-size: 0.9375rem;
  }

  /* Mobile-specific: reduce button width */
  .contact-section-box .btn-primary,
  .contact-form .btn-primary {
    padding-left: 2rem;
    padding-right: 2rem;
    width: auto;
  }

  /* Mobile-specific: reduce contact form padding */
  .contact-form {
    padding: 1.5rem;
  }

  /* Mobile-specific: ensure contact form gradient still works on scroll/tap */
  .contact-form.scroll-active::before {
    opacity: 0.5;
  }
}


/* =========================================================
   13. PLATFORM FEATURE CARDS — ANIMATED VISUALS
   Inspired by actual product: dot histograms, stacked gain/loss
   bars, evolution charts, accountability status grids.
   ========================================================= */

/* ── Base Layout ─────────────────────────────────────────── */
.platform-card,
.platform-card.capability-item-centered {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.platform-card-visual {
  position: relative;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 350ms var(--ease-smooth), background 350ms var(--ease-smooth);
}

.platform-card:hover .platform-card-visual {
  filter: brightness(1.09);
}

.platform-card-content {
  padding: 1.2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* Tinted visual backgrounds per color variant */
.capability-glass-blue.platform-card .platform-card-visual {
  background: linear-gradient(155deg, rgba(0, 82, 163, .07) 0%, rgba(0, 102, 204, .16) 100%);
}

.capability-glass-teal.platform-card .platform-card-visual {
  background: linear-gradient(155deg, rgba(0, 150, 136, .07) 0%, rgba(0, 184, 169, .16) 100%);
}

.capability-glass-green.platform-card .platform-card-visual {
  background: linear-gradient(155deg, rgba(0, 150, 90, .07) 0%, rgba(0, 229, 160, .16) 100%);
}

.capability-glass-blue.platform-card:hover .platform-card-visual {
  background: linear-gradient(155deg, rgba(0, 82, 163, .11) 0%, rgba(0, 102, 204, .23) 100%);
}

.capability-glass-teal.platform-card:hover .platform-card-visual {
  background: linear-gradient(155deg, rgba(0, 150, 136, .11) 0%, rgba(0, 184, 169, .23) 100%);
}

.capability-glass-green.platform-card:hover .platform-card-visual {
  background: linear-gradient(155deg, rgba(0, 150, 90, .11) 0%, rgba(0, 229, 160, .23) 100%);
}

/* ── Card 1: Growth Tracking — Stacked Gain/Loss Bars ────── */
.anim-growth {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 4px;
  position: relative;
}

.growth-cols {
  position: relative;
  display: flex;
  gap: 22px;
  height: 130px;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 8px;
}

.growth-center-line {
  position: absolute;
  top: 50%;
  left: -10px;
  right: -10px;
  height: 1px;
  background: rgba(0, 102, 204, 0.22);
  z-index: 3;
}

.growth-col {
  display: flex;
  flex-direction: column;
  width: 32px;
  height: 100%;
}

.growth-half-top {
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  /* Removed overflow: hidden to prevent clipping during scale animation */
}

.growth-half-bottom {
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  /* Removed overflow: hidden to prevent clipping during scale animation */
}

.bar-gain {
  width: 26px;
  background: linear-gradient(180deg, #4ade80, #16a34a);
  border-radius: 3px 3px 0 0;
  opacity: .8;
  transform-origin: bottom center;
  animation: barPulse 4s ease-in-out infinite;
}

.bar-loss {
  width: 26px;
  background: linear-gradient(180deg, #f87171, #dc2626);
  border-radius: 0 0 3px 3px;
  opacity: .72;
  transform-origin: top center;
  animation: barPulse 4s ease-in-out infinite;
}

.platform-card:hover .bar-gain,
.platform-card:hover .bar-loss {
  opacity: 1;
  animation-duration: 2.2s;
}

.growth-col:nth-child(2) .bar-gain,
.growth-col:nth-child(2) .bar-loss {
  animation-delay: .65s;
}

.growth-col:nth-child(3) .bar-gain,
.growth-col:nth-child(3) .bar-loss {
  animation-delay: 1.3s;
}

@keyframes barPulse {

  0%,
  100% {
    transform: scaleY(1);
    filter: brightness(1);
  }

  50% {
    transform: scaleY(1.07);
    filter: brightness(1.18);
  }
}

.growth-legend {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.legend-dot.gain {
  background: #22c55e;
}

.legend-dot.loss {
  background: #ef4444;
}

.legend-lbl {
  font-size: 9px;
  color: rgba(15, 23, 42, .38);
  letter-spacing: .25px;
  margin-right: 5px;
}

/* ── Card 2: Accountability Metrics — Status Grid ──────── */
.anim-accountability {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 12px 13px;
}

.status-box {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(0, 184, 169, .14);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 5px;
  gap: 3px;
  position: relative;
  overflow: hidden;
}

.status-lbl {
  font-size: 7px;
  color: rgba(15, 23, 42, .42);
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .1px;
}

.status-yes {
  font-size: 11.5px;
  font-weight: 700;
  color: #16a34a;
  animation: statusGlow 4.4s ease-in-out infinite;
}

.status-box:nth-child(2) .status-yes {
  animation-delay: 1.1s;
}

.status-box:nth-child(3) .status-yes {
  animation-delay: 2.2s;
}

.status-box:nth-child(4) .status-yes {
  animation-delay: 3.3s;
}

.platform-card:hover .status-yes {
  animation-duration: 2.4s;
}

@keyframes statusGlow {

  0%,
  75%,
  100% {
    opacity: .48;
    text-shadow: none;
  }

  38% {
    opacity: 1;
    text-shadow: 0 0 10px rgba(22, 163, 74, .5);
  }
}

.status-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: statusDotPulse 4.4s ease-in-out infinite;
}

.status-box:nth-child(2) .status-dot {
  animation-delay: 1.1s;
}

.status-box:nth-child(3) .status-dot {
  animation-delay: 2.2s;
}

.status-box:nth-child(4) .status-dot {
  animation-delay: 3.3s;
}

@keyframes statusDotPulse {

  0%,
  75%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }

  38% {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
  }
}

/* ── Card 3: Performance Analytics — Dot Histogram ──────── */
.anim-dots {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.dot-hist {
  position: absolute;
  border-radius: 50%;
  animation: dotBob 3.2s ease-in-out infinite;
}

.platform-card:hover .dot-hist {
  animation-duration: 1.9s;
  filter: saturate(1.25) brightness(1.1);
}

@keyframes dotBob {

  0%,
  100% {
    transform: translateY(0);
    opacity: .72;
  }

  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.dot-axis-line {
  position: absolute;
  bottom: 14%;
  left: 5%;
  right: 5%;
  height: 1px;
  background: rgba(0, 160, 100, .18);
}

.dot-benchmark-line {
  position: absolute;
  top: 10%;
  bottom: 14%;
  left: 43%;
  width: 1px;
  background: repeating-linear-gradient(to bottom,
      rgba(0, 160, 100, .22) 0px, rgba(0, 160, 100, .22) 4px,
      transparent 4px, transparent 8px);
}

/* ── Card 4: Impact Analysis — Evolution Chart ──────────── */
.anim-evolution {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 30px 16px;
  position: relative;
}

.evo-gain-zone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 46%;
  top: 14%;
  background: linear-gradient(180deg, transparent, rgba(0, 229, 160, .07));
  pointer-events: none;
}

.evo-prior-line {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 46%;
  height: 1px;
  background: repeating-linear-gradient(to right,
      rgba(0, 102, 204, .32) 0px, rgba(0, 102, 204, .32) 5px,
      transparent 5px, transparent 9px);
}

.evo-prior-lbl {
  position: absolute;
  right: 8%;
  bottom: 49%;
  font-size: 7px;
  color: rgba(0, 102, 204, .40);
  letter-spacing: .2px;
  white-space: nowrap;
}

.evo-bars {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  height: 88px;
  width: 100%;
  justify-content: center;
}

.evo-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 38px;
}

.evo-bar-wrap {
  height: 68px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.evo-bar {
  width: 28px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #fbbf24, #d97706);
  animation: evoPulse 3.8s ease-in-out infinite;
  transform-origin: bottom center;
}

.evo-bar.eb1 {
  height: 40%;
  animation-delay: 0s;
}

.evo-bar.eb2 {
  height: 56%;
  animation-delay: .5s;
}

.platform-card:hover .evo-bar {
  animation-duration: 2.1s;
  filter: brightness(1.12);
}

@keyframes evoPulse {

  0%,
  100% {
    transform: scaleY(1);
    filter: brightness(1);
  }

  50% {
    transform: scaleY(1.05);
    filter: brightness(1.14);
  }
}

.evo-forecast-marker {
  position: absolute;
  bottom: 67%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 102, 204, .10);
  border: 1.5px solid rgba(0, 102, 204, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: forecastPulse 3.8s ease-in-out infinite;
}

.evo-forecast-marker img {
  width: 13px;
  height: 13px;
  opacity: .62;
}

@keyframes forecastPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, .22);
    opacity: .7;
  }

  50% {
    box-shadow: 0 0 0 6px rgba(0, 102, 204, 0);
    opacity: 1;
  }
}

.evo-bar-lbl {
  font-size: 8.5px;
  color: rgba(15, 23, 42, .36);
  font-weight: 500;
  letter-spacing: .25px;
}

/* ── Card 4 replacement: Impact Analysis — Branded Ripple ─ */


.impact-core {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 102, 204, .12);
  border: 1.5px solid rgba(0, 102, 204, .38);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  animation: impactCorePulse 3.8s ease-in-out infinite;
}

.impact-core img {
  width: 19px;
  height: 19px;
  opacity: .65;
}

@keyframes impactCorePulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 102, 204, .18);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 0 12px rgba(0, 102, 204, .22);
  }
}

.impact-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 102, 204, .20);
  animation: impactRipple 3.8s ease-out infinite;
  pointer-events: none;
}

.impact-ripple.ir1 {
  width: 62px;
  height: 62px;
  animation-delay: 0s;
}

.impact-ripple.ir2 {
  width: 94px;
  height: 94px;
  animation-delay: .95s;
}

.impact-ripple.ir3 {
  width: 126px;
  height: 126px;
  animation-delay: 1.9s;
}

@keyframes impactRipple {
  0% {
    opacity: .58;
    transform: scale(.84);
  }

  65% {
    opacity: .14;
  }

  100% {
    opacity: 0;
    transform: scale(1.14);
  }
}

.impact-stat-row {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.impact-stat {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(0, 102, 204, .14);
  border-radius: 6px;
  padding: 3px 10px;
  animation: impactStatGlow 3.8s ease-in-out infinite;
}

.impact-stat.is2 {
  animation-delay: 1.9s;
}

.impact-val {
  font-size: 10px;
  font-weight: 700;
  color: rgba(0, 102, 204, .68);
  letter-spacing: .2px;
}

@keyframes impactStatGlow {

  0%,
  70%,
  100% {
    opacity: .38;
  }

  35% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(0, 102, 204, .12);
  }
}

.platform-card:hover .impact-core {
  animation-duration: 2.1s;
}

.platform-card:hover .impact-ripple {
  animation-duration: 2.1s;
}

.platform-card:hover .impact-stat {
  animation-duration: 2.1s;
}

/* ── Card 5: Standards Insight — AI Text Scanner ───────── */
.anim-scanner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 24px;
  position: relative;
  gap: 10px;
}

.scanner-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 184, 169, .13);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.scanner-line::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 65%;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 184, 169, .55) 50%, transparent 100%);
  animation: scanPass 3.5s ease-in-out infinite;
}

.scanner-line.sl1 {
  width: 88%;
}

.scanner-line.sl2 {
  width: 100%;
}

.scanner-line.sl3 {
  width: 72%;
}

.scanner-line.sl4 {
  width: 92%;
}

.scanner-line.sl5 {
  width: 58%;
}

.scanner-line.sl1::after {
  animation-delay: 0s;
}

.scanner-line.sl2::after {
  animation-delay: .4s;
}

.scanner-line.sl3::after {
  animation-delay: .8s;
}

.scanner-line.sl4::after {
  animation-delay: 1.2s;
}

.scanner-line.sl5::after {
  animation-delay: 1.6s;
}

.platform-card:hover .scanner-line::after {
  animation-duration: 2s;
}

@keyframes scanPass {
  0% {
    left: -80%;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  95% {
    opacity: 1;
  }

  100% {
    left: 110%;
    opacity: 0;
  }
}

.scanner-tags {
  display: flex;
  gap: 6px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.scanner-tag {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(0, 184, 169, .10);
  color: rgba(0, 184, 169, .70);
  animation: tagFade 3.5s ease-in-out infinite;
}

.scanner-tag:nth-child(2) {
  animation-delay: 1.17s;
}

.scanner-tag:nth-child(3) {
  animation-delay: 2.33s;
}

@keyframes tagFade {

  0%,
  68%,
  100% {
    opacity: .38;
  }

  34% {
    opacity: 1;
  }
}

/* ── Card 6: Role-Based AI Assistants — Chat Interface ─── */
.anim-chat {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px 14px 10px;
  gap: 5px;
  position: relative;
}

.chat-header {
  position: absolute;
  top: 10px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-header-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 229, 160, .13);
  border: 1px solid rgba(0, 229, 160, .28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-header-icon img {
  width: 12px;
  height: 12px;
  opacity: .7;
}

.chat-header-lbl {
  font-size: 8px;
  font-weight: 600;
  color: rgba(0, 185, 128, .65);
  letter-spacing: .4px;
}

.chat-bubble {
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 8px;
  line-height: 1.45;
  font-weight: 500;
  max-width: 84%;
}

.chat-user {
  background: rgba(0, 102, 204, .09);
  color: rgba(15, 23, 42, .52);
  border: 1px solid rgba(0, 102, 204, .14);
  border-radius: 8px 8px 2px 8px;
  align-self: flex-end;
  animation: chatFade 5.5s ease-in-out infinite;
}

.chat-typing-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 9px;
  background: rgba(0, 229, 160, .07);
  border: 1px solid rgba(0, 229, 160, .16);
  border-radius: 8px 8px 8px 2px;
  max-width: 50px;
  align-self: flex-start;
  animation: chatFade 5.5s ease-in-out infinite;
  animation-delay: 1.7s;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 229, 160, .65);
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: .18s;
}

.typing-dot:nth-child(3) {
  animation-delay: .36s;
}

@keyframes typingBounce {

  0%,
  55%,
  100% {
    transform: translateY(0);
    opacity: .38;
  }

  28% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chat-response {
  background: rgba(0, 229, 160, .09);
  color: rgba(15, 23, 42, .52);
  border: 1px solid rgba(0, 229, 160, .18);
  border-radius: 8px 8px 8px 2px;
  align-self: flex-start;
  animation: chatFade 5.5s ease-in-out infinite;
  animation-delay: .85s;
}

@keyframes chatFade {

  0%,
  100% {
    opacity: .3;
  }

  18%,
  82% {
    opacity: .88;
  }
}

.platform-card:hover .chat-user,
.platform-card:hover .chat-response,
.platform-card:hover .chat-typing-wrap {
  animation-duration: 3.2s;
}

.platform-card:hover .typing-dot {
  animation-duration: .9s;
}

/* ── Card 1 replacement: Growth Tracking — Ascending Trend Bars ── */
.anim-trend {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 28px 18px;
  position: relative;
}

.trend-bars {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  height: 100px;
  width: 100%;
  justify-content: center;
}



.trend-bar:nth-child(odd) {
  background: linear-gradient(180deg, rgba(0, 184, 169, .85), rgba(0, 150, 136, .85));
}

.trend-bar:nth-child(even) {
  background: linear-gradient(180deg, rgba(0, 102, 204, .75), rgba(0, 80, 160, .75));
}

.trend-bar:nth-child(2) {
  animation-delay: .4s;
}

.trend-bar:nth-child(3) {
  animation-delay: .8s;
}

.trend-bar:nth-child(4) {
  animation-delay: 1.2s;
}

.trend-bar:nth-child(5) {
  animation-delay: 1.6s;
}

@keyframes trendPulse {

  0%,
  100% {
    transform: scaleY(1);
    opacity: .72;
  }

  50% {
    transform: scaleY(1.07);
    opacity: 1;
  }
}

.trend-axis {
  width: 100%;
  height: 1px;
  background: rgba(0, 102, 204, .15);
  flex-shrink: 0;
}

.platform-card:hover

/* ── Card 2 replacement: Accountability — Metric Score Chips ──── */
.anim-metrics {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 13px;
}

.metric-chip {
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(0, 184, 169, .15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: chipGlow 4.8s ease-in-out infinite;
}

.metric-chip:nth-child(2) {
  animation-delay: 1.2s;
}

.metric-chip:nth-child(3) {
  animation-delay: 2.4s;
}

.metric-chip:nth-child(4) {
  animation-delay: 3.6s;
}

.metric-score {
  font-size: 22px;
  font-weight: 700;
  color: rgba(0, 184, 169, .72);
  letter-spacing: -0.5px;
}

@keyframes chipGlow {

  0%,
  75%,
  100% {
    opacity: .45;
    box-shadow: none;
  }

  38% {
    opacity: 1;
    box-shadow: 0 0 16px rgba(0, 184, 169, .14);
  }
}

.platform-card:hover .metric-chip {
  animation-duration: 2.6s;
}

/* ── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .platform-card .platform-card-visual * {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   12. PHASE 2 — GSAP ENHANCEMENT LAYER
   New tokens, glass-card, gradient-bg-subtle, animate-on-scroll,
   footer divider, and reduced-motion overrides for all new additions.
   ========================================================= */

/* 12a. Extended Brand Tokens -------------------------------------------- */
:root {
  --ascend-teal: #0D9488;
  --ascend-teal-light: #14B8A6;
  --ascend-blue: #1E3A5F;
  --ascend-blue-deep: #0F2439;
  --ascend-gradient: linear-gradient(135deg, #0D9488, #1E3A5F);
  --ascend-gradient-light: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(30, 58, 95, 0.06));
  --ascend-glass-bg: rgba(255, 255, 255, 0.55);
  --ascend-glass-border: rgba(255, 255, 255, 0.3);
  --ascend-glass-shadow: 0 8px 32px rgba(13, 148, 136, 0.06);
}

/* 12b. Generic Glass Card ----------------------------------------------- */
/* Additive class — layers glass treatment onto any element. */
.glass-card {
  background: var(--ascend-glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--ascend-glass-border);
  border-radius: 16px;
  box-shadow: var(--ascend-glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  box-shadow:
    0 16px 48px rgba(13, 148, 136, 0.12),
    0 4px 16px rgba(30, 58, 95, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: rgba(13, 148, 136, 0.2);
}

/* Extra padding when glass-card is applied to a team member card
   (team-member-centered has no intrinsic padding) */
.team-member-centered.glass-card {
  padding: 1.5rem;
}

/* 12c. Ambient Section Gradient ----------------------------------------- */
/* Single viewport-fixed gradient layer applied to <main> — avoids any
   ::before/::after conflict with section fade transitions, and creates
   one continuous, seamless ambient glow across all sections as you scroll. */
.gradient-bg-subtle::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 40%, rgba(13, 148, 136, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 60%, rgba(30, 58, 95, 0.06) 0%, transparent 55%);
  /* Removed continuous animation — animating a full-viewport fixed layer
     every frame causes compositing flicker during scroll.  */
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
}

/* 12d. Scroll-Triggered Fade/Slide Initial State ----------------------- */
/* GSAP will transition these from hidden → visible via ScrollTrigger.
   Only hide them when the user accepts motion; otherwise show immediately. */
@media (prefers-reduced-motion: no-preference) {
  .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* 12e. Footer Glass Divider --------------------------------------------- */
.footer-glass-divider {
  height: 1px;
  background: linear-gradient(to right,
      transparent,
      rgba(13, 148, 136, 0.3),
      rgba(30, 58, 95, 0.3),
      transparent);
  max-width: 800px;
  margin: 0 auto;
}

/* 12f. Reduced Motion — New Additions ----------------------------------- */
@media (prefers-reduced-motion: reduce) {

  /* Ensure GSAP-targeted elements are always visible */
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Ambient section gradient is now static — no animation to disable */

  /* glass-card transform is GSAP-controlled — GSAP already bails on reduced-motion */
}

/* ══════════════════════════════════════════════════════════
   § 14 — STORY CARDS  (Problem + Solution Unified Pattern)
   Mirrors platform-card pattern for #why and #how-it-works.
   ══════════════════════════════════════════════════════════ */

/* 3-column fixed grid — intentional left-to-right narrative */
.section-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Content panel beneath platform-card-visual */
.story-card-content {
  padding: 1.2rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

/* Numbered / stage kicker badge */
.story-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.story-kicker--blue {
  color: rgba(0, 102, 204, 0.72);
}

.story-kicker--teal {
  color: rgba(0, 150, 136, 0.72);
}

.story-kicker--navy {
  color: rgba(0, 52, 140, 0.76);
}

.story-kicker--green {
  color: rgba(0, 150, 90, 0.76);
}

/* Impact note pill — problem cards */
.story-impact {
  margin-top: 0.15rem;
  font-size: 0.79rem;
  color: rgba(15, 23, 42, 0.62);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.72);
  padding: 0.38rem 0.6rem;
  border-radius: 10px;
  line-height: 1.45;
}

/* Before / After stacked pair — solution cards */
.solution-before-after {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

/* Override flex-centering so fill animations cover the full visual area */
.problem-card .platform-card-visual,
.solution-card .platform-card-visual {
  display: block;
}

/* IQ logo absolutely centered inside block visual */
.iq-logo-centered {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Hover accelerate on story cards — mirrors platform-card behaviour */
.problem-card:hover .platform-card-visual,
.solution-card:hover .platform-card-visual {
  filter: brightness(1.09);
}

/* Responsive — stack to single column on tablet / mobile */
@media (max-width: 880px) {
  .section-story-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Reduced motion — pause all story-card visual animations */
@media (prefers-reduced-motion: reduce) {

  .problem-card .platform-card-visual *,
  .solution-card .platform-card-visual * {
    animation: none !important;
    transition: none !important;
  }
}

/* ══════════════════════════════════════════════════════════
   § 15 — CINEMATIC PROBLEM SECTION (#why)
   Three full-width glass panels: visual-left, visual-right, dark accent
   ══════════════════════════════════════════════════════════ */

.cin-why-section {
  overflow: visible;
}

.cin-problem-stack {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Base panel */
.cin-panel {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: var(--glass-bg-heavy);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow-lg);
  display: grid;
  min-height: 380px;
  transition: box-shadow 360ms var(--ease-smooth);
}

.cin-panel:hover {
  box-shadow: var(--glass-highlight), var(--glass-shadow-lg), 0 24px 64px rgba(0, 52, 103, 0.1);
}

.cin-panel--left {
  grid-template-columns: 55fr 45fr;
}

.cin-panel--right {
  grid-template-columns: 45fr 55fr;
}

.cin-panel--accent {
  grid-template-columns: 50fr 50fr;
}

/* Visual area */
.cin-visual {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cin-visual--blue {
  background: linear-gradient(155deg, rgba(0, 82, 163, .09) 0%, rgba(0, 102, 204, .18) 100%);
}

.cin-visual--teal {
  background: linear-gradient(155deg, rgba(0, 150, 136, .09) 0%, rgba(0, 184, 169, .18) 100%);
}

/* Text content area */
.cin-copy {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cin-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.cin-kicker--blue {
  color: rgba(0, 102, 204, 0.85);
}

.cin-kicker--teal {
  color: rgba(0, 150, 136, 0.85);
}

.cin-kicker--green {
  color: rgba(0, 184, 130, 0.85);
}

.cin-stat-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.cin-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  max-width: 280px;
}

.cin-stat--teal {
  background: rgba(0, 184, 169, 0.08);
  border-color: rgba(0, 184, 169, 0.2);
}

.cin-stat--white {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.cin-stat-n {
  font-family: 'Lexend', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.cin-stat--teal .cin-stat-n {
  color: var(--teal-primary);
}

.cin-stat-txt {
  font-size: 0.78rem;
  color: var(--slate-600);
  line-height: 1.45;
}

/* Accent visual — green variant */
.cin-visual--green {
  background: linear-gradient(155deg, rgba(0, 184, 130, .09) 0%, rgba(0, 229, 160, .18) 100%);
}

/* ── Panel 1: Fragmented Systems animation ── */
/* ── Panel 1: Scattered Data Silos — floating disconnected nodes ── */
.cin-silo-anim {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cin-silo-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cin-silo-dash {
  stroke-dashoffset: 0;
  animation: cinSiloDash 6s linear infinite;
}

.cin-silo-dash--1 {
  animation-delay: 0s;
}

.cin-silo-dash--2 {
  animation-delay: 2s;
}

.cin-silo-dash--3 {
  animation-delay: 4s;
}

@keyframes cinSiloDash {
  0% {
    stroke-dashoffset: 0;
    opacity: 0.25;
  }

  50% {
    stroke-dashoffset: 24;
    opacity: 0.08;
  }

  100% {
    stroke-dashoffset: 48;
    opacity: 0.25;
  }
}

.cin-silo-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--slate-700);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 102, 204, 0.15);
  box-shadow: 0 2px 12px rgba(0, 52, 103, 0.08);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.cin-silo-icon {
  font-family: system-ui;
  font-size: 0.55rem;
  opacity: 0.4;
}

.cin-silo-n1 {
  top: 12%;
  left: 18%;
  animation: cinSiloFloat1 7s ease-in-out infinite;
}

.cin-silo-n2 {
  top: 10%;
  right: 15%;
  animation: cinSiloFloat2 8s ease-in-out infinite;
}

.cin-silo-n3 {
  top: 45%;
  left: 8%;
  animation: cinSiloFloat3 9s ease-in-out infinite;
}

.cin-silo-n4 {
  top: 42%;
  right: 10%;
  animation: cinSiloFloat4 7.5s ease-in-out infinite;
}

.cin-silo-n5 {
  bottom: 16%;
  left: 30%;
  animation: cinSiloFloat5 8.5s ease-in-out infinite;
}

@keyframes cinSiloFloat1 {

  0%,
  100% {
    transform: translate(0, 0)
  }

  33% {
    transform: translate(8px, -6px)
  }

  66% {
    transform: translate(-5px, 4px)
  }
}

@keyframes cinSiloFloat2 {

  0%,
  100% {
    transform: translate(0, 0)
  }

  25% {
    transform: translate(-10px, 5px)
  }

  75% {
    transform: translate(6px, -8px)
  }
}

@keyframes cinSiloFloat3 {

  0%,
  100% {
    transform: translate(0, 0)
  }

  40% {
    transform: translate(12px, 6px)
  }

  80% {
    transform: translate(-4px, -10px)
  }
}

@keyframes cinSiloFloat4 {

  0%,
  100% {
    transform: translate(0, 0)
  }

  50% {
    transform: translate(-8px, -7px)
  }
}

@keyframes cinSiloFloat5 {

  0%,
  100% {
    transform: translate(0, 0)
  }

  35% {
    transform: translate(6px, -9px)
  }

  70% {
    transform: translate(-10px, 3px)
  }
}

.cin-silo-alert {
  position: absolute;
  bottom: 8%;
  right: 12%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(239, 68, 68, 0.8);
  animation: cinSiloAlertPulse 3s ease-in-out infinite;
}

.cin-silo-alert svg {
  width: 14px;
  height: 14px;
  stroke: rgba(239, 68, 68, 0.7);
}

@keyframes cinSiloAlertPulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* ── Panel 2: Decision Bottleneck — funnel with data particles ── */
.cin-bottleneck-anim {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cin-bn-funnel {
  position: relative;
  width: 180px;
  height: 240px;
}

.cin-bn-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 184, 169, 0.5);
  box-shadow: 0 0 6px rgba(0, 184, 169, 0.3);
}

.cin-bn-p1 {
  top: 8%;
  left: 20%;
  animation: cinBnFloat 5s ease-in-out infinite 0s;
  background: rgba(0, 102, 204, 0.5);
}

.cin-bn-p2 {
  top: 5%;
  left: 55%;
  animation: cinBnFloat 5s ease-in-out infinite 0.7s;
  background: rgba(0, 184, 169, 0.5);
}

.cin-bn-p3 {
  top: 12%;
  left: 75%;
  animation: cinBnFloat 5s ease-in-out infinite 1.4s;
  background: rgba(0, 102, 204, 0.45);
}

.cin-bn-p4 {
  top: 15%;
  left: 35%;
  animation: cinBnFloat 5s ease-in-out infinite 2.1s;
  background: rgba(0, 229, 160, 0.5);
}

.cin-bn-p5 {
  top: 3%;
  left: 10%;
  animation: cinBnFloat 5s ease-in-out infinite 2.8s;
  width: 6px;
  height: 6px;
}

.cin-bn-p6 {
  top: 18%;
  left: 60%;
  animation: cinBnFloat 5s ease-in-out infinite 3.5s;
  width: 6px;
  height: 6px;
}

.cin-bn-p7 {
  top: 8%;
  left: 85%;
  animation: cinBnFloat 5s ease-in-out infinite 4.2s;
  width: 5px;
  height: 5px;
}

.cin-bn-p8 {
  top: 20%;
  left: 45%;
  animation: cinBnFloat 5s ease-in-out infinite 1.0s;
  width: 7px;
  height: 7px;
  background: rgba(0, 102, 204, 0.4);
}

@keyframes cinBnFloat {
  0% {
    transform: translateY(0);
    opacity: 0.7;
  }

  40% {
    transform: translateY(80px) translateX(-10px);
    opacity: 0.5;
  }

  60% {
    transform: translateY(100px) translateX(0);
    opacity: 0.3;
  }

  80% {
    transform: translateY(100px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

.cin-bn-neck {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 60px;
  background: linear-gradient(180deg, rgba(0, 184, 169, 0.2), rgba(0, 184, 169, 0.05));
  border-radius: 2px;
}

.cin-bn-drip {
  position: absolute;
  bottom: 15%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 184, 169, 0.6);
  transform: translateX(-50%);
  animation: cinBnDrip 4s ease-in infinite;
}

.cin-bn-drip-1 {
  animation-delay: 0s;
}

.cin-bn-drip-2 {
  animation-delay: 2s;
}

@keyframes cinBnDrip {
  0% {
    top: 68%;
    opacity: 0.8;
  }

  50% {
    top: 82%;
    opacity: 0.4;
  }

  100% {
    top: 92%;
    opacity: 0;
  }
}

.cin-bn-labels {
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 0;
}

.cin-bn-tag {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
}

.cin-bn-tag--top {
  color: var(--teal-primary);
  background: rgba(0, 184, 169, 0.08);
}

.cin-bn-tag--mid {
  color: rgba(249, 115, 22, 0.85);
  background: rgba(249, 115, 22, 0.08);
  animation: cinBnMidPulse 3s ease-in-out infinite;
}

.cin-bn-tag--bot {
  color: var(--slate-500);
  background: rgba(0, 52, 103, 0.05);
}

@keyframes cinBnMidPulse {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

.cin-bn-deadline {
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cin-bn-deadline-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(239, 68, 68, 0.4), transparent);
  animation: cinBnDeadlinePulse 2.5s ease-in-out infinite;
}

.cin-bn-deadline-label {
  position: absolute;
  bottom: 6%;
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(239, 68, 68, 0.7);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes cinBnDeadlinePulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* ── Panel 3: Stakes Keep Rising — accountability status rows ── */
.cin-stakes-anim {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: auto;
  padding: 1.5rem 0;
}

.cin-stakes-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cin-stakes-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--slate-600);
  width: 90px;
  flex-shrink: 0;
}

.cin-stakes-bar-wrap {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 52, 103, 0.08);
  overflow: hidden;
}

.cin-stakes-bar {
  height: 100%;
  border-radius: inherit;
  animation: cinStakesPulse 4.5s ease-in-out infinite;
}

.cin-stakes-bar--1 {
  width: 68%;
  background: linear-gradient(90deg, rgba(250, 189, 0, 0.65), rgba(250, 189, 0, 0.9));
  animation-delay: 0s;
}

.cin-stakes-bar--2 {
  width: 82%;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.65), rgba(249, 115, 22, 0.9));
  animation-delay: 0.6s;
}

.cin-stakes-bar--3 {
  width: 95%;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.65), rgba(239, 68, 68, 0.95));
  animation-delay: 1.2s;
}

.cin-stakes-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.cin-stakes-badge--warn {
  color: rgba(250, 189, 0, 0.95);
  background: rgba(250, 189, 0, 0.15);
  border: 1px solid rgba(250, 189, 0, 0.28);
}

.cin-stakes-badge--crit {
  color: rgba(239, 68, 68, 0.95);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  animation: cinCritPulse 2s ease-in-out infinite;
}

@keyframes cinStakesPulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

@keyframes cinCritPulse {

  0%,
  100% {
    opacity: 0.85;
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
  }
}

.cin-gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
}

.cin-gauge-labels span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.cin-pressure-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.cin-ptag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  animation: cinPTagFloat 4s ease-in-out infinite;
}

.cin-ptag:nth-child(2) {
  animation-delay: 0.5s;
}

.cin-ptag:nth-child(3) {
  animation-delay: 1s;
}

.cin-ptag:nth-child(4) {
  animation-delay: 1.5s;
}

@keyframes cinGaugeDrift {

  0%,
  100% {
    left: 28%;
  }

  60% {
    left: 82%;
  }

  80% {
    left: 76%;
  }
}

@keyframes cinGaugePulseRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0;
  }
}

@keyframes cinPTagFloat {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.75;
  }

  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Responsive — stack on mobile */
@media (max-width: 768px) {

  .cin-problem-stack {
    padding: 0 1rem;
    gap: 1.25rem;
  }

  .cin-panel {
    min-height: auto;
    border-radius: 18px;
  }

  .cin-panel:hover {
    transform: none;
  }

  .cin-panel--left,
  .cin-panel--right {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  /* On mobile, always show copy first, then visual */
  .cin-visual {
    order: 2;
    min-height: auto;
    padding: 1rem 1.25rem 1.25rem;
  }

  .cin-copy {
    order: 1;
    padding: 1.5rem 1.25rem 0.75rem;
  }

  /* Scale dashboards to fit mobile width */
  .pv-scattered-dash,
  .pv-queue-dash,
  .pv-pressure-dash {
    max-width: 100%;
    transform: scale(0.92);
    transform-origin: top center;
  }
}

/* ══════════════════════════════════════════════════════════
   § 15b — NEW PROBLEM VISUALS (Dashboard-style mini-UIs)
   Three mini-dashboard previews matching the product section's aesthetic
   ══════════════════════════════════════════════════════════ */

/* ── Shared dashboard card base ── */
.pv-scattered-dash,
.pv-queue-dash,
.pv-pressure-dash {
  width: 100%;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 52, 103, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Panel 1: Scattered Export Cards ── */
.pv-scattered-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.pv-scattered-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: 0.03em;
}

.pv-scattered-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(239, 68, 68, 0.9);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  animation: pvBadgePulse 2.5s ease-in-out infinite;
}

@keyframes pvBadgePulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
  }
}

.pv-scattered-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pv-export-card {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 102, 204, 0.08);
  border-radius: 10px;
  overflow: hidden;
  animation: pvCardFloat 6s ease-in-out infinite;
}

.pv-ec--1 {
  animation-delay: 0s;
}

.pv-ec--2 {
  animation-delay: 1.2s;
}

.pv-ec--3 {
  animation-delay: 2.4s;
}

.pv-ec--4 {
  animation-delay: 0.6s;
}

.pv-ec--5 {
  animation-delay: 1.8s;
}

@keyframes pvCardFloat {

  0%,
  100% {
    transform: translateX(0);
  }

  30% {
    transform: translateX(3px);
  }

  70% {
    transform: translateX(-2px);
  }
}

.pv-ec-accent {
  width: 4px;
  height: 100%;
  min-height: 36px;
  flex-shrink: 0;
}

.pv-ec-accent--blue {
  background: var(--blue-primary);
}

.pv-ec-accent--teal {
  background: var(--teal-primary);
}

.pv-ec-accent--green {
  background: var(--green-primary);
}

.pv-ec-accent--orange {
  background: #f97316;
}

.pv-ec-accent--purple {
  background: #8b5cf6;
}

.pv-ec-body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  flex: 1;
}

.pv-ec-icon {
  width: 16px;
  height: 16px;
  color: var(--slate-400);
  flex-shrink: 0;
}

.pv-ec-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-700);
}

.pv-ec-x {
  margin-left: auto;
  margin-right: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(239, 68, 68, 0.55);
  animation: pvXPulse 3s ease-in-out infinite;
}

@keyframes pvXPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.9;
  }
}

.pv-scattered-alert {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(239, 68, 68, 0.75);
  justify-content: center;
}

.pv-scattered-alert svg {
  stroke: rgba(239, 68, 68, 0.65);
}

/* ── Panel 2: Stalled Analysis Queue ── */
.pv-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(0, 184, 169, 0.12);
}

.pv-queue-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal-primary);
  letter-spacing: 0.03em;
}

.pv-queue-overdue {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(249, 115, 22, 0.95);
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  animation: pvOverduePulse 2.5s ease-in-out infinite;
}

@keyframes pvOverduePulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.15);
  }
}

.pv-queue-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pv-queue-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  border: 1px solid rgba(0, 184, 169, 0.06);
}

.pv-queue-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pv-queue-dot--red {
  background: rgba(239, 68, 68, 0.7);
}

.pv-queue-dot--orange {
  background: rgba(249, 115, 22, 0.7);
}

.pv-queue-dot--gray {
  background: rgba(148, 163, 184, 0.5);
}

.pv-queue-label {
  font-size: 0.68rem;
  color: var(--slate-600);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv-queue-bar-wrap {
  width: 50px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 52, 103, 0.06);
  overflow: hidden;
  flex-shrink: 0;
}

.pv-queue-bar {
  height: 100%;
  border-radius: inherit;
}

.pv-qb--stuck {
  width: 30%;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.6), rgba(239, 68, 68, 0.85));
  animation: pvQueueStuck 3s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes pvQueueStuck {

  0%,
  100% {
    transform: scaleX(0.93);
  }

  50% {
    transform: scaleX(1.1);
  }
}

.pv-qb--slow {
  width: 15%;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.55), rgba(249, 115, 22, 0.8));
  animation: pvQueueSlow 4s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes pvQueueSlow {

  0%,
  100% {
    transform: scaleX(0.8);
  }

  50% {
    transform: scaleX(1.33);
  }
}

.pv-qb--waiting {
  width: 0%;
  background: rgba(148, 163, 184, 0.3);
}

.pv-queue-tag {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

.pv-qt--red {
  color: rgba(239, 68, 68, 0.95);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.pv-qt--orange {
  color: rgba(249, 115, 22, 0.9);
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.pv-qt--gray {
  color: var(--slate-400);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.pv-queue-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(0, 184, 169, 0.1);
  font-size: 0.62rem;
  color: rgba(239, 68, 68, 0.72);
  font-weight: 600;
}

.pv-queue-footer strong {
  color: rgba(239, 68, 68, 0.95);
}

.pv-queue-clock {
  width: 14px;
  height: 14px;
  stroke: rgba(239, 68, 68, 0.6);
  animation: pvClockPulse 2s ease-in-out infinite;
}

@keyframes pvClockPulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* ── Panel 3: Critical Metrics Pressure Dashboard ── */
.pv-pressure-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(0, 229, 160, 0.12);
}

.pv-pressure-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(0, 150, 90, 0.85);
  letter-spacing: 0.03em;
}

.pv-pressure-crit {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(239, 68, 68, 0.95);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  animation: pvBadgePulse 2.5s ease-in-out infinite;
}

.pv-pressure-cards {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pv-pressure-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.pv-pressure-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.pv-pressure-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--slate-600);
}

.pv-pressure-badge {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.pv-pb--warn {
  color: rgba(250, 189, 0, 0.95);
  background: rgba(250, 189, 0, 0.12);
  border: 1px solid rgba(250, 189, 0, 0.28);
}

.pv-pb--crit {
  color: rgba(239, 68, 68, 0.95);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  animation: pvCritPulse 2s ease-in-out infinite;
}

@keyframes pvCritPulse {

  0%,
  100% {
    opacity: 0.85;
  }

  50% {
    opacity: 1;
  }
}

.pv-pressure-bar-wrap {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 52, 103, 0.06);
  overflow: hidden;
}

.pv-pressure-bar {
  height: 100%;
  border-radius: inherit;
  animation: pvBarPulse 4.5s ease-in-out infinite;
}

.pv-pbar--1 {
  width: 68%;
  background: linear-gradient(90deg, rgba(250, 189, 0, 0.5), rgba(250, 189, 0, 0.85));
}

.pv-pbar--2 {
  width: 82%;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.5), rgba(249, 115, 22, 0.85));
  animation-delay: 0.6s;
}

.pv-pbar--3 {
  width: 95%;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.5), rgba(239, 68, 68, 0.9));
  animation-delay: 1.2s;
}

@keyframes pvBarPulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

/* ── Reduced motion for new problem visuals ── */
@media (prefers-reduced-motion: reduce) {

  .pv-export-card,
  .pv-ec-x,
  .pv-scattered-badge,
  .pv-queue-overdue,
  .pv-queue-clock,
  .pv-pressure-crit,
  .pv-pressure-bar,
  .pv-pb--crit,
  .pv-qb--stuck,
  .pv-qb--slow {
    animation: none !important;
  }
}

/* ══════════════════════════════════════════════════════════
   § 16 — CINEMATIC SOLUTION SECTION (#how-it-works)
   Sticky scrollytelling: left step rail + right display panel
   ══════════════════════════════════════════════════════════ */

.cin-solution-section {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 0;
}

/* Sticky scene — GSAP pins this on desktop */
.cin-sticky-scene {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
  position: relative;
}

/* ── Left rail: step navigation ── */
.cin-step-rail {
  display: flex;
  flex-direction: column;
  position: relative;
}

.cin-step-item {
  position: relative;
  padding: 1.5rem 1.75rem;
  border-radius: 18px;
  transition: all 400ms var(--ease-smooth);
  overflow: hidden;
}

.cin-step-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-bg-heavy);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid transparent;
  opacity: 0;
  transition: opacity 400ms var(--ease-smooth), border-color 400ms var(--ease-smooth);
}

.cin-step-item.cin-step--active::before {
  opacity: 1;
  border-color: var(--glass-border);
}

.cin-step-number {
  font-family: 'Lexend', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(15, 23, 42, 0.3);
  transition: color 400ms;
  margin-bottom: 0.25rem;
  position: relative;
}

.cin-step-item.cin-step--active .cin-step-number {
  color: var(--blue-primary);
}

.cin-step-body {
  position: relative;
  opacity: 0.35;
  transform: translateX(-5px);
  transition: opacity 360ms var(--ease-smooth), transform 360ms var(--ease-smooth);
}

.cin-step-item.cin-step--active .cin-step-body {
  opacity: 1;
  transform: translateX(0);
}

.cin-step-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-primary);
  margin-bottom: 0.4rem;
}

.cin-step-title {
  font-family: 'Lexend', 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.cin-step-desc {
  font-size: 1rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.cin-step-shift {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: var(--glass-bg-medium);
  border: 1px solid var(--glass-border);
}

:root[data-theme="dark"] .cin-step-shift {
  background: var(--glass-bg-heavy);
  border-color: rgba(68, 89, 132, 0.35);
}

.cin-shift-before {
  font-size: 0.76rem;
  color: var(--slate-500);
  line-height: 1.4;
}

:root[data-theme="dark"] .cin-shift-before {
  color: rgba(148, 163, 184, 0.8);
}

.cin-shift-after {
  font-size: 0.76rem;
  color: var(--teal-primary);
  font-weight: 600;
  line-height: 1.4;
}

/* Connector line between steps */
.cin-step-connector {
  width: 2px;
  height: 22px;
  margin: 0 0 0 2.25rem;
  position: relative;
  overflow: hidden;
}

.cin-step-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 184, 169, 0.45), rgba(0, 102, 204, 0.18));
  border-radius: 999px;
}

/* ── Right panel display ── */
.cin-panel-display {
  display: grid;
  align-items: stretch;
  align-self: center;
  position: relative;
}

.cin-display-panel {
  grid-area: 1 / 1;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 340ms var(--ease-smooth), transform 340ms var(--ease-smooth);
  pointer-events: none;
  will-change: opacity, transform;
}

.cin-display-panel.cin-display--active {
  z-index: 1;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cin-display-glass {
  height: 100%;
  border-radius: 24px;
  background: var(--glass-bg-heavy);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.cin-display-glass--teal {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-color: rgba(0, 184, 169, 0.22);
}

.cin-display-glass--green {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-color: rgba(0, 229, 160, 0.22);
}

.cin-display-kicker {
  padding: 1.1rem 1.5rem 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 102, 204, 0.75);
}

.cin-display-kicker--teal {
  color: rgba(0, 150, 136, 0.82);
}

.cin-display-kicker--green {
  color: rgba(0, 150, 90, 0.82);
}

.cin-display-visual {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem 1.5rem;
}

.cin-display-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 169, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cin-display-glass--green .cin-display-visual::before {
  background: radial-gradient(circle, rgba(0, 229, 160, 0.06) 0%, transparent 70%);
}

/* Progress dots */
.cin-progress-track {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 10;
}

.cin-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 102, 204, 0.18);
  transition: all 320ms var(--ease-smooth);
}

.cin-progress-dot.cin-prog--active {
  background: var(--blue-primary);
  transform: scale(1.35);
}

/* ── Stage 01: Data Inputs checklist animation ── */
.cin-inputs-anim {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: rgba(0, 102, 204, 0.05);
  border: 1px solid rgba(0, 102, 204, 0.18);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  overflow: hidden;
}

.cin-inputs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 102, 204, 0.12);
}

.cin-inputs-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-primary);
}

.cin-inputs-status {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(34, 197, 94, 0.9);
  background: rgba(34, 197, 94, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.cin-inputs-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cin-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  border: 1px solid rgba(0, 102, 204, 0.09);
}

.cin-input-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cin-input-dot--blue {
  background: rgba(0, 102, 204, 0.75);
}

.cin-input-dot--teal {
  background: rgba(0, 184, 169, 0.75);
}

.cin-input-dot--green {
  background: rgba(34, 197, 94, 0.75);
}

.cin-input-dot--purple {
  background: rgba(139, 92, 246, 0.75);
}

.cin-input-label {
  font-size: 0.78rem;
  color: var(--slate-700, #334155);
  flex: 1;
}

.cin-input-check {
  width: 18px;
  height: 18px;
  background: var(--blue-primary);
  color: white;
  border-radius: 50%;
  font-size: 0.58rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.5);
}

.cin-icheck--1 {
  animation: cinIqCheckIn 0.35s ease-out 0.7s both;
}

.cin-icheck--2 {
  animation: cinIqCheckIn 0.35s ease-out 1.4s both;
}

.cin-icheck--3 {
  animation: cinIqCheckIn 0.35s ease-out 2.1s both;
}

.cin-icheck--4 {
  animation: cinIqCheckIn 0.35s ease-out 2.8s both;
}

@keyframes cinIqCheckIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Stage 0: Ingest animation (legacy — kept for reference) ── */
.cin-ingest-anim {
  position: relative;
  height: 100%;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 1.5rem 1.75rem;
}

.cin-ingest-lane {
  position: relative;
  height: 30px;
  border-radius: 999px;
  background: rgba(0, 102, 204, 0.06);
  border: 1px solid rgba(0, 102, 204, 0.1);
  overflow: hidden;
}

.cin-ingest-chip {
  position: absolute;
  top: 4px;
  left: -52%;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: rgba(0, 72, 142, 0.82);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.98);
  animation: cinIngestFlow 4.6s linear infinite;
  white-space: nowrap;
}

.cin-ingest-lane:nth-child(2) .cin-ingest-chip {
  animation-delay: 0.92s;
}

.cin-ingest-lane:nth-child(3) .cin-ingest-chip {
  animation-delay: 1.84s;
}

.cin-ingest-lane:nth-child(4) .cin-ingest-chip {
  animation-delay: 2.76s;
}

.cin-ingest-lane:nth-child(5) .cin-ingest-chip {
  animation-delay: 3.68s;
}

@keyframes cinIngestFlow {
  0% {
    left: -52%;
  }

  100% {
    left: 110%;
  }
}

.cin-ingest-convergence {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
}

.cin-ingest-merged {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 184, 169, 0.12), rgba(0, 102, 204, 0.12));
  border: 1px solid rgba(0, 184, 169, 0.3);
  overflow: hidden;
}

.cin-merged-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(0, 102, 204, 0.85);
  position: relative;
  z-index: 1;
}

.cin-merged-pulse {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 184, 169, 0.18), transparent);
  animation: cinMergedSweep 2.4s ease-in-out infinite;
}

@keyframes cinMergedSweep {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ── Shared Tile Grid (Steps 0, 1, 2) ── */
.sv-tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  max-height: 280px;
  /* Reduced to fit sticky container */
  width: 100%;
}

.sv-tile {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.96);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow: hidden;
  position: relative;
}

.sv-tile--tall {
  grid-row: 1 / 3;
}

.sv-tile--teal {
  border-color: rgba(0, 184, 169, 0.12);
}

.sv-tile-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(15, 23, 42, 0.6);
  text-transform: uppercase;
}

/* ── Bar chart (Step 1 / Step 2) ── */
.sv-tile-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex: 1;
  padding-top: 0.25rem;
}

.sv-tile-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(0, 102, 204, 0.35), rgba(0, 102, 204, 0.15));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 8px;
  transition: height 0.8s ease-out;
}

.sv-tile-bar span {
  font-size: 0.48rem;
  font-weight: 700;
  color: rgba(0, 102, 204, 0.55);
  padding-bottom: 2px;
}

.sv-tile-bar--accent {
  background: linear-gradient(180deg, var(--blue-primary), rgba(0, 102, 204, 0.4));
}

.sv-tile-bar--accent span {
  color: rgba(255, 255, 255, 0.85);
}

/* Grouped bars (Step 2) */
.sv-tile-chart--grouped {
  gap: 8px;
}

.sv-chart-group {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex: 1;
}

.sv-bar--prev {
  background: rgba(0, 184, 169, 0.15);
  border-radius: 3px 3px 0 0;
}

.sv-bar--curr {
  background: linear-gradient(180deg, var(--teal-primary), rgba(0, 184, 169, 0.35));
  border-radius: 3px 3px 0 0;
}

.sv-chart-legend {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.sv-legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--slate-400);
}

.sv-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}

.sv-ld--prev {
  background: rgba(0, 184, 169, 0.25);
}

.sv-ld--curr {
  background: var(--teal-primary);
}

/* ── Stat counter (Step 1) ── */
.sv-tile-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  justify-content: center;
}

.sv-stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.sv-stat-sub {
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--slate-400);
}

/* ── Progress bar ── */
.sv-tile-progress-wrap {
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 52, 103, 0.06);
  overflow: hidden;
}

.sv-tile-progress {
  height: 100%;
  border-radius: inherit;
}

.sv-tp--full {
  width: 100%;
  background: linear-gradient(90deg, var(--blue-primary), var(--teal-primary));
}

/* ── Status badges ── */
.sv-tile-status {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.sv-ts--green {
  color: var(--green-primary);
}

.sv-ts--teal {
  color: var(--teal-primary);
}

/* ── Sync dot ── */
.sv-tile-sync {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--slate-500);
}

.sv-sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sv-sync-dot--live {
  background: var(--green-primary);
  animation: svSyncPulse 2s ease-in-out infinite;
}

@keyframes svSyncPulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(0, 229, 160, 0);
  }
}

/* ── Sparkline (Step 1) ── */
.sv-tile-sparkline {
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-height: 28px;
}

.sv-tile-sparkline svg {
  width: 100%;
  height: 100%;
}

/* ── Gauge arc (Step 1) ── */
.sv-tile-gauge {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sv-gauge-svg {
  width: 56px;
  height: auto;
}

.sv-gauge-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--green-primary);
  margin-top: -4px;
}

/* ── Flow Pipeline (Step 2) ── */
.sv-flow-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-height: 280px;
  /* Reduced to fit sticky container */
  padding: 1rem 0.75rem;
}

/* Flow columns */
.sv-flow-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1 1 0;
  min-width: 0;
}

.sv-flow-col-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  margin-bottom: 0.2rem;
}

/* Flow items (data sources / insights) */
.sv-flow-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  background: var(--glass-bg);
  border: 1px solid rgba(0, 184, 169, 0.1);
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--slate-600);
  white-space: nowrap;
}

.sv-fi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sv-fi-dot--blue {
  background: var(--blue-primary);
}

.sv-fi-dot--teal {
  background: var(--teal-primary);
}

.sv-fi-dot--green {
  background: var(--green-primary);
}

.sv-fi-dot--purple {
  background: #8b5cf6;
}

/* Output items */
.sv-flow-item--out {
  border-color: rgba(0, 229, 160, 0.15);
}

.sv-fo-icon {
  width: 14px;
  height: 14px;
  stroke: var(--teal-primary);
  flex-shrink: 0;
}

/* Flow stream arrows */
.sv-flow-arrows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 48px;
  flex-shrink: 0;
  padding: 0.5rem 0;
}

.sv-flow-stream {
  height: 2px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background: rgba(0, 184, 169, 0.1);
}

.sv-flow-stream::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--teal-primary), transparent);
}

.sv-flow-arrows--in .sv-flow-stream::after {
  animation: svStreamIn 2s ease-in-out infinite;
}

.sv-flow-arrows--out .sv-flow-stream::after {
  animation: svStreamOut 2s ease-in-out infinite;
}

.sv-fs--2::after {
  animation-delay: 0.4s !important;
}

.sv-fs--3::after {
  animation-delay: 0.8s !important;
}

.sv-fs--5::after {
  animation-delay: 0.4s !important;
}

.sv-fs--6::after {
  animation-delay: 0.8s !important;
}

@keyframes svStreamIn {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(200%);
  }
}

@keyframes svStreamOut {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(200%);
  }
}

/* Central engine */
.sv-flow-engine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  flex-shrink: 0;
  padding: 0 0.25rem;
}

.sv-engine-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 169, 0.1) 0%, transparent 70%);
  animation: svEngineGlow 3s ease-in-out infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes svEngineGlow {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0.4;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.8;
  }
}

.sv-engine-core {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 184, 169, 0.12), rgba(0, 102, 204, 0.08));
  border: 1.5px solid rgba(0, 184, 169, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.sv-engine-logo {
  width: 32px;
  height: 32px;
}

.sv-engine-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--teal-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
}

.sv-engine-pulse {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1.5px solid rgba(0, 184, 169, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%);
  animation: svEnginePulse 2.5s ease-in-out infinite;
}

@keyframes svEnginePulse {

  0%,
  100% {
    transform: translate(-50%, -65%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -65%) scale(1.25);
    opacity: 0;
  }
}

/* ── AI text lines (Step 2) ── */
.sv-ai-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  justify-content: center;
}

.sv-ai-line {
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 184, 169, 0.1);
  width: 100%;
  animation: svAiShimmer 2.5s ease-in-out infinite;
}

.sv-ail--2 {
  animation-delay: 0.4s;
}

.sv-ail--3 {
  animation-delay: 0.8s;
}

@keyframes svAiShimmer {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

.sv-ai-tag {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 184, 169, 0.06);
  border: 1px solid rgba(0, 184, 169, 0.15);
  border-radius: 8px;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--teal-primary);
}

.sv-ai-tag svg {
  stroke: var(--teal-primary);
  flex-shrink: 0;
}

/* ── Performance ring (Step 2) ── */
.sv-perf-ring-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sv-perf-ring {
  width: 52px;
  height: 52px;
}

.sv-perf-val {
  position: absolute;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--teal-primary);
}

/* ── Stage 2: Output tiles animation ── */
.cin-output-anim {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  width: 100%;
  max-height: 280px;
  /* Reduced to fit sticky container */
}

.cin-output-tile {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.96);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: hidden;
}

.cin-ot-1 {
  grid-column: 1;
  grid-row: 1 / 3;
}

.cin-ot-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(15, 23, 42, 0.65);
  text-transform: uppercase;
}

.cin-ot-status {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 150, 90, 0.9);
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.25);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  align-self: flex-start;
}

.cin-ot-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  flex: 1;
  padding-bottom: 0.25rem;
}

.cin-ot-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(0, 184, 169, 0.4), rgba(0, 229, 160, 0.72));
  animation: cinBarGrow 0.9s ease-out backwards;
}

.cin-ot-bar:nth-child(1) {
  animation-delay: 0.15s;
}

.cin-ot-bar:nth-child(2) {
  animation-delay: 0.35s;
}

.cin-ot-bar:nth-child(3) {
  animation-delay: 0.55s;
}

@keyframes cinBarGrow {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
  }

  to {
    transform: scaleY(1);
  }
}

.cin-ot-text-lines {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.cin-text-line {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 102, 204, 0.1);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.cin-text-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 102, 204, 0.22) 50%, transparent 100%);
  animation: cinLineShimmer 2.8s ease-in-out infinite;
}

.cin-text-line:nth-child(2)::after {
  animation-delay: 0.6s;
}

.cin-text-line:nth-child(3)::after {
  animation-delay: 1.2s;
}

@keyframes cinLineShimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.cin-ot-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.cin-list-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cin-list-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 150, 90, 0.6);
  flex-shrink: 0;
}

.cin-list-line {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 150, 90, 0.12);
  width: 100%;
}

/* Mobile: collapse sticky to stacked, interleave steps + panels */
@media (max-width: 900px) {
  .cin-solution-section {
    padding-top: 4rem;
  }

  .cin-sticky-scene {
    grid-template-columns: 1fr;
    padding: 1rem 1rem 3rem;
    gap: 1.25rem;
  }

  /* Flatten containers so children participate in the parent grid */
  .cin-step-rail,
  .cin-panel-display {
    display: contents;
  }

  /* Interleave: step → panel → step → panel → step → panel */
  .cin-step-item[data-step="0"] {
    order: 1;
  }

  .cin-display-panel[data-panel="0"] {
    order: 2;
  }

  .cin-step-item[data-step="1"] {
    order: 4;
  }

  .cin-display-panel[data-panel="1"] {
    order: 5;
  }

  .cin-step-item[data-step="2"] {
    order: 7;
  }

  .cin-display-panel[data-panel="2"] {
    order: 8;
  }

  /* 4th stage (about story has 4 steps) */
  .cin-step-item[data-step="3"] {
    order: 10;
  }

  .cin-display-panel[data-panel="3"] {
    order: 11;
  }

  /* Hide connectors — panels now separate the steps visually */
  .cin-step-connector {
    display: none;
  }

  /* Show all step bodies */
  .cin-step-item .cin-step-body {
    max-height: none;
    opacity: 1;
  }

  .cin-step-item::before {
    opacity: 1;
    border-color: var(--glass-border);
  }

  /* Show ALL display panels, not just the active one */
  .cin-display-panel {
    grid-area: auto;
    position: relative;
    opacity: 1;
    transform: none;
    display: block;
    height: auto;
    min-height: 260px;
  }

  .cin-display-glass {
    height: 100%;
    min-height: 260px;
  }

  .cin-display-visual {
    min-height: 200px;
  }

  /* Scale down flow pipeline for narrow screens */
  .sv-flow-pipeline {
    transform: scale(0.88);
    transform-origin: center center;
    padding: 0.5rem 0;
  }

  .cin-progress-track {
    display: none;
  }
}

/* ── Step bullet list ── */
.cin-step-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cin-step-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--slate-600, #475569);
  line-height: 1.6;
}

.cin-step-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-primary);
  flex-shrink: 0;
}

.cin-step--active .cin-step-list li::before {
  background: var(--teal-primary);
}

/* ═══════════════════════════════════════════════════════════════
   About Story Scene — viewport-fitted layout + narrative style
   Differentiates from index solutionScene: left-border active
   indicator, crisper white panels with top accent, accordion lists
═══════════════════════════════════════════════════════════════ */

/* Tighter padding so 4 steps fit within viewport when pinned */
#aboutStoryScene {
  padding: 1.5rem 1.5rem;
}

#aboutStoryScene .cin-step-rail {
  min-height: 480px;
  /* Lock height so accordion expansions don't push the pinned container size */
}

/* Compact step items */
#aboutStoryScene .cin-step-item {
  padding: 0.85rem 1.25rem;
}

/* Shorter connector lines between steps */
#aboutStoryScene .cin-step-connector {
  height: 8px;
}

#aboutStoryScene .cin-step-item {
  padding: 1rem 1.5rem;
}

/* Slightly smaller text to gain vertical space */
#aboutStoryScene .cin-step-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

#aboutStoryScene .cin-step-desc {
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* Accordion: Grid transition for perfectly smooth height animation without overshoot */
#aboutStoryScene .cin-step-list-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 400ms var(--ease-smooth), opacity 300ms var(--ease-smooth), margin-top 300ms var(--ease-smooth);
  margin-top: 0;
}

#aboutStoryScene .cin-step-list-wrap>ul {
  overflow: hidden;
  min-height: 0;
  margin-top: 0;
  /* Clear base margin so it perfectly hides */
  padding-top: 0.5rem;
  /* Add spacing back inside the hidden box */
}

#aboutStoryScene .cin-step--active .cin-step-list-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0;
  /* Let internal padding handle spacing */
}

/* Style differentiation: left accent border for active step
   instead of the full glass background used in solutionScene */
#aboutStoryScene .cin-step-item.cin-step--active::before {
  background: var(--glass-bg-medium);
  border-color: transparent;
  border-left: 3px solid var(--blue-primary);
  border-radius: 0 14px 14px 0;
}

:root[data-theme="dark"] #aboutStoryScene .cin-step-item.cin-step--active::before {
  background: var(--glass-bg-heavy);
}

/* ── solutionScene: mirrors aboutStoryScene spacing; visual fills full card ── */
/* Same padding & step sizing as aboutStoryScene — layout already proven to fit */
#solutionScene {
  height: calc(100dvh - 88px);
  max-height: calc(100dvh - 88px);
  overflow: hidden;
  align-items: stretch;
  padding: 1.5rem 1.5rem;
  /* matches #aboutStoryScene */
  gap: 1.5rem;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr 1.25fr;
}

/* Header spans both columns in row 1 */
#solutionScene .solution-header {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Scale the heading down to match about-page section header proportions
   (heading-lg full size is too large when competing for vertical space) */
#solutionScene .solution-header .heading-lg {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

#solutionScene .solution-header .section-glass-pill {
  margin-bottom: 0.5rem;
}

#solutionScene .solution-header .solution-intro {
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Step rail stays in row 2, col 1 */
#solutionScene .cin-step-rail {
  grid-row: 2;
  grid-column: 1;
  overflow: hidden;
  justify-content: space-between;
}

/* Match aboutStoryScene's step item padding exactly */
#solutionScene .cin-step-item {
  padding: 1rem 1.5rem;
  /* matches #aboutStoryScene */
}

/* Match aboutStoryScene's title size */
#solutionScene .cin-step-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

/* Vertically center step item content within its card box */
#solutionScene .cin-step-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Panel display in row 2, col 2 */
#solutionScene .cin-panel-display {
  grid-row: 2;
  grid-column: 2;
  height: 100%;
  align-self: stretch;
  overflow: hidden;
}

/* Glass card + panel fill the column height */
#solutionScene .cin-display-panel,
#solutionScene .cin-display-glass {
  height: 100%;
}

/* Visual fills full card height — no text block below, so give it all the space */
#solutionScene .cin-display-visual {
  flex: 1;
  padding: 0.75rem 1.25rem 1.25rem;
  /* matches #aboutStoryScene visual padding */
}

/* Tile grids fill available space */
#solutionScene .sv-tile-grid,
#solutionScene .cin-output-anim {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

#solutionScene .sv-flow-pipeline {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

/* Progress dots in row 2 */
#solutionScene .cin-progress-track {
  grid-row: 2;
}

/* Student Records tile: space-between distributes label/stat/progress cleanly.
   Use a larger stat number to fill visual weight in the taller tile. */
#solutionScene .sv-tile {
  justify-content: space-between;
}

/* Don't let the stat flex-grow — let space-between do the work */
#solutionScene .sv-tile .sv-tile-stat {
  flex: 0 0 auto;
  margin: 0;
}

/* Bigger stat number fills visual weight in the taller tile */
#solutionScene .sv-stat-num {
  font-size: 2rem;
  line-height: 1;
}

/* Slightly larger bar charts within the solution scene */
#solutionScene .sv-tile-chart {
  gap: 6px;
}

#solutionScene .sv-tile-bar {
  border-radius: 5px 5px 0 0;
}

/* Panel auto-fits tallest panel using Grid Stacking */
#aboutStoryScene .cin-panel-display {
  height: auto;
  align-self: center;
}

/* Crisper white glass panels with a top color accent line —
   distinct from the semi-transparent glass of solutionScene */
#aboutStoryScene .cin-display-glass {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--glass-border);
  border-top: 3px solid var(--blue-primary);
}

:root[data-theme="dark"] #aboutStoryScene .cin-display-glass {
  background: var(--glass-bg-heavy);
  border-color: rgba(68, 89, 132, 0.35);
  border-top-color: var(--blue-primary);
}

#aboutStoryScene .cin-display-glass--teal {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 255, 252, 0.97) 100%);
  border-top-color: var(--teal-primary);
}

:root[data-theme="dark"] #aboutStoryScene .cin-display-glass--teal {
  background: linear-gradient(155deg, var(--glass-bg-heavy) 0%, rgba(0, 184, 169, 0.05) 100%);
  border-top-color: var(--teal-primary);
}

#aboutStoryScene .cin-display-glass--green {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 255, 248, 0.97) 100%);
  border-top-color: rgb(0, 190, 115);
}

:root[data-theme="dark"] #aboutStoryScene .cin-display-glass--green {
  background: linear-gradient(155deg, var(--glass-bg-heavy) 0%, rgba(0, 190, 115, 0.05) 100%);
  border-top-color: rgb(0, 190, 115);
}

/* Kicker: tighter top padding */
#aboutStoryScene .cin-display-kicker {
  padding-top: 0.85rem;
}

/* Visual area: stretch child element to fill available height */
#aboutStoryScene .cin-display-visual {
  align-items: stretch;
  padding: 0.75rem 1.25rem 1rem;
}

/* Remove the base .asc-visual fixed 96px height inside story panels */
#aboutStoryScene .cin-display-visual .asc-visual {
  height: auto;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Give the notification stack room for the full card animation */
#aboutStoryScene .cin-display-visual .asc-notifications {
  height: 180px;
}

/* Story description text — the main narrative focus of each panel */
#aboutStoryScene .cin-display-glass>div:last-of-type {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(0, 102, 204, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

:root[data-theme="dark"] #aboutStoryScene .cin-display-glass>div:last-of-type {
  border-top-color: rgba(68, 89, 132, 0.25);
  background: rgba(10, 17, 40, 0.4);
}

#aboutStoryScene .cin-display-glass--teal>div:last-of-type {
  border-top-color: rgba(0, 184, 169, 0.1);
}

:root[data-theme="dark"] #aboutStoryScene .cin-display-glass--teal>div:last-of-type {
  border-top-color: rgba(0, 184, 169, 0.15);
}

#aboutStoryScene .cin-display-glass--green>div:last-of-type {
  border-top-color: rgba(0, 190, 115, 0.1);
}

:root[data-theme="dark"] #aboutStoryScene .cin-display-glass--green>div:last-of-type {
  border-top-color: rgba(0, 190, 115, 0.15);
}

#aboutStoryScene .cin-display-glass p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--slate-900, #0f172a);
  line-height: 1.75;
  margin: 0;
}

:root[data-theme="dark"] #aboutStoryScene .cin-display-glass p {
  color: #e2e8f0;
}

/* ─── Panel 1: Notifications — fill full visual height ─── */
#aboutStoryScene .cin-display-visual .asc-notifications {
  height: 100%;
  max-width: 460px;
}

#aboutStoryScene .asc-notification-card {
  padding: 14px 18px;
  gap: 14px;
  border-radius: 10px;
  animation-name: notificationStackLg;
}

:root[data-theme="dark"] #aboutStoryScene .asc-notification-card {
  background: var(--glass-bg-heavy);
  border-color: rgba(68, 89, 132, 0.35);
}

:root[data-theme="dark"] #aboutStoryScene .asc-notification-text {
  color: #e2e8f0;
}

#aboutStoryScene .asc-notification-icon {
  width: 22px;
  height: 22px;
}

#aboutStoryScene .asc-notification-text {
  font-size: 13px;
}

@keyframes notificationStackLg {

  0%,
  4% {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
    z-index: 10;
  }

  8%,
  25% {
    opacity: 1;
    transform: translateY(12px) scale(1);
    z-index: 10;
    box-shadow: 0 6px 18px rgba(15, 42, 68, 0.1);
  }

  33%,
  50% {
    opacity: 0.85;
    transform: translateY(110px) scale(0.96);
    z-index: 9;
    box-shadow: 0 2px 8px rgba(15, 42, 68, 0.05);
  }

  58%,
  75% {
    opacity: 0.52;
    transform: translateY(208px) scale(0.92);
    z-index: 8;
    box-shadow: none;
  }

  83%,
  100% {
    opacity: 0;
    transform: translateY(306px) scale(0.88);
    z-index: 7;
    box-shadow: none;
  }
}

/* ─── Panel 2: Matrix Rain — scale fall distances for 509px visual height ─── */
#aboutStoryScene .asc-data-stream {
  font-size: 13px;
  animation-name: matrixFallLg;
}

#aboutStoryScene .asc-icon-stream {
  width: 36px;
  height: 36px;
  animation-name: iconFallLg;
}

#aboutStoryScene .asc-icon-stream svg {
  width: 20px;
  height: 20px;
}

@keyframes matrixFallLg {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }

  10% {
    opacity: 0.7;
  }

  80% {
    opacity: 0.7;
  }

  100% {
    transform: translateY(560px);
    opacity: 0;
  }
}

@keyframes iconFallLg {
  0% {
    transform: translateY(-30px) rotate(-10deg);
    opacity: 0;
  }

  15% {
    opacity: 1;
    transform: translateY(10px) rotate(0deg);
  }

  85% {
    opacity: 1;
    transform: translateY(500px) rotate(5deg);
  }

  100% {
    transform: translateY(540px) rotate(10deg);
    opacity: 0;
  }
}

/* ─── Panel 3: Build Stack — staircase layout filling panel height ─── */
#aboutStoryScene .asc-build-stack {
  align-items: flex-end;
  justify-content: center;
  padding: 0 24px 24px;
  gap: 10px;
}

#aboutStoryScene .asc-stack-block {
  padding: 20px 28px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
}

#aboutStoryScene .block-1 {
  height: 90%;
}

#aboutStoryScene .block-2 {
  height: 65%;
}

#aboutStoryScene .block-3 {
  height: 42%;
}

#aboutStoryScene .asc-stack-peak {
  margin-left: 14px;
  padding-left: 20px;
  align-items: center;
  align-self: flex-end;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 20px;
}

#aboutStoryScene .asc-peak-logo {
  width: 40px;
  height: 40px;
}

#aboutStoryScene .asc-peak-text {
  font-size: 18px;
}

:root[data-theme="dark"] #aboutStoryScene .asc-stack-block {
  color: #f8fafc;
}

:root[data-theme="dark"] #aboutStoryScene .asc-peak-text {
  color: #f8fafc;
}

/* ── Stage 1: AscendEd IQ scanner visual ── */
/* ── IQ Orbital Orb — central logo with orbiting satellite nodes ── */
.cin-iq-orb-anim {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.cin-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 184, 169, 0.12);
}

.cin-orb-ring--1 {
  inset: 10px;
  animation: cinOrbSpin 18s linear infinite;
}

.cin-orb-ring--2 {
  inset: 30px;
  border-color: rgba(0, 102, 204, 0.10);
  animation: cinOrbSpin 14s linear infinite reverse;
}

.cin-orb-ring--3 {
  inset: 50px;
  border-color: rgba(0, 229, 160, 0.10);
  animation: cinOrbSpin 22s linear infinite;
}

@keyframes cinOrbSpin {
  from {
    transform: rotate(0deg) translateZ(0);
  }

  to {
    transform: rotate(360deg) translateZ(0);
  }
}

.cin-orb-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 184, 169, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 184, 169, 0.15);
  z-index: 3;
}

.cin-orb-logo {
  width: 28px;
  height: 28px;
}

.cin-orb-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 184, 169, 0.08);
  animation: cinOrbPulse 3s ease-out infinite;
  z-index: 1;
}

@keyframes cinOrbPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

.cin-orb-sat {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 184, 169, 0.18);
  box-shadow: 0 2px 8px rgba(0, 52, 103, 0.06);
  color: var(--teal-primary);
  white-space: nowrap;
  z-index: 4;
}

.cin-orb-sat--1 {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  animation: cinSatFloat1 6s ease-in-out infinite;
}

.cin-orb-sat--2 {
  bottom: 18%;
  left: 2%;
  animation: cinSatFloat2 7s ease-in-out infinite;
}

.cin-orb-sat--3 {
  bottom: 18%;
  right: 2%;
  animation: cinSatFloat3 8s ease-in-out infinite;
}

@keyframes cinSatFloat1 {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(6px)
  }
}

@keyframes cinSatFloat2 {

  0%,
  100% {
    transform: translate(0, 0)
  }

  50% {
    transform: translate(4px, -5px)
  }
}

@keyframes cinSatFloat3 {

  0%,
  100% {
    transform: translate(0, 0)
  }

  50% {
    transform: translate(-4px, -5px)
  }
}

.cin-orb-label {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--teal-primary);
  background: rgba(0, 184, 169, 0.08);
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  animation: cinOrbLabelPulse 2.5s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes cinOrbLabelPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .cin-silo-node,
  .cin-silo-dash,
  .cin-silo-alert,
  .cin-bn-particle,
  .cin-bn-drip,
  .cin-bn-deadline-line,
  .cin-stakes-bar,
  .cin-stakes-badge--crit,
  .cin-inputs-status,
  .cin-input-check,
  .cin-orb-ring,
  .cin-orb-pulse,
  .cin-orb-sat,
  .cin-orb-label,
  .cin-ingest-chip,
  .cin-merged-pulse,
  .cin-ot-bar,
  .cin-text-line {
    animation: none !important;
  }

  .cin-text-line::after {
    animation: none !important;
  }

  .cin-input-check {
    opacity: 1;
    transform: scale(1);
  }

  .cin-panel:hover {
    transform: none;
  }
}

/* ── Mobile: New Solution Visuals ── */
@media (max-width: 768px) {

  /* Problem panels: scale down dashboards */
  .pv-scattered-dash,
  .pv-queue-dash,
  .pv-pressure-dash {
    max-width: 100%;
    padding: 0.8rem 1rem;
  }

  /* Solution tiles: stack vertically */
  .sv-tile-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.25rem 0;
  }

  .sv-tile--tall {
    grid-row: auto;
  }

  .sv-tile {
    padding: 0.6rem;
  }

  .sv-stat-num {
    font-size: 1rem;
  }

  .sv-tile-label {
    font-size: 0.55rem;
  }

  /* Flow pipeline: stack vertically */
  .sv-flow-pipeline {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0.5rem;
  }

  .sv-flow-col {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    min-width: auto;
  }

  .sv-flow-col-label {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .sv-flow-arrows {
    display: none;
  }

  .sv-engine-core {
    width: 40px;
    height: 40px;
  }

  .sv-engine-logo {
    width: 20px;
    height: 20px;
  }

  /* Output tiles */
  .cin-output-anim {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .cin-ot-1 {
    grid-column: auto;
    grid-row: auto;
  }
}

/* Hardware Accel — translateZ(0) promotes to compositor layer;
   will-change removed to avoid permanent excess layers.  */
.hero-stat-card,
.hero-orbit-ring,
.hero-brain-center img,
.hero-brain-glow {
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Webkit Backdrop-Filter Hardware Acceleration Fix
   backface-visibility:hidden is sufficient for the WebKit blur fix.
   Removed will-change:transform — applying it to every card/button
   creates excessive compositor layers and causes flicker.  */
.navbar,
.navbar.scrolled,
.glass-card,
.glass-card-subtle,
.platform-card,
.platform-card-icon,
.integration-hub,
.capability-card,
.cin-panel,
.cin-output-tile,
.cin-ot-bar,
.impact-block,
.roi-card,
.testimonial-card,
.testimonial-content,
.about-story-card,
.bento-card,
.feature-glass-panel,
.metrics-glass-card,
.metrics-tooltip,
.learning-card,
.btn-glass-primary,
.btn-glass-secondary,
.bio-modal-email-btn,
.bio-modal-linkedin-btn {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ==========================================================
   DARK MODE — Component Overrides
   All rules scoped to :root[data-theme="dark"] so they
   only apply when dark mode is active.
   ========================================================== */

/* ── Background mesh & body pseudo-layers ── */
:root[data-theme="dark"] body::before {
  background: linear-gradient(135deg, rgba(4, 9, 20, 0.3) 0%, rgba(10, 17, 40, 0.5) 100%);
}

:root[data-theme="dark"] body::after {
  background-image:
    linear-gradient(rgba(0, 102, 204, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 204, 0.04) 1px, transparent 1px);
  opacity: 0.4;
}

:root[data-theme="dark"] .mesh-orb--blue {
  background: radial-gradient(circle closest-side, rgba(0, 102, 204, 0.14) 0%, rgba(0, 102, 204, 0.07) 40%, transparent 100%);
}

:root[data-theme="dark"] .mesh-orb--teal,
:root[data-theme="dark"] .mesh-orb--teal-2 {
  background: radial-gradient(circle closest-side, rgba(0, 184, 169, 0.16) 0%, rgba(0, 184, 169, 0.08) 40%, transparent 100%);
}

:root[data-theme="dark"] .mesh-orb--green,
:root[data-theme="dark"] .mesh-orb--green-2 {
  background: radial-gradient(circle closest-side, rgba(0, 229, 160, 0.14) 0%, rgba(0, 229, 160, 0.07) 40%, transparent 100%);
}

:root[data-theme="dark"] .mesh-orb--blue-2 {
  background: radial-gradient(circle closest-side, rgba(0, 102, 204, 0.10) 0%, rgba(0, 102, 204, 0.05) 40%, transparent 100%);
}

/* ── Hero stat cards ── */
:root[data-theme="dark"] .hero-stat-card {
  background: rgba(10, 17, 40, 0.70);
  border: 1px solid rgba(68, 89, 132, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.25);
  color: var(--slate-800);
}

:root[data-theme="dark"] .hero-stat-card .stat-value {
  color: var(--blue-bright);
}

/* ── Hero brain orb ── */
:root[data-theme="dark"] .hero-brain-orb {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 32px rgba(0, 102, 204, 0.2),
    0 0 80px rgba(0, 184, 169, 0.12);
}

:root[data-theme="dark"] .brain-glass-orb {
  border-color: rgba(68, 89, 132, 0.3);
  box-shadow:
    0 0 60px rgba(0, 184, 169, 0.2),
    0 0 120px rgba(0, 102, 204, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Glass pill badges ── */
:root[data-theme="dark"] .section-glass-pill {
  box-shadow: var(--glass-highlight), 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ── Capability cards — hard-coded hover bg ── */
:root[data-theme="dark"] .capability-glass-blue:hover,
:root[data-theme="dark"] .capability-glass-teal:hover,
:root[data-theme="dark"] .capability-glass-green:hover {
  background: var(--glass-bg-heavy);
}

/* ── Feature icons ── */
:root[data-theme="dark"] .feature-icon {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.18), rgba(0, 184, 169, 0.18));
  border-color: rgba(0, 102, 204, 0.3);
}

:root[data-theme="dark"] .feature-icon:hover,
:root[data-theme="dark"] .card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.28), rgba(0, 184, 169, 0.28));
  border-color: rgba(0, 102, 204, 0.5);
}

:root[data-theme="dark"] .feature-icon-inline {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.15), rgba(0, 184, 169, 0.15));
}

/* ── Cards — general hover border ── */
:root[data-theme="dark"] .card:hover {
  border-color: rgba(0, 102, 204, 0.35);
}

:root[data-theme="dark"] .card-glow:hover::before {
  background: linear-gradient(90deg, transparent, rgba(0, 184, 169, 0.18), transparent);
}

/* ── About page cards ── */
:root[data-theme="dark"] .about-story-card {
  background: linear-gradient(170deg, rgba(10, 17, 40, 0.78) 0%, rgba(4, 9, 20, 0.58) 100%);
}

:root[data-theme="dark"] .about-mission-pillar:hover {
  background: rgba(10, 17, 40, 0.56);
}

:root[data-theme="dark"] .about-pillar-visual {
  background: rgba(10, 17, 40, 0.85);
  border-color: rgba(68, 89, 132, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .about-pillar-visual::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
}

:root[data-theme="dark"] .apv-check-dot--active {
  background: var(--slate-200);
}

/* ── AscendEd visual mini-windows ── */
:root[data-theme="dark"] .asc-visual {
  background: rgba(10, 17, 40, 0.5);
  border-color: rgba(68, 89, 132, 0.3);
}

:root[data-theme="dark"] .asc-win {
  background: var(--slate-200);
  border-color: var(--slate-300);
}

:root[data-theme="dark"] .asc-win-body {
  background: var(--slate-200);
}

:root[data-theme="dark"] .asc-win-header {
  background: var(--slate-100);
  border-bottom-color: var(--slate-200);
}

:root[data-theme="dark"] .asc-gc-card {
  background: var(--slate-200);
  border-color: var(--slate-300);
}

:root[data-theme="dark"] .alert-card {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

:root[data-theme="dark"] .anim-gc-card {
  animation-name: gcCardInteractDark;
}

@keyframes gcCardInteractDark {

  0%,
  55% {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
  }

  65%,
  100% {
    border-color: var(--slate-300);
    background: var(--slate-200);
  }
}

:root[data-theme="dark"] .warn-card {
  border-color: rgba(252, 211, 77, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

/* ── Testimonials ── */
:root[data-theme="dark"] .testimonial-avatar {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(0, 184, 169, 0.2));
}

/* ── Contact form ── */
:root[data-theme="dark"] .contact-form {
  background: rgba(10, 17, 40, 0.65);
}

:root[data-theme="dark"] .contact-form::after {
  background: rgba(10, 17, 40, 0.65);
}

:root[data-theme="dark"] .contact-section-box {
  background: linear-gradient(135deg, rgba(0, 184, 169, 0.06), rgba(0, 229, 160, 0.06));
  border-color: rgba(0, 184, 169, 0.25);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 12px 36px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(0, 184, 169, 0.1);
}

/* ── Form inputs ── */
:root[data-theme="dark"] #contactForm input[type="text"],
:root[data-theme="dark"] #contactForm input[type="email"],
:root[data-theme="dark"] #contactForm textarea,
:root[data-theme="dark"] #contactForm select,
:root[data-theme="dark"] form input[type="text"],
:root[data-theme="dark"] form input[type="email"],
:root[data-theme="dark"] form textarea,
:root[data-theme="dark"] form select {
  background: rgba(10, 17, 40, 0.6);
  border-color: rgba(68, 89, 132, 0.35);
  color: var(--slate-900);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] form input:focus,
:root[data-theme="dark"] form textarea:focus,
:root[data-theme="dark"] form select:focus {
  background: rgba(10, 17, 40, 0.75);
  border-color: rgba(0, 102, 204, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 4px rgba(0, 102, 204, 0.15),
    0 4px 12px rgba(0, 102, 204, 0.15);
}

:root[data-theme="dark"] form input::placeholder,
:root[data-theme="dark"] form textarea::placeholder {
  color: var(--slate-500);
}

/* ── Buttons ── */
:root[data-theme="dark"] .btn-secondary {
  background: var(--glass-bg-heavy);
  color: var(--slate-800);
  border-color: rgba(68, 89, 132, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

:root[data-theme="dark"] .btn-secondary:hover {
  border-color: var(--blue-primary);
  color: var(--blue-bright);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

:root[data-theme="dark"] .btn-glass-secondary {
  color: var(--slate-800);
}

:root[data-theme="dark"] .btn-glass-secondary:hover {
  color: var(--blue-bright);
  border-color: rgba(0, 102, 204, 0.4);
}

/* ── Video frame ── */
:root[data-theme="dark"] .video-glass-frame {
  box-shadow:
    var(--glass-highlight),
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 0 80px rgba(0, 184, 169, 0.08);
}

:root[data-theme="dark"] .video-glass-frame:hover {
  box-shadow:
    var(--glass-highlight),
    0 20px 60px rgba(0, 0, 0, 0.30),
    0 0 100px rgba(0, 184, 169, 0.12);
  border-color: rgba(68, 89, 132, 0.6);
}

/* ── Footer (already dark, but ensure consistency) ── */
:root[data-theme="dark"] footer {
  background: rgba(4, 9, 20, 0.9);
  border-top-color: rgba(68, 89, 132, 0.25);
}

/* ── Error page ── */
:root[data-theme="dark"] .error-container {
  background: linear-gradient(to bottom, var(--slate-50) 0%, var(--slate-100) 100%);
}

/* ── Header ── */
:root[data-theme="dark"] #header.scrolled {
  border-bottom-color: rgba(68, 89, 132, 0.4);
}

/* ── Orbit ring borders ── */
:root[data-theme="dark"] .hero-orbit-ring--1 {
  border-color: rgba(0, 102, 204, 0.18);
}

:root[data-theme="dark"] .hero-orbit-ring--2 {
  border-color: rgba(0, 184, 169, 0.14);
}

:root[data-theme="dark"] .hero-orbit-ring--3 {
  border-color: rgba(0, 229, 160, 0.10);
}

/* ── Testimonial border-left ── */
:root[data-theme="dark"] .testimonial-item {
  border-left-color: rgba(0, 184, 169, 0.3);
}

/* ── @supports fallback for dark mode ── */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root[data-theme="dark"] #header {
    background: rgba(10, 17, 40, 0.97);
  }

  :root[data-theme="dark"] .card,
  :root[data-theme="dark"] .capability-item-centered,
  :root[data-theme="dark"] .testimonial-glass-card,
  :root[data-theme="dark"] .contact-form {
    background: rgba(10, 17, 40, 0.95);
  }

  :root[data-theme="dark"] footer {
    background: rgba(4, 9, 20, 0.98);
  }
}

/* ── Legal / Privacy / Accessibility pages ── */
:root[data-theme="dark"] .legal-main .content-section {
  background: var(--glass-bg-heavy);
  border-color: var(--glass-border-subtle);
}

:root[data-theme="dark"] .legal-main .content-section::before {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(0, 102, 204, 0.12) 0%, transparent 55%),
    radial-gradient(120% 80% at 100% 100%, rgba(0, 184, 169, 0.10) 0%, transparent 55%);
}

/* ── Learning Library cards ── */
:root[data-theme="dark"] .learning-card {
  background: var(--glass-bg-heavy);
  border-color: var(--glass-border-subtle);
}

:root[data-theme="dark"] .learning-card:hover {
  border-color: rgba(0, 102, 204, 0.35);
}

/* ── Problem Visualization dashboard panels ── */
:root[data-theme="dark"] .pv-scattered-dash,
:root[data-theme="dark"] .pv-queue-dash,
:root[data-theme="dark"] .pv-pressure-dash {
  background: rgba(10, 17, 40, 0.62);
  border-color: rgba(68, 89, 132, 0.25);
}

:root[data-theme="dark"] .pv-export-card {
  background: rgba(10, 17, 40, 0.85);
  border-color: rgba(68, 89, 132, 0.3);
}

:root[data-theme="dark"] .pv-queue-row {
  background: rgba(10, 17, 40, 0.45);
  border-color: rgba(68, 89, 132, 0.2);
}

:root[data-theme="dark"] .pv-queue-row:nth-child(even) {
  background: rgba(10, 17, 40, 0.35);
}

:root[data-theme="dark"] .pv-bar-label,
:root[data-theme="dark"] .pv-axis-label {
  color: rgba(148, 163, 184, 0.8);
}

:root[data-theme="dark"] .pv-bar {
  background: rgba(68, 89, 132, 0.3);
}

:root[data-theme="dark"] .pv-pressure-card {
  background: rgba(10, 17, 40, 0.50);
  border-color: rgba(68, 89, 132, 0.25);
}

:root[data-theme="dark"] .pv-pressure-bar-wrap {
  background: rgba(68, 89, 132, 0.18);
}

:root[data-theme="dark"] .pv-ec-label {
  color: #94a3b8;
}

:root[data-theme="dark"] .pv-pressure-label {
  color: #94a3b8;
}

:root[data-theme="dark"] .pv-queue-label {
  color: #94a3b8;
}

:root[data-theme="dark"] .pv-queue-bar-wrap {
  background: rgba(68, 89, 132, 0.18);
}

/* ── Solution Visual tiles (How It Works) ── */
:root[data-theme="dark"] .sv-tile {
  background: rgba(10, 17, 40, 0.70);
  border-color: rgba(68, 89, 132, 0.25);
}

:root[data-theme="dark"] .sv-tile-label {
  color: rgba(148, 163, 184, 0.75);
}

:root[data-theme="dark"] .sv-tile-progress-wrap {
  background: rgba(68, 89, 132, 0.18);
}

:root[data-theme="dark"] .sv-flow-item {
  background: rgba(10, 17, 40, 0.60);
  border-color: rgba(0, 184, 169, 0.15);
  color: #cbd5e1;
}

:root[data-theme="dark"] .sv-flow-item--out {
  border-color: rgba(0, 229, 160, 0.2);
}

:root[data-theme="dark"] .cin-output-tile {
  background: rgba(10, 17, 40, 0.70);
  border-color: rgba(68, 89, 132, 0.25);
}

:root[data-theme="dark"] .cin-ot-label {
  color: rgba(148, 163, 184, 0.8);
}

/* ── Solution display glass panels ── */
:root[data-theme="dark"] .cin-display-glass {
  background: rgba(10, 17, 40, 0.85);
  border-color: rgba(68, 89, 132, 0.3);
}

:root[data-theme="dark"] .cin-display-glass--teal {
  background: linear-gradient(155deg, rgba(10, 17, 40, 0.80) 0%, rgba(10, 17, 40, 0.90) 100%);
  border-color: rgba(0, 184, 169, 0.25);
}

:root[data-theme="dark"] .cin-display-glass--green {
  background: linear-gradient(155deg, rgba(10, 17, 40, 0.80) 0%, rgba(10, 17, 40, 0.90) 100%);
  border-color: rgba(0, 229, 160, 0.25);
}

/* ── About story scene glass panels ── */
:root[data-theme="dark"] #aboutStoryScene .cin-display-glass {
  background: rgba(10, 17, 40, 0.90);
  border-color: rgba(68, 89, 132, 0.3);
}

:root[data-theme="dark"] #aboutStoryScene .cin-display-glass--teal {
  background: linear-gradient(155deg, rgba(10, 17, 40, 0.85) 0%, rgba(0, 30, 35, 0.90) 100%);
  border-top-color: var(--teal-primary);
}

:root[data-theme="dark"] #aboutStoryScene .cin-display-glass--green {
  background: linear-gradient(155deg, rgba(10, 17, 40, 0.85) 0%, rgba(0, 30, 25, 0.90) 100%);
  border-top-color: rgb(0, 190, 115);
}

:root[data-theme="dark"] #aboutStoryScene .cin-display-glass>div:last-of-type {
  background: rgba(10, 17, 40, 0.5);
  border-top-color: rgba(68, 89, 132, 0.15);
}

:root[data-theme="dark"] #aboutStoryScene .cin-display-glass p {
  color: var(--slate-200);
}

/* ── Glass card / ascend design system ── */
:root[data-theme="dark"] .glass-card {
  --ascend-glass-bg: rgba(10, 17, 40, 0.55);
  --ascend-glass-border: rgba(68, 89, 132, 0.25);
  background: var(--ascend-glass-bg);
  border-color: var(--ascend-glass-border);
}

/* ── Capability status boxes ── */
:root[data-theme="dark"] .status-box {
  background: rgba(10, 17, 40, 0.50);
  border-color: rgba(0, 184, 169, 0.18);
}

/* ── Bio modal ── */
:root[data-theme="dark"] .bio-modal-overlay {
  background: rgba(4, 9, 20, 0);
  /* GSAP animates this */
}

:root[data-theme="dark"] .bio-modal {
  box-shadow: var(--glass-highlight), 0 32px 80px rgba(0, 0, 0, 0.45), 0 0 80px rgba(0, 102, 204, 0.12);
}

:root[data-theme="dark"] .bio-modal-close {
  background: rgba(68, 89, 132, 0.35);
  color: #cbd5e1;
}

:root[data-theme="dark"] .bio-modal-close:hover {
  background: rgba(68, 89, 132, 0.55);
  color: #f1f5f9;
}

:root[data-theme="dark"] .bio-modal-body p {
  color: #94a3b8;
}

:root[data-theme="dark"] .bio-modal-sidebar .heading-md {
  color: #f1f5f9;
}

:root[data-theme="dark"] .bio-modal-sidebar .text-sm {
  color: #94a3b8;
}

:root[data-theme="dark"] .bio-modal-linkedin-btn {
  border-color: rgba(0, 102, 204, 0.3);
  color: #cbd5e1;
}

:root[data-theme="dark"] .bio-modal-linkedin-btn:hover {
  color: #ffffff;
  border-color: rgba(0, 102, 204, 0.5);
}

:root[data-theme="dark"] .bio-modal-email-btn {
  border-color: rgba(0, 102, 204, 0.4);
}

:root[data-theme="dark"] .bio-skeleton-line {
  background: linear-gradient(90deg, rgba(68, 89, 132, 0.3) 0%, rgba(68, 89, 132, 0.15) 50%, rgba(68, 89, 132, 0.3) 100%);
  background-size: 200% 100%;
}

:root[data-theme="dark"] .skeleton-img {
  background: linear-gradient(90deg, rgba(68, 89, 132, 0.35) 25%, rgba(68, 89, 132, 0.15) 50%, rgba(68, 89, 132, 0.35) 75%);
  background-size: 200% 100%;
}

/* ═══════════════════════════════════════════════════════════════
   SLEEK THEME TOGGLE
   ═══════════════════════════════════════════════════════════════ */
.theme-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  transition:
    background-color 300ms var(--ease-smooth),
    border-color 300ms var(--ease-smooth);
}

.theme-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transition:
    transform 300ms var(--ease-smooth),
    background-color 300ms var(--ease-smooth),
    box-shadow 300ms var(--ease-smooth);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Checked / dark-mode state */
.theme-toggle input:checked~.theme-track {
  background: rgba(148, 163, 184, 0.35);
  border-color: rgba(148, 163, 184, 0.4);
}

.theme-toggle input:checked~.theme-track .theme-knob {
  transform: translateX(20px);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Focus ring for accessibility */
.theme-toggle input:focus-visible~.theme-track {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}

/* Hover glow */
.theme-track:hover {
  border-color: rgba(148, 163, 184, 0.4);
}

.theme-toggle input:checked~.theme-track:hover {
  border-color: rgba(148, 163, 184, 0.6);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE FIXES — "Our Story" & "The Solution" sections
   Overrides desktop-specific scene rules so both sections
   display as stacked, scrollable cards on narrow screens.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* ── The Solution section (index.html #solutionScene) ── */
  #solutionScene {
    height: auto;
    max-height: none;
    overflow: visible;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 1rem;
    gap: 1.25rem;
    align-items: start;
  }

  #solutionScene .solution-header {
    grid-column: 1;
    grid-row: auto;
  }

  #solutionScene .cin-step-rail {
    grid-row: auto;
    grid-column: 1;
    overflow: visible;
    min-height: auto;
  }

  #solutionScene .cin-panel-display {
    grid-row: auto;
    grid-column: 1;
    height: auto;
  }

  #solutionScene .cin-display-panel,
  #solutionScene .cin-display-glass {
    height: auto;
    min-height: 260px;
  }

  #solutionScene .cin-display-visual {
    min-height: 200px;
  }

  /* Tile grid: keep 2-col but give tiles breathing room */
  #solutionScene .sv-tile-grid {
    height: auto;
    max-height: none;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.25rem 0;
  }

  /* Fix tall tile not spanning rows on mobile */
  #solutionScene .sv-tile--tall {
    grid-row: auto;
  }

  #solutionScene .sv-tile {
    padding: 0.6rem;
    min-height: 80px;
  }

  /* Prevent stat number from overflowing tile */
  #solutionScene .sv-stat-num {
    font-size: 1.25rem;
    line-height: 1.1;
  }

  #solutionScene .sv-tile-label {
    font-size: 0.55rem;
  }

  /* Flow pipeline and output anim — no fixed height */
  #solutionScene .sv-flow-pipeline,
  #solutionScene .cin-output-anim {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  /* ── Our Story section (about.html #aboutStoryScene) ── */
  #aboutStoryScene {
    height: auto;
    max-height: none;
    overflow: visible;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 1rem;
    gap: 1.25rem;
    align-items: start;
  }

  #aboutStoryScene .cin-step-rail {
    min-height: auto;
    overflow: visible;
  }

  #aboutStoryScene .cin-panel-display {
    height: auto;
    align-self: auto;
  }

  #aboutStoryScene .cin-display-glass {
    min-height: 260px;
    height: auto;
  }

  #aboutStoryScene .cin-display-visual {
    min-height: 160px;
  }

  /* Build visual: shrink horizontal bar chart so it fits on mobile */
  #aboutStoryScene .asc-build-stack {
    padding: 8px 8px 12px;
    gap: 5px;
  }

  #aboutStoryScene .asc-stack-block {
    padding: 8px 10px;
    font-size: 10px;
  }

  #aboutStoryScene .asc-stack-peak {
    margin-left: 6px;
    padding-left: 10px;
    padding-bottom: 8px;
  }

  #aboutStoryScene .asc-peak-logo {
    width: 28px;
    height: 28px;
  }

  #aboutStoryScene .asc-peak-text {
    font-size: 13px;
  }

  /* Windows visual: scale down on mobile */
  #aboutStoryScene .asc-windows {
    transform: scale(0.85);
    transform-origin: top center;
  }
}


/* =========================================================
   PLATFORM CAPABILITIES — APPLE-STYLE TAB SHOWCASE
   ========================================================= */

.cap-tab-showcase {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Large visual display ──────────────────────────────── */
.cap-tab-display {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0, 52, 103, 0.06),
    0 12px 40px rgba(0, 52, 103, 0.10),
    0 0 0 1px rgba(0, 52, 103, 0.07);
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.cap-tab-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cap-tab-panel--active {
  opacity: 1;
  pointer-events: auto;
  /* stays absolute — display height is fixed, not content-driven */
}

/*
  Inner scaler: fixed-size box matching the natural animation canvas.
  scale(2) zooms the whole assembly to fill the 16:9 display panel
  without distorting individual elements.
*/
.cap-tab-inner {
  width: 260px;
  height: 200px;
  flex-shrink: 0;
  position: relative;
  transform: scale(2);
  transform-origin: center center;
}

/* Dot histogram: absolutely fills the whole panel (% coords) */
.cap-tab-panel .anim-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Per-variant tinted backgrounds (reuse existing tokens) */
.cap-tab-panel.capability-glass-blue {
  background: linear-gradient(155deg, rgba(0, 82, 163, .06) 0%, rgba(0, 102, 204, .14) 100%);
}

.cap-tab-panel.capability-glass-teal {
  background: linear-gradient(155deg, rgba(0, 150, 136, .06) 0%, rgba(0, 184, 169, .14) 100%);
}

.cap-tab-panel.capability-glass-green {
  background: linear-gradient(155deg, rgba(0, 150, 90, .06) 0%, rgba(0, 229, 160, .14) 100%);
}

/* ── Tab strip ─────────────────────────────────────────── */
.cap-tab-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 50px;
  padding: 5px;
  margin-bottom: 24px;
}

.cap-tab {
  font-family: var(--font-primary, 'Inter', sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.55);
  background: transparent;
  border: none;
  border-radius: 40px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.cap-tab:hover {
  color: var(--slate-800, #1e293b);
  background: rgba(255, 255, 255, 0.6);
}

.cap-tab--active {
  color: var(--slate-900, #0f172a);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 1px 4px rgba(0, 52, 103, 0.10),
    0 2px 8px rgba(0, 52, 103, 0.07);
}

/* ── Description block ─────────────────────────────────── */
.cap-tab-desc-wrap {
  position: relative;
  min-height: 3.5rem;
  text-align: center;
}

.cap-tab-desc {
  position: absolute;
  inset: 0;
  font-size: 1rem;
  color: var(--slate-600, #475569);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.cap-tab-desc--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  /* takes space */
}

/* ── Dark Mode Overrides ───────────────────────────────── */
:root[data-theme="dark"] .cap-tab-display {
  background: rgba(15, 23, 42, 0.4);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

:root[data-theme="dark"] .cap-tab-panel.capability-glass-blue {
  background: linear-gradient(155deg, rgba(0, 102, 204, .06) 0%, rgba(0, 122, 255, .14) 100%);
}

:root[data-theme="dark"] .cap-tab-panel.capability-glass-teal {
  background: linear-gradient(155deg, rgba(0, 184, 169, .06) 0%, rgba(0, 212, 197, .14) 100%);
}

:root[data-theme="dark"] .cap-tab-panel.capability-glass-green {
  background: linear-gradient(155deg, rgba(0, 229, 160, .06) 0%, rgba(0, 255, 180, .14) 100%);
}

:root[data-theme="dark"] .cap-tab-strip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .cap-tab {
  color: rgba(255, 255, 255, 0.55);
}

:root[data-theme="dark"] .cap-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .cap-tab--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .cap-tab-desc {
  color: var(--slate-400, #94a3b8);
}

/* ── Mobile ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cap-tab-display {
    aspect-ratio: 4 / 3;
    max-height: 340px;
    border-radius: 16px;
  }

  .cap-tab-strip {
    gap: 3px;
    padding: 4px;
  }

  .cap-tab {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 640px) {
  .cap-tab-display {
    aspect-ratio: 3 / 2;
    max-height: 260px;
    border-radius: 14px;
  }

  .cap-tab-strip {
    border-radius: 14px;
  }

  .cap-tab-desc {
    font-size: 0.9rem;
  }
}