/* ==========================================================================
   WyPy Learning — design system
   ========================================================================== */

:root {
  --ink: #1d1b17;
  --ink-2: #26231e;
  --ink-3: #35312a;
  --paper: #fdfbf5;
  --paper-2: #f5f0e3;
  --line: #e9e2d0;
  --muted: #6b6a66;
  --muted-dark: #a3a29c;

  --yellow: #eebd3f;
  --yellow-deep: #c8971f;
  --yellow-soft: #fbf0cf;
  --gold-pastel: #f3d98f;

  --math: #eebd3f;
  --cs: #8fa3e3;
  --py: #78b89a;
  --logic: #ec9a7d;
  --discrete: #ad9bdc;
  --algebra: #79c3c5;
  --young: #eeb0c0;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow: 0 1px 0 rgba(29, 27, 23, .04), 0 12px 32px -12px rgba(29, 27, 23, .18);
  --shadow-pop: 0 4px 0 var(--ink);
  --wrap: 1440px;
  --gutter: clamp(20px, 7vw, 112px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}
.display { font-size: clamp(44px, 7.4vw, 104px); font-weight: 750; letter-spacing: -0.045em; line-height: .95; }
.h2 { font-size: clamp(34px, 4.8vw, 64px); }
.h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--yellow); transform: rotate(45deg); }
.mark { background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 92%, transparent 92%); padding: 0 .08em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-deep); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--yellow-deep); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--yellow-deep); }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 #000; }
.btn-dark:hover { transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.on-light .btn-ghost:hover { background: rgba(29, 27, 23, .05); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(29, 27, 23, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: var(--paper);
}
.nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; gap: 24px; }
.nav-cta { justify-self: end; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; }
.brand span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-dark); padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .18);
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links { gap: 36px; }
.nav-links a { position: relative; padding: 6px 0; font-size: 15px; font-weight: 500; color: #bdb6a6; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--yellow); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { height: 42px; padding: 0 20px; font-size: 15px; }
.nav-btn { box-shadow: none; }
.nav-btn:hover { transform: none; box-shadow: none; background: #f3c95a; }
@media (max-width: 520px) { .nav-btn { display: none; } }
.nav-login { font-size: 15px; font-weight: 500; color: #d9d8d2; padding: 8px 12px; }
.nav-login:hover { color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--ease);
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.nav.open .menu-btn span { background: transparent; }
.nav.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Dark hero ---------- */
.dark { background: var(--ink); color: var(--paper); }
.dark .lead { color: var(--muted-dark); }
.dark .eyebrow { color: var(--muted-dark); }

.hero { position: relative; overflow: hidden; padding: 104px 0 112px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 70% at 78% 45%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 78% 45%, #000 20%, transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 88px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: .98; margin: 26px 0 0; }
.hero h1 .serif { color: var(--yellow); }
.hero .lead { margin: 28px 0 40px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px;
  padding-bottom: 3px; border-bottom: 1.5px solid rgba(238, 189, 63, .55); transition: border-color .2s, color .2s;
}
.text-link::after { content: "→"; transition: transform .2s var(--ease); }
.text-link:hover { border-color: var(--yellow); }
.text-link:hover::after { transform: translateX(3px); }

/* Puzzle card (hero interactive) */
.puzzle {
  margin: 0; position: relative; background: var(--paper); color: var(--ink);
  border-radius: var(--radius-l); padding: 28px 28px 24px; max-width: 460px; justify-self: end; width: 100%;
  box-shadow: 10px 10px 0 rgba(238, 189, 63, .85), 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.puzzle-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.puzzle-step { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.puzzle-step b { color: var(--ink); font-weight: 500; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: var(--paper-2); color: var(--ink);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--yellow)); }
.puzzle h3 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 22px; }
.puzzle p { margin: 0; color: var(--muted); font-size: 15px; }
.squares { display: grid; gap: 3px; aspect-ratio: 1; width: 100%; max-width: 264px; margin: 0 auto 22px; transition: grid-template-columns .3s; }
.squares div { border-radius: 3px; animation: pop .45s var(--ease) both; }
.squares div.new { animation-name: pop-new; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes pop-new { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
.equation {
  font-family: var(--font-mono); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px;
  min-height: 30px; margin-bottom: 8px;
}
.equation .term { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 6px; border-radius: 6px; background: var(--t); color: var(--ink); }
.equation .term.new { color: var(--paper); }
.equation .op { color: var(--muted); }
.equation .total { font-weight: 500; }
.puzzle .puzzle-caption { text-align: center; font-size: 14px; min-height: 22px; margin-bottom: 18px; }
.range-wrap { padding: 14px 4px 0; border-top: 1px solid var(--line); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; background: var(--line); outline-offset: 8px; margin: 10px 0; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--ink); cursor: grab; transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); cursor: grab; }
.ticks { display: flex; justify-content: space-between; padding: 0 5px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* ---------- Home hero: showcase ---------- */
.hero-c { position: relative; overflow: hidden; background: #211e19; color: var(--paper); }
.hero-c::after { content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: 4%; border-radius: 50%; background: radial-gradient(circle, rgba(238, 189, 63, .14), transparent 62%); pointer-events: none; }
/* the hero runs wider than the page grid and sits further left, giving the course fan room */
.nav .wrap, .hero-c .wrap { max-width: 1640px; padding-left: max(clamp(20px, 4.5vw, 72px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(20px, 4.5vw, 72px), env(safe-area-inset-right, 0px)); }
.hero-c-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 88px); align-items: center; padding-block: clamp(64px, 9vw, 136px); }
.hero-c .eyebrow { color: var(--muted-dark); }
.hero-c h1 { font-size: clamp(54px, 8vw, 128px); font-weight: 780; letter-spacing: -0.055em; line-height: .9; margin: 28px 0 32px; }
.hero-c h1 em { font-style: normal; display: block; color: transparent; -webkit-text-stroke: 1.5px var(--yellow); }
.hero-c .lead { color: var(--muted-dark); max-width: 42ch; margin-bottom: 40px; }
.hero-subjects { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.hero-subjects span { font-size: 14px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); color: #ddd6c6; }
.fan { position: relative; height: clamp(420px, 40vw, 560px); }
.fan-card {
  position: absolute; top: 50%; left: 50%; width: clamp(230px, 21vw, 300px); background: var(--paper); color: var(--ink);
  border-radius: 24px; overflow: hidden; border: 1.5px solid var(--ink); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6);
  transition: transform .6s var(--ease);
}
.fan-card .art { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--c); border-bottom: 1.5px solid var(--ink); }
.fan-card .art svg { width: 58%; }
.fan-card .body { padding: 18px 20px 20px; }
.fan-card small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fan-card h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.15; margin: 6px 0 10px; }
.fan-card .meta { font-size: 13px; color: var(--muted); margin: 0; }
.fan-card:nth-child(1) { transform: translate(-50%, -50%) translate(-62%, 6%) rotate(-10deg); }
.fan-card:nth-child(2) { transform: translate(-50%, -50%) translate(0, -4%); z-index: 2; }
.fan-card:nth-child(3) { transform: translate(-50%, -50%) translate(62%, 8%) rotate(9deg); }
.fan:hover .fan-card:nth-child(1) { transform: translate(-50%, -50%) translate(-82%, 4%) rotate(-13deg); }
.fan:hover .fan-card:nth-child(2) { transform: translate(-50%, -50%) translate(0, -8%); }
.fan:hover .fan-card:nth-child(3) { transform: translate(-50%, -50%) translate(82%, 6%) rotate(12deg); }
.fan-card:hover { z-index: 3; }
@media (max-width: 900px) {
  .hero-c-grid { grid-template-columns: 1fr; }
  .fan { height: 440px; }
}
@media (max-width: 560px) {
  .fan-card { width: 200px; }
  .fan-card:nth-child(1), .fan:hover .fan-card:nth-child(1) { transform: translate(-50%, -50%) translate(-42%, 6%) rotate(-10deg); }
  .fan-card:nth-child(3), .fan:hover .fan-card:nth-child(3) { transform: translate(-50%, -50%) translate(42%, 8%) rotate(9deg); }
  .fan { height: 380px; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--gold-pastel); color: var(--ink); overflow: hidden; padding: 18px 0; border-block: 2px solid var(--ink); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee span::after { content: "✦"; font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head .h2 { margin-top: 16px; max-width: 16ch; }
.section-head .lead { max-width: 44ch; }
.alt { background: var(--paper-2); }

/* Method / pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 26px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.pillar:hover { transform: translateY(-6px); border-color: var(--ink); box-shadow: var(--shadow-pop); }
.pillar .num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.pillar svg { width: 64px; height: 64px; margin: 22px 0 26px; }
.pillar h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.pillar p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* Contrast strip */
.versus { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-l); overflow: hidden; border: 1.5px solid var(--ink); }
.versus > div { padding: 44px 40px; }
.versus h3 { font-size: 26px; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.versus ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.versus li { display: flex; gap: 14px; align-items: flex-start; font-size: 16.5px; }
.versus li::before { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.versus .old { background: #fff; color: var(--muted); }
.versus .old li { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.versus .old li::before { content: "✕"; background: var(--paper-2); color: var(--muted); }
.versus .new { background: var(--ink); color: var(--paper); }
.versus .new li::before { content: "✓"; background: var(--yellow); color: var(--ink); }

/* Try-it */
.tryit { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.tabs { display: grid; gap: 10px; }
.tab {
  text-align: left; padding: 18px 20px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff;
  display: flex; gap: 14px; align-items: center; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { border-color: var(--ink); box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.tab .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: var(--ink); font-family: var(--font-mono); font-weight: 700; font-size: 15px; }
.tab strong { display: block; font-size: 16px; font-weight: 650; }
.tab small { color: var(--muted); font-size: 13.5px; }
.panel { background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius-l); padding: 40px; box-shadow: 0 6px 0 var(--ink); }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.025em; margin: 14px 0 22px; max-width: 30ch; line-height: 1.15; }
.code {
  font-family: var(--font-mono); font-size: 14.5px; line-height: 1.75; background: var(--ink); color: #e9e7df;
  border-radius: 14px; padding: 20px 22px; margin: 0 0 24px; overflow-x: auto;
}
.code .k { color: #ff9d7a; } .code .f { color: var(--yellow); } .code .n { color: #8bd5ff; } .code .c { color: #77766f; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.opt {
  text-align: left; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 12px; transition: border-color .2s, background .2s, transform .15s;
}
.opt:hover:not([disabled]) { border-color: var(--ink); transform: translateY(-1px); }
.opt kbd { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--paper-2); font-family: var(--font-mono); font-size: 13px; flex: none; }
.opt.right { border-color: var(--py); background: #e7f2ec; }
.opt.right kbd { background: var(--py); color: var(--ink); }
.opt.wrong { border-color: var(--logic); background: #fbede7; }
.opt.wrong kbd { background: var(--logic); color: var(--ink); }
.opt[disabled] { cursor: default; }
.explain { margin-top: 22px; padding: 20px 22px; border-radius: 14px; background: var(--yellow-soft); border-left: 4px solid var(--yellow); font-size: 16px; display: none; }
.explain.show { display: block; animation: rise .45s var(--ease); }
.explain strong { display: block; margin-bottom: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Course cards ---------- */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-l);
  border: 1.5px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.course:hover { transform: translateY(-6px); border-color: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.course-art { position: relative; aspect-ratio: 16 / 10; background: var(--c); display: grid; place-items: center; overflow: hidden; }
.course-art svg { width: 62%; height: auto; transition: transform .6s var(--ease); }
.course:hover .course-art svg { transform: scale(1.06) rotate(-2deg); }
.course-art .tag {
  position: absolute; top: 16px; left: 16px; background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; letter-spacing: .02em;
}
.course-art .badge {
  position: absolute; top: 16px; right: 16px; background: var(--ink); color: var(--yellow);
  font-size: 11.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em;
}
.course-body { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.course-track { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.course h3 { font-size: 23px; letter-spacing: -0.025em; line-height: 1.15; margin: 8px 0 10px; }
.course p { margin: 0 0 20px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta svg { width: 15px; height: 15px; }
.course-link { position: absolute; inset: 0; z-index: 1; }
.level { display: inline-flex; gap: 3px; align-items: end; }
.level i { width: 4px; border-radius: 1px; background: var(--line); }
.level i:nth-child(1) { height: 7px; } .level i:nth-child(2) { height: 10px; } .level i:nth-child(3) { height: 13px; }
.level i.on { background: var(--ink); }

/* Foundations track: one line, seven stops */
.track { margin-top: clamp(72px, 8vw, 120px); padding-top: 40px; border-top: 1px solid var(--ink); }
.track-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: clamp(48px, 5vw, 72px); }
.track h3 { font-size: clamp(38px, 4.8vw, 68px); letter-spacing: -0.045em; line-height: .95; margin: 18px 0 0; }
.track h3 .serif { color: var(--yellow-deep); }
.track-intro { justify-self: end; max-width: 440px; }
.track-intro p { color: var(--muted); font-size: 17px; margin: 0 0 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1.5px solid var(--ink); padding-bottom: 4px; }
.link-arrow svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.track-route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.track-route::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1.5px; background: var(--ink); }
.track-route a { display: block; position: relative; padding: 48px 20px 8px 0; }
.track-route .node {
  position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink); display: grid; place-items: center;
  transition: transform .25s var(--ease), background .25s;
}
.track-route .node::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.track-route small { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.track-route strong { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.track-route a:hover .node { background: var(--c); transform: scale(1.18); }
.track-route a:hover strong { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
@media (max-width: 1080px) {
  .track-head { grid-template-columns: 1fr; gap: 24px; }
  .track-intro { justify-self: start; }
  .track-route { grid-template-columns: 1fr; }
  .track-route::before { left: 11px; right: auto; top: 12px; bottom: 12px; width: 1.5px; height: auto; }
  .track-route a { padding: 0 0 28px 48px; }
  .track-route li:last-child a { padding-bottom: 0; }
}

/* ---------- Path / roadmap ---------- */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: step; }
.path::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px); }
.step { position: relative; padding-right: 28px; }
.step-dot {
  width: 56px; height: 56px; border-radius: 16px; background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 750; font-size: 22px; position: relative; margin-bottom: 26px; box-shadow: 0 4px 0 var(--ink);
}
.step:nth-child(1) .step-dot { background: var(--yellow); }
.step h3 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { margin: 0; font-size: 15.5px; color: var(--muted); }
.step .courses-in { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.step .courses-in span { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }

/* ---------- Founder teaser ---------- */
.founder-teaser { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.portrait { position: relative; isolation: isolate; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-l); filter: grayscale(.15) contrast(1.03); }
.portrait::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--radius-l); background: var(--yellow); z-index: -1;
}
.portrait .sticker {
  position: absolute; left: -26px; bottom: 36px; background: var(--ink); color: var(--paper); border-radius: 16px; padding: 14px 18px;
  font-size: 13px; line-height: 1.35; box-shadow: var(--shadow); transform: rotate(-4deg);
}
.portrait .sticker strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--yellow); letter-spacing: -0.01em; }
.quote { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; margin: 22px 0 28px; }
.quote .serif { color: var(--yellow-deep); }
.sig { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.sig strong { display: block; font-size: 17px; }
.sig span { color: var(--muted); font-size: 14.5px; }
.sig::before { content: ""; width: 36px; height: 2px; background: var(--ink); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  font-family: var(--font-display); font-size: 21px; font-weight: 650; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center;
  font-family: var(--font-body); font-size: 20px; font-weight: 400; transition: transform .3s var(--ease), background .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.faq details p { margin: 0 0 24px; color: var(--muted); max-width: 62ch; }

/* ---------- Closing CTA (full-bleed, flows into the footer) ---------- */
.closing { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: clamp(96px, 11vw, 168px) 0 clamp(80px, 8vw, 120px); }
.closing::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 85% 40%, #000, transparent 75%);
}
.closing-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: end; }
.closing .eyebrow { color: var(--muted-dark); }
.closing h2 { font-size: clamp(46px, 6.6vw, 104px); font-weight: 780; letter-spacing: -0.05em; line-height: .92; margin: 26px 0 0; }
.closing h2 em { font-style: normal; display: block; color: transparent; -webkit-text-stroke: 1.5px var(--yellow); }
.closing-side > p { color: var(--muted-dark); font-size: 18px; max-width: 40ch; margin: 0 0 28px; }
.closing-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.waitlist { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); max-width: 520px; transition: border-color .2s; }
.waitlist:focus-within { border-color: var(--yellow); }
.waitlist input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--paper); font: inherit; font-size: 16px; padding: 0 18px; }
.waitlist input::placeholder { color: #8d8a82; }
.waitlist .btn { height: 48px; box-shadow: none; }
.waitlist .btn:hover { transform: none; box-shadow: none; background: #f3c95a; }
.waitlist-done { color: var(--yellow); font-size: 15px; margin: 14px 0 0; }
.closing-notes { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted-dark); }
.closing-notes li { display: inline-flex; align-items: center; gap: 8px; }
.closing-notes li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); }
main:has(> .closing:last-child) + .footer { margin-top: 0; }
main:has(> .closing:last-child) + .footer .footer-grid { padding-top: 64px; border-top: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 900px) { .closing-grid { grid-template-columns: 1fr; align-items: start; } }
@media (max-width: 520px) {
  .waitlist { flex-direction: column; border-radius: 20px; padding: 8px; }
  .waitlist input { height: 48px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-dark); padding: 80px 0 36px; margin-top: 120px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer img { height: 34px; width: auto; margin-bottom: 18px; }
.footer p { font-size: 15px; max-width: 34ch; margin: 0; }
.footer h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--paper); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.footer-word { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 17vw, 240px); letter-spacing: -0.06em; line-height: .8; color: rgba(255, 255, 255, .04); margin-top: 48px; white-space: nowrap; user-select: none; }

/* ---------- Courses page ---------- */
.page-hero { padding: 80px 0 72px; position: relative; overflow: hidden; }
.page-hero .display { font-size: clamp(42px, 6.4vw, 88px); max-width: 14ch; }
.page-hero .lead { margin-top: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 15px;
  transition: all .2s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.course.hide { display: none; }
.track-tile { grid-column: span 2; background: var(--ink); color: var(--paper); border-color: var(--ink); justify-content: center; }
.track-tile .course-body { padding: 48px; justify-content: center; }
.track-tile h3 { font-size: clamp(30px, 3.4vw, 46px); margin: 14px 0; }
.track-tile h3 .serif { color: var(--yellow); }
.track-tile p { color: var(--muted-dark); max-width: 48ch; font-size: 17px; margin-bottom: 28px; }
.track-tile .eyebrow { color: var(--muted-dark); }
.track-tile:hover { box-shadow: 0 8px 0 var(--yellow-deep); }
@media (max-width: 1080px) { .track-tile { grid-column: auto; } }
@media (max-width: 640px) { .track-tile .course-body { padding: 32px 22px; } }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.fact small { display: block; font-size: 12px; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.fact strong { font-size: 16px; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 40px; padding: 0; list-style: none; }
.outcomes li { display: flex; gap: 12px; font-size: 15.5px; align-items: flex-start; }
.outcomes li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--c, var(--yellow)); color: var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 2px; }
.syllabus { border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: #fff; }
.syllabus details + details { border-top: 1px solid var(--line); }
.syllabus summary {
  list-style: none; cursor: pointer; padding: 18px 22px; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px;
  font-weight: 650; font-size: 16.5px; transition: background .2s;
}
.syllabus summary::-webkit-details-marker { display: none; }
.syllabus summary:hover { background: var(--paper); }
.syllabus summary .mn { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.syllabus summary::after { content: "↓"; font-size: 15px; transition: transform .25s var(--ease); }
.syllabus details[open] summary::after { transform: rotate(180deg); }
.syllabus details p { margin: 0; padding: 0 22px 20px 86px; color: var(--muted); font-size: 15px; }
.projects { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.project { border-radius: 14px; padding: 16px 18px; background: var(--ink); color: var(--paper); }
.project small { font-family: var(--font-mono); font-size: 11.5px; color: var(--yellow); letter-spacing: .1em; text-transform: uppercase; }
.project strong { display: block; margin: 4px 0 4px; font-size: 16px; }
.project span { font-size: 13.5px; color: var(--muted-dark); line-height: 1.45; display: block; }

/* ---------- Course page ---------- */
.c-hero { padding: 56px 0 96px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted-dark); margin-bottom: 26px; }
.crumbs a:hover { color: var(--yellow); }
.crumbs span[aria-hidden] { opacity: .5; }
.c-hero-main { max-width: 680px; }
.c-hero h1 { font-size: clamp(38px, 5.4vw, 72px); letter-spacing: -0.04em; line-height: 1; margin: 18px 0 22px; }
.c-hero .lead { margin-bottom: 30px; }
.c-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.c-badges span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #dcd6c8; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); }
.c-badges svg { width: 15px; height: 15px; }
.c-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.c-main { padding: 72px 0 0; display: grid; gap: 72px; min-width: 0; }
.c-main h2 { font-size: clamp(28px, 3vw, 40px); margin: 12px 0 26px; }
.c-card {
  position: sticky; top: 96px; margin-top: -300px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius-l);
  overflow: hidden; box-shadow: 0 6px 0 var(--ink); z-index: 2;
}
.c-card .detail-art { margin: 0; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; box-shadow: none; aspect-ratio: 4 / 3; }
.c-card-body { padding: 24px; display: grid; gap: 18px; }
.c-card .btn { width: 100%; }
.c-card small.note { color: var(--muted); font-size: 13.5px; text-align: center; }
.detail-art { border-radius: var(--radius-l); background: var(--c); display: grid; place-items: center; }
.detail-art svg { width: 58%; }
.c-method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.c-method article { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; }
.c-method svg { width: 40px; height: 40px; margin-bottom: 16px; }
.c-method h3 { font-size: 18px; letter-spacing: -0.015em; margin-bottom: 6px; }
.c-method p { margin: 0; font-size: 15px; color: var(--muted); }
.c-who { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.c-who div { border-radius: var(--radius); padding: 24px; background: var(--paper-2); }
.c-who h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.015em; }
.c-who p { margin: 0; color: var(--muted); font-size: 15.5px; }
.syllabus-meta { font-size: 14.5px; color: var(--muted); margin: -14px 0 18px; }
@media (max-width: 1000px) {
  .c-layout { grid-template-columns: 1fr; gap: 0; }
  .c-card { position: static; margin-top: 48px; max-width: 460px; order: -1; }
  .c-main { padding-top: 56px; }
  .c-hero { padding-bottom: 56px; }
}
@media (max-width: 640px) {
  .c-method, .c-who { grid-template-columns: 1fr; }
}

/* ---------- Methodology page ---------- */
.principles { display: grid; border-top: 1.5px solid var(--ink); }
.principle {
  display: grid; grid-template-columns: 280px minmax(0, 1fr) minmax(0, .9fr); gap: 48px; align-items: start;
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.principle-name { display: flex; align-items: center; gap: 18px; }
.principle-name svg { width: 52px; height: 52px; flex: none; }
.principle h3 { font-size: 26px; letter-spacing: -0.025em; }
.principle > p { margin: 0; font-size: 17px; color: var(--muted); }
.in-lesson { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 15.5px; line-height: 1.55; }
.in-lesson span { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.loop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: loop; }
.loop-step { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.loop-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -14px; top: 26px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper-2); display: grid; place-items: center; font-size: 12px; color: var(--muted); z-index: 1;
}
.loop-n { font-family: var(--font-mono); font-size: 12.5px; color: var(--yellow-deep); }
.loop-step h3 { font-size: 20px; letter-spacing: -0.02em; margin: 12px 0 8px; }
.loop-step p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 1080px) {
  .principle { grid-template-columns: 1fr 1fr; gap: 20px 40px; }
  .principle-name { grid-column: 1 / -1; }
  .loop { grid-template-columns: repeat(3, 1fr); }
  .loop-step::after { display: none; }
}
@media (max-width: 640px) {
  .principle { grid-template-columns: 1fr; padding: 32px 0; }
  .loop { grid-template-columns: 1fr; }
}

/* ---------- Team page ---------- */
.f-hero { padding: 72px 0 0; }
.f-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.f-hero h1 { font-size: clamp(60px, 10vw, 156px); letter-spacing: -0.055em; line-height: .86; }
.f-hero h1 .serif { display: block; color: var(--yellow); font-size: .82em; letter-spacing: -0.03em; }
.f-role { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 28px; }
.f-role span { border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: #d9d8d2; }
.f-photo { position: relative; border-radius: var(--radius-l) var(--radius-l) 0 0; overflow: hidden; background: var(--yellow); }
.f-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 22%; mix-blend-mode: normal; }
.f-photo figcaption { position: absolute; left: 20px; bottom: 20px; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px; }
.f-intro { color: var(--muted-dark); font-size: 19px; max-width: 46ch; margin: 0; }

.manifesto { padding: 140px 0; }
.manifesto p {
  font-family: var(--font-display); font-size: clamp(26px, 3.3vw, 46px); line-height: 1.16; letter-spacing: -0.03em; font-weight: 600; margin: 0;
  max-width: 30ch;
}
.manifesto p .dim { color: #d4d0c3; transition: color .6s var(--ease); }
.manifesto p .dim.lit { color: var(--ink); }
.manifesto p .serif .dim.lit { color: var(--yellow-deep); }
.manifesto .serif { font-size: 1.1em; }

.beliefs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5px; background: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--radius-l); overflow: hidden; }
.belief { background: var(--paper); padding: 44px 40px 40px; position: relative; transition: background .3s; }
.belief:hover { background: var(--yellow-soft); }
.belief .num { font-family: var(--font-display); font-size: 64px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--yellow); -webkit-text-stroke: 1.5px var(--ink); }
.belief h3 { font-size: 26px; margin: 26px 0 12px; letter-spacing: -0.025em; }
.belief p { margin: 0; color: var(--muted); max-width: 44ch; }

