/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --bg: #07050c;
  --bg-tint: #0d0916;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f1fa;
  --muted: #a49db4;
  --faint: #6f6880;
  --violet: #8b5cf6;
  --violet-soft: #a78bfa;
  --magenta: #d946ef;
  --pink: #db2777;
  --grad: linear-gradient(95deg, #7c3aed 0%, #a21caf 55%, #db2777 100%);
  --grad-text: linear-gradient(95deg, #a78bfa 0%, #e879f9 50%, #f472b6 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: 24px;

  /* Motion: long, soft ease-out for entrances; symmetric ease-in-out for camera moves */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --tour-dur: 3.4s;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: rgba(167, 139, 250, 0.35); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

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

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet-soft);
  margin-bottom: 14px;
}
.eyebrow--center { text-align: center; }

/* ───────────────────────── Buttons & chips ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), background-color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(162, 28, 175, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(219, 39, 119, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: rgba(167, 139, 250, 0.5); background: rgba(167, 139, 250, 0.08); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 3px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(20, 14, 32, 0.7);
  font-size: 0.82rem; font-weight: 500; color: #ddd6ee;
  white-space: nowrap;
}
.chip--soon { border-style: dashed; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet-soft); box-shadow: 0 0 12px var(--violet-soft); }
.dot--m { background: #e879f9; box-shadow: 0 0 12px #e879f9; }
.dot--c { background: #38bdf8; box-shadow: 0 0 12px #38bdf8; }

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.5s var(--ease-out), border-color 0.5s, backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 5, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav__brand img { height: 28px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 0.92rem; color: var(--muted); }
.nav__links a { transition: color 0.3s; }
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; }

/* ───────────────────────── Sections ───────────────────────── */
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--tint { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 18%, var(--bg-tint) 82%, var(--bg) 100%); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__lead { color: var(--muted); font-size: 1.08rem; margin-top: 18px; max-width: 640px; }

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-out) var(--d, 0ms), transform 1.3s var(--ease-out) var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ───────────────────────── Frames & camera tours ───────────────────────── */
.frame {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: #0b0812;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.frame__bar {
  display: flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.76rem; color: var(--faint);
}
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.frame__bar span { margin-left: 10px; transition: opacity 0.5s; }

/* A .tour is a window; its image is the "camera" target. JS sets --tx/--ty/--s,
   CSS eases between them, so every move is one long, symmetric glide. */
.tour { position: relative; overflow: hidden; background: #07050c; }
.tour img, .tour video {
  display: block;
  width: 100%; height: auto;
  transform-origin: 0 0;
  transform: translate(var(--tx, 0%), var(--ty, 0%)) scale(var(--s, 1));
  transition: transform var(--tour-dur) var(--ease-io);
  will-change: transform;
  backface-visibility: hidden;
}
/* Video loop: dip to dark, rewind, fade back up. */
.tour video {
  aspect-ratio: var(--ar, 16 / 10);
  object-fit: cover;
  transition: transform var(--tour-dur) var(--ease-io), opacity 0.45s var(--ease-out);
}
.tour.is-dipped video { opacity: 0; }
[data-zoom] { cursor: zoom-in; }

/* ───────────────────────── Hero ───────────────────────── */
.hero { position: relative; padding: 168px 0 80px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 900px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 22% 30%, rgba(124, 58, 237, 0.28), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(219, 39, 119, 0.18), transparent 70%);
  filter: blur(20px);
  animation: glow 18s var(--ease-io) infinite alternate;
}
@keyframes glow { to { transform: translate3d(3%, 4%, 0) scale(1.06); } }
.hero__copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 800; letter-spacing: -0.035em; }
.hero__lead { max-width: 720px; margin-top: 26px; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.hero__actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }

.hero__stage { position: relative; margin-top: 56px; }
.hero__anim { display: block; width: 100%; aspect-ratio: 1200 / 640; }

/* ───────────────────────── Cards ───────────────────────── */
.cards { display: grid; gap: 20px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.5s, background-color 0.5s, transform 0.7s var(--ease-out);
}
.card:hover { border-color: rgba(167, 139, 250, 0.3); background: var(--surface-2); transform: translateY(-4px); }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card--flat h3 { margin-top: 0; }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(219, 39, 119, 0.18));
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: #e9d5ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card--soon { border-style: dashed; }
.badge {
  position: absolute; top: 22px; right: 22px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #f0abfc; padding: 4px 10px; border-radius: 999px;
  background: rgba(217, 70, 239, 0.12); border: 1px solid rgba(217, 70, 239, 0.3);
}

