/* ============================================================
   Vyshnavam Natyakalagriham
   Design system — warm heritage minimalism
   ============================================================ */

:root {
  /* Brand */
  --maroon: #7d2428;
  --maroon-deep: #4c1418;
  --wine: #2a0f11;
  --ink: #1b0f10;
  --gold: #b5874a;
  --gold-soft: #d7b988;

  /* Surfaces */
  --paper: #fcf8f1;
  --cream: #f6efe3;
  --sand: #ecdfc9;
  --white: #fffdf9;

  /* Text */
  --muted: rgba(43, 24, 25, 0.72);
  --muted-2: rgba(43, 24, 25, 0.62);
  --on-dark: #f4e9da;
  --on-dark-muted: rgba(244, 233, 218, 0.68);

  /* Lines & shadow */
  --line: rgba(124, 36, 40, 0.14);
  --line-strong: rgba(124, 36, 40, 0.26);
  --shadow-sm: 0 2px 10px rgba(42, 15, 17, 0.06);
  --shadow-md: 0 18px 44px -20px rgba(42, 15, 17, 0.28);
  --shadow-lg: 0 40px 90px -40px rgba(42, 15, 17, 0.45);

  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 20px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Typographic rhythm — optimal reading measures */
  --measure: 66ch;
  --measure-lead: 52ch;
  --leading-body: 1.62;

  /* Nataraja decorative background opacity (tunable) */
  --nataraja-exam-opacity: 0.15;
  --nataraja-contact-opacity: 0.06;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 105px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-synthesis: none;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "cv05" 1;
  font-variant-numeric: proportional-nums;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.06; letter-spacing: -0.012em; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0 0 1.05em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }

/* Tabular figures for data-like text (dates, indices, counts) */
time, .legal-meta, .exam-list span, .exam-list small, .meta-v { font-variant-numeric: lining-nums tabular-nums; }

::selection { background: var(--maroon); color: var(--cream); }

:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--maroon); color: var(--cream); padding: 10px 16px; border-radius: 10px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 16px; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ============================================================
   Typography helpers
   ============================================================ */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0 0 1.1rem;
}
.eyebrow-light { color: var(--gold-soft); }

