/* ============================================================
   Aarambh Academy — Premium Coaching Landing Page
   Palette: Academic Navy + Warm Gold + Ivory
   ============================================================ */

:root {
  /* Brand — Bold Indigo + Sun Gold + Vivid Orange sunset
     (Variable names kept stable; values updated to new coolors palette.) */
  --navy-900: #2A2363;   /* deeper indigo (custom darker shade for footer/dark sections) */
  --navy-800: #3D348B;   /* primary deep indigo */
  --navy-700: #4D43A3;   /* mid indigo */
  --navy-600: #5859C0;   /* light indigo */

  --gold-500: #F7B801;   /* sun gold */
  --gold-400: #FBC832;   /* light gold */
  --gold-300: #FED96B;   /* pale gold */

  --indigo-500: #7678ED; /* lavender — secondary accent */
  --violet-500: #F35B04; /* vivid orange-red */
  --rose-400:   #F18701; /* warm orange */

  --ivory:   #FBF7F0;    /* warm off-white */
  --ivory-2: #F2EBD8;    /* deeper warm cream */
  --paper:   #FFFFFF;    /* pure white */
  --ink:     #1A1A2E;    /* deep ink with subtle indigo */
  --ink-2:   #3A3A52;    /* secondary ink */
  --muted:   #6B6B85;    /* dusty indigo */
  --line:    rgba(61, 52, 139, 0.10);
  --line-2:  rgba(61, 52, 139, 0.06);

  /* Type */
  --display: "Fraunces", ui-serif, Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1240px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Shadows */
  --shadow-soft: 0 10px 30px -12px rgba(11, 27, 58, .18), 0 2px 6px -2px rgba(11, 27, 58, .08);
  --shadow-lg: 0 30px 60px -20px rgba(11, 27, 58, .25), 0 12px 24px -10px rgba(11, 27, 58, .12);
  --shadow-glass: inset 0 1px 0 rgba(255,255,255,.6), 0 20px 40px -20px rgba(11, 27, 58, .18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
::selection { background: var(--gold-400); color: var(--navy-900); }

.skip-link {
  position: absolute; left: -1000px; top: 0;
  background: var(--navy-800); color: var(--ivory);
  padding: 12px 16px; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 880px; }
.section { padding: clamp(48px, 6.5vw, 88px) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%); }
.section--dark { background: var(--navy-800); color: var(--ivory); }
.section--dark .section__lede { color: rgba(248,245,238,.7); }

.section__head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section__head--light { color: var(--ivory); }
.section__lede { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); margin: 16px auto 0; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px;
  background: rgba(26,26,46,.04);
  border: 1px solid var(--line);
}
.eyebrow--light { color: rgba(248,245,238,.85); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px rgba(247,184,1,.18); }

/* ---------- Display type ---------- */
.display {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(48px, 7.6vw, 96px);
  margin: 18px 0 24px;
  color: var(--ink);
}
.display em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(120deg, var(--gold-500) 0%, var(--rose-400) 60%, var(--violet-500) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
  padding-right: 0.12em;
  margin-right: -0.04em;
}
.display--md { font-size: clamp(36px, 5vw, 64px); margin-top: 14px; }
.section--dark .display { color: var(--ivory); }
.lede {
  color: var(--ink);
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 500;
  max-width: 540px;
  text-shadow: 0 1px 0 rgba(251,247,240,.7);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px; letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 16px 26px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--navy-800); color: var(--ivory);
  box-shadow: 0 12px 24px -10px rgba(26,26,46,.5), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn--primary:hover { transform: translateY(-2px); background: var(--navy-900); box-shadow: 0 18px 30px -12px rgba(26,26,46,.6); }
.btn--ghost {
  background: rgba(26,26,46,.04); color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: rgba(26,26,46,.08); transform: translateY(-2px); }

/* ---------- Glass surface ---------- */
.glass {
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-glass);
  border-radius: var(--radius);
}
.section--dark .glass {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 40px -20px rgba(0,0,0,.4);
}

/* ---------- Grain overlay ---------- */
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Animated blobs ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.blob--gold { background: radial-gradient(circle at 30% 30%, var(--gold-400), transparent 65%); }
.blob--indigo { background: radial-gradient(circle at 30% 30%, var(--indigo-500), transparent 65%); opacity: .35; }
.blob--violet { background: radial-gradient(circle at 30% 30%, var(--violet-500), transparent 65%); opacity: .4; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 16px 16px auto 16px; z-index: 100;
  border-radius: 999px;
  background: rgba(248,245,238,.65);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(26,26,46,.08);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), inset .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255,255,255,.85);
  box-shadow: 0 12px 30px -16px rgba(26,26,46,.25);
}
.nav__inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
}
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; padding-left: 6px; }
.nav__logo-text { font-family: var(--display); font-size: 20px; font-weight: 600; }
.nav__logo-text em { font-style: italic; color: var(--muted); font-weight: 400; }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--ink-2); transition: background .25s var(--ease), color .25s var(--ease);
}
.nav__links a:hover { background: rgba(26,26,46,.06); color: var(--ink); }
.nav__cta { display: flex; gap: 8px; }
.nav__burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(26,26,46,.06);
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav__burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(26,26,46,.92);
  backdrop-filter: blur(20px);
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.sheet.is-open { opacity: 1; pointer-events: auto; }
.sheet__inner { display: flex; flex-direction: column; gap: 6px; text-align: center; padding: 40px; width: min(420px, 90vw); }
.sheet__inner a {
  font-family: var(--display); font-size: 32px; color: var(--ivory);
  padding: 12px; border-radius: 12px;
}
.sheet__inner a:hover { background: rgba(255,255,255,.06); }
.sheet__inner .btn { font-family: var(--body); font-size: 15px; margin-top: 16px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; padding: clamp(96px, 11vw, 124px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* Hero background photo — coaching institute building exterior */
.hero__photo-bg {
  position: absolute; inset: 0;
  background-image: url("https://images.unsplash.com/photo-1607237138185-eedd9c632b0b?w=2400&auto=format&fit=crop&q=80");
  background-size: cover;
  background-position: center 50%;
  filter: saturate(.95) brightness(1) contrast(1.02);
  opacity: 1;
  animation: bgDrift 36s var(--ease) infinite alternate;
}
@keyframes bgDrift {
  from { transform: scale(1.02) translate(0,0); }
  to   { transform: scale(1.06) translate(-14px, -8px); }
}

/* Duotone wash — softer so the photo stays clearly visible */
.hero__duotone {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 80% 20%, rgba(241,135,1,.22), transparent 55%),
    linear-gradient(135deg, rgba(61,52,139,.18) 0%, rgba(118,120,237,.10) 40%, rgba(247,184,1,.08) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Dot-grid pattern overlay — very subtle, doesn't fight the photo */
.hero__dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(61,52,139,.12) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: .35;
  mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 75%, transparent 100%);
  pointer-events: none;
}

/* Parchment overlay — extended further toward the middle for softer, more even tint */
.hero__photo-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(251,247,240,.90) 0%,
      rgba(251,247,240,.75) 30%,
      rgba(251,247,240,.50) 55%,
      rgba(251,247,240,.25) 75%,
      rgba(251,247,240,.08) 92%,
      rgba(251,247,240,0)   100%),
    linear-gradient(180deg,
      rgba(251,247,240,0) 60%,
      rgba(251,247,240,.22) 100%);
}

