/* =============================================
   THIRUVAIYARU KALALAYA v2 — NRITYAM
   Design System: Classical Manuscript + Stage
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@400;700;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600;1,700&family=Josefin+Sans:wght@200;300;400;600&family=Noto+Serif+Tamil:wght@400;600&display=swap');

/* --- Design Tokens --- */
:root {
  --ink:            #0a0304;
  --ink-soft:       #140608;
  --crimson:        #7a1a1a;
  --crimson-deep:   #5a1010;
  --crimson-light:  #9b3030;
  --gold:           #c9973e;
  --gold-bright:    #e4b05a;
  --gold-pale:      #f0d090;
  --saffron:        #d4701a;
  --parchment:      #f5e8c8;
  --parchment-mid:  #e8d5a8;
  --parchment-dark: #d4bb88;
  --pearl:          #faf5ef;
  --white:          #ffffff;
  --mist:           #c8bba8;
  --smoke:          #7a6a58;

  --font-display:   'Cinzel Decorative', serif;
  --font-serif:     'Cinzel', serif;
  --font-body:      'Cormorant Garamond', serif;
  --font-ui:        'Josefin Sans', sans-serif;
  --font-tamil:     'Noto Serif Tamil', serif;

  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-snap:      cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h:          80px;
  --max-w:          1360px;
  --section-pad:    clamp(64px, 10vw, 120px);
  --gap:            clamp(24px, 4vw, 48px);

  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      16px;
  --radius-xl:      32px;
  --radius-full:    9999px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; /* Lenis handles this */ }
body {
  font-family: var(--font-body);
  background: var(--pearl);
  color: var(--ink);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* --- Focus visible --- */
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background 0.5s var(--ease-inout),
              border-color 0.5s var(--ease-inout),
              backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(10, 3, 4, 0.96);
  border-color: rgba(201, 151, 62, 0.15);
  backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 40px; height: 40px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.05em;
  transition: transform 0.4s var(--ease-snap), background 0.3s;
}
.nav-logo:hover .nav-logo-mark {
  background: var(--gold);
  color: var(--ink);
  transform: rotate(15deg);
}
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--parchment);
  text-transform: uppercase;
  line-height: 1.2;
}
.nav-logo-sub {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
}
.nav-link {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--parchment);
  opacity: 0.85;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.2s, color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-out-expo);
}
.nav-link:hover { opacity: 1; color: var(--gold-pale); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { opacity: 1; color: var(--gold); }
.nav-link.active::after { width: 100%; background: var(--gold); }

.nav-cta {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  transition: background 0.3s, transform 0.2s var(--ease-snap);
}
.nav-cta:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--parchment);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s, width 0.3s;
  transform-origin: left center;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translateY(-1px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translateY(1px); }

.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-inout);
}
.nav-mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile-link {
  font-family: var(--font-serif);
  font-size: clamp(28px, 6vw, 48px);
  letter-spacing: 0.12em;
  color: var(--parchment);
  text-transform: uppercase;
  transition: color 0.2s;
  transform: translateY(20px);
  opacity: 0;
  transition: color 0.2s, transform 0.5s var(--ease-out-expo), opacity 0.5s;
}
.nav-mobile-overlay.open .nav-mobile-link {
  opacity: 1;
  transform: translateY(0);
}
.nav-mobile-link:hover { color: var(--gold); }
.nav-mobile-overlay.open .nav-mobile-link:nth-child(1) { transition-delay: 0.05s; }
.nav-mobile-overlay.open .nav-mobile-link:nth-child(2) { transition-delay: 0.1s; }
.nav-mobile-overlay.open .nav-mobile-link:nth-child(3) { transition-delay: 0.15s; }
.nav-mobile-overlay.open .nav-mobile-link:nth-child(4) { transition-delay: 0.2s; }
.nav-mobile-overlay.open .nav-mobile-link:nth-child(5) { transition-delay: 0.25s; }
.nav-mobile-overlay.open .nav-mobile-link:nth-child(6) { transition-delay: 0.3s; }
.nav-mobile-overlay.open .nav-mobile-link:nth-child(7) { transition-delay: 0.35s; }
.nav-mobile-cta {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 14px 36px;
  border-radius: var(--radius-full);
  margin-top: 12px;
  transition: background 0.3s;
}
.nav-mobile-cta:hover { background: var(--gold-bright); }

/* =============================================
   MARQUEE TICKER
   ============================================= */