.section-title {
  font-size: clamp(2.05rem, 4.6vw, 3.5rem);
  margin: 0 0 0.4em;
}
.title-light { color: var(--on-dark); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px;
  font-family: var(--font-ui); font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 0.72em 1.35em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; position: relative;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:active { transform: scale(0.975); }
.btn-lg { padding: 0.9em 1.7em; font-size: 1rem; }

.btn-solid { background: var(--maroon); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-solid:hover { background: var(--maroon-deep); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn-outline { border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgba(124, 36, 40, 0.08); transform: translateY(-2px); }

.btn-ghost { color: inherit; border-color: color-mix(in srgb, currentColor 32%, transparent); }
.btn-ghost:hover { border-color: currentColor; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.45em; min-height: 44px;
  font-weight: 500; color: var(--maroon);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: gap 0.35s var(--ease), border-color 0.35s var(--ease);
}
.text-link:hover { gap: 0.8em; border-color: var(--maroon); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--paper);
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header-inner {
  display: flex; align-items: center; gap: 0.7rem;
  height: 105px;
}
.site-header.is-scrolled {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(42, 15, 17, 0.4);
}

.brand { display: flex; align-items: center; flex: 0.7; min-height: 44px; padding-block: 2px; }
.brand-mark { height: 101px; width: auto; flex: none; transition: filter 0.4s var(--ease); }
.site-header .brand-mark { filter: none; }
.site-header.is-scrolled .brand-mark { filter: none; }
.brand-text { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; color: inherit; white-space: nowrap; }

.nav { display: flex; align-items: center; justify-content: center; gap: clamp(0.4rem, 1.6vw, 1.5rem); flex: 2; }
.nav a {
  position: relative; font-size: 0.92rem; font-weight: 400; padding: 0.75em 0.2em;
  opacity: 0.82; transition: opacity 0.3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0.2em; right: 0.2em; bottom: 0.1em; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; flex: 0.7; }
.site-header .btn-solid { background: var(--maroon); color: var(--cream); }
.site-header .btn-solid:hover { background: var(--maroon-deep); }
.site-header.is-scrolled .btn-solid { background: var(--maroon); color: var(--cream); }
.site-header.is-scrolled .btn-solid:hover { background: var(--maroon-deep); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid color-mix(in srgb, currentColor 32%, transparent);
  border-radius: 999px; background: transparent; cursor: pointer; padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 50%; top: 50%; width: 17px; height: 1.6px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, calc(-50% + 4px)); }

.nav-cta { display: none; }
.nav-backdrop {
  position: fixed; inset: 0; z-index: 110; border: 0; padding: 0; margin: 0;
  background: rgba(18, 6, 7, 0.55); cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: 153px 0 90px; color: var(--on-dark); overflow: hidden;
  background: var(--wine);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.5; transform: scale(1.06);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift { to { transform: scale(1.14) translateY(-1.5%); } }

.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(125, 36, 40, 0.42), transparent 60%),
    linear-gradient(180deg, rgba(20, 7, 8, 0.72) 0%, rgba(30, 10, 12, 0.82) 52%, rgba(15, 5, 6, 0.95) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 960px; }
.hero-title {
  font-size: clamp(2.55rem, 7.4vw, 6.1rem);
  line-height: 1.02; font-weight: 500; margin: 0 0 1.6rem; letter-spacing: -0.02em;
}
.hero-title span { display: block; }
.hero-title .italic { font-style: italic; }

.hero-lead {
  font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); font-style: italic;
  color: var(--on-dark-muted); max-width: 40ch; margin: 0 0 2.4rem; line-height: 1.45;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3.4rem; }
.hero-cta .btn-solid { background: var(--gold); color: #2a0f11; }
.hero-cta .btn-solid:hover { background: var(--gold-soft); }
.hero-cta .btn-outline { color: var(--on-dark); }
.hero-cta .btn-outline:hover { background: rgba(215, 185, 136, 0.14); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: clamp(1.6rem, 5vw, 3.4rem);
  padding-top: 1.6rem; border-top: 1px solid rgba(215, 185, 136, 0.22);
}
.hero-meta li { display: flex; flex-direction: column; }
.meta-k { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-soft); }
.meta-v { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 2px; }


/* ============================================================
   Marquee - seamless infinite loop
   ============================================================ */
.marquee {
  overflow: hidden;
  background: var(--maroon);
  color: var(--cream);
  padding: 18px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.5);
  border-bottom: 1px solid rgba(212, 175, 55, 0.5);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 40s linear infinite;
}
.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.marquee-group li {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: #f5ecd9;
  white-space: nowrap;
}
.marquee-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold-soft, #d7b988);
  transform: rotate(45deg);
  flex-shrink: 0;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .marquee-group[aria-hidden="true"] {
    display: none;
  }
  .marquee-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    padding-right: 0;
  }
}
@media (max-width: 768px) {
  .marquee-group li {
    font-size: 16px;
  }
  .marquee-group {
    gap: 32px;
    padding-right: 32px;
  }
}
/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(5rem, 11vw, 9.5rem) 0; position: relative; }

/* About */
.about { background: var(--paper); }
.about-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.about-aside { position: sticky; top: 120px; }
.about-body { max-width: 62ch; }
.about-body .lede {
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.5vw, 1.9rem); line-height: 1.35;
  color: var(--maroon-deep); margin-bottom: 1.4rem;
}
.about-body p { color: var(--muted); font-size: 1.06rem; }
.about-body strong { color: var(--ink); font-weight: 600; }

.pullquote {
  margin: 2.6rem 0 0; padding: 1.9rem 0 0 2rem; border-left: 2px solid var(--gold);
}
.pullquote blockquote {
  margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.4; color: var(--ink);
}
.pullquote figcaption {
  margin-top: 0.9rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2);
}

/* Disciplines */
.disciplines { background: var(--cream); }
.disc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); }
.disc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3.5vw, 3rem); position: relative; overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.disc-card::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(181, 135, 74, 0.14), transparent 65%);
  transition: transform 0.6s var(--ease);
}
.disc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.disc-card:hover::after { transform: scale(1.25); }

/* Photo-backed disc card (Mohiniyattam) */
.disc-card--photo {
  position: relative; overflow: hidden;
  background: var(--white);
  color: var(--ink);
}
.disc-card--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--card-bg); background-size: cover; background-position: center;
  opacity: 0.18; filter: saturate(0.9) brightness(1.05);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.disc-card--photo:hover::before { opacity: 0.26; transform: scale(1.04); }
.disc-card--photo.disc-card--zoom::before { background-size: 255%; background-position: center 30%; }
.disc-card--photo > * { position: relative; z-index: 1; }
.disc-card--photo .disc-index,
.disc-card--photo h3,
.disc-card--photo .disc-kicker,
.disc-card--photo p,
.disc-card--photo .disc-tags li { color: inherit; }
.disc-index {
  font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 1.6rem;
}
.disc-card h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 0.3rem; }
.disc-kicker { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--maroon); margin-bottom: 1.2rem; }
.disc-card p { color: var(--muted); position: relative; z-index: 1; }
.disc-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; position: relative; z-index: 1; }
.disc-tags li {
  font-size: 0.76rem; letter-spacing: 0.04em; padding: 0.4em 0.85em; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--line); color: var(--maroon-deep);
}

