/* ==========================================================================
   NeedleGPS · v2 wayfinding draft
   Same palette as v1 — the only deliberate variables are typography (Manrope
   instead of Inter), wider tracking on display sizes, route-stop markers on
   numbered components, and a slightly stricter grid. The point is to compare
   typography in isolation.
   ========================================================================== */

:root {
  --bg-deep:   #0B1B2B;
  --bg-deeper: #061321;
  --bg-light:  #F6F8FA;
  --bg-card:   #FFFFFF;
  --bg-soft:   #EEF2F6;

  --ink:       #0E2030;
  --ink-soft:  #3B4A60;
  --ink-mute:  #6A7689;
  --ink-line:  #E2E6EC;

  --c-primary:   #1FB6C9;
  --c-primary-2: #5EEDFF;
  --c-secondary: #4F7BD9;
  --c-warn:      #FF7A45;
  --c-mint:      #6FE3B8;

  --glass:  rgba(11, 27, 43, 0.55);
  --hair:   rgba(255, 255, 255, 0.08);
  --hair-2: rgba(255, 255, 255, 0.16);

  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;

  --t-display: clamp(40px, 7vw, 96px);
  --t-h2:      clamp(28px, 3.8vw, 50px);
  --t-h3:      clamp(20px, 1.8vw, 24px);
  --t-lede:    clamp(17px, 1.55vw, 21px);
  --t-body:    16px;
  --t-small:   14px;
  --t-eyebrow: 13px;

  --max: 1240px;
}

* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; }

/* ==========================================================================
   preview gate overlay — SOFT gate for the unlisted-preview GitHub Pages
   deploy. Real auth requires Cloudflare Access; this just keeps casual
   visitors out.
   ========================================================================== */
html.ngps-gate-locked, html.ngps-gate-locked body { overflow: hidden; }
#ngps-gate {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: radial-gradient(80% 60% at 50% 35%, #0c2236 0%, #050810 70%, #050810 100%);
  font-family: 'Manrope', system-ui, sans-serif;
  color: #f0f4f9;
}
.ngps-gate-card {
  text-align: center;
  padding: 56px 56px 48px;
  max-width: 460px; width: calc(100% - 48px);
  background: rgba(11, 27, 43, 0.65);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
}
.ngps-gate-mark {
  width: 56px; height: 56px; margin: 0 auto 22px;
  background-image: url('assets/logos/needlegps-mark.png');
  background-size: contain; background-repeat: no-repeat; background-position: center;
  border-radius: 12px;
  background-color: rgba(246, 248, 250, 0.95);
  box-shadow: 0 0 0 1px rgba(11, 27, 43, 0.16);
}
.ngps-gate-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: #1FB6C9; margin-bottom: 14px;
}
.ngps-gate-card h1 {
  font-size: 36px; font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 10px; color: #fff;
}
.ngps-gate-card p {
  color: rgba(240, 244, 249, 0.7); font-size: 14px; margin: 0 0 24px;
}
#ngps-gate-form { display: flex; gap: 8px; margin-bottom: 12px; }
#ngps-gate-input {
  flex: 1; padding: 12px 16px;
  font-family: 'Manrope', sans-serif; font-size: 15px; color: #fff;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px; outline: none; transition: border-color 0.15s;
}
#ngps-gate-input:focus { border-color: #1FB6C9; }
#ngps-gate-form button {
  padding: 12px 22px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px;
  color: #06121d; background: #1FB6C9;
  border: none; border-radius: 8px; cursor: pointer; transition: background 0.15s;
}
#ngps-gate-form button:hover { background: #5EEDFF; }
#ngps-gate-err {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: #FF7A45; min-height: 18px; letter-spacing: 0.06em;
}
.ngps-gate-foot {
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.24em; color: rgba(240, 244, 249, 0.4);
  text-transform: uppercase;
}

