/* =========================================================================
   VYAPTRIX — Design System
   -------------------------------------------------------------------------
   Every colour, size and motion value lives in the tokens below.
   Components only reference tokens (var(--…)), never raw values.
   ========================================================================= */

:root {
  /* ---- Colour: brand ---- */
  --ink-950: #07080d;
  --ink-900: #0b0d16;
  --ink-800: #131624;
  --ink-700: #1d2134;
  --ink-600: #2b3049;
  --ivory-50: #fbfaf7;
  --ivory-100: #f5f2ea;
  --ivory-200: #ebe6d9;
  --stone-500: #6b6a73;
  --stone-600: #55545d;
  --iris-300: #b4b0ff;
  --iris-400: #8f89ff;
  --iris-500: #6c63ff;
  --iris-600: #5248e6;
  --ember-300: #ffb59a;
  --ember-400: #ff8a5c;
  --ember-500: #ff6a33;
  --mint-500: #1f9d74;
  --red-600: #c4332b;

  /* ---- Colour: semantic ---- */
  --bg: var(--ivory-50);
  --bg-alt: var(--ivory-100);
  --bg-inverse: var(--ink-900);
  --surface: #ffffff;
  --surface-inverse: var(--ink-800);
  --text: var(--ink-900);
  --text-muted: var(--stone-600);
  --text-inverse: #f3f2f7;
  --text-inverse-muted: #a9abbd;
  --line: rgba(11, 13, 22, 0.1);
  --line-strong: rgba(11, 13, 22, 0.18);
  --line-inverse: rgba(255, 255, 255, 0.1);
  --primary: var(--iris-600);
  --primary-hover: var(--iris-500);
  --on-primary: #ffffff;
  --accent: var(--ember-500);
  --accent-soft: var(--ember-300);
  --success: var(--mint-500);
  --error: var(--red-600);
  --focus: var(--iris-500);

  /* ---- Typography ---- */
  --font-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-32: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --fs-48: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
  --fs-64: clamp(2.75rem, 1.8rem + 4.4vw, 5rem);
  --fs-96: clamp(3.1rem, 1.6rem + 6.6vw, 7.25rem);

  /* ---- Spacing (8pt) ---- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  --container: 1240px;

  /* ---- Shape & depth ---- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(11, 13, 22, 0.06), 0 2px 8px rgba(11, 13, 22, 0.04);
  --shadow-2: 0 12px 40px -12px rgba(11, 13, 22, 0.22);
  --shadow-3: 0 30px 80px -20px rgba(11, 13, 22, 0.35);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 700ms;

  /* ---- Layers ---- */
  --z-base: 0;
  --z-raised: 10;
  --z-nav: 100;
  --z-overlay: 400;
  --z-toast: 1000;
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--iris-300); color: var(--ink-900); }

.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; }
.skip-link { position: fixed; left: var(--s-4); top: -100px; z-index: var(--z-toast); background: var(--ink-900); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s-4); }

/* ---------------------------------------------------------------- Layout */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--bg-inverse); color: var(--text-inverse); }
.section--ink .muted { color: var(--text-inverse-muted); }
.muted { color: var(--text-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-sans); font-size: var(--fs-12); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }
.section--ink .eyebrow, .hero .eyebrow { color: var(--text-inverse-muted); }

.display { font-size: var(--fs-96); letter-spacing: -0.045em; line-height: 0.95; }
.h1 { font-size: var(--fs-64); letter-spacing: -0.04em; }
.h2 { font-size: var(--fs-48); letter-spacing: -0.035em; }
.h3 { font-size: var(--fs-24); letter-spacing: -0.02em; line-height: 1.2; }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-18); line-height: 1.65; max-width: 58ch; }

.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-8); max-width: 760px; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr 1fr; gap: var(--s-8); } }

