/* ==========================================================================
   PhyDuet — styles.css
   Brand: #0B2447 (Deep Space Blue) · #19A7CE (Cyan) · #FFC93C (Gold) · Inter
   ========================================================================== */

:root {
  /* color */
  --navy: #0B2447;
  --navy-soft: #16335f;
  --ink: #0B2447;
  --body: #42536b;
  --muted: #64748b;
  --cyan: #19A7CE;
  --cyan-ink: #0d7ba0;        /* AA-safe cyan for text on white */
  --cyan-soft: #e8f6fb;
  --gold: #FFC93C;
  --gold-soft: #fff4d6;
  --bg: #ffffff;
  --bg-tint: #f5f9fc;
  --line: #e4ebf2;
  --hero-0: #060f20;
  --hero-1: #0B2447;

  /* type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* space (8px system) */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px; --s15: 120px;

  /* misc */
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1120px;
  --shadow-sm: 0 1px 2px rgba(11, 36, 71, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(11, 36, 71, 0.18);
  --shadow-lg: 0 24px 48px -16px rgba(11, 36, 71, 0.20), 0 6px 16px -8px rgba(11, 36, 71, 0.10);
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 72px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--cyan-ink); text-decoration: none; }
ul, ol { padding: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(25, 167, 206, 0.25); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s3);
}
.container-narrow { max-width: 840px; }

.skip-link {
  position: absolute;
  top: -48px; left: var(--s2);
  z-index: 200;
  padding: var(--s1) var(--s2);
  background: var(--navy); color: #fff;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--s2); }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.08s; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-sm { padding: 10px 20px; font-size: 15px; }

/* light sweep — a thin beam passes through solid buttons on hover */
.btn-gold::after, .btn-primary::after, .btn-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.38) 50%, transparent 58%);
  transform: translateX(-130%);
  pointer-events: none;
}
.btn-gold:hover::after, .btn-primary:hover::after, .btn-nav:hover::after {
  transform: translateX(130%);
  transition: transform 0.55s ease;
}

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffd35c; box-shadow: 0 12px 28px -10px rgba(255, 201, 60, 0.55); }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); box-shadow: 0 12px 28px -12px rgba(11, 36, 71, 0.45); }

.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }

.btn-outline { color: var(--navy); border-color: #c8d4e2; }
.btn-outline:hover { border-color: var(--navy); background: rgba(11, 36, 71, 0.03); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              border-color 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-mark { width: 26px; height: 39px; }
.brand-bar { fill: #FAFAFA; transition: fill 0.25s var(--ease); }
.brand-word {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
  color: #fff;
  transition: color 0.25s var(--ease);
}
.nav-links { display: flex; gap: var(--s3); }
.nav-links a {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.18s var(--ease-out);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: #fff; font-weight: 600; }
.btn-nav { background: var(--gold); color: var(--navy); }
.btn-nav:hover { background: #ffd35c; }

/* scrolled state: light glass */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.scrolled .brand-word { color: var(--navy); }
.nav.scrolled .brand-bar { fill: var(--navy); }
.nav.scrolled .nav-links a { color: var(--body); }
.nav.scrolled .nav-links a:hover { color: var(--navy); }
.nav.scrolled .nav-links a.active { color: var(--navy); }

/* mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.22s var(--ease), background-color 0.25s var(--ease);
}
.nav.scrolled .nav-toggle span, .nav.menu-open .nav-toggle span { background: var(--navy); }
.nav.menu-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.menu-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s2) var(--s3) var(--s3);
}
.mobile-menu a {
  padding: 10px 0;
  font-weight: 600;
  color: var(--navy);
}
.mobile-menu .btn { margin-top: var(--s1); }
.nav.menu-open { background: #fff; border-bottom-color: var(--line); }
.nav.menu-open .brand-word { color: var(--navy); }
.nav.menu-open .brand-bar { fill: var(--navy); }
.nav.menu-open .mobile-menu { display: block; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(1000px 640px at 72% 40%, rgba(25, 167, 206, 0.14), transparent 62%),
    radial-gradient(760px 500px at 76% 44%, rgba(255, 201, 60, 0.05), transparent 60%),
    linear-gradient(160deg, var(--hero-0) 0%, var(--hero-1) 78%, #0d2a52 100%);
  padding: calc(var(--nav-h) + var(--s6)) 0 var(--s10);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(2, 8, 18, 0.55) 100%);
}
.hero-noise {
  position: absolute; inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: var(--s8);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: var(--s3);
}
.pulse-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}
/* expanding ripple via transform/opacity only (GPU-composited) */
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(25, 167, 206, 0.5);
  animation: pulseDot 2.4s var(--ease) infinite;
}
@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(3); opacity: 0; }
}

.hero h1 {
  color: #fff;
  font-size: clamp(38px, 4.6vw, 58px);
  letter-spacing: -0.03em;
  margin-bottom: var(--s3);
}
.nowrap { white-space: nowrap; }
.grad-text {
  background: linear-gradient(92deg, #35c3ea 5%, #8fe0f5 50%, var(--gold) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 480px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--s4);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }

.hero-stats {
  display: flex;
  list-style: none;
  gap: var(--s4);
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: var(--s2);
  border-left: 2px solid rgba(25, 167, 206, 0.45);
}
.hero-stats strong {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-stats span { font-size: 13.5px; color: rgba(255, 255, 255, 0.6); }

/* --- animated brand scene --- */
.hero-scene {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}
.scene-halo {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 167, 206, 0.10) 0%, rgba(25, 167, 206, 0.03) 45%, transparent 68%);
}
.scene-particles { position: absolute; inset: -22%; }
.scene-particles span {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
}
.scene-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 167, 206, 0.22) 0%, rgba(25, 167, 206, 0.06) 45%, transparent 70%);
}
.scene-orbits { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-mark {
  position: relative;
  width: 40%;
  max-width: 210px;
  filter: drop-shadow(0 24px 48px rgba(2, 8, 18, 0.5));
}
.sheen-rect { transform: translateX(-220px); }

/* CSS fallback — applied only if the Motion library fails to load */
@keyframes markIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes barGlow {
  0%, 84%, 100% { filter: drop-shadow(0 0 0px rgba(250, 250, 250, 0)); }
  90% { filter: drop-shadow(0 0 14px rgba(250, 250, 250, 0.9)); }
}
@keyframes sheenSweep {
  0%, 22%, 100% { transform: translateX(-220px); }
  10% { transform: translateX(260px); }
  10.01% { transform: translateX(-220px); }
}
.hero-fallback .scene-mark { animation: markIn 0.9s var(--ease) both; }
.hero-fallback .scene-bar { animation: barGlow 7s ease-in-out infinite 2s; }
.hero-fallback .sheen-rect { animation: sheenSweep 7s ease-in-out infinite 1s; }

.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: var(--s3);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.18s var(--ease);
}
.hero-scroll-hint:hover { color: #fff; }
.hero-scroll-hint svg { width: 14px; height: 14px; animation: hintBob 2.6s ease-in-out infinite; }
@keyframes hintBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ==========================================================================
   SECTIONS — shared
   ========================================================================== */
.section { padding: var(--s12) 0; }
.section-tint { background: var(--bg-tint); }
[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

.section-head {
  max-width: 720px;
  margin: 0 auto var(--s6);
  text-align: center;
}
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-sub {
  margin-top: var(--s2);
  font-size: 18px;
  color: var(--muted);
}

/* journey eyebrow with connector line */
.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s2);
  padding-top: var(--s5);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-ink);
}
.eyebrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: var(--s4);
  background: linear-gradient(to bottom, transparent, var(--cyan));
}
.eyebrow-num {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(25, 167, 206, 0.45);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--cyan-ink);
}
.eyebrow-light { color: #7fd4ee; padding-top: 0; }
.eyebrow-light::before { display: none; }

.section-head-dark h2 { color: #fff; }
.section-head-dark .eyebrow { color: #7fd4ee; }
.section-head-dark .eyebrow-num { color: #7fd4ee; border-color: rgba(127, 212, 238, 0.4); }

/* reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ==========================================================================
   1 · WHY
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}
.why-card {
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}
.why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(25, 167, 206, 0.5);
  box-shadow: var(--shadow-lg);
}
.why-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: var(--s3);
  border-radius: 14px;
  background: var(--cyan-soft);
  color: var(--cyan-ink);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
              transform 0.3s var(--ease-spring);
}
.why-card:hover .why-icon {
  background: var(--cyan);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}
.why-icon svg { width: 28px; height: 28px; }
.why-card h3 { font-size: 18px; margin-bottom: var(--s1); }
.why-card p { font-size: 15.5px; color: var(--muted); line-height: 1.6; }

/* ==========================================================================
   2 · CURRICULUM
   ========================================================================== */
.curr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
.curr-card {
  position: relative;
  overflow: hidden;
  padding: var(--s5) var(--s4) 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}
.curr-card:hover {
  transform: translateY(-5px);
  border-color: rgba(25, 167, 206, 0.5);
  box-shadow: var(--shadow-lg);
}
.curr-art {
  position: absolute;
  left: var(--s3);
  right: var(--s3);
  bottom: var(--s2);
  height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0.16;
  transform: translateY(6px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  pointer-events: none;
}
.curr-art svg, .curr-art img {
  width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}
.curr-art img { mix-blend-mode: multiply; }
.curr-card:hover .curr-art,
.curr-card:focus-within .curr-art { opacity: 1; transform: none; }
.curr-card h3 { font-size: 22px; margin-bottom: var(--s1); }
.curr-card > p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--s3);
  max-width: 34ch;
  position: relative;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  list-style: none;
  position: relative;
}
.chips li {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan-ink);
  font-size: 13.5px;
  font-weight: 600;
}
.curr-note {
  margin-top: var(--s4);
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}

/* ==========================================================================
   3 · FOUNDERS
   ========================================================================== */
.founders-quote {
  max-width: 640px;
  margin: calc(-1 * var(--s4)) auto var(--s6);
  text-align: center;
}
.founders-quote p {
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.founders-quote em {
  font-style: normal;
  color: var(--cyan-ink);
}

.founders-duo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s4);
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto var(--s8);
}
.duo-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
}
.duo-divider::before {
  content: "";
  position: absolute;
  top: 5%;
  bottom: 5%;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.duo-divider span {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 17px;
  box-shadow: 0 0 0 6px #fff;
}

.founder-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}
.founder-card:hover {
  transform: translateY(-5px);
  border-color: rgba(25, 167, 206, 0.5);
  box-shadow: var(--shadow-lg);
}
.founder-photo {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #eef2f6;
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s var(--ease-out);
}
.founder-card:hover .founder-photo img { transform: scale(1.025); }
.founder-info { padding: var(--s3) var(--s4) var(--s4); }
.founder-info h3 { font-size: 22px; }
.founder-degree {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan-ink);
  letter-spacing: 0.02em;
}
.founder-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s2);
  list-style: none;
  margin: var(--s2) 0 var(--s3);
}
.founder-meta li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.founder-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
}
.story-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  padding: 4px 0;
  transition: color 0.18s var(--ease), gap 0.18s var(--ease);
}
.story-link svg { width: 15px; height: 15px; transition: transform 0.18s var(--ease); }
.story-link:hover { color: var(--cyan-ink); }
.story-link:hover svg { transform: translateX(3px); }
.founder-social { display: flex; gap: var(--s1); }
.founder-social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.founder-social a:hover { color: var(--navy); border-color: var(--navy); }
.founder-social svg { width: 18px; height: 18px; }

