/* =========================================================
   CWC Academy — Concepts With Clarity
   ========================================================= */

:root {
  --ink: #07132f;
  --ink-2: #0a1a3f;
  --navy: #0b1f4d;
  --navy-2: #13306e;
  --gold: #f2b418;
  --gold-2: #ffd35c;
  --gold-deep: #a67400;
  --gold-ink: #8a6100;
  --paper: #f6f3ec;
  --paper-2: #ede8dc;
  --white: #ffffff;
  --text: #0e1733;
  --muted: #5b6480;
  --muted-light: #a9b3cf;
  --line: rgba(14, 23, 51, 0.1);
  --line-light: rgba(255, 255, 255, 0.1);

  --jee: #4c7dff;
  --ioqm: #a879ff;
  --neet: #1fc7a6;
  --jam: #ff8a5c;
  --upsc: #ff6b9a;

  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 20px 50px -20px rgba(7, 19, 47, 0.25);
  --shadow-lg: 0 40px 80px -30px rgba(7, 19, 47, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--gold); color: var(--ink); }

.container { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--f-mono); font-size: 0.8em; letter-spacing: 0.02em; }
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  background: var(--bg);
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, box-shadow 0.4s var(--ease), border-color 0.3s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn .arrow { transition: transform 0.4s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(4, 10, 26, 0.55); }
.btn--gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn--gold:hover::after { transform: translateX(120%); }
.btn--gold:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(4, 10, 26, 0.6); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.28); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Eyebrows / heads ---------- */

.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-title { font-size: clamp(34px, 5.2vw, 64px); font-weight: 700; }
.section-title .serif { font-size: 1.08em; color: var(--gold-deep); }
.section-head--light .section-title, .founder .section-title, .path .section-title { color: var(--white); }
.section-head--light .section-title .serif, .founder .section-title .serif, .path .section-title .serif { color: var(--gold); }
.section-lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); margin-top: 22px; max-width: 640px; }
.section-head--light .section-lead { color: var(--muted-light); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--paper);
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; color: var(--navy); }
.loader__logo { width: 120px; margin: 0 auto 20px; animation: loaderIn 1s var(--ease) both; }
.loader__eq { font-family: var(--f-mono); font-size: 13px; color: var(--muted); letter-spacing: .05em; }
.loader__eq i { color: var(--gold-ink); font-style: normal; margin: 0 6px; }
.loader__bar { width: 160px; height: 2px; background: rgba(11,31,77,.1); margin: 18px auto 0; overflow: hidden; border-radius: 2px; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--gold); animation: bar 1.1s var(--ease) forwards; }
@keyframes bar { to { width: 100%; } }
@keyframes loaderIn { from { opacity: 0; transform: scale(.9) translateY(10px); } }

/* ---------- Cursor glow & progress ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 420px; height: 420px; border-radius: 50%;
  pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(242,180,24,.12), transparent 65%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: 0; transition: opacity .4s;
}
@media (hover: hover) { .cursor-glow.is-on { opacity: 1; } }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: left; transform: scaleX(0); }

/* ---------- Nav: floating light bar, so the navy & gold logo sits on its native ground ---------- */
/* Sticky, zero-height: stays in the page flow at the top and sticks while scrolling,
   floating over the hero instead of pushing it down */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 0; overflow: visible;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav__inner.container {
  pointer-events: auto;
  position: relative; top: 14px;
  max-width: calc(1400px - 2 * var(--gutter)); width: 100%;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 12px 8px 16px;
  background: rgba(255, 255, 255, .96);
  border-radius: 16px;
  box-shadow: 0 12px 32px -16px rgba(4, 10, 26, .55), 0 2px 6px -2px rgba(4, 10, 26, .18);
  transition: box-shadow .4s, background .4s;
}
@supports (backdrop-filter: blur(1px)) {
  .nav__inner.container { background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
}
.nav.is-scrolled .nav__inner.container { top: 8px; }
.nav.is-scrolled .nav__inner.container { padding-top: 5px; padding-bottom: 5px; box-shadow: 0 14px 34px -18px rgba(4, 10, 26, .6), 0 1px 4px -1px rgba(4, 10, 26, .2); }
.nav.is-scrolled .nav__logo { width: 62px; }
.nav__inner.container { transition: box-shadow .4s, background .4s, padding .35s var(--ease), top .35s var(--ease); }
.nav__logo { transition: width .35s var(--ease); }
.nav__brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.nav__logo { width: 76px; height: auto; display: block; }
.nav__word { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; color: var(--navy); padding-left: 14px; border-left: 1.5px solid rgba(11,31,77,.16); }
.nav__word strong { font-family: var(--f-display); font-size: 21px; font-weight: 800; letter-spacing: -0.025em; color: var(--navy); }
.nav__word em { font-family: var(--f-serif); font-size: 18px; color: #7a5500; letter-spacing: 0; }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  position: relative;
  color: var(--muted); font-size: 14.5px; font-weight: 600; padding: 9px 14px; border-radius: 10px;
  transition: color .25s, background .25s;
}
.nav__links a:hover { color: var(--navy); background: rgba(11,31,77,.05); }
.nav__links a.is-active { color: var(--navy); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold);
}
.nav__cta { padding: 11px 20px; border-radius: 11px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 11px; border: 1px solid rgba(11,31,77,.14); background: transparent; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
body.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
body.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background:
    radial-gradient(520px 360px at 100% 0%, rgba(245,183,0,.10), transparent 65%),
    var(--ink);
  display: flex; flex-direction: column;
  padding: 112px var(--gutter) 28px;
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0% at calc(100% - 50px) 44px);
  transition: clip-path .8s var(--ease);
}
/* Fixed needs explicit edges, otherwise the header pill shrinks to its content */
body.menu-open .nav { position: fixed; left: 0; right: 0; top: 0; }
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 50px) 44px); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-display); font-size: clamp(24px, 6.6vw, 32px); font-weight: 700; color: var(--white);
  padding: 13px 0; letter-spacing: -0.02em; line-height: 1.15;
  border-bottom: 1px solid rgba(255,255,255,.08);
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease), color .3s;
}
.mobile-menu nav a::after {
  content: ""; width: 9px; height: 9px; margin-right: 4px;
  border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg);
  opacity: .35; transition: opacity .3s, transform .3s var(--ease);
}
.mobile-menu nav a:hover { color: var(--gold); }
.mobile-menu nav a:hover::after { opacity: 1; transform: translateX(3px) rotate(45deg); }
.mobile-menu nav a[aria-current="page"], .mobile-menu nav a.is-active { color: var(--gold); }
/* Last item is the primary action */
.mobile-menu nav a:last-child {
  justify-content: center; gap: 12px; margin-top: 22px; padding: 16px 20px;
  border: 0; border-radius: 14px; background: var(--gold); color: var(--ink);
  font-size: 18px; letter-spacing: -0.01em;
}
.mobile-menu nav a:last-child::after { opacity: 1; width: 8px; height: 8px; }
.mobile-menu nav a:last-child:hover { background: var(--gold-2); color: var(--ink); }
body.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
body.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: .15s; }
body.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: .2s; }
body.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: .25s; }
body.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: .3s; }
body.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: .35s; }
body.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: .4s; }
body.menu-open .mobile-menu nav a:nth-child(7) { transition-delay: .45s; }
.mobile-menu__foot {
  margin-top: auto; padding-top: 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  font-family: var(--f-mono); font-size: 14px;
  opacity: 0; transition: opacity .5s .5s;
}
body.menu-open .mobile-menu__foot { opacity: 1; }
.mobile-menu__foot a {
  white-space: nowrap; text-align: center; color: var(--gold);
  padding: 12px 10px; border-radius: 12px;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09);
  transition: background .3s;
}
.mobile-menu__foot a:hover { background: rgba(255,255,255,.08); }
.mobile-menu__foot a[href^="mailto"] { grid-column: 1 / -1; color: #c3cbe2; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  background:
    radial-gradient(1100px 600px at 80% 20%, rgba(76,125,255,.18), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(242,180,24,.12), transparent 60%),
    var(--ink);
  color: var(--white);
  padding: 150px 0 60px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero__title { font-size: clamp(46px, 7.6vw, 96px); font-weight: 800; letter-spacing: -0.035em; line-height: .98; margin-bottom: 26px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .word { display: inline-block; }
.hero__title .serif { color: var(--gold); font-weight: 400; font-size: 1.12em; letter-spacing: -0.02em; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: #c8d0e6; max-width: 560px; margin-bottom: 34px; }
.hero__lead strong { color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__tags { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; font-family: var(--f-serif); font-style: italic; font-size: 19px; color: var(--muted-light); }
.hero__tags li + li::before { content: "|"; margin-right: 18px; color: var(--gold); font-style: normal; }

.hero__visual { position: relative; aspect-ratio: 4 / 5; max-height: 620px; }
.hero__photo {
  position: absolute; inset: 0 0 0 8%;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.1);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,19,47,.6)); }
.hero__photo-fallback, .is-missing::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(145deg, var(--navy-2), var(--ink));
  display: none;
}
.is-missing .hero__photo-fallback, .is-missing::before { display: block; }
.is-missing img { opacity: 0; }