/* ---------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  border-radius: var(--r-pill); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-16); letter-spacing: -0.01em;
  white-space: nowrap; touch-action: manipulation; overflow: hidden; isolation: isolate;
  transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out), transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.btn:hover { box-shadow: 0 10px 30px -10px rgba(82, 72, 230, 0.6); background: var(--primary-hover); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; transition: transform var(--t-base) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--ink-950); }
.btn--accent:hover { background: var(--ember-400); box-shadow: 0 10px 30px -10px rgba(255, 106, 51, 0.6); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-strong); }
.btn--ghost:hover { background: var(--ink-900); color: #fff; box-shadow: none; border-color: var(--ink-900); }
.btn--ghost-inverse { --btn-bg: rgba(255,255,255,0.04); --btn-fg: #fff; --btn-bd: rgba(255,255,255,0.22); backdrop-filter: blur(8px); }
.btn--ghost-inverse:hover { background: #fff; color: var(--ink-900); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0 var(--s-4); font-size: var(--fs-14); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-sans); font-weight: 600; min-height: 44px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--t-base) var(--ease-out); }
.link-arrow:hover span { background-size: 100% 1px; }

/* ---------------------------------------------------------------- Navbar */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  color: var(--text-inverse);
  transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), box-shadow var(--t-base), backdrop-filter var(--t-base);
}
.nav__inner { display: flex; align-items: center; gap: var(--s-5); height: 76px; }
body.nav-light .nav { color: var(--text); }
.nav.is-scrolled { background: rgba(11, 13, 22, 0.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line-inverse); color: var(--text-inverse); }
body.nav-light .nav.is-scrolled { background: rgba(251, 250, 247, 0.82); color: var(--text); box-shadow: 0 1px 0 var(--line); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; min-height: 44px; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__word span { color: var(--ember-500); }

.nav__links { display: none; align-items: center; gap: var(--s-1); margin-left: auto; }
.nav__links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); font-size: var(--fs-14); font-weight: 500; opacity: 0.78; transition: opacity var(--t-fast); }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 8px; height: 1.5px; background: var(--ember-500); border-radius: 2px; }
.nav__actions { display: none; align-items: center; gap: var(--s-2); }
.nav__login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); font-size: var(--fs-14); font-weight: 600; }
.nav__toggle { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-pill); border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 25%, transparent); }
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform var(--t-base) var(--ease-out); }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform var(--t-base) var(--ease-out); }
.nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }
.nav[data-open="true"] .nav__toggle span { background: transparent; }
.nav[data-open="true"] .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1080px) {
  .nav__links, .nav__actions { display: flex; }
  .nav__links { margin-left: auto; }
  .nav__toggle { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1);
  background: var(--ink-950); color: var(--text-inverse);
  padding: 100px var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--s-6);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility 0s linear var(--t-base);
  overflow-y: auto;
}
.mobile-menu[data-open="true"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu ul { display: grid; }
.mobile-menu li a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line-inverse); font-family: var(--font-sans); font-size: var(--fs-24); font-weight: 500; letter-spacing: -0.02em; }
.mobile-menu li a[aria-current="page"] { color: var(--ember-400); }
.mobile-menu__cta { display: grid; gap: var(--s-3); margin-top: auto; }
body.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative; min-height: 100svh; color: var(--text-inverse);
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(108, 99, 255, 0.35) 0%, transparent 60%),
    radial-gradient(45% 45% at 95% 85%, rgba(255, 106, 51, 0.22) 0%, transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(82, 72, 230, 0.18) 0%, transparent 70%),
    var(--ink-950);
  overflow: hidden; isolation: isolate;
  display: flex; align-items: center;
  padding-top: 120px; padding-bottom: var(--s-8);
}
.hero::before { /* fine grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.hero__grid-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 88px 88px; mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%); }
.hero__layout { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .hero__layout { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-6); } }
.hero__copy { position: relative; z-index: 2; display: grid; gap: var(--s-5); }
.hero__title { font-size: clamp(3rem, 1.2rem + 5.4vw, 6.25rem); line-height: 0.92; letter-spacing: -0.05em; }
.hero__title .serif { display: block; color: var(--ember-300); font-size: 1.04em; letter-spacing: -0.025em; padding-top: 0.06em; }
.hero__sub { font-size: var(--fs-18); color: var(--text-inverse-muted); max-width: 46ch; line-height: 1.65; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line-inverse); font-size: var(--fs-14); color: var(--text-inverse-muted); }
.hero__meta li { display: flex; align-items: center; gap: var(--s-2); }
.hero__meta svg { width: 16px; height: 16px; color: var(--ember-400); }

.hero__visual { position: relative; min-height: 460px; }
@media (min-width: 1024px) { .hero__visual { min-height: 640px; } }
.hero__photo {
  position: absolute; inset: 6% 12% 4% 14%; border-radius: 280px 280px var(--r-lg) var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(255,255,255,0.08);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,13,0) 45%, rgba(7,8,13,0.55) 100%), linear-gradient(120deg, rgba(108,99,255,0.18), transparent 50%); }
.hero__canvas { position: absolute; inset: -6% -8% -4% -8%; z-index: 3; pointer-events: none; }
.hero__canvas canvas { width: 100% !important; height: 100% !important; }
.hero__chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  background: rgba(19, 22, 36, 0.62); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: var(--fs-14); color: var(--text-inverse); box-shadow: var(--shadow-2);
}
.hero__chip strong { display: block; font-family: var(--font-sans); font-weight: 600; }
.hero__chip small { color: var(--text-inverse-muted); font-size: var(--fs-12); }
.hero__chip-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--iris-500), var(--iris-600)); flex: none; }
.hero__chip-icon svg { width: 18px; height: 18px; color: #fff; }
.hero__chip--a { left: 0; bottom: 16%; }
.hero__chip--b { right: 2%; top: 14%; }
.hero__chip--b .hero__chip-icon { background: linear-gradient(135deg, var(--ember-400), var(--ember-500)); }
.hero__scroll { position: absolute; left: 50%; bottom: var(--s-5); transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: var(--s-2); color: var(--text-inverse-muted); font-size: var(--fs-12); letter-spacing: 0.16em; text-transform: uppercase; }
.hero__scroll i { width: 1px; height: 36px; background: linear-gradient(var(--text-inverse-muted), transparent); animation: scrollcue 2.2s var(--ease-out) infinite; transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 1024px) and (min-height: 980px) { .hero__scroll { display: flex; } }
@media (max-width: 1023px) { .hero__chip--b { display: none; } .hero__photo { inset: 4% 8% 0 8%; } }

/* ---------------------------------------------------------------- Stats */
.stats { background: var(--ink-950); color: var(--text-inverse); border-top: 1px solid var(--line-inverse); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: var(--s-7) var(--s-5); border-left: 1px solid var(--line-inverse); display: grid; gap: var(--s-2); }
.stat:nth-child(odd) { border-left: 0; }
@media (min-width: 900px) { .stat:nth-child(odd) { border-left: 1px solid var(--line-inverse); } .stat:first-child { border-left: 0; padding-left: 0; } }
@media (max-width: 899px) { .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-inverse); } }
.stat__value { font-family: var(--font-sans); font-size: var(--fs-48); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__value[data-placeholder="true"] { color: var(--text-inverse-muted); }
.stat__label { color: var(--text-inverse-muted); font-size: var(--fs-14); }
.stats__note { padding: 0 0 var(--s-5); font-size: var(--fs-12); color: var(--text-inverse-muted); opacity: 0.7; }

/* ---------------------------------------------------------------- Course discovery */
.discover__bar { display: grid; gap: var(--s-4); margin-bottom: var(--s-6); }
@media (min-width: 900px) { .discover__bar { grid-template-columns: auto 1fr; align-items: center; justify-content: space-between; } }
.tabs { display: inline-flex; gap: var(--s-1); padding: var(--s-1); border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill); font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-14); color: var(--text-muted); white-space: nowrap; transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--ink-900); color: #fff; }

