/* ==========================================================================
   FMETP — Design System
   Brand: #7963FF violet · #F00000 highlight · #FFBC00 accent · #121212 ink
   Light theme only. Typeface: DM Sans (self-hosted variable, latin subset).
   ========================================================================== */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --violet: #7963ff;
  --violet-700: #5942e6;
  --violet-900: #3a2a9e;
  --violet-050: #f2effe;
  --violet-100: #e6e1ff;
  --red: #f00000;
  --amber: #ffbc00;
  --ink: #121212;
  --ink-70: #4a4a52;
  --ink-50: #6c6c76;
  --ink-30: #9a9aa4;
  --paper: #ffffff;
  --soft: #f7f6fc;
  --soft-2: #efedf9;
  --line: #e7e4f4;
  --line-2: #efefef;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(18, 18, 18, 0.04), 0 4px 14px rgba(18, 18, 18, 0.04);
  --shadow-md: 0 2px 6px rgba(18, 18, 18, 0.05), 0 18px 44px rgba(60, 44, 160, 0.08);
  --shadow-lg: 0 30px 80px rgba(60, 44, 160, 0.14);

  --gutter: clamp(1.15rem, 4vw, 4rem);
  --maxw: 1280px;
  --section-y: clamp(4.5rem, 9vw, 9.5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* `clip` not `hidden`: overflow-x:hidden forces overflow-y to compute to
     `auto`, which turns <body> into the scroll container. ScrollTrigger
     listens on the window, so window.scrollY would stay 0 and no scroll
     animation would ever fire. `clip` clips without creating a scroller. */
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--violet); color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--r-sm); transition: top .2s;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1560px; }
.section { padding-block: var(--section-y); position: relative; }
.section--soft { background: var(--soft); }
.section--ink { background: var(--ink); color: #fff; }
.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack-lg { display: grid; gap: clamp(1.5rem, 3vw, 2.6rem); }

/* ---------- Type ---------- */
.display,
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.d1 { font-size: clamp(2.65rem, 7.4vw, 6.1rem); }
.d2 { font-size: clamp(2.1rem, 5.1vw, 4rem); }
.d3 { font-size: clamp(1.6rem, 3.1vw, 2.5rem); line-height: 1.12; }
.d4 { font-size: clamp(1.22rem, 1.9vw, 1.6rem); line-height: 1.22; letter-spacing: -0.02em; }
.lead {
  font-size: clamp(1.04rem, 1.35vw, 1.24rem);
  color: var(--ink-70);
  line-height: 1.66;
  max-width: 62ch;
  letter-spacing: -0.005em;
}
.muted { color: var(--ink-50); }
.small { font-size: .875rem; line-height: 1.55; }
.mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.hl { color: var(--violet); }
.hl-red { color: var(--red); }
em.serif { font-style: italic; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--violet-700);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--violet);
  border-radius: 2px; flex: none;
}
.section--ink .eyebrow { color: #b7a8ff; }
.section--ink .lead, .section--ink .muted { color: rgba(255,255,255,.7); }

.sec-head { display: grid; gap: 1.05rem; margin-bottom: clamp(2.2rem, 4vw, 3.6rem); }
.sec-head--split {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end; gap: clamp(1.4rem, 3vw, 3.4rem);
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-weight: 600; font-size: .95rem; letter-spacing: -0.01em;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--violet); border-radius: inherit;
  transform: translate3d(0, 101%, 0);
  transition: transform .5s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--violet); }
.btn:hover::after { transform: translate3d(0, 0, 0); }
.btn--violet { --bg: var(--violet); --bd: var(--violet); }
.btn--violet::after { background: var(--ink); }
.btn--violet:hover { border-color: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn--ghost:hover { color: #fff; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.02rem; }
.btn .ic { width: 17px; height: 17px; flex: none; transition: transform .4s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.section--ink .btn--ghost { --fg: #fff; --bd: rgba(255,255,255,.28); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--violet-700); font-size: .95rem;
  border-bottom: 1.5px solid transparent; padding-bottom: 2px;
  transition: border-color .3s, gap .3s var(--ease);
}
.link-arrow:hover { border-color: var(--violet); gap: .8rem; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .85rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--paper);
  font-size: .78rem; font-weight: 600; color: var(--ink-70);
  letter-spacing: -0.005em; white-space: nowrap;
}
.chip--violet { background: var(--violet-050); border-color: var(--violet-100); color: var(--violet-700); }
.chip--amber { background: #fff7e2; border-color: #ffe6a8; color: #8a6200; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); flex: none; }
.dot--live { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2.4s infinite; }
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ---------- Header ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 120;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--violet), var(--red));
  will-change: transform;
}
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 26px rgba(18,18,18,.05); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; height: 76px;
}
.brand { display: flex; align-items: center; gap: .6rem; flex: none; }
.brand img { width: 154px; height: 30px; object-fit: contain; }
.nav-list { display: flex; align-items: center; gap: .15rem; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .78rem; border-radius: var(--r-pill);
  font-size: .93rem; font-weight: 500; color: var(--ink-70);
  transition: color .25s, background-color .25s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); background: var(--soft-2); }