body {
  font-family: 'Manrope', 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: var(--t-body);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* ---- eyebrow with a route-stop dot ---- */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: var(--t-eyebrow);
  font-weight: 500;          /* heavier — the 400 read too thin at small sizes */
  letter-spacing: 0.18em;    /* tighter — wide tracking + thin weight hurt legibility */
  text-transform: uppercase;
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow-stop {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(31, 182, 201, 0.18);
}
.eyebrow-dark { color: var(--c-secondary); }
.eyebrow-dark .eyebrow-stop { box-shadow: 0 0 0 3px rgba(79, 123, 217, 0.16); }

/* ---- nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 27, 43, 0.55);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; }
.brand-mark { color: var(--c-primary); display: inline-flex; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -0.018em; }

/* Brand mark — the official syringe-on-target glyph from the
   github.com/needlegps organization avatar. Rendered with a subtle
   light backplate so the PNG (which has soft transparency / off-white
   background) sits cleanly on the dark hero nav. */
.brand-img {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(246, 248, 250, 0.95);
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(11, 27, 43, 0.08);
}
.footer-brand-row { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand-img {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(246, 248, 250, 0.95);
  padding: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.variant-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-primary);
  border: 1px solid rgba(31, 182, 201, 0.35);
  padding: 4px 8px; border-radius: 999px;
  margin-left: 4px;
}
.nav-links { display: inline-flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.82); }
.nav-links a:hover { color: #fff; }
.nav-cta {
  padding: 10px 20px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  color: #fff !important;
  transition: background .2s, border-color .2s, color .2s;
}
.nav-cta:hover { background: var(--c-primary); border-color: var(--c-primary); color: #06121d !important; }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 110vh;
  background:
    radial-gradient(78% 60% at 72% 28%, rgba(31, 182, 201, 0.15), transparent 65%),
    radial-gradient(60% 50% at 18% 78%, rgba(79, 123, 217, 0.16), transparent 65%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deeper) 100%);
  color: #F0F4F9;
  overflow: hidden;
  isolation: isolate;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 280px;
  /* Multi-stop curve so the navy doesn't just bleed linearly into white.
     The mid-stop at rgba(.., 0.65) softens the inflection point and keeps
     the cyan/cobalt particle haze readable right up to the boundary. */
  background: linear-gradient(to bottom,
    rgba(11, 27, 43, 0) 0%,
    rgba(11, 27, 43, 0.15) 30%,
    rgba(177, 195, 215, 0.55) 65%,
    rgba(246, 248, 250, 0.94) 88%,
    var(--bg-light) 100%);
  z-index: 1; pointer-events: none;
}
/* Continuation gradient on the marquee so the bottom edge of the hero
   and the top edge of the marquee form one continuous tonal curve. */
.marquee {
  background:
    linear-gradient(to bottom,
      rgba(220, 228, 238, 0.6) 0%,
      rgba(246, 248, 250, 1) 30%,
      var(--bg-light) 100%);
}
.hero-overlay { position: relative; z-index: 2; min-height: 110vh; display: flex; align-items: center; justify-content: center; padding: 96px 0 80px; }

/* Soft radial vignette behind the centered headline so the particle cloud
   reads as background atmosphere rather than competing with text. Lives in
   the overlay (z-index 2) but pseudo-element sits at z-index -1 within it. */
.hero-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 40% at 50% 48%,
                              rgba(6, 19, 33, 0.78) 0%,
                              rgba(6, 19, 33, 0.45) 35%,
                              transparent 70%);
  z-index: -1; pointer-events: none;
}

.hero-inner { text-align: center; max-width: 940px; margin: 0 auto; position: relative; }

