/* ============================================================
   BOREALIS HEALTH — style.css
   Dark-first, clinical & authoritative, medical imaging AI
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw,   1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem + 4vw,      5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem;  --space-3: 0.75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --content-default: 1280px;
  --content-narrow: 720px;
  --radius-sm: 0.375rem; --radius-md: 0.5rem;
  --radius-lg: 0.75rem;  --radius-xl: 1rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 180ms var(--ease-out);

  /* Fonts */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

/* --- DARK PALETTE (default) --- */
:root, [data-theme="dark"] {
  --color-bg:         #0a0c1c;
  --color-surface:    #12152d;
  --color-surface-2:  #191c3c;
  --color-border:     #1e2448;
  --color-border-hi:  #2a3060;

  --color-text:       #dce4f8;
  --color-text-muted: #8c9bc3;
  --color-text-faint: #3a4270;

  /* Primary — aurora teal */
  --color-primary:        #00e6ff;
  --color-primary-hover:  #00c8e0;
  --color-primary-dim:    rgba(0, 230, 255, 0.12);
  --color-primary-glow:   rgba(0, 230, 255, 0.06);

  /* Accent spectrum — pulled from hero photo */
  --color-cobalt:         #33a0fb;
  --color-violet:         #6e54a0;
  --color-magenta:        #b43cb4;
  --color-rose:           #dc508c;
  --color-gold:           #ffd250;
  --color-amber:          #ffa03c;

  --color-accent-warm: #ffd250;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.6);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.7);
}

/* --- LIGHT PALETTE --- */
[data-theme="light"] {
  --color-bg:         #f4f6fb;
  --color-surface:    #ffffff;
  --color-surface-2:  #f0f3fa;
  --color-border:     #dde2ef;
  --color-border-hi:  #c8d0e8;

  --color-text:       #0d1124;
  --color-text-muted: #5a6380;
  --color-text-faint: #a0aac0;

  --color-primary:        #0a7a85;
  --color-primary-hover:  #085f69;
  --color-primary-dim:    rgba(10, 122, 133, 0.08);
  --color-primary-glow:   rgba(10, 122, 133, 0.04);

  --color-accent-warm: #8a6b3a;

  --shadow-sm: 0 1px 3px rgba(0,0,20,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,20,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,20,0.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg: #f4f6fb; --color-surface: #ffffff; --color-surface-2: #f0f3fa;
    --color-border: #dde2ef; --color-border-hi: #c8d0e8;
    --color-text: #0d1124; --color-text-muted: #5a6380; --color-text-faint: #a0aac0;
    --color-primary: #0a7a85; --color-primary-hover: #085f69;
    --color-primary-dim: rgba(10,122,133,0.08); --color-primary-glow: rgba(10,122,133,0.04);
    --color-accent-warm: #8a6b3a;
    --shadow-sm: 0 1px 3px rgba(0,0,20,0.08); --shadow-md: 0 4px 16px rgba(0,0,20,0.10);
    --shadow-lg: 0 16px 48px rgba(0,0,20,0.12);
  }
}

/* --- BASE RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth; scroll-padding-top: var(--space-20);
  text-rendering: optimizeLegibility; hanging-punctuation: first last;
}
body {
  min-height: 100dvh; font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background-color: var(--color-bg); line-height: 1.65;
}
img, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"] { list-style: none; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.15; }
p, li { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--color-primary-dim); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- LAYOUT --- */
.container {
  width: 100%; max-width: var(--content-default);
  margin-inline: auto; padding-inline: clamp(var(--space-5), 4vw, var(--space-12));
}
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }

/* --- TYPOGRAPHY HELPERS --- */
.section-eyebrow {
  font-family: var(--font-body); font-size: var(--text-xs);
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: var(--space-4);
}
.section-header { max-width: 640px; margin-bottom: var(--space-12); }
.section-header h2 {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 400; color: var(--color-text); margin-top: var(--space-3);
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--color-primary); color: #0d0f14;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-md);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--color-primary-hover); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 196, 207, 0.25);
}
[data-theme="light"] .btn-primary { color: #ffffff; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: rgba(220,228,248,0.95); font-size: var(--text-sm); font-weight: 500;
  padding: var(--space-3) var(--space-6); border: 1.5px solid rgba(0,230,255,0.35);
  border-radius: var(--radius-md); transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.btn-ghost:hover { border-color: rgba(0,230,255,0.7); background: rgba(0,230,255,0.06); }
.btn-ghost:hover { color: var(--color-text); border-color: var(--color-text-muted); }

/* --- HEADER --- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 80%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.header--scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex; align-items: center; gap: var(--space-8);
  max-width: var(--content-default); margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-12));
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0;
  color: var(--color-text); transition: opacity var(--transition);
}
.logo:hover { opacity: 0.8; }
.logo-icon { border-radius: 50%; display: block; flex-shrink: 0; object-fit: cover; object-position: center top; }
.logo-text { font-size: var(--text-sm); font-weight: 600; letter-spacing: -0.01em; }
/* Hero icon: small, bottom-right corner, very subtle */
.hero-icon-watermark {
  position: absolute; right: 3%; bottom: 14%;
  width: clamp(56px, 7vw, 96px); height: auto;
  opacity: 0.15; pointer-events: none; user-select: none;
}
@media (max-width: 900px) { .hero-icon-watermark { display: none; } }
.nav { display: flex; align-items: center; gap: var(--space-6); margin-left: auto; }
.nav a {
  font-size: var(--text-sm); color: var(--color-text-muted); font-weight: 450;
  transition: color var(--transition);
}
.nav a:hover { color: var(--color-text); }
.nav a.nav-active { color: var(--color-text); }
.nav-cta {
  background: var(--color-primary-dim) !important; color: var(--color-primary) !important;
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
  font-weight: 600 !important; border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
  transition: background var(--transition), color var(--transition) !important;
}
.nav-cta:hover { background: var(--color-primary) !important; color: #0d0f14 !important; }
[data-theme="light"] .nav-cta:hover { color: #ffffff !important; }
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  color: var(--color-text-muted); border: 1px solid var(--color-border);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  flex-shrink: 0; background: transparent;
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-border-hi); background: var(--color-surface); }

/* ── MOBILE HAMBURGER NAV ──────────────────────────────────────── */
.nav-hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  margin-left: var(--space-2);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 210;
  transition: border-color var(--transition), background var(--transition);
}
.nav-hamburger:hover { border-color: var(--color-border-hi); }
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #00DCE6;
  border-radius: 2px;
  position: absolute;
  left: 11px;
  transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}
.nav-hamburger span:nth-child(1) { top: 14px; }
.nav-hamburger span:nth-child(2) { top: 21px; }
.nav-hamburger span:nth-child(3) { top: 28px; }
.nav-hamburger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.body.nav-lock, body.nav-lock { overflow: hidden; }