.nav-link[aria-current="page"] { color: var(--violet-700); font-weight: 600; }
.nav-link .caret { width: 10px; height: 10px; opacity: .55; transition: transform .3s; }
.has-menu:hover .caret { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  width: min(680px, 86vw); padding: .9rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: .3rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.has-menu:hover .mega, .has-menu:focus-within .mega {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.mega a {
  display: grid; gap: .12rem; padding: .7rem .8rem; border-radius: var(--r-md);
  transition: background-color .22s;
}
.mega a:hover { background: var(--violet-050); }
.mega b { font-size: .93rem; font-weight: 600; letter-spacing: -0.01em; }
.mega span { font-size: .78rem; color: var(--ink-50); line-height: 1.35; }

.nav-cta { display: flex; align-items: center; gap: .55rem; flex: none; }
.burger {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper);
  align-items: center; justify-content: center; cursor: pointer;
}
.burger span {
  display: block; width: 17px; height: 1.8px; background: var(--ink);
  border-radius: 2px; position: relative; transition: transform .3s var(--ease), opacity .2s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.8px;
  background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 76px 0 0; z-index: 99; background: var(--paper);
  padding: 1.4rem var(--gutter) 3rem; overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .55s var(--ease), visibility .55s;
}
.mobile-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-nav a {
  display: block; padding: .85rem 0; border-bottom: 1px solid var(--line-2);
  font-size: 1.28rem; font-weight: 600; letter-spacing: -0.02em;
}
.mobile-nav .sub a { font-size: 1rem; font-weight: 500; color: var(--ink-70); padding-left: 1rem; }

/* ==========================================================================
   HERO (homepage)
   Layout: oversized headline with a rotating role word, against a fanned
   stack of three real classroom photographs. Everything below is driven by
   an orchestrated GSAP intro timeline — see initHero() in app.js.
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(2.6rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem);
  min-height: min(92vh, 940px);
  display: flex; align-items: center;
}

/* --- ambient background: drifting colour fields + dot grid --- */
.hero-fx { position: absolute; inset: -12% -8%; z-index: -1; pointer-events: none; }
.hero-fx .blob {
  position: absolute; display: block; border-radius: 50%;
  will-change: transform; opacity: .95;
}
.hero-fx .blob--1 {
  width: 44vw; height: 44vw; left: -10%; top: -14%;
  background: radial-gradient(circle at 45% 45%, rgba(121, 99, 255, .20), rgba(121, 99, 255, 0) 64%);
}
.hero-fx .blob--2 {
  width: 38vw; height: 38vw; right: -8%; top: -6%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 188, 0, .16), rgba(255, 188, 0, 0) 62%);
}
.hero-fx .blob--3 {
  width: 32vw; height: 32vw; left: 30%; bottom: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(240, 0, 0, .08), rgba(240, 0, 0, 0) 64%);
}
.hero-fx .dots {
  position: absolute; inset: 0; display: block;
  background-image: radial-gradient(circle, rgba(18, 18, 18, .13) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(62% 55% at 42% 42%, #000 0%, transparent 76%);
  mask-image: radial-gradient(62% 55% at 42% 42%, #000 0%, transparent 76%);
  opacity: .38;
}
/* Pointer spotlight — transform-only, so it never repaints the dot layer. */
.hero-fx .spot {
  position: absolute; left: 0; top: 0; display: block;
  width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(circle at 50% 50%, rgba(121, 99, 255, .18), rgba(121, 99, 255, 0) 62%);
}

.hero-lay {
  position: relative; display: grid; align-items: center; width: 100%;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(2.4rem, 5vw, 5rem);
}
.hero-copy { position: relative; z-index: 2; }

/* Explicit line breaks — a headline this long must not be left to chance. */
.hero h1 {
  margin-block: 1.5rem 1.5rem;
  font-size: clamp(2.05rem, 4.05vw, 3.45rem);
  line-height: 1.06; letter-spacing: -0.038em;
}
.hero h1 .h1-line { display: block; }
.hero h1 .h1-line--rot { margin-top: .12em; }

/* --- rotating role word --- */
.rotator {
  position: relative; display: inline-block; vertical-align: bottom;
  overflow: hidden; padding-bottom: .2em; margin-bottom: -.2em;
  color: var(--violet); white-space: nowrap;
}
.rotator .rot-word { display: inline-block; }
.rotator .rot-stack { position: relative; display: block; perspective: 620px; }
.rotator .rot-stack .rot-word { position: absolute; left: 0; top: 0; }
.rotator .rot-stack .rot-word:first-child { position: relative; }
.rot-char { display: inline-block; will-change: transform, opacity; }
/* Hand-drawn underline, stretched to whatever word is showing. */
.rotator .rot-rule {
  position: absolute; left: 0; bottom: .05em;
  width: 100%; height: .17em; overflow: visible;
  color: currentColor; opacity: .45; pointer-events: none;
}

/* --- media: two overlapping photographs on a tilting stage --- */
.hero-media { position: relative; z-index: 1; aspect-ratio: 1 / 1.08; perspective: 1150px; }
.hero-stage {
  position: absolute; inset: 0;
  transform-style: preserve-3d; will-change: transform;
}
.xcard { position: absolute; margin: 0; will-change: transform; }
.xdeal { display: block; width: 100%; height: 100%; will-change: transform, opacity; }
.xmask {
  display: block; width: 100%; height: 100%;
  overflow: hidden; border-radius: var(--r-xl);
  box-shadow: 0 2px 4px rgba(18, 18, 18, .04), 0 26px 60px rgba(60, 44, 160, .16);
  background: var(--soft-2); will-change: transform;
}
.xshift { display: block; width: 100%; height: 100%; }
.xcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xmask::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(to top, rgba(12, 10, 30, .55), rgba(12, 10, 30, 0));
  pointer-events: none;
}
.xcard figcaption {
  position: absolute; bottom: .9rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .85rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .76rem; font-weight: 600; letter-spacing: -0.012em; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(18, 18, 18, .14);
}
/* A sits top-right, B overlaps bottom-left — so A's caption goes right, B's left,
   and neither ends up underneath the other card. */
.xcard--a { right: 0; top: 0; width: 68%; aspect-ratio: 3 / 4; z-index: 2; }
.xcard--a figcaption { right: .9rem; }
.xcard--b { left: 0; bottom: 2%; width: 53%; aspect-ratio: 4 / 3; z-index: 3; }
.xcard--b figcaption { left: .9rem; }
.xmask { position: relative; }

/* floating stat pills */
.xpill {
  position: absolute; z-index: 5; display: grid; gap: .12rem;
  padding: .8rem 1.05rem; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(18, 18, 18, .05), 0 18px 40px rgba(60, 44, 160, .12);
  will-change: transform;
}
.xpill strong { font-size: 1.02rem; letter-spacing: -0.03em; line-height: 1.15; }
.xpill span { font-size: .74rem; color: var(--ink-50); letter-spacing: -0.005em; }
.xpill--rating { left: -2%; top: 9%; display: flex; align-items: center; gap: .7rem; }
.xpill--rating .score { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.xpill--rating .stars { display: flex; gap: .1rem; color: var(--amber); }
.xpill--rating .stars svg { width: 11px; height: 11px; }
.xpill--batch { right: 1%; bottom: 1%; }
.xpill--batch .row { display: flex; align-items: center; gap: .45rem; }

.xshape {
  position: absolute; z-index: 0; pointer-events: none;
  will-change: transform; user-select: none; opacity: .9;
}
.xshape--1 { width: clamp(60px, 6vw, 88px); right: -4%; top: -6%; }

/* --- stat strip --- */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: start; gap: 1.4rem clamp(1.8rem, 3.2vw, 3rem);
  margin-top: clamp(2.2rem, 3.6vw, 3rem); padding-top: 1.9rem;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: grid; gap: .3rem; }
.hero-stats .bar {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: var(--violet); transform-origin: 0 50%; margin-bottom: .45rem;
}
.hero-stats strong {
  font-size: clamp(1.75rem, 2.9vw, 2.4rem); letter-spacing: -0.05em;
  line-height: 1; font-weight: 700;
}
.hero-stats strong i { font-style: normal; color: var(--violet); }
/* Child combinator: `.hero-stats span` would also hit the counter inside <strong>. */
.hero-stats div > span {
  font-size: .8rem; color: var(--ink-50); letter-spacing: -0.005em;
  line-height: 1.3; max-width: 12ch;
}

.hero-grid {
  position: relative; display: grid; gap: clamp(2.2rem, 4vw, 3.4rem);
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .5rem .45rem .8rem; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); font-size: .82rem; font-weight: 600;
}
.hero-badge b { font-weight: 700; }
.hero-badge .tag {
  background: var(--ink); color: #fff; border-radius: var(--r-pill);
  padding: .18rem .6rem; font-size: .72rem; letter-spacing: .02em;
}
.hero h1 { margin-block: 1.35rem 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; align-items: center; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; margin-top: 2.6rem;
  padding-top: 1.7rem; border-top: 1px solid var(--line);
}
.hero-meta div { display: grid; gap: .1rem; }
.hero-meta strong { font-size: clamp(1.5rem, 2.5vw, 2.05rem); letter-spacing: -0.04em; line-height: 1; }
.hero-meta span { font-size: .8rem; color: var(--ink-50); letter-spacing: -0.005em; }

.hero-art { position: relative; }
.hero-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); background: var(--soft);
  box-shadow: var(--shadow-lg); aspect-ratio: 5 / 6;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
  position: absolute; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  padding: .8rem 1rem; display: grid; gap: .15rem; z-index: 3;
  will-change: transform;
}
.hero-float strong { font-size: 1.1rem; letter-spacing: -0.03em; line-height: 1; }
.hero-float span { font-size: .73rem; color: var(--ink-50); }
.hero-float--a { left: -6%; top: 14%; }
.hero-float--b { right: -5%; bottom: 20%; }
.hero-float--c { left: 4%; bottom: -3%; display: flex; align-items: center; gap: .6rem; }
.hero-float--c img { width: 34px; height: 34px; border-radius: 50%; }
.hero-shape {
  position: absolute; z-index: 0; pointer-events: none; opacity: .9;
  will-change: transform;
}
.hero-shape--1 { width: clamp(90px, 11vw, 160px); right: 2%; top: -4%; }
.hero-shape--2 { width: clamp(70px, 8vw, 120px); left: -6%; bottom: 12%; }
.scroll-cue {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: 2.2rem;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-30); font-weight: 600;
}
.scroll-cue i {
  width: 22px; height: 34px; border: 1.5px solid var(--line); border-radius: var(--r-pill);
  position: relative; flex: none;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px;
  border-radius: 2px; background: var(--violet); translate: -50% 0;
  animation: cue 1.9s var(--ease) infinite;
}
@keyframes cue { 0%,100% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 75% { opacity: 0; transform: translateY(11px); } }