/* --- history timeline --- */
.history { max-width: 960px; margin: 0 auto; }
.history-track { position: relative; padding-top: 7px; }
.history-rail {
  position: absolute;
  top: 14px;
  left: calc(12.5% );
  right: calc(12.5%);
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.history-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease);
}
.history.timeline-active .history-fill { transform: scaleX(1); }
.history-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}
.history-step {
  text-align: center;
  padding: 0 var(--s2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.history.timeline-active .history-step { opacity: 1; transform: none; }
.history.timeline-active .history-step:nth-child(1) { transition-delay: 0.05s; }
.history.timeline-active .history-step:nth-child(2) { transition-delay: 0.4s; }
.history.timeline-active .history-step:nth-child(3) { transition-delay: 0.75s; }
.history.timeline-active .history-step:nth-child(4) { transition-delay: 1.1s; }
.history-dot {
  display: block;
  width: 14px; height: 14px;
  margin: 0 auto var(--s2);
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 0 4px #fff;
  transform: scale(0);
  transition: transform 0.5s var(--ease-spring);
}
.history.timeline-active .history-dot { transform: scale(1); }
.history.timeline-active .history-step:nth-child(1) .history-dot { transition-delay: 0.1s; }
.history.timeline-active .history-step:nth-child(2) .history-dot { transition-delay: 0.45s; }
.history.timeline-active .history-step:nth-child(3) .history-dot { transition-delay: 0.8s; }
.history.timeline-active .history-step:nth-child(4) .history-dot { transition-delay: 1.15s; }
.history-step:last-child .history-dot { border-color: var(--gold); }
.history-step strong {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.history-step p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ==========================================================================
   4 · LEARNING JOURNEY
   ========================================================================== */
.journey-track {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.journey-rail {
  position: absolute;
  top: 28px;
  bottom: 88px;
  left: 27px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.journey-fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0%;
  background: linear-gradient(to bottom, var(--cyan), var(--gold));
  border-radius: 2px;
}
.journey-steps { list-style: none; display: grid; gap: var(--s6); }
.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s3);
  align-items: start;
}
.journey-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--muted);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
              background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
              transform 0.35s var(--ease-spring);
  z-index: 1;
}
.journey-step.is-active:not(.is-done) .journey-node { transform: scale(1.06); }
.journey-node svg { width: 24px; height: 24px; grid-area: 1 / 1; transition: opacity 0.28s var(--ease-out), transform 0.35s var(--ease-spring); }
.node-check { opacity: 0; transform: scale(0.5); }