.marquee-track {
  overflow: hidden;
  background: var(--crimson);
  padding: 10px 0;
  border-top: 1px solid rgba(201, 151, 62, 0.3);
  border-bottom: 1px solid rgba(201, 151, 62, 0.3);
}
.marquee-inner {
  display: flex;
  gap: 0;
  animation: marqueeScroll 28s linear infinite;
  width: max-content;
}
.marquee-inner:hover { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-pale);
  white-space: nowrap;
  padding: 0 32px;
}
.marquee-dot {
  color: var(--gold);
  opacity: 0.6;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}
.section { padding: var(--section-pad) 0; }
.section-sm { padding: calc(var(--section-pad) * 0.6) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }

/* --- Section Labels --- */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* --- Typography Scale --- */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.display-2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: 0.03em;
  font-weight: 700;
}
.heading-1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.heading-2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.2;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.heading-3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.3;
  letter-spacing: 0.04em;
}
.body-lg {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.75;
  font-weight: 300;
}
.body-md {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.75;
  font-weight: 300;
}

/* Prose base — ensures all body copy meets WCAG AA 16px minimum */
p, li, dd,
.card-body, .section-body, .prose,
.news-card-excerpt, .program-card-body p,
.faq-answer p, .contact-value, .timeline-body {
  font-size: max(16px, 1em);
  line-height: 1.65;
}
.caption {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* --- Gold Line Divider --- */
.gold-line {
  width: 64px; height: 1.5px;
  background: var(--gold);
  margin: 24px 0;
}
.gold-line.center { margin-left: auto; margin-right: auto; }
.gold-line.full { width: 100%; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  transition: transform 0.25s var(--ease-snap), box-shadow 0.25s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--gold-bright);
  box-shadow: 0 8px 24px rgba(201, 151, 62, 0.35);
}
.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: rgba(201, 151, 62, 0.08);
  box-shadow: 0 8px 24px rgba(201, 151, 62, 0.15);
}
.btn-outline-light {
  border: 1px solid var(--parchment);
  color: var(--parchment);
}
.btn-outline-light:hover {
  background: rgba(245, 232, 200, 0.1);
}
.btn-arrow::after {
  content: '→';
  transition: transform 0.2s;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 8s ease;
  will-change: transform;
}
.hero-bg img.loaded {
  opacity: 0.5;
  transform: scale(1.0);
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 50% 55%, rgba(10,3,4,0.15) 0%, rgba(10,3,4,0.75) 100%),
    linear-gradient(to bottom, rgba(10,3,4,0.55) 0%, transparent 25%, rgba(10,3,4,0.85) 80%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--nav-h) clamp(20px, 5vw, 64px) 80px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.9s var(--ease-out-expo) 0.3s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6.5vw, 88px);
  line-height: 1.08;
  letter-spacing: 0.04em;
  color: var(--parchment);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 1.1s var(--ease-out-expo) 0.5s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-pale);
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  font-style: italic;
  color: var(--parchment-mid);
  letter-spacing: 0.08em;
  margin-bottom: 40px;
  opacity: 0;
  animation: heroFadeUp 1s var(--ease-out-expo) 0.75s forwards;
}
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-out-expo) 0.9s forwards;
}
.hero-divider-line {
  width: 80px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.hero-divider-line:last-child {
  background: linear-gradient(to left, transparent, var(--gold));
}
.hero-divider-gem {
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease-out-expo) 1.1s forwards;
}
.hero-secondary-cta {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mist);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(200, 187, 168, 0.3);
  transition: color 0.25s, border-color 0.25s;
}
.hero-secondary-cta:hover {
  color: var(--gold-pale);
  border-color: var(--gold-pale);
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: heroFadeUp 0.8s var(--ease-out-expo) 1.5s forwards;
}
.hero-scroll span {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--mist);
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* =============================================
   ABOUT STRIP (dark band with stats)
   ============================================= */
.stats-band {
  background: var(--crimson);
  padding: 40px 0;
  border-top: 1px solid rgba(201, 151, 62, 0.2);
  border-bottom: 1px solid rgba(201, 151, 62, 0.2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(201, 151, 62, 0.15);
}
.stat-item {
  background: var(--crimson);
  padding: 32px 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(56px, 8vw, 112px);
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--parchment-mid);
}

.stat-item {
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--gold);
  transform-origin: top center;
  transform: scaleY(0);
  will-change: transform;
}
.stat-divider-drawn::after {
  transform: scaleY(1);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================
   SECTION — Dark (crimson/ink)
   ============================================= */
.section-dark {
  background: var(--ink);
  color: var(--parchment);
}
.section-crimson {
  background: var(--crimson-deep);
  color: var(--parchment);
}
.section-parchment {
  background: var(--parchment);
  color: var(--ink);
}
.section-pearl {
  background: var(--pearl);
  color: var(--ink);
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--pearl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}
.card-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201, 151, 62, 0.12);
  border-radius: var(--radius-lg);
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out-expo);
}
.card-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(201, 151, 62, 0.3);
  transform: translateY(-4px);
}

