/* ═══════════════════════════════════════════════════════
   styles.css — BFG Ideas Shared Stylesheet
   Site: bfgideas.com | Host: Cloudflare Pages
   Version: 5.0.0

   This file contains ALL shared design tokens, reset,
   typography, components, and responsive rules.
   Page-specific CSS lives in pages/[page].css files.
═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   A) DESIGN TOKENS — :root
═══════════════════════════════════════════════════════ */
:root {
  /* ── BRAND COLOURS ── */
  --teal:         #00d4c8;
  --teal-dim:     #2C707B;
  --magenta:      #c800a1;
  --purple:       #5a2890;
  --purple-vivid: #50005C;

  /* ── BACKGROUNDS ── */
  --dark:         #0D1828;
  --dark2:        #091422;
  --dark3:        #060c18;
  --dark-navy:    #1A2748;
  --ink:          #1a1a2e;
  --white:        #ffffff;
  --off:          #f6f4ef;
  --mid:          #e8e5de;

  /* ── GRADIENTS ── */
  --grad-brand:        linear-gradient(135deg, var(--teal), var(--purple));
  --grad-accent:       linear-gradient(135deg, var(--magenta), var(--purple));
  --grad-text:         linear-gradient(120deg, var(--teal) 0%, var(--purple) 50%, var(--magenta) 100%);
  --grad-hero-overlay: linear-gradient(90deg, rgba(9,20,34,.92) 0%, rgba(9,20,34,.25) 65%, rgba(9,20,34,.1) 100%);

  /* ── CANONICAL FONT TOKENS ── */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-serif:   'Instrument Serif', serif;
  --font-mono:    'Space Mono', monospace;

  /* ── SHORT ALIAS TOKENS (page source compat) ── */
  --fd:   var(--font-display);
  --fb:   var(--font-body);
  --fs:   var(--font-serif);
  --fm:   var(--font-mono);

  /* ── SPACING SCALE ── */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  24px;
  --sp-lg:  48px;
  --sp-xl:  80px;
  --sp-2xl: 130px;

  /* ── BORDER RADIUS ── */
  --r-sm:   2px;
  --r-md:   8px;
  --r-lg:   14px;
  --r-pill: 100px;

  /* ── CANONICAL ANIMATION TOKENS ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease:     var(--ease-out);
  --dur-fast: 0.25s;
  --dur-mid:  0.4s;
  --dur-slow: 0.85s;

  /* ── SHADOWS ── */
  --shadow-teal:    0 4px 24px rgba(0,212,200,0.25);
  --shadow-teal-lg: 0 8px 32px rgba(0,212,200,0.4);
  --shadow-glow:    0 0 14px var(--teal);
  --shadow-card:    0 20px 60px rgba(0,0,0,0.3);

  /* ── TEXT TOKENS (page source compat) ── */
  --t-pri:  rgba(255,255,255,1);
  --t-sec:  rgba(255,255,255,0.82);
  --t-mute: rgba(255,255,255,0.52);
  --t-dim:  rgba(255,255,255,0.28);
  --d-pri:  rgba(13,24,40,1);
  --d-sec:  rgba(13,24,40,0.72);
  --d-mute: rgba(13,24,40,0.48);

  /* ── EXTENDED TEXT TOKENS ── */
  --text-on-dark:       rgba(255,255,255,1);
  --text-muted:         rgba(255,255,255,0.45);
  --text-faint:         rgba(255,255,255,0.25);
  --text-on-light:      #0D1828;
  --text-muted-dark:    rgba(13,24,40,0.5);

  /* ── CUSTOM CURSOR ── */
  --cursor-size:       8px;
  --cursor-ring:       36px;
  --cursor-ring-hover: 50px;
  --cursor-ease:       0.12s;
}

/* ═══════════════════════════════════════════════════════
   B) CSS RESET AND BASE STYLES
═══════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--dark2);
  color: #fff;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════════════
   C) SKIP-NAV LINK (accessibility)
═══════════════════════════════════════════════════════ */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-nav:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  background: var(--teal);
  color: var(--dark2);
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: var(--r-md);
  z-index: 9999;
  overflow: visible;
}

/* ═══════════════════════════════════════════════════════
   D) TYPOGRAPHY BASE
═══════════════════════════════════════════════════════ */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 120px);
  line-height: .95;
  letter-spacing: .02em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: .02em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: .03em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
}
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--teal-dim);
}
.section-label.mag { color: var(--magenta); }
.section-label.mag::before { background: var(--magenta); }

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════
   E) SHARED COMPONENTS
═══════════════════════════════════════════════════════ */

/* ─── NAVBAR TIER 1 — Fixed primary nav ─── */
/* ─── PILL WRAPPER (fixed positioning layer) ─── */
.nav-pill-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 12px 20px;
  pointer-events: none;
}

