/* ═══════════════════════════════════════════════════════════════
   Cytognosis — Flagship Landing Page
   Built on the Cytognosis Design System v10.1 tokens.
   A scientific map built for human lives.
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; -webkit-text-size-adjust: 100%; }
html.lenis,
html.lenis-active { scroll-behavior: auto; }
main[id],
section[id] { scroll-margin-top: 74px; }

:root {
  /* page palette — warm light foundation */
  --bg:          #F4F2EF;
  --bg-2:        #FAF8F2;
  --bg-soft:     #FAF8F2;
  --bg-3:        #ECE9E4;
  --bg-section:  #ECE9E4;
  --surface:     #FFFFFF;
  --ink:         #23232B;
  --ink-2:       #3C3D45;
  --muted:       #6F7178;
  --faint:       #9A9CA4;
  --hair:        rgba(81,69,168,0.11);
  --hair-soft:   rgba(81,69,168,0.07);

  /* brand core */
  --violet:        #6E5BD1;          /* primary: button fills, eyebrows, decorative */
  --violet-strong: #8B3FC7;          /* high-emphasis: text links on light, gradient mid */
  --violet-deep:   #3E3478;
  --violet-300:    #CAA0F0;          /* accents on dark */
  --azure:         #3B7DD6;
  --indigo:        #5145A8;
  --coral:         #F26355;
  --teal:          #5BBFBC;          /* calm secondary */
  --teal-strong:   #14A3A3;          /* available when more saturation needed */
  --magenta:       #E0309E;          /* ALERTS / errors only, never primary */

  /* signature gradient (canonical, brand recognition) */
  --grad-brand: linear-gradient(135deg, #3B7DD6 0%, #8B3FC7 50%, #5145A8 100%);

  /* dark surfaces */
  --ink-900:     #0A0A14;
  --surface-900: #15151F;
  --surface-800: #1B1B2B;
  --surface-700: #23233A;
  --night:       #15151F;
  --night-2:     #1B1B2B;
  --night-card:  #23233A;
  --abyss:       #0A0A14;
  --on-night-1:  #F0EEF8;
  --on-night-2:  #ADAAC8;
  --on-night-3:  #7C7A9C;

  /* type */
  --f-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-serif:   'Newsreader', Georgia, serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:  240ms;          /* v2 calm motion durations */
  --dur-base:  400ms;
  --dur-slow:  640ms;
  --maxw:      1180px;
  --measure:   68ch;           /* comfortable reading width for prose */

  /* semantic tokens (v2) */
  --sem-success: #10B981;
  --sem-warning: #F59E0B;
  --sem-error:   #EF4444;
  --sem-info:    #3B7DD6;

  /* accessibility font stack — Reading mode (Lexend/Atkinson, loaded in fonts.css) */
  --f-a11y: 'Lexend', 'Atkinson Hyperlegible', 'Inter', system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
::selection { background: rgba(110,91,209,0.18); }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 2px; border-radius: 3px; }

/* Reading mode: swap body font to the accessible stack (footer toggle) */
body.reading-mode { --f-body: var(--f-a11y); }

/* In-page Reduce-motion toggle (footer) and the OS preference both flatten motion. */
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ── shared primitives ─────────────────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 700px; }
.hero-copy,
.hero-visual,
.hero-inner > *,
.section-head,
.cards-3 > *,
.trip > *,
.layers-grid > *,
.stack > *,
.neuro-grid > *,
.safety-grid > *,
.principles > *,
.team-grid > *,
.pathways > *,
.split-grid > *,
.motion-stagger-item,
.motion-reveal-block {
  min-width: 0;
}
.motion-stagger-item {
  display: flex;
  height: 100%;
}
.motion-stagger-item > *,
.motion-reveal-block > * {
  width: 100%;
  min-width: 0;
}
.motion-stagger-item > * {
  height: 100%;
}

.mono { font-family: var(--f-mono); }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--violet);
  margin-bottom: 24px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--violet-300); }
.dark .eyebrow { color: var(--violet-300); }
.dark .eyebrow::before { background: rgba(202,160,240,0.5); }