/* =============================================
   PHOTO FRAME
   ============================================= */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 151, 62, 0.4);
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 2;
  transition: box-shadow 0.4s ease;
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}
.photo-frame:hover img { transform: scale(1.04); }

/* --- 3D tilt (Safari: clip-path moved to ::after to avoid preserve-3d conflict) --- */
.photo-frame, .gi-wrap {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}
.photo-frame.is-tilting, .gi-wrap.is-tilting {
  overflow: visible;
}
.gi-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: box-shadow 0.4s ease;
}
.photo-frame.is-tilting::after, .gi-wrap.is-tilting::after {
  box-shadow: inset 0 0 0 4px transparent;
  border-radius: 6px;
}

/* =============================================
   AWARDS BADGE
   ============================================= */
.award-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-left: 2px solid var(--gold);
  background: rgba(201, 151, 62, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background 0.3s;
}
.award-badge:hover { background: rgba(201, 151, 62, 0.12); }
.award-badge-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.award-badge-name {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--parchment);
}

/* =============================================
   FORM ELEMENTS
   ============================================= */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--smoke);
}
.form-input {
  padding: 14px 16px;
  border: 1px solid rgba(122, 26, 26, 0.2);
  border-radius: var(--radius-md);
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(122, 26, 26, 0.1);
}
.form-input::placeholder { color: var(--mist); }
.form-textarea { resize: vertical; min-height: 140px; }

/* Dark form variant */
.form-input-dark {
  border-color: rgba(201, 151, 62, 0.2);
  background: rgba(255,255,255,0.05);
  color: var(--parchment);
}
.form-input-dark:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 151, 62, 0.1);
}
.form-input-dark::placeholder { color: var(--smoke); }

/* =============================================
   GALLERY GRID
   ============================================= */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  aspect-ratio: 4 / 5;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 3, 4, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 18px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 3, 4, 0.97);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.lightbox.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--parchment);
  font-size: 32px;
  cursor: pointer;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--gold); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--ink);
  color: var(--parchment);
  padding: 80px 0 0;
  border-top: 1px solid rgba(201, 151, 62, 0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .nav-logo-text {
  font-size: 15px;
  margin-bottom: 4px;
}
.footer-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist);
  margin-top: 16px;
  font-weight: 300;
}
.footer-heading {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link {
  font-size: 15px;
  color: var(--mist);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.footer-link:hover { color: var(--gold-pale); }
.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--mist);
  font-size: 15px;
  align-items: flex-start;
}
.footer-contact-icon {
  color: var(--gold);
  font-size: 13px;
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--gold);
  font-size: 18px;
  transition: color 0.2s;
}
.footer-social-link:hover { color: var(--gold-pale); }
.footer-bottom {
  border-top: 1px solid rgba(201, 151, 62, 0.1);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--smoke);
}

/* =============================================
   PAGE HERO (interior pages)
   ============================================= */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: var(--ink);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  object-position: center 30%;
  transition: opacity 1.2s ease;
}
.page-hero-bg img.loaded {
  opacity: 0.6;
}
.page-hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,3,4,0.72) 40%, rgba(10,3,4,0.3));
}
.page-hero-content {
  position: relative;
  z-index: 2;
}

/* =============================================
   PROGRAM CARD
   ============================================= */
.program-card {
  background: var(--pearl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(122, 26, 26, 0.1);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 80px rgba(122, 26, 26, 0.15);
}
.program-card-head {
  background: var(--crimson);
  color: var(--parchment);
  padding: 32px 28px;
}
.program-card-body { padding: 28px; }
.program-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--smoke);
}
.program-feature-dot {
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}
.program-price {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--crimson);
  letter-spacing: 0.03em;
}
.program-price-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--smoke);
  text-transform: uppercase;
}
.spec-value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold) 0%, transparent 100%);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot {
  position: absolute;
  left: -38px; top: 4px;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--ink);
}
.timeline-year {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.timeline-title {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--parchment);
  margin-bottom: 8px;
}
.timeline-body { font-size: 15px; color: var(--mist); line-height: 1.7; }

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-item {
  border-bottom: 1px solid rgba(122, 26, 26, 0.15);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--crimson);
  transition: transform 0.3s, background 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--crimson); color: white; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), padding 0.4s;
  font-size: 16px;
  line-height: 1.8;
  color: var(--smoke);
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 20px;
}

