/* ============================================================
   SPORTHYPE — Corporate site
   Design system. Brand palette & gradient preserved:
   mint #08FFB5 · blue #50C9F8 · gradient 135° mint→blue
   Dark, glassmorphism, Inter + IBM Plex Mono.
   ============================================================ */

:root {
  /* Brand */
  --mint: #08ffb5;
  --blue: #50c9f8;
  --grad-angle: 135deg;
  --grad: linear-gradient(var(--grad-angle), var(--mint), var(--blue));
  --grad-soft: linear-gradient(var(--grad-angle), rgba(8,255,181,.16), rgba(80,201,248,.16));

  /* Background */
  --bg-top: #2f3543;
  --bg-bottom: #04060a;

  /* Ink */
  --ink-0: #ffffff;
  --ink-1: #e8edf5;
  --ink-2: #b7c0cf;
  --ink-3: #8a93a3;
  --ink-4: #5c6473;

  /* Surfaces (glass) */
  --surface-1: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --surface-3: rgba(255,255,255,.09);
  --line-1: rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.16);
  --line-mint: rgba(8,255,181,.32);

  /* Type */
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rhythm */
  --section-y: clamp(76px, 9.5vw, 140px);
  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1200px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 13px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* density tweak */
[data-density="compact"] { --section-y: clamp(54px, 6.5vw, 96px); }
[data-density="airy"]    { --section-y: clamp(100px, 13vw, 196px); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-1);
  background: var(--bg-bottom);
  line-height: 1.55;
  overflow-x: hidden;
}

/* Layered background */
.bg-field {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 720px at 80% -10%, rgba(80,201,248,.15), transparent 60%),
    radial-gradient(940px 680px at 6% 10%, rgba(8,255,181,.10), transparent 58%),
    linear-gradient(to bottom, var(--bg-top), var(--bg-bottom) 60%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: radial-gradient(1200px 820px at 50% 0%, #000, transparent 80%);
          mask-image: radial-gradient(1200px 820px at 50% 0%, #000, transparent 80%);
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }

/* alternating panel tone — no full-width separator lines, just a faint tint */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0) 70%);
}

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 12px rgba(8,255,181,.7);
}
.eyebrow--plain::before { display: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.06; color: var(--ink-0); }
.display { font-size: clamp(42px, 6.6vw, 82px); line-height: 1.0; letter-spacing: -.038em; }
.h2 { font-size: clamp(30px, 4.4vw, 54px); letter-spacing: -.03em; }
.h3 { font-size: clamp(21px, 2.4vw, 28px); letter-spacing: -.02em; }
.lede { font-size: clamp(17px, 1.55vw, 21px); color: var(--ink-2); font-weight: 400; line-height: 1.62; }
.muted { color: var(--ink-3); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.measure { max-width: 56ch; }
.measure-sm { max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--bh); padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), opacity .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad); color: #04201a;
  box-shadow: 0 10px 30px -10px rgba(8,255,181,.55), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -12px rgba(8,255,181,.7), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost {
  background: var(--surface-2); color: var(--ink-0);
  border-color: var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--surface-3); border-color: var(--line-mint); transform: translateY(-2px); }
.btn-sm { --bh: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { --bh: 58px; padding: 0 30px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Glass card ---------- */
.card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line-1);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.card-pad { padding: clamp(20px, 2.4vw, 30px); }
.card-hover:hover { background: var(--surface-2); border-color: var(--line-mint); transform: translateY(-4px); }

/* chip / badge */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--grad-soft); border: 1px solid var(--line-mint);
  font-size: 13px; font-weight: 500; color: var(--ink-1);
}
.chip svg { width: 15px; height: 15px; color: var(--mint); }

/* icon tile */
.itile {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center; flex: none;
  background: var(--grad-soft); border: 1px solid var(--line-mint);
  color: var(--mint);
}
.itile svg { width: 25px; height: 25px; }

.hr { height: 1px; background: var(--line-1); border: 0; }