/* Founders */
.founders { background: var(--paper); }
.founder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); }
.founder {
  display: grid; grid-template-rows: auto 1fr;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.founder:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.founder-portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.founder-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.1s var(--ease); }
.founder:hover .founder-portrait img { transform: scale(1.05); }
.founder-info { padding: clamp(1.5rem, 3vw, 2.4rem); }
.founder-info h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.founder-role {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--maroon);
  margin: 0.5rem 0 1rem;
}
.founder-info p { color: var(--muted); font-size: 1rem; margin: 0; }

/* Classes / places */
.classes { background: var(--cream); }
.place-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.place {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex; flex-direction: column; height: 100%;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
@media (hover: hover) {
  .place:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
}
.place-top { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 1.4rem; }
.place-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--maroon); flex: none; }
.place-kind { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); margin: 0; }
.place h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0; }
.place-region { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--maroon); margin: 0.35rem 0 1rem; }
.place-desc {
  color: var(--muted); font-size: 0.98rem; margin: 0;
  min-height: calc(3 * 1.65em);
}
.place-map-frame {
  width: 100%; height: 180px;
  border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: var(--sand);
  margin-top: 1.1rem;
}
.place-map-frame iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: saturate(0.85) sepia(0.15);
}
.place-address {
  font-size: 0.88rem; color: var(--muted); margin: 1rem 0 0;
  min-height: calc(2 * 1.5em);
}
.place-foot {
  margin-top: auto; padding-top: 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.place-foot .text-link { flex: none; }
.place-cta { flex: none; padding-top: 0.85em; padding-bottom: 0.85em; }

.place-online {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; gap: clamp(1rem, 2.5vw, 2rem);
  padding: 24px 32px;
  border-left: 3px solid var(--maroon);
  background: linear-gradient(90deg, rgba(125, 36, 40, 0.05), var(--white) 45%);
}
.place-online-head { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.place-online-head h3 { font-size: 1.45rem; }
.place-online-head .place-region { margin: 0; }
.place-online-desc { flex: 1; color: var(--muted); font-size: 0.98rem; margin: 0; min-width: 0; }
.place-online .place-cta { margin: 0; }

.classes-note {
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.8rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.classes-note p { margin: 0; color: var(--muted); max-width: 58ch; }

/* Map preview */
.map-preview { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.4vw, 1.6rem); margin-top: clamp(2rem, 4vw, 3rem); }
.map-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 2.5vw, 1.8rem); }
.map-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--maroon-deep); }
.map-region { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--maroon); margin: 0.2rem 0 1rem; }
.map-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--sand); margin-bottom: 1rem; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .place-grid { grid-template-columns: 1fr; }
  .place-map-frame { height: 160px; }
  .place-online {
    flex-direction: column; align-items: stretch;
    padding: 24px;
  }
  .place-online-head { flex-wrap: wrap; }
  .place-online .place-cta { width: 100%; text-align: center; }
}

/* Examinations */
.examinations {
  background: linear-gradient(180deg, var(--wine), var(--maroon-deep)); color: var(--on-dark);
  overflow: hidden;
}
.examinations::before {
  content: ""; position: absolute; inset: 0; opacity: 0.4;
  background-image: radial-gradient(rgba(215, 185, 136, 0.14) 1.3px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 60% at 30% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 30% 40%, #000 10%, transparent 75%);
}
.exam-inner {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.exam-copy .section-title { margin-bottom: 1.1rem; }
.exam-lede { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.55rem); color: var(--on-dark); line-height: 1.45; }
.exam-lede strong, .exam-body strong { color: var(--gold-soft); }
.exam-body { color: var(--on-dark-muted); max-width: 52ch; margin-bottom: 2rem; }

.exam-panel {
  background: rgba(255, 253, 249, 0.09); border: 1px solid rgba(215, 185, 136, 0.24);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem);
}
.exam-badge { display: flex; align-items: center; gap: 0.9rem; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(215, 185, 136, 0.2); margin-bottom: 0.6rem; }
.exam-badge img { opacity: 0.9; }
.exam-badge p { margin: 0; font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-soft); }
.exam-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 0;
}
.exam-list li:last-child { border-bottom: 0; }
.exam-list span { font-family: var(--font-display); font-size: 1.35rem; color: var(--on-dark); }
.exam-list small { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); text-align: right; }

