/* =========================================================
   Sarkhani Edu — bright, airy, RTL (with an optional dark theme).
   Inspired by the DesignPro hero: video backdrop, pill nav,
   shiny light-blue headline, rounded dark CTA.
   Light is the default; [data-theme="dark"] switches palettes.
   ========================================================= */

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn.woff2") format("woff2-variations"), url("/fonts/vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------------- tokens: light (default) ---------------- */
:root {
  --bg: #f5faf7;
  --bg-2: #e8f4ee;
  --surface: #ffffff;
  --surface-2: #eff7f2;
  --surface-solid: #e0f0e7;
  --card-from: #ffffff;
  --card-to: #fbfefc;
  --line: rgba(13, 48, 34, 0.09);
  --line-strong: rgba(13, 48, 34, 0.17);
  --text: #0d1f18;
  --text-2: rgba(13, 31, 24, 0.78);
  --muted: rgba(13, 31, 24, 0.55);
  --accent: #5ee0a8;
  --accent-strong: #0b8a5e;
  --accent-2: #14b87a;
  --accent-ink: #032016;
  --accent-soft: rgba(11, 138, 94, 0.09);
  --ok: #0f9d63;
  --warn: #b26b00;
  --err: #d93b3b;
  --info: #6d4fd6;
  --shine-base: #0b8a5e;
  --shine-hi: #7ff0c0;
  --header-bg: rgba(255, 255, 255, 0.8);
  --pill-border: rgba(13, 48, 34, 0.16);
  --pill-bg: rgba(255, 255, 255, 0.55);
  --pill-active: rgba(13, 31, 24, 0.07);
  --input-bg: #ffffff;
  --chip-bg: rgba(255, 255, 255, 0.85);
  --cta-bg: #0d1f18;
  --cta-hover: #1c3a2e;
  --cta-text: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-hover: rgba(255, 255, 255, 0.9);
  --hero-bg: #ecf7f1;
  --hero-veil: linear-gradient(180deg, rgba(245, 250, 247, 0.5) 0%, rgba(245, 250, 247, 0.15) 35%, rgba(245, 250, 247, 0.35) 75%, var(--bg) 100%);
  --aurora-1: rgba(94, 224, 168, 0.55);
  --aurora-2: rgba(20, 184, 122, 0.35);
  --aurora-3: rgba(45, 212, 191, 0.3);
  --aurora-opacity: 0.9;
  --grain-opacity: 0.035;
  --stroke-num: rgba(13, 31, 24, 0.1);
  --marquee-text: rgba(13, 31, 24, 0.42);
  --footer-bg: #e8f4ee;
  --shadow: 0 24px 60px -26px rgba(13, 48, 34, 0.3);
  --card-shadow: 0 1px 2px rgba(13, 48, 34, 0.04), 0 10px 30px -16px rgba(13, 48, 34, 0.16);
  --hover-shadow: 0 30px 60px -28px rgba(11, 138, 94, 0.45);
  --glow: rgba(94, 224, 168, 0.22);
  --veil-top: rgba(245, 250, 247, 0.55);
  --cover-fallback: radial-gradient(circle at 30% 20%, rgba(94, 224, 168, 0.6), transparent 55%), radial-gradient(circle at 80% 90%, rgba(20, 184, 122, 0.45), transparent 50%), #dcf3e7;
  --cover-letter: rgba(13, 31, 24, 0.75);
  --toast-bg: rgba(255, 255, 255, 0.95);
  --side-bg: #ffffff;
  --admin-bg: #f2f8f4;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23565' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  --container: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
  color-scheme: light;
}

/* ---------------- tokens: dark ---------------- */
:root[data-theme="dark"] {
  --bg: #06100c;
  --bg-2: #08140f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-solid: #0d1a14;
  --card-from: rgba(255, 255, 255, 0.06);
  --card-to: rgba(255, 255, 255, 0.025);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.8);
  --muted: rgba(255, 255, 255, 0.55);
  --accent-strong: #5ee0a8;
  --accent-ink: #032016;
  --accent-soft: rgba(94, 224, 168, 0.1);
  --ok: #3ddc97;
  --warn: #ffc857;
  --err: #ff6b6b;
  --info: #a78bfa;
  --shine-base: #5ee0a8;
  --shine-hi: #ffffff;
  --header-bg: rgba(6, 16, 12, 0.75);
  --pill-border: #374151;
  --pill-bg: rgba(0, 0, 0, 0.2);
  --pill-active: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(0, 0, 0, 0.3);
  --chip-bg: rgba(0, 0, 0, 0.3);
  --cta-bg: #000000;
  --cta-hover: #111827;
  --cta-text: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.16);
  --hero-bg: #000;
  --hero-veil: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.35) 70%, var(--bg) 100%);
  --aurora-1: rgba(94, 224, 168, 0.55);
  --aurora-2: rgba(20, 184, 122, 0.5);
  --aurora-3: rgba(45, 212, 191, 0.35);
  --aurora-opacity: 0.85;
  --grain-opacity: 0.06;
  --stroke-num: rgba(255, 255, 255, 0.12);
  --marquee-text: rgba(255, 255, 255, 0.5);
  --footer-bg: #08140f;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --card-shadow: none;
  --hover-shadow: 0 30px 60px -25px rgba(94, 224, 168, 0.35);
  --glow: rgba(94, 224, 168, 0.13);
  --veil-top: rgba(6, 16, 12, 0.4);
  --cover-fallback: radial-gradient(circle at 30% 20%, rgba(94, 224, 168, 0.35), transparent 55%), radial-gradient(circle at 80% 90%, rgba(20, 184, 122, 0.35), transparent 50%), #0a1a13;
  --cover-letter: rgba(255, 255, 255, 0.85);
  --toast-bg: rgba(13, 26, 20, 0.94);
  --side-bg: #06100c;
  --admin-bg: #07110d;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23aab' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 0.5em; font-weight: 800; text-wrap: balance; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.center { text-align: center; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 1024px) { .container { padding-left: 32px; padding-right: 32px; } }
.narrow { max-width: 760px; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.75em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 0.5em 1.1em; font-size: 0.85rem; }
.btn-lg { padding: 0.95em 2em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px rgba(20, 184, 122, 0.6);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(20, 184, 122, 0.7); transform: translateY(-2px); }
.btn-dark { background: var(--cta-bg); color: var(--cta-text); box-shadow: 0 12px 30px -14px rgba(13, 31, 24, 0.6); }
.btn-dark:hover { background: var(--cta-hover); transform: translateY(-2px); }
.btn-light { background: #fff; color: #0d1f18; box-shadow: 0 10px 30px -14px rgba(13, 31, 24, 0.4); }
.btn-light:hover { background: #e8fbf2; transform: translateY(-2px); }
.btn-glass { background: var(--glass-bg); border-color: var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: var(--glass-hover); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--accent-strong); color: var(--text); }
.btn-danger { background: rgba(217, 59, 59, 0.1); color: var(--err); border-color: rgba(217, 59, 59, 0.35); }
.btn-danger:hover { background: var(--err); color: #fff; }
.danger-text { color: var(--err) !important; }
.btn .arrow-move { transition: transform 0.35s var(--ease); }
.btn:hover .arrow-move { transform: translateX(-5px); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--glass-bg);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.4s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--accent-strong); background: var(--accent-soft); }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.danger:hover { border-color: var(--err); color: var(--err); background: rgba(217, 59, 59, 0.08); }
.badge {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 99px; background: var(--accent-strong); color: #fff;
  font-size: 0.72rem; font-weight: 800; display: grid; place-items: center; line-height: 1;
  animation: pop 0.5s var(--ease);
}

/* theme toggle */
.theme-btn .i-moon { display: block; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
.theme-btn:hover { transform: rotate(-20deg); }

/* ---------------- header ---------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, body:not(.has-hero) .site-header {
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.logo-mark { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--text); display: grid; place-items: center; transition: transform 0.6s var(--ease); }
.logo-mark span { width: 12px; height: 12px; border-radius: 50%; background: var(--text); transition: transform 0.6s var(--ease), background 0.4s; }
.logo:hover .logo-mark { transform: rotate(180deg); }
.logo:hover .logo-mark span { transform: scale(1.3); background: var(--accent-strong); }

.nav-pill {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  background: var(--pill-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-pill a {
  position: relative;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.3s, background 0.3s;
}
.nav-pill a:hover { color: var(--text); }
.nav-pill a.is-active { color: var(--text); background: var(--pill-active); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-account { background: var(--glass-bg); }
.nav-account span { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.mobile-menu {
  margin: 0 16px 16px;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid var(--pill-border);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  animation: drop 0.35s var(--ease);
}
.mobile-menu a { padding: 12px 16px; border-radius: 14px; color: var(--text-2); }
.mobile-menu a:hover, .mobile-menu a.is-active { background: var(--surface-2); color: var(--text); }
@media (min-width: 640px) { .nav-account span { display: inline; } }
@media (min-width: 1024px) {
  .nav-pill { display: flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}

.page-progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 60; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform-origin: right; transform: scaleX(var(--p, 0)); pointer-events: none; }

main { display: block; }
body:not(.has-hero):not(.admin) main { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-bg);
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--hero-bg); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-video.is-ready { opacity: 1; }
/* light theme: blend the video into the bright backdrop so even a dark clip reads as light, glowing motion */
:root:not([data-theme="dark"]) .hero-video { mix-blend-mode: screen; }
:root:not([data-theme="dark"]) .hero-video.is-ready { opacity: 0.85; }
.hero-shade { position: absolute; inset: 0; background: var(--hero-veil); }
.hero-grain {
  position: absolute; inset: -50%;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: var(--grain-opacity);
  animation: grain 8s steps(10) infinite;
  pointer-events: none;
}
.hero-dots { position: absolute; inset: 0; background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%); opacity: 0.6; }

.aurora { position: absolute; inset: 0; overflow: hidden; filter: blur(60px) saturate(130%); opacity: var(--aurora-opacity); }
.aurora span { position: absolute; border-radius: 50%; }
.aurora span:nth-child(1) { width: 55vmax; height: 55vmax; background: radial-gradient(circle, var(--aurora-1), transparent 65%); top: -15vmax; right: -10vmax; animation: float1 18s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 45vmax; height: 45vmax; background: radial-gradient(circle, var(--aurora-2), transparent 65%); bottom: -20vmax; left: -10vmax; animation: float2 22s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 35vmax; height: 35vmax; background: radial-gradient(circle, var(--aurora-3), transparent 65%); top: 30%; left: 35%; animation: float3 26s ease-in-out infinite alternate; }
.aurora.small { opacity: calc(var(--aurora-opacity) * 0.6); }