.search { position: relative; width: 100%; }
@media (min-width: 900px) { .search { max-width: 380px; justify-self: end; } }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: 0 var(--s-4) 0 46px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--fs-16); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.16); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.chip { min-height: 36px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: var(--fs-14); font-weight: 500; transition: all var(--t-fast) var(--ease-out); background: transparent; }
.chip:hover { border-color: var(--ink-900); }
.chip[aria-pressed="true"] { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.course-grid { display: grid; gap: var(--s-6) var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }

.course-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base); }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.course-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ivory-200); }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.course-card:hover .course-card__media img { transform: scale(1.05); }
.course-card__badges { position: absolute; left: var(--s-3); top: var(--s-3); display: flex; gap: var(--s-2); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.01em; background: rgba(255,255,255,0.92); color: var(--ink-900); backdrop-filter: blur(6px); }
.badge--dark { background: rgba(11,13,22,0.78); color: #fff; }
.badge--accent { background: var(--accent); color: var(--ink-950); }
.course-card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); flex: 1; }
.course-card__cat { font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.course-card__title { font-size: var(--fs-20); line-height: 1.25; letter-spacing: -0.02em; }
.course-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.course-card__instructor { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-14); color: var(--text-muted); }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; background: var(--ivory-200); }
.course-card__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-14); color: var(--text-muted); }
.course-card__meta li { display: inline-flex; align-items: center; gap: 6px; }
.course-card__meta svg { width: 15px; height: 15px; }
.course-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.price { font-family: var(--font-sans); font-weight: 700; font-size: var(--fs-20); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price small { font-weight: 500; font-size: var(--fs-14); color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-14); font-weight: 600; }
.rating svg { width: 14px; height: 14px; color: var(--ember-500); }
.rating--new { color: var(--text-muted); font-weight: 500; }
.course-card__cta { position: relative; z-index: 2; }
.level { display: inline-flex; align-items: center; gap: 6px; }
.level__bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.level__bars i { width: 3px; background: var(--line-strong); border-radius: 1px; }
.level__bars i:nth-child(1) { height: 5px; } .level__bars i:nth-child(2) { height: 8px; } .level__bars i:nth-child(3) { height: 12px; }
.level__bars[data-level="1"] i:nth-child(-n+1), .level__bars[data-level="2"] i:nth-child(-n+2), .level__bars[data-level="3"] i { background: var(--primary); }

.empty-state { grid-column: 1 / -1; display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-9) var(--s-5); text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty-state svg { width: 40px; height: 40px; color: var(--text-muted); }

/* ---------------------------------------------------------------- Why choose us */
.why { display: grid; gap: var(--s-8); }
@media (min-width: 1024px) { .why { grid-template-columns: 0.85fr 1.15fr; gap: var(--s-9); } .why__intro { position: sticky; top: 140px; align-self: start; } }
.why__intro { display: grid; gap: var(--s-5); }
.why__list { display: grid; gap: var(--s-7); }
.why-item { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 640px) { .why-item { grid-template-columns: 1fr 1fr; } .why-item__media { aspect-ratio: 4 / 5; } .why-item:nth-child(even) .why-item__media { order: 2; } }
.why-item__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--ivory-200); }
.why-item__media img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.why-item__num { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-64); line-height: 1; color: var(--accent); }
.why-item__body { display: grid; gap: var(--s-3); }
.why-item__body p { color: var(--text-muted); }
.why-item__tag { position: absolute; left: var(--s-4); bottom: var(--s-4); }

