/* =========================================================
   Guru Brahma Guru Vishnu Jothida Payirchi Maiyam
   Midnight navy · royal blue · antique gold · warm ivory
   ========================================================= */

:root {
  --night: #070b1f;
  --night-2: #0b1236;
  --navy: #101a4a;
  --royal: #1f3a9e;
  --royal-2: #2a4fc4;
  --gold: #d4a640;
  --gold-2: #e9c46a;
  --gold-3: #fff1c1;
  --gold-deep: #9b7027;
  --ivory: #f7f0e1;
  --ivory-2: #e9dfc8;
  --muted: #b9b3a3;
  --line: rgba(212, 166, 64, .28);
  --card: linear-gradient(160deg, rgba(31, 58, 158, .22), rgba(11, 18, 54, .78));
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .75);
  --glow: 0 0 0 1px rgba(233, 196, 106, .45), 0 10px 40px -8px rgba(212, 166, 64, .55);
  --f-ta-display: "Noto Serif Tamil", "Tamil Sangam MN", "Latha", serif;
  --f-ta: "Noto Sans Tamil", "Tamil Sangam MN", "Latha", system-ui, sans-serif;
  --f-en-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --f-en: "Cormorant Garamond", Georgia, serif;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--f-ta);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[data-lang="en"] body { font-family: var(--f-en); font-size: 1.12rem; }
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold-3); }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-ta-display); font-weight: 700; line-height: 1.35; margin: 0 0 .5em; }
html[data-lang="en"] h2, html[data-lang="en"] h3 { font-family: var(--f-en-display); letter-spacing: .02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- language visibility ---------- */
html[data-lang="ta"] .en { display: none !important; }
html[data-lang="en"] .ta { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 2.5rem; }

/* ---------- placeholders (clearly labelled) ---------- */
.ph-text { color: var(--gold-2); font-style: italic; opacity: .85; }
.ph-text.small { font-size: .85em; display: block; }
.ph-block { border: 1px dashed var(--line); border-radius: 12px; padding: 1rem 1.2rem; background: rgba(212, 166, 64, .04); }
.ph-block p { margin: 0; color: var(--ivory-2); font-style: italic; }
.note { font-size: .85rem; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --b: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.6em;
  border-radius: 999px; border: 1px solid var(--b);
  font-weight: 600; letter-spacing: .01em; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s, color .35s;
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
}
.btn .ico { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn-gold {
  color: #1a1204;
  background: linear-gradient(180deg, #ffe7a3 0%, #e2b955 45%, #b8862f 100%);
  box-shadow: 0 6px 24px -6px rgba(212, 166, 64, .7), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-gold:hover { color: #1a1204; transform: translateY(-2px); box-shadow: 0 12px 34px -6px rgba(233, 196, 106, .9), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-outline { --b: rgba(233, 196, 106, .6); color: var(--gold-3); background: rgba(11, 18, 54, .35); backdrop-filter: blur(4px); }
.btn-outline:hover { background: rgba(212, 166, 64, .14); color: var(--gold-3); transform: translateY(-2px); box-shadow: var(--glow); }
.btn-sm { min-height: 42px; padding: .5em 1.15em; font-size: .92rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
  padding-top: env(safe-area-inset-top);
}
.site-header.scrolled { background: rgba(7, 11, 31, .82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ivory); min-width: 0; }
.brand-mark { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 0 10px rgba(212, 166, 64, .45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-ta { font-family: var(--f-ta-display); font-weight: 700; font-size: .98rem; color: var(--gold-3); white-space: nowrap; }
.brand-sub { font-size: .78rem; color: var(--ivory-2); white-space: nowrap; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) { display: block; padding: .5rem .7rem; color: var(--ivory-2); font-size: .92rem; border-radius: 8px; position: relative; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .3rem; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--gold-3); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: .4rem; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(11, 18, 54, .5); }
.lang-switch button { border: 0; background: none; padding: .3rem .7rem; border-radius: 999px; font-size: .82rem; cursor: pointer; color: var(--ivory-2); min-height: 34px; }
.lang-switch button[aria-pressed="true"] { background: linear-gradient(180deg, #ffe7a3, #c9952f); color: #1a1204; font-weight: 600; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: rgba(11, 18, 54, .5); cursor: pointer; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--gold-2); border-radius: 2px; transition: transform .3s, opacity .3s; content: ""; }
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { top: -7px; left: 0; right: 0; }
.nav-toggle .bars::after { top: 7px; left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 80% 55% at 50% 105%, rgba(212, 166, 64, .28), transparent 60%),
    radial-gradient(ellipse 60% 50% at 75% 35%, rgba(42, 79, 196, .35), transparent 70%),
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(31, 58, 158, .3), transparent 70%),
    linear-gradient(180deg, #050818 0%, #0a1240 55%, #101a4a 100%);
}
.hero-sky { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.stars { position: absolute; inset: -50% 0 0; background-repeat: repeat; }
.stars-1 {
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(255, 241, 193, .9), transparent),
    radial-gradient(1.5px 1.5px at 200px 150px, #fff, transparent),
    radial-gradient(1px 1px at 280px 40px, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1px 1px at 60px 220px, rgba(255, 241, 193, .8), transparent),
    radial-gradient(1px 1px at 330px 260px, #fff, transparent);
  background-size: 360px 300px; opacity: .75;
  animation: drift 120s linear infinite;
}
.stars-2 {
  background-image:
    radial-gradient(1.5px 1.5px at 50px 100px, rgba(255, 231, 163, .95), transparent),
    radial-gradient(1px 1px at 170px 20px, #fff, transparent),
    radial-gradient(2px 2px at 300px 190px, rgba(255, 231, 163, .9), transparent),
    radial-gradient(1px 1px at 400px 300px, #fff, transparent);
  background-size: 480px 380px; opacity: .55;
  animation: drift 200s linear infinite reverse, twinkle 5s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translateY(50%); } }
@keyframes twinkle { from { opacity: .3; } to { opacity: .8; } }

.divine-rays {
  position: absolute; left: 50%; bottom: -10%; width: 160vmax; height: 160vmax; transform: translateX(-50%);
  background: repeating-conic-gradient(from 0deg at 50% 100%, rgba(255, 231, 163, .07) 0deg 3deg, transparent 3deg 12deg);
  -webkit-mask: radial-gradient(circle at 50% 100%, #000 0%, transparent 55%);
  mask: radial-gradient(circle at 50% 100%, #000 0%, transparent 55%);
  animation: rays 60s linear infinite;
  transform-origin: 50% 100%;
}
@keyframes rays { from { transform: translateX(-50%) rotate(-6deg); } 50% { transform: translateX(-50%) rotate(6deg); } to { transform: translateX(-50%) rotate(-6deg); } }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-temple { position: absolute; left: 50%; bottom: 0; width: min(680px, 120vw); transform: translateX(-50%); z-index: -1; opacity: .32; pointer-events: none; }
.gopuram { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 24px rgba(212, 166, 64, .25)); }
.gopuram .g-fill { fill: url(#gFill); stroke: url(#gGold); stroke-width: 1.2; }
.gopuram .g-line { fill: none; stroke: url(#gGold); stroke-width: 1.4; }
.gopuram .g-line.thin { stroke-width: .7; opacity: .7; }
.gopuram .g-niche { fill: rgba(255, 220, 140, .18); stroke: rgba(233, 196, 106, .55); stroke-width: .7; }
.gopuram .g-door { fill: rgba(255, 214, 120, .35); }
.gopuram .g-kalasam { fill: #e9c46a; filter: drop-shadow(0 0 4px rgba(255, 231, 163, .9)); }

.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; position: relative; }
.sloka { font-family: var(--f-ta-display); color: var(--gold-2); font-size: .95rem; letter-spacing: .01em; margin-bottom: 1.4rem; opacity: .9; display: flex; flex-direction: column; border-left: 2px solid var(--gold); padding-left: .9rem; }
.hero-title { font-size: clamp(2rem, 4.2vw, 3.15rem); margin: 0 0 .4rem; line-height: 1.3; }
.title-line { display: block; color: var(--ivory); text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
.title-line.accent {
  background: linear-gradient(180deg, #fff6d6 10%, #e9c46a 55%, #b8862f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(212, 166, 64, .35));
}
.hero-en { font-family: var(--f-en-display); letter-spacing: .14em; text-transform: uppercase; font-size: clamp(.72rem, 1.6vw, .92rem); color: var(--ivory-2); margin-bottom: 1.3rem; }
.hero-lead { font-size: 1.08rem; color: var(--ivory-2); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.6rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--ivory-2); }
.hero-points li { display: flex; align-items: center; gap: .5rem; }
.hero-points li::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* ---------- 3D zodiac wheel ---------- */
.hero-wheel { display: flex; justify-content: center; }
.wheel-stage { width: min(520px, 88vw); aspect-ratio: 1; perspective: 1100px; position: relative; }
.wheel-stage::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(212, 166, 64, .25), transparent 65%); filter: blur(20px); }
.wheel-tilt {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 14deg)) rotateY(var(--ry, -8deg));
  transition: transform .9s var(--ease);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -10px; } }
.w-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.w-naks { transform: translateZ(-40px); animation: spin 180s linear infinite; }
.w-rasi-ring { transform: translateZ(0); animation: spin 120s linear infinite reverse; }
.w-lotus { transform: translateZ(35px) scale(.98); animation: spin 90s linear infinite; }
.w-centre { transform: translateZ(70px); }
@keyframes spin { to { rotate: 360deg; } }
.w-line { fill: none; stroke: #d9b257; stroke-width: 1.3; }
.w-line.thin { stroke-width: .6; opacity: .65; }
.w-dot { fill: var(--gold-2); }
.w-rasi { fill: #f3dc9a; font-family: var(--f-ta-display); font-weight: 700; text-anchor: middle; dominant-baseline: middle; }
.w-petal { fill: rgba(212, 166, 64, .08); stroke: #d9b257; stroke-width: 1; }
.w-kattam-bg { fill: rgba(7, 11, 31, .85); }
.w-om { fill: #ffe7a3; font-family: var(--f-ta-display); text-anchor: middle; filter: drop-shadow(0 0 6px rgba(255, 220, 140, .9)); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid var(--gold-2); border-radius: 14px; opacity: .8; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--gold-2); border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: clamp(4.5rem, 10vw, 7.5rem) 0; }
.section:nth-of-type(even) { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 50%, var(--night) 100%); }
.section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(212, 166, 64, .09) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  mask: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.section > .container { position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.eyebrow { font-family: var(--f-en-display); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; color: var(--gold); margin-bottom: .6rem; }
html[data-lang="ta"] .eyebrow { font-family: var(--f-ta); letter-spacing: .08em; font-size: .88rem; }
.section-head h2, .admission-copy h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); color: var(--gold-3); }
.section-intro { color: var(--ivory-2); margin-top: 1rem; }
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: .4rem auto 0; }
.divider::before, .divider::after { content: ""; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { transform: scaleX(-1); }
.divider span { width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--gold-2); box-shadow: 0 0 10px rgba(233, 196, 106, .6); }
.divider.left { justify-content: flex-start; }
.divider.left::before { display: none; }
.sub-head { text-align: center; color: var(--gold-3); font-size: clamp(1.3rem, 2.8vw, 1.8rem); margin: 4rem 0 2rem; }

/* ---------- photo slots (auto-show placeholder when image is missing) ---------- */
.photo-slot {
  position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(212, 166, 64, .14), transparent 60%),
    linear-gradient(160deg, #13205a, #0a1033);
  border-radius: 14px; cursor: zoom-in;
}
.photo-slot img { color: transparent; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.photo-slot .ph-label { display: none; }
.photo-slot.missing { cursor: default; border: 1px dashed rgba(233, 196, 106, .45); }
.photo-slot.missing img { display: none; }
.photo-slot.missing .ph-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  position: absolute; inset: 0; padding: 1rem; text-align: center; color: var(--gold-2); font-size: .9rem; font-style: italic;
}
.photo-slot.missing .ph-label::before {
  content: ""; width: 42px; height: 42px; opacity: .8;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9c46a' stroke-width='1.3'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 16-5-5-8 8'/%3E%3C/svg%3E");
}
.photo-slot:not(.missing):hover img { transform: scale(1.06); }

/* =========================================================
   GURUJI
   ========================================================= */
.guruji-grid { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.portrait-frame { margin: 0; text-align: center; }
.arch {
  position: relative; padding: 14px; border-radius: 220px 220px 22px 22px;
  background: linear-gradient(180deg, #f6dc92, #a8792a 60%, #6b4b16);
  box-shadow: 0 0 0 1px rgba(255, 241, 193, .4), 0 30px 80px -20px rgba(212, 166, 64, .45);
}
.arch::before { content: ""; position: absolute; inset: 6px; border-radius: 214px 214px 18px 18px; border: 1px solid rgba(255, 241, 193, .7); pointer-events: none; z-index: 1; }
.portrait-slot { aspect-ratio: 4 / 5; border-radius: 206px 206px 12px 12px; cursor: default; }
.portrait-frame figcaption { margin-top: 1.3rem; display: flex; flex-direction: column; gap: .2rem; font-size: 1.15rem; }
.guruji-copy h3 { color: var(--gold-2); font-size: 1.3rem; margin-top: 1.8rem; }
.guruji-copy h3:first-child { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem .8rem; text-align: center; background: var(--card); }
.stat-num { display: block; font-family: var(--f-en-display); font-size: 1.6rem; color: var(--gold-2); }
.stat-label { font-size: .85rem; color: var(--ivory-2); line-height: 1.4; display: block; margin-top: .3rem; }

/* =========================================================
   COURSES
   ========================================================= */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; perspective: 1200px; }
.course-card {
  position: relative; border-radius: var(--radius); padding: 2.4rem 1.7rem 1.8rem;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .4rem;
  transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s, border-color .5s;
}
.course-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(233, 196, 106, .16), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.course-card:hover { border-color: rgba(233, 196, 106, .7); box-shadow: var(--glow), var(--shadow); }
.course-card:hover::before { opacity: 1; }
.course-card.featured { background: linear-gradient(160deg, rgba(42, 79, 196, .4), rgba(11, 18, 54, .85)); border-color: rgba(233, 196, 106, .55); }
.course-level {
  position: absolute; top: -22px; left: 1.7rem; width: 48px; height: 48px; display: grid; place-items: center;
  font-family: var(--f-en-display); font-weight: 700; color: #1a1204;
  background: linear-gradient(180deg, #ffe7a3, #c9952f); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--night), 0 0 22px rgba(233, 196, 106, .6);
  transform: translateZ(30px);
}
.course-card h3 { font-size: 1.45rem; color: var(--gold-3); margin: .4rem 0 0; font-family: var(--f-ta-display) !important; transform: translateZ(20px); }
.course-en { font-family: var(--f-en-display); color: var(--gold); letter-spacing: .08em; font-size: .85rem; margin: 0 0 .6rem; text-transform: uppercase; }
.course-desc { color: var(--ivory-2); }
.syllabus { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .5rem 0; margin: .3rem 0 .9rem; }
.syllabus summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; padding: .4rem 0; color: var(--gold-2); font-weight: 600; min-height: 44px; }
.syllabus summary::-webkit-details-marker { display: none; }
.syllabus summary::after { content: "+"; font-size: 1.4rem; line-height: 1; transition: transform .3s; }
.syllabus[open] summary::after { transform: rotate(45deg); }
.syllabus ul { margin: .3rem 0 .6rem; padding: 0; list-style: none; }
.syllabus li { position: relative; padding-left: 1.3rem; margin: .35rem 0; font-size: .95rem; color: var(--ivory-2); }
.syllabus li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.course-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 0 0 1.2rem; }
.course-meta dt { font-size: .78rem; color: var(--muted); }
.course-meta dd { margin: 0; }
.course-card .btn { margin-top: auto; align-self: flex-start; }

/* =========================================================
   SERVICES
   ========================================================= */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.service-card {
  position: relative; padding: 1.8rem 1.4rem; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(247, 240, 225, .05), rgba(247, 240, 225, .015));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
.service-card::after { content: ""; position: absolute; inset: auto -40% -60% -40%; height: 80%; background: radial-gradient(ellipse at center, rgba(212, 166, 64, .22), transparent 70%); opacity: 0; transition: opacity .45s; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(233, 196, 106, .65); box-shadow: var(--glow); }
.service-card:hover::after { opacity: 1; }
.service-card.wide { grid-column: span 2; }
.svc-icon { width: 52px; height: 52px; fill: none; stroke: var(--gold-2); stroke-width: 1.4; stroke-linejoin: round; margin-bottom: 1rem; filter: drop-shadow(0 0 8px rgba(212, 166, 64, .5)); transition: transform .6s var(--ease); }
.service-card:hover .svc-icon { transform: rotate(-8deg) scale(1.08); }
.service-card h3 { font-size: 1.12rem; color: var(--gold-3); }
.service-card p { color: var(--ivory-2); font-size: .94rem; margin: 0; }

/* =========================================================
   AWARDS & CERTIFICATES
   ========================================================= */
.award-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.award-card, .cert-card { margin: 0; }
.award-card .photo-slot { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.award-card figcaption, .cert-card figcaption { text-align: center; margin-top: .8rem; font-size: .92rem; }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; max-width: 860px; margin-inline: auto; }
.cert-card .photo-slot {
  aspect-ratio: 3 / 4; border-radius: 4px;
  outline: 1px solid rgba(233, 196, 106, .5); outline-offset: -10px;
  box-shadow: 0 0 0 8px #2a1d07, 0 0 0 9px rgba(233, 196, 106, .6), var(--shadow);
}
.honours-list { max-width: 760px; margin: 4rem auto 0; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.honours-list h3 { text-align: center; color: var(--gold-3); font-size: 1.3rem; }
.honours-list ul { list-style: none; padding: 0; margin: 0; }
.honours-list li { padding: .7rem 0 .7rem 1.8rem; border-bottom: 1px solid rgba(212, 166, 64, .14); position: relative; }
.honours-list li:last-child { border-bottom: 0; }
.honours-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-style: normal; }

/* =========================================================
   GALLERY
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.chip { border: 1px solid var(--line); background: rgba(11, 18, 54, .5); color: var(--ivory-2); padding: .45rem 1.1rem; border-radius: 999px; cursor: pointer; min-height: 42px; transition: all .3s; }
.chip:hover { border-color: var(--gold-2); color: var(--gold-3); }
.chip.is-active { background: linear-gradient(180deg, #ffe7a3, #c9952f); color: #1a1204; border-color: transparent; font-weight: 600; }
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; grid-auto-flow: dense; gap: 1rem; }
.g-item { margin: 0; transition: opacity .4s, transform .4s; }
.g-item.tall { grid-row: span 2; }
.g-item .photo-slot { height: 100%; }
.g-item.is-hidden { display: none; }

/* =========================================================
   ADMISSION
   ========================================================= */
.admission-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.admission-copy p { color: var(--ivory-2); margin-top: 1.2rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: .9rem; }
.steps li::before { content: counter(s); width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); font-family: var(--f-en-display); }
.enquiry-form {
  padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: 24px;
  background: linear-gradient(160deg, rgba(31, 58, 158, .28), rgba(11, 18, 54, .9));
  border: 1px solid rgba(233, 196, 106, .4); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -30px rgba(212, 166, 64, .6);
}
.field { display: flex; flex-direction: column; margin-bottom: 1rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field label { font-size: .9rem; color: var(--ivory-2); margin-bottom: .35rem; }
.req { color: var(--gold-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  color: var(--ivory); background: rgba(7, 11, 31, .7);
  border: 1px solid rgba(233, 196, 106, .3); border-radius: 12px; padding: .75rem .9rem; min-height: 48px;
  transition: border-color .3s, box-shadow .3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-2) 50%), linear-gradient(135deg, var(--gold-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.2rem; }
.field select option { background: var(--night-2); color: var(--ivory); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(233, 196, 106, .2); }
.field.invalid input, .field.invalid select { border-color: #e2725b; }
.err { display: none; color: #f2a08f; font-size: .82rem; margin: .3rem 0 0; }
.field.invalid .err { display: block; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.form-status { margin: 1rem 0 .2rem; min-height: 1.2em; color: var(--gold-2); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.6rem; align-items: stretch; }
.contact-cards { display: grid; gap: .9rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ivory); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
a.contact-card:hover { transform: translateX(4px); border-color: var(--gold-2); box-shadow: var(--glow); color: var(--ivory); }
.contact-card > span { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.contact-card strong { color: var(--gold-2); font-weight: 600; font-size: .9rem; }
.ico { width: 26px; height: 26px; fill: var(--gold-2); flex: none; }
.ico.big { width: 48px; height: 48px; }
.map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: linear-gradient(160deg, #13205a, #0a1033); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--gold-2); font-style: italic; gap: .6rem; border: 1px dashed rgba(233, 196, 106, .4); border-radius: inherit; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, rgba(31, 58, 158, .3), transparent 60%), #050818; padding: 3.5rem 0 calc(6rem + env(safe-area-inset-bottom)); text-align: center; }
.footer-brand img { margin: 0 auto 1rem; filter: drop-shadow(0 0 14px rgba(212, 166, 64, .5)); }
.footer-name { font-family: var(--f-ta-display); font-weight: 700; color: var(--gold-3); font-size: 1.2rem; line-height: 1.5; margin-bottom: .3rem; }
.footer-en { font-family: var(--f-en-display); color: var(--muted); letter-spacing: .1em; font-size: .78rem; text-transform: uppercase; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin: 1.8rem 0; }
.footer-nav a { color: var(--ivory-2); padding: .3rem 0; }
.footer-nav a:hover { color: var(--gold-3); }
.disclaimer { max-width: 680px; margin: 0 auto 1rem; font-size: .82rem; color: var(--muted); }
.copy { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- floating quick actions ---------- */
.quick-actions { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-direction: column; gap: .7rem; }
.qa { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .7); transition: transform .3s var(--ease); }
.qa svg { width: 26px; height: 26px; fill: #fff; }
.qa:hover { transform: scale(1.08); }
.qa-wa { background: #1fa855; }
.qa-wa::after { content: ""; position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 2px solid #1fa855; animation: ping 2.4s ease-out infinite; }
.qa-call { background: linear-gradient(180deg, #ffe7a3, #c9952f); }
.qa-call svg { fill: #1a1204; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; grid-template-columns: auto 1fr auto; background: rgba(3, 5, 15, .94); backdrop-filter: blur(6px); padding: 1rem; opacity: 0; transition: opacity .3s; }
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lb-figure { margin: 0; grid-column: 2; max-width: 100%; text-align: center; }
.lb-figure img { max-width: min(1100px, 100%); max-height: 80vh; margin: 0 auto; border-radius: 10px; box-shadow: 0 0 0 1px rgba(233, 196, 106, .4), 0 30px 80px rgba(0, 0, 0, .8); }
.lb-figure figcaption { margin-top: .8rem; color: var(--ivory-2); font-size: .95rem; }
.lb-close, .lb-prev, .lb-next { background: rgba(11, 18, 54, .7); border: 1px solid var(--line); color: var(--gold-3); width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }

/* ---------- scroll reveal (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav a:not(.btn) { padding: .5rem .5rem; font-size: .88rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: #070b1f;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .45s var(--ease);
  }
  .main-nav.open { max-height: 80vh; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .6rem 16px 1.2rem; gap: 0; }
  .main-nav a:not(.btn) { padding: .9rem .4rem; font-size: 1rem; border-bottom: 1px solid rgba(212, 166, 64, .12); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: 1rem 0 0; }
  .nav-cta .btn { width: 100%; }
  .site-header { background: rgba(7, 11, 31, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

  .hero { padding-top: calc(var(--header-h) + 12px); text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: .5rem; }
  .hero-wheel { order: -1; }
  .wheel-stage { width: min(300px, 58vw); }
  .sloka { border-left: 0; padding-left: 0; align-items: center; font-size: .85rem; }
  .hero-lead { margin-inline: auto; }
  .hero-ctas, .hero-points { justify-content: center; }
  .hero-temple { opacity: .35; }

  .guruji-grid, .admission-grid, .contact-grid { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 380px; margin: 0 auto; }
  .course-grid { grid-template-columns: 1fr; gap: 2.6rem; max-width: 560px; margin-inline: auto; }
  .award-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .admission-copy { text-align: center; }
  .divider.left { justify-content: center; }
  .divider.left::before { display: block; }
  .steps { justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: .97rem; }
  .brand-ta { font-size: .86rem; }
  .brand-sub { font-size: .7rem; }
  .brand-mark { width: 38px; height: 38px; }
  .lang-switch button { padding: .25rem .55rem; }
  .hero-title { font-size: clamp(1.65rem, 8vw, 2.2rem); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
  .stat { padding: .8rem .4rem; }
  .stat-label { font-size: .74rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card.wide { grid-column: auto; }
  .service-card { display: grid; grid-template-columns: 44px 1fr; gap: 0 1rem; padding: 1.2rem 1.1rem; align-items: start; }
  .service-card .svc-icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .service-card h3 { margin-bottom: .25rem; }
  .award-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .field-row { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 100%; }
  .honours-list { padding: 1.4rem 1.1rem; }
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb-figure { grid-column: 1; }
  .lb-prev, .lb-next { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); }
  .lb-prev { left: 30%; }
  .lb-next { right: 30%; }
  .qa { width: 52px; height: 52px; }
  .qa-wa::after { width: 52px; height: 52px; }
}

@media (max-width: 380px) {
  .brand-text { display: none; }
}

/* ---------- reduced motion: everything still readable, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .particles { display: none; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .quick-actions, .hero-sky, .hero-temple, .hero-wheel, .scroll-cue, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