.float-card {
  position: absolute; z-index: 3;
  background: rgba(10, 26, 63, .7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  color: var(--white);
}
.float-card--eq { left: -4%; top: 14%; display: flex; align-items: center; gap: 8px; font-size: 17px; }
.frac { display: inline-flex; flex-direction: column; align-items: center; font-family: var(--f-serif); font-style: italic; font-size: 19px; line-height: 1.2; }
.frac span:first-child { border-bottom: 1px solid var(--gold); padding: 0 4px 2px; }
.float-card--quote { right: -3%; bottom: 16%; max-width: 230px; font-size: 21px; line-height: 1.25; }
.float-card--quote .serif { color: var(--gold-2); }
.float-card--wave { left: 2%; bottom: 6%; display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.float-card--wave svg { width: 90px; height: 34px; }
.float-card--wave path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.float-card--wave .mono { color: var(--muted-light); font-size: 12px; }

.hero__stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(50px, 7vw, 90px);
  border-top: 1px solid var(--line-light);
}
.stat { padding: 26px 20px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-light); }
.stat strong { display: block; font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -0.04em; color: var(--white); line-height: 1.1; }
.stat > span { display: block; font-size: 14px; color: var(--muted-light); margin-top: 6px; max-width: 200px; line-height: 1.45; }

.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,.3); border-radius: 14px; transform: translateX(-50%); z-index: 3; }
.hero__scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--gold); color: var(--ink); overflow: hidden; padding: 18px 0; position: relative; z-index: 2; }
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.02em; white-space: nowrap; }
.marquee i { font-family: var(--f-serif); font-size: 26px; opacity: .55; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Philosophy ---------- */
.philosophy { background: var(--paper); overflow: hidden; }
.philosophy::before {
  content: "∫ f(x) dx"; position: absolute; right: -2%; top: 60px;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(120px, 18vw, 260px);
  color: rgba(11,31,77,.04); pointer-events: none; white-space: nowrap;
}
.contrast {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  margin-bottom: clamp(70px, 9vw, 120px);
}
.contrast__col { padding: clamp(28px, 4vw, 48px); }
.contrast__col ul { list-style: none; padding: 0; margin: 0; }
.contrast__col li { padding: 12px 0; border-top: 1px dashed var(--line); font-size: 17px; }
.contrast__label { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.contrast__col--old { color: var(--muted); }
.contrast__col--old li { text-decoration: line-through; text-decoration-color: rgba(200, 60, 60, .45); text-decoration-thickness: 1.5px; }
.contrast__col--new { background: var(--navy); color: var(--white); }
.contrast__col--new .contrast__label { color: var(--gold); }
.contrast__col--new li { border-color: rgba(255,255,255,.12); padding-left: 28px; position: relative; }
.contrast__col--new li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: var(--gold); }
.contrast__divider { display: grid; place-items: center; background: linear-gradient(90deg, var(--white) 50%, var(--navy) 50%); width: 0; position: relative; }
.contrast__divider span {
  position: absolute; width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold); color: var(--ink); display: grid; place-items: center;
  font-family: var(--f-serif); font-style: italic; font-size: 22px;
  box-shadow: 0 0 0 8px var(--paper);
}

.journey { position: relative; }
.journey__path { position: absolute; left: 0; right: 0; top: -10px; width: 100%; height: 200px; overflow: visible; pointer-events: none; }
.journey__path path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 6 8; opacity: .8; }
.journey__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.jstep {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 24px; position: relative;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.jstep:nth-child(odd) { margin-top: 90px; }
.jstep:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(242,180,24,.5); }
.jstep__num { font-family: var(--f-mono); font-size: 13px; color: var(--gold-ink); display: inline-block; margin-bottom: 36px; }
.jstep h3 { font-size: 30px; margin-bottom: 10px; color: var(--navy); }
.jstep p { color: var(--muted); font-size: 15.5px; }

/* ---------- Programs ---------- */
.programs { background: var(--ink); color: var(--white); overflow: hidden; overflow: clip; }
.programs::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000, transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
  pointer-events: none;
}
.program-tabs {
  display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-light);
  margin-bottom: 40px; position: relative; z-index: 5;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.program-tabs::-webkit-scrollbar { display: none; }