/* ---------------------------------------------------------------- Journey */
.journey { position: relative; }
.journey__track { position: relative; display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .journey__track { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); } }
.journey__line { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px; background: var(--line-inverse); }
.journey__line i { position: absolute; inset: 0 0 auto 0; height: var(--progress, 0%); background: linear-gradient(var(--ember-400), var(--iris-400)); transition: height var(--t-slow) var(--ease-out), width var(--t-slow) var(--ease-out); }
@media (min-width: 900px) {
  .journey__line { left: 24px; right: 24px; top: 23px; bottom: auto; width: auto; height: 1px; }
  .journey__line i { inset: 0 auto 0 0; height: 1px; width: var(--progress, 0%); background: linear-gradient(90deg, var(--ember-400), var(--iris-400)); }
}
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: var(--s-4); text-align: left; padding: 0; color: inherit; border-radius: var(--r-md); }
@media (min-width: 900px) { .step { grid-template-columns: 1fr; gap: var(--s-5); } }
.step__dot { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-800); border: 1px solid var(--line-inverse); font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-14); color: var(--text-inverse-muted); transition: all var(--t-base) var(--ease-out); }
.step__body { display: grid; gap: var(--s-2); padding: var(--s-1) 0 var(--s-2); }
.step__title { font-size: var(--fs-32); letter-spacing: -0.03em; color: var(--text-inverse-muted); transition: color var(--t-base) var(--ease-out); }
.step__text { color: var(--text-inverse-muted); max-width: 30ch; }
.step__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--ease-out), opacity var(--t-base); opacity: 0; }
.step__detail > span { overflow: hidden; font-size: var(--fs-14); color: var(--text-inverse-muted); }
.step__list { display: grid; gap: 6px; padding-top: var(--s-3); }
.step__list > span { display: flex; gap: var(--s-2); }
.step__list > span::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--ember-400); }
.step[aria-expanded="true"] .step__dot { background: var(--ember-500); border-color: var(--ember-500); color: var(--ink-950); box-shadow: 0 0 0 8px rgba(255,106,51,0.14); }
.step[aria-expanded="true"] .step__title { color: #fff; }
.step[aria-expanded="true"] .step__detail { grid-template-rows: 1fr; opacity: 1; }
.step:hover .step__title { color: #fff; }

/* ---------------------------------------------------------------- Categories */
.cat-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: var(--s-4); }
  .cat-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .cat-tile:nth-child(6) { grid-column: span 2; } }
.cat-tile { position: relative; display: flex; align-items: flex-end; border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate; background: var(--ink-800); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1100ms var(--ease-out); }
.cat-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,8,13,0.05) 20%, rgba(7,8,13,0.82) 100%); transition: opacity var(--t-base); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile__body { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); width: 100%; padding: var(--s-5); }
.cat-tile__name { font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-20); letter-spacing: -0.02em; line-height: 1.15; }
.cat-tile:nth-child(1) .cat-tile__name { font-size: var(--fs-32); }
.cat-tile__count { font-size: var(--fs-14); opacity: 0.8; }
.cat-tile__arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.14); backdrop-filter: blur(8px); transition: background var(--t-base), transform var(--t-base) var(--ease-out); }
.cat-tile__arrow svg { width: 16px; height: 16px; }
.cat-tile:hover .cat-tile__arrow { background: var(--accent); color: var(--ink-950); transform: rotate(-45deg); }
@media (max-width: 559px) { .cat-grid { grid-template-columns: 1fr; grid-auto-rows: 180px; } }

/* ---------------------------------------------------------------- Learning hub */
.hub { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .hub { grid-template-columns: 1.15fr 1fr; gap: var(--s-8); } }
.hub-feature { position: relative; display: grid; gap: var(--s-4); }
.hub-feature__media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--ivory-200); }
.hub-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1000ms var(--ease-out); }
.hub-feature:hover .hub-feature__media img { transform: scale(1.04); }
.hub-feature h3 a::after { content: ""; position: absolute; inset: 0; }
.hub-list { display: grid; }
.hub-row { position: relative; display: grid; grid-template-columns: 1fr clamp(84px, 22vw, 112px); gap: var(--s-4); align-items: center; padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.hub-row:last-child { border-bottom: 1px solid var(--line); }
.hub-row img { width: 100%; max-width: 112px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); transition: transform var(--t-base) var(--ease-out); }
.hub-row:hover img { transform: scale(1.04); }
.hub-row h3 { font-size: var(--fs-18); line-height: 1.3; letter-spacing: -0.015em; }
.hub-row h3 a::after { content: ""; position: absolute; inset: 0; }
.hub-row:hover h3 { color: var(--primary); }
.hub-meta { display: flex; gap: var(--s-3); align-items: center; font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--s-2); }
.hub-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.hub-meta .kind { color: var(--accent); }