/* Floating formula chips — decorative academic motifs */
.hero__formulas { position: absolute; inset: 0; pointer-events: none; }
.formula {
  position: absolute;
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: rgba(61,52,139,.55);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(61,52,139,.15);
  font-size: 13px;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 8px 20px -8px rgba(61,52,139,.25);
  animation: formulaFloat 12s var(--ease) infinite alternate;
}
.formula sup { font-size: 0.7em; vertical-align: super; }
.formula--1 { top: 18%; left: 4%; animation-delay: 0s; }
.formula--2 { top: 64%; left: 8%; animation-delay: 1.5s; color: rgba(243,91,4,.6); border-color: rgba(243,91,4,.18); }
.formula--3 { top: 32%; right: 6%; animation-delay: 3s; }
.formula--4 { top: 76%; right: 10%; animation-delay: 4.5s; color: rgba(241,135,1,.6); border-color: rgba(241,135,1,.18); }
.formula--5 { top: 14%; right: 32%; animation-delay: 6s; color: rgba(118,120,237,.7); border-color: rgba(118,120,237,.2); }
@keyframes formulaFloat {
  from { transform: translateY(0)   rotate(-2deg); opacity: .85; }
  to   { transform: translateY(-12px) rotate(2deg); opacity: 1; }
}
.hero__bg .blob--gold { width: 620px; height: 620px; top: -120px; left: -160px; animation: float1 18s var(--ease) infinite alternate; }
.hero__bg .blob--indigo { width: 520px; height: 520px; bottom: -120px; left: 30%; animation: float2 22s var(--ease) infinite alternate; }
.hero__bg .blob--violet { width: 580px; height: 580px; top: -100px; right: -160px; animation: float3 20s var(--ease) infinite alternate; }
@keyframes float1 { from { transform: translate(0,0) scale(1); } to { transform: translate(60px, 40px) scale(1.08); } }
@keyframes float2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-50px, -60px) scale(1.1); } }
@keyframes float3 { from { transform: translate(0,0) scale(1); } to { transform: translate(-40px, 50px) scale(1.05); } }

.hero__inner {
  position: relative; max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center;
}
.hero__copy { max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.trust {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px;
  padding-top: 28px; border-top: 1px dashed var(--line);
}
.trust li {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; background: rgba(26,26,46,.05);
}

/* Recent toppers strip in hero */
.hero__toppers {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.hero__toppers-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
  margin-bottom: 16px;
}

/* Marquee — seamless auto-scroll */
.topper-marquee {
  position: relative;
  overflow: hidden;
  /* Soft fade at the edges so items appear/vanish gracefully */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.topper-marquee__track {
  display: flex;
  width: max-content;
  gap: 22px;
  animation: topperScroll 32s linear infinite;
  will-change: transform;
}
.topper-marquee:hover .topper-marquee__track,
.topper-marquee:focus-within .topper-marquee__track { animation-play-state: paused; }

@keyframes topperScroll {
  from { transform: translate3d(0, 0, 0); }
  /* -50% scrolls past the original list; the duplicate fills in seamlessly */
  to   { transform: translate3d(-50%, 0, 0); }
}

.topperlist {
  display: flex; gap: 22px; flex-shrink: 0;
  list-style: none; padding: 0; margin: 0;
  padding-right: 22px; /* same as gap so seam is invisible */
}
.topper-mini {
  display: flex; align-items: center; gap: 10px;
  transition: transform .35s var(--ease);
}
.topper-mini:hover { transform: translateY(-2px); }
.topper-mini > img {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-400);
  box-shadow: 0 4px 12px -4px rgba(26,26,46,.25);
  background: var(--paper);
}
.topper-mini > div { display: flex; flex-direction: column; line-height: 1.1; }
.topper-mini strong {
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  font-family: var(--display); letter-spacing: -.005em;
}
.topper-mini span {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-800); font-weight: 700; margin-top: 4px;
}
.topper-mini__more {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-400);
  border: 2px dashed var(--gold-400);
  font-family: var(--display); font-weight: 600; font-size: 12px;
  letter-spacing: -.01em;
}

/* =========================================================
   HERO VISUAL — Live-Class product mockup composition
   ========================================================= */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1/1.05;
  min-height: 480px;
  margin-left: auto;
  perspective: 1400px;
}

/* Aurora glow behind the window */
.aurora { position: absolute; inset: -8%; pointer-events: none; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: auroraShift 14s var(--ease) infinite alternate;
}
.aurora__a { width: 70%; height: 70%; left: -10%; top: 0%;
  background: radial-gradient(circle at 30% 30%, var(--violet-500), transparent 65%); }
.aurora__b { width: 75%; height: 75%; right: -10%; bottom: 0%;
  background: radial-gradient(circle at 30% 30%, var(--gold-400), transparent 65%);
  animation-delay: 2s; }
