:root {
  /* Bharatanatyam heritage palette */
  --temple-maroon: #3b0f1c;
  --temple-maroon-deep: #19090f;
  --temple-maroon-soft: #5a1b2a;
  --turmeric: #d7a62a;
  --antique-gold: #b8893c;
  --antique-gold-light: #e5c97c;
  --kumkum: #9e1b32;
  --jasmine: #fff9ec;
  --jasmine-warm: #f7efe1;
  --deep-indigo: #20264d;
  --deep-indigo-soft: #343b67;
  --sand-200: #e8d9c5;
  --sand-300: #d5c0a5;
  --ink: #241715;
  --muted: #67534d;
  --on-dark-muted: #ded3d4;
  --line: rgba(59, 15, 28, 0.18);
  /* Component aliases keep the system consistent */
  --maroon-950: var(--temple-maroon-deep);
  --maroon-900: #281018;
  --maroon-800: var(--temple-maroon);
  --maroon-700: var(--temple-maroon-soft);
  --gold-600: var(--antique-gold);
  --gold-500: var(--turmeric);
  --gold-300: var(--antique-gold-light);
  --ivory-50: var(--jasmine);
  --ivory-100: var(--jasmine-warm);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --container: 1180px;
  --header-h: 84px;
  --shadow: 0 24px 60px rgba(42, 19, 18, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory-100);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold-300);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  z-index: 200;
  top: -5rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--ink);
}
.skip:focus { top: 1rem; }
.page-progress {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.08);
}
.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--kumkum), var(--turmeric), var(--antique-gold-light));
  transform: scaleX(0);
  transform-origin: left center;
}