/* ==========================================================================
   TECH STRIP
   Two counter-scrolling rows of tool chips. Same .marquee/.marquee-track
   hooks the animation engine already knows, restyled as cards.
   ========================================================================== */
.strip {
  position: relative; overflow: hidden;
  background: var(--soft); border-block: 1px solid var(--line);
  padding-block: clamp(2.2rem, 4vw, 3.4rem);
}
.strip--ink { background: var(--ink); border-color: rgba(255, 255, 255, .1); }
.strip-head {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-bottom: clamp(1.5rem, 2.6vw, 2.2rem); text-align: center;
}
.strip-head .rule { flex: 1; max-width: 130px; height: 1px; background: var(--line); }
.strip--ink .strip-head .rule { background: rgba(255, 255, 255, .16); }
.strip-head p {
  font-size: .76rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-50); white-space: nowrap;
}
.strip--ink .strip-head p { color: rgba(255, 255, 255, .6); }
.strip-rows { display: grid; gap: clamp(.55rem, 1.1vw, .85rem); }

.marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track > span {
  display: flex; align-items: center;
  gap: clamp(.55rem, 1.1vw, .85rem); padding-right: clamp(.55rem, 1.1vw, .85rem);
}

.tchip {
  display: inline-flex; align-items: center; gap: .6rem; flex: none;
  padding: .55rem 1.1rem .55rem .55rem; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--line);
  font-size: clamp(.88rem, 1.1vw, .98rem); font-weight: 600;
  letter-spacing: -0.018em; white-space: nowrap; color: var(--ink);
  box-shadow: 0 1px 2px rgba(18, 18, 18, .04);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
a.tchip:hover {
  transform: translateY(-3px); border-color: var(--violet);
  box-shadow: 0 10px 26px rgba(60, 44, 160, .16);
}
.tchip i {
  width: 30px; height: 30px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-style: normal;
  font-size: .68rem; font-weight: 700; letter-spacing: -0.02em;
  background: var(--violet-050); color: var(--violet-700);
}
.tchip.t-amber i { background: #fff3d6; color: #8a6200; }
.tchip.t-red   i { background: #ffe8e8; color: #c00; }
.tchip.t-ink   i { background: #ecedf2; color: #3f4452; }
.tchip.t-green i { background: #e3f7ec; color: #12794a; }

.strip--ink .tchip {
  background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .13);
  color: #fff; box-shadow: none;
}
.strip--ink a.tchip:hover { border-color: var(--violet); background: rgba(121, 99, 255, .18); }
.strip--ink .tchip i { background: rgba(255, 255, 255, .1); color: #cfc6ff; }

/* ---------- Answer card (AEO/GEO) ---------- */
.answer {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(1.6rem, 3.4vw, 3.4rem); align-items: start;
}
.answer-body p + p { margin-top: 1rem; }
.answer-key {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.2rem, 2.2vw, 1.8rem); box-shadow: var(--shadow-sm);
}
.answer-key h3 { font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-50); margin-bottom: 1rem; }
.answer-key dl { display: grid; gap: .1rem; }
.answer-key div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .72rem 0; border-bottom: 1px dashed var(--line);
}
.answer-key div:last-child { border-bottom: 0; }
.answer-key dt { color: var(--ink-50); font-size: .87rem; }
.answer-key dd { font-weight: 600; font-size: .9rem; text-align: right; letter-spacing: -0.01em; }

/* ==========================================================================
   DEFINITION PANEL  —  the "What is FMETP?" answer block
   One dark object rather than three stacked boxes: the institute set out
   like a dictionary entry, the founder alongside it, and the hard facts on
   a hairline rail across the foot. Half the height of a stacked layout and
   it keeps every fact an answer engine wants to quote.
   ========================================================================== */
.defcard {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: #fff; border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, .68fr);
  grid-template-areas: "main side" "rail rail";
  box-shadow: var(--shadow-lg);
  --defpad: clamp(1.7rem, 3.2vw, 3rem);
}
.defcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(680px 400px at 88% -6%, rgba(121, 99, 255, .5), transparent 62%),
    radial-gradient(520px 320px at 2% 108%, rgba(240, 0, 0, .22), transparent 64%);
}