@media (max-width: 768px) {
  .nav-hamburger {
    display: inline-flex;
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 300;
    background: rgba(10, 12, 28, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .nav {
    position: fixed; inset: 0;
    display: none;
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: var(--space-6);
    background: rgba(10, 12, 28, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 200;
    margin: 0;
    padding: 96px var(--space-6) var(--space-10);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a {
    font-size: 1.25rem;
    color: #DCE4F8;
    font-weight: 500;
    min-height: 56px;
    display: flex; align-items: center;
    padding: 0 var(--space-4);
    width: 100%;
    max-width: 320px;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 220, 230, 0.10);
  }
  .nav a:last-child { border-bottom: none; }
  .nav .nav-cta {
    margin-top: var(--space-2);
    padding: var(--space-3) var(--space-6);
    min-height: 56px;
    max-width: 320px;
    width: 100%;
    justify-content: center;
  }
}

/* --- HERO --- */
.hero {
  position: relative; overflow: hidden; min-height: 92vh;
  display: flex; align-items: center;
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
  background: #080a10;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
/* Aurora image hero background */
.aurora-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.92;
  transform: scale(1.02);
}
@media (max-width: 768px) {
  .aurora-hero-img {
    object-position: center 15%; /* show curtains, not just treeline on mobile */
  }
}
[data-theme="light"] .aurora-hero-img { opacity: 0.22; }
/* Dark gradient overlay so text stays readable */
.aurora-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(8,10,16,0.15) 0%,
      rgba(8,10,16,0.05) 25%,
      rgba(8,10,16,0.35) 60%,
      rgba(8,10,16,0.80) 100%
    );
}
/* Keep canvas in DOM (used by aurora.js) but hide it */
#aurora-canvas { display: none !important; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.10;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
[data-theme="light"] .grid-overlay { display: none; } /* hidden in light mode — jarring over aurora hero photo */

/* Header scroll states */
.header {
  transition: background var(--transition), box-shadow var(--transition),
              transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}
.header.scrolled {
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--color-border);
}
.header.hidden { transform: translateY(-100%); }

/* GSAP initial states — elements start invisible, GSAP animates them in */
.hero-eyebrow, #hero-heading, .hero-sub, .hero-actions, .hero-stats {
  will-change: transform, opacity;
}
.service-card, .why-card, .timeline-item, .failure-item, .crisis-card,
.domains-diagram, .engagement-item, .credentials-bar,
.contact-content, .contact-mark {
  will-change: transform, opacity;
}
[data-theme="light"] .aurora-1 { opacity: 0.12; }
[data-theme="light"] .aurora-2 { opacity: 0.08; }
[data-theme="light"] .aurora-3 { opacity: 0.07; }

/* ── LIGHT MODE: Section background overrides ─────────────────── */
[data-theme="light"] .hero { background: #1a1c2e; } /* hero always dark — aurora photo */
[data-theme="light"] .about.section {
  background: var(--color-bg);
}
[data-theme="light"] .about.section h2 { color: var(--color-text); }
[data-theme="light"] .about.section p  { color: var(--color-text-muted); }
[data-theme="light"] .about.section .section-eyebrow { color: var(--color-primary); }
[data-theme="light"] .domain-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="light"] .domain-headline { color: var(--color-text) !important; }
[data-theme="light"] .domain-list li   { color: var(--color-text-muted) !important; }
[data-theme="light"] .domain-proof     { color: var(--color-text-faint) !important; border-top-color: var(--color-border) !important; }
[data-theme="light"] .venn-panel {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}
[data-theme="light"] .bubble-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="light"] .sphere-label span { color: var(--color-text-muted); }
/* timeline-desc::after light mode override — see below */