/* =============================================
   NEWS CARD
   ============================================= */
.news-card {
  background: var(--pearl);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.1);
}
.news-card-img {
  height: 220px;
  overflow: hidden;
}
.news-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--crimson);
  color: var(--gold-pale);
  margin-bottom: 10px;
}
.news-card-body { padding: 24px; }
.news-card-date {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--smoke);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.news-card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.4;
}
.news-card-excerpt {
  font-size: 15px;
  color: var(--smoke);
  line-height: 1.7;
  margin-bottom: 16px;
}
.news-card-link {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s, color 0.2s;
}
.news-card-link:hover { color: var(--gold); gap: 10px; }

/* =============================================
   CONTACT PANEL — unified manuscript frame
   ============================================= */
.contact-panel {
  position: relative;
  background: linear-gradient(145deg, rgba(245,232,200,0.35) 0%, rgba(255,255,255,0.6) 100%);
  border: 1px solid rgba(201,151,62,0.4);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
}
.contact-panel::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201,151,62,0.18);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

/* Ornamental divider at top/bottom */
.contact-panel-ornament {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}
.contact-panel-ornament--bottom {
  margin-bottom: 0;
  margin-top: 1.75rem;
}
.contact-ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,151,62,0.35), transparent);
}
.contact-panel-symbol {
  color: var(--gold);
  font-size: 0.95rem;
  opacity: 0.55;
}

/* Each row: icon + content */
.contact-entry {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.contact-entry-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,151,62,0.09);
  border: 1px solid rgba(201,151,62,0.22);
  border-radius: var(--radius-md);
  color: var(--gold);
  font-size: 15px;
}
.contact-entry-content { flex: 1; min-width: 0; }

/* Decorative dot-divider between rows */
.contact-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 0;
  color: rgba(201,151,62,0.35);
  font-size: 0.5rem;
  letter-spacing: 0.4em;
}

.contact-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-value {
  font-size: 15px;
  color: var(--smoke);
  line-height: 1.65;
  display: block;
}
.contact-value-link {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,151,62,0.45);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-value-link:hover {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}

/* Social links */
.contact-social-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}
.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--smoke);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-social-link:hover { color: var(--crimson); }
.contact-social-yt  { color: #c0392b; font-size: 16px; }
.contact-social-ig  { color: #b07030; font-size: 16px; }
.social-meta {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* Office hours */
.contact-hours { display: flex; flex-direction: column; gap: 5px; }
.contact-hours-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.contact-hours-days { font-size: 15px; color: var(--smoke); }
.contact-hours-time {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  background: rgba(201,151,62,0.1);
  border: 1px solid rgba(201,151,62,0.2);
  padding: 2px 9px;
  border-radius: var(--radius-full);
}
.contact-hours-languages {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
}
.hours-sep { color: var(--gold); opacity: 0.5; }

/* =============================================
   DECORATIVE ELEMENTS
   ============================================= */
.ornament {
  display: inline-block;
  color: var(--gold);
  font-size: 24px;
  opacity: 0.6;
  margin: 0 8px;
}

.bg-pattern {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(201, 151, 62, 0.06) 1px, transparent 0);
  background-size: 32px 32px;
}

/* Spotlight effect for images */
.spotlight-wrap {
  position: relative;
  overflow: visible;
}
@media (max-width: 768px) {
  .spotlight-wrap .founder-badge-vertical {
    display: none;
  }
}
.spotlight-wrap::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, rgba(201, 151, 62, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-eyebrow, .hero-title, .hero-subtitle,
  .hero-divider, .hero-cta, .hero-scroll {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .marquee-inner { animation: none; }
  .hero-bg img.loaded { transform: none !important; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-divider-line { width: 48px; }

  /* ---- Footer mobile layout ---- */
  .site-footer { padding: 48px 0 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 40px;
  }
  /* Each column gets consistent vertical spacing */
  .footer-grid > * {
    padding: 28px 0;
    border-bottom: 1px solid rgba(201, 151, 62, 0.08);
  }
  .footer-grid > *:first-child { padding-top: 0; }
  .footer-grid > *:last-child { border-bottom: none; }

  /* Brand block */
  .footer-brand { margin-bottom: 4px; }
  .footer-desc { margin-top: 12px; }

  /* Social icons in brand block — row, no longer inline-only */
  .footer-social {
    display: flex !important;
    flex-direction: row;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(201, 151, 62, 0.3);
    border-radius: 4px;
    color: var(--gold);
    font-size: 18px;
    transition: background 0.2s, border-color 0.2s;
  }
  .footer-social-link:hover {
    background: rgba(201, 151, 62, 0.12);
    border-color: var(--gold);
  }

  /* Nav links — 2-column grid instead of single long list */
  .footer-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    flex-direction: unset;
  }

  /* Inline social row inside contact column */
  .footer-contact-item[style*="display:flex"][style*="gap:10px"] {
    justify-content: flex-start;
    gap: 8px !important;
  }
  .footer-contact-item[style*="display:flex"][style*="gap:10px"] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(201, 151, 62, 0.3);
    border-radius: 4px;
  }

  /* Copyright bar */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 0;
  }
  .footer-copy { text-align: center; width: 100%; }
}

@media (max-width: 480px) {
  .gallery-masonry { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  #preloader svg { width: 80px; height: 64px; }
}

/* =============================================
   PAGE TRANSITION OVERLAY
   ============================================= */
#pt-overlay {
  position: fixed;
  inset: 0;
  background: var(--crimson);
  transform: translateY(100%);
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}

/* ── Cursor Label ── */
.cursor-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 6px;
  letter-spacing: 0.3em;
  color: var(--parchment);
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  user-select: none;
}

