/* =========================================================
   DigiTherapix · site styles
   Concept: "a motion-capture lab at night". Deep navy from the
   logo, mint and azure light, precise mono read-outs.
   ========================================================= */

:root {
  /* colour */
  --bg: #030b1f;
  --bg-2: #061430;
  --bg-3: #0a1c3e;
  --surface: rgba(140, 180, 255, 0.05);
  --surface-2: rgba(140, 180, 255, 0.09);
  --line: rgba(150, 190, 255, 0.14);
  --line-2: rgba(150, 190, 255, 0.26);
  --text: #eaf2ff;
  --muted: #a8bad4;      /* 9.3:1 on --bg */
  --muted-2: #7f93b3;    /* 5.9:1 on --bg */
  --mint: #7ef5c8;
  --teal: #19d3a8;
  --azure: #2f8fff;
  --azure-2: #1a6dff;
  --cyan: #8cf2f5;
  --warn: #ffb547;
  --danger: #ff6b7d;
  --on-accent: #02142c;

  --grad: linear-gradient(100deg, var(--mint) 0%, var(--cyan) 45%, var(--azure) 100%);

  /* type */
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-sm: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.6rem);
  --fs-hero: clamp(3.2rem, 1.6rem + 7.2vw, 7.6rem);

  /* space & shape */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 6.5vw, 100px);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1240px;

  /* motion (personality: confident, precise) */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t-med: 420ms;
  --t-slow: 900ms;

  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--mint); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--azure); color: #fff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: 12px; transform: translateY(-80px); z-index: 100; background: var(--mint); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: transform var(--t-fast); }
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.small { font-size: var(--fs-sm); }
.muted { color: var(--muted-2); }
.muted-1 { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.placeholder { color: var(--warn); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.kicker { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.h2 { font-size: var(--fs-h2); margin-bottom: 20px; max-width: 18ch; }
.h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 62ch; }
.section { padding: var(--section) 0; position: relative; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- buttons ---------- */
.btn { --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 26px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-med) var(--ease-out), background var(--t-fast), color var(--t-fast); white-space: nowrap; }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn-primary { background: var(--grad); color: var(--on-accent); box-shadow: 0 8px 30px -10px rgba(126, 245, 200, 0.55); }
.btn-primary:hover { color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(126, 245, 200, 0.75); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); border-color: var(--mint); transform: translateY(-2px); }
.btn span[aria-hidden] { transition: transform var(--t-fast) var(--ease-out); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }

.icon-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); font: 500 0.8rem/1 var(--font-body); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn-light { background: rgba(3, 11, 31, 0.5); color: var(--text); backdrop-filter: blur(8px); }
.i-pause { width: 10px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
[aria-pressed="true"] .i-pause { border: 0; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background var(--t-med), border-color var(--t-med), backdrop-filter var(--t-med); border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(3, 11, 31, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 36px; height: auto; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--cyan); }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav-list a:not(.btn) { display: block; padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; border-radius: 999px; transition: color var(--t-fast), background var(--t-fast); }
.nav-list a:not(.btn):hover, .nav-list a.active { color: var(--text); background: var(--surface); }
.nav-cta-item { margin-left: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast); }
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { content: ""; left: 0; right: 0; top: -7px; }
.nav-toggle-bars::after { content: ""; left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.scroll-progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav-list { position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px; background: rgba(3, 11, 31, 0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav-list.open { display: flex; }
  .nav-list a:not(.btn) { padding: 14px 8px; font-size: 1.05rem; border-radius: 10px; }
  .nav-cta-item { margin: 12px 0 0; }
  .nav-cta-item .btn { width: 100%; --h: 50px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.a1 { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: radial-gradient(circle, rgba(126, 245, 200, 0.42), transparent 65%); animation: drift1 18s var(--ease-in-out) infinite alternate; }
.a2 { width: 46vw; height: 46vw; right: -12vw; top: 4vw; background: radial-gradient(circle, rgba(47, 143, 255, 0.5), transparent 65%); animation: drift2 22s var(--ease-in-out) infinite alternate; }
.a3 { width: 36vw; height: 36vw; left: 30vw; bottom: -20vw; background: radial-gradient(circle, rgba(140, 242, 245, 0.25), transparent 65%); animation: drift1 26s var(--ease-in-out) infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(6vw, 4vw, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-5vw, 6vw, 0) scale(0.92); } }
.grid-floor { position: absolute; inset: auto 0 0; height: 46%; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; transform: perspective(600px) rotateX(62deg); transform-origin: 50% 100%; mask-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent 85%); -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent 85%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 120%, transparent 40%, var(--bg) 80%); pointer-events: none; }

.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.dot, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(126, 245, 200, 0.6); animation: ping 2.2s var(--ease-out) infinite; display: inline-block; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(126,245,200,0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(126,245,200,0); } }
.hero-title { font-size: var(--fs-hero); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; margin-bottom: 30px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-lede { font-size: var(--fs-lead); color: var(--muted); max-width: 52ch; margin-bottom: 36px; }
.hero-lede em { color: var(--text); font-style: normal; border-bottom: 1px solid var(--mint); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: var(--fs-sm); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.tick { width: 16px; height: 16px; border-radius: 50%; background: rgba(126,245,200,0.15); position: relative; }
.tick::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* hero intro animation (JS adds .is-loaded) */
.js .hero .hero-title .line > span { transform: translateY(105%); }
.js .hero .eyebrow, .js .hero .hero-lede, .js .hero .hero-actions, .js .hero .vhero-foot { opacity: 0; transform: translateY(18px); }
.js .hero.is-loaded .hero-title .line > span { transform: none; transition: transform 1.1s var(--ease-out); }
.js .hero.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: 0.12s; }
.js .hero.is-loaded .eyebrow, .js .hero.is-loaded .hero-lede, .js .hero.is-loaded .hero-actions, .js .hero.is-loaded .vhero-foot { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js .hero.is-loaded .hero-lede { transition-delay: 0.3s; }
.js .hero.is-loaded .hero-actions { transition-delay: 0.42s; }
.js .hero.is-loaded .vhero-foot { transition-delay: 0.6s; }

/* scanner (signature) */
.scanner { margin: 0; }
.scanner-frame { position: relative; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(10, 28, 62, 0.75), rgba(3, 11, 31, 0.85)); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px rgba(47, 143, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.06); overflow: hidden; backdrop-filter: blur(10px); }
.scanner-top, .scanner-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.scanner-top { border-bottom: 1px solid var(--line); }
.scanner-bottom { border-top: 1px solid var(--line); flex-wrap: wrap; }
.scanner-tabs { display: inline-flex; padding: 4px; gap: 4px; background: rgba(0,0,0,0.25); border-radius: 999px; border: 1px solid var(--line); }
.scanner-tabs button { appearance: none; border: 0; background: transparent; color: var(--muted); font: 500 0.82rem/1 var(--font-body); padding: 9px 14px; min-height: 34px; border-radius: 999px; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.scanner-tabs button[aria-selected="true"] { background: var(--grad); color: var(--on-accent); font-weight: 600; }
.scanner-tabs button:not([aria-selected="true"]):hover { color: var(--text); }
.rec { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--danger); letter-spacing: 0.1em; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.scanner-stage { position: relative; aspect-ratio: 5 / 4.4; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.corner { position: absolute; width: 22px; height: 22px; border-color: var(--mint); border-style: solid; opacity: 0.7; }
.corner.tl { left: 14px; top: 14px; border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.corner.tr { right: 14px; top: 14px; border-width: 2px 2px 0 0; border-top-right-radius: 6px; }
.corner.bl { left: 14px; bottom: 14px; border-width: 0 0 2px 2px; border-bottom-left-radius: 6px; }
.corner.br { right: 14px; bottom: 14px; border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }
.hud { position: absolute; top: 30px; display: grid; gap: 10px; }
.hud-left { left: 28px; } .hud-right { right: 28px; text-align: right; }
.hud-card { padding: 9px 12px; border-radius: 12px; background: rgba(3, 11, 31, 0.6); border: 1px solid var(--line); backdrop-filter: blur(6px); min-width: 108px; }
.hud-k { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.hud-v { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 1.1rem; color: var(--mint); font-variant-numeric: tabular-nums; }
.trace { position: absolute; left: 28px; right: 28px; bottom: 22px; height: 58px; width: calc(100% - 56px); }
.scanner figcaption, .scanner > figcaption { margin-top: 12px; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--mint); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

@media (max-width: 960px) {
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .hud { top: 18px; gap: 6px; } .hud-left { left: 16px; } .hud-right { right: 16px; }
  .hud-card { min-width: 0; padding: 6px 9px; }
  .hud-v { font-size: 0.92rem; }
  .scanner-stage { aspect-ratio: 4 / 4.6; }
  .scanner-tabs button { padding: 8px 10px; font-size: 0.78rem; }
  .trace { left: 16px; right: 16px; width: calc(100% - 32px); height: 48px; bottom: 18px; }
}

/* ---------- trust marquee ---------- */
.trust { padding: 34px 0 10px; }
.trust-title { font-family: var(--font-mono); font-weight: 400; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); text-align: center; margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { list-style: none; display: flex; gap: 18px; width: max-content; align-items: center; }
.marquee-track li { flex: none; height: 74px; display: grid; place-items: center; padding: 12px 22px; border-radius: 16px; background: #f4f7fb; }
.marquee-track li.dark-tile { background: #000; border: 1px solid var(--line); }
.marquee-track img { height: 46px; width: auto; }
.js .marquee.running .marquee-track { animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }

/* ---------- reveal system ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- problem ---------- */
.narrow-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.vitals { list-style: none; display: grid; gap: 10px; }
.vital { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.v-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(47,143,255,0.12); }
.v-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--azure); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v-state { font-family: var(--font-mono); font-size: 0.75rem; padding: 5px 10px; border-radius: 999px; }
.v-state.ok { color: var(--mint); background: rgba(126,245,200,0.1); }
.vital-miss { border-color: rgba(255,181,71,0.45); background: rgba(255,181,71,0.06); }
.vital-miss .v-ico { background: rgba(255,181,71,0.14); }
.vital-miss .v-ico svg { stroke: var(--warn); }
.v-state.miss { color: var(--warn); background: rgba(255,181,71,0.12); }
@media (max-width: 860px) { .narrow-grid { grid-template-columns: 1fr; } }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); position: relative; padding-top: 44px; }
.t-line { position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: var(--line); border-radius: 2px; }
.t-line span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--tp, 0)); transition: transform 120ms linear; box-shadow: 0 0 18px rgba(126,245,200,0.6); }
.t-step { position: relative; }
.t-step::before { content: ""; position: absolute; top: -40px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--mint); box-shadow: 0 0 0 6px rgba(126,245,200,0.1); }
.t-tag { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.t-step h3 { font-size: var(--fs-h3); margin: 10px 0 12px; }
.t-step p { color: var(--muted); }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 36px; gap: 36px; }
  .t-line { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .t-line span { transform-origin: 50% 0; transform: scaleY(var(--tp, 0)); width: 100%; height: 100%; }
  .t-step::before { top: 4px; left: -36px; }
}