@keyframes auroraShift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(20px, -16px) scale(1.08); }
}

/* Decorative giant numeral (editorial typography) */
.bignum {
  position: absolute; inset: auto -2% -2% auto;
  font-family: var(--display); font-weight: 600; font-style: italic;
  font-size: clamp(160px, 22vw, 280px);
  line-height: .8;
  -webkit-text-stroke: 1.5px rgba(26,26,46,.12);
  color: transparent;
  pointer-events: none; user-select: none;
  z-index: 1;
}

/* ----- ORBITAL ROADMAP PANEL ----- */
.orbital-panel {
  position: absolute;
  top: 4%;
  right: 6%;
  bottom: 6%;
  left: 4%;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(247,184,1,.10), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  border-radius: 28px;
  border: 1px solid rgba(247,184,1,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 30px 60px -20px rgba(26,26,46,.45),
    0 60px 120px -40px rgba(118,120,237,.25);
  display: flex; flex-direction: column;
  padding: 18px;
  z-index: 5;
  color: var(--ivory);
  isolation: isolate;
  overflow: hidden;
}
.orbital-panel::before {
  /* subtle grain */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .25 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .25; mix-blend-mode: overlay;
}

.orbital-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  position: relative; z-index: 2;
}
.orbital-panel__eyebrow {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-400); font-weight: 700;
}
.orbital-panel__title {
  font-family: var(--display); font-size: 15px; font-weight: 600;
  margin-top: 2px; color: var(--ivory);
}
.orbital-panel__live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(247,184,1,.12); color: var(--gold-400);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  border: 1px solid rgba(247,184,1,.25);
}
.livedot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 0 rgba(247,184,1,.6); animation: pulseGold 2s infinite; }
@keyframes pulseGold { 0% { box-shadow: 0 0 0 0 rgba(247,184,1,.6); } 70% { box-shadow: 0 0 0 10px rgba(247,184,1,0); } 100% { box-shadow: 0 0 0 0 rgba(247,184,1,0); } }

.orbital-panel__foot {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(248,245,238,.55); font-weight: 600;
  position: relative; z-index: 2;
}

/* Orbital stage */
.orbital {
  flex: 1; position: relative; min-height: 0;
  display: grid; place-items: center;
}
.orbital__ring {
  position: absolute; border-radius: 50%;
  border: 1px dashed rgba(247,184,1,.22);
  pointer-events: none;
}
.orbital__ring--outer { width: 280px; height: 280px; }
.orbital__ring--inner { width: 160px; height: 160px; border-color: rgba(248,245,238,.10); }

/* Center core */
.orbital__core {
  position: absolute; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(from 0deg, var(--gold-500), var(--rose-400), var(--violet-500), var(--gold-500));
  box-shadow: 0 0 30px rgba(247,184,1,.4), 0 0 60px rgba(243,91,4,.25);
  z-index: 2;
  pointer-events: none;
  animation: spin 12s linear infinite;
}
.orbital__core::before {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.6), rgba(255,255,255,0) 60%), var(--navy-900);
  border: 1px solid rgba(255,255,255,.08);
}
.orbital__core-dot {
  position: absolute; z-index: 1; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.85);
  filter: blur(.3px);
}
.orbital__ping {
  position: absolute; width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid rgba(247,184,1,.5);
  animation: orbPing 2.4s cubic-bezier(0,0,.2,1) infinite;
}
.orbital__ping--2 { animation-delay: .8s; border-color: rgba(243,91,4,.4); }
@keyframes orbPing {
  0%   { transform: scale(1);   opacity: .8; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}

/* Nodes (positioned by JS) */
.orbital__nodes { position: absolute; inset: 0; }
.orb-node {
  position: absolute; top: 50%; left: 50%;
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px; /* center anchor */
  display: grid; place-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
  z-index: 3;
}
.orb-node__btn {
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold-400);
  border: 1.5px solid rgba(247,184,1,.35);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.orb-node__halo {
  position: absolute; inset: -10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,184,1,.35) 0%, transparent 65%);
  opacity: 0; transition: opacity .35s var(--ease);
  pointer-events: none;
}
.orb-node__label {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(248,245,238,.7); font-weight: 600;
  transition: color .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}

/* Status colors */
.orb-node[data-status="completed"] .orb-node__btn { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-300); }
.orb-node[data-status="in-progress"] .orb-node__btn { background: var(--ivory); color: var(--navy-900); border-color: rgba(255,255,255,.7); }
.orb-node[data-status="pending"] .orb-node__btn { background: rgba(26,26,46,.6); color: rgba(247,184,1,.6); border-color: rgba(247,184,1,.2); }

/* Active / expanded node */
.orb-node.is-active { z-index: 200 !important; }
.orb-node.is-active .orb-node__btn {
  transform: scale(1.4);
  box-shadow: 0 0 0 4px rgba(247,184,1,.18), 0 14px 30px -8px rgba(247,184,1,.5);
}
.orb-node.is-active .orb-node__halo { opacity: 1; }
.orb-node.is-active .orb-node__label { color: var(--ivory); transform: translateX(-50%) scale(1.1); }

/* Related node (pulses when another is active) */
.orb-node.is-related .orb-node__btn {
  animation: relatedPulse 1.4s ease-in-out infinite;
  border-color: var(--gold-400);
}
@keyframes relatedPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247,184,1,.5); }
  50%      { box-shadow: 0 0 0 8px rgba(247,184,1,0); }
}