.section { padding: 124px 0; position: relative; }
.section-head { max-width: 660px; margin-bottom: 64px; }
.section-title {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 3.4vw, 2.95rem); font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.1; color: var(--ink);
  text-wrap: balance; overflow-wrap: break-word;
}
.section-title .serif { font-weight: 400; }
.section-sub {
  font-size: 18px; color: var(--muted); line-height: 1.66;
  margin-top: 20px; max-width: 58ch; font-weight: 400;
}

.dark { background: var(--night-2); color: var(--on-night-1); }
.dark .section-title { color: var(--on-night-1); }
.dark .section-sub { color: var(--on-night-2); }

/* ── buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 500; font-family: var(--f-body);
  padding: 13px 24px; border-radius: 11px; cursor: pointer; border: none;
  transition: box-shadow var(--ease) 250ms, background 250ms, gap 250ms;
  min-height: 44px; max-width: 100%;
}
.btn .arr { transition: transform 250ms var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: #5d4cc0; box-shadow: 0 14px 34px rgba(110,91,209,0.32); }
.btn-ghost { background: transparent; color: var(--violet); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { gap: 13px; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--violet); box-shadow: 0 14px 34px rgba(110,91,209,0.28); }
.btn-light { background: var(--on-night-1); color: var(--night); }
.btn-light:hover { box-shadow: 0 16px 40px rgba(110,91,209,0.4); }
.btn-outline { background: transparent; color: var(--violet-300); border: 1.5px solid rgba(180,166,232,0.32); }
.btn-outline:hover { border-color: rgba(180,166,232,0.6); background: rgba(180,166,232,0.07); }

/* ── reveal animation base ─────────────────────────────────── */
.reveal { opacity: 1; transform: none; }
.animations-ready:not(.reduced-motion) .reveal { opacity: 0; transform: translateY(14px); }
.animations-ready:not(.reduced-motion) .reveal { transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.animations-ready:not(.reduced-motion) .reveal.in { opacity: 1; transform: none; }
.animations-ready:not(.reduced-motion) .reveal,
.hero-stage,
.hero-map,
.trip-anim svg,
.traj-svg-box svg,
.cmp-wipe {
  backface-visibility: hidden;
}
.reveal[data-d="1"] { transition-delay: 45ms; }
.reveal[data-d="2"] { transition-delay: 90ms; }
.reveal[data-d="3"] { transition-delay: 135ms; }
.reveal[data-d="4"] { transition-delay: 180ms; }
.reveal[data-d="5"] { transition-delay: 225ms; }

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: sticky; top: 0; z-index: 200; height: 74px;
  background: rgba(244,242,239,0.78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent; display: flex; align-items: center;
  transition: border-color 300ms, background 300ms;
}
.nav.scrolled { border-bottom-color: var(--hair); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo img { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14px; font-weight: 450; color: var(--ink-2); transition: color 220ms; position: relative; }
.nav-links a:not(.nav-cta)::after { content:''; position:absolute; left:0; bottom:-5px; width:0; height:1.5px; background: var(--violet); transition: width 260ms var(--ease); }
.nav-links a:not(.nav-cta):hover { color: var(--violet); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--ink); color: var(--bg) !important; padding: 9px 18px; border-radius: 9px; font-size: 13.5px; font-weight: 500; transition: all 220ms; min-height: 40px; display: inline-flex; align-items: center; }
.nav-cta:hover { background: var(--violet); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.6px; background: var(--ink); margin: 5px 0; transition: 250ms; }

/* ═══════════════ HERO ═══════════════ */
.hero { position: relative; padding: 64px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg .glow-a { position: absolute; top: -160px; right: -120px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(110,91,209,0.13) 0%, transparent 66%); }
.hero-bg .glow-b { position: absolute; bottom: -200px; left: -140px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(59,125,214,0.10) 0%, transparent 66%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(2.7rem, 4.6vw, 4rem); font-weight: 500; line-height: 1.04;
  letter-spacing: -0.035em; color: var(--ink); margin-bottom: 26px; text-wrap: balance; overflow-wrap: break-word;
}
.hero-title .serif { letter-spacing: -0.02em; }
.hero-sub { font-size: 18.5px; color: var(--ink-2); line-height: 1.62; max-width: 500px; margin-bottom: 16px; overflow-wrap: anywhere; }
.hero-note { font-family: var(--f-serif); font-style: italic; font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 460px; margin-bottom: 36px; overflow-wrap: anywhere; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 38px; }
.hero-trust { display: flex; gap: 10px 22px; align-items: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.trust-item svg { flex-shrink: 0; }

/* hero visual: portrait + animated coordinate map + glass cards */
.hero-visual { position: relative; }
.hero-stage { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #F0ECFB, #EAF1FC); box-shadow: 0 40px 90px -30px rgba(81,69,168,0.34); aspect-ratio: 4 / 4.6; contain: paint; }
.hero-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% 38%; }
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; mix-blend-mode: normal; }
.hero-vignette { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, rgba(20,15,40,0.30) 0%, transparent 38%), linear-gradient(115deg, rgba(110,91,209,0.10), transparent 50%); }