/* Mobile (<=639px): every syllabus row stacks name over text, same rhythm */
@media (max-width: 639px) {
  #examinations { scroll-margin-top: 90px; }

  .exam-inner { gap: 24px; }
  .exam-copy .btn-lg { width: 100%; }

  .exam-panel { width: 100%; padding: 24px; }
  .exam-badge { gap: 0.75rem; align-items: center; padding-bottom: 16px; margin-bottom: 16px; }
  .exam-badge img { flex: none; }
  .exam-badge p { font-size: 1.05rem; line-height: 1.35; overflow-wrap: break-word; }

  .examinations .exam-list li {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px; padding: 16px 0;
    border-bottom: 1px solid rgba(255, 240, 220, 0.12);
  }
  .examinations .exam-list li:last-child { border-bottom: 0; padding-bottom: 4px; }
  .examinations .exam-list span { font-size: 20px; line-height: 1.3; }
  .examinations .exam-list small {
    font-size: 12px; line-height: 1.5; text-align: left;
    white-space: normal; max-width: 100%;
  }
}

/* Gallery grid/tiles live in gallery-styles.css */
.gallery { background: var(--paper); }

/* Video preview */
.video-preview { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }
.video-preview-link { display: inline-block; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.video-preview-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.video-preview-thumb { display: block; width: 100%; max-width: 640px; height: auto; }
.video-preview-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(42, 15, 17, 0.35); transition: background 0.3s var(--ease); }
.video-preview-link:hover .video-preview-play { background: rgba(42, 15, 17, 0.5); }
.video-preview-play svg { filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6)); opacity: 0.95; }
.video-preview-caption { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }

/* Class spaces grid */
.class-spaces { background: var(--paper); }
.spaces-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 2vw, 1.4rem); margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.space-item { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.space-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease); display: block; }
.space-item:hover img { transform: scale(1.045); }

/* Mohiniyattam showcase — editorial bento gallery */
.mohini { background: var(--cream); position: relative; }
.mohini-head-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.gallery-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
  background: rgba(125, 36, 40, 0.08);
  border: 1px solid rgba(125, 36, 40, 0.18);
  padding: 0.34rem 0.85rem;
  border-radius: 6px;
}
.gallery-counter-pill .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 135, 74, 0.24);
  display: inline-block;
}
.mohini-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.mohini-attr {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.16rem;
  color: var(--maroon);
  margin: 0;
}
.mohini-guide-tip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--muted-2);
  margin: 0;
}
.mohini-guide-tip .tip-icon {
  color: var(--gold);
  flex-shrink: 0;
}

/* Bento Grid */
.mohini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.m-card {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background: var(--wine);
  border: 1px solid rgba(181, 135, 74, 0.22);
  box-shadow: 0 10px 28px -12px rgba(42, 15, 17, 0.18);
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  outline: none;
}
.m-card:focus-visible {
  box-shadow: 0 0 0 3px var(--gold), 0 20px 42px -10px rgba(42, 15, 17, 0.45);
}
.m-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 24px 50px -14px rgba(42, 15, 17, 0.38), 0 0 0 1px rgba(181, 135, 74, 0.35);
}

.m-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.m-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s var(--ease);
  z-index: 1;
}
.m-card:hover img {
  transform: scale(1.055);
  filter: brightness(1.03);
}

/* Cinematic Scrim overlay */
.m-card-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(27, 15, 16, 0.28) 0%,
    rgba(27, 15, 16, 0.05) 30%,
    rgba(27, 15, 16, 0.52) 68%,
    rgba(27, 15, 16, 0.94) 100%
  );
  pointer-events: none;
  transition: background 0.45s var(--ease);
}
.m-card:hover .m-card-scrim {
  background: linear-gradient(
    180deg,
    rgba(27, 15, 16, 0.38) 0%,
    rgba(27, 15, 16, 0.12) 25%,
    rgba(27, 15, 16, 0.65) 62%,
    rgba(27, 15, 16, 0.96) 100%
  );
}

/* Floating Badge */
.m-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(27, 15, 16, 0.85);
  border: 1px solid rgba(215, 185, 136, 0.35);
  padding: 0.3rem 0.72rem;
  border-radius: 6px;
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  pointer-events: none;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.m-card:hover .m-card-badge {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.m-card-badge .badge-tag {
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-left: 0.35rem;
  border-left: 1px solid rgba(215, 185, 136, 0.35);
}

/* Card Content */
.m-card-content {
  position: relative;
  z-index: 3;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 0.4s var(--ease);
}
.m-card-subtitle {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--gold-soft);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.25rem;
}
.m-card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 0.35rem 0;
  letter-spacing: 0.01em;
}
.m-card-desc {
  font-size: 0.86rem;
  color: rgba(244, 233, 218, 0.84);
  line-height: 1.45;
  margin: 0;
  max-width: 48ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.3s var(--ease);
}