/* ─── PILL SHELL (the nav element) ─── */
.nav-t1, .nav-t2, .nav-t3 {
  max-width: 900px;
  margin: 0 auto;
  height: 50px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px 0 16px;
  gap: 12px;
  background: rgba(200,0,161,0.15);
  border: 0.5px solid rgba(200,0,161,0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: background 0.3s, border-color 0.3s;
  pointer-events: auto;
}

/* ─── SCROLLED STATE ─── */
.nav-t1.scrolled, .nav-t2.scrolled, .nav-t3.scrolled {
  background: rgba(200,0,161,0.25);
  border-color: rgba(200,0,161,0.4);
}

/* ─── SPACER ─── */
.nav-spacer { height: 74px; }

/* ─── LOGO ─── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo img {
  height: 32px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--fd);
  font-size: 16px;
  letter-spacing: .04em;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

/* ─── NAV LINKS ─── */
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding: 5px 12px;
  border-radius: 100px;
  border: 0.5px solid transparent;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: rgba(255,255,255,0.8);
}
.nav-links a[aria-current="page"] {
  color: #fff;
  font-weight: 500;
  border: 0.5px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
}

/* ─── CTA BUTTON ─── */
.nav-cta {
  background: transparent;
  color: #fff;
  border: 0.5px solid transparent;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-cta:hover,
.nav-links .nav-cta:hover {
  background: rgba(0,212,200,1);
  border-color: rgba(0,212,200,0.8);
  color: #091422;
}

/* ─── HAMBURGER (shared Tier 1 & 2) ─── */
#nav-hamburger, #t2-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
#nav-hamburger span, #t2-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.6);
  transition: all 0.3s;
}

/* ─── MOBILE DRAWER (Tier 1) ─── */
#nav-mobile {
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,0.96);
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
}
#nav-mobile.open { display: flex; }
#nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 48px);
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
#nav-mobile a:hover { color: var(--teal); }
#nav-mobile a[aria-current="page"] { color: var(--teal); }
#nav-mobile .nav-mobile-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 28px;
  cursor: pointer;
}
#nav-mobile a.nav-cta {
  font-size: clamp(32px, 8vw, 48px);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  color: var(--teal);
}

/* ─── MOBILE DRAWER (Tier 2) ─── */
#t2-mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,0.96);
  z-index: 999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
}
#t2-mobile-nav.open { display: flex; }
#t2-mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 48px);
  color: #fff;
  transition: color 0.2s;
}
#t2-mobile-nav a:hover { color: var(--teal); }
#t2-mobile-nav .t2-mobile-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 28px;
  cursor: pointer;
}

/* ─── TIER 3 — Back nav ─── */
.nav-t3 .nav-back {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding: 5px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-t3 .nav-back:hover { color: #fff; }

/* ─── FOOTER ─── */
/* ─── DARK SLAB FOOTER ─── */
.site-footer {
  padding: 0;
}
.footer-slab {
  border-radius: 14px;
  padding: 44px 32px 24px;
  margin: 0 20px 20px;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-tagline {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 420px;
}
.footer-logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
}
.footer-logo-fallback {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #1D9E75;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.footer-logo-bar {
  display: block;
  width: 12px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.footer-wordmark {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
}
.footer-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 4px;
}
.footer-nav-link {
  font-size: 13px;
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav-link:hover {
  color: #fff;
}
.footer-cta {
  font-size: 12px;
  font-weight: 500;
  background: var(--teal);
  color: #0d0d14;
  padding: 8px 20px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.15s;
}
.footer-cta:hover {
  background: var(--teal-dim);
}
.footer-legal {
  border-top: 0.5px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-legal-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.22);
}
.footer-legal-links {
  display: flex;
  gap: 16px;
}
.footer-legal-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-legal-links a:hover {
  color: rgba(255,255,255,0.7);
}

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  background: rgba(9,20,34,.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transform: translateY(100%);
  transition: transform var(--dur-mid) var(--ease-out);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.55);
  max-width: 640px;
}
.cookie-banner p a {
  color: var(--teal);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: var(--dark);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: all .3s var(--ease-out);
  box-shadow: var(--shadow-teal);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal-lg);
}
.btn-primary::after { content: '\2192'; transition: transform .3s; }
.btn-primary:hover::after { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  transition: all .3s;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,.4);
  color: #fff;
}

.btn-teal-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  transition: all .3s;
  text-decoration: none;
}
.btn-teal-outline:hover {
  background: var(--teal);
  color: var(--dark);
  box-shadow: 0 0 20px rgba(0,212,200,.3);
}

.btn-magenta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  transition: all .3s var(--ease-out);
  box-shadow: 0 4px 24px rgba(200,0,161,.2);
  text-decoration: none;
}
.btn-magenta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200,0,161,.35);
}