/* ---------------------------------------------------------------- Instructors */
.instructor-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .instructor-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 639px) { .instructor-grid { grid-template-columns: 1fr; } }
.instructor { display: grid; gap: var(--s-3); }
.instructor__media { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-800); }
.instructor__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.instructor:hover .instructor__media img { filter: grayscale(0); transform: scale(1.03); }
.instructor__name { font-size: var(--fs-20); letter-spacing: -0.02em; }
.instructor__role { font-size: var(--fs-14); color: var(--ember-400); font-weight: 500; }
.instructor__bio { font-size: var(--fs-14); color: var(--text-inverse-muted); }
.placeholder-flag { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); border: 1px dashed currentColor; opacity: 0.75; }

/* ---------------------------------------------------------------- Testimonials */
.testimonials { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.quote { display: grid; gap: var(--s-5); padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.quote blockquote { margin: 0; font-family: var(--font-serif); font-size: var(--fs-24); line-height: 1.35; }
.quote figcaption { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-14); }
.stories-empty { display: grid; gap: var(--s-6); align-items: center; padding: var(--s-7); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
@media (min-width: 900px) { .stories-empty { grid-template-columns: 1.2fr 1fr; padding: var(--s-8); } }
.stories-empty__mark { position: absolute; right: -20px; top: -60px; font-family: var(--font-serif); font-size: 22rem; line-height: 1; color: var(--ivory-200); pointer-events: none; user-select: none; }
.stories-empty > *:not(.stories-empty__mark) { position: relative; }
.stories-empty ul { display: grid; gap: var(--s-3); }
.stories-empty li { display: flex; gap: var(--s-3); align-items: flex-start; }
.stories-empty li svg { flex: none; width: 20px; height: 20px; color: var(--success); margin-top: 2px; }

/* ---------------------------------------------------------------- Final CTA */
.final-cta { position: relative; overflow: hidden; isolation: isolate; background:
  radial-gradient(50% 70% at 85% 50%, rgba(108,99,255,0.38), transparent 70%),
  radial-gradient(40% 50% at 10% 110%, rgba(255,106,51,0.25), transparent 70%), var(--ink-950); color: var(--text-inverse); }
.final-cta__grid { display: grid; gap: var(--s-6); align-items: center; min-height: 520px; }
@media (min-width: 1024px) { .final-cta__grid { grid-template-columns: 1.1fr 0.9fr; } }
.final-cta__copy { display: grid; gap: var(--s-5); position: relative; z-index: 2; }
.final-cta__visual { position: relative; height: 380px; }
@media (min-width: 1024px) { .final-cta__visual { height: 520px; } }
.final-cta__visual canvas { width: 100% !important; height: 100% !important; }

/* ---------------------------------------------------------------- Footer */
.footer { background: var(--ink-950); color: var(--text-inverse-muted); padding: var(--s-9) 0 calc(var(--s-6) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-inverse); }
.footer__top { display: grid; gap: var(--s-7); padding-bottom: var(--s-8); }
@media (min-width: 640px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__top { grid-template-columns: 1.15fr 0.75fr 0.9fr 1.45fr; gap: var(--s-7); } }
.footer .brand { color: #fff; }
.footer__about { display: grid; gap: var(--s-4); max-width: 36ch; }
.footer h4 { position: relative; display: inline-block; font-size: var(--fs-18); letter-spacing: -0.01em; color: #fff; margin-bottom: var(--s-5); padding-bottom: var(--s-3); font-weight: 600; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--iris-500), var(--ember-500)); }
.footer__links li { display: flex; align-items: center; gap: var(--s-3); }
.footer__links li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--iris-400); opacity: 0.8; transition: background var(--t-fast); }
.footer__links li:hover::before { background: var(--ember-400); }
.footer__contact { font-style: normal; display: grid; gap: var(--s-4); }
.footer__contact p { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); align-items: start; line-height: 1.6; }
.footer__contact svg { width: 20px; height: 20px; color: var(--iris-400); margin-top: 2px; }
.footer__contact a { display: inline-flex; align-items: center; min-height: 28px; transition: color var(--t-fast); overflow-wrap: anywhere; }
.footer__contact a:hover { color: #fff; }
.footer__legal { display: block; color: #fff; font-weight: 500; }
.footer ul { display: grid; gap: 2px; }
.footer ul a { display: inline-flex; min-height: 36px; align-items: center; transition: color var(--t-fast); }
.footer ul a:hover { color: #fff; }
.footer__social { display: flex; gap: var(--s-2); }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-inverse); transition: all var(--t-base) var(--ease-out); }
.footer__social a:hover { background: #fff; color: var(--ink-900); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line-inverse); font-size: var(--fs-14); }
.footer__wordmark { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.06em; font-size: clamp(4rem, 17vw, 15rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.09); margin-top: var(--s-7); user-select: none; white-space: nowrap; overflow: hidden; }

/* ---------------------------------------------------------------- Page header (inner pages) */
.page-hero { position: relative; padding: 168px 0 var(--s-8); color: var(--text-inverse); background:
  radial-gradient(50% 80% at 85% 0%, rgba(108,99,255,0.32), transparent 70%),
  radial-gradient(30% 50% at 100% 100%, rgba(255,106,51,0.16), transparent 70%), var(--ink-950); overflow: hidden; }
.page-hero__inner { display: grid; gap: var(--s-4); max-width: 820px; }
.page-hero .lead { color: var(--text-inverse-muted); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-14); color: var(--text-inverse-muted); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); opacity: 0.5; }

/* ---------------------------------------------------------------- Course detail */
.cd-hero { position: relative; padding: 140px 0 var(--s-8); color: var(--text-inverse); background: var(--ink-950); overflow: hidden; isolation: isolate; }
.cd-hero__bg { position: absolute; inset: 0; z-index: -1; }
.cd-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; filter: saturate(0.9); }
.cd-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink-950) 25%, rgba(7,8,13,0.6) 65%, rgba(7,8,13,0.3)), linear-gradient(0deg, var(--ink-950), transparent 50%); }
.cd-hero__inner { display: grid; gap: var(--s-5); max-width: 760px; }
.cd-facts { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); color: var(--text-inverse-muted); font-size: var(--fs-14); }
.cd-facts li { display: inline-flex; align-items: center; gap: var(--s-2); }
.cd-facts svg { width: 16px; height: 16px; color: var(--ember-400); }
.cd-layout { display: grid; gap: var(--s-8); }
@media (min-width: 1024px) { .cd-layout { grid-template-columns: 1fr 380px; gap: var(--s-9); } }
.cd-main { display: grid; gap: var(--s-8); min-width: 0; }
.cd-block { display: grid; gap: var(--s-5); }
.cd-block h2 { font-size: var(--fs-32); }
.learn-list { display: grid; gap: var(--s-3) var(--s-6); }
@media (min-width: 640px) { .learn-list { grid-template-columns: 1fr 1fr; } }
.learn-list li { display: flex; gap: var(--s-3); }
.learn-list svg { flex: none; width: 20px; height: 20px; color: var(--success); margin-top: 2px; }
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger { width: 100%; display: flex; align-items: center; gap: var(--s-4); justify-content: space-between; min-height: 64px; padding: var(--s-4) 0; text-align: left; font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-18); letter-spacing: -0.01em; }
.acc-trigger .acc-num { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); font-size: var(--fs-24); width: 2ch; flex: none; }
.acc-trigger .acc-title { flex: 1; }
.acc-trigger .acc-meta { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-14); color: var(--text-muted); white-space: nowrap; }
.acc-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform var(--t-base) var(--ease-out), background var(--t-base); }
.acc-icon svg { width: 14px; height: 14px; }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-base) var(--ease-out); }
.acc-panel > div { overflow: hidden; }
.acc-trigger[aria-expanded="true"] + .acc-panel { grid-template-rows: 1fr; }
.lesson-list { display: grid; padding: 0 0 var(--s-5) calc(2ch + var(--s-4) + 6px); }
.lesson-list li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-2) 0; color: var(--text-muted); font-size: var(--fs-16); }
.lesson-list li span:first-child { display: flex; gap: var(--s-3); align-items: center; }
.lesson-list svg { width: 16px; height: 16px; flex: none; }
.req-list { display: grid; gap: var(--s-2); }
.req-list li { display: flex; gap: var(--s-3); }
.req-list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-top: 10px; }
.instructor-card { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-5); align-items: center; padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.instructor-card img { width: 96px; height: 96px; border-radius: var(--r-md); object-fit: cover; }
.cert-card { display: grid; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-lg); background: linear-gradient(135deg, var(--ink-900), var(--ink-700)); color: var(--text-inverse); position: relative; overflow: hidden; }
.cert-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 0 0 30px rgba(255,255,255,0.03), 0 0 0 60px rgba(255,255,255,0.02); }
.cert-card p { color: var(--text-inverse-muted); max-width: 52ch; }
.buy-box { position: sticky; top: 100px; align-self: start; display: grid; gap: var(--s-5); padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.buy-box__media { aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; margin: calc(-1 * var(--s-3)) calc(-1 * var(--s-3)) 0; }
.buy-box__media img { width: 100%; height: 100%; object-fit: cover; }
.buy-box .price { font-size: var(--fs-32); }
.buy-box__list { display: grid; gap: var(--s-3); font-size: var(--fs-14); }
.buy-box__list li { display: flex; justify-content: space-between; gap: var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.buy-box__list li span:first-child { color: var(--text-muted); }
.buy-box__note { font-size: var(--fs-12); color: var(--text-muted); text-align: center; }
@media (max-width: 1023px) { .buy-box { position: static; } }

/* ---------------------------------------------------------------- Forms & auth */
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-14); font-weight: 600; font-family: var(--font-sans); }
.field label .req { color: var(--error); margin-left: 2px; }
.input-wrap { position: relative; }
.input { width: 100%; min-height: 52px; padding: 0 var(--s-4); border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--fs-16); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
textarea.input { min-height: 140px; padding: var(--s-3) var(--s-4); resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2355545d' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(108,99,255,0.16); }
.input[aria-invalid="true"] { border-color: var(--error); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(196,51,43,0.14); }
.input-wrap .input { padding-right: 56px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--text-muted); }
.pw-toggle:hover { color: var(--text); }
.pw-toggle svg { width: 20px; height: 20px; }
.hint { font-size: var(--fs-14); color: var(--text-muted); }
.error-text { display: none; align-items: center; gap: 6px; font-size: var(--fs-14); color: var(--error); font-weight: 500; }
.error-text svg { width: 16px; height: 16px; flex: none; }
.error-text.is-visible { display: flex; }
.error-summary { display: none; padding: var(--s-4); border-radius: var(--r-md); border: 1px solid var(--error); background: #fdf1f0; color: var(--error); }
.error-summary.is-visible { display: block; }
.error-summary h2 { font-size: var(--fs-16); margin-bottom: var(--s-2); }
.error-summary ul { display: grid; gap: 4px; font-size: var(--fs-14); }
.error-summary a { text-decoration: underline; }
.form-status { display: none; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-md); font-size: var(--fs-14); }
.form-status.is-visible { display: flex; }
.form-status svg { width: 20px; height: 20px; flex: none; }
.form-status--info { background: #eeedff; color: var(--iris-600); border: 1px solid var(--iris-300); }
.form-status--success { background: #e9f7f1; color: #136c50; border: 1px solid #a8dcc8; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-14); min-height: 44px; padding-top: 10px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); flex: none; }
.check a { text-decoration: underline; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
.pw-meter i { height: 4px; border-radius: 2px; background: var(--line); transition: background var(--t-base); }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--error); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--ember-500); }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: var(--iris-500); }
.pw-meter[data-score="4"] i { background: var(--success); }