/* Card Action */
.m-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.m-card-action .action-label {
  color: var(--gold-soft);
  opacity: 0.9;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.m-card-action .action-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(215, 185, 136, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.m-card:hover .m-card-action .action-icon {
  background: var(--maroon);
  color: #fff;
  border-color: var(--gold);
  transform: scale(1.12);
}

/* Bento cell sizing */
.m-card.m-featured {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  min-height: 560px;
}
.m-card.m-featured .m-card-title {
  font-size: 2.15rem;
}
.m-card.m-featured .m-card-content {
  padding: 2rem 1.8rem;
}
.m-card.m-featured img {
  object-position: center 15%;
}

.m-card[data-index="1"] {
  grid-column: 3;
  grid-row: 1;
  min-height: 268px;
}
.m-card[data-index="1"] img {
  object-fit: cover;
  object-position: center 35%;
}
.m-card[data-index="2"] {
  grid-column: 3;
  grid-row: 2;
  min-height: 268px;
}
.m-card[data-index="3"] {
  grid-column: 1;
  grid-row: 3;
  min-height: 380px;
}
.m-card[data-index="4"] {
  grid-column: 2;
  grid-row: 3;
  min-height: 380px;
}
.m-card[data-index="5"] {
  grid-column: 3;
  grid-row: 3;
  min-height: 380px;
}

/* ============ MOHINIYATTAM CINEMA LIGHTBOX ============ */
body.lightbox-lock { overflow: hidden; }

.m-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.m-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.m-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 7, 8, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1;
}

.m-lightbox-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(0.75rem, 2.2vw, 1.4rem);
  box-sizing: border-box;
}