/* ─── CARDS ─── */
.stat-card {
  background: var(--dark);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  border: 1px solid rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
  transition: transform .3s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-brand);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 52px;
  letter-spacing: .03em;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
}
.stat-sub {
  font-size: 11px;
  color: rgba(255,255,255,.25);
  margin-top: 3px;
  font-style: italic;
}

.feature-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-top: 2px solid var(--teal);
  padding: 32px 28px;
  border-radius: var(--r-md);
  transition: all .4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  border-color: rgba(0,212,200,.25);
  background: rgba(0,212,200,.04);
  transform: translateY(-4px);
}
.feature-card::before {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(0,212,200,.06) 0%, transparent 70%);
}
.feature-card-icon {
  font-size: 28px;
  margin-bottom: 20px;
  display: block;
}
.feature-card-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: .04em;
  color: #fff;
  margin-bottom: 10px;
}
.feature-card-body {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.4);
  font-weight: 300;
}

/* ─── GLASS CARDS ─── */
.glass-card {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 8px 32px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1);
  transition: all var(--dur-mid) var(--ease-out);
}
.glass-card:hover {
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: radial-gradient(circle at 50% 0%, rgba(0,212,200,.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-mid);
  pointer-events: none;
}
.glass-card:hover::before { opacity: 1; }

.glass-card-teal {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(0,212,200,.06);
  border-radius: var(--r-lg);
  border: 1px solid rgba(0,212,200,.18);
  box-shadow: 0 8px 32px rgba(0,0,0,.25), 0 0 40px rgba(0,212,200,.06), inset 0 1px 0 rgba(0,212,200,.1);
}

.glass-card-magenta {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(200,0,161,.06);
  border-radius: var(--r-lg);
  border: 1px solid rgba(200,0,161,.18);
  box-shadow: 0 8px 32px rgba(0,0,0,.25), 0 0 40px rgba(200,0,161,.06), inset 0 1px 0 rgba(200,0,161,.1);
}

.glass-card-inner { padding: 28px 24px; }
.glass-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.glass-card-eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--teal); }
.glass-card-eyebrow.mag { color: var(--magenta); }
.glass-card-eyebrow.mag::before { background: var(--magenta); }
.glass-card-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.glass-card-body {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  font-weight: 300;
}
.glass-card-metric {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: .03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 16px;
  line-height: 1;
}
.glass-card-metric-label {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  margin-top: 4px;
}

/* ─── TAGS ─── */
.tag-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  border: 1px solid;
}
.tag-teal { border-color: rgba(0,212,200,.3); color: var(--teal); background: rgba(0,212,200,.08); }
.tag-magenta { border-color: rgba(200,0,161,.3); color: var(--magenta); background: rgba(200,0,161,.08); }
.tag-purple { border-color: rgba(90,40,144,.4); color: #a07ad4; background: rgba(90,40,144,.12); }
.tag-neutral { border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.5); background: rgba(255,255,255,.04); }

/* ─── COMPONENT UTILITIES ─── */
.accent-bar {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--magenta));
  border-radius: 2px;
  margin-bottom: 24px;
  display: block;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--magenta), transparent);
  opacity: .15;
  margin: 40px 0;
  border: none;
}

.quote-block {
  border-left: 3px solid var(--teal);
  padding: 20px 28px;
  background: rgba(0,212,200,.04);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.quote-block p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
  margin-bottom: 14px;
}
.quote-attribution {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ─── ICON WRAPPER ─── */
.ph-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  border: 1px solid rgba(0,212,200,.2);
  background: rgba(0,212,200,.06);
  flex-shrink: 0;
}
.ph-wrap i { font-size: 24px; color: var(--teal); }
.ph-wrap.mag { border-color: rgba(200,0,161,.2); background: rgba(200,0,161,.06); }
.ph-wrap.mag i { color: var(--magenta); }
.ph-wrap.pur { border-color: rgba(90,40,144,.3); background: rgba(90,40,144,.1); }
.ph-wrap.pur i { color: #a07ad4; }

/* ─── LIST ITEM ─── */
.list-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  background: rgba(13,24,40,.03);
  border: 1px solid rgba(13,24,40,.06);
  border-radius: var(--r-md);
  transition: all .3s;
}
.list-item.dark-bg {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.06);
}
.list-item:hover {
  border-color: rgba(0,212,200,.2);
  background: rgba(0,212,200,.03);
  transform: translateX(4px);
}
.list-item-icon { font-size: 18px; margin-top: 2px; flex-shrink: 0; }
.list-item-text { font-size: 14px; line-height: 1.6; }
.list-item-text strong { display: block; margin-bottom: 3px; font-size: 13.5px; font-weight: 500; }