.hero h1 {
  font-size: var(--t-display);
  font-weight: 800;
  letter-spacing: -0.034em;
  line-height: 0.98;
  margin: 0 0 24px;
  color: #fff;
}
.hero h1 .accent {
  color: transparent;
  background: linear-gradient(95deg, var(--c-primary-2) 0%, var(--c-primary) 45%, var(--c-secondary) 100%);
  -webkit-background-clip: text;
          background-clip: text;
}
.lede {
  font-size: var(--t-lede);
  color: rgba(240, 244, 249, 0.78);
  max-width: 720px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-eyebrow {
  justify-content: center;
  /* Hero-only override: noticeably larger AND bolder than the other
     eyebrows on the page. This is the first label a visitor reads, so it
     carries the extra weight. Other eyebrows stay at the body 13px / 500. */
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.cta-row { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: -0.005em;
  border-radius: 999px;
  transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--c-primary); color: #06121d; box-shadow: 0 6px 28px -10px rgba(31,182,201,0.6); }
.btn-primary:hover { background: var(--c-primary-2); box-shadow: 0 10px 32px -10px rgba(31,182,201,0.8); }
.btn-ghost { background: transparent; color: #f4f6fb; border-color: var(--hair-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-large { font-size: 17px; padding: 18px 30px; }
.btn-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  transition: transform 0.2s;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Live angle HUD — bottom-right of hero, monospace, faint cyan glow.
   Values are written from particles.js each animation frame. */
.angle-hud {
  position: absolute;
  right: 36px; bottom: 36px;
  z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px;
  background: rgba(11, 27, 43, 0.55);
  border: 1px solid rgba(31, 182, 201, 0.30);
  border-radius: 8px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  box-shadow: 0 0 0 1px rgba(31, 182, 201, 0.05),
              0 8px 32px -10px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.hud-row {
  display: flex; align-items: baseline; gap: 14px;
  color: var(--c-primary-2);
  text-shadow: 0 0 10px rgba(94, 237, 255, 0.45);
}
.hud-label {
  font-size: 13px; font-weight: 500;
  color: var(--c-primary);
  width: 14px;
}
.hud-value {
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  min-width: 78px; text-align: right;
}
.hud-foot {
  margin-top: 6px; padding-top: 8px;
  border-top: 1px solid rgba(31, 182, 201, 0.18);
  color: rgba(94, 237, 255, 0.55);
  font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .angle-hud { right: 16px; bottom: 16px; padding: 10px 14px; }
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 36px;
  transform: translateX(-50%);
  z-index: 3; pointer-events: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(240, 244, 249, 0.6);
  display: inline-flex; align-items: center; flex-direction: column; gap: 14px;
}
.scroll-tick {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(240,244,249,0.7), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: translateY(-8px); opacity: 0.4; }
  50%      { transform: translateY(8px);  opacity: 1; }
}

/* ---- marquee ---- */
.marquee {
  position: relative;
  background: var(--bg-light);
  padding: 44px 0 52px;
  border-bottom: 1px solid var(--ink-line);
  overflow: hidden;
}
.marquee-eyebrow { text-align: center; margin-bottom: 22px; color: var(--c-secondary); }
.marquee-eyebrow .eyebrow { justify-content: center; }
.marquee-track {
  display: flex;
  width: max-content;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  animation: marquee 55s linear infinite;
  /* Hardware-accelerate the transform so it stays smooth even when other
     work is on the main thread. */
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.marquee-row {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 64px;
  padding-right: 64px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 1.3vw, 19px);
  letter-spacing: -0.012em;
  color: var(--ink-soft);
  white-space: nowrap;
}
/* Each institution rendered as a real logo on top + name underneath. We
   fix the logo HEIGHT (not width) so each glyph is rendered at the same
   visual weight despite very different SVG aspect ratios — Harvard's
   wordmark is ~6:1, MGH is ~1:1, MIT is ~3.5:1, etc. The container
   widens to fit; CSS gap holds the name a fixed distance below.
   No cropping. */
.marquee-row li {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 108px;
  min-width: 180px;
  padding: 12px 24px;
  white-space: nowrap;
  /* No background pill — the logos read better against the marquee bg
     directly, no boxed-in look. */
}
.marquee-row li::after { content: none; }
.marquee-row li img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  /* Slight desaturation so all logos read as a unified row even though
     they're different brand colours. Hover would re-saturate, but we
     don't hover on a marquee item. */
  filter: saturate(0.55) opacity(0.86);
  transition: filter 0.2s;
}
.marquee-row li:hover img { filter: saturate(1) opacity(1); }
.marquee-row li span {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* The marquee track is taller now to fit the logos + names */
.marquee { padding: 56px 0 64px; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---- sections shared ---- */
.section { padding: 130px 0; }
.section-soft { background: var(--bg-soft); }
.section-light { background: var(--bg-light); }
.section-card { background: var(--bg-card); }

.section-head { max-width: 780px; margin-bottom: 72px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: var(--t-h2); margin: 14px 0 18px; letter-spacing: -0.024em; }
.section-sub { color: var(--ink-soft); font-size: clamp(16px, 1.2vw, 18px); margin: 0; }

/* ---- stats ---- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat {
  padding: 44px 24px;
  border-top: 1px solid var(--ink-line);
  border-left: 1px solid var(--ink-line);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.stat:first-child { border-left: none; }
.stat-num {
  font-family: 'Manrope', sans-serif;
  font-feature-settings: 'tnum', 'ss01';
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 0.95;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.stat-num .num { font-feature-settings: 'tnum'; }
.stat-num .unit {
  font-size: 0.38em; color: var(--ink-mute);
  font-weight: 500; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stat-rule {
  width: 36px; height: 2px;
  background: var(--c-primary);
  border-radius: 2px;
  margin-bottom: 18px;
}
.stat-label { color: var(--ink-soft); font-size: 15px; max-width: 280px; font-weight: 400; }
.problem-copy {
  max-width: 820px;
  font-size: clamp(18px, 1.45vw, 22px);
  color: var(--ink-soft);
  margin: 64px auto 0;
  text-align: center;
  font-weight: 400;
}
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat { border-left: none; padding: 32px 0; }
}

/* ---- tech cards (route-stop styling) ---- */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xl);
  padding: 48px 32px 40px;
  position: relative;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tech-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -28px rgba(11, 27, 43, 0.18);
}
.card-route {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 0;
}
.card-stop {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--c-primary);
  border: 3px solid var(--bg-soft);
  box-shadow: 0 0 0 1px var(--c-primary);
}
.card-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: rgba(31, 182, 201, 0.10);
  color: var(--c-primary);
  margin: 0 auto 22px;
}
.card-icon svg { width: 24px; height: 24px; }
.card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--c-secondary);
  margin-bottom: 14px;
}
.tech-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: var(--t-h3); font-weight: 700;
  letter-spacing: -0.018em;
  margin: 0 0 14px;
}
.tech-card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; max-width: 320px; }

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