.defcard-main { grid-area: main; padding: var(--defpad); display: grid; gap: 1.35rem; align-content: start; }
.defcard-side {
  grid-area: side; padding: var(--defpad);
  border-left: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-direction: column; gap: 1.15rem;
}

/* the headword */
.defterm {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .75rem;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 700;
  letter-spacing: -0.055em; line-height: 1;
}
.defterm span {
  font-size: clamp(.82rem, 1.15vw, 1.02rem); font-weight: 500;
  font-style: italic; letter-spacing: -0.01em; color: #b7a8ff;
}

/* numbered senses */
.deflist { display: grid; gap: 1.05rem; }
.deflist li { display: flex; gap: .95rem; align-items: flex-start; }
.deflist .n {
  flex: none; width: 25px; height: 25px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28); display: grid; place-items: center;
  font-size: .7rem; font-weight: 700; color: #cfc6ff; margin-top: .18rem;
}
.deflist p {
  color: rgba(255, 255, 255, .74); font-size: 1.01rem;
  line-height: 1.6; letter-spacing: -0.012em;
}
.deflist strong { color: #fff; font-weight: 700; }

.defcard .chip {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .84);
}
.defcard .chip:hover { background: var(--violet); border-color: var(--violet); color: #fff; }

/* founder */
.defquote {
  flex: 1; font-size: clamp(.98rem, 1.32vw, 1.14rem); line-height: 1.56;
  font-style: italic; letter-spacing: -0.022em; color: rgba(255, 255, 255, .9);
}
.defmark { font-size: 3.4rem; line-height: .45; font-weight: 700; color: var(--violet); flex: none; }
.defby { display: flex; align-items: center; gap: .85rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.defby img {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  object-fit: cover; object-position: top center;
  border: 2px solid rgba(121, 99, 255, .55); box-shadow: 0 0 0 4px rgba(121, 99, 255, .12);
}
.defby b { display: block; font-size: .97rem; letter-spacing: -0.02em; }
.defby span { font-size: .76rem; color: rgba(255, 255, 255, .6); line-height: 1.35; }

/* hard facts rail */
.defrail {
  grid-area: rail; margin: 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
}
.defrail > div {
  padding: clamp(1rem, 1.7vw, 1.3rem) clamp(.85rem, 1.4vw, 1.2rem);
  border-left: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .35s var(--ease);
}
.defrail > div:hover { background: rgba(255, 255, 255, .05); }
.defrail > div:first-child { border-left: 0; padding-left: var(--defpad); }
.defrail > div:last-child { padding-right: var(--defpad); }
.defrail dt {
  font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45); font-weight: 700;
}
.defrail dd {
  margin: .35rem 0 0; font-size: .95rem; font-weight: 600; letter-spacing: -0.022em;
  line-height: 1.25;
}
.defrail dd small { display: block; font-size: .72rem; font-weight: 500; color: rgba(255, 255, 255, .5); margin-top: .15rem; }

/* ---------- Answer block: founder quote card + fact tiles ---------- */
/* Card and facts sit side by side rather than stacked, which halves the
   height of the block without dropping any of the answer content. */
.answer-duo {
  display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch;
}
.answer-duo .factgrid { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.answer-duo .fact { padding: clamp(.9rem, 1.5vw, 1.2rem); gap: .25rem; }
.answer-duo .fact dd { font-size: .98rem; }
.answer-duo .fact dd small { font-size: .74rem; margin-top: .1rem; }

.answer--lede { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: stretch; }
.answer--lede .lead-xl {
  font-size: clamp(1.12rem, 1.55vw, 1.4rem); line-height: 1.6;
  letter-spacing: -0.014em; color: var(--ink-70); max-width: 54ch;
}
.answer--lede .lead-xl strong { color: var(--ink); font-weight: 700; }

.quotecard {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: #fff; border-radius: var(--r-xl);
  padding: clamp(1.7rem, 3vw, 2.6rem);
  /* Flex + space-between, so a card taller than its content distributes the
     slack between the mark, the quote and the byline instead of pooling it
     all as dead space at the bottom. */
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(1.3rem, 2.4vw, 1.9rem);
}
.quotecard::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 320px at 92% 4%, rgba(121, 99, 255, .55), transparent 62%),
    radial-gradient(420px 260px at 4% 100%, rgba(240, 0, 0, .26), transparent 64%);
}
.quotecard .mark {
  font-size: 4.2rem; line-height: .5; font-weight: 700;
  color: var(--violet); letter-spacing: -0.06em; flex: none;
}
.quotecard blockquote {
  font-size: clamp(1.12rem, 1.62vw, 1.42rem); line-height: 1.5;
  letter-spacing: -0.025em; font-style: italic;
}
.qmeta { display: flex; flex-wrap: wrap; gap: .45rem; }
.qmeta span {
  font-size: .73rem; font-weight: 600; letter-spacing: -0.005em;
  padding: .32rem .7rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .8);
}
.quotecard figcaption {
  display: flex; align-items: center; gap: .95rem; flex: none;
  padding-top: 1.35rem; border-top: 1px solid rgba(255, 255, 255, .16);
}
.quotecard figcaption img {
  width: 60px; height: 60px; border-radius: 50%; flex: none;
  object-fit: cover; object-position: top center;
  border: 2px solid rgba(121, 99, 255, .55);
  box-shadow: 0 0 0 4px rgba(121, 99, 255, .12);
}
.quotecard figcaption b { display: block; font-size: 1.02rem; letter-spacing: -0.02em; }
.quotecard figcaption span { font-size: .79rem; color: rgba(255, 255, 255, .62); line-height: 1.38; }