/* Expanded card */
.orb-card {
  position: absolute; top: calc(100% + 32px); left: 50%; transform: translateX(-50%);
  width: 220px;
  background: rgba(7,20,44,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(247,184,1,.25);
  border-radius: 14px;
  padding: 14px;
  color: var(--ivory);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  z-index: 250;
  animation: orbCardIn .35s var(--ease-out);
}
@keyframes orbCardIn {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.orb-card::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translate(-50%, -100%);
  width: 1px; height: 14px; background: rgba(247,184,1,.5);
}
.orb-card__head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.orb-card__status {
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid;
}
.orb-card__status[data-s="completed"] { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-300); }
.orb-card__status[data-s="in-progress"] { background: var(--ivory); color: var(--navy-900); border-color: var(--ivory); }
.orb-card__status[data-s="pending"] { background: transparent; color: rgba(248,245,238,.7); border-color: rgba(248,245,238,.3); }
.orb-card__date {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10px; color: rgba(248,245,238,.55);
}
.orb-card__title {
  font-family: var(--display); font-size: 16px; font-weight: 600; margin: 8px 0 0;
  color: var(--ivory);
}
.orb-card__body { font-size: 11.5px; color: rgba(248,245,238,.75); line-height: 1.45; margin: 8px 0 0; }
.orb-card__divider { height: 1px; background: rgba(255,255,255,.08); margin: 12px 0 10px; }
.orb-card__rowhead {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; color: rgba(248,245,238,.7); font-weight: 600;
}
.orb-card__rowhead svg { vertical-align: -2px; margin-right: 4px; color: var(--gold-400); }
.orb-card__bar { height: 4px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.orb-card__bar > span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-500), var(--rose-400), var(--violet-500));
  transition: width .8s var(--ease-out);
}
.orb-card__related {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px;
}
.orb-card__related button {
  font-size: 10px; letter-spacing: .04em; font-weight: 600; color: rgba(248,245,238,.85);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 4px 8px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
}
.orb-card__related button:hover { background: rgba(247,184,1,.15); border-color: rgba(247,184,1,.4); color: var(--ivory); }
.orb-card__related button svg { color: var(--gold-400); }

/* ----- MEDAL ----- */
.medal {
  position: absolute; top: -3%; right: -2%; z-index: 8;
  width: 120px; height: 120px;
  filter: drop-shadow(0 18px 30px rgba(26,26,46,.3));
  animation: bobSlow 7s var(--ease) infinite alternate;
}
.medal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.medal__inner {
  position: absolute; inset: 8px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: var(--ivory);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.medal__eyebrow { font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(248,245,238,.65); font-weight: 700; }
.medal__rank { font-family: var(--display); font-size: 17px; line-height: 1; margin: 3px 0 2px; color: var(--gold-400); font-weight: 600; }
.medal__rank span { font-size: 28px; margin-left: 2px; color: var(--ivory); }
.medal__sub { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: rgba(248,245,238,.55); font-weight: 600; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bobSlow {
  from { transform: translateY(0)   rotate(-3deg); }
  to   { transform: translateY(-10px) rotate(3deg); }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); } 70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }

/* ----- COMPACT RATING PILL ----- */
.ratepill {
  position: absolute; bottom: 4%; left: -4%; z-index: 6;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  font-size: 13px; color: var(--ink);
  border-radius: 999px;
  animation: bobSlow 8s var(--ease) infinite alternate;
  animation-delay: 1s;
}
.ratepill strong { font-family: var(--display); font-size: 16px; font-weight: 600; }

.hero__scrollhint {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted);
}
.hero__scrollline { width: 1px; height: 36px; background: linear-gradient(var(--muted), transparent); position: relative; overflow: hidden; }
.hero__scrollline::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 12px; background: var(--ink); animation: scrollHint 2.4s ease-in-out infinite; }
@keyframes scrollHint { 0% { transform: translateY(-12px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(36px); opacity: 0; } }

/* =========================================================
   STATS
   ========================================================= */
.stats { padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.stats__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat { text-align: center; }
.stat__num { font-family: var(--display); font-size: clamp(36px, 4vw, 56px); font-weight: 600; letter-spacing: -.02em; }
.stat__num span {
  background: linear-gradient(120deg, var(--navy-800), var(--violet-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* =========================================================
   COURSES
   ========================================================= */
.courses {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.course {
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.course:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course__media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.course__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.course:hover .course__media img { transform: scale(1.06); }
.course__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--navy-800); color: var(--gold-400);
  padding: 6px 12px; border-radius: 999px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.course__badge--alt { background: var(--gold-500); color: var(--navy-800); }
.course__body { padding: 22px 22px 26px; }
.course__tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-500); font-weight: 700; margin-bottom: 8px; }
.course__body h3 { font-family: var(--display); font-size: 22px; margin: 0 0 10px; line-height: 1.15; font-weight: 600; }
.course__body p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.course__meta { color: var(--ink-2); font-size: 13px; display: flex; gap: 8px; margin-bottom: 18px; }
.course__cta {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--ink);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.course__cta:hover { gap: 10px; color: var(--gold-500); }

/* =========================================================
   PAPER SECTION VARIANT (used by gallery)
   ========================================================= */
.section--paper {
  background:
    radial-gradient(800px 400px at 10% -10%, rgba(247,184,1,.10), transparent 60%),
    radial-gradient(700px 380px at 100% 100%, rgba(243,91,4,.08), transparent 60%),
    var(--paper);
}


/* =========================================================
   CAMPUS GALLERY — asymmetric magazine grid
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 230px;
  gap: 16px;
}
.gallery__cell {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  cursor: pointer;
}
.gallery__cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery__cell img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
  filter: saturate(.95) contrast(1.03);
}
.gallery__cell:hover img { transform: scale(1.06); }

.gallery__cell figcaption {
  position: absolute; inset: 0;
  padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(26,26,46,0) 30%, rgba(26,26,46,.85) 100%);
  transition: background .4s var(--ease);
}
.gallery__cell:hover figcaption { background: linear-gradient(180deg, rgba(26,26,46,.15) 0%, rgba(26,26,46,.9) 100%); }

.gallery__num {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 12px;
  color: var(--gold-400); letter-spacing: .12em;
  margin-bottom: 6px;
  opacity: .85;
}
.gallery__cell figcaption h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 22px; line-height: 1.15; margin: 0 0 6px;
  letter-spacing: -.01em;
  color: var(--ivory);
}
.gallery__cell figcaption p {
  font-size: 13px; line-height: 1.5;
  margin: 0;
  color: rgba(251,247,240,.78);
  max-width: 38ch;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .5s var(--ease), opacity .35s var(--ease) .05s;
}
.gallery__cell:hover figcaption p,
.gallery__cell:focus-within figcaption p {
  max-height: 100px;
  opacity: 1;
}

/* Default cell occupies half a row (3 of 6 cols) */
.gallery__cell { grid-column: span 3; grid-row: span 1; }
/* Asymmetric spans for visual interest */
.gallery__cell--hero { grid-column: span 3; grid-row: span 2; }
.gallery__cell--tall { grid-column: span 2; grid-row: span 2; }
.gallery__cell--wide { grid-column: span 4; grid-row: span 1; }
/* Per-cell tuning so the 8-cell layout balances nicely */
.gallery__cell:nth-child(2),
.gallery__cell:nth-child(3) { grid-column: span 3; }
.gallery__cell:nth-child(5) { grid-column: span 4; }
.gallery__cell:nth-child(7),
.gallery__cell:nth-child(8) { grid-column: span 3; }

/* Stats strip under gallery */
.gallery__strip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 36px; padding: 24px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(247,184,1,.07), transparent 60%),
    rgba(255,255,255,.5);
}
.gallery__strip > div { text-align: center; }
.gallery__strip strong {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: 28px; color: var(--ink); line-height: 1; letter-spacing: -.02em;
}
.gallery__strip span {
  display: block; margin-top: 6px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

/* =========================================================
   BENTO
   ========================================================= */
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.bento__cell { padding: 32px; min-height: 240px; transition: transform .4s var(--ease); }
.bento__cell:hover { transform: translateY(-4px); }
.bento__cell--lg { grid-column: span 1; min-height: 260px; background: linear-gradient(135deg, rgba(247,184,1,.18), rgba(255,255,255,.6)); }
.bento__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--navy-800); color: var(--gold-400);
  display: grid; place-items: center; margin-bottom: 18px;
}
.bento__cell h3 { font-family: var(--display); font-size: 22px; margin: 0 0 8px; font-weight: 600; }
.bento__cell p { color: var(--muted); margin: 0; font-size: 15px; }

/* =========================================================
   FACULTY
   ========================================================= */
.faculty { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.faculty__card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.faculty__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.faculty__photo { aspect-ratio: 4/5; overflow: hidden; }
.faculty__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); filter: saturate(.95); }
.faculty__card:hover .faculty__photo img { transform: scale(1.05); filter: saturate(1.05); }
.faculty__meta { padding: 22px; }
.faculty__meta h3 { font-family: var(--display); margin: 0; font-size: 22px; font-weight: 600; }
.faculty__sub { color: var(--gold-500); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin: 4px 0 12px; }
.faculty__quote { color: var(--ink-2); font-size: 14px; font-style: italic; margin: 0; line-height: 1.5; }