.program-tab {
  border: 0; background: transparent; color: var(--muted-light);
  padding: 11px 20px; border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: 15px;
  transition: background .4s var(--ease), color .3s; white-space: nowrap;
}
.program-tab.is-active { background: var(--white); color: var(--ink); }
.program-tab:hover:not(.is-active) { color: var(--white); }

.program-stack { display: flex; flex-direction: column; gap: 28px; }
.program {
  --accent: var(--jee);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 60px);
  padding: clamp(28px, 4.5vw, 60px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(700px 400px at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(160deg, #0f2356, #0a1838);
  border: 1px solid rgba(255,255,255,.09);
  position: sticky; top: 150px;
  box-shadow: 0 -20px 60px -30px rgba(0,0,0,.6);
  overflow: hidden;
  transform-origin: center top;
}
.program::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}
.program--ioqm { --accent: var(--ioqm); }
.program--neet { --accent: var(--neet); }
.program--jam { --accent: var(--jam); }
.program--upsc { --accent: var(--upsc); }
.program__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--muted-light); }
.program__badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: color-mix(in srgb, var(--accent) 55%, white);
}
.program__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); filter: brightness(1.35); }
.program__title { font-size: clamp(34px, 4.4vw, 58px); font-weight: 800; margin-bottom: 10px; }
.program__title .amp { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--accent); }
.program__tag { font-size: clamp(20px, 2vw, 25px); color: var(--gold-2); margin-bottom: 20px; line-height: 1.3; }
.program__desc { color: #c3cbe2; font-size: 16px; max-width: 54ch; }
.program__desc strong { color: var(--white); }
.program__list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.program__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: #dfe4f2; }
.tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 25%, transparent); position: relative; margin-top: 3px; }
.tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); filter: brightness(1.4); }
/* IOQM topic strip: one surface, four segments */
.topics {
  list-style: none; margin: 22px 0 4px; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: 14px; background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.topics li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 14px; font-size: 13.5px; font-weight: 600; color: #dfe4f2;
  transition: background .3s;
}
.topics li + li { box-shadow: inset 1px 0 0 rgba(255,255,255,.08); }
.topics li:first-child { border-radius: 14px 0 0 14px; }
.topics li:last-child { border-radius: 0 14px 14px 0; }
.topics li:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.topics__sym { font-family: var(--f-serif); font-style: italic; font-size: 24px; line-height: 1.1; color: color-mix(in srgb, var(--accent) 60%, white); }