.journey-card {
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.32s var(--ease-out), opacity 0.32s var(--ease-out),
              transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out);
  opacity: 0.55;
  transform: translateY(8px);
}
.journey-card h3 { font-size: 18px; margin-bottom: 4px; }
.journey-card p { font-size: 15.5px; color: var(--muted); line-height: 1.6; }

/* step states */
.journey-step.is-active .journey-card,
.journey-step.is-done .journey-card { opacity: 1; transform: none; }
.journey-step.is-active .journey-node {
  border-color: var(--cyan);
  color: var(--cyan-ink);
  box-shadow: 0 0 0 5px rgba(25, 167, 206, 0.14);
}
.journey-step.is-active .node-icon { animation: nodePop 0.3s var(--ease); }
@keyframes nodePop {
  0% { transform: scale(0.82); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.journey-step.is-active .journey-card { border-color: rgba(25, 167, 206, 0.55); box-shadow: var(--shadow-md); }
.journey-step.is-done .journey-node {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.journey-step.is-done .node-icon { opacity: 0; transform: scale(0.6); }
.journey-step.is-done .node-check { opacity: 1; transform: scale(1); }

/* ==========================================================================
   5 · EXPERIENCE / STATS
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}
.stat-card {
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}
.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(25, 167, 206, 0.5);
  box-shadow: var(--shadow-lg);
}
/* settle pulse when the count-up lands */
@keyframes countSettle {
  0% { transform: scale(1); }
  40% { transform: scale(1.045); }
  100% { transform: scale(1); }
}
.stat-value.counted { animation: countSettle 0.5s var(--ease-spring); transform-origin: left bottom; }
.stat-card .stat-value {
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s2);
}
.stat-suffix { color: var(--cyan); }
.stat-card h3 { font-size: 17px; margin-bottom: 6px; }
.stat-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ==========================================================================
   6 · PHILOSOPHY
   ========================================================================== */
.philosophy {
  position: relative;
  overflow: hidden;
  padding: var(--s12) 0;
  background:
    radial-gradient(900px 500px at 50% 20%, rgba(25, 167, 206, 0.12), transparent 60%),
    linear-gradient(170deg, #081830 0%, var(--navy) 100%);
}
.philosophy-noise {
  position: absolute; inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.philosophy-quotemark {
  position: absolute;
  font-size: 340px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}
.qm-open { top: 40px; left: 4%; }
.qm-close { bottom: -80px; right: 4%; }
.philosophy .section-head { margin-bottom: var(--s6); }
.philosophy-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.philosophy-quote p {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.philosophy-quote p + p { margin-top: var(--s2); }
.sweep-text {
  background: linear-gradient(100deg,
    var(--gold) 0%, var(--gold) 40%,
    #fff 50%,
    var(--gold) 60%, var(--gold) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.philosophy-quote.revealed .sweep-text { animation: textSweep 1.6s var(--ease) 0.5s both; }
@keyframes textSweep {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}

/* ==========================================================================
   7 · FAQ
   ========================================================================== */
.faq-list { display: grid; gap: var(--s2); }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.faq-item:hover { border-color: #c9d6e4; }
.faq-item[open] { border-color: rgba(25, 167, 206, 0.55); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
  border-radius: var(--radius);
}
.faq-item:not([open]) summary:hover { background: var(--bg-tint); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--cyan-ink); }
.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px; height: 22px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease-out);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(-45deg); }

.faq-body { overflow: hidden; }
.faq-content {
  padding: 0 var(--s4) var(--s3);
  font-size: 16px;
  color: var(--body);
}
.faq-content p + p, .faq-content p + ul, .faq-content ul + p { margin-top: var(--s2); }
.faq-content ul { margin-left: 20px; }
.faq-content li { margin-top: 6px; }
.faq-content li::marker { color: var(--cyan); }
.faq-content strong { color: var(--ink); font-weight: 600; }

.faq-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s5);
  padding: var(--s3) var(--s4);
  border-radius: var(--radius);
  background: var(--bg-tint);
  border: 1px solid var(--line);
}
.faq-cta p { display: flex; flex-direction: column; }
.faq-cta strong { color: var(--ink); font-size: 17px; }
.faq-cta span { color: var(--muted); font-size: 14.5px; }

/* ==========================================================================
   8 · FINAL CTA
   ========================================================================== */
.cta-section { padding-top: 0; }
.cta-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px var(--s4);
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    radial-gradient(640px 320px at 50% 0%, rgba(25, 167, 206, 0.22), transparent 65%),
    linear-gradient(165deg, #081830 0%, var(--navy) 90%);
}
.cta-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-panel > *:not(.cta-lines) { position: relative; }
.cta-panel h2 {
  color: #fff;
  font-size: clamp(32px, 4.2vw, 48px);
  margin: 12px 0 10px;
}
.cta-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  margin-bottom: var(--s4);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #071527;
  color: rgba(255, 255, 255, 0.65);
  padding: var(--s10) 0 var(--s4);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s6);
  padding-bottom: var(--s8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer .brand-word { color: #fff; }
.footer-brand > p { margin: var(--s3) 0; line-height: 1.6; }
.footer-social { display: flex; gap: var(--s1); }
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.footer-social a { transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out); }
.footer-social a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s1);
}
.footer-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-top: var(--s1);
}
.footer-label:first-of-type { margin-top: 0; }
.footer-loc { margin-top: var(--s1); }
.footer-col a { color: rgba(255, 255, 255, 0.65); transition: color 0.18s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  flex-wrap: wrap;
  padding-top: var(--s4);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-legal { display: flex; gap: var(--s3); }
.footer-legal a { color: rgba(255, 255, 255, 0.45); }
.footer-legal a:hover { color: #fff; }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--s3); }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 12, 26, 0.66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s var(--ease);
}
.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: 100%;
  width: min(860px, 100%);
  height: min(86vh, 720px);
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: modalIn 0.28s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
}
.modal-close {
  position: absolute;
  top: var(--s2); right: var(--s2);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease);
}
.modal-close:hover { transform: rotate(90deg); }
.modal-close svg { width: 16px; height: 16px; }
.modal-media { background: #eef2f6; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.modal-body {
  padding: var(--s5);
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
}
.modal-body h3 { font-size: 26px; }
.chips-modal { margin: var(--s2) 0 var(--s1); }
.modal-body h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-ink);
  margin: var(--s3) 0 var(--s1);
}
.modal-body p { font-size: 15.5px; line-height: 1.7; }
.modal-list { margin-left: 20px; font-size: 15.5px; }
.modal-list li { margin-top: 4px; }
.modal-list li::marker { color: var(--cyan); }
.modal-actions { display: flex; gap: var(--s2); margin-top: var(--s4); flex-wrap: wrap; }
body.modal-open { overflow: hidden; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .why-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .curr-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .nav-links { display: none; }
}