/* ---------- platform ---------- */
.platform { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: clamp(44px, 6vw, 72px); counter-reset: s; }
.step { position: relative; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color var(--t-med), transform var(--t-med) var(--ease-out); }
.step:hover { border-color: var(--line-2); transform: translateY(-4px); }
.step-n { position: absolute; right: 22px; top: 20px; color: var(--muted-2); font-size: 0.85rem; }
.step-art { height: 110px; margin: -6px 0 18px; }
.step-art svg { height: 100%; width: auto; }
.step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }
.s-line { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-fill { fill: var(--mint); }
.s-nodes circle { fill: var(--mint); }
.s-arc { fill: none; stroke: var(--warn); stroke-width: 2; }
.s-chart { fill: none; stroke: var(--mint); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 120; }
.s-pulse { fill: none; stroke: var(--mint); stroke-width: 2; transform-origin: 60px 40px; }
.step.in .s-chart { animation: draw 1.6s var(--ease-out) 0.4s forwards; }
.step.in .s-pulse { animation: pulse 2.4s var(--ease-out) infinite; }
.step.in .s-nodes circle { animation: nodepop 2.4s var(--ease-out) infinite; }
.s-nodes circle:nth-child(2n) { animation-delay: 0.3s !important; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes nodepop { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.platform-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.pf-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 40px 100px -40px rgba(47,143,255,0.5); }
.pf-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.platform-feature.in .pf-media img { transform: scale(1); }
.pf-tag { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(3,11,31,0.75); backdrop-filter: blur(8px); font-size: 0.75rem; color: var(--mint); border: 1px solid var(--line); }
.diff-list { list-style: none; display: grid; gap: 18px; }
.diff-list li { position: relative; padding-left: 30px; color: var(--muted); }
.diff-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 2px; background: var(--grad); }
.diff-list b { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .steps, .platform-feature { grid-template-columns: 1fr; } }

/* ---------- products explorer ---------- */
.explorer { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.explorer-list { display: grid; gap: 8px; position: sticky; top: 100px; }
.explorer-list button { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n b" "s b"; text-align: left; gap: 2px 10px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-out); font: inherit; overflow: hidden; }
.explorer-list button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); transform: scaleY(0); transition: transform var(--t-med) var(--ease-out); }
.explorer-list button:hover { border-color: var(--line-2); transform: translateX(3px); }
.explorer-list button[aria-selected="true"] { background: linear-gradient(90deg, rgba(126,245,200,0.12), rgba(47,143,255,0.06)); border-color: rgba(126,245,200,0.45); }
.explorer-list button[aria-selected="true"]::before { transform: scaleY(1); }
.pt-name { grid-area: n; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.pt-sub { grid-area: s; color: var(--muted); font-size: 0.86rem; }
.pt-new, .pt-soon { grid-area: b; align-self: center; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.pt-new { color: var(--on-accent); background: var(--mint); }
.pt-soon { color: var(--warn); border: 1px solid rgba(255,181,71,0.5); }
.explorer-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line-2); overflow: hidden; min-height: 560px; }
.viz { position: relative; border-right: 1px solid var(--line); background: radial-gradient(ellipse at 50% 70%, rgba(47,143,255,0.18), transparent 70%); min-height: 380px; }
.viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-label { position: absolute; left: 16px; top: 14px; font-size: 0.72rem; color: var(--muted-2); letter-spacing: 0.08em; text-transform: uppercase; }
.panel { padding: clamp(24px, 3vw, 40px); }
.panel:focus-visible { outline-offset: -4px; }
.panel[hidden] { display: none; }
.js .panel.enter { animation: panelIn 0.55s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel-kicker { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.panel .h3 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }
.panel-tag { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); margin-bottom: 14px; }
.panel > p { color: var(--muted); }
.panel em { color: var(--text); font-style: normal; border-bottom: 1px solid var(--mint); }
.mini-h { font-family: var(--font-mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin: 22px 0 10px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; background: rgba(126,245,200,0.08); border: 1px solid rgba(126,245,200,0.24); color: var(--text); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
@media (max-width: 1100px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer-list { position: static; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .explorer-list button { scroll-snap-align: start; }
}
@media (max-width: 760px) {
  .explorer-stage { grid-template-columns: 1fr; }
  .viz { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; height: clamp(360px, 70vw, 480px); }
}

/* ---------- duo ---------- */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.amp { display: inline-block; color: var(--mint); }
.duo-cards { display: grid; gap: 16px; }
.duo-card { padding: 26px 28px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.duo-card::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(126,245,200,0.18), transparent 70%); }
.duo-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(126,245,200,0.12); margin-bottom: 14px; }
.duo-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--mint); stroke-width: 1.8; }
.duo-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.duo-card p { margin: 0 0 4px; color: var(--cyan); font-family: var(--font-mono); font-size: 0.86rem; }
.duo-card p.small { font-family: var(--font-body); color: var(--muted); }
@media (max-width: 860px) { .duo-grid { grid-template-columns: 1fr; } }