.hero-badge {
  position: absolute; top: 18px; left: 18px; z-index: 5;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px;
  background: rgba(255,255,255,0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.9); border-radius: 9999px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-2);
  box-shadow: 0 8px 24px rgba(81,69,168,0.14);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(91,191,188,0.22); }

.glass-card {
  position: absolute; z-index: 5;
  background: rgba(255,255,255,0.74); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.92); border-radius: 15px; padding: 14px 16px;
  box-shadow: 0 18px 46px -12px rgba(81,69,168,0.30);
}
.gc-coord { right: 18px; top: 28%; width: 210px; }
.gc-axes  { left: 18px; bottom: 26px; width: 224px; }
.gc-label { font-family: var(--f-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.gc-label .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.gc-coord .val { font-family: var(--f-mono); font-size: 13px; color: var(--ink); }
.gc-coord .val span { color: var(--violet); }
.gc-sub { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* mini axis bars inside glass card */
.axis-row { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.axis-row:last-child { margin-bottom: 0; }
.axis-name { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.04em; color: var(--muted); width: 58px; text-transform: uppercase; }
.axis-track { flex: 1; height: 5px; border-radius: 3px; background: rgba(81,69,168,0.12); overflow: hidden; }
.axis-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7AAEF2, #6E5BD1); width: 0; transition: width 1100ms var(--ease); }

/* ═══════════════ NARRATIVE QUOTE STRIP ═══════════════ */
.quote-strip { background: var(--bg-soft); border-top: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft); padding: 92px 0; }
.quote-strip .container { text-align: center; }
.bigquote { font-family: var(--f-serif); font-style: normal; font-size: clamp(1.55rem, 2.9vw, 2.2rem); font-weight: 300; line-height: 1.44; color: var(--ink-2); letter-spacing: -0.01em; max-width: 880px; margin: 0 auto; text-wrap: balance; }
.bigquote em { font-style: italic; color: var(--violet); }
.quote-attr { margin-top: 28px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* ═══════════════ ORIGIN / STORY ═══════════════ */
.origin { background: var(--bg); }
.origin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.origin-copy p { font-size: 17px; color: var(--ink-2); line-height: 1.7; margin-bottom: 18px; max-width: 50ch; }
.origin-copy p.lead { font-family: var(--f-serif); font-style: italic; font-size: 22px; color: var(--ink); line-height: 1.5; margin-bottom: 24px; }
.origin-copy .pull { font-size: 15px; color: var(--muted); border-left: 2px solid var(--violet-300); padding-left: 18px; margin-top: 28px; }

/* maze-to-map SVG figure */
.maze-figure { position: relative; border-radius: 18px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--hair); aspect-ratio: 1 / 1; }
.maze-figure svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.maze-caption { position: absolute; left: 20px; bottom: 18px; display: flex; gap: 22px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); z-index: 4; }
.maze-caption b { color: var(--violet); font-weight: 600; }

/* ═══════════════ PROBLEM ═══════════════ */
.problem { background: var(--bg-section); }
.cmp-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; margin-bottom: 60px; padding: 24px 30px; background: var(--bg-soft); border: 1px solid var(--hair); border-radius: 16px; position: relative; overflow: hidden; }
.cmp-bar > :not(.cmp-wipe) { position: relative; z-index: 1; }
.cmp-wipe { position: absolute; inset: 0; z-index: 0; pointer-events: none; transform: scaleX(0); transform-origin: left center; background: linear-gradient(90deg, rgba(110,91,209,0.08), rgba(91,191,188,0.10), rgba(110,91,209,0.03)); }
.animations-ready:not(.reduced-motion) .cmp-wipe { transition: transform 620ms var(--ease); }
.animations-ready:not(.reduced-motion) .cmp-bar.in .cmp-wipe { transform: scaleX(1); }
.cmp-side { display: flex; flex-direction: column; gap: 4px; }
.cmp-tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.cmp-head { font-family: var(--f-display); font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.cmp-side.to .cmp-head { color: var(--violet); }
.cmp-arrow { color: var(--violet); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.soft-card { background: var(--bg-soft); border: 1px solid var(--hair); border-radius: 16px; padding: 30px 28px; transition: box-shadow 320ms var(--ease), border-color 320ms; }
.soft-card:hover { box-shadow: 0 20px 44px -18px rgba(81,69,168,0.26); border-color: rgba(110,91,209,0.22); }
.sc-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(110,91,209,0.13), rgba(59,125,214,0.10)); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.sc-title { font-family: var(--f-display); font-size: 18px; font-weight: 500; margin-bottom: 11px; letter-spacing: -0.01em; color: var(--ink); }
.sc-body { font-size: 14.5px; color: var(--muted); line-height: 1.62; }

/* ═══════════════ DISEASE AS TRAJECTORY (DARK) ═══════════════ */
.trajectory { background: var(--night-2); overflow: hidden; }
.trajectory::before { content:''; position:absolute; top:-10%; left:50%; transform:translateX(-50%); width:90%; height:60%; background: radial-gradient(ellipse, rgba(110,91,209,0.14) 0%, transparent 68%); pointer-events:none; }
.traj-layout { position: relative; z-index: 1; }
.traj-head { max-width: 720px; margin-bottom: 52px; }
.traj-statement { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 300; line-height: 1.5; color: var(--on-night-1); margin-top: 22px; max-width: 60ch; }
.traj-statement b { font-style: normal; font-weight: 500; color: var(--violet-300); }

.traj-chart-wrap { background: rgba(255,255,255,0.025); border: 1px solid rgba(180,166,232,0.16); border-radius: 20px; padding: 34px 36px 28px; position: relative; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5); }
.traj-chart-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.traj-chart-title { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-night-3); }
.traj-legend { display: flex; gap: 18px; flex-wrap: wrap; }
.leg { display: flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 10.5px; color: var(--on-night-2); }
.leg .swatch { width: 14px; height: 3px; border-radius: 2px; }
.traj-scroll-progress { height: 2px; border-radius: 999px; background: rgba(180,166,232,0.11); overflow: hidden; margin: 0 0 18px; }
.traj-scroll-progress span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--violet-300), var(--coral)); transform: scaleX(0.08); transform-origin: left center; }
.traj-svg-box { position: relative; width: 100%; }
.traj-svg-box svg { width: 100%; height: auto; }
.traj-foot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(180,166,232,0.12); }
.tf-item .tf-num { font-family: var(--f-display); font-size: 30px; font-weight: 500; color: var(--on-night-1); letter-spacing: -0.02em; line-height: 1; }
.tf-item .tf-num .u { font-size: 16px; color: var(--violet-300); }
.tf-item .tf-lbl { font-size: 12.5px; color: var(--on-night-3); margin-top: 8px; line-height: 1.4; }