@media (max-width: 880px) {
  .hero { padding-bottom: var(--s12); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .hero-scene { order: -1; max-width: 300px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-stats li { text-align: left; }

  .founders-duo { grid-template-columns: 1fr; max-width: 480px; }
  .duo-divider { width: auto; height: 48px; }
  .duo-divider::before {
    top: 50%; bottom: auto; left: 5%; right: 5%;
    width: auto; height: 1px;
    background: linear-gradient(to right, transparent, var(--line) 20%, var(--line) 80%, transparent);
  }

  .modal-panel {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    max-height: 88vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .modal-media { max-height: 300px; }
  .modal-body { overflow: visible; }
}

@media (max-width: 720px) {
  .section { padding: var(--s10) 0; }
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }

  .history-rail { display: none; }
  .history-steps { grid-template-columns: 1fr; gap: var(--s3); justify-items: start; }
  .history-step {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: var(--s2);
    text-align: left;
    padding: 0;
  }
  .history-dot { margin: 6px 0 0; }
  .history-step p { margin-top: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .why-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--s3); }
  .hero h1 { font-size: 38px; }
  .journey-rail { left: 23px; }
  .journey-step { grid-template-columns: 48px 1fr; gap: var(--s2); }
  .journey-node { width: 48px; height: 48px; }
  .journey-node svg { width: 20px; height: 20px; }
  .philosophy-quotemark { font-size: 200px; }
  .faq-item summary { padding: var(--s2) var(--s3); }
  .faq-content { padding: 0 var(--s3) var(--s2); }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .journey-card { opacity: 1; transform: none; }
}