.auth { min-height: 100svh; display: grid; background: var(--bg); }
@media (min-width: 1024px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth__panel { display: flex; flex-direction: column; padding: var(--s-5) var(--gutter) var(--s-7); }
.auth__top { display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.auth__form-wrap { width: min(100%, 440px); margin: auto; display: grid; gap: var(--s-6); padding-block: var(--s-7); }
.auth__form { display: grid; gap: var(--s-5); }
.auth__row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.auth__alt { text-align: center; font-size: var(--fs-14); color: var(--text-muted); }
.auth__alt a, .text-link { color: var(--primary); font-weight: 600; }
.auth__alt a:hover, .text-link:hover { text-decoration: underline; }
.auth__visual { display: none; position: relative; overflow: hidden; color: #fff; isolation: isolate; }
@media (min-width: 1024px) { .auth__visual { display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s-8); margin: var(--s-3); border-radius: var(--r-lg); } }
.auth__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth__visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,8,13,0.1) 30%, rgba(7,8,13,0.88)), linear-gradient(135deg, rgba(82,72,230,0.35), transparent 60%); }
.auth__visual blockquote { margin: 0; font-family: var(--font-serif); font-size: var(--fs-48); line-height: 1.05; max-width: 16ch; }
.auth__visual p { margin-top: var(--s-4); color: rgba(255,255,255,0.75); max-width: 40ch; }
.divider { display: flex; align-items: center; gap: var(--s-3); color: var(--text-muted); font-size: var(--fs-12); text-transform: uppercase; letter-spacing: 0.14em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------------------------------------------------------------- Prose (articles & legal) */
.prose { max-width: 70ch; font-size: var(--fs-18); line-height: 1.75; color: #2a2b33; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-32); margin-top: 1.8em; color: var(--text); }
.prose h3 { font-size: var(--fs-24); margin-top: 1.5em; color: var(--text); }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding-left: var(--s-5); border-left: 2px solid var(--accent); font-family: var(--font-serif); font-size: var(--fs-24); line-height: 1.4; color: var(--text); }
.notice { display: flex; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: #fff6ef; border: 1px solid var(--ember-300); font-size: var(--fs-14); color: #7a3413; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ---------------------------------------------------------------- About & contact */
.split { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-9); } }
.split__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { padding: var(--s-6) var(--s-5) var(--s-6) 0; display: grid; gap: var(--s-3); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .value { border-bottom: 0; padding: var(--s-6) var(--s-6) 0 0; } .value + .value { padding-left: var(--s-6); border-left: 1px solid var(--line); } }
.value__num { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-48); color: var(--accent); line-height: 1; }
.contact-grid { display: grid; gap: var(--s-8); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-9); } }
.contact-card { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.contact-card dt { font-size: var(--fs-12); text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted); font-weight: 600; }
.contact-card dd { margin: 0; font-family: var(--font-sans); font-size: var(--fs-20); font-weight: 500; letter-spacing: -0.01em; }
.form-card { padding: clamp(1.5rem, 1rem + 2vw, 3rem); background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; color: var(--text-inverse); background: radial-gradient(50% 50% at 50% 40%, rgba(108,99,255,0.3), transparent 70%), var(--ink-950); padding: var(--gutter); }
.notfound .display { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--ember-300); font-size: clamp(6rem, 25vw, 16rem); }