/* ═══════════════ PLATFORM TRIPTYCH ═══════════════ */
.platform { background: var(--bg); }
.trip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trip-card { background: var(--surface); border: 1px solid var(--hair); border-radius: 18px; padding: 0; overflow: hidden; transition: box-shadow 360ms var(--ease), border-color 360ms; display: flex; flex-direction: column; }
.trip-card:hover { box-shadow: 0 28px 60px -24px rgba(81,69,168,0.3); border-color: rgba(110,91,209,0.22); }
.trip-anim { height: 168px; position: relative; overflow: hidden; background: linear-gradient(165deg, #F3F0FB, #ECF1FB); border-bottom: 1px solid var(--hair-soft); contain: paint; }
.trip-anim svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.trip-body { padding: 26px 26px 30px; }
.trip-name-row { display: flex; align-items: baseline; gap: 11px; margin-bottom: 6px; }
.trip-name { font-family: var(--f-display); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.trip-metaphor { font-family: var(--f-serif); font-style: italic; font-size: 15px; color: var(--violet); }
.trip-role { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 13px; }
.trip-desc { font-size: 14.5px; color: var(--muted); line-height: 1.62; }
.engine-row { margin-top: 22px; display: flex; align-items: center; gap: 20px; padding: 22px 28px; background: var(--night-2); border-radius: 16px; color: var(--on-night-1); flex-wrap: wrap; }
.engine-row .er-mark { width: 46px; height: 46px; flex-shrink: 0; }
.engine-row .er-text { flex: 1; min-width: 220px; }
.engine-row .er-name { font-family: var(--f-display); font-size: 18px; font-weight: 500; }
.engine-row .er-name .serif { color: var(--violet-300); font-size: 16px; }
.engine-row .er-desc { font-size: 13.5px; color: var(--on-night-2); margin-top: 4px; line-height: 1.55; }
.engine-row .er-meta { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-3); }

/* ═══════════════ SCIENTIFIC LAYERS / STACK ═══════════════ */
.layers { background: var(--bg-soft); }
.layers-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 64px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; perspective: 1200px; }
.layer { display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; box-shadow: 0 10px 30px -18px rgba(81,69,168,0.22); transition: transform 360ms var(--ease), box-shadow 360ms var(--ease); }
.layer:hover { transform: translateX(8px); box-shadow: 0 18px 44px -18px rgba(81,69,168,0.3); }
.layer-ico { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(110,91,209,0.10); }
.layer-txt .lt-title { font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.layer-txt .lt-meta { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--faint); margin-top: 3px; text-transform: uppercase; }
.layer .lt-depth { margin-left: auto; font-family: var(--f-mono); font-size: 10px; color: var(--violet); opacity: 0.7; }

/* ═══════════════ NEUROVERSE (DARK) ═══════════════ */
.neuro { background: var(--night); overflow: hidden; }
.neuro::before { content:''; position:absolute; top:0; right:-5%; width:55%; height:100%; background: radial-gradient(ellipse at 70% 30%, rgba(110,91,209,0.16) 0%, transparent 62%); pointer-events:none; }
.neuro-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.neuro-visual { position: relative; }
.neuro-brain-wrap { position: relative; border-radius: 20px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #20203a, #101019); border: 1px solid rgba(180,166,232,0.14); }
.neuro-brain { width: 100%; mix-blend-mode: screen; opacity: 0.96; }
.neuro-scales { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.nscale { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(180,166,232,0.13); border-radius: 12px; }
.nscale .ns-tag { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-300); width: 54px; flex-shrink: 0; }
.nscale .ns-body { font-size: 13.5px; color: var(--on-night-2); line-height: 1.5; }
.nscale .ns-body b { color: var(--on-night-1); font-weight: 600; }
.neuro-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 9px 15px; border-radius: 9999px; background: rgba(91,191,188,0.10); border: 1px solid rgba(91,191,188,0.3); font-family: var(--f-mono); font-size: 11px; color: #8AD8D5; }

/* ═══════════════ OPEN SCIENCE ═══════════════ */
.openscience { background: var(--bg); }
.os-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; }
.os-cell { background: var(--bg-soft); padding: 32px 28px; transition: background 300ms; }
.os-cell:hover { background: var(--surface); }
.os-ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(110,91,209,0.09); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.os-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 9px; letter-spacing: -0.01em; }
.os-body { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ═══════════════ SAFETY ═══════════════ */
.safety { background: var(--bg-section); }
.safety-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 68px; align-items: start; }
.safety-statement { font-family: var(--f-serif); font-size: 21px; color: var(--ink-2); line-height: 1.6; font-weight: 300; }
.safety-statement em { font-style: italic; color: var(--violet); }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.principle { display: flex; align-items: flex-start; gap: 13px; padding: 20px 20px; background: var(--bg-soft); border: 1px solid var(--hair); border-radius: 14px; transition: box-shadow 300ms var(--ease); }
.principle:hover { box-shadow: 0 14px 34px -16px rgba(81,69,168,0.24); }
.p-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); margin-top: 6px; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(91,191,188,0.16); }
.p-body { font-size: 14px; color: var(--muted); line-height: 1.55; }
.p-body strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }

/* ═══════════════ CLOSING (DARK) ═══════════════ */
.closing { background: var(--night-2); position: relative; overflow: hidden; text-align: center; }
.closing::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse 62% 80% at 50% -5%, rgba(110,91,209,0.22) 0%, transparent 66%); pointer-events:none; }
.closing-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.closing-title { font-family: var(--f-display); font-size: clamp(2.2rem, 3.6vw, 3.1rem); font-weight: 500; color: var(--on-night-1); letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 22px; text-wrap: balance; overflow-wrap: break-word; }
.closing-title .serif { color: var(--violet-300); }
.closing-sub { font-size: 18px; color: var(--on-night-2); margin: 0 auto 38px; line-height: 1.62; max-width: 540px; }
.closing-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════ FOOTER ═══════════════ */
.footer { background: var(--abyss); padding: 64px 0 40px; color: var(--on-night-2); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 38px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 28px; }
.footer-brand { max-width: 320px; }
.footer-logo { height: 28px; margin-bottom: 18px; }
.footer-tag { font-family: var(--f-serif); font-style: italic; font-size: 15.5px; color: rgba(202,190,240,0.72); line-height: 1.55; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.34); margin-bottom: 15px; }
.footer-col a { display: block; font-size: 13.5px; color: rgba(255,255,255,0.6); margin-bottom: 10px; transition: color 200ms; }
.footer-col a:hover { color: var(--violet-300); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-meta { font-family: var(--f-mono); font-size: 10.5px; color: rgba(255,255,255,0.3); letter-spacing: 0.03em; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1000px) {
  .hero-inner, .origin-grid, .layers-grid, .neuro-grid, .safety-grid { grid-template-columns: 1fr; gap: 48px; }
  .trip, .cards-3, .os-grid { grid-template-columns: 1fr; }
  .os-grid { gap: 1px; }
  .principles { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .neuro-visual { max-width: 480px; }
}
@media (max-width: 720px) {
  .container { padding: 0 22px; }
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 22px 22px; background: var(--bg-soft); border-bottom: 1px solid var(--hair); }
  .nav-links.open a { padding: 11px 0; width: 100%; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
  .hero { padding: 36px 0 64px; }
  .hero-inner { gap: 24px; }
  .hero-title { font-size: clamp(2.06rem, 9.2vw, 2.7rem); letter-spacing: -0.028em; margin-bottom: 18px; }
  .hero-sub { font-size: 16.5px; line-height: 1.55; margin-bottom: 22px; }
  .hero-note { display: none; }
  .hero-actions { margin-bottom: 0; }
  .hero-trust { display: none; }
  .cmp-bar { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .cmp-arrow { transform: rotate(90deg); }
  .traj-foot { grid-template-columns: 1fr 1fr; gap: 22px; }
  .gc-coord, .gc-axes { display: none; }
  .hero-stage { aspect-ratio: 4 / 4.2; }
  .traj-chart-wrap { padding: 22px 18px; }
}

@media (max-width: 420px) {
  .container { padding: 0 20px; }
  .eyebrow { gap: 9px; font-size: 10px; letter-spacing: 0.12em; }
  .eyebrow::before { width: 20px; }
  .hero { padding-top: 32px; }
  .hero-inner { gap: 22px; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.35rem); line-height: 1.07; }
  .hero-sub { font-size: 16px; }
  .hero-actions,
  .closing-actions {
    align-items: stretch;
  }
  .hero-actions .btn,
  .closing-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
  }
  .section-title,
  .closing-title {
    font-size: clamp(1.9rem, 8vw, 2.2rem);
  }
  .hero-badge {
    left: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    white-space: normal;
  }
  .engine-row .er-text {
    min-width: 0;
  }
}

@media (max-width: 340px) {
  .container { padding: 0 18px; }
  .hero-title { font-size: 2rem; }
  .btn { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html.lenis,
  html.lenis-active { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn,
  .btn .arr,
  .nav-cta,
  .nav-toggle span,
  .soft-card,
  .trip-card,
  .layer,
  .principle,
  .member,
  .pathway,
  .section-cta .arr,
  .pathway-cta .arr {
    transition: none !important;
  }
  .btn:hover,
  .btn:hover .arr,
  .btn-primary:hover,
  .btn-ink:hover,
  .btn-light:hover,
  .nav-cta:hover,
  .soft-card:hover,
  .trip-card:hover,
  .layer:hover,
  .principle:hover,
  .member:hover,
  .pathway:hover,
  .section-cta:hover .arr,
  .pathway:hover .pathway-cta .arr {
    transform: none !important;
  }
  .traj-scroll-progress span {
    transform: none !important;
  }
  * { scroll-behavior: auto !important; }
}