/* ---------- Reveal on scroll (always visible at rest) ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .anim-on .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .anim-on .reveal.in { opacity: 1; transform: none; }
}
.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: background .3s var(--ease), border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8,10,16,.74);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-1);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--ink-0); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-btn { display: none; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-0); width: 42px; height: 42px; border-radius: 12px; cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
.drawer { display: none; }

/* language switch (EN / IT) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-1); }
.lang-switch button { appearance: none; -webkit-appearance: none; border: 0; background: transparent; cursor: pointer; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); padding: 6px 11px; border-radius: 999px; line-height: 1; transition: color .15s var(--ease), background .15s var(--ease); }
.lang-switch button:hover { color: var(--ink-0); }
.lang-switch button.active { color: #06080d; background: var(--grad); }
.lang-switch button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--grad-soft); }
.lang-switch--drawer { align-self: flex-start; margin-top: 14px; }

@media (max-width: 940px) {
  .nav, .header-actions .btn, .header-actions .lang-switch { display: none; }
  .menu-btn { display: grid; }
  .drawer {
    display: block; position: fixed; inset: 74px 0 auto 0; z-index: 55;
    background: rgba(8,10,16,.97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-1);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .drawer.open { transform: none; opacity: 1; pointer-events: auto; }
  .drawer-inner { padding: 18px var(--gutter) 26px; display: grid; gap: 4px; }
  .drawer a { color: var(--ink-1); text-decoration: none; font-size: 17px; font-weight: 500; padding: 13px 0; border-bottom: 1px solid var(--line-1); }
  .drawer .btn { margin-top: 16px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(128px, 17vh, 196px); padding-bottom: var(--section-y); position: relative; overflow: hidden; }

/* hero background image (statement mode) */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; display: none; }
.hero-bg img {
  position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%);
  width: min(1180px, 135%); max-width: none; opacity: .5;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 45%, rgba(4,6,10,.45), transparent 70%); }

/* animated harmonograph canvas (replaces the static png when JS runs) */
.hero-bg .hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; display: none;
  opacity: .92;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
}
.hero-bg.has-canvas .hero-canvas { display: block; }
.hero-bg.has-canvas img { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg.has-canvas .hero-canvas { display: none; }
  .hero-bg.has-canvas img { display: block; }
}
.hero-grid {
  display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-copy { display: grid; gap: 26px; }
.hero h1 { max-width: 15ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.hero-note svg { width: 16px; height: 16px; color: var(--mint); }

/* hero stat strip */
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 46px); margin-top: 6px; }
.hstat { padding-top: 4px; }
.hstat .n { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; letter-spacing: -.03em; }
.hstat .l { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

/* hero visual — framed product/brand image */
.hero-visual { position: relative; }
.hv-glow { position: absolute; inset: -10% -6% -12% -6%; background: var(--grad); filter: blur(95px); opacity: .24; border-radius: 50%; z-index: 0; }
.hv-frame {
  position: relative; z-index: 1; width: 100%;
  border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  box-shadow: 0 44px 96px -32px rgba(0,0,0,.74);
  overflow: hidden; background: #06080d;
}
.hv-frame img { width: 100%; display: block; }
.hv-tag {
  position: absolute; z-index: 3; left: -14px; bottom: 16%;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 15px; border-radius: 13px;
  background: rgba(8,11,18,.84); border: 1px solid var(--line-mint);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12.5px; font-weight: 600; color: var(--ink-0);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.7);
}
.hv-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

/* hero layout variants (tweakable) */
[data-hero="centered"] .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
[data-hero="centered"] .hero h1, [data-hero="centered"] .hero .lede { max-width: 24ch; }
[data-hero="centered"] .hero-cta, [data-hero="centered"] .hero-stats { justify-content: center; }
[data-hero="centered"] .hero-visual { margin-top: 44px; max-width: 880px; width: 100%; }
[data-hero="centered"] .hero-stats { width: 100%; max-width: 760px; }

[data-hero="minimal"] .hero-visual { display: none; }
[data-hero="minimal"] .hero-bg { display: block; }
[data-hero="minimal"] .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; position: relative; z-index: 1; }
[data-hero="minimal"] .hero-copy { justify-items: center; }
[data-hero="minimal"] .hero h1 { max-width: 18ch; }
[data-hero="minimal"] .hero h1.display { font-size: clamp(46px, 8vw, 104px); }
[data-hero="minimal"] .hero .lede { max-width: 56ch; }
[data-hero="minimal"] .hero-cta, [data-hero="minimal"] .hero-stats { justify-content: center; }

/* ============================================================
   PILLARS (mission / DNA)
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { padding: clamp(22px,2.4vw,30px); display: grid; gap: 14px; align-content: start; }
.pillar h4 { font-size: 18px; }
.pillar p { margin: 0; font-size: 14.5px; color: var(--ink-3); }

/* ============================================================
   AT-A-GLANCE STAT BAND
   ============================================================ */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-1); border: 1px solid var(--line-1); border-radius: var(--radius); overflow: hidden; }