.factgrid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  margin-top: clamp(2rem, 3.6vw, 3rem);
}
.fact {
  position: relative; overflow: hidden;
  background: var(--paper); padding: clamp(1.05rem, 1.9vw, 1.5rem);
  display: grid; gap: .4rem; align-content: start;
  transition: background-color .35s var(--ease);
}
.fact::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--amber));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease);
}
.fact:hover { background: var(--violet-050); }
.fact:hover::before { transform: scaleX(1); }
.fact dt {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-30); font-weight: 700;
}
.fact dd {
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.028em;
  line-height: 1.25; margin: 0;
}
.fact dd small {
  display: block; font-size: .8rem; font-weight: 500;
  color: var(--ink-50); letter-spacing: -0.005em; margin-top: .15rem;
}

/* ---------- Stats ----------
   NB: child combinators throughout. `.stat span` would also match the counter
   span nested inside <b> and shrink the number to label size. */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden;
}
.stat {
  position: relative; background: var(--paper);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  display: grid; gap: .55rem; align-content: start;
  transition: background-color .4s var(--ease);
}
.stat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--amber));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .55s var(--ease);
}
.stat:hover { background: var(--violet-050); }
.stat:hover::before { transform: scaleX(1); }
.stat > b {
  display: block; font-weight: 700; line-height: .95;
  font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.stat > b .suf { color: var(--violet); }
.stat > span {
  display: block; font-size: .95rem; color: var(--ink);
  font-weight: 600; letter-spacing: -0.018em; line-height: 1.35; max-width: 20ch;
}
.stat > small {
  font-size: .78rem; color: var(--ink-50); line-height: 1.4;
  max-width: 24ch; letter-spacing: -0.005em;
}

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.8vw, 1.6rem); }
.course {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  will-change: transform;
}
.course:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--violet-100); }
.course-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.course-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.course:hover .course-media img { transform: scale(1.06); }
.course-media .chip { position: absolute; left: .85rem; top: .85rem; box-shadow: var(--shadow-sm); }
.course-body { padding: clamp(1.15rem, 2vw, 1.55rem); display: grid; gap: .7rem; flex: 1; align-content: start; }
.course-body h3 { font-size: 1.3rem; letter-spacing: -0.03em; }
.course-body p { font-size: .92rem; color: var(--ink-50); line-height: 1.58; }
.course-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .1rem; }
.course-tags li {
  font-size: .72rem; font-weight: 600; padding: .28rem .6rem; border-radius: var(--r-pill);
  background: var(--soft); color: var(--ink-70); border: 1px solid var(--line-2);
}
.course-foot {
  margin-top: auto; padding: 0 clamp(1.15rem, 2vw, 1.55rem) clamp(1.15rem, 2vw, 1.55rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.course-foot .price { font-size: .84rem; color: var(--ink-50); }
.course-foot .price b { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
.course::after {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--amber));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--ease); z-index: 2;
}
.course:hover::after { transform: scaleX(1); }

/* ---------- Horizontal pinned rail ---------- */
.rail-outer { overflow: hidden; padding-block: clamp(2.2rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3.5rem); }
.rail { display: flex; gap: clamp(1rem, 2vw, 1.8rem); align-items: stretch; padding-left: var(--gutter); will-change: transform; }
.rail-card {
  flex: none; width: min(430px, 78vw); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.5rem, 2.6vw, 2.4rem); display: grid; gap: 1rem; align-content: start;
  position: relative; overflow: hidden;
}
.rail-card .num {
  font-size: clamp(3rem, 6vw, 5rem); font-weight: 700; line-height: .8;
  letter-spacing: -0.06em; color: var(--violet-100);
}
.rail-card h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.rail-card p { color: var(--ink-50); font-size: .96rem; }
.rail-card ul { display: grid; gap: .45rem; margin-top: .2rem; }
.rail-card li { position: relative; padding-left: 1.35rem; font-size: .9rem; color: var(--ink-70); }
.rail-card li::before {
  content: ""; position: absolute; left: 0; top: .58em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--violet);
}
.rail-card--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail-card--dark .num { color: rgba(255,255,255,.16); }
.rail-card--dark p, .rail-card--dark li { color: rgba(255,255,255,.72); }
.rail-progress { height: 3px; background: var(--line); border-radius: 3px; margin: 2.2rem var(--gutter) 0; overflow: hidden; }
.rail-progress i { display: block; height: 100%; width: 100%; background: var(--violet); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Sticky feature ---------- */
.sticky-wrap { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.sticky-media { position: sticky; top: 110px; }
.sticky-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4 / 5; background: var(--soft);
}
.sticky-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s var(--ease);
}
.sticky-frame img.is-active { opacity: 1; }
.sticky-steps { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.sticky-step {
  padding: clamp(1.4rem, 2.6vw, 2.2rem); border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--paper);
  transition: border-color .4s, background-color .4s, transform .4s var(--ease);
}
.sticky-step.is-active { border-color: var(--violet); background: var(--violet-050); }
.sticky-step h3 { font-size: clamp(1.2rem, 1.9vw, 1.55rem); display: flex; gap: .8rem; align-items: baseline; }
.sticky-step h3 i {
  font-style: normal; font-size: .8rem; font-weight: 700; color: var(--violet);
  letter-spacing: .1em; flex: none;
}
.sticky-step p { color: var(--ink-50); font-size: .95rem; margin-top: .7rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.7rem, 1.4vw, 1.2rem); }
.gal-col { display: grid; gap: clamp(.7rem, 1.4vw, 1.2rem); will-change: transform; }
.gal-item {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--soft); position: relative;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal-item:hover img { transform: scale(1.05); }
.gal-item figcaption {
  position: absolute; left: .7rem; bottom: .7rem; background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px); border-radius: var(--r-pill); padding: .3rem .75rem;
  font-size: .74rem; font-weight: 600; letter-spacing: -0.01em;
}