/* ---------- applications ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app-card { position: relative; padding: 30px 28px; min-height: 220px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; transition: border-color var(--t-med), box-shadow var(--t-med); }
.app-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(126,245,200,0.14), transparent 45%); opacity: 0; transition: opacity var(--t-med); pointer-events: none; }
.app-card:hover { border-color: var(--line-2); box-shadow: 0 30px 70px -40px rgba(47,143,255,0.6); }
.app-card:hover::before { opacity: 1; }
.app-n { color: var(--mint); font-size: 0.8rem; }
.app-card h3 { font-size: 1.35rem; margin: 40px 0 10px; }
.app-card p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .app-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .app-grid { grid-template-columns: 1fr; } .app-card { min-height: 0; } .app-card h3 { margin-top: 24px; } }

/* ---------- science ---------- */
.science { background: radial-gradient(ellipse at 80% 20%, rgba(47,143,255,0.14), transparent 55%), radial-gradient(ellipse at 10% 90%, rgba(126,245,200,0.1), transparent 55%); }
.science-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; margin-bottom: 40px; }
.cohorts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cohorts li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; font-size: 0.92rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat-n { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; margin-bottom: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.95rem; }
.proof-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proof { padding: 26px 28px; border-radius: var(--radius); border-top: 2px solid var(--mint); background: var(--surface); }
.proof h3 { font-size: 1.15rem; margin-bottom: 8px; }
.proof p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .science-grid, .proof-row { grid-template-columns: 1fr; } }