.statband .cell { background: rgba(8,11,18,.5); padding: clamp(22px,2.6vw,34px); }
.statband .n { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.03em; }
.statband .l { color: var(--ink-3); font-size: 13.5px; margin-top: 6px; max-width: 24ch; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head { display: grid; gap: 16px; max-width: 62ch; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ============================================================
   PRODUCTS / ECOSYSTEM
   ============================================================ */
.products { display: grid; gap: 20px; }

/* flagship */
.flagship { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; overflow: hidden; align-items: stretch; }
.flagship-media { position: relative; min-height: 340px; background: #06080d; border-right: 1px solid var(--line-1); }
.flagship-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flagship-media .veil { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(6,8,13,.55)); }
.flagship-body { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.flagship-logo { height: 30px; width: auto; }
.flagship-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.flagship-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.flagship-body p { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.62; max-width: 52ch; }
.flagship-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.flagship-tags .t { font-size: 12.5px; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-1); }
.flagship-body .btn { margin-top: 4px; }
@media (max-width: 860px) {
  .flagship { grid-template-columns: 1fr; }
  .flagship-media { min-height: 240px; border-right: 0; border-bottom: 1px solid var(--line-1); }
}

/* full-width "build with us" CTA card under the flagship */
.prod-cta {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(20px,3vw,40px);
  padding: clamp(24px,2.8vw,40px); flex-wrap: wrap;
  border-style: dashed; border-color: var(--line-2);
}
.prod-cta .pc-left { display: flex; align-items: center; gap: 20px; min-width: 280px; flex: 1; }
.prod-cta .prod-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-mint); color: var(--mint); flex: none; }
.prod-cta .prod-icon svg { width: 26px; height: 26px; }
.prod-cta .pc-text { display: grid; gap: 6px; }
.prod-cta .soon { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.prod-cta h4 { font-size: clamp(19px,2vw,23px); color: var(--ink-0); }
.prod-cta p { margin: 0; font-size: 14.5px; color: var(--ink-3); max-width: 60ch; }
.prod-cta .btn { flex: none; }
@media (max-width: 640px) { .prod-cta { align-items: flex-start; } .prod-cta .btn { width: 100%; } }

/* ============================================================
   SCIENCE + PARTNERS
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.stretch { align-items: stretch; }
.split.stretch .split-media, .split.stretch .media-frame { height: 100%; }
.split.stretch .media-frame img { height: 100%; object-fit: cover; }
.split.reverse .split-media { order: 2; }
.split-copy { display: grid; gap: 22px; }
.feat-list { display: grid; gap: 14px; }
.feat {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 16px; border-radius: var(--radius-sm);
  background: var(--surface-1); border: 1px solid var(--line-1);
  transition: background .3s, border-color .3s;
}
.feat:hover { background: var(--surface-2); border-color: var(--line-mint); }
.feat .itile { width: 46px; height: 46px; border-radius: 12px; }
.feat .itile svg { width: 22px; height: 22px; }
.feat h4 { font-size: 16.5px; margin-bottom: 4px; color: var(--ink-0); }
.feat p { margin: 0; font-size: 14px; color: var(--ink-3); }
.split-media { position: relative; }
.media-frame {
  position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  overflow: hidden; box-shadow: 0 40px 90px -36px rgba(0,0,0,.7); background: #06080d;
}
.media-frame img { width: 100%; display: block; }
.media-glow { position: absolute; inset: 8% 8% 8% 8%; background: var(--grad); filter: blur(80px); opacity: .2; z-index: -1; border-radius: 40%; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  /* In single-column the portrait app screenshot would span full width and
     become huge — cap it and center it instead. */
  .split.stretch .split-media, .split.stretch .media-frame { height: auto; }
  .split-media { max-width: 380px; margin-inline: auto; width: 100%; }
  .media-frame img { height: auto; object-fit: contain; }
}