.program__visual { position: relative; min-height: 440px; }
.program__img { position: absolute; inset: 0 0 110px 12%; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.program__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.program:hover .program__img img { transform: scale(1.04); }
.program__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,24,56,.7)); }
.program__fig {
  position: absolute; left: -6%; bottom: 0; width: 78%; max-width: 380px; margin: 0;
  background: rgba(7,19,47,.9); border-radius: 16px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 44px -20px rgba(0,0,0,.75), inset 0 0 0 1px rgba(255,255,255,.1);
  overflow: hidden;
}
.program__diagram { display: block; width: 100%; height: auto; padding: 12px 12px 4px; overflow: visible; }
.program__fig figcaption {
  padding: 10px 16px 14px; font-size: 13px; line-height: 1.45; color: var(--muted-light);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.program__fig figcaption strong { display: block; font-size: 13.5px; color: var(--white); margin-bottom: 2px; }
.program__diagram .axis { stroke: rgba(255,255,255,.25); stroke-width: 1.2; }
.program__diagram .draw { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: brightness(1.3); }
.program__diagram .vec { stroke: var(--gold); }
.program__diagram .ray { stroke: var(--gold); }
.program__diagram .band { fill: color-mix(in srgb, var(--accent) 18%, transparent); }
.program__diagram .lens { fill: color-mix(in srgb, var(--accent) 15%, transparent); }
.program__diagram .ball { fill: var(--gold); }
.program__diagram .pt { fill: var(--gold); }
.program__diagram .lbl { fill: var(--muted-light); font-family: var(--f-serif); font-style: italic; font-size: 17px; }
.program__diagram .lbl--eq { fill: var(--white); font-size: 16px; }

/* ---------- Method ---------- */
.method { background: var(--paper); }
.method__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.method__intro { position: sticky; top: 120px; }
.method__photo { margin-top: 36px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; position: relative; box-shadow: var(--shadow); }
.method__photo img { width: 100%; height: 100%; object-fit: cover; }
.method__steps { list-style: none; margin: 0; padding: 0; position: relative; counter-reset: m; }
.method__steps::before { content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: var(--line); }
.method__steps::after { content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(var(--gold), var(--gold-deep)); transform-origin: top; transform: scaleY(var(--progress, 0)); }
.mstep { display: grid; grid-template-columns: 64px 1fr; gap: 26px; padding: 26px 0; position: relative; counter-increment: m; }
.mstep__icon {
  width: 64px; height: 64px; border-radius: 20px; background: var(--white); border: 1px solid var(--line);
  display: grid; place-items: center; position: relative; z-index: 1;
  transition: background .5s var(--ease), border-color .5s, transform .5s var(--ease);
}
.mstep__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.mstep.is-lit .mstep__icon { background: var(--navy); border-color: var(--navy); transform: scale(1.05); }
.mstep.is-lit .mstep__icon svg { stroke: var(--gold); }
.mstep h3 { font-size: clamp(22px, 2.2vw, 28px); color: var(--navy); margin: 8px 0 8px; }
.mstep h3::before { content: "0" counter(m) " "; font-family: var(--f-mono); font-size: 13px; color: var(--gold-ink); letter-spacing: 0; vertical-align: middle; margin-right: 6px; }
.mstep p { color: var(--muted); max-width: 480px; }

/* ---------- Why / bento ---------- */
.why { background: var(--paper-2); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 18px; }
.bento__item {
  background: var(--white); border-radius: var(--r); padding: 28px; border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: box-shadow .5s var(--ease), border-color .3s;
  transform-style: preserve-3d;
}
.bento__item:hover { box-shadow: var(--shadow); border-color: rgba(242,180,24,.5); }
.bento__item h3 { font-size: 21px; color: var(--navy); margin-bottom: 8px; }
.bento__item p { color: var(--muted); font-size: 15.5px; }
.bento__item--xl { grid-column: span 2; grid-row: span 2; background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; }
.bento__item--xl h3 { color: var(--white); font-size: 28px; }
.bento__item--xl p { color: var(--muted-light); max-width: 360px; }
.bento__item--wide { grid-column: 1 / -1; }
.bento > .bento__item:nth-child(4) { grid-column: span 2; }

/* Personal attention: teacher → each student, one at a time */
.attention { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; padding: 34px 40px 30px; }
.attention__viz { max-width: 460px; justify-self: center; }
.attention__points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.attention__points li { position: relative; padding-left: 24px; font-size: 15px; color: var(--navy); font-weight: 600; }
.attention__points li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; border-radius: 2px; background: var(--gold); }
.attention__viz { width: 100%; height: auto; max-height: 220px; overflow: visible; }
.att-line { stroke: rgba(11,31,77,.14); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 3 5; animation: attnLine 8s infinite; animation-delay: calc(var(--i) * 1s); }
.att-student { fill: #cfd6e6; animation: attnStudent 8s infinite; animation-delay: calc(var(--i) * 1s); }
.att-teacher { fill: var(--navy); }
@keyframes attnLine {
  0%, 15%, 100% { stroke: rgba(11,31,77,.14); stroke-width: 1.5; stroke-dasharray: 3 5; }
  3%, 11% { stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 400 0; }
}
@keyframes attnStudent {
  0%, 15%, 100% { fill: #cfd6e6; }
  3%, 11% { fill: var(--gold); }
}
.bento__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(90px, 12vw, 170px); line-height: .9; letter-spacing: -0.04em; color: var(--gold); margin-bottom: auto; }
.bento__num small { font-size: .2em; letter-spacing: 0; color: var(--muted-light); margin-left: 8px; font-weight: 600; }
.bento__art { position: absolute; right: 24px; top: 30px; width: 45%; }
.bento__art path { fill: none; stroke: rgba(242,180,24,.6); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.bento__sym { display: block; margin-bottom: 22px; }
.bento__sym svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Founder ---------- */
.founder { background: linear-gradient(180deg, var(--navy), var(--ink)); color: #c8d0e6; overflow: hidden; }
.founder::before {
  content: "E = mc²"; position: absolute; left: -2%; bottom: -40px;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(120px, 20vw, 300px); color: rgba(255,255,255,.03); white-space: nowrap; pointer-events: none;
}
.founder__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.founder__visual { position: relative; }
.founder__frame {
  aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; position: relative;
  background: linear-gradient(150deg, var(--navy-2), var(--ink));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow-lg);
}
.founder__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; position: relative; z-index: 1; }
.founder__frame.is-missing::before { display: none; }
.founder__mono { position: absolute; inset: 0; display: grid; place-items: center; }
.founder__frame img ~ .founder__mono { display: none; }
.founder__mono .serif { font-size: clamp(90px, 12vw, 150px); color: var(--gold); line-height: 1; position: relative; z-index: 1; }
.founder__mono svg { position: absolute; width: 78%; animation: spin 40s linear infinite; }
.founder__mono circle { fill: none; stroke: rgba(242,180,24,.3); stroke-width: 1; stroke-dasharray: 3 7; }
.founder__mono circle + circle { stroke: rgba(255,255,255,.12); stroke-dasharray: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.founder__card {
  position: absolute; right: -24px; bottom: 36px; z-index: 2;
  background: var(--gold); color: var(--ink); padding: 16px 22px; border-radius: 16px;
  box-shadow: 0 18px 36px -16px rgba(4,10,26,.7);
}
.founder__card .mono { display: block; font-size: 12px; opacity: .75; }
.founder__card strong { font-family: var(--f-display); font-size: 18px; letter-spacing: -0.02em; }
.founder__role { font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light); margin: 14px 0 30px; }
.founder__quote { font-family: var(--f-serif); font-style: italic; font-size: clamp(28px, 3.2vw, 42px); color: var(--white); line-height: 1.2; margin: 0 0 28px; padding-left: 24px; border-left: 3px solid var(--gold); }
.founder__copy p strong { color: var(--white); }
.founder__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.founder__facts div { border: 1px solid var(--line-light); border-radius: 16px; padding: 18px; background: rgba(255,255,255,.03); }
.founder__facts strong { display: block; font-family: var(--f-display); font-size: 34px; color: var(--gold); letter-spacing: -0.04em; line-height: 1.1; }
.founder__facts span { font-size: 13.5px; }

/* ---------- Courses ---------- */
.courses { background: var(--paper); }
.course-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { border: 1px solid var(--line); background: var(--white); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: all .3s var(--ease); }
.chip:hover { color: var(--navy); border-color: var(--navy); }
.chip.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.course-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.course {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px 26px;
  position: relative; overflow: hidden; min-height: 190px; display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s, opacity .4s, border-color .3s;
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: var(--navy); border-color: var(--navy); }
.course:hover h3 { color: var(--white); }
.course:hover p { color: var(--muted-light); }
.course:hover .course__sym { color: var(--gold); transform: translate(-6px, -6px) rotate(-8deg) scale(1.1); opacity: .9; }
.course__cat { color: var(--gold-ink); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: auto; }
.course h3 { font-size: 21px; color: var(--navy); margin: 30px 0 6px; transition: color .3s; }
.course p { color: var(--muted); font-size: 14.5px; line-height: 1.45; transition: color .3s; }
.course__sym { position: absolute; right: 14px; top: 8px; font-family: var(--f-serif); font-style: italic; font-size: 54px; color: rgba(11,31,77,.08); transition: all .6s var(--ease); line-height: 1; }
.course.is-hidden { display: none; }

/* ---------- Student path ---------- */
.path { background: var(--ink); color: var(--white); overflow: hidden; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; padding-top: 40px; }
.timeline__line { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line-light); }
.timeline__line span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: left; transform: scaleX(0); }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; top: -37px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(242,180,24,.12); }
.tl__stage { display: inline-block; color: var(--gold); font-size: 13px; margin-bottom: 12px; }
.tl h3 { font-size: 23px; margin-bottom: 10px; }
.tl p { color: var(--muted-light); font-size: 15.5px; }

/* ---------- Parents ---------- */
.parents { background: var(--paper); }
.parents__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.parents__photo { margin-top: 32px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; position: relative; box-shadow: var(--shadow); }
.parents__photo img { width: 100%; height: 100%; object-fit: cover; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s, box-shadow .4s; }
.acc[open] { border-color: rgba(166,116,0,.55); }
.acc summary { list-style: none; cursor: pointer; padding: 22px 26px; font-family: var(--f-display); font-weight: 600; font-size: 18px; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 20px; letter-spacing: -0.02em; }
.acc summary::-webkit-details-marker { display: none; }
.acc__icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); position: relative; transition: background .3s, transform .4s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--navy); transform: translate(-50%, -50%); border-radius: 2px; transition: transform .4s var(--ease); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc[open] .acc__icon { background: var(--gold); transform: rotate(180deg); }
.acc[open] .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__body { padding: 0 26px 24px; color: var(--muted); }