/* ---------- film ---------- */
.film { padding-bottom: var(--section); }
.film-band { position: relative; height: clamp(380px, 62vh, 640px); overflow: hidden; display: flex; align-items: flex-end; }
.film-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(3,11,31,0.25) 30%, rgba(3,11,31,0.35) 60%, var(--bg) 100%), linear-gradient(90deg, rgba(3,11,31,0.75), transparent 60%); }
.film-copy { position: relative; padding-bottom: 50px; }
.film-h { font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); max-width: 14ch; text-shadow: 0 4px 40px rgba(0,0,0,0.5); }
.films { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.film-card h3 { font-size: 1.25rem; margin: 18px 0 6px; }
.film-player { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: 0 30px 80px -40px rgba(47,143,255,0.5); }
.film-player video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 760px) { .films { grid-template-columns: 1fr; } }

/* ---------- team ---------- */
.team-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.person { position: relative; text-align: center; padding: 14px 14px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: transform var(--t-med) var(--ease-out), border-color var(--t-med); }
.person:hover { transform: translateY(-6px); border-color: rgba(126,245,200,0.45); }
.p-photo { width: min(190px, 76%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--bg-3); margin: 14px auto 22px; position: relative; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 7px rgba(126,245,200,0.06), 0 24px 50px -24px rgba(47,143,255,0.7); }
.p-photo::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; padding: 2px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: 1; opacity: 0; transition: opacity var(--t-med); }
.person:hover .p-photo::before { opacity: 1; }