.hero-inner { position: relative; display: flex; flex-direction: column; padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px); padding-bottom: 40px; }
.hero-top { display: grid; gap: 16px; }
.hero-top p { margin: 0; color: var(--text-2); font-size: 0.9rem; max-width: 30rem; }
.hero-stat { font-weight: 700; }
@media (min-width: 768px) { .hero-top p { font-size: 1rem; } }
@media (min-width: 1024px) {
  .hero-top { grid-template-columns: 1fr 1fr; align-items: start; }
  .hero-stat { justify-self: end; text-align: left; }
}
.hero-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px; padding: 6px 16px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--glass-bg); backdrop-filter: blur(6px);
  font-size: 0.78rem; color: var(--text-2);
}
@media (min-width: 768px) { .eyebrow { font-size: 0.875rem; } }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 0 rgba(94, 224, 168, 0.7); animation: pulse 2s infinite; }
.hero-title { margin: 0; font-size: clamp(3.2rem, 13vw, 7.5rem); line-height: 1.12; font-weight: 800; }
.hero-title .line { display: block; padding-bottom: 0.06em; }
.hero-title .line:first-child { font-weight: 500; color: var(--text); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (min-width: 768px) { .hero-actions .btn-lg { padding: 1em 2.2em; } }

.scroll-cue { align-self: center; width: 28px; height: 46px; border-radius: 99px; border: 2px solid var(--line-strong); display: grid; justify-items: center; padding-top: 8px; }
.scroll-cue span { width: 4px; height: 9px; border-radius: 4px; background: var(--text); animation: scrollcue 1.8s var(--ease) infinite; }

/* shiny gradient text */
.shiny {
  background-image: linear-gradient(100deg, var(--shine-base) 0%, var(--shine-base) 35%, var(--shine-hi) 50%, var(--shine-base) 65%, var(--shine-base) 100%);
  background-size: 200% 100%;
  background-repeat: repeat-x;
  background-position: 150% center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
}
.hero-title .shiny { display: inline-block; }

/* entrance animations */
.anim-in, .anim-up { animation: fadeIn 0.9s var(--ease) both; animation-delay: var(--d, 0s); }
.anim-up { animation-name: riseIn; animation-duration: 1.1s; }
.hero-title .line.shiny.anim-up { animation: riseIn 1.1s var(--ease) both var(--d, 0s), shine 3s linear infinite calc(var(--d, 0s) + 1s); }

/* ---------------- marquee ---------------- */

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding-block: 18px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 28px; padding-inline-end: 28px; }
.marquee-group a { font-size: 1.35rem; font-weight: 700; color: var(--marquee-text); white-space: nowrap; transition: color 0.3s; }
.marquee-group a:hover { color: var(--accent-strong); }
.marquee .star { color: var(--accent-strong); font-size: 0.9rem; }

/* ---------------- sections ---------------- */

.section { padding-block: 80px; }
.section-tight { padding-block: 32px 80px; }
@media (min-width: 1024px) { .section { padding-block: 112px; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); margin: 0; }
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--accent-strong); margin-bottom: 8px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; transition: color 0.3s, gap 0.3s var(--ease); }
.link-arrow:hover { color: var(--accent-strong); gap: 14px; }

.page-hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(60% 60% at 70% 30%, var(--glow), transparent 70%), radial-gradient(50% 50% at 20% 60%, rgba(20, 184, 122, 0.1), transparent 70%); pointer-events: none; animation: breathe 10s ease-in-out infinite alternate; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 7vw, 4.5rem); margin: 0; line-height: 1.2; }
.page-hero p { color: var(--text-2); margin: 10px 0 0; }
.page-hero.small { padding: 48px 0 16px; }
.page-hero.small h1 { font-size: clamp(2rem, 5vw, 3.2rem); }

/* reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------- cards & course grid ---------------- */