/* ---- deck-render figures ---- */
/* Restrained sizing so the renders complement the surrounding type
   instead of dominating the section. Smaller than the original placement
   pass; capped tighter on the history image since slide 13 is a
   denser composition. */
.device-figure,
.history-figure {
  margin: 48px auto 0;
  text-align: center;
}
.device-figure img,
.history-figure img {
  width: 100%; height: auto; display: block;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px -36px rgba(11, 27, 43, 0.25);
}
.device-figure img  { max-width: 620px; }
.history-figure img { max-width: 380px; }
.device-figure figcaption,
.history-figure figcaption {
  margin-top: 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---- blowup ---- */
/* Black studio backdrop so the Blender frame (which renders against a near-
   black studio gradient) blends into the page seamlessly — no visible image
   rectangle. Also gives the cyan accents max contrast. */
.blowup { position: relative; background: #050810; color: #f0f4f9; min-height: 320vh; }
.blowup-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
#blowup-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
#blowup-render { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.blowup-head {
  position: absolute; top: 56px; left: 50%;
  transform: translateX(-50%);
  z-index: 3; text-align: center; max-width: 680px; padding: 0 24px;
}
.blowup-head h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  color: #fff; margin: 10px 0 8px; letter-spacing: -0.02em;
}
.blowup-head .eyebrow { justify-content: center; }
.blowup-head p {
  color: rgba(240, 244, 249, 0.6); font-size: 14px;
  margin: 0; max-width: 540px; margin-left: auto; margin-right: auto;
}
.blowup-progress {
  position: absolute; bottom: 56px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; align-items: center; gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(240, 244, 249, 0.55);
}
.blowup-bar { width: 220px; height: 1px; background: rgba(255,255,255,0.18); position: relative; overflow: hidden; }
.blowup-bar > span { position: absolute; inset: 0 auto 0 0; background: var(--c-primary); width: 0%; transition: width 0.05s linear; }
.blowup-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.b-label {
  position: absolute;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.20em; text-transform: uppercase;
  color: rgba(240, 244, 249, 0.88);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  transform: translate(-50%, -50%);
}
.b-label .b-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 12px var(--c-primary);
}
.b-label .b-rule { display: inline-block; width: 44px; height: 1px; background: rgba(255,255,255,0.4); }
.b-label.right { transform: translate(0, -50%); }
.b-label.left  { transform: translate(-100%, -50%); flex-direction: row-reverse; }

/* Mobile (small phones): the side-pinned labels run off the screen, so
   on ≤540px we re-style them as a static legend at the bottom of the
   sticky canvas — every part name visible, no positioning around the
   exploding device. JS still sets el.style.{left,top,opacity}, but we
   neutralize those with !important. */
@media (max-width: 540px) {
  .blowup-labels {
    position: absolute;
    left: 50%; bottom: 84px;            /* sits above the progress bar */
    transform: translateX(-50%) !important;
    width: 92vw; max-width: 480px;
    display: flex; flex-direction: column; gap: 6px;
    z-index: 3; pointer-events: none;
  }
  .b-label {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 6px;
    font-size: 9.5px;
    letter-spacing: 0.14em;
    white-space: normal;
    padding: 2px 0;
  }
  .b-label .b-rule { display: none !important; }
  .b-label .b-dot {
    width: 4px; height: 4px;
    box-shadow: 0 0 6px var(--c-primary);
  }
}
@media (max-width: 760px) {
  .blowup-head { top: 28px; padding: 0 18px; }
  .blowup-head h2 { font-size: 20px; }
  .blowup-head p  { font-size: 13px; }
}