/* ─── NUMERAL MARKS ─── */
.numeral-mark {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: .9;
  letter-spacing: .02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 1px solid rgba(0,212,200,.3);
  padding-bottom: 4px;
  display: inline-block;
}
.numeral-mark.acc {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  border-bottom-color: rgba(200,0,161,.3);
}
.numeral-mark.pur {
  background: linear-gradient(135deg, #a07ad4, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  border-bottom-color: rgba(90,40,144,.3);
}

/* ─── SCROLL REVEAL ─── */
.r {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.r.in {
  opacity: 1;
  transform: translateY(0);
}
.r.d1 { transition-delay: 0.12s; }
.r.d2 { transition-delay: 0.24s; }
.r.d3 { transition-delay: 0.36s; }
.r.d4 { transition-delay: 0.48s; }

/* ─── CUSTOM CURSOR ─── */
#cur {
  position: fixed;
  width: var(--cursor-size);
  height: var(--cursor-size);
  background: var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width var(--cursor-ease), height var(--cursor-ease), opacity var(--cursor-ease);
}
#cur-ring {
  position: fixed;
  width: var(--cursor-ring);
  height: var(--cursor-ring);
  border: 1px solid rgba(0,212,200,.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width var(--cursor-ease), height var(--cursor-ease), border-color var(--cursor-ease);
}

/* ─── CURSOR HOVER STATE (pink) ─── */
#cur.hover,
#bp-cursor-dot.hover,
#fq-cursor-dot.hover {
  background: #FF1B8D;
  box-shadow: 0 0 14px #FF1B8D;
}
#cur-ring.hover,
#bp-cursor-ring.hover,
#fq-cursor-ring.hover {
  border-color: rgba(255,27,141,.4);
  width: 50px;
  height: 50px;
}

/* ─── BACKGROUND UTILITIES ─── */
.bg-dark2 { background: var(--dark2); }
.bg-dark { background: var(--dark); }
.bg-grid {
  background-color: var(--dark);
  background-image:
    linear-gradient(rgba(0,212,200,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,200,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ─── AMBIENT GLOW ─── */
.ambient-glow {
  position: relative;
}
.ambient-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,212,200,.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── SCROLL PROGRESS BAR ─── */
#prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--grad-brand);
  z-index: 9000;
  width: 0%;
  transition: width .1s linear;
}

/* ─── GLOW KEYFRAMES ─── */
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* ─── THREAD SPINE KEYFRAMES ─── */
@keyframes thA {
  0%, 100% { opacity: .065; }
  50% { opacity: .14; }
}
@keyframes thB {
  0%, 100% { opacity: .065; }
  50% { opacity: .11; }
}

/* ═══════════════════════════════════════════════════════
   F) RESPONSIVE SYSTEM
═══════════════════════════════════════════════════════ */

/* ─── Laptop: ≤1440px ─── */
@media (max-width: 1440px) {
  :root {
    --sp-2xl: 100px;
  }
}

/* ─── Tablet: ≤1024px ─── */
@media (max-width: 1024px) {
  body { font-size: 15px; }
}

/* ─── Tablet: ≤768px ─── */
@media (max-width: 768px) {
  .footer-main { flex-direction: column; align-items: flex-start; }
  .footer-right { justify-content: flex-start; }
}

/* ─── Nav: switch to hamburger below full-pill width ─── */
@media (max-width: 940px) {
  .nav-links { display: none; }
  #nav-hamburger { display: flex; }
  #t2-hamburger { display: flex; }
  .nav-t2 .nav-links { display: none; }
}

/* ─── Tablet-S / Mobile-L: ≤820px ─── */
@media (max-width: 820px) {
  :root {
    --sp-xl: 48px;
    --sp-2xl: 80px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-right {
    justify-content: center;
    width: 100%;
  }
  .footer-tagline { text-align: center; }
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-banner-actions { justify-content: center; }
}

/* ─── Mobile-S: ≤480px ─── */
@media (max-width: 480px) {
  .footer-slab { padding: 32px 20px 20px; margin: 0 12px 12px; }
  .footer-tagline { font-size: 26px; }
  :root {
    --sp-lg: 32px;
    --sp-xl: 40px;
    --sp-2xl: 64px;
  }
  .btn-primary,
  .btn-ghost,
  .btn-teal-outline,
  .btn-magenta {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ─── Small Mobile: ≤390px ─── */
@media (max-width: 390px) {
  .cookie-banner {
    padding: 16px;
  }
}

/* ─── Print ─── */
@media print {
  .no-print { display: none; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #cur, #cur-ring { display: none; }
  #thread-canvas { display: none; }
}

/* ─── Focus Visible — keyboard accessibility ─── */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ─── Touch Device: Cursor Suppression + Touch Targets ─── */
@media (pointer: coarse) {
  #cur, #cur-ring { display: none !important; }
  body { cursor: auto !important; }
  a, button, [role="button"], summary, [onclick] {
    min-height: 44px;
    min-width: 44px;
  }
}
