/* ═══════════════════════════════════════════════════════════════
   ADHYAYAN CLASSES — Ultra Premium Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #030711;
  --paper: #f8fbff;
  --muted: #8b9bb5;
  --gold: #ffd166;
  --gold-light: #fff4bd;
  --orange: #ff7a18;
  --cyan: #30d5ff;
  --violet: #9d4dff;
  --blue: #0c4ad9;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.18);
  --border-bright: rgba(255, 255, 255, 0.32);
  --shadow: 0 30px 90px rgba(5, 10, 30, 0.45);
  --shadow-glow: 0 0 80px rgba(48, 213, 255, 0.15);

  --font-display: "Syne", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.is-loading { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  overflow-x: hidden;
  cursor: none;
}

body.no-custom-cursor { cursor: auto; }
body.no-custom-cursor .cursor-dot,
body.no-custom-cursor .cursor-ring { display: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: none; }
body.no-custom-cursor button { cursor: pointer; }

::selection {
  background: rgba(255, 209, 102, 0.35);
  color: white;
}

/* ─── Preloader ─── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  position: relative;
}

.preloader-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  border-right-color: var(--cyan);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.preloader-ring--delay {
  width: 90px;
  height: 90px;
  margin: -45px 0 0 -45px;
  border-top-color: var(--cyan);
  border-right-color: var(--violet);
  animation-duration: 0.9s;
  animation-direction: reverse;
}

.preloader-text {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.preloader-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letterPop 0.5s var(--ease-out-expo) forwards;
}

.preloader-text span:nth-child(1) { animation-delay: 0.05s; }
.preloader-text span:nth-child(2) { animation-delay: 0.1s; }
.preloader-text span:nth-child(3) { animation-delay: 0.15s; }
.preloader-text span:nth-child(4) { animation-delay: 0.2s; }
.preloader-text span:nth-child(5) { animation-delay: 0.25s; }
.preloader-text span:nth-child(6) { animation-delay: 0.3s; }
.preloader-text span:nth-child(7) { animation-delay: 0.35s; }
.preloader-text span:nth-child(8) { animation-delay: 0.4s; }

.preloader-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 700;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.5s forwards;
}

/* ─── Custom Cursor ─── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 209, 102, 0.5);
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s;
}

.cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  border-color: rgba(48, 213, 255, 0.6);
}

/* ─── WebGL Canvas ─── */
#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* ─── Ambient Layers ─── */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.85) 0 1px, transparent 1.6px),
    radial-gradient(circle at 70% 18%, rgba(255,209,102,.9) 0 1px, transparent 1.8px),
    radial-gradient(circle at 85% 76%, rgba(48,213,255,.9) 0 1px, transparent 1.7px),
    radial-gradient(circle at 42% 82%, rgba(255,255,255,.7) 0 1px, transparent 1.5px);
  background-size: 210px 210px, 290px 290px, 240px 240px, 330px 330px;
  animation: starDrift 28s linear infinite;
}

.cursor-glow {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48,213,255,.18), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s;
}

.aurora {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.32;
  z-index: 0;
  animation: floatAurora 14s ease-in-out infinite alternate;
}

.aurora-one {
  width: 38rem;
  height: 38rem;
  left: -10rem;
  top: 18rem;
  background: var(--cyan);
}

.aurora-two {
  width: 32rem;
  height: 32rem;
  right: -8rem;
  top: 0;
  background: var(--orange);
  animation-delay: -5s;
}

.aurora-three {
  width: 28rem;
  height: 28rem;
  left: 40%;
  bottom: -6rem;
  background: var(--violet);
  animation-delay: -9s;
  animation-duration: 18s;
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  padding: 10px 14px 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(3, 7, 17, 0.72);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 18px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.site-header.is-scrolled {
  background: rgba(3, 7, 17, 0.92);
  border-color: var(--border-bright);
  box-shadow: 0 24px 80px rgba(0,0,0,.5), var(--shadow-glow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-wrap {
  position: relative;
  width: 52px;
  height: 52px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.65);
  position: relative;
  z-index: 1;
}

.brand-logo-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold), var(--cyan), var(--violet), var(--gold));
  animation: spin 4s linear infinite;
  opacity: 0.6;
  filter: blur(6px);
}

.brand-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}