/* =========================================================
   TOPPERS WALL (dark section)
   ========================================================= */
.toppers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.topper {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/4;
  isolation: isolate;
  transition: transform .5s var(--ease);
}
.topper:hover { transform: translateY(-6px); }
.topper img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); filter: saturate(.9); }
.topper:hover img { transform: scale(1.06); }
.topper figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 24px 20px 20px;
  background: linear-gradient(0deg, rgba(7,20,44,.95) 0%, rgba(7,20,44,.55) 60%, transparent 100%);
  color: var(--ivory);
}
.topper figcaption strong { font-family: var(--display); font-size: 22px; font-weight: 600; display: block; }
.topper__rank { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); font-weight: 700; margin: 4px 0 10px; }
.topper figcaption p { font-size: 13px; opacity: .85; margin: 0; line-height: 1.5; }

/* =========================================================
   TESTIMONIAL CAROUSEL
   ========================================================= */
.tcarousel { position: relative; }
.tcarousel__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 28px; scrollbar-width: none;
  scroll-behavior: smooth;
}
.tcarousel__track::-webkit-scrollbar { display: none; }
.testimonial {
  flex: 0 0 min(420px, 88vw);
  scroll-snap-align: center;
  padding: 28px;
}
.testimonial__stars { color: var(--gold-500); letter-spacing: .15em; font-size: 14px; }
.testimonial blockquote {
  font-family: var(--display); font-size: 22px; font-weight: 500; line-height: 1.35;
  margin: 14px 0 22px; color: var(--ink); letter-spacing: -.005em;
}
.testimonial blockquote em { font-style: italic; color: var(--gold-500); }
.testimonial footer { display: flex; align-items: center; gap: 12px; }
.testimonial footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial footer strong { display: block; font-size: 14px; }
.testimonial footer span { display: block; color: var(--muted); font-size: 12px; }
.tcarousel__nav { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.tcarousel__btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  font-size: 22px; color: var(--ink); transition: transform .25s var(--ease), background .25s var(--ease);
}
.tcarousel__btn:hover { transform: translateY(-2px); background: var(--navy-800); color: var(--ivory); }