/* ── Gallery cinematic wrap ── */
.gi-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  will-change: transform;
}

/* =============================================
   ROUND 4 — GSAP ENHANCEMENTS
   ============================================= */

/* --- GSAP Ready: disable CSS transitions on reveal elements --- */
body.gsap-ready .reveal,
body.gsap-ready .reveal-left,
body.gsap-ready .reveal-right,
body.gsap-ready .reveal-scale {
  transition: none !important;
  animation: none !important;
}

/* --- Hero GSAP Ready: kill CSS keyframe animations (desktop only) --- */
body.hero-gsap-ready .hero-eyebrow,
body.hero-gsap-ready .hero-title,
body.hero-gsap-ready .hero-subtitle,
body.hero-gsap-ready .hero-divider,
body.hero-gsap-ready .hero-cta,
body.hero-gsap-ready .hero-scroll {
  animation: none !important;
}
/* Prevent CSS transform transition from interfering with GSAP scroll parallax */
body.hero-gsap-ready .hero-bg img {
  transition: opacity 1.2s ease !important;
}
/* On mobile (≤768px): bypass GSAP initial-state opacity:0 entirely.
   CSS heroFadeUp animations are cancelled when hero-gsap-ready is added,
   but the GSAP timeline does not run on mobile — so force elements visible. */
@media (max-width: 768px) {
  body.hero-gsap-ready .hero-eyebrow,
  body.hero-gsap-ready .hero-title,
  body.hero-gsap-ready .hero-subtitle,
  body.hero-gsap-ready .hero-divider,
  body.hero-gsap-ready .hero-cta,
  body.hero-gsap-ready .hero-scroll {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  /* hero-tl overflow:hidden clips hero-tw at yPercent:108 — reset on mobile */
  body.hero-gsap-ready .hero-tw {
    transform: none !important;
  }
}

/* --- Hero word/line split structure --- */
.hero-tl {
  display: block;
  overflow: hidden;
  line-height: 1.08;
}
.hero-tw {
  display: inline-block;
  will-change: transform;
}
.hero-tl-italic .hero-tw {
  font-style: italic;
  color: var(--gold-pale);
}
.hero-char {
  display: inline-block;
  will-change: transform, opacity;
}
.hero-space {
  display: inline-block;
  width: 0.25em;
}

/* --- Custom Cursor --- */
.cursor-outer {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(201, 151, 62, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.35s var(--ease-out-expo),
              height 0.35s var(--ease-out-expo),
              border-color 0.35s,
              background 0.35s,
              opacity 0.3s;
}
.cursor-inner {
  position: fixed;
  top: 0; left: 0;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.2s, height 0.2s, background 0.2s;
}
body.cursor-active * { cursor: none !important; }
.cursor-outer.is-hovering {
  width: 60px; height: 60px;
  border-color: rgba(201, 151, 62, 0.8);
  background: rgba(201, 151, 62, 0.08);
}
.cursor-inner.is-hovering {
  width: 3px; height: 3px;
  background: var(--gold-bright);
}
.cursor-outer.is-image {
  width: 72px; height: 72px;
  border-color: rgba(245, 232, 200, 0.45);
  background: rgba(201, 151, 62, 0.04);
}

/* --- Kinetic Oversized Text Band --- */
.kinetic-text-band {
  overflow: hidden;
  padding: 12px 0;
  background: var(--ink);
  border-top: 1px solid rgba(201, 151, 62, 0.1);
  border-bottom: 1px solid rgba(201, 151, 62, 0.1);
  position: relative;
}
.kinetic-text-inner {
  display: flex;
  align-items: baseline;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  padding: 0 48px;
  will-change: transform;
}
.kinetic-word {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 140px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 151, 62, 0.25);
  letter-spacing: 0.06em;
  line-height: 1;
  user-select: none;
}
.kinetic-word:nth-child(odd) {
  -webkit-text-stroke: 1px rgba(201, 151, 62, 0.4);
}
.kinetic-sep {
  font-size: 20px;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
}

/* --- Clip-path reveal helpers (set in CSS, overridden by GSAP) --- */
.heading-1:not(.hero-content .heading-1),
.heading-2:not(.hero-content .heading-2),
.display-2:not(.hero-content .display-2) {
  will-change: clip-path, transform, opacity;
}

/* --- Section Flare Dividers --- */
.flare-divider {
  position: relative;
  height: 0;
  overflow: visible;
  pointer-events: none;
}
.flare-divider::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 320px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,151,62,0.6), transparent);
}
.flare-divider::after {
  content: '✦';
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: var(--gold);
  font-size: 10px;
  opacity: 0;
}
.flare-divider.flare-active::before {
  transform: translateX(-50%) scaleX(1);
  transition: transform 1.4s var(--ease-out-expo);
}
.flare-divider.flare-active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0.7;
  transition: transform 0.5s var(--ease-snap) 0.4s,
              opacity 0.4s 0.4s;
}