/* ---------- Gallery ---------- */
.classroom { background: var(--paper-2); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px; }
.gallery__item { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--navy); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px;
  background: rgba(7,19,47,.7); color: var(--white); font-size: 13.5px; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.note { margin-top: 28px; font-size: 14px; color: var(--muted); font-style: italic; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--white); padding: clamp(70px, 9vw, 110px) 0; position: relative; overflow: hidden; }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(34px, 5vw, 66px); font-weight: 800; max-width: 760px; }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__cards { display: grid; gap: 14px; margin: 36px 0 20px; }
.ccard { display: flex; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.ccard__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; }
.ccard__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ccard__label { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-ink); margin-bottom: 6px; }
.ccard p { font-size: 16.5px; color: var(--navy); font-weight: 500; }
.ccard a[href^="tel"] { font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.ccard a[href^="tel"]:hover, .link:hover { color: var(--gold-ink); }
.link { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 14.5px; color: var(--navy); border-bottom: 1px solid var(--gold); }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); height: 240px; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

.enquiry {
  background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow-lg); position: sticky; top: 110px;
  background-image: radial-gradient(500px 300px at 100% 0%, rgba(242,180,24,.14), transparent 70%);
}
.enquiry h3 { font-size: 30px; margin-bottom: 8px; }
.enquiry__sub { color: var(--muted-light); font-size: 15px; margin-bottom: 26px; }
.field { position: relative; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 24px 16px 10px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  color: var(--white); font: inherit; font-size: 16px; outline: none; resize: vertical;
  transition: border-color .3s, background .3s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 26px, calc(100% - 15px) 26px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.08); }
.field label { position: absolute; left: 17px; top: 17px; color: var(--muted-light); font-size: 15.5px; pointer-events: none; transition: all .25s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { top: 7px; font-size: 11.5px; color: var(--gold); letter-spacing: .04em; }
.field.is-invalid input, .field.is-invalid select { border-color: #ff7a7a; }
.enquiry__alt { text-align: center; margin-top: 16px; font-size: 14.5px; color: var(--muted-light); }
.enquiry__alt a { color: var(--gold); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--navy); font-size: 15.5px;
  padding: clamp(56px, 7vw, 96px) 0 0;
  background:
    radial-gradient(900px 520px at 100% 0%, rgba(242,180,24,.10), transparent 60%),
    radial-gradient(700px 480px at 0% 100%, rgba(242,180,24,.07), transparent 60%),
    linear-gradient(180deg, #fffdf8, #fbf7ee);
  border-top: 1px solid rgba(166,116,0,.18);
}
/* Cap-and-books photo, faded into the cream on its left and bottom edges */
.footer__mark {
  position: absolute; z-index: -1; top: calc(-0.3 * clamp(280px, 34vw, 560px)); right: -5%;
  width: clamp(280px, 34vw, 560px); height: auto; aspect-ratio: 1;
  object-fit: cover; opacity: .45; pointer-events: none;
  -webkit-mask-image: radial-gradient(60% 55% at 72% 62%, #000 35%, transparent 80%);
          mask-image: radial-gradient(60% 55% at 72% 62%, #000 35%, transparent 80%);
}
@media (max-width: 1280px) { .footer__mark { opacity: .22; } }
@media (max-width: 760px) { .footer__mark { width: 300px; opacity: .22; } }
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.35fr;
  padding-bottom: clamp(44px, 5vw, 64px);
}
.footer__inner > * { padding: 4px clamp(20px, 2.4vw, 40px); }
.footer__inner > * + * { border-left: 1px solid rgba(166,116,0,.2); }
.footer__inner > :first-child { padding-left: 0; }
.footer__inner > :last-child { padding-right: 0; }

.footer__brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer__brand img { width: clamp(150px, 13vw, 190px); height: auto; }
.footer__tag { font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 2.3vw, 32px); line-height: 1.1; color: var(--gold-ink); margin: 14px 0 10px; }
.footer__small { font-size: 12.5px; letter-spacing: .16em; color: var(--navy); }
.footer__small::after { content: ""; display: block; width: 34px; height: 2px; margin: 18px auto 0; background: var(--gold); border-radius: 2px; }

.footer__head {
  font-family: var(--f-display); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy);
  margin-bottom: 26px;
}
.footer__head::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 12px; background: var(--gold); border-radius: 2px; }
.footer__col { display: flex; flex-direction: column; }
.footer__links a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 7px 0; color: var(--navy); transition: color .25s;
}
.footer__links a::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 3px;
  border: solid var(--gold); border-width: 2px 2px 0 0; transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.footer__links a:hover { color: var(--gold-ink); }
.footer__links a:hover::after { transform: translateX(4px) rotate(45deg); }

.footer__info { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; line-height: 1.5; color: var(--navy); }
.footer__info > span:last-child { display: flex; flex-direction: column; padding-top: 2px; }
.footer__info a { color: var(--navy); width: fit-content; transition: color .25s; }
.footer__info a:hover { color: var(--gold-ink); }
.footer__ico {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: var(--navy);
  background: rgba(242,180,24,.18); box-shadow: inset 0 0 0 1px rgba(166,116,0,.18);
  transition: background .3s, color .3s, box-shadow .3s;
}
.footer__ico svg { width: 20px; height: 20px; fill: currentColor; }
.footer__ico svg.ln { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__info:hover .footer__ico { background: var(--navy); color: var(--gold); box-shadow: inset 0 0 0 1px var(--navy); }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap;
  padding-block: 24px 26px; font-size: 14px; color: var(--muted);
  position: relative;
}
/* Full-bleed divider; the footer's overflow: hidden stops it causing horizontal scroll */
.footer__bottom::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 100vw; height: 1.5px;
  transform: translateX(-50%); background: rgba(242,180,24,.55);
}
.footer__bottom p { margin: 0; }
.footer__credit a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .25s; }
.footer__credit a:hover { color: var(--gold-ink); }
.footer__bottom .mono {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .12em; color: var(--navy);
}
.footer__bottom .mono::before, .footer__bottom .mono::after { content: ""; width: 44px; height: 1.5px; background: var(--gold); }