.card {
  position: relative;
  background: linear-gradient(180deg, var(--card-from), var(--card-to));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
}
.course-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.course-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease); }
.course-card:hover { transform: translateY(-6px); border-color: rgba(11, 138, 94, 0.35); box-shadow: var(--hover-shadow); }
.card-glow { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 45%); opacity: 0; transition: opacity 0.4s; }
.course-card:hover .card-glow { opacity: 1; }
.course-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-solid); max-width: 100%; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.course-card:hover .course-cover img { transform: scale(1.06); }
.cover-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: var(--cover-fallback); }
.cover-fallback span { font-size: 4rem; font-weight: 800; color: var(--cover-letter); }
.course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.course-body p { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.88rem; flex-wrap: wrap; }
.course-meta .go { display: inline-flex; gap: 6px; align-items: center; color: var(--accent-strong); font-weight: 700; }
.play-badge { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(13, 31, 24, 0.5); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.4); transition: transform 0.4s var(--ease), background 0.3s; }
.course-card:hover .play-badge { transform: scale(1.12); background: var(--accent-strong); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.8rem; color: var(--text-2); background: var(--chip-bg); transition: all 0.3s; }
.chip:hover { color: var(--text); border-color: var(--accent-strong); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-float { position: absolute; top: 12px; inset-inline-start: 12px; backdrop-filter: blur(8px); }
.chip-owned { position: absolute; top: 12px; inset-inline-end: 12px; background: rgba(15, 157, 99, 0.16); border-color: rgba(15, 157, 99, 0.5); color: var(--ok); backdrop-filter: blur(8px); font-weight: 700; }

.price { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: 1.05rem; font-weight: 800; }
.price s { color: var(--muted); font-size: 0.82rem; }
.price .off { font-style: normal; font-size: 0.75rem; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: rgba(217, 59, 59, 0.12); color: var(--err); }
.price-free { color: var(--ok); }

/* ---------------- steps / features / stats ---------------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--card-shadow); overflow: hidden; transition: border-color 0.4s, transform 0.5s var(--ease), box-shadow 0.5s; }
.step:hover { border-color: rgba(11, 138, 94, 0.35); transform: translateY(-4px); box-shadow: var(--hover-shadow); }
.step > .icon { width: 30px; height: 30px; color: var(--accent-strong); margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }
.step-num { position: absolute; top: -10px; inset-inline-end: 14px; font-size: 6rem; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--stroke-num); }

.features { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--surface-solid); background: var(--surface); padding: 32px 28px; transition: background 0.4s; }
.feature:hover { background: var(--surface-2); }
.feature .icon { width: 28px; height: 28px; color: var(--accent-strong); margin-bottom: 14px; transition: transform 0.5s var(--ease); }
.feature:hover .icon { transform: translateY(-3px) scale(1.08); }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; font-size: 0.93rem; }

.stats-band { padding-block: 40px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.stats b { display: block; font-size: clamp(2.2rem, 7vw, 4.5rem); font-weight: 900; line-height: 1.2; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 0.9rem; }

.cta-band { position: relative; overflow: hidden; text-align: center; padding: 72px 24px; border-radius: 32px; border: 1px solid rgba(11, 138, 94, 0.2); background: linear-gradient(135deg, #06291c, #0b4a33); color: #fff; }
.cta-band h2 { font-size: clamp(1.9rem, 5vw, 3.4rem); position: relative; color: #fff; }
.cta-band .shiny { --shine-base: #5ee0a8; --shine-hi: #ffffff; }
.cta-band p { color: rgba(255, 255, 255, 0.82); position: relative; margin-bottom: 28px; }
.cta-band .btn { position: relative; }
.cta-glow { position: absolute; width: 600px; height: 600px; left: 50%; top: 50%; translate: -50% -50%; background: conic-gradient(from 0deg, transparent, rgba(94, 224, 168, 0.45), transparent 40%, rgba(20, 184, 122, 0.45), transparent 70%); filter: blur(70px); animation: spin 12s linear infinite; }

.empty { text-align: center; padding: 56px 20px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty > .icon { width: 40px; height: 40px; color: var(--accent-strong); margin: 0 auto 14px; display: block; }
.empty.big { padding: 80px 20px; border: 0; }
.empty.big h1, .empty.big h2 { color: var(--text); }
.err-code { display: block; font-size: clamp(5rem, 18vw, 10rem); font-weight: 900; line-height: 1; margin-bottom: 10px; }

/* ---------------- forms / filters / pager ---------------- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; padding: 10px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--card-shadow); }
.search-field { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 14px; background: var(--input-bg); border: 1px solid var(--line); }
.search-field input { flex: 1; min-width: 0; border: 0 !important; background: none !important; padding: 11px 0 !important; outline: none; box-shadow: none !important; }
.search-field .icon { color: var(--muted); }
select, input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), textarea {
  background: var(--input-bg);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  max-width: 100%;
}
select { padding-inline-end: 34px; appearance: none; background-image: var(--select-arrow); background-repeat: no-repeat; background-position: left 14px center; }
select option { background: var(--surface-solid); color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 4px var(--accent-soft); }
input:disabled { opacity: 0.6; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--text-2); background: var(--surface); }
.pager a:hover { border-color: var(--accent-strong); color: var(--text); }
.pager a.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------------- course page ---------------- */

.course-hero { position: relative; overflow: hidden; padding: 56px 0 48px; }
.course-hero-bg { position: absolute; inset: 0; z-index: -1; }
.course-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(50px) saturate(140%); opacity: 0.4; transform: scale(1.2); }
.course-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--veil-top), var(--bg)); }
.course-hero-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .course-hero-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent-strong); }
.course-intro h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.25; }
.lead { font-size: 1.1rem; color: var(--text-2); max-width: 46rem; }
.meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.meta-row span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass-bg); backdrop-filter: blur(6px); font-size: 0.85rem; color: var(--text-2); }
.meta-row .icon { color: var(--accent-strong); }
.buy-box { padding: 0; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
@media (min-width: 1024px) { .buy-box { position: sticky; top: calc(var(--header-h) + 20px); } }
.buy-cover { aspect-ratio: 16 / 9; overflow: hidden; }
.buy-cover img { width: 100%; height: 100%; object-fit: cover; }
.buy-body { padding: 22px; display: grid; gap: 12px; }
.buy-body .price b { font-size: 1.6rem; }
.buy-body form { display: grid; gap: 10px; }
.buy-list { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 0.9rem; color: var(--text-2); }
.buy-list li { display: flex; gap: 10px; align-items: center; }
.buy-list .icon { color: var(--accent-strong); }
.hint { font-size: 0.84rem; color: var(--muted); margin: 0; }
.hint.ok { color: var(--ok); display: flex; gap: 6px; align-items: center; }
.hint.err { color: var(--err); }

.course-content { display: grid; gap: 28px; }
@media (min-width: 1024px) { .course-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.prose { color: var(--text-2); font-size: 1.02rem; min-width: 0; }
.prose h2 { color: var(--text); font-size: 1.5rem; }
.prose h3 { color: var(--text); font-size: 1.2rem; margin-top: 1.4em; }
.prose ul { padding-inline-start: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent-strong); }
.curriculum { min-width: 0; }
.curriculum h2 { font-size: 1.5rem; display: flex; align-items: baseline; gap: 10px; }
.curriculum h2 small { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.lessons { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lesson { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease); }
.lesson:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateX(-3px); }
.lesson.is-preview { border-color: rgba(11, 138, 94, 0.3); }
.lesson-idx { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.lesson-icon { color: var(--accent-strong); display: grid; }
.lesson-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; overflow-wrap: anywhere; }
.lesson-title small { color: var(--muted); font-size: 0.78rem; }
.lesson-action { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 0.8rem; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); border: 0; cursor: pointer; white-space: nowrap; transition: background 0.3s, color 0.3s; }
.lesson-action:hover { background: var(--accent-strong); color: #fff; }
.lesson-lock { color: var(--muted); display: grid; }

.mobile-buy { position: fixed; inset: auto 0 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--header-bg); backdrop-filter: blur(16px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.4s var(--ease); }
.mobile-buy.is-visible { transform: none; }
@media (min-width: 1024px) { .mobile-buy { display: none; } }
.course-page .site-footer { padding-bottom: 90px; }
@media (min-width: 1024px) { .course-page .site-footer { padding-bottom: 0; } }

.player-modal { width: min(960px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 22px; background: #000; color: #fff; overflow: hidden; }
.player-modal .icon-btn { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.25); }
.player-modal[open] { animation: zoomIn 0.4s var(--ease); }
.player-modal::backdrop { background: rgba(3, 18, 12, 0.6); backdrop-filter: blur(6px); }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.player-body video { width: 100%; max-height: 75vh; background: #000; }
.player-body audio { width: 100%; margin: 24px 0; }

/* ---------------- cart ---------------- */

.cart-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .cart-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.cart-items { display: grid; gap: 14px; }
.cart-item { display: flex; align-items: center; gap: 16px; padding: 14px; }
.cart-thumb { width: 120px; flex: none; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; }
.cart-thumb img, .cart-thumb .cover-fallback { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .cover-fallback span { font-size: 1.8rem; }
.cart-info { flex: 1; min-width: 0; }
.cart-info h3 { font-size: 1rem; margin-bottom: 4px; }
@media (max-width: 520px) { .cart-thumb { width: 84px; } }
.summary { display: grid; gap: 16px; }
@media (min-width: 1024px) { .summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.summary h2 { font-size: 1.25rem; margin: 0; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; min-width: 0; }
.totals { margin: 0; display: grid; gap: 10px; }
.totals div { display: flex; justify-content: space-between; gap: 10px; color: var(--text-2); }
.totals dd { margin: 0; font-weight: 600; }
.totals .disc dd { color: var(--ok); }
.totals .grand { padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); font-size: 1.12rem; }
.totals .grand dd { font-weight: 900; }

/* ---------------- result / auth ---------------- */

.result { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 40px 24px; }
.result h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
.result > p { color: var(--text-2); max-width: 32rem; }
.result-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px; animation: pop 0.7s var(--ease) both; }
.result-icon .icon { width: 42px; height: 42px; stroke-width: 2.5; }
.result.ok .result-icon { background: rgba(15, 157, 99, 0.12); color: var(--ok); box-shadow: 0 0 0 10px rgba(15, 157, 99, 0.06), 0 0 60px rgba(15, 157, 99, 0.25); }
.result.fail .result-icon { background: rgba(217, 59, 59, 0.1); color: var(--err); }
.result-items { list-style: none; padding: 0; margin: 8px 0 18px; display: grid; gap: 6px; color: var(--text-2); }
.kv { margin: 10px 0; display: grid; gap: 8px; width: 100%; max-width: 440px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line-strong); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
td.row-actions { justify-content: flex-start; }

.auth { position: relative; min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 40px 16px; overflow: hidden; }
.auth-card { width: min(440px, 100%); padding: 36px 28px; backdrop-filter: blur(20px); background: var(--surface); box-shadow: var(--shadow); }
.auth-card .logo { margin-bottom: 22px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 4px; }
.auth-switch { margin: 18px 0 0; text-align: center; color: var(--muted); }
.auth-switch a { color: var(--accent-strong); font-weight: 700; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 0.88rem; color: var(--text-2); font-weight: 600; }
.field small { color: var(--muted); font-size: 0.8rem; }
.field input, .field select, .field textarea { width: 100%; }
textarea { resize: vertical; line-height: 1.8; }
.alert { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; font-size: 0.92rem; margin-bottom: 14px; }
.alert.err { background: rgba(217, 59, 59, 0.08); border: 1px solid rgba(217, 59, 59, 0.3); color: var(--err); }
.alert.warn { background: rgba(178, 107, 0, 0.08); border: 1px solid rgba(178, 107, 0, 0.3); color: var(--warn); }

/* ---------------- account ---------------- */

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 22px; padding: 5px; border: 1px solid var(--pill-border); border-radius: 999px; width: fit-content; max-width: 100%; background: var(--pill-bg); }
.tabs a, .tab-form button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; color: var(--text-2); background: none; border: 0; cursor: pointer; transition: background 0.3s, color 0.3s; }
.tabs a:hover, .tab-form button:hover { color: var(--text); }
.tabs a.is-active { background: var(--text); color: var(--bg); }
.tab-form { margin: 0; }
.two-col { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }

.table-wrap { padding: 0; overflow-x: auto; margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
.table th { text-align: start; font-weight: 600; color: var(--muted); font-size: 0.8rem; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.2s; }
.table tbody tr:hover { background: var(--surface-2); }
.table a { color: var(--accent-strong); }
.status { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.status-ok { background: rgba(15, 157, 99, 0.12); color: var(--ok); }
.status-warn { background: rgba(178, 107, 0, 0.12); color: var(--warn); }
.status-err { background: rgba(217, 59, 59, 0.1); color: var(--err); }
.status-muted { background: var(--surface-2); color: var(--muted); }
.status-info { background: rgba(109, 79, 214, 0.12); color: var(--info); }

/* ---------------- learn ---------------- */

.learn { padding: 28px 0 80px; }
.learn-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1100px) { .learn-grid { grid-template-columns: minmax(0, 1fr) 360px; } }
.learn-main { min-width: 0; }
.player { position: relative; border-radius: 20px; overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: var(--shadow); }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.watermark { position: absolute; top: 10%; left: 8%; pointer-events: none; user-select: none; font-size: clamp(0.7rem, 1.6vw, 0.95rem); font-weight: 700; color: rgba(255, 255, 255, 0.3); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); direction: ltr; transition: top 2.5s var(--ease), left 2.5s var(--ease); z-index: 2; }
.audio-player { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.audio-player audio { flex: 1; min-width: 220px; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 36px; }
.eq i { width: 5px; border-radius: 3px; background: var(--accent-strong); animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: 0.15s; } .eq i:nth-child(3) { animation-delay: 0.3s; } .eq i:nth-child(4) { animation-delay: 0.45s; } .eq i:nth-child(5) { animation-delay: 0.6s; }
.doc-preview { padding: 0; overflow: hidden; }
.doc-preview iframe { width: 100%; height: 75vh; border: 0; background: #fff; display: block; }
.doc-preview.file-only { padding: 60px 20px; text-align: center; display: grid; justify-items: center; }
.doc-preview.file-only .icon { width: 48px; height: 48px; color: var(--accent-strong); }
.learn-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 20px 0; flex-wrap: wrap; }
.learn-title h1 { font-size: 1.5rem; margin-bottom: 2px; }
.learn-side h2 { font-size: 1.15rem; margin-bottom: 0; }
@media (min-width: 1100px) { .learn-side { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; } }
.lessons.compact .lesson { padding: 0; gap: 0; }
.lessons.compact .lesson > a:first-child { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.lessons.compact .lesson .icon-btn { margin-inline-end: 8px; }
.lesson.is-current { border-color: var(--accent-strong); background: var(--accent-soft); }
.lesson.is-current .lesson-idx { background: var(--accent-strong); color: #fff; }

/* ---------------- contact ---------------- */

.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.contact-card { display: grid; gap: 4px; transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s; }
.contact-card:hover { transform: translateY(-4px); border-color: rgba(11, 138, 94, 0.35); box-shadow: var(--hover-shadow); }
.contact-card .icon { width: 28px; height: 28px; color: var(--accent-strong); margin-bottom: 8px; }
.contact-card span { color: var(--muted); font-size: 0.85rem; }
.contact-card b { overflow-wrap: anywhere; }

/* ---------------- footer ---------------- */

.site-footer { border-top: 1px solid var(--line); background: var(--footer-bg); padding-top: 56px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); padding-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 14px; max-width: 26rem; }
.site-footer h4 { font-size: 0.95rem; margin-bottom: 14px; }
.site-footer .footer-grid > div:not(.footer-brand):not(.enamad) { display: grid; gap: 8px; align-content: start; font-size: 0.9rem; color: var(--text-2); }
.site-footer .footer-grid a:hover { color: var(--accent-strong); }
.site-footer .footer-grid span, .site-footer .footer-grid a { display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.enamad img { max-width: 120px; background: #fff; border-radius: 12px; padding: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; }

/* ---------------- toasts ---------------- */

.toasts { position: fixed; z-index: 90; top: calc(var(--header-h) + 10px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--toast-bg); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: 0.92rem; animation: toastIn 0.6s var(--ease) both; }
.toast-success .icon { color: var(--ok); }
.toast-error .icon { color: var(--err); }
.toast.is-leaving { animation: toastOut 0.4s var(--ease) both; }
.admin .toasts { top: 16px; }

/* ---------------- admin ---------------- */

.admin { background: var(--admin-bg); }
.admin-layout { min-height: 100vh; display: grid; }
@media (min-width: 1024px) { .admin-layout { grid-template-columns: 260px minmax(0, 1fr); } }
.admin-side { position: fixed; inset: 0 0 0 auto; width: 270px; z-index: 70; padding: 24px 16px; background: var(--side-bg); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; transform: translateX(100%); transition: transform 0.4s var(--ease); overflow-y: auto; }
.admin-side.is-open { transform: none; box-shadow: var(--shadow); }
@media (min-width: 1024px) { .admin-side { position: sticky; top: 0; height: 100vh; transform: none; width: auto; } .admin-menu { display: none !important; } }
.admin-side .logo { padding: 0 8px; }
.admin-side nav { display: grid; gap: 4px; }
.admin-side nav a, .admin-side-foot a, .admin-side-foot button { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; color: var(--text-2); font-size: 0.93rem; background: none; border: 0; cursor: pointer; width: 100%; text-align: start; transition: background 0.25s, color 0.25s; }
.admin-side nav a:hover, .admin-side-foot a:hover, .admin-side-foot button:hover { background: var(--surface-2); color: var(--text); }
.admin-side nav a.is-active { background: var(--accent-soft); color: var(--text); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(11, 138, 94, 0.25); }
.admin-side nav a.is-active .icon { color: var(--accent-strong); }
.admin-side-foot { margin-top: auto; display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.admin-side-foot form { margin: 0; }
.admin-main { min-width: 0; }
.admin-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 16px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); background: var(--header-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.admin-top h1 { font-size: 1.25rem; margin: 0; flex: 1; }
.admin-actions { display: flex; gap: 8px; align-items: center; }
.admin-content { padding: 24px max(20px, env(safe-area-inset-right, 0px)) 80px max(20px, env(safe-area-inset-left, 0px)); display: grid; gap: 20px; align-content: start; }
@media (min-width: 1024px) { .admin-content { padding-inline: 32px; } }
.admin .card { animation: fadeIn 0.6s var(--ease) both; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2 { font-size: 1.05rem; margin: 0; }
.card-head a { color: var(--accent-strong); font-size: 0.88rem; }

.kpis { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.kpi { display: grid; gap: 4px; overflow: hidden; }
.kpi::after { content: ""; position: absolute; width: 160px; height: 160px; inset-inline-end: -50px; top: -70px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); }
.kpi span { color: var(--muted); font-size: 0.85rem; }
.kpi b { font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--text-2); font-size: 0.8rem; }
.chart-card .bars { width: 100%; height: 170px; display: block; }
.chart-card .bars rect { fill: var(--accent-strong); opacity: 0.7; transform-origin: bottom; transform-box: fill-box; animation: growUp 0.9s var(--ease) both; transition: opacity 0.2s; }
.chart-card .bars rect:hover { opacity: 1; }
.chart-axis { direction: ltr; display: flex; justify-content: space-between; color: var(--muted); font-size: 0.78rem; margin-top: 6px; }
.rank, .list { list-style: none; padding: 0; margin: 0; display: grid; }
.rank li, .list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.rank li:last-child, .list li:last-child { border-bottom: 0; }
.rank { counter-reset: r; }
.rank li span::before { counter-increment: r; content: counter(r, persian) "."; color: var(--accent-strong); font-weight: 800; margin-inline-end: 8px; }
.list li form { margin: 0; }
.list a { color: var(--text-2); }
.list a:hover { color: var(--accent-strong); }

.thumb { width: 72px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-solid); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.lg { width: 200px; }

.grid-form { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .grid-form { grid-template-columns: 1fr 1fr; } .grid-form .span-2 { grid-column: span 2; } .grid-form.cols-4 { grid-template-columns: repeat(3, 1fr); } .grid-form .span-3 { grid-column: 1 / -1; } }
.grid-form h2 { font-size: 1.05rem; margin: 0; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.grow { flex: 1 1 220px; min-width: 0; }
.inline-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 0; }
.inline-form input, .inline-form select { min-width: 0; }
.w-xs { width: 80px; }
.w-sm { width: 130px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sticky-actions { position: sticky; bottom: 16px; z-index: 5; justify-content: flex-end; }
.checks { display: flex; gap: 24px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9rem; }
.check input { accent-color: var(--accent-strong); width: 17px; height: 17px; }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 0.93rem; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 46px; height: 26px; flex: none; border-radius: 99px; background: var(--line-strong); position: relative; transition: background 0.3s; }
.switch span::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.35s var(--ease); }
.switch input:checked + span { background: var(--accent-strong); }
.switch input:checked + span::after { transform: translateX(-20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.cover-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
input[type="file"] { font-size: 0.85rem; color: var(--muted); max-width: 100%; }
input[type="file"]::file-selector-button { font: inherit; margin-inline-end: 10px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); cursor: pointer; }
.video-current { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.video-current video { width: 160px; border-radius: 10px; }

.uploader { margin-bottom: 20px; }
.dropzone { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 20px; border: 2px dashed var(--line-strong); border-radius: 20px; cursor: pointer; transition: border-color 0.3s, background 0.3s; position: relative; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent-strong); background: var(--accent-soft); }
.dropzone > .icon { width: 34px; height: 34px; color: var(--accent-strong); transition: transform 0.4s var(--ease); }
.dropzone:hover > .icon, .dropzone.is-over > .icon { transform: translateY(-4px); }
.dropzone small { color: var(--muted); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-queue { display: grid; gap: 8px; margin-top: 12px; }
.upload-item { display: grid; gap: 6px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 0.85rem; }
.upload-item .row { display: flex; justify-content: space-between; gap: 10px; }
.upload-item .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 0.2s; }
.upload-item.done .progress i { background: var(--ok); }
.upload-item.fail { border-color: rgba(217, 59, 59, 0.4); }
.upload-item.fail .progress i { background: var(--err); }

.inbox { padding: 16px; border-radius: 16px; background: rgba(178, 107, 0, 0.05); border: 1px solid rgba(178, 107, 0, 0.2); margin-bottom: 20px; display: grid; gap: 10px; }
.inbox h3 { font-size: 0.95rem; margin: 0; }
.inbox-list { display: grid; gap: 6px; }

.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.file-row { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.file-row > form:last-child { margin: 0; }
.file-form { flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; min-width: 0; }
.file-form input { padding: 8px 10px; }
.file-kind { color: var(--accent-strong); display: grid; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-color: rgba(217, 59, 59, 0.25); }
.danger-zone h3 { font-size: 1rem; margin: 0; }
.danger-zone p { margin: 0; font-size: 0.85rem; }
.edit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.edit-list li { display: flex; align-items: center; gap: 10px; }
.edit-list li > form:first-child { flex: 1; }
.manual-pay { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.manual-pay h3 { font-size: 1rem; margin: 0; }
.manual-pay p { font-size: 0.85rem; margin: 0; }

/* ---------------- keyframes ---------------- */

@keyframes shine { from { background-position: 150% center; } to { background-position: -50% center; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(40px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes float1 { to { transform: translate(-12vmax, 10vmax) scale(1.15); } }
@keyframes float2 { to { transform: translate(14vmax, -8vmax) scale(0.9); } }
@keyframes float3 { to { transform: translate(-10vmax, -12vmax) scale(1.25); } }
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-5%, 4%); } 40% { transform: translate(4%, -6%); } 60% { transform: translate(-3%, 3%); } 80% { transform: translate(6%, 2%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(11, 138, 94, 0.5); } 70% { box-shadow: 0 0 0 10px rgba(11, 138, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 138, 94, 0); } }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes breathe { from { opacity: 0.6; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px) scale(0.96); } }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
@keyframes growUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .shiny { background-position: 50% center; }
  .hero-video { display: none; }
}

/* ---------------- course coverflow (home hero) ---------------- */

.cf {
  --cf-w: 250px;
  position: relative;
  height: 410px;
  margin-inline: calc(50% - 50vw);
  perspective: 1300px;
  perspective-origin: 50% 30%;
  overflow-x: clip;
  overflow-y: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  user-select: none;
  touch-action: pan-y;
}
@media (max-width: 640px) { .cf { --cf-w: 210px; height: 370px; } }
.has-hero .hero-inner:has(.cf) .hero-center { padding-block: 24px 32px; }
.cf-track { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.cf-item { pointer-events: auto; }
.cf-item {
  position: absolute;
  top: 18px;
  left: 0;
  width: var(--cf-w);
  transform-style: preserve-3d;
  will-change: transform;
  -webkit-user-drag: none;
}
.cf-item.is-hover { z-index: 5; }
.cf-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 22px 44px -22px rgba(13, 48, 34, 0.45);
  transform: rotateY(0deg) scale(1);
  transform-origin: 50% 0;
  transition: transform 0.55s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.cf-item.is-hover .cf-card {
  transform: rotateY(var(--cf-counter, 0deg)) translateY(-10px) scale(1.14);
  border-color: rgba(11, 138, 94, 0.45);
  box-shadow: 0 40px 70px -26px rgba(11, 138, 94, 0.5);
}
.cf-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-solid); }
.cf-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); pointer-events: none; }
.cf-item.is-hover .cf-cover img { transform: scale(1.07); }
.cf-cover .cover-fallback span { font-size: 3rem; }
.cf-head { display: grid; gap: 2px; padding: 12px 14px 12px; text-align: start; }
.cf-head h3 { font-size: 0.95rem; margin: 0; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-head .price b { font-size: 0.92rem; }
.cf-head .price s { font-size: 0.75rem; }
/* details that unfold under the card on hover */
.cf-info { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.cf-item.is-hover .cf-info { grid-template-rows: 1fr; }
.cf-info-inner { overflow: hidden; min-height: 0; padding: 0 14px; opacity: 0; transform: translateY(-6px); transition: opacity 0.35s, transform 0.5s var(--ease), padding 0.5s var(--ease); }
.cf-item.is-hover .cf-info-inner { opacity: 1; transform: none; padding: 0 14px 14px; transition-delay: 0.08s; }
.cf-info p { margin: 0 0 8px; font-size: 0.8rem; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cf-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cf-meta span { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; color: var(--text-2); padding: 2px 8px; border-radius: 99px; background: var(--surface-2); }
.cf-meta .icon { width: 0.95em; height: 0.95em; color: var(--accent-strong); }
.cf-go { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 99px; font-size: 0.82rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent-strong), var(--accent-2)); }
.cf-go .icon { transition: transform 0.35s var(--ease); }
.cf-item:hover .cf-go .icon { transform: translateX(-4px); }
.cf.is-static { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
.cf.is-static .cf-track { position: relative; display: flex; gap: 18px; padding: 18px 20px; }
.cf.is-static .cf-item { position: relative; top: 0; flex: none; }
@media (prefers-reduced-motion: reduce) { .cf-card, .cf-info, .cf-info-inner { transition: none; } }

/* =========================================================
   Cinematic scroll scenes
   ========================================================= */

/* split headings: words rise from behind a mask */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split .w > span { display: inline-block; }
.js .split .w > span { transform: translateY(110%) rotate(4deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .split.in .w > span { transform: none; }

/* image curtain reveal on course cards */
.js .course-card.reveal .course-cover img { clip-path: inset(0 0 100% 0); transform: scale(1.18); transition: clip-path 1.2s var(--ease), transform 1.6s var(--ease); transition-delay: calc(var(--rd, 0s) + 0.15s); }
.js .course-card.reveal.in .course-cover img { clip-path: inset(0 0 0 0); transform: scale(1); }
.js .course-card.reveal.in:hover .course-cover img { transform: scale(1.06); }

/* hero scroll scene */
.hero .aurora, .hero-dots { will-change: transform; }

/* horizontal scroll: featured courses */
.hs { position: relative; padding-block: 80px 40px; }
.hs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.hs-head h2 { font-size: clamp(1.9rem, 5vw, 3.6rem); margin: 0; }
.hs-viewport { overflow: hidden; }
.hs-track { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); padding-inline: max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-left, 0px)); max-width: var(--container); margin-inline: auto; }
.hs-more { display: grid; place-content: center; justify-items: center; gap: 8px; min-height: 260px; border-radius: var(--radius); border: 1px dashed var(--line-strong); color: var(--text-2); transition: border-color 0.4s, background 0.4s; }
.hs-more span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--cta-bg); color: var(--cta-text); transition: transform 0.5s var(--ease); }
.hs-more b { font-size: 1.15rem; color: var(--text); }
.hs-more small { color: var(--muted); }
.hs-more:hover { border-color: var(--accent-strong); background: var(--accent-soft); }
.hs-more:hover span { transform: translateX(-8px) scale(1.08); }
.hs-progress { display: none; height: 2px; background: var(--line); border-radius: 2px; margin-top: 34px; overflow: hidden; }
.hs-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform-origin: right; transform: scaleX(0); }
/* pinned mode (enabled by JS on wide screens) */
.hs.is-pinned { padding: 0; }
.hs.is-pinned .hs-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); overflow: hidden; }
.hs.is-pinned .hs-track { display: flex; width: max-content; max-width: none; padding-inline: max(32px, calc((100vw - var(--container)) / 2 + 32px)); will-change: transform; }
.hs.is-pinned .hs-track > * { width: min(380px, 70vw); flex: none; }
.hs.is-pinned .hs-progress { display: block; }