/* ---------------------------------------------------------------- Toast */
.toast-region { position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: var(--s-2); width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: var(--s-3); align-items: center; padding: var(--s-4); border-radius: var(--r-md); background: var(--ink-900); color: #fff; box-shadow: var(--shadow-3); font-size: var(--fs-14); animation: toast-in var(--t-base) var(--ease-out); }
.toast svg { width: 18px; height: 18px; flex: none; color: var(--ember-400); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------------------------------------------------------------- Reveal motion */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(12% 0 0 0 round var(--r-lg)); transition: clip-path 1100ms var(--ease-out); }
.reveal-clip.is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: block; transform: translateY(105%); transition: transform 1000ms var(--ease-out); transition-delay: var(--d, 0ms); }
.is-loaded .split-line > span { transform: none; }
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
.is-loaded .fade-up { opacity: 1; transform: none; }
.float-y { animation: float-y 6s ease-in-out infinite; }
.float-y--slow { animation-duration: 8s; animation-delay: -2s; }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* No-JS: show everything */
.no-js .reveal, .no-js .fade-up { opacity: 1; transform: none; }
.no-js .split-line > span { transform: none; }
.no-js .reveal-clip { clip-path: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .reveal, .fade-up { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
  .reveal-clip { clip-path: none; }
}
.cert-card > svg { width: 40px; height: 40px; color: var(--ember-400); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Testimonials (populated) */
.testimonials { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .testimonials { grid-template-columns: 1.25fr 1fr 1fr; align-items: stretch; } }
.quote { margin: 0; position: relative; display: flex; flex-direction: column; gap: var(--s-6); padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out); }
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.quote__mark { font-family: var(--font-serif); font-size: 5.5rem; line-height: 0.6; height: 0.45em; color: var(--accent); }
.quote blockquote { margin: 0; flex: 1; font-family: var(--font-serif); font-size: var(--fs-24); line-height: 1.35; letter-spacing: -0.005em; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-14); }
.quote figcaption strong { display: block; font-family: var(--font-sans); font-size: var(--fs-16); }
.quote__role { display: block; color: var(--text-muted); }
.quote__avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; object-fit: cover; font-family: var(--font-sans); font-weight: 600; font-size: var(--fs-14); color: #fff; background: linear-gradient(135deg, var(--iris-500), var(--iris-600)); }
.quote:nth-child(2) .quote__avatar { background: linear-gradient(135deg, var(--ember-400), var(--ember-500)); color: var(--ink-950); }
.quote:nth-child(3) .quote__avatar { background: linear-gradient(135deg, var(--ink-600), var(--ink-800)); }
.quote--feature { background: var(--ink-900); border-color: var(--ink-900); color: var(--text-inverse); }
.quote--feature blockquote { color: #fff; font-size: var(--fs-32); line-height: 1.25; }
.quote--feature figcaption { border-top-color: var(--line-inverse); }
.quote--feature .quote__role { color: var(--text-inverse-muted); }
.quote--feature::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(108,99,255,0.35), transparent); pointer-events: none; }