@media (max-width: 1100px) {
  .footer__inner { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .footer__inner > * { padding: 0 28px; }
  .footer__brand { grid-column: 1 / -1; padding: 0 0 34px; border-bottom: 1px solid rgba(166,116,0,.2); }
  .footer__inner > :nth-child(2) { padding-left: 0; border-left: 0; }
  .footer__inner > :last-child { padding-right: 0; }
}
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .footer__inner > * { padding: 0; border-left: 0; }
  .footer__inner > :nth-child(3) { padding-left: 24px; border-left: 1px solid rgba(166,116,0,.2); }
  .footer__inner > :nth-child(4) { grid-column: 1 / -1; padding-top: 30px; border-top: 1px solid rgba(166,116,0,.2); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__bottom .mono::before { display: none; }
}
@media (max-width: 340px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__inner > :nth-child(3) { padding-left: 0; border-left: 0; }
}

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(4,10,26,.55);
  transition: transform .4s var(--ease);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float { transition: transform .4s var(--ease), opacity .3s; }
.wa-float.is-away { opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

/* ---------- Reveal defaults (JS enhances) ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); }
.js .reveal-text .rt-line { display: block; overflow: hidden; }
.js .reveal-text .rt-inner { display: inline-block; }

/* =========================================================
   Multi-page components
   ========================================================= */

.loader.is-quick { transition-duration: .35s; }
.loader.is-quick .loader__logo, .loader.is-quick .loader__bar span { animation-duration: .4s; }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); transform: translateY(-2px); }
.programs__more, .gallery__more { margin-top: 36px; display: flex; justify-content: center; }
.founder__more { margin: 6px 0 4px; }

/* ---------- Page hero ---------- */
.phero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(76,125,255,.16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(242,180,24,.1), transparent 60%),
    var(--ink);
  padding: clamp(140px, 16vw, 190px) 0 clamp(70px, 9vw, 110px);
}
.phero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.phero--img .phero__inner { grid-template-columns: 1.1fr 0.9fr; }
.phero__title { font-size: clamp(44px, 7vw, 92px); font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; line-height: 1; margin-bottom: 22px; }
.phero__title .serif { color: var(--gold); font-weight: 400; font-size: 1.08em; }
.phero__lead { font-size: clamp(17px, 1.5vw, 20px); color: #c8d0e6; max-width: 620px; }
.phero__img { aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow-lg); }
.phero__img img { width: 100%; height: 100%; object-fit: cover; }
.phero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,19,47,.55)); }