/* pinned story: three steps */
.story { position: relative; height: 320vh; }
.story-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.story-sticky::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 75% 50%, var(--glow), transparent 70%); opacity: 0.8; pointer-events: none; }
.story-inner { position: relative; display: grid; gap: 28px; padding-top: var(--header-h); }
.story-head h2 { font-size: clamp(1.9rem, 5vw, 3.6rem); margin: 0; max-width: 18ch; }
.story-body { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .story-body { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.story-visual { position: relative; width: min(340px, 70vw); aspect-ratio: 1; justify-self: center; }
.story-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.story-ring circle { fill: none; stroke-width: 2; }
.story-ring .track { stroke: var(--line-strong); }
.story-ring .bar { stroke: var(--accent-strong); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; }
.story-icons { position: absolute; inset: 14%; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; }
.story-icons span { position: absolute; display: grid; place-items: center; color: var(--accent-strong); opacity: 0; transform: scale(0.6) rotate(-20deg); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.story-icons span.is-active { opacity: 1; transform: none; }
.story-icons .icon { width: 72px; height: 72px; stroke-width: 1.5; }
.story-num { direction: ltr; justify-content: flex-end; display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.story-num b { font-size: clamp(3.5rem, 9vw, 6.5rem); line-height: 1; font-weight: 900; color: var(--accent-strong); }
.story-num small { color: var(--muted); font-size: 1.1rem; }
.story-panels { position: relative; min-height: 190px; }
.story-panel { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s; pointer-events: none; }
.story-panel.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.story-panel.is-past { transform: translateY(-30px); }
.story-panel h3 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); margin-bottom: 10px; }
.story-panel p { color: var(--text-2); font-size: 1.05rem; max-width: 34rem; }
.story-steps { display: flex; gap: 8px; }
.story-steps i { height: 4px; flex: 0 0 40px; border-radius: 4px; background: var(--line-strong); transition: flex-basis 0.6s var(--ease), background 0.4s; }
.story-steps i.is-active { flex-basis: 90px; background: var(--accent-strong); }
@media (max-width: 899px) { .story-visual { width: min(200px, 50vw); } .story-icons .icon { width: 48px; height: 48px; } .story-panels { min-height: 210px; } }

/* CTA scrubbed by scroll */
[data-cta-scrub] { transform: scale(var(--cta-s, 1)); border-radius: var(--cta-r, 32px); }

@media (prefers-reduced-motion: reduce) {
  .story { height: auto; }
  .story-sticky { position: static; height: auto; padding-block: 80px; }
  .story-panels { min-height: 0; }
  .story-panel { position: static; opacity: 1; transform: none; filter: none; margin-bottom: 20px; }
  .js .split .w > span, .js .course-card.reveal .course-cover img { transform: none; clip-path: none; }
}

/* =========================================================
   Zoom-reveal scene (giant name → opening course columns)
   ========================================================= */
.rs { position: relative; height: 340vh; }
.rs-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; background: var(--bg); }
.rs-intro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--header-h) + 20px) 20px 20px; will-change: transform, opacity; transform-origin: 50% 62%; z-index: 2; pointer-events: none; }
.rs-lead { color: var(--muted); font-size: clamp(1.1rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.7; margin: 0 0 8px; }
.rs-name {
  margin: 0; font-size: clamp(4rem, 17vw, 15rem); line-height: 1.15; font-weight: 900; letter-spacing: 0;
  color: transparent; -webkit-text-fill-color: transparent;
  background-image: var(--fill, none), linear-gradient(120deg, var(--accent-strong), var(--accent-2) 50%, #0d9488);
  background-size: cover; background-position: center; background-attachment: scroll;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 10px 30px rgba(13, 48, 34, 0.15));
  padding-bottom: 0.1em;
}
.rs-panels {
  position: absolute; inset: var(--header-h) 0 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 10px;
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%, 50% 50%);
  will-change: clip-path; z-index: 1;
}
.rs-panel { position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; isolation: isolate; }
.rs-img { position: absolute; inset: -6% 0; z-index: -2; transform: translate3d(0, var(--py, 0px), 0) scale(var(--ps, 1.25)); will-change: transform; }
.rs-img img, .rs-img .cover-fallback { width: 100%; height: 100%; object-fit: cover; }
.rs-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 18, 12, 0.15), rgba(3, 18, 12, 0.45)); transition: background 0.6s var(--ease); }
.rs-panel:hover::after, .rs-panel:focus-visible::after { background: linear-gradient(180deg, rgba(3, 18, 12, 0.45), rgba(3, 18, 12, 0.82)); }
.rs-content { display: grid; justify-items: center; text-align: center; padding: 24px; max-width: 30rem; transform: translateY(var(--ty, 30px)); opacity: var(--to, 0); }
.rs-content h3 { font-size: clamp(1.3rem, 2.4vw, 2.2rem); font-weight: 800; margin: 0; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4); line-height: 1.5; }
.rs-more { display: grid; justify-items: center; gap: 12px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.7s var(--ease), opacity 0.5s, margin 0.6s var(--ease); }
.rs-panel:hover .rs-more, .rs-panel:focus-visible .rs-more { max-height: 320px; opacity: 1; margin-top: 14px; }
.rs-line { width: 0; height: 2px; background: rgba(255, 255, 255, 0.85); transition: width 0.8s var(--ease) 0.1s; }
.rs-panel:hover .rs-line, .rs-panel:focus-visible .rs-line { width: 70%; }
.rs-more p { margin: 0; font-size: 1rem; line-height: 1.9; color: rgba(255, 255, 255, 0.9); }
.rs-price { font-weight: 800; font-size: 1.05rem; color: #a7f3d0; }
.rs-cta { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 0.95rem; }
.rs-cta i { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.8); display: grid; place-items: center; font-style: normal; transition: background 0.4s, color 0.4s, transform 0.5s var(--ease); }
.rs-panel:hover .rs-cta i { background: #fff; color: #0d1f18; transform: translateX(-6px); }
@media (max-width: 760px) {
  .rs-panels { grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 6px; }
  .rs-panel:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rs-more p { display: none; }
  .rs-panel .rs-more { max-height: 200px; opacity: 1; margin-top: 8px; }
  .rs-line { width: 50%; }
  .rs-cta i { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .rs { height: auto; }
  .rs-sticky { position: static; height: auto; display: block; }
  .rs-intro { position: static; padding-block: 80px 40px; }
  .rs-panels { position: static; height: 80vh; clip-path: none; }
  .rs-content { transform: none; opacity: 1; }
}

/* ---------------- logo ---------------- */
.logo-mark { width: 34px; height: 34px; border: 0 !important; border-radius: 11px; display: block; box-shadow: 0 6px 16px -6px rgba(11, 138, 94, 0.6); }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-mark svg rect:not(:first-child), .logo-mark svg circle { transform-box: fill-box; transform-origin: bottom; transition: transform 0.5s var(--ease); }
.logo:hover .logo-mark { transform: none; }
.logo:hover .logo-mark svg rect:nth-child(3) { transform: scaleY(1.25); }
.logo:hover .logo-mark svg rect:nth-child(4) { transform: scaleY(1.15); transition-delay: 0.05s; }
.logo:hover .logo-mark svg rect:nth-child(5) { transform: scaleY(1.08); transition-delay: 0.1s; }
.logo:hover .logo-mark svg circle { transform: translateY(-2px) scale(1.2); }

/* ---------------- hero artwork ---------------- */
.hero-sphere { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.floaters { position: absolute; inset: 0; pointer-events: none; }
.chip-glass {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 16px; font-weight: 700; font-size: clamp(0.8rem, 1.1vw, 1rem); white-space: nowrap; direction: ltr;
  color: var(--text); background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 18px 40px -18px rgba(13, 48, 34, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translate3d(calc(var(--px, 0) * var(--dz) * 1px), calc(var(--py, 0) * var(--dz) * 1px), 0);
  transition: transform 0.9s var(--ease);
}
.chip-glass .icon { color: var(--accent-strong); }
.chip-glass > * { pointer-events: none; }
.chip-glass { animation: bob var(--bob, 7s) ease-in-out infinite; }
.chip-glass.f1 { top: 20%; right: 6%; --bob: 7s; }
.chip-glass.f2 { top: 52%; right: 3%; --bob: 9s; animation-delay: -2s; }
.chip-glass.f3 { top: 35%; right: 13%; --bob: 8s; animation-delay: -4s; }
.chip-glass.f4 { top: 60%; right: 17%; --bob: 6s; animation-delay: -1s; }
.chip-glass.f5 { top: 22%; left: 7%; --bob: 8.5s; animation-delay: -3s; }
.chip-glass.f6 { top: 50%; left: 3%; --bob: 7.5s; animation-delay: -5s; }
.chip-glass.f7 { top: 37%; left: 14%; --bob: 9.5s; animation-delay: -2.5s; }
.chip-glass.f8 { top: 61%; left: 16%; --bob: 6.5s; animation-delay: -1.5s; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -2deg; } 50% { translate: 0 -16px; rotate: 2deg; } }
@media (max-width: 900px) { .chip-glass.f3, .chip-glass.f4, .chip-glass.f7, .chip-glass.f8, .chip-glass.f2, .chip-glass.f6 { display: none; } .chip-glass.f1 { top: 15%; right: 4%; } .chip-glass.f5 { top: 15%; left: 4%; } .chip-glass { font-size: 0.72rem; padding: 6px 12px; opacity: 0.85; } }
@media (max-width: 640px) { .chip-glass { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .chip-glass { animation: none; } }

/* reveal scene: longer name */
.rs-name { font-size: clamp(3rem, 12vw, 11rem); }
.hero-sphere { z-index: 2; }
.floaters { z-index: 3; }
.logo-text { white-space: nowrap; }
@media (max-width: 420px) { .logo { font-size: 1rem; gap: 8px; } .logo-mark { width: 30px; height: 30px; } .nav-actions { gap: 6px; } .nav-actions .icon-btn { width: 38px; height: 38px; } }

/* =========================================================
   Hero landscape: dawn sky, sun, clouds, paper planes, hills
   ========================================================= */
:root {
  --sky-top: #c9efe0; --sky-mid: #f1fbf5; --sky-low: #fff3dc;
  --sun: #ffd98a; --sun-glow: rgba(255, 205, 120, 0.55);
  --hill-1: #a9e4c6; --hill-2: #6fcd9f; --hill-3: #35ad79; --hill-4: #138a5a;
  --cloud: rgba(255, 255, 255, 0.92); --plane: #ffffff; --stars: 0;
}
:root[data-theme="dark"] {
  --sky-top: #03110c; --sky-mid: #072019; --sky-low: #0d3226;
  --sun: #e8f5ee; --sun-glow: rgba(200, 255, 230, 0.18);
  --hill-1: #0b2a1f; --hill-2: #0a3324; --hill-3: #08402c; --hill-4: #064e35;
  --cloud: rgba(200, 235, 220, 0.12); --plane: #c9f5df; --stars: 1;
}
.scene { position: absolute; inset: 0; overflow: hidden; }
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-low) 75%, var(--bg) 100%); transition: background 0.6s; }
.sun { position: absolute; width: 22vmax; height: 22vmax; top: 14%; left: 14%; border-radius: 50%; background: radial-gradient(circle, var(--sun) 0 20%, var(--sun-glow) 21%, transparent 64%); animation: sunPulse 8s ease-in-out infinite alternate; will-change: transform; }
@keyframes sunPulse { to { transform: scale(1.08); } }
.stars { position: absolute; inset: 0 0 40% 0; opacity: var(--stars); transition: opacity 0.8s;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 32%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 44% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 26%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 77% 9%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 34%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 8% 44%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 53% 46%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 36% 58%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 95% 52%, #fff 50%, transparent 51%);
  animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { filter: brightness(0.6); } }
.clouds i { position: absolute; display: block; height: 46px; border-radius: 50px; background: var(--cloud); filter: blur(1px); box-shadow: 30px -18px 0 6px var(--cloud), 70px -6px 0 2px var(--cloud); animation: drift linear infinite; }
.clouds .c1 { top: 16%; width: 150px; animation-duration: 70s; animation-delay: -10s; }
.clouds .c2 { top: 30%; width: 110px; animation-duration: 95s; animation-delay: -50s; opacity: 0.8; transform: scale(0.8); }
.clouds .c3 { top: 9%; width: 180px; animation-duration: 120s; animation-delay: -80s; opacity: 0.7; }
.clouds .c4 { top: 40%; width: 90px; animation-duration: 85s; animation-delay: -30s; opacity: 0.6; }
@keyframes drift { from { right: -260px; } to { right: calc(100% + 260px); } }
.planes .plane { position: absolute; width: 46px; height: 46px; color: var(--plane); filter: drop-shadow(0 6px 10px rgba(13, 48, 34, 0.25)); offset-rotate: auto 45deg; animation: fly 18s ease-in-out infinite; }
.planes .p1 { offset-path: path("M -80 420 C 300 260, 600 380, 900 180 S 1400 60, 1800 120"); }
.planes .p2 { width: 28px; height: 28px; offset-path: path("M 1800 300 C 1400 160, 1100 320, 760 210 S 300 40, -100 140"); animation-duration: 24s; animation-delay: -9s; opacity: 0.85; }
.planes .p3 { width: 22px; height: 22px; offset-path: path("M -60 220 C 400 120, 700 260, 1000 120 S 1500 260, 1800 60"); animation-duration: 30s; animation-delay: -20s; opacity: 0.7; }
@keyframes fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.hill { position: absolute; left: -5%; width: 110%; bottom: 0; height: 46%; will-change: transform; }
.hill path { transition: fill 0.6s; }
.hill.h1 { height: 74%; } .hill.h1 path { fill: var(--hill-1); }
.hill.h2 { height: 62%; } .hill.h2 path { fill: var(--hill-2); }
.hill.h3 { height: 50%; } .hill.h3 path { fill: var(--hill-3); }
.hill.h4 { height: 40%; } .hill.h4 path { fill: var(--hill-4); }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform; }
/* keep text readable over the landscape */
.hero:has(.scene) .hero-shade { background: linear-gradient(180deg, transparent 0%, transparent 90%, var(--bg) 100%); }
.hero:has(.scene) .aurora { opacity: 0.35; }
.hero:has(.scene) .hero-top p { color: var(--text); }
.hero:has(.hero-photo) .hero-shade { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 35%, transparent) 50%, var(--bg) 100%); }
@media (max-width: 640px) { .sun { top: 9%; left: 2%; width: 30vmax; height: 30vmax; } .hill.h1 { height: 52%; } .hill.h2 { height: 44%; } .hill.h3 { height: 36%; } .hill.h4 { height: 28%; } }
@media (prefers-reduced-motion: reduce) { .planes, .clouds i { animation: none; display: none; } .sun { animation: none; } }