.brand-text small {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.62rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: rgba(255,255,255,.72);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.nav-link:hover { color: white; }
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  transition: background 0.3s;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: white;
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: rgba(3, 7, 17, 0.96);
  backdrop-filter: blur(30px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out-expo), color 0.3s;
}

.mobile-nav.is-open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.is-open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-nav-link:hover { color: var(--gold); }

.mobile-nav-cta {
  margin-top: 16px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--orange));
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s 0.3s, transform 0.5s 0.3s var(--ease-out-expo);
}

.mobile-nav.is-open .mobile-nav-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ─── */
.nav-cta, .primary-btn, .secondary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.nav-cta, .primary-btn {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 45%, var(--orange) 100%);
  box-shadow: 0 12px 40px rgba(255, 122, 24, 0.3), inset 0 1px 0 rgba(255,255,255,.4);
}

.secondary-btn {
  border: 1px solid var(--border-bright);
  background: rgba(255,255,255,.06);
  color: white;
  backdrop-filter: blur(12px);
}

.btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: btnShine 4s ease-in-out infinite;
}

.primary-btn:hover, .nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(255, 122, 24, 0.4);
}

.secondary-btn:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,209,102,.4);
}

/* ─── Typography ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-weight: 700;
  font-size: 0.72rem;
  margin: 0 0 20px;
}

.eyebrow-line {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.055em;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-line em,
.section-title em,
.gradient-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--gold) 0%, #fff8dc 30%, var(--cyan) 60%, var(--gold) 100%);
  background-size: 300% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: liquidGold 6s ease-in-out infinite;
  text-shadow: none;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  margin: 0;
  letter-spacing: -0.045em;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  max-width: 900px;
}

.section-title--sm {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
}

/* Split text animation */
.split-word,
.split-char {
  display: inline-block;
}

html.js-ready .split-word:not(.is-visible),
html.js-ready .split-char:not(.is-visible) {
  opacity: 0;
  transform: translateY(110%) rotateX(40deg);
  transform-origin: bottom center;
}

.split-word.is-visible,
.split-char.is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

/* ─── Layout ─── */
.section-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 120px 0 80px;
}

.hero-text {
  max-width: 540px;
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.8;
  margin: 28px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.stat-card {
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,209,102,.35);
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.stat-card span:last-child {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.55);
  font-size: 0.78rem;
}

/* ─── Hero 3D Stage ─── */
.hero-stage {
  position: relative;
  min-height: 600px;
  perspective: 1400px;
}

.hero-orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  animation: orbitSpin 20s linear infinite;
}

.orbit-ring--1 {
  inset: 0;
  border-color: rgba(48,213,255,.15);
}

.orbit-ring--2 {
  inset: 40px;
  animation-duration: 15s;
  animation-direction: reverse;
  border-color: rgba(255,209,102,.12);
}

.orbit-ring--3 {
  inset: 80px;
  animation-duration: 25s;
  border-color: rgba(157,77,255,.1);
}

.orbital-card {
  position: absolute;
  inset: 70px 10px auto auto;
  width: min(420px, 85vw);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  animation: heroFloat 6s ease-in-out infinite;
}

.orbital-card::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 56px;
  background: conic-gradient(from 120deg, transparent, var(--cyan), var(--gold), var(--violet), transparent);
  filter: blur(22px);
  opacity: 0.55;
  z-index: -1;
  animation: spin 8s linear infinite;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.04));
  border: 1px solid var(--border-bright);
  box-shadow:
    0 50px 100px rgba(0,0,0,.45),
    inset 0 0 60px rgba(255,255,255,.04);
  transform-style: preserve-3d;
  overflow: hidden;
}

.card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

.shine {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22), transparent 62%);
  transform: translateX(-120%);
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}

.card-reflection {
  position: absolute;
  bottom: -30%;
  left: 10%;
  right: 10%;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255,209,102,.08), transparent);
  filter: blur(20px);
  transform: rotateX(70deg);
  pointer-events: none;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(20px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
}

.fc-icon {
  color: var(--gold);
  font-size: 0.7rem;
}

.card-a { top: 40px; left: -10px; }
.card-b { right: -10px; bottom: 120px; animation-delay: -1.6s; }
.card-c { left: 20px; bottom: 30px; animation-delay: -3s; }

/* ─── Marquee ─── */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 28px 0;
  border-block: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}

.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 1;
  pointer-events: none;
}