/* partners — given real weight */
.academia {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-mint); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(8,255,181,.06), rgba(80,201,248,.03));
  padding: clamp(28px,3.4vw,52px);
}
.academia::before { content: ""; position: absolute; inset: -50% 30% auto 30%; height: 70%; background: var(--grad); filter: blur(110px); opacity: .14; z-index: 0; }
.academia > * { position: relative; z-index: 1; }
.academia .uni-line { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-1); margin-top: 6px; }
.academia .uni-line svg { width: 18px; height: 18px; color: var(--mint); }
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(26px,3vw,40px); }
.partner { padding: clamp(24px,2.6vw,30px); display: grid; gap: 14px; align-content: start; min-height: 220px; }
.partner .itile { width: 48px; height: 48px; border-radius: 13px; }
.partner .itile svg { width: 23px; height: 23px; }
.partner .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.partner h4 { font-size: clamp(19px,2vw,24px); }
.partner h4 .grad-text { display: inline; }
.partner p { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.partner .org { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.partner .org svg { width: 15px; height: 15px; color: var(--mint); flex: none; }
@media (max-width: 760px) { .partners { grid-template-columns: 1fr; } .partner { min-height: 0; } }

/* ============================================================
   TEAM
   ============================================================ */
.team-group { display: grid; gap: 26px; }
.team-sub { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-grid.founders { grid-template-columns: repeat(3, 1fr); max-width: 880px; }
.member { display: grid; gap: 0; overflow: hidden; }
.member .photo { aspect-ratio: 1 / 1; background: #0a0d14; overflow: hidden; position: relative; }
.member .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: filter .4s var(--ease), transform .5s var(--ease); }
.member:hover .photo img { filter: grayscale(0); transform: scale(1.03); }
.member .mono {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.02em;
  color: var(--mint);
  background: radial-gradient(120% 120% at 30% 0%, rgba(8,255,181,.14), rgba(80,201,248,.05) 60%, transparent), #0a0d14;
}
.member .info { padding: 16px 18px 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.member .info .txt { display: grid; gap: 4px; min-width: 0; }
.member .nm { font-size: 16px; font-weight: 600; color: var(--ink-0); }
.member .rl { font-size: 12.5px; color: var(--ink-3); }
.member .rl.exec { color: var(--mint); }
.member .li { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--surface-2); border: 1px solid var(--line-1); color: var(--ink-2); transition: color .2s, border-color .2s, transform .2s var(--ease); }
.member .li:hover { color: var(--mint); border-color: var(--line-mint); transform: translateY(-2px); }
.member .li svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2,1fr); } .team-grid.founders { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .team-grid, .team-grid.founders { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   RECOGNITION + LOCATION
   ============================================================ */
.reco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.reco-card { padding: clamp(26px,3vw,40px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.reco-card .kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); display: inline-flex; align-items: center; gap: 9px; }
.reco-card .kicker svg { width: 16px; height: 16px; }
.reco-card h3 { font-size: clamp(22px, 2.6vw, 30px); }
.reco-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; max-width: 46ch; }
.reco-card .meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
@media (max-width: 760px) { .reco-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FINAL CTA / CONTACT
   ============================================================ */
.finalcta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line-mint);
  padding: clamp(44px, 6vw, 84px);
  background: linear-gradient(180deg, rgba(8,255,181,.08), rgba(80,201,248,.05));
  text-align: center; display: grid; gap: 22px; justify-items: center;
}
.finalcta::before { content: ""; position: absolute; inset: -40% 20% auto 20%; height: 60%; background: var(--grad); filter: blur(90px); opacity: .3; z-index: 0; }
.finalcta > * { position: relative; z-index: 1; }
.finalcta .hero-cta { justify-content: center; }
.contact-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.contact-meta a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-1); text-decoration: none; transition: color .2s; }
.contact-meta a:hover { color: var(--mint); }
.contact-meta svg { width: 16px; height: 16px; color: var(--mint); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line-1); padding-block: clamp(48px,6vw,72px) 34px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand { display: grid; gap: 16px; align-content: start; max-width: 34ch; }
.foot-brand img { height: 20px; width: auto; }
.foot-brand p { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.foot-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 16px; font-weight: 500; }
.foot-col a { display: block; color: var(--ink-2); text-decoration: none; font-size: 14.5px; padding: 5px 0; transition: color .2s; cursor: pointer; }
.foot-col a:hover { color: var(--ink-0); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line-1); color: var(--ink-4); font-size: 13px; }
.foot-bottom .socials { display: flex; gap: 10px; }
.foot-bottom .socials a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-1); color: var(--ink-2); transition: color .2s, border-color .2s; }
.foot-bottom .socials a:hover { color: var(--mint); border-color: var(--line-mint); }
.foot-bottom .socials svg { width: 17px; height: 17px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* hero responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; margin-top: 34px; }
  .pillars { grid-template-columns: 1fr; }
  .statband { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .statband { grid-template-columns: 1fr; }
}