/* =========================================================
   v2: areas bento, grade tiles, books accordion, infographics
   ========================================================= */
.areas-section { padding-block: 72px 40px; }
.bento { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .bento { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; } .bento-grades { grid-row: span 2; } }
.bento-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 28px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--card-shadow); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s; isolation: isolate; }
a.bento-card:hover { transform: translateY(-5px); box-shadow: var(--hover-shadow); border-color: rgba(11, 138, 94, 0.35); }
.bento-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 0; }
.bento-card p { margin: 0; color: var(--text-2); }
.bento-top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.bento-icon { width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent-strong), var(--accent-2)); box-shadow: 0 12px 26px -12px rgba(11, 138, 94, 0.7); }
.bento-icon .icon { width: 26px; height: 26px; }
.bento-stage { display: grid; gap: 8px; }
.bento-stage small { color: var(--muted); font-weight: 700; }
.grade-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bento-grades .link-arrow { margin-top: auto; padding-top: 6px; color: var(--accent-strong); }
.bento-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.9rem; }
.bento-go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cta-bg); color: var(--cta-text); transition: transform 0.5s var(--ease); }
a.bento-card:hover .bento-go { transform: translateX(-6px) rotate(-8deg); }
.bento-art { position: absolute; inset-inline-start: -30px; bottom: -40px; z-index: -1; opacity: 0.9; }
.bento-executive .bento-art i { position: absolute; width: 120px; height: 150px; border-radius: 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); box-shadow: var(--card-shadow); transition: transform 0.6s var(--ease); }
.bento-executive .bento-art i:nth-child(1) { left: 20px; bottom: 0; transform: rotate(-12deg); }
.bento-executive .bento-art i:nth-child(2) { left: 70px; bottom: 10px; transform: rotate(-2deg); }
.bento-executive .bento-art i:nth-child(3) { left: 125px; bottom: 0; transform: rotate(9deg); background: linear-gradient(180deg, rgba(94, 224, 168, 0.35), var(--surface)); }
.bento-executive:hover .bento-art i:nth-child(1) { transform: rotate(-20deg) translateY(-10px); }
.bento-executive:hover .bento-art i:nth-child(3) { transform: rotate(16deg) translateY(-10px); }
.bento-sida .bento-art i { position: absolute; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.bento-sida .bento-art i:nth-child(1) { left: 30px; bottom: 10px; width: 220px; height: 130px; }
.bento-sida .bento-art i:nth-child(2) { left: 50px; bottom: 100px; width: 90px; height: 14px; border-radius: 8px; background: var(--accent); border: 0; }
.bento-executive, .bento-sida { padding-bottom: 28px; min-height: 260px; }
.bento-executive > *:not(.bento-art), .bento-sida > *:not(.bento-art) { max-width: 75%; }
.bento-executive .bento-foot, .bento-sida .bento-foot { max-width: 100%; }

.grade-tile { --gc: #d9468a; display: inline-grid; justify-items: center; align-content: center; gap: 0; min-width: 58px; padding: 8px 10px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--gc) 30%, transparent); background: color-mix(in srgb, var(--gc) 9%, var(--surface)); color: var(--text); text-align: center; transition: transform 0.35s var(--ease), background 0.3s, box-shadow 0.35s; }
.grade-tile.s2 { --gc: #0e9f9a; } .grade-tile.s3 { --gc: #4f46e5; }
.grade-tile b { font-size: 1.35rem; line-height: 1.3; color: var(--gc); font-weight: 900; }
.grade-tile span { font-size: 0.72rem; color: var(--text-2); }
.grade-tile small { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }
a.grade-tile:hover { transform: translateY(-4px); background: var(--gc); color: #fff; box-shadow: 0 14px 30px -14px var(--gc); }
a.grade-tile:hover b, a.grade-tile:hover span, a.grade-tile:hover small { color: #fff; }
.grade-tile.is-soon { opacity: 0.55; }
.stage { margin-bottom: 36px; }
.stage h2 { font-size: 1.3rem; margin-bottom: 14px; }
.grade-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.grade-grid .grade-tile { padding: 22px 12px; border-radius: 22px; }
.grade-grid .grade-tile b { font-size: 2.6rem; }
.grade-grid .grade-tile span { font-size: 1rem; font-weight: 700; }
.grade-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 10px; }
.grade-note > .icon { width: 30px; height: 30px; color: var(--accent-strong); flex: none; }
.grade-note p { margin: 4px 0 0; color: var(--text-2); }

/* books accordion */
.books { display: grid; gap: 12px; }
.book { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.book > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: 1.02rem; transition: background 0.3s; }
.book > summary::-webkit-details-marker { display: none; }
.book > summary:hover { background: var(--surface-2); }
.book > summary small { color: var(--muted); margin-inline-start: auto; }
.book-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); flex: none; }
.book-chev { display: grid; color: var(--muted); transition: transform 0.4s var(--ease); transform: rotate(90deg); }
.book[open] > summary .book-chev { transform: rotate(-90deg); }
.book-body { padding: 4px 14px 14px; display: grid; gap: 8px; }
.book[open] .book-body { animation: drop 0.4s var(--ease); }
.lesson-head { margin: 10px 4px 2px; font-size: 0.9rem; color: var(--accent-strong); }
.book.compact { border-radius: 14px; }
.book.compact > summary { padding: 10px 12px; font-size: 0.92rem; }
.book.compact .book-body, .book.compact > .lessons, .book.compact > .lesson-head { margin-inline: 8px; }
.book.compact > ol { padding-bottom: 8px; }
.hidden-summary { display: none !important; }
.learn-side .book { margin-top: 10px; }

/* infographic viewer */
.infographic { position: relative; margin: 0; padding: 0; overflow: hidden; cursor: zoom-in; background: var(--surface-2); }
.infographic img { width: 100%; max-height: 78vh; object-fit: contain; display: block; margin-inline: auto; transition: transform 0.4s var(--ease); }
.infographic figcaption { position: absolute; bottom: 12px; inset-inline-start: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 99px; font-size: 0.8rem; background: var(--toast-bg); border: 1px solid var(--line); }
.zoom-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(3, 18, 12, 0.92); display: grid; place-items: center; overflow: auto; cursor: zoom-out; animation: fadeIn 0.3s; }
.zoom-overlay img { max-width: none; width: min(1800px, 180vw); height: auto; }
.player-body img { width: 100%; max-height: 75vh; object-fit: contain; background: #fff; }
.btn-glass-dark { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.btn-glass-dark:hover { background: rgba(255, 255, 255, 0.2); }
.cta-band .btn + .btn { margin-inline-start: 10px; }
.upload-target { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.upload-target .span-2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .upload-target { grid-template-columns: 1fr; } }

/* =========================================================
   v3 — "Glass & 3D": a living colour-mesh backdrop, frosted
   glass surfaces everywhere and soft 3D renders as imagery.
   Effects and layout logic above stay as they are.
   ========================================================= */
:root {
  --bg: #edf7f1;
  --glass: rgba(255, 255, 255, 0.5);
  --glass-2: rgba(255, 255, 255, 0.72);
  --glass-brd: rgba(255, 255, 255, 0.8);
  --glass-hl: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.2);
  --glass-blur: blur(22px) saturate(180%);
  --glass-shadow: 0 1px 2px rgba(9, 60, 40, 0.04), 0 22px 50px -26px rgba(9, 74, 50, 0.32);
  --glass-shadow-hi: 0 2px 4px rgba(9, 60, 40, 0.05), 0 34px 70px -30px rgba(9, 90, 60, 0.45);
  --obj-shadow: drop-shadow(0 22px 24px rgba(6, 70, 45, 0.24));
  --mesh-1: #9ff0cb; --mesh-2: #d6f7a0; --mesh-3: #96efe2; --mesh-4: #fde59a; --mesh-5: #b7e3fb;
  --mesh-op: 0.85;
  --surface: rgba(255, 255, 255, 0.6);
  --surface-2: rgba(255, 255, 255, 0.82);
  --card-from: rgba(255, 255, 255, 0.62);
  --card-to: rgba(255, 255, 255, 0.45);
  --line: rgba(13, 48, 34, 0.08);
  --pill-bg: rgba(13, 48, 34, 0.035);
  --header-h: 92px;
  --radius: 26px;
}
:root[data-theme="dark"] {
  --bg: #03110c;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-2: rgba(16, 36, 28, 0.72);
  --glass-brd: rgba(255, 255, 255, 0.11);
  --glass-hl: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  --glass-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --glass-shadow-hi: 0 30px 70px -26px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(94, 224, 168, 0.18);
  --obj-shadow: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.5));
  --mesh-1: #0a5c40; --mesh-2: #24500f; --mesh-3: #0b5b57; --mesh-4: #4a3a07; --mesh-5: #0b3f5a;
  --mesh-op: 0.75;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --card-from: rgba(255, 255, 255, 0.06);
  --card-to: rgba(255, 255, 255, 0.03);
  --pill-bg: rgba(255, 255, 255, 0.04);
}