/* --- Gold line: set transform origin for GSAP scaleX --- */
.gold-line {
  transform-origin: left center;
  will-change: transform;
}
.gold-line.center { transform-origin: center center; }

/* --- Photo frame tilt --- */
.photo-frame { will-change: transform; }

/* --- Stat number will-change --- */
.stat-num { will-change: contents; }

/* --- Eyebrow will-change --- */
.eyebrow { will-change: transform, opacity; }

/* =============================================
   PRELOADER
   ============================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.2s;
}
#preloader svg {
  width: 80px;
  height: 80px;
}
#preloader path {
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
}
#preloader.preloader-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
#scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9990;
  pointer-events: none;
  will-change: transform;
}

/* =============================================
   FIRST-PAINT HARDENING
   ============================================= */
@media (scripting: none) {
  .hero-content { opacity: 1 !important; }
}

/* ═══════════════════════════════════════════
   NEWS EDITORIAL — Round 6
   ═══════════════════════════════════════════ */

/* Featured event: full-width split layout */
.news-featured-event {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  overflow: hidden;
}
.news-featured-event__img {
  position: relative;
  overflow: hidden;
}
.news-featured-event__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s ease;
}
.news-featured-event:hover .news-featured-event__img img {
  transform: scale(1.04);
}
.news-featured-event__body {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem);
  position: relative;
}
.news-featured-event__date-display {
  font-family: var(--font-serif);
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 600;
  color: var(--crimson);
  line-height: 0.9;
  opacity: 0.18;
  position: absolute;
  top: 2rem;
  right: 2rem;
  pointer-events: none;
  user-select: none;
}
.news-featured-event__tag {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.news-featured-event__tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.news-featured-event__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--parchment);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.news-featured-event__meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--smoke);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  opacity: 0.75;
}
.news-featured-event__desc {
  font-family: var(--font-body, 'Cormorant Garamond', serif);
  font-size: 1.1rem;
  color: var(--smoke);
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0.85;
}

/* Compact secondary events list */
.news-events-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(201, 151, 62, 0.12);
}
.news-event-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--parchment);
  transition: background 0.25s ease;
}
.news-event-row:hover {
  background: var(--parchment);
}
.news-event-row__date {
  text-align: center;
}
.news-event-row__month {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  display: block;
}
.news-event-row__day {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.news-event-row__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.news-event-row__venue {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--ink);
  opacity: 0.55;
  letter-spacing: 0.06em;
}

/* News grid: first card full-width featured */
.news-grid-editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.news-card--featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}
.news-card--featured .news-card-img {
  height: 100%;
  min-height: 340px;
}
.news-card--featured .news-card-img img {
  height: 100%;
  object-fit: cover;
}
.news-card--featured .news-card-body {
  padding: clamp(1.5rem, 4vw, 3rem);
}
.news-card--featured .news-card-title {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
}