/* ── LIGHT MODE: Text & component contrast fixes ─────────────── */
[data-theme="light"] .domain-intersection {
  background: rgba(10,122,133,0.06);
  border-color: rgba(10,122,133,0.20);
}
[data-theme="light"] .domain-intersection-text {
  color: var(--color-text-muted);
}
[data-theme="light"] .domain-intersection-text strong {
  color: var(--color-text);
}
[data-theme="light"] .domain-intersection-mark {
  background: var(--color-primary-dim);
  color: var(--color-primary);
}
[data-theme="light"] .credentials-bar {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}
[data-theme="light"] .credentials-bar * { color: var(--color-text-muted); }
[data-theme="light"] .why-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="light"] .why-card h3,
[data-theme="light"] .why-card p { color: var(--color-text); }
[data-theme="light"] .failure-item,
[data-theme="light"] .crisis-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="light"] .failure-item *,
[data-theme="light"] .crisis-card * { color: var(--color-text); }
[data-theme="light"] .crisis-visual {
  background: rgba(0,0,0,0.04);
}
[data-theme="light"] .crisis-visual svg line {
  stroke: rgba(0,0,0,0.08) !important;
}
[data-theme="light"] .bubble-card {
  background: var(--color-surface);
}
[data-theme="light"] .bubble-card * { color: var(--color-text-muted); }
/* Sphere panel stays dark in both themes — word depth effect needs dark bg */
[data-theme="light"] .sphere-venn-panel {
  background: #12152d;
  border-color: rgba(0,230,255,0.15);
}
[data-theme="light"] .sphere-venn-panel .sphere-label span {
  color: rgba(220,228,248,0.60);
}
[data-theme="light"] .sphere-centre-badge {
  background: rgba(0,230,255,0.08);
  border-color: rgba(0,230,255,0.25);
}
[data-theme="light"] .sphere-centre-badge * {
  color: #dce4f8 !important;
}
[data-theme="light"] .about.section h2 { color: var(--color-text); }
[data-theme="light"] .about.section p   { color: var(--color-text-muted); }
[data-theme="light"] .timeline-period   { color: var(--color-text); }
[data-theme="light"] .timeline-role     { color: var(--color-text-muted); }
[data-theme="light"] .timeline-desc     { color: var(--color-text-muted); }
[data-theme="light"] .service-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="light"] .service-card h3,
[data-theme="light"] .service-card p { color: var(--color-text); }
[data-theme="light"] .engagement-item {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="light"] .engagement-item * { color: var(--color-text-muted); }
/* Contact section stays dark — aurora SVG needs dark background */
[data-theme="light"] .contact {
  background: linear-gradient(135deg, #12152d 60%, #0e1630 100%) !important;
  border-top-color: rgba(0,230,255,0.12) !important;
}
[data-theme="light"] .contact-content h2,
[data-theme="light"] .contact-content p,
[data-theme="light"] .contact-content * { color: #dce4f8; }
[data-theme="light"] .contact-email { color: #00e6ff !important; }
[data-theme="light"] .footer {
  background: #0a0c1c;
  border-top-color: rgba(0, 230, 255, 0.18);
}
[data-theme="light"] .footer * { color: rgba(220,228,248,0.55); }

/* ── FOOTER LOGO FIX ─────────────────────────────────────── */
.footer-logo-icon {
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 0 0 1.5px rgba(0, 230, 255, 0.35);
}

/* ── LIGHT MODE — WCAG CONTRAST FIXES ───────────────────── */
/* Section eyebrows: deeper teal for sufficient contrast on light bg */
[data-theme="light"] .section-eyebrow {
  color: #086070 !important;  /* ~5.8:1 on #f4f6fb */
}

/* Why Now section — headings were rendering near-invisible */
[data-theme="light"] .why-now h2,
[data-theme="light"] .why-now .section-header h2 {
  color: #0d1124 !important;  /* near-black, 14:1 */
}
[data-theme="light"] .why-now p {
  color: #2a3150 !important;
}
[data-theme="light"] .why-card-eyebrow {
  color: #086070 !important;
}

/* Services section headings */
[data-theme="light"] .services h2,
[data-theme="light"] .services .section-header h2 {
  color: #0d1124 !important;
}
[data-theme="light"] .services .section-header p {
  color: #2a3150 !important;
}

/* Service card body text — was too muted */
[data-theme="light"] .service-card h3 { color: #0d1124 !important; }
[data-theme="light"] .service-card p   { color: #2a3150 !important; }
[data-theme="light"] .service-card li  { color: #2a3150 !important; }
[data-theme="light"] .service-card .service-eyebrow { color: #086070 !important; }

/* Engagement section */
[data-theme="light"] .engagement-section-title { color: #0d1124 !important; }
[data-theme="light"] .engagement-card-title { color: #0d1124 !important; }
[data-theme="light"] .engagement-card-desc  { color: #2a3150 !important; }
[data-theme="light"] .engagement-card-list li { color: #2a3150 !important; }
[data-theme="light"] .engagement-card-meta { color: #086070 !important; }
[data-theme="light"] .engagement-header .section-eyebrow { color: #086070 !important; }

/* ── HERO STAT CARD — light mode glass treatment ─────────── */
/* The white stat card floating on dark aurora looks broken.  */
/* Force it to stay dark glass, matching the aurora hero.     */
[data-theme="light"] .hero-stats {
  background: rgba(10, 12, 28, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(0, 230, 255, 0.15);
}
[data-theme="light"] .hero-stats .stat-number { color: #dce4f8 !important; }
[data-theme="light"] .hero-stats .stat-unit   { color: #dce4f8 !important; }
[data-theme="light"] .hero-stats .stat-label  { color: rgba(220,228,248,0.65) !important; }
[data-theme="light"] .hero-stats .stat-divider { background: rgba(0,230,255,0.15) !important; }

/* ── SECTION DIVIDERS — light mode needs visual structure ── */
/* Dark mode: atmospheric gaps feel intentional.             */
/* Light mode: same gaps look like missing content.          */
[data-theme="light"] .section-rule {
  border-top: 1px solid rgba(0, 100, 120, 0.12);
}
[data-theme="light"] .services.section,
[data-theme="light"] .why-now.section {
  border-top: 1px solid rgba(0, 100, 120, 0.08);
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }
/* Aurora image is always dark — force light text in hero regardless of theme */
.hero .hero-eyebrow { color: #00e6ff; }
.hero h1 { color: #dce4f8; }
.hero h1 em { color: #00e6ff; }
.hero .hero-sub { color: rgba(220,228,248,0.88); }
/* GSAP safety net: content must always be visible even if GSAP fails */
.service-card, .why-card, .timeline-item, .failure-item, .crisis-card,
.domains-diagram, .engagement-item, .credentials-bar,
.contact-content, .contact-mark, .section-header {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* Safety net: hero content must always be visible (GSAP fallback) */
.hero-eyebrow, #hero-heading, .hero-sub, .hero-actions, .hero-stats {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
.hero-eyebrow {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-primary);
  margin-bottom: var(--space-5);
}
h1 {
  font-family: var(--font-display); font-size: var(--text-3xl);
  font-weight: 400; line-height: 1.08; color: var(--color-text);
  margin-bottom: var(--space-6);
}
h1 em {
  font-style: italic; color: var(--color-primary);
}
.hero-sub {
  font-size: var(--text-base); color: var(--color-text-muted);
  max-width: 580px; line-height: 1.7; margin-bottom: var(--space-8);
}
.hero-actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-10); }

/* Stats bar — 2×2 grid, always balanced */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1) var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-8);
  width: fit-content;
}
@media (max-width: 600px) {
  .hero-stats { width: 100%; max-width: 100%; padding: var(--space-5); }
}
.stat { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) 0; position: relative; }
.stat:nth-child(-n+2) {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-4);
}
.stat:nth-child(n+3) { padding-top: var(--space-4); }
.stat-number {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 400; color: var(--color-text); line-height: 1;
}
.stat-unit { font-size: 0.52em; color: var(--color-primary); vertical-align: super; font-weight: 700; }
.stat-label { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 500; margin-top: 2px; }
.stat-divider { display: none; } /* replaced by grid */

/* --- SERVICES --- */
.services { background: var(--color-surface); }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.services-grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) {
  .services-grid--three { grid-template-columns: 1fr 1fr; }
  .services-grid--three .service-card:last-child { grid-column: 1 / -1; max-width: 480px; }
}
.service-card {
  padding: var(--space-8); border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-cobalt);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
}
.service-card:hover { border-color: var(--color-border-hi); border-left-color: var(--color-primary); box-shadow: var(--shadow-md); }
.service-card--accent {
  border-color: color-mix(in srgb, var(--color-primary) 25%, transparent);
  border-left-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 4%, var(--color-bg));
}
.service-card--accent:hover {
  border-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
  border-left-color: var(--color-primary);
}
.service-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--color-primary-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); margin-bottom: var(--space-5);
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.service-card h3 {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 400; color: var(--color-text); margin-bottom: var(--space-3);
}
.service-card p {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.7; margin-bottom: var(--space-5);
}
.service-list { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }
.service-list li {
  font-size: var(--text-sm); color: var(--color-text-muted);
  padding-left: var(--space-4); position: relative;
}
.service-list li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-primary); opacity: 0.7;
}
.service-market {
  font-size: var(--text-xs); color: var(--color-text-faint);
  font-weight: 500; letter-spacing: 0.04em;
  padding-top: var(--space-4); border-top: 1px solid var(--color-border);
}

/* --- ENGAGEMENT NOTE --- */
/* ══ ENGAGEMENT CARDS ════════════════════════════════════════ */
.engagement-section {
  margin-top: var(--space-12);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-8);
}
.engagement-header {
  margin-bottom: var(--space-6);
}
.engagement-section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}
.engagement-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.engagement-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.engagement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.engagement-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
}
.engagement-card--teal::before  { background: var(--color-primary); }
.engagement-card--violet::before { background: #8b7cc8; }
.engagement-card--gold::before   { background: var(--color-accent-warm); }
.engagement-card-icon {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4); margin-top: var(--space-2);
}
.engagement-card--teal  .engagement-card-icon { background: var(--color-primary-dim); color: var(--color-primary); }
.engagement-card--violet .engagement-card-icon { background: rgba(139,124,200,0.12); color: #8b7cc8; }
.engagement-card--gold  .engagement-card-icon { background: rgba(200,169,110,0.1); color: var(--color-accent-warm); }
.engagement-card-meta {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.engagement-card--teal  .engagement-card-meta { color: var(--color-primary); }
.engagement-card--violet .engagement-card-meta { color: #9b8dd4; }
.engagement-card--gold  .engagement-card-meta { color: var(--color-accent-warm); }
.engagement-card-title {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 400; color: var(--color-text);
  margin: 0 0 var(--space-3);
}
.engagement-card-desc {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.75; margin: 0 0 var(--space-3);
}
.engagement-card-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.engagement-card-list li {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.6; padding-left: var(--space-5); position: relative;
}
.engagement-card-list li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%;
}
.engagement-card--teal  .engagement-card-list li::before { background: var(--color-primary); }
.engagement-card--violet .engagement-card-list li::before { background: #8b7cc8; }
.engagement-card--gold  .engagement-card-list li::before { background: var(--color-accent-warm); }
/* Light mode */
[data-theme="light"] .engagement-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="light"] .engagement-card-title { color: var(--color-text); }
[data-theme="light"] .engagement-card-desc  { color: var(--color-text-muted); }
/* Mobile */
@media (max-width: 900px) {
  .engagement-cards { grid-template-columns: 1fr; }
}

/* --- FAILURE GRID (Why Now section) --- */
.why-card--dark {
  background: var(--color-surface-2);
  border-color: var(--color-border-hi);
}
.failure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  margin-top: var(--space-2);
}
.failure-intro h3 {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 400; color: var(--color-text);
  margin-bottom: var(--space-4); margin-top: 0;
}
[data-theme="light"] .failure-intro h3 {
  color: #0d1124; /* near-black — was rendering too faint on light bg */
}
.failure-intro p {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.75; margin-bottom: var(--space-4);
}
.failure-list {
  display: flex; flex-direction: column; gap: var(--space-5);
}
.failure-item {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.failure-item:last-child { border-bottom: none; padding-bottom: 0; }
.failure-x {
  font-size: var(--text-base); color: var(--color-rose);
  flex-shrink: 0; margin-top: 2px;
  font-weight: 700;
}
.failure-name {
  display: block; font-size: var(--text-sm); font-weight: 600;
  color: var(--color-text); margin-bottom: var(--space-1);
}
.failure-detail {
  display: block; font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.65;
}
@media (max-width: 900px) {
  .failure-grid { grid-template-columns: 1fr; }
}

/* --- WHY NOW --- */
.why-now { background: var(--color-bg); }
.section-intro {
  font-size: var(--text-base); color: var(--color-text-muted);
  max-width: 600px; line-height: 1.7; margin-top: var(--space-4);
}
.why-now-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.why-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.why-card .adoption-visual {
  flex: 1;
  display: flex;
  align-items: center;
}
.why-card .adoption-visual .curve-svg {
  width: 100%;
  height: auto;
}
.why-card:hover {
  border-color: var(--color-border-hi);
  box-shadow: var(--shadow-md);
}
.why-card--wide {
  grid-column: 1 / -1;
}
.why-bullets {
  list-style: none; padding: 0; margin: var(--space-3) 0 var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.why-bullets li {
  font-size: var(--text-sm); color: var(--color-text-muted);
  padding-left: var(--space-5); position: relative; line-height: 1.6;
}
.why-bullets li::before {
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--color-primary);
}
.why-bullets li strong { color: var(--color-text); }

/* ── SILICON NORTH STRIP ────────────────────────────────── */
.silicon-north-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-hi);
  border-bottom: 1px solid var(--color-border-hi);
  padding: var(--space-6) 0;
  margin-top: var(--space-8);
  /* Subtle teal left accent so the strip is unmissable on dark bg */
  box-shadow: inset 3px 0 0 rgba(0, 230, 255, 0.35);
}
.sn-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.sn-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}
[data-theme="light"] .sn-label {
  color: #065f6b; /* deeper teal — passes WCAG AA on light surface */
}
.sn-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.sn-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.sn-num {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 400;
  color: var(--color-primary);  /* teal — pops against dark bg */
  line-height: 1;
}
.sn-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Inline bold for mid-sentence emphasis — stays inline on mobile */
.inline-bold {
  display: inline;
  font-weight: 700;
  color: var(--color-text);
}
[data-theme="light"] .silicon-north-strip {
  background: var(--color-surface);
}
@media (max-width: 640px) {
  .sn-stats { grid-template-columns: repeat(2, 1fr); }
}

.structural-catalyst-header {
  padding-top: var(--space-10);
  margin-bottom: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.structural-catalyst-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin: var(--space-2) 0 0;
  line-height: 1.25;
}

.adoption-callout {
  display: flex; align-items: baseline; gap: var(--space-3);
  margin-top: auto; padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.adoption-callout-stat {
  font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400; color: #8b7cc8; flex-shrink: 0; line-height: 1;
}
.adoption-callout-text {
  font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6;
}
.adoption-callout-text em { color: var(--color-text); font-style: normal; font-weight: 600; }

.why-card-eyebrow {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: var(--space-4);
}
.why-card h3 {
  font-family: var(--font-display); font-size: var(--text-lg);
  font-weight: 400; color: var(--color-text);
  margin-bottom: var(--space-3); margin-top: var(--space-4);
}
.why-card p {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.7;
}

/* Adoption curve SVG card */
.why-card-visual {
  width: 100%; border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.curve-svg {
  width: 100%; height: auto; display: block;
  padding: var(--space-3);
}

/* AI cost stats */
.why-card-stats {
  display: flex; flex-direction: column;
  gap: var(--space-4); margin-bottom: var(--space-2);
}
.why-stat {
  display: flex; align-items: baseline; gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.why-stat:last-child { border-bottom: none; padding-bottom: 0; }
.why-stat-num {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 400; line-height: 1; flex-shrink: 0;
}
.why-stat-label {
  font-size: var(--text-sm); color: var(--color-text-muted);
}

/* Crisis grid */
.crisis-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6); margin-bottom: var(--space-6);
}
/* New visual-first crisis cards */
.crisis-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color 0.2s ease;
}
.crisis-card:hover { border-color: var(--color-border-hi); }
.crisis-visual {
  width: 100%; border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0,0,0,0.25);
}
.crisis-visual svg { display: block; width: 100%; height: auto; }
.crisis-label {
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.crisis-stat {
  display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap;
}
.crisis-stat-num {
  font-size: 1.6rem; font-weight: 700; line-height: 1;
}
.crisis-stat-sub {
  font-size: var(--text-sm); color: var(--color-text-muted); white-space: nowrap;
}
.crisis-body {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.65;
}
.crisis-callout {
  background: color-mix(in srgb, var(--color-primary) 6%, var(--color-bg));
  border: 1px solid color-mix(in srgb, var(--color-primary) 22%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm); font-weight: 500;
  color: var(--color-text); line-height: 1.6;
}

/* About strong text */
.about-left p strong {
  color: var(--color-text);
  font-weight: 600;
}

@media (max-width: 900px) {
  .why-now-grid { grid-template-columns: 1fr; }
  .why-card--wide { grid-column: 1; }
  .crisis-grid { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* --- COST CALLOUT --- */
.cost-callout {
  display: flex; align-items: baseline; gap: var(--space-3);
  background: color-mix(in srgb, var(--color-primary) 6%, var(--color-surface));
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, transparent);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.cost-callout-num {
  font-family: var(--font-display); font-size: var(--text-lg);
  color: var(--color-primary); font-weight: 400; line-height: 1;
  white-space: nowrap;
}
.cost-callout-label {
  font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5;
}

/* --- SECTION RULE (gradient fade) --- */
.section-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,230,255,0.15) 20%, rgba(0,230,255,0.25) 50%, rgba(0,230,255,0.15) 80%, transparent 100%);
  border: none;
  margin: 0;
}

/* --- SECTION BACKGROUND RHYTHM (dark mode default) --- */
.section--services { background: #0F1A2E; }
.section--why-now  { background: #080D1A; }
.section--about    {
  background:
    radial-gradient(ellipse 60% 30% at 50% 0%, rgba(139,124,200,0.08) 0%, transparent 70%),
    #0A0C1C;
}
.section--contact  { background: #0D1020; }

/* Restore contact gradient on top of base color */
.section--contact.contact {
  background:
    linear-gradient(135deg, rgba(18, 21, 45, 0.35) 60%, rgba(0, 230, 255, 0.04) 100%),
    #0D1020;
}

/* Override existing .services/.why-now/.about backgrounds to use new tokens */
.services.section--services { background: #0F1A2E; }
.why-now.section--why-now { background: #080D1A; }
.about.section--about {
  background:
    radial-gradient(ellipse 60% 30% at 50% 0%, rgba(139,124,200,0.08) 0%, transparent 70%),
    #0A0C1C;
}



/* ══ ABOUT SECTION — dark bg to unify with Venn panel ══ */
.about.section {
  background: #0a0c1c;
}
.about.section .section-eyebrow { color: rgba(0,230,255,0.75); }
.about.section h2 { color: #dce4f8; }
.about.section p { color: rgba(220,228,248,0.72); }

/* ══ ABOUT GRID ══ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 6vw, var(--space-24));
  margin-bottom: var(--space-16);
}
.about-grid--timeline-only { grid-template-columns: 1fr; }
.about-grid--timeline-only .about-right { max-width: 680px; }
.about-left .section-eyebrow { margin-bottom: var(--space-3); }
.about-left h2 {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 400; color: var(--color-text);
  margin-bottom: var(--space-6); margin-top: var(--space-3);
}
.about-left p {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.75; margin-bottom: var(--space-4);
}
.about-left p strong { color: var(--color-text); }
.about-left .btn-primary { margin-top: var(--space-4); }

/* ══ CAREER TIMELINE ══ */
.career-timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  padding: var(--space-5) 0 var(--space-5) var(--space-6);
  border-left: 1px solid var(--color-border);
  position: relative;
  transition: border-color var(--transition);
}
.timeline-item::before {
  content: ''; position: absolute; left: -4px; top: var(--space-5);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-primary); opacity: 0.5;
  transition: opacity var(--transition);
}
.timeline-item:first-child::before { opacity: 1; }
.timeline-item:first-child { border-left-color: var(--color-primary); }
.timeline-period {
  font-size: var(--text-xs); color: var(--color-primary);
  font-weight: 600; letter-spacing: 0.06em; margin-bottom: var(--space-1);
}
.timeline-role {
  font-size: var(--text-sm); color: var(--color-text);
  font-weight: 600; margin-bottom: var(--space-1);
}
.timeline-org {
  font-size: var(--text-sm); color: var(--color-accent-warm);
  font-weight: 500; margin-bottom: var(--space-2);
}
.timeline-desc {
  font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.8;
  max-height: 4.8em; overflow: hidden; position: relative;
  transition: max-height 0.4s ease;
}
.timeline-desc strong {
  color: var(--color-text);
  font-weight: 600;
  display: block;
  margin-bottom: 0.15em;
}
.timeline-desc::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2.5em;
  background: linear-gradient(to bottom, rgba(10,12,28,0), rgba(10,12,28,1));
  pointer-events: none;
  transition: opacity 0.3s ease;
}
[data-theme="light"] .timeline-desc::after {
  background: linear-gradient(to bottom, rgba(244,246,251,0), rgba(244,246,251,1));
}
.timeline-item.expanded .timeline-desc { max-height: 120em; }
.timeline-item.expanded .timeline-desc::after { opacity: 0; }
.timeline-expand {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-xs); color: var(--color-primary);
  cursor: pointer; margin-top: var(--space-2);
  background: none; border: none; padding: 0;
  font-family: var(--font-body); font-weight: 500;
  opacity: 0.8; transition: opacity 0.2s;
}
.timeline-expand:hover { opacity: 1; }
.timeline-expand svg { transition: transform 0.3s ease; }
.timeline-item.expanded .timeline-expand svg { transform: rotate(180deg); }
.timeline-highlight {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.timeline-tag {
  font-size: 0.68rem; font-weight: 600;
  padding: 2px 8px; border-radius: 20px;
  background: var(--color-primary-dim);
  color: var(--color-primary);
  white-space: nowrap;
}

/* ══ CREDENTIALS BAR ══ */
.credentials-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-6);
  padding: var(--space-6) var(--space-8);
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.credential { display: flex; flex-direction: column; gap: 2px; }
.cred-label { font-size: var(--text-xs); font-weight: 600; color: var(--color-text); }
.cred-org { font-size: var(--text-xs); color: var(--color-text-muted); }
.cred-divider { width: 1px; height: 32px; background: var(--color-border); flex-shrink: 0; }

/* ══ DOMAIN CARDS (detail cards below Venn) ══ */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
.domain-card {
  background: #12152d;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.domain-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.domain-card--clinical::before  { background: var(--color-primary); }
.domain-card--technology::before { background: #8b7cc8; }
.domain-card--business::before  { background: var(--color-accent-warm); }
.domain-card--clinical  { border-top: 4px solid var(--color-primary) !important; }
[data-theme="light"] .domain-card--clinical  { border-top: 3px solid var(--color-primary); }
[data-theme="light"] .domain-card--technology { border-top: 3px solid #8b7cc8; }
[data-theme="light"] .domain-card--business  { border-top: 3px solid var(--color-accent-warm); }
.domain-card--technology { border-top: 4px solid #8b7cc8 !important; }
.domain-card--business  { border-top: 4px solid var(--color-accent-warm) !important; }

.domain-card:hover { border-color: rgba(255,255,255,0.15); box-shadow: 0 8px 40px rgba(0,0,0,0.35); transform: translateY(-2px); }
.domain-headline { color: #dce4f8 !important; }
.domain-list li   { color: rgba(220,228,248,0.72) !important; }
.domain-list li::before { opacity: 1 !important; }
.domain-proof { color: rgba(140,155,195,0.75) !important; border-top-color: rgba(255,255,255,0.08) !important; }

.domain-icon {
  width: 44px; height: 44px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
  margin-top: var(--space-3);
}
.domain-card--clinical  .domain-icon { background: var(--color-primary-dim); color: var(--color-primary); }
.domain-card--technology .domain-icon { background: rgba(139,124,200,0.12); color: #8b7cc8; }
.domain-card--business  .domain-icon { background: rgba(200,169,110,0.1); color: var(--color-accent-warm); }

.domain-label {
  font-size: clamp(1rem, 1.2vw, 1.25rem); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.domain-card--clinical  .domain-label { color: var(--color-primary); }
.domain-card--technology .domain-label { color: #9b8dd4; }
.domain-card--business  .domain-label { color: var(--color-accent-warm); }

.domain-headline {
  font-family: var(--font-display); font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  font-weight: 400; color: var(--color-text);
  margin-bottom: var(--space-5); line-height: 1.35;
}
.domain-list {
  list-style: none; padding: 0; margin: 0 0 var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.domain-list li {
  font-size: var(--text-sm); color: var(--color-text-muted);
  padding-left: var(--space-6); position: relative; line-height: 1.65;
}
.domain-list li::before {
  content: ''; position: absolute; left: 0; top: 0.52em;
  width: 5px; height: 5px; border-radius: 50%;
}
.domain-card--clinical  .domain-list li::before { background: var(--color-primary); opacity: 0.7; }
.domain-card--technology .domain-list li::before { background: #8b7cc8; opacity: 0.7; }
.domain-card--business  .domain-list li::before { background: var(--color-accent-warm); opacity: 0.7; }

.domain-proof {
  font-size: var(--text-xs); color: var(--color-text-faint);
  font-weight: 500; letter-spacing: 0.02em;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.08);
  line-height: 1.5;
}

.domain-intersection {
  display: flex; align-items: center; gap: var(--space-5);
  background: rgba(0,230,255,0.06);
  border: 1px solid rgba(0,230,255,0.18);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  flex-wrap: wrap;
}
.domain-intersection-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); flex-shrink: 0;
}
.domain-intersection-text {
  flex: 1; min-width: 280px;
  font-size: var(--text-sm); color: rgba(220,228,248,0.70); line-height: 1.7;
}
.domain-intersection-text strong { color: #dce4f8; }


/* ══ 3D WORD SPHERES ══════════════════════════════════════════════════════ */
.sphere-venn-panel {
  padding: var(--space-8) var(--space-6) var(--space-10);
  position: relative;
}

.sphere-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.sphere-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sphere-label {
  text-align: center;
  margin-bottom: var(--space-4);
}
.sphere-label strong {
  display: block;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  /* colour set per-domain by sphere_venn.js via inline style */
}
.sphere-label span {
  display: block;
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  color: rgba(220,228,248,0.65);
  line-height: 1.4;
}

.word-sphere-canvas {
  border-radius: 50%;
  overflow: visible;
}

/* Centre 29 badge */
.sphere-centre-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: var(--space-6) auto 0;
  padding: var(--space-5) var(--space-8);
  background: rgba(0,230,255,0.06);
  border: 1px solid rgba(0,230,255,0.20);
  border-radius: var(--radius-xl);
  max-width: 380px;
  text-align: center;
}
.scb-num {
  font-size: 48px;
  font-weight: 800;
  color: #00e6ff;
  line-height: 1;
}
.scb-text {
  font-size: 13px;
  color: rgba(220,228,248,0.65);
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .sphere-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ══════════════════════════════════════════════
   VENN DIAGRAM + BUBBLE CARDS
   ══════════════════════════════════════════════ */

/* ── Shared wrapper ── */
.venn-wrapper {
  width: 100%;
  margin-bottom: var(--space-6);
}

/* ══ DESKTOP VENN ══ */
.venn-desktop {
  display: block;
}
.venn-mobile {
  display: none;
}
.venn-panel {
  background: #0d0f1f;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,230,255,0.12);
  padding: var(--space-10) var(--space-8) var(--space-8);
  margin-bottom: var(--space-6);
  box-shadow: 0 8px 48px rgba(0,0,0,0.18), inset 0 1px 0 rgba(0,230,255,0.08);
  position: relative;
  overflow: hidden;
  width: 100%;
}
.venn-panel::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,230,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.venn-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  font-family: var(--font-body);
  overflow: visible;
}

/* Keyword animation — start invisible, float up on scroll */
.vk text {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.venn-wrapper.in-view .vk text {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger via inline --delay set in JS */
.vk text { transition-delay: var(--vd, 0ms); }

/* Overlap labels animate in after keywords */
.venn-overlaps {
  opacity: 0;
  transition: opacity 0.8s ease 0.9s;
}
.venn-wrapper.in-view .venn-overlaps {
  opacity: 1;
}

/* Ring spin */
.venn-ring {
  transform-origin: 450px 295px;
  animation: ring-spin 40s linear infinite;
}
@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

/* Circle hover highlight */
.vc { transition: filter 0.35s ease, stroke-opacity 0.35s ease; }
.venn-wrapper:hover .vc-c:hover ~ .vk-c text,
.vc-c:hover { filter: drop-shadow(0 0 20px rgba(0,230,255,0.4)); stroke-opacity: 0.7; }
.vc-t:hover { filter: drop-shadow(0 0 20px rgba(110,84,160,0.5)); stroke-opacity: 0.7; }
.vc-b:hover { filter: drop-shadow(0 0 20px rgba(255,210,80,0.4)); stroke-opacity: 0.7; }

/* Label/subtitle helpers */
.vl, .vs { font-family: var(--font-body); }

/* ══ MOBILE BUBBLE CARDS ══ */
@media (max-width: 768px) {
  .venn-desktop { display: none; }
  .venn-mobile  { display: flex; flex-direction: column; gap: var(--space-5); margin-bottom: var(--space-6); }
}

.bubble-card {
  background: #0d0f1f;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}
.bubble-card--clinical  { border-top: 2px solid #00e6ff; }
.bubble-card--technology{ border-top: 2px solid #8b7cc8; }
.bubble-card--business  { border-top: 2px solid #ffd250; }

.bubble-header {
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bubble-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.bubble-card--clinical  .bubble-label { color: #00e6ff; }
.bubble-card--technology .bubble-label { color: #9b8dd4; }
.bubble-card--business  .bubble-label { color: #ffd250; }

.bubble-sub {
  font-size: 13px;
  color: rgba(220,228,248,0.55);
  line-height: 1.4;
}

/* The word cloud area — fixed height, position: relative container */
.bubble-cloud {
  position: relative;
  height: 200px;
  overflow: hidden;
}

/* Individual words — positioned absolutely via CSS vars */
.bw {
  position: absolute;
  left: calc(var(--x));
  top:  calc(var(--y));
  font-size: calc(13px * var(--s, 1));
  line-height: 1;
  white-space: nowrap;
  color: currentColor;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.45s ease, transform 0.45s ease;
  will-change: opacity, transform;
  cursor: default;
}
.bubble-card--clinical   .bw { color: rgba(95,217,255,0.75); }
.bubble-card--technology .bw { color: rgba(179,160,224,0.75); }
.bubble-card--business   .bw { color: rgba(232,201,106,0.75); }

.bw.bw-bold {
  font-weight: 700;
  color: currentColor;
}
.bubble-card--clinical   .bw.bw-bold { color: #5fd9ff; }
.bubble-card--technology .bw.bw-bold { color: #b3a0e0; }
.bubble-card--business   .bw.bw-bold { color: #e8c96a; }

/* Words visible when card is .active */
.bubble-card.active .bw {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delay applied by JS */
.bw { transition-delay: var(--bd, 0ms); }

/* Hover: word brightens */
.bw:hover { opacity: 1 !important; color: white !important; transform: scale(1.08) !important; }

.bubble-proof {
  font-size: 11px;
  color: rgba(140,155,195,0.7);
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* Mobile intersection badge */
.mobile-intersection {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,230,255,0.06);
  border: 1px solid rgba(0,230,255,0.18);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
}
.mi-num {
  font-size: 36px;
  font-weight: 800;
  color: #00e6ff;
  line-height: 1;
  flex-shrink: 0;
}
.mi-text {
  font-size: 14px;
  color: rgba(220,228,248,0.70);
  line-height: 1.45;
}

/* ══ DOMAIN CARDS ══ */
.venn-cards {
  margin-top: var(--space-2);
}
.domain-card--technology::before { background: #8b7cc8; }
.domain-card--technology .domain-icon { background: rgba(139,124,200,0.12); color: #8b7cc8; }
.domain-card--technology .domain-label { color: #9b8dd4; }
.domain-card--technology .domain-list li::before { background: #8b7cc8; }



/* ══ CONTACT ══ */
.contact {
  background: linear-gradient(135deg, var(--color-surface) 60%, color-mix(in srgb, var(--color-primary) 4%, var(--color-surface)) 100%);
  border-top: 1px solid var(--color-border);
}
.contact-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-16);
}
.contact-content { max-width: 520px; }
.contact-content h2 {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 400; color: var(--color-text);
  margin-top: var(--space-3); margin-bottom: var(--space-5);
}
.contact-content p {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.75; margin-bottom: var(--space-8);
}
.contact-email {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-base); font-weight: 600;
  color: var(--color-primary); margin-bottom: var(--space-4);
  transition: gap var(--transition), opacity var(--transition);
}
.contact-email:hover { gap: var(--space-4); opacity: 0.8; }
.contact-location {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); color: var(--color-text-muted);
}
.contact-mark { flex-shrink: 0; }
.contact-icon-mark { opacity: 0.22; border-radius: 50%; display: block; }
.contact-svg-mark { opacity: 1.0; display: block; }

/* ══ FOOTER ══ */
.footer-links {
  display: flex; align-items: center; gap: var(--space-6);
}
.footer {
  border-top: 1px solid rgba(0, 230, 255, 0.18);
  padding-block: var(--space-8);
  background: #12152d; /* surface — one step above page bg, always dark */
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4);
}
.footer-brand {
  display: flex; align-items: center; gap: var(--space-3);
  color: rgba(220, 228, 248, 0.85); font-size: var(--text-sm); font-weight: 500;
}
.footer-copy { font-size: var(--text-xs); color: rgba(140, 155, 195, 0.65); }
.footer-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); color: rgba(140, 155, 195, 0.85);
  transition: color var(--transition);
}
.footer-link:hover { color: rgba(0,230,255,0.90); text-decoration: underline; }

/* ══ 900px RESPONSIVE ══ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-inner { flex-direction: column; }
  .contact-mark { display: none; }
  .hero-stats { gap: var(--space-4); }
  .stat-divider { display: none; }
  .domains-grid { grid-template-columns: 1fr; }
  .domain-intersection { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════
   COMPREHENSIVE MOBILE FIXES  (≤ 768px)
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Container: reduced padding on mobile ── */
  .container {
    padding-inline: 16px;
  }

  /* ── Hero: let height shrink to content, no dead zone below ── */
  .hero {
    min-height: unset;
    align-items: flex-start;
    padding-top: clamp(80px, 20vw, 120px);
    padding-bottom: 0;
  }

  /* ── Stats: full-width flat band, no card box ── */
  .hero-stats {
    width: 100%;
    max-width: 100%;
    background: rgba(8, 10, 20, 0.88);
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    padding: 20px 16px;
    margin-top: 32px;
    margin-left: -16px;    /* bleed past container padding */
    width: calc(100% + 32px);
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .stat {
    padding: 12px 16px;
    border-bottom: none;
  }
  .stat:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 12px;
  }
  .stat:nth-child(n+3) { padding-top: 12px; }
  /* Vertical divider between left/right columns */
  .stat:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.06); }

  /* Force light colors — stats band is always dark regardless of theme */
  .hero-stats .stat-number { color: #dce4f8; }
  .hero-stats .stat-unit   { color: #00e6ff; }
  .hero-stats .stat-label  { color: rgba(220,228,248,0.60); }

  /* ── Hide aurora SVG mark on mobile ── */
  .contact-mark { display: none !important; }
  .contact-inner { flex-direction: column; gap: var(--space-8); }
  .contact-content { max-width: 100%; }

  /* ── Services: single column ── */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* ── Why Now grid: already 1-col at 900px but ensure padding ── */
  .why-card {
    padding: var(--space-6);
  }
  .why-now-grid {
    gap: var(--space-5);
  }

  /* ── Domain detail cards: single column, full width ── */
  .domains-grid {
    grid-template-columns: 1fr;
  }
  .domain-card {
    padding: var(--space-6);
  }

  /* ── Domain intersection callout ── */
  .domain-intersection {
    padding: var(--space-5) var(--space-5);
    flex-direction: column;
    align-items: flex-start;
  }
  .domain-intersection-text {
    min-width: unset;
  }

  /* ── Bubble cards: full width, no side margin ── */
  .bubble-card {
    border-radius: var(--radius-lg);
  }
  .bubble-cloud {
    height: 220px;
  }

  /* ── About grid: single column ── */
  .about-grid {
    grid-template-columns: 1fr;
  }
  /* about-left: let it stack naturally — headshot hidden by about-grid single-col */

  /* ── Engagement items: single column ── */
  .engagement-grid {
    grid-template-columns: 1fr !important;
  }

  /* ── Timeline: tighter ── */
  .timeline-item {
    padding-left: var(--space-5);
  }

  /* ── Credentials bar: wrap ── */
  .credentials-bar {
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: flex-start;
  }

  /* ── Stats bar: 2x2 grid (keep existing, just ensure it) ── */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* ── Section headings: tighter ── */
  h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  /* ── Why Now: failure/crisis grids ── */
  .failure-grid,
  .crisis-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
   AURORA INTELLIGENCE — Episode Carousel
   ═══════════════════════════════════════════════ */

.aurora-intel {
  background: var(--color-bg);
  overflow: hidden;
}

/* Carousel wrapper — enables horizontal scroll */
.aurora-carousel-wrapper {
  position: relative;
  margin-top: var(--space-8);
}

.aurora-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 1.5rem;
  cursor: grab;
}

.aurora-carousel::-webkit-scrollbar { display: none; }
.aurora-carousel.is-dragging { cursor: grabbing; }

/* Cards */
.aurora-card {
  flex: 0 0 420px;
  background: #0D1425;
  border: 1px solid rgba(0, 220, 230, 0.12);
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: border-color 0.25s ease, transform 0.25s ease;
  position: relative;
}

.aurora-card:hover,
.aurora-card:focus {
  border-color: rgba(0, 220, 230, 0.35);
  transform: translateY(-3px);
  outline: none;
}

/* Latest episode card — slightly larger, gold accent */
.aurora-card--latest {
  flex: 0 0 460px;
  border-color: rgba(210, 175, 80, 0.3);
}

.aurora-card--latest:hover,
.aurora-card--latest:focus {
  border-color: rgba(210, 175, 80, 0.6);
}

/* Latest badge */
.aurora-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: #D2AF50;
  color: #060C1A;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}

/* Thumbnail */
.aurora-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060C1A;
  overflow: hidden;
}

.aurora-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.aurora-card:hover .aurora-card-thumb img {
  transform: scale(1.03);
}

/* Play button overlay */
.aurora-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 12, 26, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.aurora-card:hover .aurora-card-play,
.aurora-card:focus .aurora-card-play {
  opacity: 1;
}

/* Card body */
.aurora-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.aurora-card-body--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  height: 100%;
  justify-content: center;
  min-height: 260px;
}

.aurora-card-ep {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #00DCE6;
  margin-bottom: 0.5rem;
}

.aurora-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #DCE4F8;
  margin: 0 0 0.6rem;
  line-height: 1.3;
  font-family: Georgia, 'Times New Roman', serif;
}

.aurora-card-desc {
  font-size: 0.85rem;
  color: #8C9BC3;
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.aurora-card-cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #00DCE6;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 220, 230, 0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.aurora-card-cta:hover {
  color: #5FD9FF;
  border-color: #5FD9FF;
}

.aurora-card-cta--gold {
  color: #D2AF50;
  border-color: rgba(210, 175, 80, 0.3);
}

.aurora-card-cta--gold:hover {
  color: #FFD250;
  border-color: #FFD250;
}

/* Subscribe card */
.aurora-card--subscribe {
  background: linear-gradient(145deg, #0D1425 0%, #0A1628 100%);
  border-style: dashed;
  border-color: rgba(0, 220, 230, 0.2);
  display: flex;
  align-items: stretch;
}

.aurora-subscribe-icon {
  margin-bottom: 1.25rem;
}

/* Scroll hint dots */
.aurora-scroll-hint {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 1.25rem;
}

.aurora-scroll-hint span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 220, 230, 0.25);
  transition: background 0.2s;
}

.aurora-scroll-hint span:first-child {
  background: #00DCE6;
}

/* Mobile */
@media (max-width: 768px) {
  .aurora-card { flex: 0 0 320px; }
  .aurora-card--latest { flex: 0 0 340px; }
}

/* ═══════════════════════════════════════════════
   AURORA CAROUSEL — Mobile-first fix
   ═══════════════════════════════════════════════ */

/* Mobile default: full-width cards, one at a time, snap */
.aurora-carousel {
  padding-left: 1rem;
  padding-right: 1rem;
}

.aurora-card {
  flex: 0 0 calc(100vw - 2rem);
  max-width: 480px;
}

.aurora-card--latest {
  flex: 0 0 calc(100vw - 2rem);
  max-width: 480px;
}

.aurora-card--subscribe {
  flex: 0 0 calc(100vw - 2rem);
  max-width: 480px;
}

/* Larger text on mobile cards */
.aurora-card-title {
  font-size: 1.25rem;
}

.aurora-card-desc {
  font-size: 0.92rem;
}

.aurora-card-ep {
  font-size: 0.78rem;
}

/* Tablet and up: show peek of next card */
@media (min-width: 640px) {
  .aurora-card {
    flex: 0 0 400px;
    max-width: 400px;
  }
  .aurora-card--latest {
    flex: 0 0 440px;
    max-width: 440px;
  }
  .aurora-card--subscribe {
    flex: 0 0 360px;
    max-width: 360px;
  }
}

/* Desktop: original sizing */
@media (min-width: 1024px) {
  .aurora-carousel {
    padding-left: 0;
    padding-right: 0;
  }
  .aurora-card {
    flex: 0 0 420px;
    max-width: 420px;
  }
  .aurora-card--latest {
    flex: 0 0 460px;
    max-width: 460px;
  }
  .aurora-card--subscribe {
    flex: 0 0 360px;
    max-width: 360px;
  }
  .aurora-card-title { font-size: 1.15rem; }
  .aurora-card-desc { font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════════
   AURORA CAROUSEL — iPad Pro fix (1024px)
   Cards stay full-width up to 1200px
   ═══════════════════════════════════════════════ */

@media (max-width: 1199px) {
  .aurora-carousel {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .aurora-card,
  .aurora-card--latest,
  .aurora-card--subscribe {
    flex: 0 0 calc(100% - 2rem);
    max-width: 640px;
  }
  .aurora-card-title { font-size: 1.3rem; }
  .aurora-card-desc { font-size: 0.95rem; }
}

/* True desktop only: multi-card layout */
@media (min-width: 1200px) {
  .aurora-carousel {
    padding-left: 0;
    padding-right: 0;
  }
  .aurora-card { flex: 0 0 420px; max-width: 420px; }
  .aurora-card--latest { flex: 0 0 460px; max-width: 460px; }
  .aurora-card--subscribe { flex: 0 0 360px; max-width: 360px; }
}

/* ═══════════════════════════════════════════════
   AURORA CAROUSEL — FINAL mobile/iPad override
   One card per screen below 1200px. No bleed. 
   ═══════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .aurora-carousel {
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 1rem !important;
  }
  .aurora-card,
  .aurora-card--latest,
  .aurora-card--subscribe {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
  }
  .aurora-card-title  { font-size: 1.45rem !important; line-height: 1.25 !important; }
  .aurora-card-desc   { font-size: 1rem !important; }
  .aurora-card-ep     { font-size: 0.85rem !important; }
  .aurora-card-cta    { font-size: 0.95rem !important; }
  .aurora-card-body   { padding: 1.5rem !important; }
}

/* ══ CONTACT FORM ══════════════════════════════════════════════ */
[hidden] { display: none !important; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
  max-width: 480px;
}
.contact-form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.contact-form-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 220, 230, 0.75);
}
.contact-form-input {
  width: 100%;
  background: #0D1425;
  border: 1px solid rgba(0, 220, 230, 0.18);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: #DCE4F8;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.45;
  min-height: 48px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.contact-form-input::placeholder {
  color: rgba(140, 155, 195, 0.5);
}
.contact-form-input:hover {
  border-color: rgba(0, 220, 230, 0.32);
}
.contact-form-input:focus,
.contact-form-input:focus-visible {
  outline: none;
  border-color: #00DCE6;
  background: #0F1730;
  box-shadow: 0 0 0 3px rgba(0, 220, 230, 0.15);
}
.contact-form-textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  margin-top: var(--space-2);
  background: #00DCE6;
  color: #060C1A;
  border: 1px solid #00DCE6;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}
.contact-form-submit:hover {
  background: #5FD9FF;
  border-color: #5FD9FF;
  box-shadow: 0 8px 24px -8px rgba(0, 220, 230, 0.45);
}
.contact-form-submit:active { transform: translateY(1px); }
.contact-form-submit:focus-visible {
  outline: 2px solid #00DCE6;
  outline-offset: 3px;
}
.contact-form-thanks {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-5);
  background: rgba(0, 220, 230, 0.08);
  border: 1px solid rgba(0, 220, 230, 0.25);
  border-radius: var(--radius-md);
  color: #DCE4F8;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 480px;
}

/* Light mode contact form */
[data-theme="light"] .contact-form-input {
  background: rgba(255, 255, 255, 0.04);
  color: #DCE4F8;
}
[data-theme="light"] .contact-form-label {
  color: rgba(0, 220, 230, 0.9);
}

/* Mobile refinements for contact form */
@media (max-width: 768px) {
  .contact-form { max-width: 100%; }
  .contact-form-submit { width: 100%; align-self: stretch; }
}