/* living mesh behind every page */
body { background: var(--bg); }
.bg-mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-mesh i { position: absolute; border-radius: 50%; opacity: var(--mesh-op); will-change: transform; }
.bg-mesh i:nth-child(1) { width: 62vmax; height: 62vmax; top: -24vmax; right: -16vmax; background: radial-gradient(circle, var(--mesh-1) 0, transparent 66%); animation: mesh1 28s ease-in-out infinite alternate; }
.bg-mesh i:nth-child(2) { width: 54vmax; height: 54vmax; bottom: -22vmax; left: -18vmax; background: radial-gradient(circle, var(--mesh-2) 0, transparent 66%); animation: mesh2 32s ease-in-out infinite alternate; }
.bg-mesh i:nth-child(3) { width: 46vmax; height: 46vmax; top: 18%; left: -10vmax; background: radial-gradient(circle, var(--mesh-3) 0, transparent 66%); animation: mesh3 36s ease-in-out infinite alternate; }
.bg-mesh i:nth-child(4) { width: 32vmax; height: 32vmax; top: 30%; right: 12%; background: radial-gradient(circle, var(--mesh-4) 0, transparent 66%); animation: mesh2 40s ease-in-out infinite alternate-reverse; opacity: calc(var(--mesh-op) * 0.7); }
.bg-mesh i:nth-child(5) { width: 40vmax; height: 40vmax; bottom: -12vmax; right: -6vmax; background: radial-gradient(circle, var(--mesh-5) 0, transparent 66%); animation: mesh1 34s ease-in-out infinite alternate-reverse; }
@keyframes mesh1 { to { transform: translate(-14vmax, 12vmax) scale(1.15); } }
@keyframes mesh2 { to { transform: translate(12vmax, -10vmax) scale(0.88); } }
@keyframes mesh3 { to { transform: translate(18vmax, 6vmax) scale(1.2); } }
.bg-mesh::after { content: ""; position: absolute; inset: 0; 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); opacity: 0.05; mix-blend-mode: overlay; }