@media (max-width: 900px) {
  .news-featured-event {
    grid-template-columns: 1fr;
  }
  .news-featured-event__img {
    height: 300px;
  }
  .news-grid-editorial {
    grid-template-columns: 1fr;
  }
  .news-card--featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .news-event-row {
    grid-template-columns: 60px 1fr;
  }
  .news-event-row > a {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   GALLERY ENHANCEMENTS — Round 6
   ═══════════════════════════════════════════ */

/* Filter bar */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 2rem 0 3rem;
}
.gallery-filter-btn {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(10, 3, 4, 0.25);
  border-radius: 2px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.gallery-filter-btn:hover,
.gallery-filter-btn.is-active {
  background: var(--crimson);
  color: var(--parchment);
  border-color: var(--crimson);
}

/* Caption overlay */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1rem 1rem;
  background: linear-gradient(to top, rgba(10, 3, 4, 0.88) 0%, transparent 100%);
  transform: translateY(4px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}
.gallery-caption__title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--parchment);
  display: block;
  margin-bottom: 0.2rem;
}
.gallery-caption__year {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Featured hero slot (first item) */
.gi-wrap--featured {
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 640px) {
  .gi-wrap--featured {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-filter-bar {
    padding: 1.5rem 0 2rem;
  }
}

/* ═══════════════════════════════════════════
   ABOUT PAGE — Round 6
   ═══════════════════════════════════════════ */

/* Full-bleed pull quote */
.full-bleed-quote {
  background: var(--crimson);
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
  position: relative;
}
.full-bleed-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.15em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: clamp(180px, 25vw, 320px);
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.full-bleed-quote__text {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.35;
  max-width: 880px;
  margin: 0 auto 1.5rem;
  position: relative;
}
.full-bleed-quote__attribution {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
}
.full-bleed-quote__attribution::before {
  content: '— ';
}

/* Parampara sticky grid */
.parampara-sticky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.parampara-sticky-img {
  position: sticky;
  top: 120px;
}
.parampara-sticky-img img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-md);
}
@media (max-width: 768px) {
  .parampara-sticky-grid {
    grid-template-columns: 1fr;
  }
  .parampara-sticky-img {
    position: static;
    margin-bottom: 2rem;
  }
}

/* ═══════════════════════════════════════════
   CONTACT PAGE — Round 6
   ═══════════════════════════════════════════ */

/* WhatsApp button */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--crimson);
  color: var(--gold-pale);
  border: 1px solid rgba(201,151,62,0.35);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-top: 0.85rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.whatsapp-btn:hover {
  background: var(--crimson-light);
  color: var(--parchment);
  border-color: rgba(201,151,62,0.55);
}
.whatsapp-btn i {
  font-size: 1rem;
  color: #4caf72;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}
.form-success__icon {
  font-size: 3rem;
  color: var(--crimson);
  margin-bottom: 1rem;
}
.form-success__title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-success__sub {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.6;
}

/* ═══════════════════════════════════════════
   FOUNDER PAGE — Round 6 (migrated + enhanced)
   ═══════════════════════════════════════════ */

/* Award cards grid */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.award-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 151, 62, 0.18);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.award-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 151, 62, 0.45);
}
.award-card-icon {
  width: 48px;
  height: 48px;
  background: var(--crimson);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  color: #fff;
}
.award-card-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 0.5rem;
}
.award-card-desc {
  font-size: 0.9rem;
  color: var(--smoke);
  line-height: 1.55;
  opacity: 0.8;
}
.award-card-note {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.75rem;
}
@media (max-width: 640px) {
  .awards-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   ACHIEVEMENTS — year dividers (Round 6)
   ═══════════════════════════════════════════ */

.record-item {
  position: relative;
  overflow: visible; /* FIX 16: allow decorative year to render fully without clipping */
}
.record-year-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7); /* FIX 16: center properly so "2" is not clipped */
  font-family: var(--font-serif);
  font-size: clamp(120px, 16vw, 240px);
  font-weight: 700;
  color: var(--crimson);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
  will-change: opacity, transform;
  z-index: 0;
}
.record-item > *:not(.record-year-bg) {
  position: relative;
  z-index: 1;
}

/* Lineage tree */
.lineage-connector {
  width: 2px;
  background: var(--gold);
  margin: 0 auto;
  transform-origin: top center;
  transform: scaleY(0);
  will-change: transform;
}
.lineage-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border: 1px solid rgba(201, 151, 62, 0.25);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  opacity: 0;
  transform: scale(0.85);
  will-change: opacity, transform;
}
.lineage-node.primary {
  border-color: rgba(201, 151, 62, 0.6);
  background: rgba(201, 151, 62, 0.06);
}
.lineage-arrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--gold);
  margin: 0 auto;
  opacity: 0;
}
.lineage-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.lineage-name {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--parchment);
  margin-bottom: 0.25rem;
}
.lineage-sub {
  font-size: 0.85rem;
  color: var(--smoke);
  opacity: 0.7;
}