/* ---------------------------------------------------------------- Faculty (no photos) */
.avatar-mono { --size: 28px; flex: none; width: var(--size); height: var(--size); border-radius: 50%; display: inline-grid; place-items: center;
  font-family: var(--font-sans); font-weight: 600; font-size: calc(var(--size) * 0.36); letter-spacing: 0.02em; color: #fff;
  background: linear-gradient(135deg, var(--iris-500), var(--iris-600)); }
.avatar-mono--lg { border-radius: var(--r-md); }
.instructor { position: relative; display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-6); border-radius: var(--r-lg);
  background: var(--ink-800); border: 1px solid var(--line-inverse); transition: transform var(--t-base) var(--ease-out), border-color var(--t-base); }
.instructor:hover { transform: translateY(-4px); border-color: rgba(143,137,255,0.35); }
.instructor__mark { font-family: var(--font-serif); font-size: 4.5rem; line-height: 0.6; height: 0.4em; color: var(--ember-400); }
.instructor__msg { margin: 0; flex: 1; font-family: var(--font-serif); font-size: var(--fs-20); line-height: 1.45; color: #fff; }
.instructor__who { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line-inverse); }
.instructor__who .instructor__name { font-size: var(--fs-16); color: #fff; }
.instructor__who .instructor__role { display: block; font-size: var(--fs-14); }
.instructor:nth-child(2) .avatar-mono { background: linear-gradient(135deg, var(--ember-400), var(--ember-500)); color: var(--ink-950); }
.instructor:nth-child(3) .avatar-mono { background: linear-gradient(135deg, #2bb38a, var(--mint-500)); }
.instructor:nth-child(4) .avatar-mono { background: linear-gradient(135deg, var(--ink-600), var(--ink-700)); }
@media (min-width: 640px) and (max-width: 1023px) { .instructor-grid { grid-template-columns: 1fr 1fr; } }
.instructor .placeholder-flag { align-self: flex-start; }
[data-brand-address] { white-space: pre-line; }