/* ───────────────────────── How it works (sticky stage) ───────────────────────── */
.steps { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.step {
  min-height: 62vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0;
  opacity: 0.32;
  transition: opacity 0.8s var(--ease-out);
}
.step.is-active { opacity: 1; }
.step__num {
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  color: var(--violet-soft); letter-spacing: 0.1em; margin-bottom: 14px;
}
.step h3 { font-size: 1.6rem; margin-bottom: 14px; }
.step p { color: var(--muted); }
.step__media { display: none; margin-top: 24px; }

.steps__stage { position: sticky; top: max(96px, calc(50vh - 200px)); }
.stage__slides { position: relative; aspect-ratio: 1600 / 960; }
.stage__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.05);
  filter: blur(10px);
  transition: opacity 1.1s var(--ease-out), transform 1.6s var(--ease-out), filter 1.1s var(--ease-out);
}
.stage__slide.is-active { opacity: 1; transform: none; filter: none; z-index: 1; }
.stage__progress { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 3; display: flex; gap: 6px; }
.stage__progress i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; position: relative; }
.stage__progress i::after {
  content: ""; position: absolute; inset: 0;
  background: var(--grad);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.9s var(--ease-out);
}
.stage__progress i.is-done::after { transform: scaleX(1); }

/* ───────────────────────── Bento ───────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 20px;
}
.tile {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.5s, transform 0.8s var(--ease-out);
}
.tile:hover { border-color: rgba(167, 139, 250, 0.3); }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile__media { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); box-shadow: none; }
/* The tall tile's window grows with the grid row; the portrait image fills its height
   and the tour pans across the overflow (the tour math handles any window/image ratio). */
.tile__media--tall { flex: 1 1 auto; min-height: 420px; }
.tile__media--tall .tour { position: absolute; inset: 0; }
.tile__media--tall .tour img, .tile__media--tall .tour video { height: 100%; width: auto; max-width: none; }
.tile--wide .tour { max-height: 380px; }
.tile__body { padding: 24px 26px 28px; }
.tile__body h3 { margin-bottom: 8px; }
.tile__body p { color: var(--muted); font-size: 0.96rem; }
.tile--text { justify-content: center; }
.tile--text.tile--wide .ticks { grid-template-columns: 1fr 1fr; column-gap: 28px; }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; color: var(--muted); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.ticks b { color: var(--text); font-weight: 600; }