/* ═══════════════════════════════════════════
   PROGRAMS — sticky nav active state (Round 6)
   ═══════════════════════════════════════════ */

[data-prog-subnav] a {
  position: relative;
  transition: color 0.22s ease, opacity 0.22s ease;
}
[data-prog-subnav] a.is-active {
  color: var(--gold-bright, #f5c842) !important;
  background: rgba(201, 151, 62, 0.15) !important;
}
[data-prog-subnav] a.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(1);
  transform-origin: left center;
  animation: navActiveUnderline 0.3s ease forwards;
}
@keyframes navActiveUnderline {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
[data-prog-subnav] a:focus-visible {
  background: rgba(201, 168, 76, 0.15);
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   PROGRAMS PAGE — section grid classes
   Replace inline grid styles so mobile @media can override them.
   ═══════════════════════════════════════════ */

/* 2-col image + content layout used by Children / Pre-Teens / Teens / Abhinaya */
.prog-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* 3-col adult level cards */
.adult-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* 3-col private sessions feature icons */
.private-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* FIX 15: Private Sessions cards — WCAG AA contrast on parchment-mid (#e8d5a8) bg.
   Explicit dark text ensures ≥ 4.5:1 ratio for normal text and ≥ 3:1 for large text. */
.private-features-grid > div {
  background: #1a0608 !important;
  border-color: rgba(201,151,62,0.35) !important;
}
.private-features-grid > div h3 {
  color: var(--parchment) !important;
}
.private-features-grid > div .caption {
  color: var(--mist) !important;
}

/* 3-col performance opportunity cards */
.perf-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* 2-col image strip */
.prog-img-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Learning timeline milestone rows */
.timeline-milestone {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ═════════════════════════════════════════════
   MOBILE POLISH — Round 6
   ═════════════════════════════════════════════ */

@media (max-width: 768px) {
  [data-prog-subnav] {
    top: 56px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  [data-prog-subnav]::-webkit-scrollbar {
    display: none;
  }
  [data-prog-subnav] .container {
    display: flex;
    gap: 0;
    white-space: nowrap;
  }

  /* ── Programs page: collapse all multi-col grids to single column ── */
  .prog-section-grid,
  .adult-cards-grid,
  .private-features-grid,
  .perf-cards-grid,
  .prog-img-strip,
  .timeline-milestone {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Tighten section vertical padding on mobile (~30% reduction) */
  .section {
    padding: clamp(40px, 8vw, 64px) 0;
  }

  /* Photo frames: limit height so they don't dominate the stacked layout */
  .prog-section-grid .photo-frame {
    max-height: 300px;
    overflow: hidden;
  }
  .prog-section-grid .photo-frame img {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }

  /* Restore natural order on mobile (image always before text) */
  .prog-section-grid > .reveal-right { order: 2; }
  .prog-section-grid > .reveal-left  { order: 1; }

  /* Tighten gap inside pricing info grids inside program sections */
  .prog-section-grid [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr 1fr;
  }

  /* Learning timeline: hide the decorative vertical line on mobile */
  .section-dark [style*="position: absolute; left: 50%"] {
    display: none;
  }

  /* Timeline milestone: on mobile stack cleanly, remove half-split alignment */
  .timeline-milestone > div {
    text-align: left !important;
    padding-left: 1rem !important;
    padding-right: 0 !important;
    order: unset !important;
  }
  .timeline-milestone > div [style*="position: absolute; left: -8px"],
  .timeline-milestone > div [style*="position: absolute; right: -8px"] {
    display: none;
  }
}

@media (max-width: 480px) {
  [data-char-split] {
    word-break: break-word;
  }
}

/* ═══════════════════════════════════════════
   GALLERY — placeholder for missing images
   ═══════════════════════════════════════════ */
.gallery-placeholder {
  background: #1a0608;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
}
/* ═══════════════════════════════════════════
   TAMIL SCRIPT CLASSES
   ═══════════════════════════════════════════ */
.tamil-name {
  font-family: 'Noto Serif Tamil', serif;
  font-size: 0.85em;
  opacity: 0.75;
  display: block;
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.tamil-subtitle {
  font-family: 'Noto Serif Tamil', serif;
  font-size: clamp(12px, 1.2vw, 16px);
  color: var(--gold, #c9a84c);
  letter-spacing: 0.05em;
  display: block;
  margin-top: 8px;
}
.tamil-label {
  font-family: 'Noto Serif Tamil', serif;
  font-size: 0.75em;
  opacity: 0.6;
  margin-left: 8px;
  font-weight: 400;
}

.gallery-placeholder-icon {
  color: #c9a84c;
  font-size: 2rem;
  opacity: 0.4;
}