.marquee-fade--left {
  left: 0;
  background: linear-gradient(90deg, var(--ink), transparent);
}

.marquee-fade--right {
  right: 0;
  background: linear-gradient(-90deg, var(--ink), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 40px;
  animation: scrollText 28s linear infinite;
}

.marquee span:not(.dot) {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.35);
  white-space: nowrap;
  transition: -webkit-text-stroke-color 0.3s;
}

.marquee span:not(.dot):hover {
  -webkit-text-stroke-color: var(--gold);
}

.marquee .dot {
  color: var(--gold);
  font-size: 1.5rem;
  opacity: 0.5;
}

/* ─── Programs ─── */
.programs, .why-section, .gallery-section, .contact-section {
  padding: clamp(80px, 12vw, 130px) 0;
}

.section-heading { margin-bottom: 48px; }

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  perspective: 1200px;
}

.program-card {
  position: relative;
  padding: 32px 28px;
  min-height: 300px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(160deg, var(--glass-strong), var(--glass));
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  overflow: hidden;
  transition: border-color 0.4s;
}

.program-card:hover {
  border-color: rgba(255,209,102,.3);
}

.program-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.program-icon {
  font-size: 2rem;
  margin: 20px 0 12px;
  filter: grayscale(0.2);
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.program-card p {
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  font-size: 0.92rem;
  margin: 0;
}

.program-glow {
  position: absolute;
  bottom: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48,213,255,.15), transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s;
  opacity: 0;
}

.program-card:hover .program-glow { opacity: 1; }

/* ─── Why Section ─── */
.why-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.glass-panel {
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: rgba(255,255,255,.75);
  font-size: 1.02rem;
  line-height: 1.6;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out-expo);
}

.feature-item:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  transform: translateX(6px);
}

.feature-icon {
  color: var(--gold);
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 48px);
  border: 1px solid rgba(255,209,102,.2);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,209,102,.12), rgba(48,213,255,.06));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 0.5;
  color: rgba(255,209,102,.15);
  position: absolute;
  top: 20px;
  left: 24px;
  pointer-events: none;
}

.quote-card blockquote {
  margin: 0;
  position: relative;
  z-index: 1;
}

.quote-card blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-style: italic;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

.quote-card cite {
  margin-top: 28px;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-glow {
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,209,102,.2), transparent 70%);
  pointer-events: none;
}

/* ─── Gallery ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  cursor: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  background: rgba(255,255,255,.06);
  transition: transform 0.8s var(--ease-out-expo), filter 0.6s;
}

img.img-error {
  object-fit: contain;
  padding: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85));
  opacity: 0.8;
  transition: opacity 0.4s;
}

.gallery-item:hover::before { opacity: 0.95; }

.gallery-item figcaption {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  transform: translateY(8px);
  opacity: 0.85;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.4s;
}

.gallery-item figcaption span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
}

.gallery-item:hover img {
  transform: scale(1.12);
  filter: saturate(1.15) contrast(1.05);
}

.gallery-item:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item.featured { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* ─── Contact ─── */
.contact-card {
  position: relative;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px);
  border: 1px solid var(--border);
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  backdrop-filter: blur(28px);
  box-shadow: var(--shadow), var(--shadow-glow);
  overflow: hidden;
  transform-style: preserve-3d;
  opacity: 1;
  visibility: visible;
}

.contact-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,209,102,.12), transparent 70%);
  pointer-events: none;
}

.contact-desc {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 520px;
  margin: 20px auto 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  display: grid;
  gap: 12px;
  color: rgba(255,255,255,.65);
  font-size: 0.95rem;
}

.contact-list a {
  color: var(--gold);
  transition: color 0.3s;
}

.contact-list a:hover { color: var(--cyan); }

/* ─── Footer ─── */
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
  font-size: 0.88rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: rgba(255,255,255,.8);
  letter-spacing: -0.02em;
}