/* ───────────────────────── Split sections ───────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--rev .split__copy { order: 2; }
.split__media { display: flex; justify-content: center; }

/* Collaboration mock: live cursors drifting over a shared canvas */
.collab { width: 100%; max-width: 480px; }
.presence { margin-left: auto !important; display: flex; }
.presence b {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.66rem; color: #0b0812; font-weight: 700;
  background: var(--c); margin-left: -6px; border: 2px solid #0b0812;
}
/* Crop the portrait screenshot to the molecule; cursor waypoints are fractions of this box. */
.collab__canvas { position: relative; aspect-ratio: 690 / 700; overflow: hidden; }
.collab__canvas img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.cursor {
  position: absolute; left: 50%; top: 50%;
  display: flex; align-items: flex-start; gap: 2px;
  transition: left 2.6s var(--ease-io), top 2.6s var(--ease-io);
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}
.cursor svg { width: 18px; height: 18px; fill: var(--c); stroke: #0b0812; stroke-width: 1; }
.cursor em {
  font-style: normal; font-size: 0.72rem; font-weight: 600; color: #0b0812;
  background: var(--c); padding: 2px 8px; border-radius: 6px; margin-top: 14px;
}

/* Learning: an interactive ¹³C quiz card */
.lesson {
  --good: #34d399;
  --bad: #fb7185;
  width: 100%; max-width: 480px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.12), rgba(11, 8, 18, 0.9) 45%);
  box-shadow: 0 40px 80px -40px rgba(124, 58, 237, 0.45);
}
.lesson__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lesson__step { font-size: 0.8rem; color: var(--faint); }
.lesson__q { margin: 22px 0 4px; font-family: var(--font-head); font-size: 1.18rem; font-weight: 600; }
.lesson.is-done .lesson__q { font-size: 1.6rem; margin-bottom: 0; }
.lesson__compound { font-size: 0.84rem; color: var(--faint); margin-bottom: 8px; }
/* Structure of the compound in question */
.lesson__mol { width: 100%; height: auto; display: block; margin: 2px 0 4px; overflow: visible; }
.lesson__mol .bonds line { stroke: #d6cdea; stroke-width: 1.7; stroke-linecap: round; }
.lesson__mol .label-bg { fill: #110b1c; }
.lesson__mol .label { font: 600 12px var(--font-body); text-anchor: middle; fill: #e9d5ff; }
.lesson__mol .label--O { fill: #f9a8d4; }
.lesson__mol .label--N { fill: #7dd3fc; }
.lesson__mol .halo {
  fill: transparent; opacity: 0;
  transition: fill 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
/* Soft wash (blurred, low opacity) + crisp vertex dot: states only change the tint. */
.lesson__mol .halos .halo.is-target { fill: #ec4899; opacity: 0.48; }
.lesson__mol .halos .halo.is-right { fill: var(--good); opacity: 0.3; }
.lesson__mol .halos .halo.is-wrong { fill: var(--bad); opacity: 0.3; }
.lesson__mol .halos .halo.is-hover:not(.is-right):not(.is-wrong) { fill: #fff; opacity: 0.12; }
.lesson__mol .dots .halo.is-target { fill: #f472b6; opacity: 1; }
.lesson__mol .dots .halo.is-right { fill: var(--good); opacity: 1; }
.lesson__mol .dots .halo.is-wrong { fill: var(--bad); opacity: 1; }
.lesson__mol .dots .halo.is-hover:not(.is-right):not(.is-wrong) { fill: #fff; opacity: 0.8; }

.lesson__spec { width: 100%; height: auto; display: block; overflow: visible; }
.lesson__spec[hidden], .lesson__mol[hidden], .lesson__options[hidden], .lesson__compound[hidden] { display: none; }
.lesson__spec .axis { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; }
.lesson__spec .tick { fill: var(--faint); font-size: 9px; text-anchor: middle; font-family: var(--font-body); }
.lesson__spec .tick--unit { text-anchor: end; }

/* A peak = invisible wide hit area + the stick + its ppm label. */
.lesson__spec .peak { cursor: pointer; }
.lesson__spec .hit { fill: transparent; }
.lesson__spec .stick {
  stroke: #8b5cf6; stroke-width: 2.6; stroke-linecap: round;
  transition: stroke 0.5s var(--ease-out), stroke-width 0.5s var(--ease-out), opacity 0.5s;
}
.lesson__spec .val {
  fill: #c4b5fd; font-size: 10px; font-weight: 600; text-anchor: middle; font-family: var(--font-body);
  transition: fill 0.5s, opacity 0.5s;
}
.lesson:not(.is-answered) .peak:hover .stick { stroke: #c084fc; stroke-width: 4; }
.lesson:not(.is-answered) .peak:hover .val { fill: #fff; }
.lesson.is-answered .peak { cursor: default; }
.lesson__spec .peak.is-right .stick { stroke: var(--good); stroke-width: 4; filter: drop-shadow(0 0 6px var(--good)); }
.lesson__spec .peak.is-right .val { fill: var(--good); }
.lesson__spec .peak.is-wrong .stick { stroke: var(--bad); stroke-width: 3.2; }
.lesson__spec .peak.is-wrong .val { fill: var(--bad); }
.lesson__spec .peak.is-dim .stick, .lesson__spec .peak.is-dim .val { opacity: 0.35; }

.lesson__options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.opt {
  font: inherit; font-size: 0.86rem; color: var(--text);
  padding: 9px 4px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.03);
  cursor: pointer; white-space: nowrap;
  transition: border-color 0.4s, background-color 0.4s, opacity 0.4s, transform 0.5s var(--ease-out);
}
.opt:hover:not(:disabled) { border-color: rgba(167, 139, 250, 0.55); background: rgba(167, 139, 250, 0.08); }
.opt:disabled { cursor: default; }
.opt.is-right { border-color: var(--good); background: rgba(52, 211, 153, 0.14); color: #d1fae5; transform: translateY(-2px); }
.opt.is-wrong { border-color: var(--bad); background: rgba(251, 113, 133, 0.12); }
.opt.is-dim { opacity: 0.4; }

.lesson__feedback { margin-top: 16px; font-size: 0.92rem; color: var(--muted); min-height: 2.9em; }
.lesson__feedback b { color: var(--text); }
.lesson__feedback.is-good b { color: var(--good); }
.lesson__feedback.is-bad b { color: var(--bad); }
.lesson__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; min-height: 40px; }
.lesson__score { font-size: 0.85rem; color: var(--faint); }
.lesson__next { margin-left: auto; }
.lesson__next[hidden] { display: none; }

/* ───────────────────────── Compute flow ───────────────────────── */
.flow { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 48px; }
.flow__node {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 26px 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  min-width: 220px;
}
.flow__node span { color: var(--muted); font-size: 0.9rem; }
.flow__node--main { border-color: rgba(167, 139, 250, 0.35); box-shadow: 0 30px 70px -35px rgba(124, 58, 237, 0.6); }
.flow__node--main .chips { justify-content: center; margin-top: 8px; }
.flow__line { flex: 0 1 180px; height: 20px; }
.flow__line svg { width: 100%; height: 100%; overflow: visible; }
.flow__line path {
  fill: none; stroke: #a78bfa; stroke-width: 2; stroke-dasharray: 6 8;
  animation: flow 1.6s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -28; } }

/* ───────────────────────── Partners ───────────────────────── */
.logos { display: flex; align-items: center; justify-content: center; gap: 72px; flex-wrap: wrap; margin-top: 18px; }
.logos img { width: auto; opacity: 0.7; transition: opacity 0.5s; }
.logos img:hover { opacity: 1; }
/* The Excento and PAN logos ship dark-on-white: flip them to light-on-transparent. */
.logo--invert { filter: grayscale(1) invert(1) brightness(1.2); mix-blend-mode: screen; }

/* ───────────────────────── Team ───────────────────────── */
.person { text-align: center; padding: 8px 12px; }
.person img {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px;
  padding: 3px; background: var(--grad);
  transition: transform 0.8s var(--ease-out);
}
.person:hover img { transform: scale(1.04); }
.person__role { color: var(--violet-soft); font-size: 0.88rem; font-weight: 600; margin: 6px 0 12px; }
.person p:last-child { color: var(--muted); font-size: 0.95rem; }

/* ───────────────────────── Footer ───────────────────────── */
.footer { padding: 40px 0 36px; }
.footer__cta {
  text-align: center;
  padding: 72px 24px;
  border-radius: 28px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(124, 58, 237, 0.3), transparent 70%),
    radial-gradient(50% 80% at 90% 100%, rgba(219, 39, 119, 0.18), transparent 70%),
    var(--bg-tint);
}
.footer__cta p { color: var(--muted); max-width: 540px; margin: 16px auto 30px; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border);
  color: var(--faint); font-size: 0.88rem;
}
.footer__bottom img { height: 24px; width: auto; opacity: 0.8; }
.footer__mail:hover { color: var(--text); }

/* ───────────────────────── Lightbox (FLIP zoom) ───────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 3, 9, 0);
  backdrop-filter: blur(0);
  pointer-events: none;
  transition: background-color 0.6s var(--ease-out), backdrop-filter 0.6s var(--ease-out);
}
.lightbox.is-open { background: rgba(5, 3, 9, 0.82); backdrop-filter: blur(8px); pointer-events: auto; cursor: zoom-out; }
.lightbox img, .lightbox video {
  position: fixed; left: 0; top: 0;
  transform-origin: 0 0;
  border-radius: 14px;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9);
  transition: transform 0.75s var(--ease-out), border-radius 0.75s var(--ease-out);
  will-change: transform;
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 18px; }
}

@media (max-width: 960px) {
  .section { padding: 88px 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps__stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 0 0 56px; }
  .step__media { display: block; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--tall { grid-row: auto; }
  .tile--wide { grid-column: span 2; }
  .split, .split--rev { grid-template-columns: 1fr; gap: 48px; }
  .split--rev .split__copy { order: 0; }
  .cards--3 { grid-template-columns: 1fr; max-width: 560px; }
  .flow { flex-direction: column; }
  .flow__line { flex: 0 0 48px; width: 20px; height: 48px; transform: rotate(90deg); }

  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: rgba(7, 5, 12, 0.96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
  }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav.is-open { background: rgba(7, 5, 12, 0.96); }
  .nav__toggle {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; margin-left: 4px;
    border: 1px solid var(--border-strong); border-radius: 12px; background: transparent; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.4s var(--ease-out); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__cta { margin-left: auto; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero { padding: 128px 0 56px; }
  .hero__stage { margin-top: 48px; }
  .cards--4, .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile--text.tile--wide .ticks { grid-template-columns: 1fr; }
  .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .lesson { padding: 22px; }
  .lesson__options { grid-template-columns: repeat(3, 1fr); }
  .logos { gap: 40px; }
  .footer__cta { padding: 56px 20px; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* Motion off: everything is simply present, no camera moves or parallax. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .tour img, .tour video, .stage__slide, .cursor, .lightbox img, .lightbox video { transition: none !important; }
  .hero__glow, .flow__line path { animation: none; }
}