.p-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(0.9); transition: transform 1s var(--ease-out), filter var(--t-med); }
.person:hover .p-photo img { transform: scale(1.05); filter: saturate(1.05); }
.person h3 { font-size: 1.15rem; padding: 0 8px; margin-bottom: 8px; }
.p-role { color: var(--cyan); font-size: 0.9rem; padding: 0 8px; margin-bottom: 4px; line-height: 1.4; }
.p-focus { padding: 0 8px; margin: 0; }
.p-link { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(3,11,31,0.7); backdrop-filter: blur(6px); border: 1px solid var(--line-2); z-index: 1; }
.p-link svg { width: 18px; height: 18px; fill: var(--text); }
.p-link:hover { background: var(--azure-2); }
@media (max-width: 1000px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- news ---------- */
.news-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.news-embed { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.news-embed iframe { width: 100%; height: var(--h, 560px); border: 0; display: block; }
.news-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-height: 240px; text-decoration: none; color: var(--text); transition: border-color var(--t-med), transform var(--t-med) var(--ease-out); }
.news-card:hover { color: var(--text); border-color: var(--line-2); transform: translateY(-4px); }
.news-card .n-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint); }
.news-card h3 { font-size: 1.2rem; line-height: 1.3; }
.news-card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.news-card .n-more { margin-top: auto; color: var(--cyan); font-weight: 600; font-size: 0.92rem; }
.news-follow { background: linear-gradient(150deg, rgba(47,143,255,0.25), rgba(126,245,200,0.12)); border-color: var(--line-2); justify-content: center; }
.news-follow svg { width: 34px; height: 34px; fill: var(--text); flex: none; }
.news-grid > .news-follow:last-child:nth-child(3n+1) { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "i h m" "i p m"; align-items: center; column-gap: 22px; row-gap: 4px; }
.news-grid > .news-follow:last-child:nth-child(3n+1) svg { grid-area: i; width: 44px; height: 44px; }
.news-grid > .news-follow:last-child:nth-child(3n+1) h3 { grid-area: h; }
.news-grid > .news-follow:last-child:nth-child(3n+1) p { grid-area: p; }
.news-grid > .news-follow:last-child:nth-child(3n+1) .n-more { grid-area: m; margin: 0; }
@media (max-width: 620px) { .news-grid > .news-follow:last-child:nth-child(3n+1) { grid-template-columns: auto 1fr; grid-template-areas: "i h" "p p" "m m"; } }
@media (max-width: 960px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- partner ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.p-card { background: var(--bg); padding: 32px 30px; transition: background var(--t-med); }
.p-card:hover { background: var(--bg-2); }
.p-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.p-card h3::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--grad); margin-bottom: 18px; }
.p-card p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .partner-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .partner-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { background: radial-gradient(ellipse at 20% 50%, rgba(126,245,200,0.1), transparent 55%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.contact-list { display: grid; gap: 16px; margin: 34px 0 0; }
.contact-list div { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: 1.05rem; word-break: break-word; }
.contact-list dd a { display: inline-block; padding: 6px 0; }
.contact-form { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-2); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: 0.92rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(3,11,31,0.6); color: var(--text); font: inherit; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(126,245,200,0.2); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; }
.form-note { margin: 0; }
.form-status { margin: 0; font-weight: 500; min-height: 1.5em; }
.form-status.ok { color: var(--mint); }
.form-status.err { color: var(--danger); }
.contact-form .btn { justify-self: start; }
@media (max-width: 860px) { .contact-grid, .field-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 30px; background: linear-gradient(180deg, var(--bg), #020817); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 50px; }
.f-brand img { width: 140px; margin-bottom: 18px; }
.f-brand p { max-width: 30ch; }
.f-h { font-family: var(--font-mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 4px; }
.site-footer ul a { color: var(--muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer ul a:hover { color: var(--mint); }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.f-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }

/* =========================================================
   Multi-page additions (Oct 2026)
   ========================================================= */
.page-first { padding-top: calc(var(--section) * 0.55 + 76px); }

/* video hero */
.vhero { align-items: flex-end; padding: 140px 0 0; min-height: 100vh; min-height: 100svh; flex-direction: column; justify-content: flex-end; }
.vhero::after { display: none; }
.vhero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; transform: scale(1.04); animation: heroZoom 24s var(--ease-in-out) infinite alternate; }
@keyframes heroZoom { to { transform: scale(1.12); } }
.vhero-shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, rgba(3,11,31,0.75) 0%, rgba(3,11,31,0.2) 28%, rgba(3,11,31,0.35) 55%, var(--bg) 100%),
  linear-gradient(90deg, rgba(3,11,31,0.85) 0%, rgba(3,11,31,0.35) 55%, rgba(3,11,31,0.15) 100%),
  radial-gradient(ellipse at 80% 30%, rgba(47,143,255,0.25), transparent 60%); }
.vhero-grain { position: absolute; inset: 0; z-index: -1; opacity: 0.12; background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px); background-size: 3px 3px; mix-blend-mode: overlay; pointer-events: none; }
.vhero-inner { position: relative; width: 100%; }
.vhero-title { font-size: clamp(3rem, 1.4rem + 6.6vw, 7.4rem); max-width: 12ch; text-shadow: 0 6px 60px rgba(0,0,0,0.35); }
.vhero .hero-lede { color: #c9d6ea; max-width: 58ch; }
.play-dot { width: 0; height: 0; border-left: 10px solid var(--mint); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.vhero-foot { position: relative; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-top: 48px; padding-bottom: 40px; flex-wrap: wrap; }
.vhero-points { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 0; border-top: 1px solid var(--line-2); }
.vhero-points li { padding: 18px 24px 0 0; display: grid; gap: 2px; }
.vhero-points li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.vhero-points b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.vhero-points span { color: var(--muted); font-size: var(--fs-sm); }
.site-header.on-video:not(.scrolled) { background: linear-gradient(180deg, rgba(3,11,31,0.6), transparent); }
@media (max-width: 700px) {
  .vhero-points { grid-template-columns: 1fr; border-top: 0; }
  .vhero-points li, .vhero-points li + li { padding: 10px 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* live demo section (former hero) */
.demo { overflow: hidden; }
.demo-title { font-size: clamp(2.6rem, 1.6rem + 4vw, 5.2rem); letter-spacing: -0.04em; line-height: 0.98; margin-bottom: 24px; }
.demo-title .line { display: block; }
.demo-lede em { color: var(--text); font-style: normal; border-bottom: 1px solid var(--mint); }
.demo-actions { margin: 28px 0; }

/* manifesto */
.manifesto { padding-top: clamp(56px, 7vw, 100px); }
.manifesto-text { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3.3rem); line-height: 1.22; letter-spacing: -0.02em; max-width: 26ch; margin: 0; color: var(--text); }
.js .manifesto-text .w { color: rgba(234,242,255,0.18); transition: color 0.35s var(--ease-out); }
.js .manifesto-text .w.on { color: var(--text); }
.js .manifesto-text .w.hl.on { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* films */
.film-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; }
.film-head .lead { margin: 0; }
.film-xl { border-radius: clamp(18px, 2.4vw, 34px); box-shadow: 0 60px 140px -50px rgba(47,143,255,0.6), 0 0 0 1px var(--line-2); }
.film-note { margin-top: 14px; }
@media (max-width: 800px) { .film-head { grid-template-columns: 1fr; } }

/* why now */
.drivers { position: relative; overflow: hidden; isolation: isolate; }
.drivers-bg { position: absolute; inset: 0; z-index: -1; }
.drivers-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: blur(3px) saturate(1.2); transform: scale(1.05); }
.drivers-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(3,11,31,0.45) 35%, rgba(3,11,31,0.45) 65%, var(--bg) 100%), linear-gradient(90deg, var(--bg) 0%, rgba(3,11,31,0.6) 45%, transparent 100%); }
.driver-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.driver { padding: 28px 24px; border-radius: var(--radius-lg); background: rgba(6,20,48,0.72); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.driver-n { color: var(--mint); font-size: 0.8rem; }
.driver h3 { font-size: 1.25rem; margin: 30px 0 10px; }
.driver p { color: var(--muted); margin: 0; }
.drivers-statement { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); margin: 40px 0 0; max-width: 30ch; }
@media (max-width: 960px) { .driver-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .driver-grid { grid-template-columns: 1fr; } }

/* product tiles */
.tile-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; display: grid; gap: 4px; padding: 26px 26px 24px; min-height: 160px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; overflow: hidden; transition: border-color var(--t-med), transform var(--t-med) var(--ease-out), background var(--t-med); }
.tile::before { content: ""; position: absolute; inset: auto -30% -70% auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(126,245,200,0.2), transparent 70%); opacity: 0; transition: opacity var(--t-med); }
.tile:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(126,245,200,0.45); }
.tile:hover::before { opacity: 1; }
.tile-n { color: var(--mint); font-size: 0.78rem; margin-bottom: 26px; }
.tile b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.tile span:not(.tile-n) { color: var(--muted); }
.tile i { position: absolute; right: 24px; top: 22px; font-style: normal; color: var(--muted); transition: transform var(--t-fast) var(--ease-out), color var(--t-fast); }
.tile:hover i { transform: translateX(4px); color: var(--mint); }
@media (max-width: 900px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }

/* closing CTA */
.cta-box { position: relative; padding: clamp(40px, 6vw, 80px); border-radius: 36px; background: radial-gradient(ellipse at 15% 0%, rgba(126,245,200,0.22), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(47,143,255,0.3), transparent 55%), var(--bg-2); border: 1px solid var(--line-2); overflow: hidden; }
.cta-box .h2 { max-width: 20ch; }
.cta-box .hero-actions { margin: 10px 0 0; }

/* about */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vm-card { padding: clamp(26px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--mint); }
.vm-card p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .vm-grid { grid-template-columns: 1fr; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .aurora { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .marquee.running .marquee-track { animation: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .pf-media img { transform: none; }
  .vhero-video { animation: none; }
  .js .manifesto-text .w { color: var(--text); }
}

[id], .explorer { scroll-margin-top: 96px; }

/* film pop-up */
.film-modal { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.film-modal::backdrop { background: rgba(2, 8, 22, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.film-modal[open] { animation: modalIn 0.45s var(--ease-out); }
.film-modal[open]::backdrop { animation: fadeIn 0.35s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.film-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.film-modal-title { font-size: 1.05rem; font-weight: 600; }
.film-close { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background var(--t-fast), transform var(--t-fast) var(--ease-out); }
.film-close:hover { background: var(--azure-2); transform: rotate(90deg); }
.film-modal .film-player { border-radius: clamp(14px, 2vw, 26px); box-shadow: 0 60px 160px -40px rgba(47,143,255,0.6), 0 0 0 1px var(--line-2); }
.film-modal video { width: 100%; max-height: calc(100vh - 120px); aspect-ratio: 16 / 9; background: #000; }
html.modal-open { overflow: hidden; }

/* publications */
.pubs { margin-top: clamp(44px, 6vw, 72px); }
.pubs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pubs-head .h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); margin: 0; }
.pubs-head p { margin: 0; }
.pub-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.pub { display: grid; grid-template-columns: 220px 1fr auto; grid-template-areas: "meta title link" "meta authors link"; column-gap: 28px; row-gap: 6px; padding: 24px 4px; border-bottom: 1px solid var(--line); transition: background var(--t-med); }
.pub:hover { background: var(--surface); }
.pub-meta { grid-area: meta; display: flex; flex-direction: column; gap: 4px; font-size: 0.76rem; color: var(--muted); letter-spacing: 0.02em; }
.pub-meta span:first-child { color: var(--mint); font-size: 0.9rem; }
.pub-tag { align-self: flex-start; margin-top: 4px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pub-title { grid-area: title; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.pub-authors { grid-area: authors; margin: 0; }
.pub-link { grid-area: link; align-self: center; white-space: nowrap; font-weight: 600; text-decoration: none; font-size: 0.92rem; padding: 8px 0; }
.pub-link span[aria-hidden] { display: inline-block; transition: transform var(--t-fast) var(--ease-out); }
a.pub-link:hover span[aria-hidden] { transform: translate(2px, -2px); }
@media (max-width: 860px) {
  .pub { grid-template-columns: 1fr; grid-template-areas: "meta" "title" "authors" "link"; }
  .pub-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
  .pub-tag { margin-top: 0; }
  .pub-link { justify-self: start; }
}

/* products intro */
.products-intro .lead { max-width: 70ch; }
.products-intro .lead + .lead { margin-top: -0.2em; }
.pick-hint { display: block; margin-top: 14px; color: var(--mint); font-weight: 600; font-size: 1rem; }
.vision-mission { padding-top: 0; }
.about-intro { padding-bottom: 0; }
.about-intro .section-head { margin-bottom: 0; }

/* ===== Product cards: each product has its own shade of blue (--pc) ===== */
.explorer { grid-template-columns: 1fr; gap: 20px; }
.explorer-list { position: static; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; padding-bottom: 12px; gap: 12px; }
.explorer-list button {
  --pc: var(--azure);
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 18px 16px 16px; min-height: 148px; border-radius: 20px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 26%, transparent), color-mix(in srgb, var(--pc) 8%, transparent));
  border: 1.5px solid color-mix(in srgb, var(--pc) 55%, transparent);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), background var(--t-med), border-color var(--t-med);
}
.explorer-list button::before { display: none; }
.explorer-list button:hover { transform: translateY(-4px); border-color: var(--pc); box-shadow: 0 18px 40px -20px var(--pc); }
.explorer-list button[aria-selected="true"] {
  background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 80%, #fff), var(--pc));
  border-color: var(--pc); transform: translateY(-4px); color: #031029;
  box-shadow: 0 22px 50px -18px var(--pc), 0 0 0 4px color-mix(in srgb, var(--pc) 22%, transparent);
}
.explorer-list button[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -11px; width: 18px; height: 18px; margin-left: -9px; background: var(--pc); border-right: 1.5px solid var(--pc); border-bottom: 1.5px solid var(--pc); transform: rotate(45deg); border-radius: 0 0 4px 0; }
.pt-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--pc); margin-bottom: 12px; box-shadow: 0 8px 20px -8px var(--pc); }
.pt-ico svg { width: 24px; height: 24px; fill: none; stroke: #031029; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.explorer-list button[aria-selected="true"] .pt-ico { background: #031029; box-shadow: none; }
.explorer-list button[aria-selected="true"] .pt-ico svg { stroke: #fff; }
.pt-name { font-size: 1.15rem; }
.pt-sub { color: #c9d6ea; font-size: 0.85rem; line-height: 1.35; }
.explorer-list button[aria-selected="true"] .pt-sub { color: #031029; }
.pt-soon { margin-top: auto; padding-top: 3px; }
.explorer-list button[aria-selected="true"] .pt-soon { color: #031029; border-color: rgba(3,16,41,0.6); }
.explorer-stage { border-color: color-mix(in srgb, var(--pc, var(--azure)) 50%, transparent); box-shadow: 0 30px 80px -50px var(--pc, var(--azure)); transition: border-color var(--t-med), box-shadow var(--t-med); }
.panel-kicker { color: var(--pc, var(--cyan)); }
.panel .chips li { background: color-mix(in srgb, var(--pc, var(--mint)) 12%, transparent); border-color: color-mix(in srgb, var(--pc, var(--mint)) 40%, transparent); }
@media (max-width: 1100px) { .explorer-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .explorer-list button { min-height: 0; } }
@media (max-width: 560px) {
  .explorer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .explorer-list button { padding: 14px 12px; }
  .explorer-list button[aria-selected="true"]::after { display: none; }
  .pt-ico { width: 38px; height: 38px; margin-bottom: 8px; }
  .pt-name { font-size: 1.02rem; }
}

/* home product tiles in matching colours */
.tile { --pc: var(--azure); background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 22%, transparent), color-mix(in srgb, var(--pc) 6%, transparent)); border: 1.5px solid color-mix(in srgb, var(--pc) 50%, transparent); }
.tile:hover { border-color: var(--pc); box-shadow: 0 20px 50px -24px var(--pc); }
.tile-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--pc); margin-bottom: 18px; box-shadow: 0 8px 22px -8px var(--pc); }
.tile-ico svg { width: 26px; height: 26px; fill: none; stroke: #031029; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover i { color: var(--pc); }

/* logo strip: hide the looping copies when the strip is not scrolling */
.marquee:not(.running) .marquee-track li[aria-hidden="true"] { display: none; }
.marquee:not(.running) .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