/* Header */
.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(15, 7, 9, 0.86), rgba(15, 7, 9, 0.3));
}
.brand { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.brand-mark { width: 62px; height: 62px; flex: 0 0 62px; }
.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-name { display: grid; gap: 0.18rem; line-height: 1.1; }
.brand-name strong { font-size: 0.88rem; letter-spacing: 0.19em; }
.brand-name small { color: var(--on-dark-muted); font-size: 0.68rem; letter-spacing: 0.16em; }
.site-header nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.75rem); }
.site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 180ms ease;
}
.site-header nav a:hover { color: var(--gold-300); }
.site-header .nav-cta {
  min-height: 46px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(228, 199, 126, 0.78);
  color: var(--gold-300);
}
.menu {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.menu span { display: block; width: 25px; height: 1px; margin: 5px auto; background: currentColor; }
.menu b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* Hero */
.hero {
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  --hero-scroll: 0px;
  position: relative;
  min-height: 680px;
  height: min(88svh, 860px);
  overflow: hidden;
  isolation: isolate;
  background: var(--maroon-950);
  color: #fff;
}
.hero-portrait,
.hero-picture,
.hero-picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-portrait { overflow: hidden; }
.lamp-glow {
  position: absolute;
  z-index: 1;
  width: clamp(70px, 7vw, 120px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 242, 169, 0.72) 0 3%, rgba(231, 178, 56, 0.34) 14%, rgba(215, 166, 42, 0.12) 40%, transparent 70%);
  mix-blend-mode: screen;
  filter: blur(2px);
  animation: lamp-pulse 3.2s ease-in-out infinite;
}
.lamp-glow-tall { top: 48%; right: 5.2%; }
.lamp-glow-small { top: 58%; right: 12.1%; width: clamp(54px, 5.5vw, 92px); animation-delay: -1.4s; }
.hero-picture > img {
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.88) brightness(1.08);
  transform: translate3d(var(--hero-shift-x), calc(var(--hero-shift-y) + var(--hero-scroll)), 0) scale(1.025);
  animation: hero-breathe 14s ease-in-out infinite alternate;
}
.gopuram-frame {
  position: absolute;
  z-index: 1;
  inset: clamp(0.75rem, 1.8vw, 1.75rem);
  border: 1px solid rgba(229, 201, 124, 0.72);
  box-shadow: inset 0 0 0 5px rgba(25, 9, 15, 0.2);
  pointer-events: none;
}
.gopuram-frame::before,
.gopuram-frame::after {
  content: "";
  position: absolute;
  top: -1px;
  width: clamp(105px, 15vw, 210px);
  height: clamp(42px, 5vw, 68px);
  border-top: 3px double var(--antique-gold-light);
  background:
    linear-gradient(135deg, transparent 46%, var(--antique-gold-light) 47% 50%, transparent 51%) 0 0 / 22px 22px repeat-x,
    linear-gradient(225deg, transparent 46%, var(--antique-gold) 47% 50%, transparent 51%) 11px 11px / 22px 22px repeat-x;
  opacity: 0.88;
}
.gopuram-frame::before { left: -1px; }
.gopuram-frame::after { right: -1px; transform: scaleX(-1); }
.hero-lotus {
  position: absolute;
  z-index: 2;
  right: clamp(2.4rem, 6vw, 7rem);
  bottom: clamp(2.3rem, 5vw, 5rem);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 14px rgba(215, 166, 42, 0.42));
  animation: diya-glow 4.8s ease-in-out infinite;
}
.hero-lotus::before,
.hero-lotus::after,
.hero-lotus span {
  content: "";
  position: absolute;
  width: 22px;
  height: 38px;
  border: 1px solid var(--antique-gold-light);
  border-radius: 80% 10% 80% 10%;
  background: rgba(183, 123, 44, 0.12);
  transform-origin: 50% 100%;
}
.hero-lotus::before { transform: rotate(-38deg) translateY(-2px); }
.hero-lotus::after { transform: rotate(38deg) translateY(-2px); }
.hero-lotus span { transform: translateY(-8px) rotate(45deg); }
.hero-lotus i { width: 46px; height: 22px; border: 1px solid var(--antique-gold-light); border-radius: 0 0 50% 50%; transform: translateY(18px); }
.hero-lotus b { position: absolute; width: 8px; height: 17px; border-radius: 50% 50% 45% 45%; background: var(--turmeric); box-shadow: 0 0 12px 4px rgba(215, 166, 42, 0.48); transform: translateY(-14px); animation: flame-sway 2.2s ease-in-out infinite alternate; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(34, 8, 13, 0.88) 0%, rgba(48, 13, 20, 0.59) 44%, rgba(22, 9, 12, 0.08) 76%),
    linear-gradient(0deg, rgba(18, 7, 10, 0.38), transparent 52%);
}
.hero-motion { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero-motion::after {
  content: "";
  position: absolute;
  top: 28%;
  left: -45%;
  width: 56%;
  height: 16%;
  opacity: 0.15;
  filter: blur(28px);
  background: linear-gradient(90deg, transparent, rgba(238, 200, 119, 0.45), transparent);
  transform: rotate(-8deg);
  animation: light-flow 16s ease-in-out infinite;
}
.hero-copy {
  position: absolute;
  z-index: 2;
  top: 53%;
  left: max(1.5rem, calc((100vw - var(--container)) / 2));
  width: min(640px, 52vw);
  transform: translateY(-43%);
}
.eyebrow, .kicker {
  margin: 0;
  color: var(--gold-600);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow { color: var(--gold-300); }
.eyebrow span { display: inline-block; width: 36px; height: 1px; margin-right: 0.7rem; vertical-align: middle; background: currentColor; }
.hero h1 {
  margin: 0.85rem 0 1.15rem;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 6.1vw, 6.5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(28px);
  animation: headline-rise 1.35s 240ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -0.035em; }
.hero-seo-title { display: block; margin-bottom: 0.9rem; color: var(--gold-300); font-size: 0.78rem; font-weight: 700; line-height: 1.5; letter-spacing: 0.18em; text-transform: uppercase; }
.lead { max-width: 590px; margin: 0; color: rgba(255, 255, 255, 0.92); font-size: 1.05rem; line-height: 1.7; }
.teacher-line { margin: 1rem 0 0; color: var(--on-dark-muted); font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-actions { display: flex; gap: 0.8rem; margin-top: 1.6rem; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.82rem 1.2rem;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.gold { background: var(--gold-500); color: var(--maroon-950); }
.gold:hover { background: var(--gold-300); }
.whatsapp-live { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.whatsapp-live:hover { background: rgba(255, 255, 255, 0.1); }
.scroll {
  position: absolute;
  z-index: 2;
  right: clamp(1.5rem, 4vw, 4rem);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.scroll span { width: 42px; height: 1px; background: var(--gold-300); }

/* Shared sections */
.section { padding: clamp(4rem, 7vw, 6.5rem) max(1.4rem, calc((100vw - var(--container)) / 2)); }
.section h2 { margin: 0.55rem 0 1rem; font: 400 clamp(2.7rem, 4.5vw, 4.6rem) / 1.02 var(--serif); letter-spacing: -0.035em; }
.section h2 em { color: var(--gold-600); font-weight: 400; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 720ms ease, transform 720ms cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.visible { opacity: 1; transform: none; }

/* Ghungroo rhythm: the line draws once, followed by seven staggered bells. */
.ghungroo-divider { position: relative; height: 54px; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: clamp(1.1rem, 3.2vw, 3rem); background: var(--jasmine-warm); }
.ghungroo-divider span { position: absolute; left: 7%; right: 7%; top: 25px; height: 1px; background: linear-gradient(90deg, transparent, var(--antique-gold), var(--kumkum), var(--antique-gold), transparent); transform: scaleX(0); transform-origin: left; }
.ghungroo-divider i { position: relative; z-index: 1; width: 12px; height: 12px; margin-top: 8px; border: 1px solid var(--antique-gold); border-radius: 50% 50% 48% 48%; background: var(--jasmine-warm); opacity: 0; transform: translateY(-7px) rotate(-8deg); }
.ghungroo-divider i::after { content: ""; position: absolute; left: 4px; bottom: -4px; width: 3px; height: 3px; border-radius: 50%; background: var(--kumkum); }
.ghungroo-divider.visible span { animation: ghungroo-line 1.25s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.ghungroo-divider.visible i { animation: ghungroo-step 620ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(420ms + var(--bell-index, 0) * 120ms); }
.ghungroo-divider i:nth-of-type(1) { --bell-index: 0; }
.ghungroo-divider i:nth-of-type(2) { --bell-index: 1; }
.ghungroo-divider i:nth-of-type(3) { --bell-index: 2; }
.ghungroo-divider i:nth-of-type(4) { --bell-index: 3; }
.ghungroo-divider i:nth-of-type(5) { --bell-index: 4; }
.ghungroo-divider i:nth-of-type(6) { --bell-index: 5; }
.ghungroo-divider i:nth-of-type(7) { --bell-index: 6; }

/* Reusable cultural dividers: decorative only; SVGs contain no page content. */
.motif-divider {
  width: 100%;
  height: 34px;
  overflow: hidden;
  background-color: var(--jasmine-warm);
  background-position: center;
  background-repeat: repeat-x;
  background-size: auto 34px;
}
.motif-kolam { background-image: url("assets/kolam-divider.svg"); }
.motif-temple {
  height: 42px;
  background-image: url("assets/temple-border.svg");
  background-size: auto 42px;
}
.motif-on-maroon { background-color: var(--temple-maroon); }
.motif-footer { height: 38px; background-color: var(--temple-maroon-deep); background-size: auto 38px; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.15rem max(1.4rem, calc((100vw - var(--container)) / 2));
  background: var(--maroon-950);
  color: #fff;
}
.trust-strip p { display: grid; grid-template-columns: auto 1fr; gap: 0.05rem 0.75rem; margin: 0; padding: 0.45rem 1.2rem; border-right: 1px solid rgba(255, 255, 255, 0.15); }
.trust-strip p:first-child { padding-left: 0; }
.trust-strip p:last-child { border-right: 0; }
.trust-strip span { grid-row: 1 / 3; align-self: center; color: var(--gold-300); }
.trust-strip b { font: 500 1rem var(--serif); }
.trust-strip small { color: var(--on-dark-muted); font-size: 0.76rem; letter-spacing: 0.05em; }

/* Teacher */
.teacher-section { background: var(--sand-200); }
.teacher-profile { max-width: var(--container); margin: auto; display: grid; grid-template-columns: minmax(300px, 0.85fr) 1.15fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.teacher-photo { min-height: 560px; margin: 0; overflow: hidden; border-radius: 48% 48% 4px 4px / 18% 18% 4px 4px; background: var(--maroon-800); box-shadow: var(--shadow); }
.teacher-photo img { width: 100%; height: 100%; min-height: 560px; display: block; object-fit: cover; object-position: center; filter: saturate(0.88); transition: transform 500ms ease; }
.teacher-photo:hover img { transform: scale(1.02); }
.teacher-copy > p:not(.kicker):not(.teacher-role):not(.recognition):not(.languages) { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.teacher-role { color: var(--maroon-700); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.teacher-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 1.5rem 0; background: rgba(58, 17, 24, 0.18); }
.teacher-facts span { min-height: 92px; display: grid; align-content: center; gap: 0.2rem; padding: 0.9rem; background: var(--ivory-100); }
.teacher-facts strong { color: var(--maroon-800); font: 1.35rem var(--serif); }
.teacher-facts small { color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.recognition { padding: 1rem 1.1rem; border-left: 3px solid var(--gold-500); background: rgba(255, 250, 242, 0.62); font-size: 0.9rem; }
.languages { color: var(--muted); font-size: 0.9rem; }
.teacher-cta { margin-top: 0.4rem; background: var(--kumkum); color: #fff; }
.teacher-cta:hover { background: var(--temple-maroon-soft); }

/* Classes */
.programs, .benefits { background: var(--ivory-50); }
.section-head, .gallery-head, .benefits-head { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; margin-bottom: 2.4rem; }
.section-head > p, .gallery-head > p, .benefits-head > p:last-child { margin: 0 0 0.5rem; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.program-grid { max-width: var(--container); margin: auto; display: grid; grid-template-columns: 1.15fr 0.85fr; border: 1px solid var(--sand-300); }
.program { position: relative; min-width: 0; padding: clamp(1.7rem, 3vw, 2.6rem); background: var(--ivory-100); }
.program + .program { border-left: 1px solid var(--sand-300); }
.program.featured { background: var(--maroon-800); color: #fff; }
.program .num { position: absolute; top: 1.1rem; right: 1.4rem; color: currentColor; font: 3rem var(--serif); opacity: 0.12; }
.program .icon { height: 44px; color: var(--gold-500); font-size: 1.7rem; }
.program .age { margin: 0; color: var(--gold-600); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; }
.program.featured .age { color: var(--gold-300); }
.program h3 { margin: 0.65rem 0; font: 2rem var(--serif); }
.program > p:not(.age) { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.program.featured > p:not(.age) { color: rgba(255, 255, 255, 0.82); }
.program ul { margin: 1.2rem 0; padding: 1rem 0; list-style: none; border-block: 1px solid rgba(255, 255, 255, 0.2); }
.program li { margin: 0.65rem 0; font-size: 0.94rem; }
.program li::before { content: "—"; margin-right: 0.65rem; color: var(--gold-300); }
.program a, .arrow-link { min-height: 44px; display: inline-flex; align-items: center; gap: 2rem; border-bottom: 1px solid currentColor; font-size: 0.88rem; font-weight: 700; }
.details-card dl { margin: 1.25rem 0; border-top: 1px solid var(--line); }
.details-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.details-card dt { color: var(--muted); }
.details-card dd { margin: 0; font-weight: 700; }

/* Learning journey */
.journey { display: grid; grid-template-columns: 44px 1fr; gap: 2.5rem; background: var(--temple-maroon); color: #fff; }
.section-tag { color: var(--on-dark-muted); font-size: 0.72rem; letter-spacing: 0.17em; text-transform: uppercase; writing-mode: vertical-rl; }
.journey .kicker { color: var(--gold-300); }
.journey h2 em { color: var(--gold-300); }
.timeline { grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.timeline article { position: relative; padding: 1.7rem 2rem 0 0; }
.timeline article::before { content: ""; position: absolute; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-300); }
.timeline article > span { color: rgba(255, 255, 255, 0.28); font: 2.7rem var(--serif); }
.timeline small { color: var(--gold-300); font-size: 0.76rem; letter-spacing: 0.13em; }
.timeline h3 { margin: 0.65rem 0; font: 1.55rem var(--serif); }
.timeline p { max-width: 310px; color: #ece5e6; font-size: 0.96rem; }

/* Gallery */
.gallery-section { background: var(--sand-200); }
.gallery-grid { max-width: var(--container); margin: auto; display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; grid-auto-rows: 260px; gap: 1rem; }
.gallery-item, .gallery-video { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid transparent; background: var(--deep-indigo); transition: transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 420ms ease, border-color 420ms ease; }
.gallery-item::before, .gallery-video::before { content: ""; position: absolute; z-index: 3; inset: -1px; pointer-events: none; background: linear-gradient(115deg, transparent 22%, rgba(229, 201, 124, 0.82) 47%, transparent 72%); transform: translateX(-120%); transition: transform 700ms ease; }
.gallery-item:hover, .gallery-video:hover { transform: translateY(-7px); border-color: rgba(229, 201, 124, 0.75); box-shadow: 0 18px 36px rgba(59, 15, 28, 0.18); }
.gallery-item:hover::before, .gallery-video:hover::before { transform: translateX(120%); }
.gallery-featured { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 28%; filter: saturate(0.9); transition: transform 450ms ease; }
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(transparent, rgba(22, 9, 12, 0.86)); }
.gallery-item figcaption { position: absolute; z-index: 1; right: 1.2rem; bottom: 1.1rem; left: 1.2rem; display: grid; gap: 0.25rem; color: #fff; }
.gallery-item figcaption span, .gallery-video span { color: var(--gold-300); font-size: 0.76rem; letter-spacing: 0.13em; }
.gallery-item figcaption strong { font: 1.2rem var(--serif); }
.gallery-video { display: grid; grid-template-rows: 1fr auto; color: #fff; }
.gallery-video video { width: 100%; height: 100%; min-height: 0; display: block; object-fit: cover; background: #12080a; }
.gallery-video div { display: grid; gap: 0.2rem; padding: 0.75rem 0.9rem; }
.gallery-video strong { font: 1rem var(--serif); }

/* Benefits and FAQ */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--sand-300); }
.benefit-grid article { min-height: 190px; padding: 1.6rem; border-right: 1px solid var(--sand-300); border-bottom: 1px solid var(--sand-300); transition: background-color 200ms ease, transform 200ms ease; }
.benefit-grid article:nth-child(3n) { border-right: 0; }
.benefit-grid article:nth-last-child(-n + 3) { border-bottom: 0; }
.benefit-grid article:hover { position: relative; z-index: 1; transform: translateY(-4px); background: #fff; }
.benefit-grid span { color: var(--gold-600); font: 1.4rem var(--serif); }
.benefit-grid h3 { margin: 0.55rem 0; font: 1.5rem var(--serif); }
.benefit-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.faq-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 7vw, 6rem); background: var(--ivory-100); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 58px; position: relative; display: flex; align-items: center; padding: 0.9rem 2.3rem 0.9rem 0; cursor: pointer; list-style: none; font: 1.25rem var(--serif); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0.25rem; color: var(--gold-600); font: 1.5rem var(--sans); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 680px; margin: 0 0 1.2rem; color: var(--muted); font-size: 0.96rem; }

/* Enquiry */
.enquire { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2.5rem, 7vw, 6rem); background: var(--maroon-800); color: #fff; }
.form-intro { align-self: start; }
.form-intro .kicker { color: var(--gold-300); }
.form-intro h2 em { color: var(--gold-300); }
.form-intro > p:not(.kicker) { color: rgba(255, 255, 255, 0.84); font-size: 1rem; }
.contact-lines { margin-top: 1.8rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.contact-lines p { margin: 0.65rem 0; color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; }
.contact-lines span { margin-right: 0.5rem; color: var(--gold-300); }
.direct-contact { display: grid; gap: 0.5rem; margin-top: 1.3rem; }
.direct-contact a { width: fit-content; min-height: 36px; color: var(--gold-300); font-size: 0.95rem; font-weight: 700; }
.trial-form { padding: clamp(1.5rem, 4vw, 2.6rem); background: var(--ivory-50); color: var(--ink); box-shadow: var(--shadow); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.15rem; }
.field label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.field label span { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0.65rem 0; border: 0; border-bottom: 1px solid #bfae9c; border-radius: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--maroon-700); }
.consent { display: flex; align-items: flex-start; gap: 0.7rem; margin: 0.8rem 0 1rem; color: var(--muted); font-size: 0.88rem; }
.consent input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 0.15rem; accent-color: var(--maroon-800); }
.consent a, .privacy a { color: var(--maroon-700); text-decoration: underline; text-underline-offset: 2px; }
.submit { width: 100%; border: 0; cursor: pointer; }
.privacy { color: var(--muted); font-size: 0.82rem; text-align: center; }
.success { display: none; margin-top: 1rem; padding: 1rem; background: #e8f2e5; color: #28572c; font-size: 0.9rem; }
.success.show { display: block; }

/* Footer */
.academy-footer { padding: 3.6rem max(1.4rem, calc((100vw - var(--container)) / 2)) 1.5rem; background: var(--maroon-950); color: #fff; }
.footer-identity { display: flex; align-items: center; justify-content: center; gap: 1.3rem; }
.footer-logo { width: 100px; height: 100px; flex: 0 0 100px; }
.footer-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.footer-kicker { margin: 0; font: 600 0.9rem var(--serif); letter-spacing: 0.1em; }
.footer-motto { margin: 0.4rem 0 0.1rem; color: var(--gold-300); font: italic 1.15rem var(--serif); }
.footer-location { margin: 0; color: var(--on-dark-muted); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.7rem; margin: 1.8rem 0 1.4rem; }
.footer-nav a { min-height: 44px; display: inline-flex; align-items: center; color: rgba(255, 255, 255, 0.78); font-size: 0.86rem; }
.footer-nav a:hover { color: var(--gold-300); }
.footer-divider { height: 1px; background: rgba(228, 199, 126, 0.26); }
.footer-contact-grid { display: grid; grid-template-columns: 0.75fr 0.9fr 1.55fr; margin: 1.5rem 0; }
.footer-contact-grid > section { min-width: 0; padding: 0.8rem 1.8rem; border-right: 1px solid rgba(255, 255, 255, 0.15); }
.footer-contact-grid > section:first-child { padding-left: 0; }
.footer-contact-grid > section:last-child { padding-right: 0; border-right: 0; }
.footer-label { margin: 0 0 0.5rem; color: var(--gold-300); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.15em; }
.footer-contact-grid h2 { margin: 0.2rem 0; font: 1.45rem var(--serif); }
.footer-contact-grid p:not(.footer-label) { margin: 0.35rem 0; color: var(--on-dark-muted); font-size: 0.9rem; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer-contact-link { min-height: 36px; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold-300); font-size: 0.9rem; font-weight: 600; }
.instagram-link svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.instagram-qr { display: grid; grid-template-columns: 74px auto; align-items: center; gap: 0.75rem; margin-top: 0.75rem; color: var(--on-dark-muted); font-size: 0.78rem; }
.instagram-qr img { width: 74px; height: 79px; display: block; object-fit: cover; border: 2px solid var(--gold-300); border-radius: 6px; }
.footer-map-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 0.65rem; }
.footer-map-heading a { min-height: 44px; display: inline-flex; align-items: center; color: var(--gold-300); font-size: 0.82rem; }
.footer-map iframe { width: 100%; height: 175px; display: block; border: 0; border-radius: 4px; filter: saturate(0.8) sepia(0.08); }
.footer-map small { display: block; margin-top: 0.45rem; color: rgba(255, 255, 255, 0.68); font-size: 0.78rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.68); font-size: 0.78rem; }
.footer-bottom p { margin: 0; }
.footer-bottom > div { display: flex; gap: 1.2rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.82); }
.floating-whatsapp {
  position: fixed;
  z-index: 40;
  right: 1rem;
  bottom: 1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(228, 199, 126, 0.7);
  background: rgba(22, 9, 12, 0.94);
  color: var(--gold-300);
  font-size: 0.82rem;
  font-weight: 700;
  transform: translateY(130%);
  opacity: 0;
  transition: transform 280ms ease, opacity 280ms ease, background 180ms ease;
}
.floating-whatsapp span { font-size: 1.1rem; }
.floating-whatsapp b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.floating-whatsapp:hover { background: var(--maroon-800); }
.has-scrolled .floating-whatsapp { transform: none; opacity: 1; }

/* Privacy and error pages */
.legal-page { background: var(--ivory-100); color: var(--ink); }
.legal-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem max(1.4rem, calc((100vw - var(--container)) / 2)); background: var(--temple-maroon-deep); color: #fff; }
.legal-header > a:last-child { color: var(--gold-300); font-size: 0.88rem; }
.legal-content { max-width: 850px; margin: auto; padding: clamp(3rem, 8vw, 6rem) 1.5rem; }
.legal-content h1 { margin: 0.8rem 0 1rem; font: 400 clamp(2.7rem, 6vw, 5rem) / 1 var(--serif); }
.legal-content h2 { margin: 2.2rem 0 0.5rem; font: 400 1.6rem var(--serif); }
.legal-content p { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.legal-content a { color: var(--maroon-700); text-decoration: underline; }
.legal-updated { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem max(1.4rem, calc((100vw - var(--container)) / 2)); background: var(--temple-maroon-deep); color: rgba(255, 255, 255, 0.75); font-size: 0.8rem; }
.legal-footer a { color: var(--gold-300); }
.motif-legal { background-color: var(--jasmine-warm); }
.motif-legal-bottom { background-color: var(--jasmine-warm); }
.not-found { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--deep-indigo); color: #fff; }
.not-found main { max-width: 720px; text-align: center; }
.not-found h1 { margin: 1rem 0; font: 400 clamp(3rem, 8vw, 6rem) / 1 var(--serif); }
.not-found main > p:not(.kicker) { margin-bottom: 2rem; color: rgba(255, 255, 255, 0.78); }
.motif-404 { margin-bottom: 2rem; background-color: transparent; }
.motif-404-bottom { margin-top: 2rem; background-color: transparent; }

@keyframes hero-breathe { from { scale: 1.025; } to { scale: 1.055; } }
@keyframes light-flow { 0% { transform: translate3d(-10%, 0, 0) rotate(-8deg); opacity: 0.04; } 45% { opacity: 0.16; } 100% { transform: translate3d(250%, 8px, 0) rotate(-8deg); opacity: 0.02; } }
@keyframes headline-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes diya-glow { 0%, 100% { opacity: 0.68; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes flame-sway { from { transform: translateY(-14px) rotate(-4deg) scaleY(0.92); } to { transform: translateY(-16px) rotate(4deg) scaleY(1.06); } }
@keyframes lamp-pulse { 0%, 100% { opacity: 0.52; transform: scale(0.88); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes ghungroo-line { to { transform: scaleX(1); } }
@keyframes ghungroo-step { 55% { opacity: 1; transform: translateY(3px) rotate(5deg); } 100% { opacity: 1; transform: translateY(0) rotate(0); } }

/* Keep the complete posture below the header at every desktop/zoom width. */
@media (min-width: 761px) {
  .hero-portrait { background: radial-gradient(circle at 62% 42%, var(--temple-maroon-soft), var(--temple-maroon-deep) 74%); }
  .hero-picture {
    inset: var(--header-h) 0 0;
    height: auto;
  }
  .hero-picture > img {
    object-fit: contain;
    object-position: 62% center;
    transform: none;
    animation: none;
  }
}

/* Keep the layout visually balanced when browser zoom creates a very wide CSS viewport. */
@media (min-width: 1800px) {
  :root { --container: 78vw; }
  .site-header { padding-inline: max(4rem, 5vw); }
  .section { padding-left: 11vw; padding-right: 11vw; }
}

@media (max-width: 1100px) {
  .site-header { --header-h: 78px; height: var(--header-h); padding-inline: 1.5rem; background: rgba(22, 9, 12, 0.94); }
  .brand-mark { width: 54px; height: 54px; flex-basis: 54px; }
  .brand-name small { display: none; }
  .site-header nav { gap: 0.7rem; }
  .site-header nav a { padding-inline: 0.35rem; font-size: 0.76rem; }
  .site-header .nav-cta { padding-inline: 0.75rem; }
  .hero { height: min(82svh, 760px); min-height: 640px; }
  .hero-copy { left: clamp(1.5rem, 6vw, 4rem); width: min(590px, 62vw); }
  .hero h1 { font-size: clamp(3.5rem, 8vw, 5.8rem); }
  .teacher-profile { grid-template-columns: minmax(260px, 0.75fr) 1.25fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; }
  .gallery-featured { grid-column: 1 / -1; grid-row: auto; height: 460px; }
  .footer-contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-map { grid-column: 1 / -1; margin-top: 1rem; padding: 1.4rem 0 0 !important; border-top: 1px solid rgba(255, 255, 255, 0.15); }
  .footer-contact-grid > section:nth-child(2) { border-right: 0; }
}

@media (max-width: 900px) {
  .site-header { background: rgba(22, 9, 12, 0.98); }
  .brand-name small { display: block; }
  .site-header nav { position: absolute; top: var(--header-h); right: 0; left: 0; display: none; padding: 1rem 1.25rem 1.3rem; background: var(--maroon-950); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25); }
  .site-header nav.open { display: grid; grid-template-columns: repeat(4, 1fr); }
  .site-header nav a { justify-content: center; }
  .site-header .nav-cta { grid-column: span 2; }
  .menu { display: block; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .site-header { position: absolute; height: var(--header-h); padding-inline: 1rem; }
  .brand-mark { width: 52px; height: 52px; flex-basis: 52px; }
  .brand-name strong { font-size: 0.76rem; }
  .brand-name small { font-size: 0.58rem; }
  .site-header nav.open { grid-template-columns: 1fr 1fr; }
  .site-header .nav-cta { grid-column: 1 / -1; }
  .hero { height: auto; min-height: 0; padding-top: var(--header-h); display: grid; }
  .hero-portrait { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .hero-picture > img { object-position: 58% 22%; transform: none; animation: none; }
  .gopuram-frame { inset: 0.65rem; }
  .hero-lotus { right: 1.5rem; bottom: 1.4rem; transform: scale(0.78); }
  .lamp-glow-tall { top: 47%; right: 5%; }
  .lamp-glow-small { top: 57%; right: 13%; }
  .hero-shade { display: none; }
  .hero-motion { display: none; }
  .hero-copy { position: relative; inset: auto; width: auto; padding: 2.4rem 1.25rem 2.8rem; transform: none; background: var(--maroon-950); }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .hero-seo-title { font-size: 0.72rem; }
  .lead { font-size: 1rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1; }
  .scroll { display: none; }
  .trust-strip { grid-template-columns: 1fr 1fr; padding-block: 0.75rem; }
  .trust-strip p { padding: 0.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .trust-strip p:nth-child(2n) { border-right: 0; }
  .teacher-profile { grid-template-columns: 1fr; }
  .teacher-photo, .teacher-photo img { min-height: 440px; }
  .section-head, .gallery-head, .benefits-head { grid-template-columns: 1fr; gap: 0.75rem; }
  .program-grid { grid-template-columns: 1fr; }
  .program + .program { border-top: 1px solid var(--sand-300); border-left: 0; }
  .journey { grid-template-columns: 1fr; gap: 1rem; }
  .section-tag { writing-mode: initial; }
  .timeline { grid-column: 1; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .benefit-grid article:nth-child(3n) { border-right: 1px solid var(--sand-300); }
  .benefit-grid article:nth-child(2n) { border-right: 0; }
  .benefit-grid article:nth-last-child(-n + 3) { border-bottom: 1px solid var(--sand-300); }
  .benefit-grid article:nth-last-child(-n + 2) { border-bottom: 0; }
  .faq-section, .enquire { grid-template-columns: 1fr; }
  .footer-contact-grid { grid-template-columns: 1fr; }
  .footer-contact-grid > section { padding: 1rem 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .footer-map { grid-column: auto; }
}

@media (max-width: 520px) {
  .section { padding: 3rem 1.15rem; }
  .brand { gap: 0.55rem; }
  .brand-name strong { font-size: 0.76rem; letter-spacing: 0.1em; }
  .brand-name small { font-size: 0.6rem; letter-spacing: 0.055em; }
  .hero-portrait { aspect-ratio: 1 / 1.05; }
  .hero-picture > img { object-position: 58% top; }
  .hero-copy { padding: 2rem 1.15rem 2.35rem; }
  .hero h1 { font-size: clamp(2.85rem, 14.2vw, 3.8rem); }
  .hero-actions { flex-direction: column; }
  .button { font-size: 0.95rem; }
  .trust-strip { grid-template-columns: 1fr; padding-inline: 1.15rem; }
  .trust-strip p { padding: 0.65rem 0; border-right: 0; }
  .teacher-photo, .teacher-photo img { min-height: 390px; }
  .teacher-facts { grid-template-columns: 1fr; }
  .teacher-facts span { min-height: 68px; grid-template-columns: 105px 1fr; align-items: center; }
  .timeline { grid-template-columns: 1fr; border-top: 0; }
  .timeline article { padding: 1.35rem 0; border-top: 1px solid rgba(255, 255, 255, 0.25); }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .gallery-featured, .gallery-item { height: clamp(320px, 96vw, 360px); }
  .gallery-video video { aspect-ratio: 16 / 10; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { min-height: 0; border-right: 0 !important; border-bottom: 1px solid var(--sand-300) !important; }
  .benefit-grid article:last-child { border-bottom: 0 !important; }
  .split { grid-template-columns: 1fr; gap: 0; }
  .footer-identity { justify-content: flex-start; gap: 0.8rem; }
  .footer-logo { width: 78px; height: 78px; flex-basis: 78px; }
  .footer-kicker { font-size: 0.76rem; }
  .footer-motto { font-size: 1rem; }
  .footer-location { font-size: 0.7rem; }
  .footer-nav { justify-content: flex-start; gap: 0.15rem 1rem; }
  .footer-bottom { flex-direction: column; }
  .floating-whatsapp { display: none; }
  .motif-divider { height: 26px; background-size: auto 26px; }
  .motif-temple { height: 32px; background-size: auto 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-picture > img { transform: none; }
  .hero-motion { display: none; }
  .hero h1 { opacity: 1; transform: none; }
  .hero-lotus { opacity: 0.82; transform: none; }
  .ghungroo-divider span { transform: scaleX(1); }
  .ghungroo-divider i { opacity: 1; transform: none; }
}