/* ---------- Reasons / why ---------- */
.reason-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.reason { background: var(--paper); padding: clamp(1.5rem, 2.6vw, 2.3rem); display: grid; gap: .65rem; align-content: start; transition: background-color .4s; }
.reason:hover { background: var(--violet-050); }
.reason .ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--violet-050); color: var(--violet-700); margin-bottom: .35rem;
}
.reason .ico svg { width: 21px; height: 21px; }
.reason h3 { font-size: 1.12rem; letter-spacing: -0.025em; }
.reason p { font-size: .91rem; color: var(--ink-50); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.9rem, 1.8vw, 1.5rem); }
.member { position: relative; }
.member-photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--soft-2); border: 1px solid var(--line);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ease); }
.member:hover .member-photo img { transform: scale(1.05); }
.member-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(to top, rgba(18,18,18,.62), transparent);
  opacity: 0; transition: opacity .45s;
}
.member:hover .member-photo::after { opacity: 1; }
.member-photo--initials {
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(160deg, var(--violet-050), var(--soft-2));
}
.member-photo--initials span {
  font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.05em;
  color: var(--violet); line-height: 1; transition: transform .6s var(--ease);
}
.member-photo--initials::before {
  content: ""; position: absolute; inset: auto -18% -34% auto;
  width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(121, 99, 255, .12);
}
.member:hover .member-photo--initials span { transform: scale(1.08); }
.member-info { padding-top: .9rem; display: grid; gap: .1rem; }
.member-info b { font-size: 1.02rem; letter-spacing: -0.02em; }
.member-info span { font-size: .82rem; color: var(--ink-50); }

/* ---------- Testimonials ---------- */
.tst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.8vw, 1.5rem); }
.tst {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem); display: grid; gap: 1.1rem; align-content: start;
}
.tst .stars { display: flex; gap: .18rem; color: var(--amber); }
.tst .stars svg { width: 16px; height: 16px; }
.tst blockquote { font-size: 1.03rem; line-height: 1.6; letter-spacing: -0.015em; }
.tst figcaption { display: flex; align-items: center; gap: .7rem; }
.tst figcaption img, .tst .ava {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--violet-050); color: var(--violet-700);
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.tst figcaption b { display: block; font-size: .93rem; letter-spacing: -0.01em; }
.tst figcaption span { font-size: .78rem; color: var(--ink-50); }
.rating-band {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); flex-wrap: wrap;
  padding: clamp(1.2rem, 2.4vw, 1.9rem); border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--paper); margin-bottom: clamp(1.4rem, 2.6vw, 2.2rem);
}
.rating-band .score { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.plan {
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 2.8vw, 2.4rem);
  background: var(--paper); display: grid; gap: 1.05rem; align-content: start; position: relative;
}
.plan--feature { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan--feature p, .plan--feature li { color: rgba(255,255,255,.72); }
.plan .amt { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.plan .amt small { font-size: .95rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-50); }
.plan--feature .amt small { color: rgba(255,255,255,.6); }
.plan ul { display: grid; gap: .5rem; }
.plan li { font-size: .92rem; color: var(--ink-70); padding-left: 1.5rem; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 13px; height: 13px;
  border-radius: 50%; background: var(--violet-050);
  box-shadow: inset 0 0 0 1.5px var(--violet);
}
.plan--feature li::before { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px var(--amber); }

/* ---------- FAQ ---------- */
.faq-split {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.6rem, 4vw, 4rem); align-items: start;
}
.faq-split > .stack-lg { position: sticky; top: 118px; }
.faq { display: grid; gap: .55rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper);
  transition: border-color .3s, background-color .3s;
}
.faq details[open] { border-color: var(--violet-100); background: var(--violet-050); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.35rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  font-weight: 600; font-size: 1.02rem; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; flex: none; position: relative; background: var(--paper);
  transition: transform .4s var(--ease), background-color .3s;
}
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; background: var(--ink); border-radius: 2px;
  transition: opacity .3s, background-color .3s;
}
.faq summary i::before { width: 11px; height: 1.7px; }
.faq summary i::after { width: 1.7px; height: 11px; }
.faq details[open] summary i { transform: rotate(180deg); background: var(--violet); border-color: var(--violet); }
.faq details[open] summary i::before { background: #fff; }
.faq details[open] summary i::after { opacity: 0; }
.faq .ans { padding: 0 1.35rem 1.3rem; color: var(--ink-70); font-size: .96rem; max-width: 74ch; }
.faq .ans p + p { margin-top: .7rem; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--ink); color: #fff; padding: clamp(2.4rem, 5.5vw, 4.6rem);
  display: grid; gap: 1.4rem; justify-items: start;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(620px 340px at 88% 10%, rgba(121,99,255,.5), transparent 60%),
    radial-gradient(520px 300px at 6% 96%, rgba(240,0,0,.28), transparent 62%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta p { color: rgba(255,255,255,.74); }
.cta .btn--ghost { --fg: #fff; --bd: rgba(255,255,255,.3); }
.cta-shape { position: absolute; right: -4%; bottom: -18%; width: clamp(150px, 22vw, 320px); opacity: .3; will-change: transform; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(1.6rem, 3vw, 3rem); }
.site-footer h4 { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 1.1rem; font-weight: 700; }
.site-footer ul { display: grid; gap: .6rem; }
.site-footer a { color: rgba(255,255,255,.72); font-size: .93rem; transition: color .25s, translate .25s var(--ease); display: inline-block; }
.site-footer a:hover { color: #fff; translate: 4px 0; }
.footer-brand img { width: 168px; height: 32px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,.62); font-size: .93rem; margin-top: 1.1rem; max-width: 34ch; }
.socials { display: flex; gap: .5rem; margin-top: 1.4rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center; transition: background-color .3s, border-color .3s, translate .3s;
}
.socials a:hover { background: var(--violet); border-color: var(--violet); translate: 0 -3px; }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  margin-top: clamp(2.4rem, 4vw, 3.6rem); padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  color: rgba(255,255,255,.55); font-size: .85rem;
}
.footer-bottom nav { display: flex; gap: 1.4rem; }

.float-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.34);
  transition: transform .35s var(--ease);
}
.float-wa:hover { transform: scale(1.08) rotate(6deg); }
.float-wa svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- Page hero (inner pages) ----------
   Ambient layer is injected by app.js into every .phero, so all 16 inner
   pages pick it up without duplicating decorative markup 16 times. */