/* ---- data callouts ---- */
.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.data-card {
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xl);
  padding: 52px 32px;
  background: linear-gradient(180deg, #ffffff, #f9fafc);
  position: relative;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.data-card::before {
  content: ''; position: absolute; top: 0; left: 32px; right: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  border-radius: 2px;
}
.data-num {
  font-family: 'Manrope', sans-serif;
  font-feature-settings: 'tnum', 'ss01';
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.038em;
  margin-bottom: 18px;
  color: var(--ink);
  line-height: 1;
  /* Keep "25% → 90%" on a single line; flex-baseline so the arrow sits
     visually on the baseline of the numerals. */
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.data-num .num { font-feature-settings: 'tnum'; }
.data-num .arrow {
  color: var(--c-primary);
  font-weight: 500;
  font-size: 0.78em;
  padding: 0 4px;
  position: relative;
  top: -0.06em;
}
.data-label { color: var(--ink-soft); font-size: 15px; max-width: 260px; }
@media (max-width: 900px) { .data-grid { grid-template-columns: 1fr; } }

/* ---- team ---- */
.team-block { max-width: 840px; margin: 0 auto; text-align: center; }
.team-copy {
  font-size: clamp(18px, 1.45vw, 22px);
  color: var(--ink-soft);
  margin: 0 0 40px;
  line-height: 1.55;
  font-weight: 400;
}
.team-link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(transparent calc(100% - 1px), var(--c-primary) 1px);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease, color 0.2s ease;
}
.team-link:hover {
  color: var(--c-secondary);
  background-size: 100% 100%;
}
.team-link strong { font-weight: 600; }
.team-affiliations-label {
  margin-top: 8px; margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-secondary);
  display: inline-flex; align-items: center; gap: 12px;
}
.team-affiliations-label::before,
.team-affiliations-label::after {
  content: ''; width: 18px; height: 1px;
  background: var(--ink-line);
}
.team-affiliations {
  display: flex; flex-wrap: wrap; row-gap: 14px; column-gap: 22px;
  justify-content: center;
  color: var(--ink-mute);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  max-width: 880px; margin-left: auto; margin-right: auto;
}
.team-affiliations span {
  white-space: nowrap;
  display: inline-flex; align-items: center;
}
/* The separator dot lives on every item EXCEPT the last via ::after,
   so when the row wraps to a new line the dot is on the previous line
   (not orphaned at the start of the new line). */
.team-affiliations span:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--c-primary);
  margin-left: 22px;
  vertical-align: middle;
  opacity: 0.7;
}
@media (max-width: 640px) {
  .team-affiliations { font-size: 11px; letter-spacing: 0.14em; column-gap: 16px; }
  .team-affiliations span:not(:last-child)::after { margin-left: 16px; }
}

.team-footnote {
  margin: 40px auto 0;
  max-width: 620px;
  color: var(--ink-mute);
  font-size: 13.5px;
  line-height: 1.55;
  text-align: center;
  font-style: italic;
}
.team-footnote strong { font-style: normal; font-weight: 600; color: var(--ink-soft); }

/* ---- FAQ grid ---- */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-lg);
  padding: 28px 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-card:hover {
  border-color: var(--c-primary);
  box-shadow: 0 12px 30px -22px rgba(11, 27, 43, 0.16);
}
.faq-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 10px;
}
.faq-card p {
  margin: 0;
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-soft);
}
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---- contact ---- */
.contact { background: var(--bg-deep); color: #f0f4f9; }
.contact-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.contact h2 { color: #fff; font-size: var(--t-h2); margin: 14px 0 18px; letter-spacing: -0.024em; }
.contact p { color: rgba(240, 244, 249, 0.78); max-width: 480px; margin: 0; }
.contact .eyebrow { color: var(--c-primary); }
.contact-card {
  border: 1px solid var(--hair-2);
  border-radius: var(--r-xl);
  padding: 40px;
  background: rgba(255,255,255,0.025);
  text-align: center;
}
.contact-meta {
  margin-top: 24px;
  color: rgba(240, 244, 249, 0.55);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

/* ---- footer ---- */
.footer {
  background: var(--bg-deeper);
  color: rgba(240, 244, 249, 0.55);
  border-top: 1px solid var(--hair);
  padding: 44px 0 60px;
}
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-brand .brand-name { color: #fff; font-weight: 800; font-size: 19px; }
.footer-tag { margin-top: 8px; font-size: 13px; max-width: 360px; }
.footer-meta {
  font-size: 11.5px; text-align: right; max-width: 520px; line-height: 1.8;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em;
}
.footer-note { margin-top: 8px; color: rgba(240, 244, 249, 0.35); text-transform: uppercase; letter-spacing: 0.18em; }
@media (max-width: 640px) { .footer-meta { text-align: left; } }

@media (prefers-reduced-motion: reduce) {
  .btn, .tech-card, .blowup-bar > span { transition: none; }
  .marquee-track, .scroll-tick { animation: none; }
}