.footer-brand span {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── Scroll Reveal ─── */
.reveal-up {
  opacity: 1;
  transform: none;
}

html.js-ready .reveal-up:not(.is-visible) {
  opacity: 0;
  transform: translateY(48px);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

/* ─── Keyframes ─── */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes letterPop {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFloat {
  0%, 100% { transform: rotateX(6deg) rotateY(-8deg) translateY(0); }
  50% { transform: rotateX(-3deg) rotateY(6deg) translateY(-20px); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

@keyframes shine {
  0%, 50% { transform: translateX(-120%); }
  75%, 100% { transform: translateX(120%); }
}

@keyframes btnShine {
  0%, 60% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

@keyframes scrollText {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes floatAurora {
  to { transform: translate3d(60px, -50px, 0) scale(1.1); }
}

@keyframes starDrift {
  to { background-position: 210px 210px, -290px 290px, 240px -240px, -330px -330px; }
}

@keyframes liquidGold {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes orbitSpin {
  to { transform: rotateZ(360deg); }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .split-word, .split-char, .reveal-up {
    opacity: 1 !important;
    transform: none !important;
  }

  #webgl-canvas { display: none; }
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  body, button { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }

  .nav-links, .header-actions .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .hero, .why-section { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; min-height: auto; }
  .hero-stage { min-height: 480px; order: -1; }
  .hero-orbit { width: 400px; height: 400px; }

  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .site-header {
    border-radius: 20px;
    top: 10px;
  }

  .hero-stats, .program-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.featured,
  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .orbital-card {
    inset: 50px 0 auto 50%;
    transform: translateX(-50%);
  }

  .card-a { left: 0; }
  .card-b { right: 0; }
}

/* ─── Mobile friendliness only: preserves all effects and animations ─── */
@media (max-width: 760px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .section-shell,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    width: calc(100% - 20px);
    padding: 9px 10px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo-wrap {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .brand-text strong {
    font-size: 0.96rem;
    white-space: nowrap;
  }

  .brand-text small {
    font-size: 0.56rem;
    letter-spacing: 0.16em;
  }

  .hero {
    gap: 28px;
    padding-top: 92px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 5.4rem);
    line-height: 0.95;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(2.25rem, 11vw, 4rem);
    line-height: 0.98;
  }

  .hero-text,
  .contact-desc,
  .program-card p,
  .feature-list div {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .primary-btn,
  .secondary-btn,
  .nav-cta {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn,
  .contact-actions .primary-btn,
  .contact-actions .secondary-btn {
    width: 100%;
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stage {
    width: 100%;
    min-height: clamp(390px, 112vw, 500px);
    overflow: visible;
  }

  .hero-orbit {
    width: min(88vw, 380px);
    height: min(88vw, 380px);
    margin-inline: auto;
  }

  .orbital-card {
    width: min(82vw, 340px);
    max-width: 100%;
  }

  .floating-card {
    max-width: min(46vw, 190px);
    padding: 12px 14px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .card-a { left: 2px; top: 36px; }
  .card-b { right: 2px; bottom: 88px; }
  .card-c { left: 12px; bottom: 28px; }

  .programs,
  .why-section,
  .gallery-section,
  .contact-section {
    padding: 72px 0;
  }

  .program-card,
  .glass-panel,
  .quote-card,
  .contact-card {
    border-radius: 24px;
    padding: 24px;
  }

  .program-card {
    min-height: auto;
  }

  .program-card h3 {
    margin-top: 34px;
  }

  .gallery-grid {
    grid-auto-rows: clamp(230px, 72vw, 380px);
    gap: 14px;
  }

  .gallery-item {
    border-radius: 24px;
  }

  .gallery-item img {
    min-height: 100%;
  }

  .contact-list {
    overflow-wrap: anywhere;
  }

  .marquee span {
    font-size: clamp(1.75rem, 12vw, 3.5rem);
  }
}

@media (max-width: 420px) {
  .section-shell,
  .site-footer {
    width: min(100% - 18px, 1180px);
  }

  .site-header {
    width: calc(100% - 14px);
  }

  .brand-logo-wrap {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-text strong {
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 86px;
  }

  .hero-stage {
    min-height: 365px;
  }

  .orbital-card {
    width: min(78vw, 300px);
  }

  .floating-card {
    max-width: 43vw;
    font-size: 0.72rem;
  }

  .program-card,
  .glass-panel,
  .quote-card,
  .contact-card {
    padding: 20px;
  }
/* Mobile specific overrides */
@media (max-width: 768px) {
  .site-header {
    left: 0;
    transform: none;
    width: 100%;
    padding: 8px 12px;
    border-radius: 0;
  }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .hero {
    grid-template-columns: 1fr;
    padding: 120px 20px 80px;
    gap: 24px;
  }
  .hero-copy { max-width: none; }
  .hero-stage { min-height: 300px; }
}