/* ---------- Legal pages (privacy, terms) ---------- */
.legal__inner { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(40px, 6vw, 100px); justify-content: center; align-items: start; }
.legal__toc { position: sticky; top: 120px; }
.legal__toc-head { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.legal__toc nav { display: flex; flex-direction: column; border-left: 1.5px solid var(--line); }
.legal__toc a { padding: 7px 0 7px 16px; margin-left: -1.5px; border-left: 1.5px solid transparent; font-size: 14.5px; color: var(--muted); transition: color .25s, border-color .25s; }
.legal__toc a:hover { color: var(--navy); border-left-color: var(--gold); }
.legal__meta { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.legal__intro { font-size: 19px; line-height: 1.6; color: var(--navy); padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.legal__body h2 { font-size: clamp(22px, 2.2vw, 27px); color: var(--navy); margin: 46px 0 14px; scroll-margin-top: 120px; }
.legal__body p, .legal__body li { color: #3b4462; }
.legal__body strong { color: var(--navy); }
.legal__body ul { margin: 0 0 1em; padding-left: 0; list-style: none; }
.legal__body li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.legal__body li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.legal__body a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color .25s; }
.legal__body a:hover { color: var(--gold-ink); }
.legal__card { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r); padding: 22px 24px; margin: 18px 0 20px; box-shadow: var(--shadow); }
.legal__card p { margin-bottom: 6px; }
@media (max-width: 900px) {
  .legal__inner { grid-template-columns: minmax(0, 1fr); }
  .legal__toc { display: none; }
  .legal__intro { font-size: 17.5px; }
}

.footer__legal { display: flex; gap: 22px; }
.footer__legal a { color: var(--navy); transition: color .25s; }
.footer__legal a:hover { color: var(--gold-ink); }
.enquiry__legal { text-align: center; margin-top: 8px; font-size: 13px; color: var(--muted-light); }
.enquiry__legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- About intro ---------- */
.about-intro__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-intro__copy > p { color: var(--muted); font-size: 17.5px; margin-top: 18px; }
.about-intro__copy strong { color: var(--navy); }
.about-intro__visual { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); position: relative; }
.about-intro__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/* ---------- Mission & vision ---------- */
.mv { background: var(--ink); color: var(--white); overflow: hidden; }
.mv__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mv__card {
  border: 1px solid var(--line-light); border-radius: var(--r); padding: 34px 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  transition: transform .5s var(--ease), border-color .3s;
}
.mv__card:hover { transform: translateY(-6px); border-color: rgba(242,180,24,.5); }
.mv__sym { display: block; font-size: 64px; line-height: 1; color: var(--gold); margin-bottom: 26px; }
.mv__card h3 { font-size: 23px; margin-bottom: 10px; }
.mv__card p { color: var(--muted-light); font-size: 15.5px; }
.vision { margin-top: clamp(50px, 7vw, 90px); text-align: center; max-width: 900px; margin-inline: auto; }
.vision__text { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.2; color: var(--white); }

/* ---------- Faculty: how he teaches ---------- */
.principles { background: var(--paper); }
.principles__inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.principles__photo { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.principles__photo img { width: 100%; height: 100%; object-fit: cover; }
.principles__photo figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  padding: 14px 18px; border-radius: 12px;
  background: rgba(7,19,47,.82); color: var(--white);
  font-family: var(--f-serif); font-style: italic; font-size: 19px; line-height: 1.3;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.principles__lead { color: var(--muted); font-size: 17.5px; max-width: 52ch; margin: 20px 0 8px; }
.principles__list { list-style: none; margin: 18px 0 0; padding: 0; }
.principle { display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.principle__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.principle:hover .principle__icon { transform: rotate(-6deg) scale(1.06); background: var(--navy-2); }
.principle h3 { font-size: clamp(20px, 1.8vw, 24px); color: var(--navy); margin: 4px 0 6px; }
.principle p { color: var(--muted); font-size: 16px; margin: 0; max-width: 46ch; }

/* ---------- Full gallery + lightbox ---------- */
.gallery--full { grid-auto-rows: 280px; }
.gallery--full .gallery__item { cursor: zoom-in; }
.gallery--full .gallery__item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(4, 10, 26, .94);
  display: grid; place-items: center; padding: 60px 70px;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: 1200px; width: 100%; text-align: center; transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.is-open figure { transform: none; }
.lightbox img { max-height: 78vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--r); }
.lightbox figcaption { color: var(--muted-light); margin-top: 14px; font-family: var(--f-serif); font-style: italic; font-size: 20px; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: var(--white); font-size: 22px; display: grid; place-items: center;
  transition: background .3s, color .3s, border-color .3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lightbox__close { top: 20px; right: 20px; font-size: 28px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Admission ---------- */
.admission { background: var(--paper); }
.admission__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.step__n { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 20px; }
.step h3 { font-size: 19px; color: var(--navy); margin: 4px 0 4px; }
.step p { color: var(--muted); font-size: 15px; }
.admission__call { margin-top: 26px; padding: 22px; border-radius: var(--r); border: 1px dashed rgba(11,31,77,.25); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.admission__call p { margin: 0; color: var(--muted); width: 100%; font-size: 14.5px; }
.admission__call a { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--navy); letter-spacing: -0.02em; }
.admission__call a:hover { color: var(--gold-ink); }
.enquiry--admission { position: sticky; top: 110px; }

@media (max-width: 900px) {
  .phero--img .phero__inner, .about-intro__inner, .admission__inner, .principles__inner { grid-template-columns: 1fr; }
  .principles__photo { aspect-ratio: 4 / 3; max-width: 560px; }
  .phero__visual { max-width: 560px; }
  .mv__grid { grid-template-columns: 1fr; }
  .about-intro__visual { aspect-ratio: 4/3; }
  .enquiry--admission { position: relative; top: 0; }
  .gallery--full { grid-auto-rows: 220px; }
}
@media (max-width: 600px) {
  .lightbox { padding: 70px 12px; }
  .lightbox__nav { top: auto; bottom: 16px; transform: none; }
  .gallery--full { grid-auto-rows: 240px; }
}


/* =========================================================
   Polish layer
   ========================================================= */

/* Browser surfaces */
html { scrollbar-color: #33477a var(--ink); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #33477a; border-radius: 10px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }
input, textarea, select { caret-color: var(--gold); }
a { text-underline-offset: .2em; }
.stat strong, .founder__facts strong, .bento__num, .ccard a[href^="tel"], .admission__call a, .mobile-menu__foot, .step__n { font-variant-numeric: tabular-nums; }

/* Drawn icons */
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.arrow { display: inline-grid; place-items: center; }
.arrow .ico { width: 15px; height: 15px; }
.link .arrow { vertical-align: -2px; margin-left: 2px; }
.lightbox__close .ico, .lightbox__nav .ico { width: 18px; height: 18px; }

/* Hero location line (replaces the eyebrow label) */
.hero__where { margin: 18px 0 0; font-size: 14px; color: var(--muted-light); letter-spacing: .01em; }
.hero__where::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 0 4px rgba(242,180,24,.18); }

/* Section rhythm without eyebrows: headings carry the opening */
.section-head .section-title { max-width: 16ch; }
.section-head--light .section-title, .programs .section-title { max-width: 18ch; }
.vision__label { font-family: var(--f-body); font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--gold); margin-bottom: 14px; }

/* Program tabs */
.program-tab .tab-long { display: inline; }

/* Principle cards: heading leads, no fake numbering */

/* Custom dropdowns (enhance the native select) */
.cselect__native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cselect { position: relative; }
.cselect__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 58px; padding: 24px 16px 10px; border-radius: 14px; text-align: left;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  color: var(--white); font: inherit; font-size: 16px;
  transition: border-color .3s, background .3s;
}
.cselect__btn:hover { border-color: rgba(255,255,255,.28); }
.cselect__btn:focus-visible, .cselect.is-open .cselect__btn { outline: none; border-color: var(--gold); background: rgba(255,255,255,.08); }
.cselect__value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cselect__chev { width: 16px; height: 16px; color: var(--gold); flex: none; margin-top: -12px; transition: transform .3s var(--ease); }
.cselect.is-open .cselect__chev { transform: rotate(180deg); }
.cselect__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  list-style: none; margin: 0; padding: 6px; max-height: 288px; overflow-y: auto;
  background: #0f2150; border-radius: 14px;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.1);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top center;
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .2s;
  scrollbar-width: thin; scrollbar-color: #33477a transparent;
}
.cselect.is-open .cselect__list { opacity: 1; visibility: visible; transform: none; }
.cselect__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; border-radius: 10px; cursor: pointer;
  color: #d7deef; font-size: 15.5px;
}
.cselect__list li .ico { width: 16px; height: 16px; color: var(--gold); opacity: 0; }
.cselect__list li.is-active { background: rgba(255,255,255,.07); color: var(--white); }
.cselect__list li[aria-selected="true"] { color: var(--white); font-weight: 600; }
.cselect__list li[aria-selected="true"] .ico { opacity: 1; }
.field--select label { pointer-events: auto; cursor: pointer; }
.field--select.is-filled label, .field--select.is-open label { top: 7px; font-size: 11.5px; color: var(--gold); letter-spacing: .04em; }
.field--select.is-invalid .cselect__btn { border-color: #ff7a7a; }
.field--select { z-index: 1; }
.field--select.is-open { z-index: 40; }

/* Form feedback */
.enquiry__status { margin: 14px 0 0; font-size: 14.5px; min-height: 1.4em; color: var(--muted-light); }
.enquiry__status.is-error { color: #ffb4b4; }
.enquiry__status.is-ok { color: #9be8c4; }
.field.is-invalid label { color: #ffb4b4; }

/* Hover lift states keep one elevation: shadow only */
.jstep:hover, .course:hover, .bento__item:hover { border-color: transparent; }

@media (max-width: 600px) {
  .program-tab .tab-long { display: none; }
  .program-tabs { display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; }
  .program-tab { text-align: center; padding-left: 4px; padding-right: 4px; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 26px; height: 26px; }
  .section-head .section-title { max-width: none; }
}

/* ---------- Testimonials ---------- */
.voices { background: var(--paper-2); }
.voices__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.voices__lead { color: var(--muted); font-size: 17.5px; max-width: 52ch; margin: 18px 0 0; }
.voices__rating {
  display: grid; gap: 4px; padding: 18px 22px; border-radius: 16px; background: var(--white);
  box-shadow: var(--shadow); color: var(--navy); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.voices__rating:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.voices__stars { display: flex; gap: 3px; }
.voices__stars svg { width: 18px; height: 18px; fill: var(--gold); }
.voices__rating strong { font-family: var(--f-display); font-size: 22px; letter-spacing: -0.02em; margin-right: 4px; }
.voices__rating small { color: var(--gold-ink); font-weight: 600; font-size: 13.5px; }
.voices__grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.voice {
  margin: 0; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 28px 26px 24px; border-radius: var(--r); background: var(--white); box-shadow: 0 10px 30px -22px rgba(7,19,47,.35);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.voice:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.voice__mark { width: 30px; height: 24px; fill: var(--gold); opacity: .9; }
.voice blockquote { margin: 0; color: var(--text); font-size: 16px; line-height: 1.6; }
.voice figcaption { display: flex; align-items: center; gap: 12px; }
.voice figcaption strong { display: block; color: var(--navy); font-size: 15.5px; }
.voice figcaption small { display: block; color: var(--muted); font-size: 13px; }
.voice__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--paper-2); color: var(--navy); font-family: var(--f-display); font-weight: 700; }
.voice--feature { grid-row: span 2; background: var(--navy); color: var(--white); padding: 36px 34px 30px; }
.voice--feature .voice__mark { width: 48px; height: 38px; }
.voice--feature blockquote { color: var(--white); font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.3; }
.voice--feature figcaption strong { color: var(--white); }
.voice--feature figcaption small { color: var(--muted-light); }
.voice--feature .voice__avatar { background: var(--gold); color: var(--ink); }
.voices .note a { color: var(--navy); font-weight: 600; }
.ccard__email { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; word-break: break-all; }
.ccard p a[href^="https://wa.me"] { font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.admission__mail { width: 100%; font-size: 16px !important; color: var(--gold-ink) !important; }
@media (max-width: 1100px) {
  .voices__grid { grid-template-columns: 1fr 1fr; }
  .voice--feature { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 600px) {
  .voices__grid { grid-template-columns: 1fr; }
  .voice { padding: 24px 20px 20px; }
}

/* ---------- Header: more breathing room around the brand ---------- */
.nav__inner.container { padding: 10px 12px 10px 20px; gap: 32px; }
.nav__brand { gap: 18px; }
.nav__logo { width: 66px; }
.nav__word { gap: 4px; line-height: 1.12; padding: 2px 0 2px 18px; }
.nav__word strong { font-size: 20px; }
.nav__word em { font-size: 16.5px; }
.nav__links { gap: 6px; }
.nav.is-scrolled .nav__logo { width: 56px; }
.nav.is-scrolled .nav__inner.container { padding-top: 7px; padding-bottom: 7px; }

/* ---------- Hero fits the first screen, stats included (desktop) ---------- */
@media (min-width: 901px) {
  .hero {
    height: 100vh; height: 100svh; min-height: 620px;
    padding: 108px 0 22px;
    justify-content: space-between;
  }
  .hero__inner { flex: 1; min-height: 0; align-items: center; }
  .hero__title { font-size: clamp(42px, min(6.6vw, 10.5vh), 96px); margin-bottom: clamp(12px, 2.2vh, 24px); }
  .hero__lead { font-size: clamp(16px, min(1.4vw, 2.3vh), 19px); margin-bottom: clamp(16px, 3vh, 30px); }
  .hero__actions { margin-bottom: clamp(14px, 2.6vh, 28px); }
  .hero__where { margin-top: clamp(8px, 1.6vh, 16px); }
  .hero__visual { height: clamp(300px, calc(100svh - 300px), 600px); max-height: none; width: auto; aspect-ratio: 4 / 5; justify-self: center; }
  .hero__stats { margin-top: clamp(14px, 2.4vh, 28px); flex: none; }
  .stat { padding-top: clamp(12px, 2vh, 20px); }
  .stat strong { font-size: clamp(26px, min(3vw, 5vh), 42px); }
  .stat > span { font-size: 13.5px; margin-top: 4px; }
  .hero__scroll { display: none; }
  .hero__stats { border-top: 0; }
  .hero__stats::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-light); }
}
@media (min-width: 901px) and (max-height: 820px) {
  .float-card--wave { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--xl { grid-column: span 2; grid-row: span 1; min-height: 320px; }
  .bento__item--wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; width: 100%; margin: 10px auto 0; aspect-ratio: 5/5; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-light); margin-top: 22px; }
  .contrast { grid-template-columns: 1fr; }
  .contrast__divider { width: auto; height: 0; background: none; }
  .contrast__divider span { box-shadow: 0 0 0 8px var(--white); }
  .journey__path { display: none; }
  .journey__steps { grid-template-columns: repeat(2, 1fr); }
  .jstep:nth-child(odd) { margin-top: 0; }
  .program { grid-template-columns: 1fr; position: relative; top: 0; }
  .program__visual { min-height: 320px; order: -1; }
  .program__visual { min-height: 0; }
  .program__img { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .program__fig { position: relative; left: auto; bottom: auto; width: auto; max-width: none; margin: -48px 14px 0; }
  .method__inner, .founder__inner, .parents__inner, .contact__inner { grid-template-columns: 1fr; }
  .method__intro, .enquiry { position: relative; top: 0; }
  .founder__visual { max-width: 420px; }
  .founder__card { right: -8px; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .timeline__line { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .gallery__item--wide { grid-column: span 2; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav__inner.container { top: 10px; }
  .nav__inner.container { padding: 6px 6px 6px 10px; gap: 12px; }
  .nav__logo { width: 60px; }
  .nav.is-scrolled .nav__logo { width: 52px; }
  .nav.is-scrolled .nav__inner.container { top: 6px; }
  .nav__brand { gap: 10px; }
  .nav__word { padding-left: 10px; }
  .nav__word strong { font-size: 18px; }
  .nav__word em { font-size: 15.5px; }
  .nav__cta { display: none; }
  .hero__title { font-size: clamp(42px, 13vw, 60px); }
  .hero__actions .btn { width: 100%; }
  .float-card--eq { left: 0; top: 6%; font-size: 14px; padding: 10px 12px; }
  .frac { font-size: 15px; }
  .float-card--quote { right: 0; font-size: 17px; max-width: 180px; bottom: 20%; }
  .float-card--wave { display: none; }
  .hero__photo { inset: 0; }
  .stat > span { font-size: 13px; }
  .journey__steps { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .course { min-height: 160px; padding: 18px 16px; }
  .course h3 { font-size: 18px; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--xl, .bento__item--wide, .bento > .bento__item:nth-child(4) { grid-column: span 1; }
  .bento__item--wide { display: block; }
  .attention { display: grid; grid-template-columns: 1fr; }
  .attention__viz { max-height: 180px; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .topics li + li { box-shadow: none; }
  .topics li:nth-child(even) { box-shadow: inset 1px 0 0 rgba(255,255,255,.08); }
  .topics li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .topics li { border-radius: 0 !important; }
  .program { padding: 22px 22px 30px; }
  .program__visual { min-height: 260px; }
  .program__img { bottom: 60px; }
  .program__fig { margin: -36px 10px 0; }
  .program-tab { padding: 10px 14px; font-size: 14px; }
  .founder__card { right: 12px; bottom: 16px; }
  .founder .section-title { font-size: clamp(30px, 9.5vw, 40px); }
  .founder__facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .founder__facts div { padding: 14px 10px; }
  .founder__facts strong { font-size: 26px; }
  .timeline { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--tall, .gallery__item--wide { grid-row: auto; grid-column: auto; }
  .cta-band__inner .btn { width: 100%; }
  .acc summary { font-size: 16.5px; padding: 18px 20px; }
  .acc__body { padding: 0 20px 20px; }
}

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