/* the glass material */
.glass, .card, .bento-card, .feature, .filters, .lesson, .book, .hs-more, .story-icons, .mobile-menu, .tabs,
.pager a, .pager span, .meta-row span, .chip, .eyebrow, .toast, .contact-card, .grade-tile, .empty, .hero-trust span, .kicker {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-hl), var(--glass-shadow);
}
.card { background: linear-gradient(160deg, var(--card-from), var(--card-to)); }
.chip.is-active, .pager a.is-active, .tabs a.is-active { background: var(--text); color: var(--bg); border-color: transparent; }
.chip-owned { background: rgba(15, 157, 99, 0.18); border-color: rgba(15, 157, 99, 0.45); }
.buy-box, .auth-card, .summary.card, .toast { background: var(--glass-2); }
.lesson:hover, .book > summary:hover { background: var(--surface-2); }
.empty { border-style: solid; }
.kicker { padding: 5px 14px; border-radius: 99px; font-size: 0.78rem; box-shadow: var(--glass-hl); }
.kicker::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-strong); margin-inline-end: 8px; vertical-align: 1px; box-shadow: 0 0 0 4px var(--accent-soft); }
a.card:hover, .course-card:hover, a.bento-card:hover, .contact-card:hover, .feature:hover { box-shadow: var(--glass-hl), var(--glass-shadow-hi); }

/* header: floating glass capsule */
.site-header, .site-header.is-scrolled, body:not(.has-hero) .site-header { background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; padding-top: calc(env(safe-area-inset-top, 0px) + 12px); }
.site-header .nav {
  width: calc(100% - 24px); max-width: calc(var(--container) - 32px); height: 66px; margin-inline: auto;
  padding-inline: 10px 16px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-hl), var(--glass-shadow);
  transition: background 0.4s, box-shadow 0.4s, height 0.4s var(--ease);
}
.site-header.is-scrolled .nav { background: var(--glass-2); height: 60px; box-shadow: var(--glass-hl), var(--glass-shadow-hi); }
.nav-pill { border-color: transparent; background: var(--pill-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-pill a.is-active { background: #fff; color: var(--text); box-shadow: 0 4px 14px -6px rgba(9, 74, 50, 0.35); }
:root[data-theme="dark"] .nav-pill a.is-active { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.site-header .icon-btn { background: var(--glass-2); border-color: var(--glass-brd); }
.mobile-menu { margin: 8px 12px 0; background: var(--glass-2); }
@media (max-width: 1023px) { .site-header .nav { padding-inline: 10px 14px; } }

/* hero v3 — split: copy + 3D glass stage */
.hero-v3, .hero-v3 .hero-bg { background: transparent; }
.hero-v3 .hero-shade { background: none; }
.hero-v3 .aurora { opacity: 0.55; }
.hero-v3 .planes .plane { color: #fff; filter: drop-shadow(0 8px 12px rgba(6, 70, 45, 0.25)); }
:root[data-theme="dark"] .hero-v3 .planes .plane { color: #a7f3d0; opacity: 0.7; }
.hero-v3 .hero-inner { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px); }
.hero-v3 .hero-center.hero-split { display: grid; gap: 28px; align-items: center; justify-items: stretch; text-align: start; padding-block: 28px 12px; flex: 1; }
@media (min-width: 1024px) { .hero-v3 .hero-center.hero-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; padding-block: 36px 8px; } }
.hero-copy { min-width: 0; }
.hero-v3 .eyebrow { margin-bottom: 20px; }
.hero-v3 .hero-title { font-size: clamp(2.7rem, 7.2vw, 5.9rem); line-height: 1.14; }
.hero-v3 .hero-title .line:first-child { font-weight: 700; }
.hero-lead { margin: 20px 0 0; color: var(--text-2); font-size: clamp(1rem, 1.35vw, 1.18rem); max-width: 33rem; line-height: 2; }
.hero-v3 .hero-actions { justify-content: flex-start; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; border-radius: 16px; font-size: 0.84rem; color: var(--text-2); font-weight: 600; }
.hero-trust b { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04291b; font-weight: 900; font-size: 0.9rem; }
.hero-trust b .icon { width: 16px; height: 16px; }

.hero-visual { --px: 0; --py: 0; position: relative; width: 100%; max-width: 600px; aspect-ratio: 1 / 0.92; justify-self: center; }
.hv-halo { position: absolute; inset: 10%; border-radius: 50%; background: conic-gradient(from 90deg, #5ee0a8, #bef264, #5eead4, #fcd34d, #5ee0a8); filter: blur(70px); opacity: 0.5; animation: spin 20s linear infinite; }
:root[data-theme="dark"] .hv-halo { opacity: 0.32; }
.hv-stage {
  position: absolute; inset: 11% 9% 9% 9%; border-radius: 42px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28));
  transform: perspective(1200px) rotateX(calc(var(--py) * -7deg)) rotateY(calc(var(--px) * 9deg));
  transition: transform 0.6s var(--ease);
}
:root[data-theme="dark"] .hv-stage { background: linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)); }
.hv-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 40%, rgba(94, 224, 168, 0.35), transparent 70%); }
.hv-shine { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 48%, transparent 60%); transform: translateX(-130%); animation: sweep 7s ease-in-out infinite 1.6s; }
@keyframes sweep { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.hv-main { position: relative; z-index: 1; width: 86%; height: auto; margin-top: -10%; filter: var(--obj-shadow); animation: bob 8s ease-in-out infinite; }
.hv-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-caption { position: absolute; z-index: 2; inset-inline: 14px; bottom: 14px; display: grid; padding: 10px 16px; border-radius: 20px; background: var(--glass-2); border: 1px solid var(--glass-brd); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); line-height: 1.6; }
.hv-caption b { font-size: 0.95rem; }
.hv-caption small { color: var(--muted); font-size: 0.76rem; }
.hero-visual .obj, .hv-chip, .orb { position: absolute; transform: translate3d(calc(var(--px) * var(--dz) * 1px), calc(var(--py) * var(--dz) * 1px), 0); transition: transform 0.5s var(--ease); animation: bob var(--bob, 7s) ease-in-out infinite; }
.hero-visual .obj { height: auto; filter: var(--obj-shadow); pointer-events: none; z-index: 4; }
.o-pencil { width: 23%; top: 3%; left: 0; --bob: 8s; }
.o-check { width: 11%; top: -1%; left: 44%; --bob: 6s; animation-delay: -3s !important; }
.o-ring { width: 14%; top: 4%; right: 1%; --bob: 9s; animation-delay: -2s !important; }
.o-clip { width: 13%; bottom: 13%; right: -3%; --bob: 7.5s; animation-delay: -4s !important; }
.o-play { width: 19%; bottom: 1%; left: 6%; --bob: 6.5s; animation-delay: -1s !important; }
.hv-chip { z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 18px; background: var(--glass-2); box-shadow: var(--glass-hl), var(--glass-shadow-hi); line-height: 1.5; white-space: nowrap; }
.hv-chip img { width: 46px; height: auto; filter: drop-shadow(0 6px 8px rgba(6, 70, 45, 0.2)); }
.hv-chip span { display: grid; }
.hv-chip b { font-size: 0.85rem; }
.hv-chip small { font-size: 0.72rem; color: var(--muted); }
.hv-chip.c1 { top: 56%; left: -5%; --bob: 9s; }
.hv-chip.c2 { top: 28%; right: -5%; --bob: 8s; animation-delay: -4s; }
.orb { z-index: 3; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.85); background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.25) 38%, rgba(94, 224, 168, 0.28) 72%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset -8px -12px 22px rgba(11, 138, 94, 0.25), 0 14px 30px -12px rgba(6, 70, 45, 0.35); }
.orb.o1 { width: 64px; height: 64px; top: 30%; left: 3%; --bob: 10s; }
.orb.o2 { width: 36px; height: 36px; top: 7%; right: 27%; --bob: 7s; animation-delay: -5s; }
@media (max-width: 1023px) { .hero-visual { max-width: 520px; } }
@media (max-width: 640px) {
  .hero-v3 .planes { display: none; }
  .hero-visual { max-width: 400px; margin-top: 4px; }
  .hv-chip { padding: 6px 10px 6px 8px; gap: 8px; }
  .hv-chip img { width: 34px; }
  .hv-chip small, .orb, .o-check { display: none; }
  .hv-chip.c1 { left: -2%; } .hv-chip.c2 { right: -2%; }
  .hv-caption { display: none; }
  .hero-trust span { font-size: 0.78rem; }
}
.has-hero .hero-v3 .hero-inner:has(.cf) .hero-center { padding-block: 24px 8px; }
.cf-card { background: var(--glass-2); border-color: var(--glass-brd); box-shadow: var(--glass-hl), 0 24px 44px -22px rgba(9, 74, 50, 0.45); }
:root[data-theme="dark"] .cf-card { background: rgba(14, 32, 25, 0.86); }