.big-quote { text-align: center; padding: 140px 0; }
.big-quote blockquote { margin: 0 auto; max-width: 20ch; font-family: var(--font-serif); font-style: italic; font-size: clamp(40px, 6vw, 88px); line-height: 1.02; letter-spacing: -0.02em; }
.big-quote blockquote::before { content: "“"; display: block; font-size: 1.6em; line-height: .6; color: var(--yellow); }
.big-quote cite { display: block; margin-top: 32px; font-style: normal; font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }

.practice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.practice article { border-radius: var(--radius); padding: 30px 28px; background: #fff; border: 1.5px solid var(--line); }
.practice svg { width: 48px; height: 48px; margin-bottom: 22px; }
.practice h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.02em; }
.practice p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .courses { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .path::before { display: none; }
}
@media (max-width: 900px) {
  .nav-links, .nav-login { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 84px; left: 0; right: 0;
    background: var(--ink); padding: 8px var(--gutter) 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); gap: 0;
  }
  .nav.open .nav-links a { padding: 14px 0; font-size: 17px; }
  .nav.open .nav-links a[aria-current="page"]::after { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .hero { padding: 56px 0 88px; }
  .hero-grid, .founder-teaser, .faq-grid, .f-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .puzzle { justify-self: start; }
  .tryit { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: repeat(3, 1fr); }
  .tab { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .tab small { display: none; }
  .versus { grid-template-columns: 1fr; }
  .beliefs, .practice { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .portrait { max-width: 440px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .brand span { display: none; }
  .nav-cta .btn { padding: 0 16px; }
  .pillars, .courses, .path { grid-template-columns: 1fr; }
  .options, .outcomes { grid-template-columns: 1fr; }
  .panel { padding: 24px 20px; }
  .versus > div { padding: 32px 22px; }
  .portrait .sticker { left: 12px; }
  .portrait::before { inset: 14px -10px -14px 14px; }
  .belief { padding: 32px 24px; }
  .syllabus details p { padding-left: 22px; }
  .syllabus summary { grid-template-columns: 40px 1fr auto; padding: 16px; }
}