/* Lightbox Header */
.m-lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding-bottom: 0.5rem;
}
.m-lb-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.m-lb-pill {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(215, 185, 136, 0.12);
  border: 1px solid rgba(215, 185, 136, 0.28);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.m-lb-counter {
  font-size: 0.84rem;
  color: rgba(244, 233, 218, 0.7);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.m-lb-counter #mLbCurrent {
  color: #fff;
  font-weight: 600;
}
.m-lb-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.m-lb-hint {
  font-size: 0.74rem;
  color: rgba(244, 233, 218, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.m-lb-hint kbd {
  display: inline-block;
  padding: 0.15rem 0.38rem;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  font-family: inherit;
}
.m-lb-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.m-lb-btn:hover {
  background: var(--maroon);
  border-color: var(--gold);
  transform: scale(1.08);
}

/* Lightbox Stage */
.m-lb-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 0;
  margin: 0.4rem 0;
}
.m-lb-figure-wrapper {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.m-lb-figure {
  margin: 0;
  height: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-lb-figure img {
  max-height: min(85vh, calc(100vh - 240px));
  max-width: min(85vw, 1100px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(215, 185, 136, 0.15);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.m-lb-figure img.is-loading {
  opacity: 0.25;
  transform: scale(0.98);
}
.m-lb-nav {
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}
.m-lb-nav:hover {
  background: var(--maroon);
  border-color: var(--gold);
  color: #fff;
  transform: scale(1.1);
}

/* Lightbox Footer */
.m-lb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}
.m-lb-info {
  flex: 1;
  min-width: 260px;
}
.m-lb-sub {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--gold-soft);
  font-weight: 600;
  display: block;
}
.m-lb-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: #fff;
  line-height: 1.15;
  margin: 0.15rem 0 0.25rem 0;
}
.m-lb-desc {
  font-size: 0.88rem;
  color: rgba(244, 233, 218, 0.85);
  margin: 0 0 0.3rem 0;
  max-width: 60ch;
  line-height: 1.4;
}
.m-lb-artist {
  font-size: 0.78rem;
  color: rgba(244, 233, 218, 0.55);
  margin: 0;
}
.m-lb-artist strong {
  color: var(--gold-soft);
  font-weight: 500;
}

/* Thumbnails strip */
.m-lb-thumbs {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.m-lb-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.m-lb-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.m-lb-thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(181, 135, 74, 0.4);
}
.m-lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contact */
.contact { background: var(--paper); }
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-lede { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.contact-email { margin: 1rem 0 0; color: var(--muted); font-size: 0.95rem; }
.contact-email a { color: var(--maroon); text-decoration: underline; text-underline-offset: 0.18em; }
.contact-details { margin-top: 1.8rem; }
.contact-details li {
  display: flex; gap: 0.9rem; align-items: baseline;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--muted);
}
.contact-details span {
  font-family: var(--font-display); font-size: 1.15rem; color: var(--maroon); min-width: 84px;
}

.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.6rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem;
  box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.field input, .field select, .field textarea {
  font-family: var(--font-ui); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  min-height: 48px; padding: 0.8em 0.95em; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(125, 36, 40, 0.12);
}
.contact-form .btn-solid { justify-self: start; padding-inline: 2.2em; }
.contact-form .btn-solid[disabled] { opacity: 0.65; cursor: wait; }
.field-error { display: none; margin: 0; color: var(--maroon); font-size: 0.8rem; line-height: 1.4; }
.field-error.is-active { display: block; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--maroon); }
.field input[aria-invalid="true"]:focus, .field select[aria-invalid="true"]:focus, .field textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(125, 36, 40, 0.18); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; visibility: hidden; pointer-events: none; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: 0.9rem; color: var(--maroon); min-height: 1.2em; opacity: 0; transition: opacity 0.4s var(--ease); }
.form-note.pop { opacity: 1; animation: noteIn 0.5s var(--ease); }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; }
.form-success { grid-column: 1 / -1; }
.form-success[hidden] { display: none; }
.form-success-text { margin: 0 0 0.9rem; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.45; }
.form-reset-link { color: var(--maroon); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 0.18em; }
.contact-form.is-sent > .field, .contact-form.is-sent > .hp-field, .contact-form.is-sent > button[type="submit"], .contact-form.is-sent > .form-note { display: none; }
@keyframes noteIn { from { opacity: 0; transform: translateY(5px); } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { position: relative; background: var(--wine); color: var(--on-dark); padding: clamp(4.5rem, 9vw, 7rem) 0 2rem; }
.footer-top {
  display: grid; grid-template-columns: 1.1fr 1.4fr; gap: clamp(2rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid rgba(215, 185, 136, 0.18);
}
.footer-brand { display: flex; align-items: center; gap: 1.2rem; }
.footer-mark { height: 112px; width: auto; flex: none; }
.footer-tag { font-family: var(--font-display); font-style: italic; color: var(--on-dark-muted); margin: 0; font-size: 1.05rem; line-height: 1.4; }

.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem; }
.footer-h { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 1rem; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; color: var(--on-dark-muted); font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer-nav a:hover { color: var(--on-dark); }
.footer-nav > div > p:not(.footer-h) { color: var(--on-dark-muted); font-size: 0.95rem; margin: 0 0 0.5rem; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem;
  padding-top: 1.8rem; font-size: 0.82rem; color: var(--on-dark-muted);
}
.footer-bottom p { margin: 0; }

/* Nataraja decorative background removed per request */

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="60"] { transition-delay: 0.06s; }
.reveal[data-delay="90"] { transition-delay: 0.09s; }
.reveal[data-delay="120"] { transition-delay: 0.12s; }
.reveal[data-delay="140"] { transition-delay: 0.14s; }
.reveal[data-delay="160"] { transition-delay: 0.16s; }
.reveal[data-delay="180"] { transition-delay: 0.18s; }
.reveal[data-delay="220"] { transition-delay: 0.22s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="380"] { transition-delay: 0.38s; }
.reveal[data-delay="460"] { transition-delay: 0.46s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { position: static; }
  .exam-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px); z-index: 120;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.35rem;
    padding: 6rem 2.2rem 2.4rem;
    background: var(--wine); color: var(--on-dark);
    transform: translateX(100%); transition: transform 0.5s var(--ease);
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
  }
  .site-header.menu-open .nav { transform: translateX(0); }
  .nav a { font-family: var(--font-display); font-size: 1.7rem; opacity: 1; padding: 0.34em 0; }
  .nav a::after { display: none; }
  .nav .nav-cta {
    display: inline-flex; align-self: stretch; margin-top: 1.5rem;
    font-family: var(--font-ui); font-size: 1rem; padding: 0.85em 1.6em;
  }
  .nav-toggle { display: block; z-index: 130; }
  .site-header.menu-open .nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
  .site-header.menu-open .nav-toggle span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
  .site-header.menu-open { color: var(--on-dark); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.menu-open .brand-mark { filter: none; }
  .site-header.menu-open .btn-ghost { display: none; }
  .site-header.menu-open .btn-solid { background: var(--maroon); color: var(--cream); }
  .site-header.menu-open .nav-backdrop { opacity: 1; visibility: visible; }

  .header-actions .btn-ghost { display: none; }
  .disc-grid, .founder-grid { grid-template-columns: 1fr; }
  .mohini-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
  .m-card.m-featured {
    grid-column: span 2;
    grid-row: auto;
    min-height: 480px;
  }
  .m-card[data-index="1"],
  .m-card[data-index="2"],
  .m-card[data-index="3"],
  .m-card[data-index="4"] {
    grid-column: auto;
    grid-row: auto;
    min-height: 340px;
  }
  .m-card[data-index="5"] {
    grid-column: span 2;
    grid-row: auto;
    min-height: 380px;
  }
  body.nav-lock { overflow: hidden; }
}