.phero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(3.2rem, 6.2vw, 5.8rem) clamp(2.4rem, 4.6vw, 4rem);
}
.phero-fx { position: absolute; inset: -20% -10% auto -10%; height: 170%; z-index: -1; pointer-events: none; }
.phero-fx span { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.phero-fx .b1 {
  width: 42vw; height: 42vw; left: -10%; top: -26%;
  background: radial-gradient(circle at 45% 45%, rgba(121, 99, 255, .22), rgba(121, 99, 255, 0) 64%);
}
.phero-fx .b2 {
  width: 34vw; height: 34vw; right: -8%; top: -18%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 188, 0, .17), rgba(255, 188, 0, 0) 62%);
}
.phero-fx .b3 {
  width: 26vw; height: 26vw; left: 46%; bottom: 4%;
  background: radial-gradient(circle at 50% 50%, rgba(240, 0, 0, .08), rgba(240, 0, 0, 0) 64%);
}
.phero-fx .dots {
  inset: 0; width: auto; height: auto; border-radius: 0;
  background-image: radial-gradient(circle, rgba(18, 18, 18, .13) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(58% 62% at 28% 34%, #000 0%, transparent 74%);
  mask-image: radial-gradient(58% 62% at 28% 34%, #000 0%, transparent 74%);
  opacity: .34;
}
.phero > * { position: relative; }
.phero h1 { letter-spacing: -0.042em; }

/* Courses index hero: three course graphics fanned on a diagonal. */
.phero--index .hero-media { aspect-ratio: 1 / .9; }
.phero--index .xcard--a { right: 0; top: 0; width: 63%; aspect-ratio: 4 / 3; z-index: 2; }
/* bottom:auto is required — the base .xcard--b sets bottom, and top+bottom
   together would override aspect-ratio and stretch the card. */
.phero--index .xcard--b { left: 0; top: 26%; bottom: auto; width: 47%; aspect-ratio: 4 / 3; z-index: 3; }
.phero--index .xcard--c { right: 7%; bottom: 0; width: 42%; aspect-ratio: 4 / 3; z-index: 1; }
.phero--index .xpill--rating { left: -3%; top: 1%; }
.phero--index .xpill--batch { left: 0; right: auto; bottom: 2%; }
.phero--index .xshape--1 { width: clamp(50px, 5vw, 72px); left: 40%; bottom: -4%; right: auto; top: auto; }
.phero--index .hero-lay { align-items: center; gap: clamp(2rem, 4vw, 4rem); }

/* Course-page hero: same stage engine as the homepage, but the primary card
   is the landscape course graphic rather than a portrait photograph. */
.phero--course .hero-media { aspect-ratio: 1 / .84; }
.phero--course .xcard--a { right: 0; top: 0; width: 76%; aspect-ratio: 4 / 3; }
.phero--course .xcard--b { left: 0; bottom: 0; width: 50%; aspect-ratio: 4 / 3; }
.phero--course .xpill--rating { left: -2%; top: 4%; }
.phero--course .xpill--batch { right: 3%; bottom: -2%; }
.phero--course .xshape--1 { width: clamp(54px, 5.4vw, 78px); right: -3%; top: -8%; }
.phero--course .hero-lay { align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.phero--course .hero-actions { margin-top: 1.9rem; }

/* facts rail under an inner-page hero — same language as .defrail */
.phero-rail {
  margin: clamp(2rem, 3.6vw, 3rem) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.phero-rail > div {
  padding: clamp(1rem, 1.8vw, 1.4rem) clamp(.9rem, 1.6vw, 1.3rem);
  border-left: 1px solid var(--line);
  transition: background-color .35s var(--ease);
}
.phero-rail > div:hover { background: var(--violet-050); }
.phero-rail > div:first-child { border-left: 0; padding-left: 0; }
.phero-rail dt {
  font-size: .67rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-30); font-weight: 700;
}
.phero-rail dd {
  margin: .32rem 0 0; font-size: 1.02rem; font-weight: 600;
  letter-spacing: -0.026em; line-height: 1.25;
}
.phero-rail dd small {
  display: block; font-size: .75rem; font-weight: 500;
  color: var(--ink-50); letter-spacing: -0.005em; margin-top: .14rem;
}
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .82rem; color: var(--ink-50); margin-bottom: 1.3rem; }
.crumbs a { color: var(--ink-50); transition: color .25s; }
.crumbs a:hover { color: var(--violet-700); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }
.phero h1 { margin-bottom: 1.15rem; }

/* course detail */
.cdetail { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: clamp(1.8rem, 3.6vw, 3.4rem); align-items: start; }
.cbox {
  position: sticky; top: 104px; border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--paper); padding: clamp(1.4rem, 2.4vw, 1.9rem); display: grid; gap: 1rem;
  box-shadow: var(--shadow-md);
}
.cbox .amt { font-size: 2rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.cbox .amt small { font-size: .9rem; font-weight: 500; color: var(--ink-50); }
.cbox dl { display: grid; gap: .1rem; }
.cbox dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.cbox dl div:last-child { border-bottom: 0; }
.cbox dt { color: var(--ink-50); font-size: .86rem; }
.cbox dd { font-weight: 600; font-size: .88rem; text-align: right; }
.prose { display: grid; gap: 1.15rem; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-top: 1rem; }
.prose h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
.prose p { color: var(--ink-70); }
.prose ul { display: grid; gap: .55rem; }
.prose ul li { position: relative; padding-left: 1.5rem; color: var(--ink-70); }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--violet);
}
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.module {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.2rem;
  background: var(--paper); display: grid; gap: .3rem;
  transition: border-color .35s, transform .35s var(--ease), background-color .35s;
}
.module:hover { border-color: var(--violet); transform: translateY(-4px); background: var(--violet-050); }
.module i { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--violet); letter-spacing: .1em; }
.module b { font-size: 1rem; letter-spacing: -0.02em; }

/* ---------- Checklist (replaces plain bullet walls) ---------- */
.checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.prose .checklist li {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .85rem 1.05rem; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--paper);
  font-size: .93rem; color: var(--ink-70); line-height: 1.45;
  transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.prose .checklist li::before { content: none; }
.prose .checklist li:hover {
  border-color: var(--violet-100); background: var(--violet-050); transform: translateY(-2px);
}
.checklist svg { width: 17px; height: 17px; flex: none; color: var(--violet); margin-top: .16rem; }

/* ---------- Outcome cards ---------- */
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.prose .outcomes li {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1.05rem 1.2rem; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--paper);
  color: var(--ink-70); font-size: .93rem; line-height: 1.45;
  transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.prose .outcomes li::before { content: none; }
.prose .outcomes li:hover {
  border-color: var(--violet); background: var(--violet-050); transform: translateY(-3px);
}
.outcomes i {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--violet-050); color: var(--violet-700);
  display: grid; place-items: center; font-style: normal;
  font-size: .7rem; font-weight: 700; letter-spacing: -0.02em;
}