/* ============================================================
   NARRATIVE VARIANT (investor vs product-led)
   reorders main sections + toggles the at-a-glance band
   ============================================================ */
[data-narrative="investor"] .only-product { display: none; }
[data-narrative="product"]  .only-investor { display: none; }

/* section ordering via flex order on <main> children */
main { display: flex; flex-direction: column; }
.s-hero      { order: 0; }
.s-glance    { order: 1; }
.s-mission   { order: 2; }
.s-products  { order: 3; }
.s-science   { order: 4; }
.s-team      { order: 5; }
.s-reco      { order: 6; }
.s-contact   { order: 7; }

/* product-led: products jump ahead of mission/science emphasis */
[data-narrative="product"] .s-products { order: 2; }
[data-narrative="product"] .s-mission  { order: 3; }
[data-narrative="product"] .s-science  { order: 4; }

/* ============================================================
   MICRO-INTERACTIONS
   tasteful, brand-aligned, all gated on reduced-motion where looping
   ============================================================ */

/* trailing arrows / icons nudge on hover */
.btn svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg, .btn-ghost:hover svg, .flagship .btn:hover svg, .prod-cta .btn:hover svg { transform: translateX(4px); }

/* primary button — light sweep on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 65%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); z-index: 0; pointer-events: none;
  transition: left .65s var(--ease);
}
.btn-primary:hover::after { left: 140%; }

/* ghost buttons / link tiles get a soft lift already; add focus polish */
.btn:focus-visible, .nav a:focus-visible, .foot-col a:focus-visible,
.cm-field input:focus-visible, .cm-field textarea:focus-visible {
  outline: 2px solid var(--line-mint); outline-offset: 3px;
}

/* nav link underline grow */
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

/* icon tiles spring on parent hover */
.itile { transition: transform .45s var(--ease), background .4s var(--ease), border-color .4s var(--ease); }
.card-hover:hover .itile, .feat:hover .itile, .pillar:hover .itile { transform: translateY(-3px) rotate(-5deg) scale(1.07); }

/* media imagery slow zoom on hover */
.media-frame img, .flagship-media img { transition: transform .9s var(--ease); }
.split-media:hover .media-frame img { transform: scale(1.045); }
.flagship:hover .flagship-media img { transform: scale(1.045); }

/* stat band cells warm up on hover */
.statband .cell { transition: background .35s var(--ease); }
.statband .cell:hover { background: rgba(8,255,181,.06); }

@media (prefers-reduced-motion: no-preference) {
  /* eyebrow dot breathing */
  .eyebrow::before { animation: dotPulse 2.8s var(--ease) infinite; }
  @keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(8,255,181,.7); }
    50%      { box-shadow: 0 0 3px rgba(8,255,181,.4); transform: scale(.82); }
  }

  /* "live" status dots radiate */
  .hv-tag .dot, .flagship-status .dot { animation: livePulse 2s ease-in-out infinite; }
  @keyframes livePulse {
    0%        { box-shadow: 0 0 0 0 rgba(8,255,181,.55); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(8,255,181,0); }
  }

  /* gradient text gentle shimmer */
  .grad-text { background-size: 220% 100%; animation: gradShift 9s ease-in-out infinite; }
  @keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

  /* ambient glows drift */
  .media-glow, .hv-glow { animation: floatGlow 8s ease-in-out infinite; }
  @keyframes floatGlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
}

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 120; display: none; }
.modal.open { display: block; }
.modal-overlay {
  position: absolute; inset: 0; background: rgba(3,5,9,.66);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.modal.show .modal-overlay { opacity: 1; }
.modal-card {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(.975);
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100dvh - 40px); overflow: auto;
  background: linear-gradient(180deg, rgba(22,28,39,.97), rgba(8,11,18,.98));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.85);
  padding: clamp(26px, 3.4vw, 44px);
  opacity: 0; transition: opacity .35s var(--ease), transform .42s var(--ease);
}
.modal.show .modal-card { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.modal-card::before {
  content: ""; position: absolute; inset: -40% 25% auto 25%; height: 50%;
  background: var(--grad); filter: blur(90px); opacity: .14; z-index: 0; pointer-events: none;
}
.modal-card > * { position: relative; z-index: 1; }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 11px; cursor: pointer;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-1); color: var(--ink-2);
  transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.modal-close:hover { color: var(--ink-0); border-color: var(--line-mint); transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }
.modal-title { font-size: clamp(24px, 3vw, 32px); margin-top: 14px; letter-spacing: -.03em; }
.modal-sub { color: var(--ink-2); margin: 12px 0 0; font-size: 15px; line-height: 1.6; max-width: 50ch; }
.modal-sub a { color: var(--mint); text-decoration: none; font-weight: 600; }
.modal-sub a:hover { text-decoration: underline; }

.cm-form { display: grid; gap: 16px; margin-top: 26px; }
.cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cm-field { display: grid; gap: 7px; min-width: 0; }
.cm-field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .005em; }
.cm-field em { font-style: normal; color: var(--ink-4); font-weight: 500; }
.cm-field input, .cm-field textarea, .cm-select select {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink-0);
  background: var(--surface-2); border: 1px solid var(--line-1); border-radius: 12px;
  padding: 13px 14px; transition: border-color .25s, background .25s, box-shadow .25s;
}
.cm-field input::placeholder, .cm-field textarea::placeholder { color: var(--ink-4); }
.cm-field textarea { resize: vertical; min-height: 100px; line-height: 1.55; }
.cm-field input:focus, .cm-field textarea:focus, .cm-select select:focus {
  outline: none; border-color: var(--line-mint); background: var(--surface-3);
  box-shadow: 0 0 0 3px rgba(8,255,181,.14);
}
.cm-field.err input, .cm-field.err textarea { border-color: rgba(255,120,120,.6); box-shadow: 0 0 0 3px rgba(255,90,90,.12); }
.cm-select { position: relative; }
.cm-select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.cm-select select option { background: #0c1118; color: var(--ink-1); }
.cm-select svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.cm-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.cm-note { font-size: 12px; color: var(--ink-4); margin: 0; max-width: 34ch; line-height: 1.5; }
.cm-foot .btn { flex: none; }

/* honeypot — visually hidden, off-screen, never focusable for humans */
.cm-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* consent checkbox */
.cm-consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.cm-consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; margin-top: 1px;
  width: 18px; height: 18px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface-1);
  display: grid; place-content: center; transition: border-color .15s var(--ease), background .15s var(--ease);
}
.cm-consent input[type="checkbox"]::after {
  content: ""; width: 10px; height: 10px; border-radius: 3px; transform: scale(0);
  background: var(--grad); transition: transform .15s var(--ease);
}
.cm-consent input[type="checkbox"]:checked { border-color: var(--line-mint); }
.cm-consent input[type="checkbox"]:checked::after { transform: scale(1); }
.cm-consent input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--grad-soft); }
.cm-consent span { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.cm-consent a { color: var(--mint); text-decoration: none; font-weight: 600; }
.cm-consent a:hover { text-decoration: underline; }
.cm-consent.err input[type="checkbox"] { border-color: rgba(255,120,120,.6); box-shadow: 0 0 0 3px rgba(255,90,90,.12); }

/* Turnstile host — collapses to nothing while invisible */
.cm-turnstile:empty { display: none; }
.cm-turnstile { display: flex; }

/* server-side / submit error message */
.cm-error { margin: 0; font-size: 13px; line-height: 1.5; color: #ff9b9b; }
.cm-error[hidden] { display: none; }

/* submit loading / spinner */
.cm-spinner { display: none; }
.btn-primary.is-loading { pointer-events: none; opacity: .85; }
.btn-primary.is-loading .cm-arrow { display: none; }
.btn-primary.is-loading .cm-spinner { display: block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* success state */
.cm-success { text-align: center; justify-items: center; display: grid; gap: 8px; padding-block: clamp(14px, 3vw, 30px); }
.cm-success[hidden] { display: none; }
.cm-success .btn { margin-top: 18px; }
.cm-check {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px;
  background: var(--grad-soft); border: 1px solid var(--line-mint); color: var(--mint);
}
.cm-check svg { width: 34px; height: 34px; }
@media (prefers-reduced-motion: no-preference) {
  .modal.show .cm-check { animation: popIn .5s var(--ease) both; }
  @keyframes popIn { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
}
body.modal-open { overflow: hidden; }
@media (max-width: 560px) {
  .cm-row { grid-template-columns: 1fr; }
  .cm-foot { flex-direction: column-reverse; align-items: stretch; }
  .cm-foot .btn { width: 100%; }
}