@media (max-width: 560px) {
  .header-inner { height: 109px; }
  .hero { padding-top: 118px; }
  .brand-mark { height: 84px; }
  .site-header .btn-solid { padding: 0.62em 1.05em; font-size: 0.88rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .mohini-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .spaces-grid { grid-template-columns: 1fr; }
  .map-preview { grid-template-columns: 1fr; }
  .m-card.m-featured,
  .m-card[data-index="1"],
  .m-card[data-index="2"],
  .m-card[data-index="3"],
  .m-card[data-index="4"],
  .m-card[data-index="5"] {
    grid-column: auto;
    grid-row: auto;
    min-height: 320px;
    max-height: 440px;
    aspect-ratio: 4 / 5;
  }
  .m-card.m-featured {
    aspect-ratio: 4 / 5;
    max-height: 460px;
  }
  .m-card-content {
    padding: 1.15rem 1rem;
  }
  .m-card-title {
    font-size: 1.45rem;
  }
  .m-card.m-featured .m-card-title {
    font-size: 1.65rem;
  }
  .m-card-desc {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
  }
  .m-card-action .action-icon {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--gold);
  }
  .mohini-subhead {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  .m-lb-hint { display: none; }
  .m-lb-footer { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .m-lb-thumbs { width: 100%; overflow-x: auto; padding-bottom: 0.3rem; }
  .m-lb-stage { gap: 0.5rem; }
  .m-lb-nav { width: 42px; height: 42px; }
  .m-lb-nav svg { width: 22px; height: 22px; }
  .m-lb-figure img { max-height: calc(100vh - 300px); max-width: 92vw; }
  .m-lb-title { font-size: 1.45rem; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .btn-solid { justify-self: stretch; padding-inline: 1em; }
  .contact-details span { min-width: 62px; }
  .exam-list li { flex-wrap: wrap; }
  .exam-list small { text-align: left; }
  .classes-note { flex-direction: column; align-items: flex-start; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .header-inner { gap: 0.6rem; }
  .site-header .btn-solid { padding: 0.6em 0.9em; }
  .exam-list span { font-size: 1.18rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .marquee-track, .form-note { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ============================================================
   Our Branches section
   ============================================================ */
.branches-section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  background:
    radial-gradient(1200px 400px at 50% 0%, rgba(181, 135, 74, 0.08), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.branches-section .shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.branches-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.branches-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.branches-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1.05;
  color: var(--maroon-deep);
  margin: 0 0 0.9rem;
}
.branches-sub {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto;
  font-size: 1.02rem;
}
.branches-section .map-preview {
  gap: clamp(1.4rem, 3vw, 2.2rem);
  margin-top: 0;
}
.branches-section .map-card {
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  background: var(--white);
}
.branches-section .map-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.branches-section .map-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.branches-section .map-region {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0.3rem 0 1.1rem;
  line-height: 1.5;
}
.branches-section .map-frame {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  box-shadow: inset 0 0 0 1px var(--line);
}
.branches-section .text-link {
  font-weight: 600;
  color: var(--maroon);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.branches-section .text-link:hover {
  color: var(--maroon-deep);
  border-color: var(--gold);
}
@media (max-width: 720px) {
  .branches-section .map-preview { grid-template-columns: 1fr; }
  .branches-section .map-frame { aspect-ratio: 16 / 9; }
}

/* ============================================================
   Footer optimization
   ============================================================ */
footer.site-footer {
  padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
}
footer .footer-top {
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
footer .footer-brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 34ch;
}
footer .footer-mark {
  height: 144px;
  width: auto;
}
footer .footer-tag {
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 30ch;
}
footer .footer-nav {
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
footer .footer-nav > div { min-width: 0; }
footer .footer-h { margin-bottom: 0.7rem; }
footer .footer-nav a,
footer .footer-nav > div > p:not(.footer-h) {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}
footer .footer-bottom {
  padding-top: 1.2rem;
  font-size: 0.78rem;
  gap: 0.6rem;
}
@media (max-width: 820px) {
  footer .footer-top { grid-template-columns: 1fr; gap: 2.2rem; }
  footer .footer-brand { max-width: none; }
  footer .footer-mark { height: 60px; }
  footer .footer-nav { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
@media (max-width: 520px) {
  footer .footer-nav { grid-template-columns: 1fr; }
}

footer .footer-studios { margin-top: 1.2rem; }
footer .footer-studios .footer-h { margin-bottom: 0.5rem; }
footer .footer-studios p:not(.footer-h) { margin: 0 0 0.25rem; font-size: 0.9rem; color: var(--on-dark-muted); }

/* ============================================================
   Footer - centered symmetrical redesign
   ============================================================ */
footer.site-footer {
  padding: clamp(3.5rem, 7vw, 6rem) 0 1.5rem;
  text-align: center;
}
footer.site-footer .footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.6rem, 3.2vw, 2.4rem);
}
footer.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  max-width: none;
}
footer.site-footer .footer-mark {
  height: 120px;
  width: auto;
}
footer.site-footer .footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--on-dark-muted);
  font-size: 1.05rem;
  line-height: 1.4;
  margin: 0;
  max-width: 40ch;
}
footer.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 1.6rem;
  max-width: 100%;
}
footer.site-footer .footer-nav a {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.3s var(--ease);
}
footer.site-footer .footer-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease), left 0.35s var(--ease);
}
footer.site-footer .footer-nav a:hover {
  color: var(--on-dark);
}
footer.site-footer .footer-nav a:hover::after {
  width: 100%;
  left: 0;
}
@media (prefers-reduced-motion: reduce) {
  footer.site-footer .footer-nav a::after { transition: none; }
}
footer.site-footer .footer-studios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
footer.site-footer .footer-sep {
  color: var(--gold);
  font-size: 0.7rem;
  opacity: 0.8;
}
footer.site-footer .footer-email {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}

footer.site-footer .footer-email a {
  color: var(--gold-soft);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

footer.site-footer .footer-email a:hover {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

footer.site-footer .footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
}
footer.site-footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  color: var(--gold-soft);
  background: transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
footer.site-footer .social-link:hover {
  color: var(--wine);
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: translateY(-2px);
}
footer.site-footer .footer-divider {
  width: 100%;
  max-width: var(--shell);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
  opacity: 0.7;
}
footer.site-footer .footer-divider::before,
footer.site-footer .footer-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  max-width: 100%;
}
footer.site-footer .footer-ornament {
  font-size: 0.85rem;
}
footer.site-footer .footer-bottom {
  width: 100%;
  max-width: var(--shell);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
  padding-top: 1.2rem;
  font-size: 0.8rem;
  color: var(--on-dark-muted);
}
footer.site-footer .footer-bottom p { margin: 0; }
footer.site-footer .footer-bottom .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.2rem;
}
footer.site-footer .footer-bottom .footer-legal a {
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
footer.site-footer .footer-bottom .footer-legal a:hover { color: var(--gold-soft); }
footer.site-footer .footer-bottom .footer-cred { text-align: right; }

@media (max-width: 1024px) {
  footer.site-footer .footer-nav { gap: 0.3rem 1.2rem; }
  footer.site-footer .footer-nav a { font-size: 0.9rem; }
}
@media (max-width: 768px) {
  footer.site-footer .footer-mark { height: 96px; }
  footer.site-footer .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }
  footer.site-footer .footer-bottom .footer-cred { text-align: center; }
  footer.site-footer .footer-bottom .footer-legal { justify-content: center; }
}
@media (max-width: 375px) {
  footer.site-footer .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
    width: 100%;
  }
  footer.site-footer .footer-nav a { font-size: 0.85rem; text-align: center; }
  footer.site-footer .footer-studios { font-size: 0.82rem; }
  footer.site-footer .footer-mark { height: 84px; }
}

/* Gallery grid/tiles/overlays live in gallery-styles.css */

/* Lightbox */
.g-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(42, 15, 17, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}
.g-lightbox[hidden] { display: none; }
.g-lb-stage { max-width: 90vw; max-height: 85vh; text-align: center; }
.g-lb-img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; }
.g-lb-caption { color: var(--on-dark-muted); font-size: 0.9rem; margin-top: 0.8rem; }
.g-lb-close, .g-lb-prev, .g-lb-next {
  background: transparent;
  border: 1px solid var(--gold-soft);
  color: var(--gold-soft);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.g-lb-close:hover, .g-lb-prev:hover, .g-lb-next:hover {
  background: var(--gold-soft);
  color: var(--wine);
}
.g-lb-close { position: absolute; top: 1.2rem; right: 1.2rem; }

/* Lite YouTube embed */
.gallery-video { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }
.gallery-video-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--maroon-deep);
  margin-bottom: 1rem;
}
.video-lite {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.video-lite-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-lite-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 0;
  background: var(--gold);
  color: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(42, 15, 17, 0.35);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.video-lite:hover .video-lite-play { transform: translate(-50%, -50%) scale(1.08); background: var(--gold-soft); }
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