/* =========================================================
   PRICING
   ========================================================= */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  padding: 36px 32px; display: flex; flex-direction: column; gap: 14px;
  position: relative; transition: transform .4s var(--ease);
}
.plan:hover { transform: translateY(-4px); }
.plan__name { font-family: var(--display); font-size: 24px; font-weight: 600; margin: 0; }
.plan__price { font-family: var(--display); font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: -.02em; margin: 4px 0 0; }
.plan__cur { font-size: 24px; vertical-align: top; margin-right: 4px; color: var(--muted); }
.plan__per { font-family: var(--body); font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.plan__sub { color: var(--muted); margin: 0; font-size: 14px; }
.plan__feats { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 6px; flex: 1; }
.plan__feats li { font-size: 14px; padding-left: 26px; position: relative; }
.plan__feats li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-500);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12l5 5L20 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12l5 5L20 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat;
}
.plan--featured {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-700));
  color: var(--ivory);
  border-color: rgba(255,255,255,.1);
  transform: scale(1.03);
  box-shadow: 0 30px 60px -20px rgba(26,26,46,.45);
}
.plan--featured:hover { transform: scale(1.04) translateY(-4px); }
.plan--featured .plan__sub, .plan--featured .plan__cur, .plan--featured .plan__per { color: rgba(248,245,238,.7); }
.plan--featured .btn--primary { background: var(--gold-500); color: var(--navy-900); }
.plan--featured .btn--primary:hover { background: var(--gold-400); }
.plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold-500); color: var(--navy-900);
  padding: 6px 14px; border-radius: 999px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  box-shadow: 0 8px 16px -6px rgba(247,184,1,.6);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 4px;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.faq__item[open] { box-shadow: var(--shadow-soft); border-color: rgba(247,184,1,.3); }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 20px 24px;
  font-family: var(--display); font-weight: 500; font-size: 19px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(26,26,46,.05);
  position: relative; flex-shrink: 0; transition: transform .35s var(--ease), background .35s var(--ease);
}
.faq__plus::before, .faq__plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px;
  background: var(--ink); transform: translate(-50%, -50%); transition: transform .35s var(--ease);
}
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus { background: var(--gold-500); }
.faq__item[open] .faq__plus::before { background: var(--navy-900); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(0); background: var(--navy-900); }
.faq__body { padding: 0 24px 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta {
  position: relative; padding: clamp(80px, 10vw, 120px) 0;
  background: var(--navy-800); color: var(--ivory); overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; }
.cta__bg .blob--gold { width: 500px; height: 500px; top: -100px; left: -100px; opacity: .35; animation: float1 20s var(--ease) infinite alternate; }
.cta__bg .blob--violet { width: 600px; height: 600px; bottom: -150px; right: -100px; opacity: .35; animation: float3 24s var(--ease) infinite alternate; }
.cta__inner {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center;
}
.cta__copy h2 { color: var(--ivory); }
.cta__copy p { color: rgba(248,245,238,.78); font-size: 17px; max-width: 460px; }
.cta__bullets { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.cta__bullets li { color: rgba(248,245,238,.92); font-size: 15px; }

.cta__form {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  border-radius: var(--radius);
}
.cta__form h3 { font-family: var(--display); font-size: 24px; margin: 0 0 8px; color: var(--ivory); font-weight: 600; }
.cta__form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(248,245,238,.7); font-weight: 600;
}
.cta__form input, .cta__form select {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: var(--ivory); padding: 14px 16px; border-radius: 12px;
  font-family: var(--body); font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.cta__form input:focus, .cta__form select:focus { outline: none; border-color: var(--gold-500); background: rgba(255,255,255,.1); }
.cta__form select option { color: var(--ink); }
.cta__form .btn--primary { background: var(--gold-500); color: var(--navy-900); margin-top: 6px; }
.cta__form .btn--primary:hover { background: var(--gold-400); }
.cta__form-note { font-size: 13px; min-height: 18px; margin: 0; color: var(--gold-400); letter-spacing: 0; text-transform: none; font-weight: 500; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--navy-900); color: rgba(248,245,238,.7);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand p { max-width: 360px; font-size: 14px; margin: 16px 0 20px; }
.nav__logo--footer { color: var(--ivory); }
.nav__logo--footer .nav__logo-text em { color: rgba(248,245,238,.5); }
.footer__news { display: flex; gap: 8px; max-width: 380px; }
.footer__news input {
  flex: 1; padding: 12px 16px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--ivory);
}
.footer__news input:focus { outline: none; border-color: var(--gold-500); }
.footer__news .btn { background: var(--gold-500); color: var(--navy-900); }
.footer__news .btn:hover { background: var(--gold-400); }
.footer h4 { color: var(--ivory); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; font-weight: 700; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; transition: color .25s var(--ease); }
.footer ul a:hover { color: var(--gold-400); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 28px; font-size: 13px; flex-wrap: wrap;
}
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06);
  display: grid; place-items: center; transition: background .25s var(--ease), color .25s var(--ease);
}
.footer__social a:hover { background: var(--gold-500); color: var(--navy-900); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Stagger children inside grids */
.courses .reveal { transition-delay: calc(var(--i, 0) * 80ms); }
.faculty .reveal { transition-delay: calc(var(--i, 0) * 80ms); }
.toppers .reveal { transition-delay: calc(var(--i, 0) * 80ms); }
.bento .reveal { transition-delay: calc(var(--i, 0) * 60ms); }
.plans .reveal { transition-delay: calc(var(--i, 0) * 100ms); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet & below — collapse nav to burger, stack hero */
@media (max-width: 1100px) {
  .courses { grid-template-columns: repeat(2, 1fr); }
  .faculty { grid-template-columns: repeat(2, 1fr); }
  .toppers { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { width: 100%; max-width: 480px; margin: 30px auto 0; aspect-ratio: 1/1; min-height: 460px; }
  .hero__copy { max-width: 100%; }
  .lede { max-width: 600px; }
  .orbital-panel { top: 4%; right: 6%; bottom: 6%; left: 4%; }
  .medal { top: -2%; right: 0; width: 110px; height: 110px; }
  .ratepill { bottom: 2%; left: 2%; }
}

/* Tablet adjustments */
@media (max-width: 960px) {
  /* Gallery → simpler grid */
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery__cell,
  .gallery__cell--hero,
  .gallery__cell--tall,
  .gallery__cell--wide,
  .gallery__cell:nth-child(2),
  .gallery__cell:nth-child(3),
  .gallery__cell:nth-child(4),
  .gallery__cell:nth-child(5),
  .gallery__cell:nth-child(6),
  .gallery__cell:nth-child(7),
  .gallery__cell:nth-child(8) { grid-column: span 1; grid-row: span 1; }
  .gallery__cell--hero { grid-column: span 2; grid-row: span 2; }
  .gallery__cell--wide { grid-column: span 2; }

  /* Caption text always visible on touch (no hover) */
  .gallery__cell figcaption p { max-height: 100px; opacity: 1; }

  .gallery__strip { grid-template-columns: repeat(3, 1fr); padding: 22px; }
}

/* Small tablet / large phone */
@media (max-width: 820px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-4px); }
  .cta__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: 1 / -1; }
  .bento__cell { padding: 26px; min-height: 200px; }
  .bento__cell--lg { min-height: 220px; }
  .section { padding: clamp(40px, 8vw, 68px) 0; }

  /* HERO: comprehensive stack — covers tablet portrait + all phones */
  .hero { padding: 92px 0 48px; overflow: hidden; }
  .hero__inner {
    grid-template-columns: 1fr !important;
    gap: 32px;
    padding: 0 18px;
    max-width: 100%;
  }
  .hero__copy { max-width: 100% !important; width: 100%; }
  .lede { max-width: 100% !important; font-size: 16px; line-height: 1.55; }
  .display { font-size: clamp(36px, 8vw, 56px); line-height: 1.05; }

  /* Buttons stack-friendly */
  .hero__actions { width: 100%; flex-wrap: wrap; }
  .hero__actions .btn { flex: 1 1 140px; min-width: 0; }

  /* Visual: explicit pixel dimensions — aspect-ratio fails with all-absolute children */
  .hero__visual {
    width: min(440px, 92vw) !important;
    height: min(440px, 92vw) !important;
    max-width: none !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin: 0 auto !important;
  }

  /* Orbital panel fills the visual edge-to-edge */
  .orbital-panel {
    top: 0 !important; right: 0 !important;
    bottom: 0 !important; left: 0 !important;
    padding: 14px;
    border-radius: 22px;
  }
  .orbital-panel__head { gap: 8px; }
  .orbital-panel__title { font-size: 14px; }
  .orbital-panel__eyebrow { font-size: 10px; }
  .orbital-panel__live { padding: 4px 10px; font-size: 9px; }
  .orbital-panel__foot { font-size: 10px; }

  /* Tighter ring & smaller nodes — JS RADIUS auto-adapts */
  .orbital__ring--outer { width: 220px; height: 220px; }
  .orbital__ring--inner { width: 130px; height: 130px; }
  .orbital__core { width: 52px; height: 52px; }
  .orbital__ping { width: 52px; height: 52px; }
  .orb-node { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .orb-node__label { font-size: 10px; top: calc(100% + 6px); }
  .orb-card { width: 200px; padding: 12px; }

  /* Medal + rating pill scaled to fit */
  .medal { width: 86px; height: 86px; top: -3%; right: -2%; }
  .medal__rank { font-size: 13px; }
  .medal__rank span { font-size: 22px; }
  .medal__eyebrow, .medal__sub { font-size: 8px; }
  .ratepill { padding: 7px 12px; font-size: 12px; bottom: -6%; left: 0; }
  .ratepill strong { font-size: 13px; }
}

/* Phone */
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .nav { inset: 10px 10px auto 10px; }
  .nav__inner { padding: 10px 14px; }
  .nav__logo { padding-left: 2px; }
  .nav__logo-text { font-size: 17px; }

  .courses { grid-template-columns: 1fr; gap: 18px; }
  .faculty { grid-template-columns: 1fr; gap: 18px; max-width: 420px; margin: 0 auto; }
  .toppers { grid-template-columns: 1fr 1fr; gap: 14px; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery__cell--hero { grid-column: span 1; grid-row: span 1; }
  .gallery__strip { grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 18px; }
  .gallery__strip strong { font-size: 22px; }

  .bento__cell { padding: 22px; min-height: auto; }
  .bento__cell--lg { min-height: auto; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

  /* Hero further tightening on phones (820px block handles base mobile layout) */
  .hero { padding-top: 84px; padding-bottom: 40px; }
  .hero__inner { gap: 24px; padding: 0 16px; }
  .hero__visual { width: min(360px, 92vw) !important; height: min(360px, 92vw) !important; }

  /* Orbital tighter on phones */
  .orbital-panel { padding: 12px; }
  .orbital__ring--outer { width: 200px; height: 200px; }
  .orbital__ring--inner { width: 115px; height: 115px; }
  .orb-node { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
  .orb-card { width: 180px; padding: 10px; }
  .medal { width: 78px; height: 78px; }
  .ratepill { font-size: 11px; padding: 6px 10px; bottom: -6%; }

  /* Constrain hero background blobs */
  .hero__bg .blob--gold { width: 380px; height: 380px; top: -80px; left: -120px; }
  .hero__bg .blob--indigo { width: 320px; height: 320px; bottom: -80px; left: 10%; }
  .hero__bg .blob--violet { width: 360px; height: 360px; top: -80px; right: -120px; }

  /* Decorative numeral smaller */
  .bignum { font-size: clamp(120px, 36vw, 180px); }

  /* Display & body type scale */
  .display { font-size: clamp(40px, 12vw, 56px); }
  .display--md { font-size: clamp(32px, 8vw, 44px); }
  .lede { font-size: 16px; }
  .section__lede { font-size: 15px; }

  /* Stats */
  .stats__inner { gap: 24px; padding: 0 12px; }
  .stat__num { font-size: 32px; }
  .stat__label { font-size: 11px; }

  /* Cards */
  .course__body { padding: 18px 18px 22px; }
  .course__body h3 { font-size: 20px; }
  .faculty__meta { padding: 18px; }
  .faculty__meta h3 { font-size: 20px; }

  /* Topper captions tighter on tiny grid */
  .topper figcaption { padding: 16px 14px 14px; }
  .topper figcaption strong { font-size: 16px; }
  .topper figcaption p { font-size: 12px; }
  .topper__rank { font-size: 10px; margin-bottom: 6px; }

  /* Testimonial */
  .testimonial { padding: 22px; flex-basis: 86vw; }
  .testimonial blockquote { font-size: 18px; line-height: 1.4; }

  /* Pricing */
  .plan { padding: 28px 24px; }
  .plan__price { font-size: 40px; }

  /* FAQ */
  .faq__item summary { padding: 16px 18px; font-size: 17px; }
  .faq__body { padding: 0 18px 18px; font-size: 14px; }

  /* CTA form */
  .cta { padding: 70px 0; }
  .cta__form { padding: 22px; }
  .cta__form h3 { font-size: 20px; }
  .cta__form input, .cta__form select { padding: 12px 14px; font-size: 16px; /* iOS no-zoom */ }
  .cta__bullets li { font-size: 14px; }

  /* Footer */
  .footer { padding: 48px 0 24px; }
  .footer__grid { padding-bottom: 32px; }
  .footer__news { flex-direction: column; gap: 10px; }
  .footer__news .btn { width: 100%; padding: 14px 20px; }
  .footer__bottom { justify-content: center; text-align: center; flex-direction: column; gap: 14px; }

  /* Hide subtle scroll hint on small screens */
  .hero__scrollhint { display: none; }

  /* Topper marquee on mobile: tighter, faster */
  .topper-marquee__track { gap: 16px; animation-duration: 24s; }
  .topperlist { gap: 16px; padding-right: 16px; }
  .topper-mini > img,
  .topper-mini__more { width: 38px; height: 38px; }
  .topper-mini strong { font-size: 12.5px; }
  .topper-mini span { font-size: 9px; }
}

/* Very small phones (≤ 380px) */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .nav__inner { padding: 8px 10px; }
  .display { font-size: 34px; line-height: 1.05; }
  .display--md { font-size: 28px; }
  .toppers { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }

  /* Hero: tighten further */
  .hero__inner { gap: 24px; padding: 0 14px; }
  .hero__visual { max-width: min(320px, 92vw); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  /* Orbital scales smaller still */
  .orbital__ring--outer { width: 190px; height: 190px; }
  .orbital__ring--inner { width: 110px; height: 110px; }
  .orb-node { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
  .orb-node__label { font-size: 9px; }
  .orb-card { width: 180px; padding: 10px; font-size: 11px; }
  .orbital-panel__title { font-size: 13px; }
  .orbital-panel__eyebrow { font-size: 9px; }
  .medal { width: 76px; height: 76px; }
  .medal__rank { font-size: 11px; }
  .medal__rank span { font-size: 19px; }

  /* Topper marquee on tiny screens */
  .topper-mini > img,
  .topper-mini__more { width: 36px; height: 36px; }
  .topper-mini strong { font-size: 12px; }
}

/* =========================================================
   FOCUS STYLES
   ========================================================= */
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 4px; }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .blob { animation: none !important; }
  .floatcard { animation: none !important; }
  .hero__shine { display: none; }

  /* Topper marquee: stop the scroll, allow manual horizontal scrolling instead */
  .topper-marquee { overflow-x: auto; scrollbar-width: thin; }
  .topper-marquee__track { animation: none !important; }
  /* Hide the duplicate copy when not auto-scrolling */
  .topper-marquee__track .topperlist[aria-hidden="true"] { display: none; }
}

/* =========================================================
   FINAL RESPONSIVE OVERRIDE — Hero on tablet & mobile
   Placed last to win cascade regardless of earlier rules.
   ========================================================= */
@media (max-width: 820px) {
  html, body { overflow-x: hidden; max-width: 100vw; }

  /* Stop the heading's italic gradient word from forcing a wide min-content */
  .display em {
    display: inline !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
  }

  /* Hero shell */
  .hero {
    padding: 90px 0 44px !important;
    overflow: hidden !important;
  }

  /* Decorative floating formulas hidden on smaller screens (decluttered) */
  .hero__formulas { display: none !important; }
  .hero__dotgrid { opacity: .35 !important; background-size: 16px 16px !important; }

  /* Hero inner: flex column instead of grid (more reliable stacking) */
  .hero__inner {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    align-items: stretch !important;
    gap: 28px !important;
    padding: 0 18px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Copy column resets — kill min-content sizing, force wrap */
  .hero__copy {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .display {
    font-size: clamp(34px, 8vw, 52px) !important;
    line-height: 1.06 !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .lede {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 15.5px !important;
    line-height: 1.55 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Buttons stack neatly, no flex-grow overflow */
  .hero__actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 22px !important;
  }
  .hero__actions .btn {
    flex: 1 1 140px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Topper marquee: stay inside parent */
  .hero__toppers { width: 100%; max-width: 100%; }
  .topper-marquee { width: 100%; max-width: 100%; }

  /* Hero visual: PIXEL dimensions, no aspect-ratio, no min-height inheritance */
  .hero__visual {
    width: min(360px, 90vw) !important;
    height: min(360px, 90vw) !important;
    max-width: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin: 8px auto 0 !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  /* Orbital panel fills the visual edge-to-edge */
  .orbital-panel {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    padding: 14px !important;
    border-radius: 22px !important;
  }
  .orbital-panel__title { font-size: 14px !important; }
  .orbital-panel__eyebrow { font-size: 10px !important; }
  .orbital-panel__live { padding: 4px 10px !important; font-size: 9px !important; }
  .orbital-panel__foot { font-size: 10px !important; }

  /* Tighten orbital internals so the ring fits */
  .orbital__ring--outer { width: 210px !important; height: 210px !important; }
  .orbital__ring--inner { width: 120px !important; height: 120px !important; }
  .orbital__core { width: 50px !important; height: 50px !important; }
  .orbital__ping { width: 50px !important; height: 50px !important; }
  .orb-node { width: 32px !important; height: 32px !important; margin: -16px 0 0 -16px !important; }
  .orb-node__label { font-size: 9.5px !important; top: calc(100% + 6px) !important; }
  .orb-card { width: 190px !important; padding: 12px !important; }

  /* Medal + rating pill scaled */
  .medal { width: 80px !important; height: 80px !important; top: -3% !important; right: -2% !important; }
  .medal__rank { font-size: 12px !important; }
  .medal__rank span { font-size: 20px !important; }
  .medal__eyebrow, .medal__sub { font-size: 8px !important; }
  .ratepill { padding: 6px 11px !important; font-size: 11px !important; bottom: -6% !important; left: 0 !important; }
  .ratepill strong { font-size: 13px !important; }
}

@media (max-width: 380px) {
  .hero__inner { padding: 0 14px !important; gap: 22px !important; }
  .hero__visual { width: min(310px, 92vw) !important; height: min(310px, 92vw) !important; }
  .orbital__ring--outer { width: 180px !important; height: 180px !important; }
  .orbital__ring--inner { width: 100px !important; height: 100px !important; }
  .orb-node { width: 28px !important; height: 28px !important; margin: -14px 0 0 -14px !important; }
  .orb-card { width: 170px !important; }
  .medal { width: 70px !important; height: 70px !important; }
  .display { font-size: 32px !important; }
  .hero__actions .btn { flex: 1 1 100% !important; }
}