/* ---------- Goal → course picker ---------- */
.goalgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.goal {
  display: grid; gap: .45rem; align-content: start;
  padding: clamp(1.1rem, 2vw, 1.5rem); border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--paper);
  transition: border-color .35s, background-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.goal:hover {
  border-color: var(--violet); background: var(--violet-050);
  transform: translateY(-5px); box-shadow: var(--shadow-md);
}
.goal dt { font-size: .78rem; color: var(--ink-50); letter-spacing: -0.005em; }
.goal dd {
  margin: 0; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.03em;
  display: flex; align-items: center; gap: .4rem;
}
.goal dd svg { width: 14px; height: 14px; color: var(--violet); transition: transform .35s var(--ease); }
.goal:hover dd svg { transform: translateX(4px); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(1.8rem, 4vw, 3.6rem); align-items: start; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink-70); }
.field input, .field textarea, .field select {
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); font-size: .95rem; transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-050);
}
.field textarea { min-height: 130px; resize: vertical; }
.info-list { display: grid; gap: .9rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ico {
  width: 40px; height: 40px; border-radius: 12px; background: var(--violet-050);
  color: var(--violet-700); display: grid; place-items: center; flex: none;
}
.info-list .ico svg { width: 18px; height: 18px; }
.info-list b { display: block; font-size: .92rem; letter-spacing: -0.01em; }
.info-list span, .info-list a { font-size: .9rem; color: var(--ink-50); }

/* An element whose heading fields are all empty still emits its .sec-head
   wrapper, which would otherwise reserve its full height and margin and leave
   a tall blank band above the content. Collapse it when it holds no text. */
.sec-head:not(:has(p, h1, h2, h3, h4)) {
  display: none;
}

/* ---------- Animation base states ---------- */
.js [data-anim] { will-change: transform, opacity; }
.js [data-anim="fade"] { opacity: 0; }
.js [data-anim="up"] { opacity: 0; transform: translate3d(0, 34px, 0); }
.js [data-anim="scale"] { opacity: 0; transform: scale(.94); }
.js .word-inner { display: inline-block; transform: translate3d(0, 110%, 0); }

/* Hero intro — driven by a single timeline, so these start hidden */
.js [data-hero] { will-change: transform, opacity; }
.js [data-hero="up"] { opacity: 0; transform: translate3d(0, 24px, 0); }
.js [data-hero="pop"] { opacity: 0; transform: scale(.82); }
.js [data-hero="fade"] { opacity: 0; }
/* These classes only ever exist inside a hero stage, so they need no
   .hero prefix — which lets course-page heroes reuse the same engine. */
.js .xdeal { opacity: 0; }
.js .xshift { transform: translate3d(0, 101%, 0); }
.js .xcard img { transform: scale(1.24); }
.js .hero-stats .bar { transform: scaleX(0); }
.word-mask {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding-bottom: .12em; margin-bottom: -.12em;
}
.hero .word-mask { perspective: 620px; }
.reveal-img { overflow: hidden; }
.js .reveal-img > img { transform: scale(1.16); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero { min-height: 0; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.6rem, 6vw, 4rem); }
  .hero-lay { grid-template-columns: 1fr; gap: clamp(2.6rem, 6vw, 3.4rem); }
  .hero-media { max-width: 560px; margin-inline: auto; width: 100%; }
  .xpill--rating { left: 0; }
  .xpill--batch { right: 0; }
  .xshape--2 { left: -2%; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-shape--1, .hero-shape--2 { display: none; }
  .answer, .answer--lede, .answer-duo { grid-template-columns: 1fr; }
  .factgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .defcard { grid-template-columns: 1fr; grid-template-areas: "main" "side" "rail"; }
  .defcard-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .phero-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phero-rail > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .phero-rail > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .defrail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .defrail > div:nth-child(3n+1) { border-left: 0; padding-left: var(--defpad); }
  .defrail > div:nth-child(-n+3) { border-top: 0; }
  .defrail > div:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .course-grid, .reason-grid, .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goalgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tst-grid { grid-template-columns: 1fr; }
  .sticky-wrap { grid-template-columns: 1fr; }
  .sticky-media { position: relative; top: 0; max-width: 460px; }
  .cdetail { grid-template-columns: 1fr; }
  .cbox { position: relative; top: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav-list, .nav-cta .btn--ghost { display: none; }
  .burger { display: flex; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head--split { grid-template-columns: 1fr; align-items: start; }
  .faq-split { grid-template-columns: 1fr; }
  .faq-split > .stack-lg { position: static; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal-col { transform: none !important; }
}
@media (max-width: 700px) {
  .cols-2, .cols-3, .cols-4, .course-grid, .reason-grid, .team-grid, .price-grid,
  .module-grid, .checklist, .outcomes, .goalgrid, .factgrid {
    grid-template-columns: 1fr;
  }
  .defrail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .defrail > div { padding-left: var(--defpad); padding-right: var(--defpad); }
  /* Re-assert per-column borders: the tablet rule above uses nth-child(3n+1),
     which lands on the wrong cells once the rail drops to two columns. */
  .defrail > div:nth-child(odd) { border-left: 0; }
  .defrail > div:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .1); }
  .defrail > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .defterm { font-size: clamp(2.1rem, 9vw, 3rem); }

  /* Header: logo + Enroll + burger overran 375px viewports. */
  .brand img { width: 122px; height: 24px; }
  .nav { gap: .6rem; }
  .nav-cta .btn { padding: .78rem 1.1rem; font-size: .88rem; }
  .hero-float--a, .hero-float--b { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .rail-card { width: 84vw; }
  .hero-meta { gap: 1.2rem 1.8rem; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.4rem; }
  .hero-media { aspect-ratio: 1 / 1.12; }
  .xpill { padding: .6rem .8rem; }
  .xpill strong { font-size: 1rem; }
  .xpill--rating .score { font-size: 1.25rem; }
  .xshape--1 { right: 8%; top: -3%; }
  .hero-fx .dots { background-size: 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-anim], .js .word-inner, .js .reveal-img > img,
  .js [data-hero], .js .xdeal, .js .xshift,
  .js .xcard img, .js .hero-stats .bar, .js .rot-char {
    opacity: 1 !important; transform: none !important;
  }
  .hero-fx .spot { display: none; }
}