/* section rhythm */
.section-head h2, .hs-head h2, .story-head h2 { letter-spacing: -0.01em; }
.marquee { background: var(--glass); border-color: var(--glass-brd); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.rs-sticky { background: transparent; }

/* course cards: cover framed inside the glass */
.course-card { border-radius: 28px; }
.course-cover { margin: 10px 10px 0; border-radius: 20px; }
.course-body { padding: 16px 20px 20px; }
.course-meta .price b { color: var(--accent-strong); }

/* bento with 3D art */
.bento-card { border-radius: 32px; }
.bento-3d { position: absolute; z-index: 0; height: auto; max-width: none !important; pointer-events: none; filter: var(--obj-shadow); animation: bob 9s ease-in-out infinite; transition: scale 0.8s var(--ease); }
.bento-card > :not(.bento-3d) { position: relative; z-index: 1; }
a.bento-card:hover .bento-3d, .bento-grades:hover .bento-3d { scale: 1.07; }
.b-grades { width: 150px; top: 16px; left: 16px; }
.bento-grades .bento-top { padding-inline-end: 150px; }
.b-executive { width: min(38%, 220px); bottom: 78px; left: 16px; }
.b-sida { width: min(40%, 230px); bottom: 84px; left: 14px; }
.b-grades2 { width: min(46%, 300px); bottom: 20px; left: 22px; animation-delay: -4s; }
@media (max-width: 959px) { .b-grades2 { display: none; } }
.b-exec2, .b-sida2 { width: 72px; top: 22px; left: 22px; animation-duration: 7s; animation-delay: -3s; }
.bento-executive, .bento-sida { min-height: 300px; }
.bento-executive > *:not(.bento-3d), .bento-sida > *:not(.bento-3d) { max-width: 58%; }
.bento-executive .bento-foot, .bento-sida .bento-foot { max-width: 100%; }
@media (max-width: 640px) {
  .b-grades { display: none; }
  .bento-grades .bento-top { padding-inline-end: 0; }
  .bento-executive > *:not(.bento-3d), .bento-sida > *:not(.bento-3d) { max-width: 62%; }
  .b-executive, .b-sida { width: 36%; bottom: 60px; }
  .b-exec2, .b-sida2 { display: none; }
}
.bento-icon { box-shadow: 0 10px 22px -10px rgba(11, 138, 94, 0.7); }

/* features as floating glass tiles */
.features { gap: 18px; background: none; border: 0; box-shadow: none; overflow: visible; border-radius: 0; }
.feature { border-radius: 28px; padding: 28px 26px; transition: transform 0.6s var(--ease), box-shadow 0.5s; }
.feature:hover { transform: translateY(-6px); background: var(--glass); }
.feature-3d { width: 84px; height: 84px; object-fit: contain; margin-bottom: 14px; filter: var(--obj-shadow); transition: transform 0.7s var(--ease); }
.feature:hover .feature-3d { transform: translateY(-6px) rotate(-6deg) scale(1.06); }

/* story: 3D objects inside the glass dial */
.story-icons span img { width: min(190px, 72%); height: auto; filter: var(--obj-shadow); }
.story-icons { background: var(--glass-2); }
@media (max-width: 899px) { .story-icons span img { width: 100px; } }

/* CTA: deep emerald glass with floating renders */
.cta-band { background: linear-gradient(135deg, rgba(3, 46, 31, 0.94), rgba(10, 84, 58, 0.9)); border-color: rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 40px 80px -40px rgba(4, 60, 40, 0.7); }
.cta-band > :not(.cta-glow):not(.cta-3d) { position: relative; z-index: 1; }
.cta-3d { position: absolute; z-index: 0; height: auto; pointer-events: none; filter: drop-shadow(0 24px 26px rgba(0, 0, 0, 0.35)); animation: bob 8s ease-in-out infinite; }
.cta-3d.c-a { width: clamp(110px, 18vw, 230px); left: 3%; top: 50%; margin-top: calc(clamp(110px, 18vw, 230px) * -0.35); }
.cta-3d.c-b { width: clamp(70px, 9vw, 120px); right: 4%; top: 12%; animation-delay: -3s; }
.cta-3d.c-c { width: clamp(70px, 9vw, 120px); right: 9%; bottom: 8%; animation-delay: -5s; }
@media (max-width: 760px) { .cta-3d { opacity: 0.35; } .cta-3d.c-a { top: 14px; margin-top: 0; } }

/* inner page headers carry a 3D object */
.page-hero .container { position: relative; }
.page-hero:has(.ph-3d) .container { padding-inline-end: clamp(120px, 26vw, 330px); }
.ph-3d { position: absolute; inset-inline-end: max(20px, 2vw); top: 50%; width: clamp(104px, 22vw, 270px); height: auto; transform: translateY(-50%); filter: var(--obj-shadow); animation: bob 8s ease-in-out infinite, fadeIn 1s var(--ease) both; }
.ph-3d.sm { width: clamp(80px, 12vw, 140px); }
@media (min-width: 1024px) { .page-hero { padding-block: 64px 48px; } .page-hero:has(.ph-3d) { min-height: 300px; display: flex; align-items: center; } }

/* grades */
.grade-tile { background: color-mix(in srgb, var(--gc) 9%, var(--glass)); border-color: color-mix(in srgb, var(--gc) 25%, var(--glass-brd)); }
.grade-grid .grade-tile { border-radius: 26px; }

/* footer */
.site-footer { position: relative; overflow: hidden; background: var(--glass); border-top: 1px solid var(--glass-brd); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.footer-3d { position: absolute; left: 3%; top: 40px; width: 130px; opacity: 0.9; filter: var(--obj-shadow); animation: bob 9s ease-in-out infinite; pointer-events: none; }
@media (max-width: 1100px) { .footer-3d { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .bg-mesh i, .hv-halo, .hv-shine, .hv-main, .hero-visual .obj, .hv-chip, .orb, .bento-3d, .cta-3d, .ph-3d, .footer-3d { animation: none !important; }
}

/* founder / teacher introduction */
.founder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.founder-copy { min-width: 0; }
.founder-badge span { min-width: 0; }
@media (max-width: 640px) { .founder-badge small { white-space: normal; } .founder-badge { left: 8px; } }
@media (min-width: 960px) { .founder { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; } }
.founder-media { position: relative; width: min(100%, 460px); justify-self: center; padding: 18px; }
.founder-halo { position: absolute; inset: 4% 0; border-radius: 48px; background: conic-gradient(from 200deg, #5ee0a8, #bef264, #5eead4, #fcd34d, #5ee0a8); filter: blur(60px); opacity: 0.45; animation: spin 24s linear infinite; }
:root[data-theme="dark"] .founder-halo { opacity: 0.28; }
.founder-frame { position: relative; margin: 0; padding: 12px; border-radius: 40px; transform: rotate(-2deg); transition: transform 0.8s var(--ease); }
.founder-media:hover .founder-frame { transform: rotate(0deg) scale(1.01); }
.founder-frame img { width: 100%; height: auto; aspect-ratio: 760 / 1001; object-fit: cover; border-radius: 30px; }
.founder-frame::after { content: ""; position: absolute; inset: 12px; border-radius: 30px; pointer-events: none; background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%); background-size: 250% 100%; background-position: 150% 0; animation: shine 6s linear infinite; mix-blend-mode: soft-light; }
.f-obj { position: absolute; height: auto; filter: var(--obj-shadow); animation: bob 8s ease-in-out infinite; pointer-events: none; z-index: 2; }
.f-obj.f1 { width: 92px; top: -6px; right: -18px; }
.f-obj.f2 { width: 120px; bottom: 18%; left: -42px; animation-delay: -3s; }
.founder-badge { position: absolute; z-index: 3; bottom: -10px; right: -14px; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 22px; background: var(--glass-2); box-shadow: var(--glass-hl), var(--glass-shadow-hi); line-height: 1.5; animation: bob 9s ease-in-out infinite; animation-delay: -5s; }
.founder-badge img { width: 54px; height: auto; }
.founder-badge span { display: grid; }
.founder-badge b { font-size: 0.95rem; }
.founder-badge small { font-size: 0.76rem; color: var(--muted); }
.founder-copy h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); margin: 6px 0 4px; }
.founder-role { color: var(--accent-strong); font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.founder-bio { color: var(--text-2); font-size: 1.05rem; line-height: 2.1; max-width: 36rem; }
.founder-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; max-width: 36rem; }
.founder-points li { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 22px; transition: transform 0.5s var(--ease); }
.founder-points li:hover { transform: translateX(-6px); }
.founder-points img { width: 56px; height: 56px; object-fit: contain; flex: none; filter: drop-shadow(0 8px 10px rgba(6, 70, 45, 0.2)); }
.founder-points span { display: grid; line-height: 1.6; }
.founder-points small { color: var(--muted); font-size: 0.85rem; }
.founder-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 640px) {
  .f-obj.f2 { width: 84px; left: -10px; }
  .f-obj.f1 { width: 64px; right: -4px; }
  .founder-badge { right: 0; bottom: -14px; }
}
@media (prefers-reduced-motion: reduce) { .founder-halo, .f-obj, .founder-badge, .founder-frame::after { animation: none; } }
.founder-section { overflow-x: clip; }

/* =========================================================
   Opening scene (top of the home page): giant name → doors
   ========================================================= */
.rs-top .rs-intro { padding-top: calc(var(--header-h) + 10px); }
.rs-top .eyebrow { margin-bottom: 18px; }
.rs-top .rs-lead { color: var(--text-2); font-size: clamp(1.05rem, 2.2vw, 1.7rem); }
.rs-top .rs-name { font-size: clamp(3.6rem, 15.5vw, 14.5rem); background-size: cover; background-position: center 40%; filter: drop-shadow(0 18px 40px rgba(6, 70, 45, 0.28)); }
.rs-top .rs-name.anim-up { animation: riseIn 1.2s var(--ease) both var(--d, 0s), fillPan 18s ease-in-out infinite alternate; }
@keyframes fillPan { from { background-position: 30% 40%; } to { background-position: 70% 60%; } }
.rs-sub { margin: 6px 0 0; font-size: clamp(1.3rem, 3.2vw, 2.4rem); font-weight: 800; }
.rs-sub b { font-weight: 600; }
.rs-flyers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.rs-fly {
  position: absolute; height: auto; max-width: 18vw; filter: var(--obj-shadow);
  transform: translate3d(calc(var(--fx) * var(--rz, 0) * 75vw), calc(var(--fy) * var(--rz, 0) * 75vh), 0) scale(calc(1 + var(--rz, 0) * 2.2));
  opacity: calc(1 - var(--rz, 0) * 1.7);
}
.rs-fly { animation: bob var(--bob, 7s) ease-in-out infinite; }
.rs-cue > div { display: grid; justify-items: center; gap: 8px; }
.rs-cue { position: absolute; z-index: 3; bottom: 22px; left: 50%; translate: -50% 0; display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 0.8rem; opacity: calc(1 - var(--rp, 0) * 8); pointer-events: none; }
.rs-top .rs-sticky { background: transparent; }
.rs-top .rs-panels { inset: calc(var(--header-h) - 4px) 12px 12px; gap: 12px; }
.rs-top .rs-panel { border-radius: 30px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 30px 60px -30px rgba(4, 50, 34, 0.6); }
.rs-top .rs-img { inset: -4% 0; display: grid; place-items: center; background: var(--door-bg); }
.rs-top .rs-img::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 34%, rgba(255, 255, 255, 0.35), transparent 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='white' fill-opacity='.14'/%3E%3C/svg%3E"); }
.rs-top .rs-img img.rs-obj { position: relative; width: min(78%, 360px); height: auto; object-fit: contain; margin-top: -32%; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.3)); transition: transform 0.9s var(--ease); animation: bob 8s ease-in-out infinite; animation-delay: calc(var(--i) * -1.7s); }
.rs-top .rs-panel:hover .rs-obj { transform: scale(1.08) rotate(-3deg); }
.rs-top .rs-panel::after { background: linear-gradient(180deg, transparent 40%, rgba(2, 30, 20, 0.55)); }
.rs-top .rs-panel:hover::after { background: linear-gradient(180deg, transparent 20%, rgba(2, 30, 20, 0.75)); }
.rs-top .rs-panel { place-items: end center; }
.rs-top .rs-content { padding: 28px 24px 34px; }
.door-grades { --door-bg: linear-gradient(165deg, #10b981, #065f46); }
.door-executive { --door-bg: linear-gradient(165deg, #84cc16, #166534); }
.door-sida { --door-bg: linear-gradient(165deg, #22d3ee, #115e59); }
.door-all { --door-bg: linear-gradient(165deg, #fbbf24, #15803d 70%); }
@media (max-width: 760px) {
  .rs-top .rs-img img.rs-obj { width: 72%; margin-top: -40%; }
  .rs-top .rs-content { padding: 14px 10px 16px; }
  .rs-top .rs-content h3 { font-size: 1.1rem; }
  .rs-fly { max-width: 17vw; }
  .rs-fly.f-ring, .rs-fly.f-chart, .rs-fly.f-bolt { display: none; }
  .rs-fly.f-play { top: 76% !important; left: 6% !important; }
  .rs-fly.f-clipboard { top: 74% !important; left: 78% !important; }
  .rs-fly.f-pencil { top: 14% !important; }
  .rs-top .rs-panels { inset: calc(var(--header-h) - 4px) 8px 8px; gap: 8px; }
  .rs-top .rs-panel { border-radius: 22px; }
}
/* the hero now follows the opening scene */
.rs-top + .hero-v3 { min-height: auto; }
.rs-top + .hero-v3 .hero-inner { padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { .rs-fly { transform: none; opacity: 1; } .rs-top .rs-img img.rs-obj { animation: none; } .rs-cue { display: none; } }
