/* =========================================================
   Thendral IAS Academy — site styles
   Brand red and gold come from the academy emblem.
   Light theme is the default; dark is opt-in via the toggle.
   ========================================================= */

/* ---------- Theme tokens ---------- */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-soft: #F3F4F8;
  --card: #FFFFFF;
  --fg: #101632;
  --fg-2: #2A3052;
  --muted: #5E6580;
  --line: #E4E6EE;
  --dim: #C9CCD8;          /* unrevealed words, marquee */
  --nav-bg: rgba(255,255,255,.8);
  --nav-bg-solid: rgba(255,255,255,.94);
  --btn-bg: #101632;
  --btn-fg: #FFFFFF;
  --btn-hover: #1B2470;
  --night: #0B1030;        /* always-dark sections */
  --night-2: #141B45;
  --panel: #101632;        /* award + feature panels */
  --soon-bg: #E6F7EE;
  --soon-fg: #11793F;
  --red-soft: rgba(210,43,43,.08);
  --blob-opacity: .55;
  --shadow: 0 1px 2px rgba(16,22,50,.06), 0 12px 32px -12px rgba(16,22,50,.18);
  --shadow-lg: 0 0 0 1px rgba(16,22,50,.06), 0 24px 48px -16px rgba(16,22,50,.3);
  --img-filter: none;
  --map-filter: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090D22;
  --bg-soft: #10163A;
  --card: #151C44;
  --fg: #EEF0FA;
  --fg-2: #C9CDE3;
  --muted: #959CBC;
  --line: #242C5A;
  --dim: #343C6B;
  --nav-bg: rgba(16,22,58,.72);
  --nav-bg-solid: rgba(16,22,58,.92);
  --btn-bg: #FFFFFF;
  --btn-fg: #101632;
  --btn-hover: #E3E6F5;
  --night: #050818;
  --night-2: #0E1435;
  --panel: #1A2254;
  --soon-bg: rgba(34,197,94,.14);
  --soon-fg: #6EE7A0;
  --red-soft: rgba(255,107,107,.12);
  --blob-opacity: .14;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 0 0 1px rgba(255,255,255,.06), 0 24px 48px -16px rgba(0,0,0,.7);
  --img-filter: brightness(.92);
  --map-filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.95);
}

:root {
  --navy: #1B2470;
  --red: #D22B2B;
  --red-text: #C42424;
  --gold: #F4B73C;
  --mint: #CDEBDF;
  --blush: #F7DCE0;
  --cream: #FBEFD2;

  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --tamil: "Anek Tamil", "Instrument Sans", system-ui, sans-serif;
  --track-tight: -0.035em;
  --track: -0.02em;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
:root[data-theme="dark"] { --red-text: #FF7B73; }

/* Tamil mode: switch the whole type system to Anek Tamil and relax spacing */
:root[lang="ta"] {
  --display: var(--tamil);
  --body: var(--tamil);
  --track-tight: 0;
  --track: 0;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: var(--track); line-height: 1.08; font-weight: 700; color: var(--fg); }
h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem); letter-spacing: var(--track-tight); }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
section[id] { scroll-margin-top: 96px; }
[lang="ta"] { font-family: var(--tamil); letter-spacing: 0; }
[lang="en"] { font-family: var(--body); }
:root[lang="ta"] h1, :root[lang="ta"] h2, :root[lang="ta"] h3 { line-height: 1.3; }
:root[lang="ta"] h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 12px; z-index: 100; background: var(--gold); color: #101632; padding: 10px 16px; border-radius: var(--r-pill); font-weight: 700; }
.skip:focus { left: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 6px 6px 6px 22px;
  border-radius: var(--r-pill); border: 0;
  font: 600 1rem/1.1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.btn:not(:has(.btn-ico)) { padding: 6px 22px; }
.btn-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; transition: transform .4s var(--ease); }
.btn-ico svg { width: 18px; height: 18px; }
.btn:hover .btn-ico { transform: rotate(45deg); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary .btn-ico { background: var(--btn-fg); color: var(--btn-bg); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-light { background: #FFFFFF; color: #101632; }
.btn-light .btn-ico { background: #101632; color: #FFFFFF; }
.btn-glass { background: rgba(255,255,255,.14); color: #FFFFFF; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn-glass:hover { background: rgba(255,255,255,.24); }
.btn-block { width: 100%; justify-content: space-between; }
.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Floating nav ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav-pill {
  pointer-events: auto; position: relative;
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 10px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-radius: var(--r-pill);
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px -10px rgba(16,22,50,.25);
  transition: max-width .5s var(--ease), background-color .3s;
}
.nav.is-scrolled .nav-pill { background: var(--nav-bg-solid); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.15rem/1 var(--display); letter-spacing: var(--track); margin-right: auto; white-space: nowrap; }
.nav-brand img { width: 36px; height: 36px; border-radius: 50%; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 10px 13px; border-radius: var(--r-pill); font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--fg-2); transition: background-color .2s, color .2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.is-active { background: var(--bg-soft); color: var(--fg); }
/* Tamil labels are longer: tighter type and spacing in the bar */
:root[lang="ta"] .nav-links a { font-size: .9rem; padding: 10px 10px; font-weight: 600; }
/* Space-saving steps before folding into the menu button (set by JS) */
.nav-tight .nav-cta { display: none; }
.nav-tighter .nav-brand span { display: none; }
.nav-tighter .nav-links a { padding-left: 8px; padding-right: 8px; }
.nav-tools { display: flex; align-items: center; gap: 6px; }
.nav-brand, .nav-links, .nav-tools { flex-shrink: 0; }
.nav-cta { min-height: 44px; }
.nav-cta .btn-ico { width: 32px; height: 32px; }

.lang-toggle {
  display: inline-grid; grid-auto-flow: column; position: relative;
  padding: 4px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--bg-soft); color: var(--muted);
  font: 600 .82rem/1 var(--body);
}
.lang-toggle::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: var(--r-pill); background: var(--card); box-shadow: 0 1px 3px rgba(16,22,50,.18);
  transition: transform .45s var(--ease);
}
:root[lang="ta"] .lang-toggle::before { transform: translateX(100%); }
.lt-opt { position: relative; z-index: 1; min-width: 46px; padding: 9px 10px; text-align: center; transition: color .3s; }
.lt-opt[data-l="ta"] { font-family: var(--tamil); font-size: .85rem; }
:root[lang="en"] .lt-opt[data-l="en"], :root[lang="ta"] .lt-opt[data-l="ta"] { color: var(--fg); }

.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 0; cursor: pointer; background: var(--bg-soft); color: var(--fg);
  transition: background-color .3s, transform .5s var(--ease);
}
.icon-btn:hover { transform: rotate(20deg); }
.icon-btn svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: opacity .35s, transform .5s var(--ease); }
.ico-moon { opacity: 1; }
.ico-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="dark"] .ico-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
:root[data-theme="dark"] .ico-sun { opacity: 1; transform: none; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--btn-bg); cursor: pointer; position: relative; flex: none; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--btn-fg); border-radius: 2px; transition: transform .35s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Compact nav: JS adds .nav-compact whenever the links don't fit (longer in Tamil). The media query is a no-JS fallback. */
.nav-compact .nav-toggle { display: block; }
.nav-compact .nav-cta { display: none; }
.nav-compact .nav-links {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  flex-direction: column; gap: 0; padding: 10px;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav-compact .nav-links.open { opacity: 1; transform: none; visibility: visible; }
.nav-compact .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
@media (max-width: 719px) {
.nav .nav-toggle { display: block; }
.nav .nav-cta { display: none; }
.nav .nav-links {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  flex-direction: column; gap: 0; padding: 10px;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.nav .nav-links.open { opacity: 1; transform: none; visibility: visible; }
.nav .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
}
/* No transition while the page is first laid out (avoids the menu flashing on load) */
.js:not(.i18n-ready) .nav-links { transition: none !important; }
@media (max-width: 1080px) {
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav-links { display: none; }
}

/* ---------- Background blobs ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--blob-opacity); pointer-events: none; z-index: 0; transition: opacity .4s; }
.blob-a { width: 480px; height: 480px; background: var(--blush); top: -120px; right: -120px; animation: drift 18s ease-in-out infinite alternate; }
.blob-b { width: 420px; height: 420px; background: var(--mint); top: 120px; left: -160px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.blob-c { width: 520px; height: 520px; background: var(--cream); top: 10%; left: 50%; transform: translateX(-50%); }
:root[data-theme="dark"] .blob-a { background: #7A2A55; }
:root[data-theme="dark"] .blob-b { background: #1F6B57; }
:root[data-theme="dark"] .blob-c { background: #6B5420; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 92px var(--gutter) 0; overflow-x: clip; }
.hero-frame {
  position: relative; z-index: 1;
  max-width: 1400px; margin: 0 auto;
  min-height: min(760px, calc(100svh - 110px));
  border-radius: var(--r-xl); overflow: hidden;
  display: flex; align-items: flex-end;
  background: #0B1030;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%;
  z-index: -2; transform: scale(1.12);
  animation: heroZoom 2.2s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11,16,48,.86) 0%, rgba(11,16,48,.55) 40%, rgba(11,16,48,0) 70%),
    linear-gradient(0deg, rgba(11,16,48,.6) 0%, rgba(11,16,48,0) 40%);
}
.hero-content { padding: clamp(28px, 5vw, 64px); padding-bottom: calc(clamp(28px, 5vw, 64px) + 44px); max-width: 780px; color: #FFFFFF; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: var(--r-pill);
  background: rgba(11,16,48,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .95rem; font-weight: 500; margin-bottom: 24px;
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(244,183,60,.25); flex: none; }
.hero-title { color: #FFFFFF; font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.75rem); line-height: 1.02; letter-spacing: var(--track-tight); margin-bottom: 22px; }
:root[lang="ta"] .hero-title { font-size: clamp(1.8rem, 1rem + 3vw, 3.3rem); line-height: 1.28; }
.hero-content h1, .hero-lede { text-shadow: 0 2px 16px rgba(11,16,48,.55), 0 1px 3px rgba(11,16,48,.4); }
.hero-lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: rgba(255,255,255,.84); max-width: 36em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: var(--r-md);
  background: rgba(255,255,255,.94); color: #101632;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,.4);
}
.hero-chip strong { display: block; font-size: .95rem; line-height: 1.2; }
.hero-chip small { color: #5E6580; font-size: .82rem; }
.chip-award { top: 9%; right: 5%; }
.chip-online { top: 26%; right: 13%; }
.chip-star { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--gold); color: #101632; font-size: 1.1rem; }
.pulse { position: relative; width: 10px; height: 10px; margin: 0 8px 0 6px; border-radius: 50%; background: #22C55E; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #22C55E; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@keyframes float { 50% { translate: 0 -8px; } }

/* Hero load sequence */
[data-hero] { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero-tag[data-hero] { animation-delay: .15s; }
.hero-title[data-hero] { animation-delay: .25s; }
.hero-lede[data-hero] { animation-delay: .4s; }
.hero-actions[data-hero] { animation-delay: .52s; }
.chip-award[data-hero] { animation: rise .9s var(--ease) .75s forwards, float 6s ease-in-out 1.7s infinite; }
.chip-online[data-hero] { animation: rise .9s var(--ease) .9s forwards, float 6s ease-in-out 2.2s infinite; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Stats */
.stats {
  position: relative; z-index: 2;
  max-width: 1160px; margin: -44px auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.stats li {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: var(--r-lg);
  background: var(--card); box-shadow: var(--shadow);
  transition: background-color .4s;
}
.stats b { font: 700 2rem/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; font-family: "Bricolage Grotesque", sans-serif; }
.stats li > span { font-size: .92rem; line-height: 1.3; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { padding: 72px 0 24px; text-align: center; }
.marquee-title { color: var(--muted); font-weight: 500; margin-bottom: 22px; }
.marquee-track {
  display: flex; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-row { display: flex; flex: none; gap: 56px; padding-right: 56px; animation: marquee 34s linear infinite; }
.marquee-row li { font: 700 clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem)/1 "Bricolage Grotesque", sans-serif; letter-spacing: -0.02em; color: var(--dim); white-space: nowrap; transition: color .3s; }
.marquee-track:hover .marquee-row { animation-play-state: paused; }
.marquee-row li:hover { color: var(--fg); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Statement (scroll text reveal) ---------- */
.statement { padding: 96px 0 72px; }
.statement-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.statement-side { color: var(--muted); font-weight: 500; padding-top: 12px; }
.reveal-text { font: 600 clamp(1.7rem, 1.1rem + 2.3vw, 3.1rem)/1.18 var(--display); letter-spacing: var(--track); margin-bottom: 48px; }
:root[lang="ta"] .reveal-text { font-size: clamp(1.35rem, 1rem + 1.6vw, 2.3rem); line-height: 1.45; }
.reveal-text .w { color: var(--dim); transition: color .25s linear; }
.reveal-text .w.on { color: var(--fg); }
.motto { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.motto p { margin: 0; padding: 22px 24px; border-radius: var(--r-lg); background: var(--bg-soft); }
.motto span { display: block; font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); font-weight: 600; }
.motto small { color: var(--muted); font-size: .95rem; }

/* ---------- The name: தென்றல் (gentle southern breeze) ---------- */
.meaning { padding: 0 0 120px; }
.meaning-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
  padding: clamp(36px, 5vw, 72px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.9), transparent 45%),
    linear-gradient(120deg, #E7F4EE 0%, #EEF3FB 45%, #FFF6E2 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
:root[data-theme="dark"] .meaning-card {
  background:
    radial-gradient(circle at 12% 20%, rgba(110,231,160,.10), transparent 45%),
    linear-gradient(120deg, #0F2A2A 0%, #121A44 50%, #2A2412 100%);
}
.breeze { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.bl { fill: none; stroke-linecap: round; stroke-width: 2; stroke-dasharray: 220 900; animation: gust 9s linear infinite; }
.bl-1 { stroke: rgba(27,36,112,.22); }
.bl-2 { stroke: rgba(244,183,60,.55); stroke-width: 1.5; animation-duration: 12s; animation-delay: -4s; }
.bl-3 { stroke: rgba(27,36,112,.16); animation-duration: 11s; animation-delay: -2s; }
.bl-4 { stroke: rgba(34,150,100,.35); stroke-width: 1.5; animation-duration: 14s; animation-delay: -8s; }
:root[data-theme="dark"] .bl-1, :root[data-theme="dark"] .bl-3 { stroke: rgba(255,255,255,.16); }
@keyframes gust { from { stroke-dashoffset: 1120; } to { stroke-dashoffset: -1120; } }
.lf { fill: rgba(34,150,100,.28); stroke: rgba(34,150,100,.55); stroke-width: 1.2; }
.lf-2 { fill: rgba(244,183,60,.35); stroke: rgba(200,137,27,.6); }
:root[data-theme="dark"] .lf { fill: rgba(110,231,160,.18); stroke: rgba(110,231,160,.45); }

.meaning-label { font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.meaning-ta {
  font-family: var(--tamil); font-weight: 700; letter-spacing: 0; line-height: 1.15;
  font-size: clamp(3.4rem, 2rem + 6vw, 7rem);
  background: linear-gradient(100deg, var(--fg) 30%, #1C7A52 60%, var(--gold) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 10s ease-in-out infinite alternate;
  padding-bottom: .05em;
}
:root[data-theme="dark"] .meaning-ta { background-image: linear-gradient(100deg, var(--fg) 30%, #6EE7A0 60%, var(--gold) 90%); }
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.meaning-say { font-family: "Instrument Sans", sans-serif; color: var(--muted); margin: 6px 0 14px; letter-spacing: .01em; }
.meaning-def { font: 600 clamp(1.3rem, 1rem + 1vw, 1.75rem)/1.25 var(--display); letter-spacing: var(--track); margin: 0; }
.meaning-text p { color: var(--fg-2); font-size: 1.1rem; max-width: 32em; }
.meaning-text p:last-child { margin: 0; color: var(--fg); font-weight: 500; }

.wordmark-note { text-align: center; margin: -4px 0 28px; color: rgba(255,255,255,.55); font-size: .95rem; }
.wordmark-note [lang="ta"] { color: var(--gold); font-weight: 600; }

/* ---------- Section heads ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; margin-bottom: 56px; }
.sec-head h2 { max-width: 15em; }
.sec-head-side { max-width: 380px; color: var(--muted); }
.sec-head-side p { margin-bottom: 20px; }
.sec-head-center { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.sec-head-center p { margin: 0; color: var(--muted); max-width: 34em; }

/* ---------- Programmes: stacking cards ---------- */
.programmes { padding: 40px 0 120px; }
.stack { display: grid; gap: 24px; }
.stack-card {
  position: sticky; top: calc(100px + var(--i) * 14px);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px;
  min-height: 460px; padding: 24px 24px 24px 40px;
  border-radius: var(--r-xl);
  background: var(--bg-soft);
  box-shadow: 0 0 0 1px var(--line), 0 -20px 40px -24px rgba(16,22,50,.25);
  transform-origin: 50% 0;
  transition: background-color .4s;
}
.stack-body { display: flex; flex-direction: column; padding: 16px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: auto; }
.tags li { padding: 6px 14px; border-radius: var(--r-pill); background: var(--card); font-size: .88rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.tags .tag-soon { background: var(--btn-bg); color: var(--btn-fg); box-shadow: none; }
.stack-card h3 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); font-weight: 600; letter-spacing: var(--track-tight); line-height: 1; margin: 40px 0 10px; }
:root[lang="ta"] .stack-card h3 { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.9rem); line-height: 1.25; }
.alt-name { color: var(--red-text); font-weight: 600; font-size: 1.1rem; margin-bottom: 16px; }
.stack-card p:not(.alt-name) { color: var(--fg-2); max-width: 30em; }
.exam-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.exam-chips li { font: 600 .9rem/1 var(--body); padding: 9px 14px; border-radius: 10px; background: var(--red-soft); color: var(--red-text); }
.stack-media { margin: 0; border-radius: var(--r-lg); overflow: hidden; min-height: 280px; background: var(--night); }
.stack-media img { width: 100%; height: 100%; object-fit: cover; filter: var(--img-filter); }

/* ---------- Courses (filterable grid) ---------- */
.courses { position: relative; padding: 120px 0; background: var(--bg-soft); border-radius: var(--r-xl) var(--r-xl) 0 0; transition: background-color .4s; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -24px 0 40px; }
.filter {
  font: 500 .95rem/1 var(--body); color: var(--fg-2);
  padding: 12px 18px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.filter:hover { box-shadow: inset 0 0 0 1px var(--fg-2); }
.filter.is-active { background: var(--btn-bg); color: var(--btn-fg); box-shadow: none; }
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.course {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px; border-radius: var(--r-lg); background: var(--card);
  box-shadow: inset 0 0 0 1px transparent;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .4s;
}
:root[data-theme="dark"] .course { box-shadow: inset 0 0 0 1px var(--line); }
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course.is-hidden { display: none; }
.course.is-entering { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.c-top { display: flex; align-items: center; gap: 10px; }
.c-ico { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--bg-soft); color: var(--fg-2); flex: none; stroke-width: 1.8; }
.course[data-cat="gov"] .c-ico { background: rgba(27,36,112,.08); color: var(--navy); }
.course[data-cat="entrance"] .c-ico { background: var(--red-soft); color: var(--red-text); }
.course[data-cat="school"] .c-ico { background: rgba(244,183,60,.16); color: #A86B00; }
.course[data-cat="skills"] .c-ico { background: rgba(34,150,100,.12); color: #1C7A52; }
:root[data-theme="dark"] .course[data-cat="gov"] .c-ico { background: rgba(142,162,255,.14); color: #A9B8FF; }
:root[data-theme="dark"] .course[data-cat="school"] .c-ico { color: var(--gold); }
:root[data-theme="dark"] .course[data-cat="skills"] .c-ico { color: #6EE7A0; }
.c-cat { font-size: .82rem; color: var(--muted); font-weight: 500; }
.course h3 { font-size: 1.2rem; margin-top: 10px; }
.course p { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.c-mode { margin-top: auto; align-self: flex-start; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); background: var(--bg-soft); color: var(--fg-2); }
.c-mode.soon { background: var(--soon-bg); color: var(--soon-fg); }
.course-feature { grid-column: span 2; background: var(--panel); color: #FFFFFF; }
.course-feature h3 { color: #FFFFFF; }
.course-feature .c-ico { background: rgba(244,183,60,.18); color: var(--gold); }
.course-feature .c-cat { color: var(--gold); }
.course-feature p { color: rgba(255,255,255,.75); max-width: 30em; }
.course-feature .c-mode { background: rgba(255,255,255,.12); color: #FFFFFF; }

/* ---------- Online (always dark) ---------- */
.online { background: var(--night); color: #FFFFFF; padding: 120px 0; position: relative; overflow: hidden; }
.online::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(244,183,60,.16), transparent 65%); top: -280px; right: -200px; pointer-events: none; }
.online h2, .online h3 { color: #FFFFFF; }
.online-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-bottom: 56px; position: relative; }
.online-lede { color: rgba(255,255,255,.72); font-size: 1.1rem; max-width: 32em; margin: 20px 0 0; }
.online-art { width: 100%; max-width: 520px; justify-self: end; }
.soon-pill { display: inline-flex; align-items: center; padding: 8px 16px 8px 8px; border-radius: var(--r-pill); background: rgba(255,255,255,.08); font-size: .92rem; font-weight: 500; margin-bottom: 20px; }
.online-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; position: relative; }
.batch-list { border-top: 1px solid rgba(255,255,255,.14); }
.batch-list li {
  display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 16px;
  padding: 22px 4px; border-bottom: 1px solid rgba(255,255,255,.14);
  transition: background-color .3s, padding .4s var(--ease);
}
.batch-list li:hover { background: rgba(255,255,255,.04); padding-left: 14px; }
.b-name { font: 600 clamp(1.15rem, 1rem + .6vw, 1.5rem)/1.2 var(--display); letter-spacing: -0.01em; }
:root[lang="ta"] .b-name { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); letter-spacing: 0; }
.b-tag { color: rgba(255,255,255,.6); font-size: .95rem; }
.b-state { font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); white-space: nowrap; }

/* ---------- Forms ---------- */
.form { padding: 32px; border-radius: var(--r-xl); }
.form h3 { font-size: 1.6rem; margin-bottom: 22px; }
.form-card { background: var(--card); color: var(--fg); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.form-dark { background: rgba(255,255,255,.06); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label, .field .label { font-size: .9rem; font-weight: 600; }
.opt-label { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: 500 1rem var(--body); color: var(--fg);
  background-color: var(--bg-soft); border: 1px solid transparent; border-radius: 14px;
  transition: border-color .2s, background-color .2s;
  appearance: none; -webkit-appearance: none;
}
.field input::placeholder { color: var(--muted); opacity: .8; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A90AB' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--fg); background-color: var(--card); }
.form-dark .field input, .form-dark .field select { background-color: rgba(255,255,255,.08); color: #FFFFFF; }
.form-dark .field input:focus, .form-dark .field select:focus { border-color: var(--gold); background-color: rgba(255,255,255,.12); }
.form-dark .field select option { color: #101632; background: #FFFFFF; }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.form-dark .field.has-error input, .form-dark .field.has-error select { border-color: #FF8A80; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-soft); }
.form-dark .seg { background: rgba(255,255,255,.08); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 10px 8px; border-radius: 10px; font-weight: 600; font-size: .92rem; transition: background-color .25s, color .25s; }
.seg input:checked + span { background: #FFFFFF; color: #101632; box-shadow: 0 1px 3px rgba(16,22,50,.15); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 1px; }
.form .btn-block { margin-top: 8px; }
.form[aria-busy="true"] .btn-block { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: #16A34A; }
.form-dark .form-status.ok, :root[data-theme="dark"] .form-status.ok { color: #6EE7A0; }
.form-status.err { color: var(--red-text); }
.form-dark .form-status.err { color: #FF8A80; }

/* ---------- Steps ---------- */
.steps { padding: 120px 0; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step h3 { font-size: 1.35rem; margin: 6px 0 8px; }
.step p { color: var(--muted); margin: 0; }
.step-n { font-size: .88rem; color: var(--muted); font-weight: 500; }
.step-visual {
  height: 240px; margin-bottom: 22px; border-radius: var(--r-lg);
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, var(--card) 0%, var(--bg-soft) 70%);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.mock { background: var(--card); color: var(--fg); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; transition: transform .6s var(--ease); }
.step:hover .mock { transform: translateY(-6px) rotate(-1deg); }
.mock-call { display: flex; align-items: center; gap: 14px; padding-right: 26px; }
.mock-call b { display: block; font-size: 1.1rem; font-family: "Bricolage Grotesque", sans-serif; }
.mock-call small { color: var(--muted); }
.mock-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soon-bg); color: var(--soon-fg); }
.mock-ico svg { width: 20px; height: 20px; }
.mock-pick { display: grid; gap: 8px; width: 230px; }
.opt { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--bg-soft); font-size: .92rem; font-weight: 500; }
.opt svg { width: 16px; height: 16px; stroke-width: 3; }
.opt.is-on { background: var(--btn-bg); color: var(--btn-fg); }
.mock-progress { width: 230px; display: grid; gap: 10px; }
.mock-progress small { color: var(--muted); }
.bar { height: 8px; border-radius: 8px; background: var(--bg-soft); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width 1.6s var(--ease) .3s; }
.step.is-in .bar i { width: 72%; }

/* ---------- Faculty ---------- */
.faculty { position: relative; padding: 120px 0; background: var(--bg-soft); overflow: hidden; transition: background-color .4s; }
.faculty .wrap { position: relative; }
.faculty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1040px; margin: 0 auto; }
.mentor {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 24px 30px; border-radius: var(--r-xl); background: var(--card);
  text-decoration: none; color: inherit;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s;
}
:root[data-theme="dark"] .mentor { box-shadow: inset 0 0 0 1px var(--line); }
.mentor:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.arch { width: 100%; max-width: 230px; aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; overflow: hidden; margin-bottom: 22px; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .8s var(--ease); filter: var(--img-filter); }
.mentor:hover .arch img { transform: scale(1.05); }
.arch-gold { background: var(--cream); }
.arch-gold img { object-position: 38% 10%; }
.arch-mint { background: var(--mint); }
.arch-empty { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--bg-soft) 0 10px, var(--card) 10px 20px); box-shadow: inset 0 0 0 2px var(--line); }
.arch-empty svg { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); stroke-width: 2.4; transition: transform .5s var(--ease); }
.mentor-open:hover .arch-empty svg { transform: rotate(90deg); }
.mentor h3 { font-size: 1.4rem; }
.role { color: var(--muted); font-size: .95rem; margin: 4px 0 16px; }
.skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.skills li { padding: 6px 12px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.mentor-open .text-link { margin-top: auto; }
/* Founder card: wide, photo beside details */
.mentor-lead { grid-column: span 2; display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 36px; align-items: center; text-align: left; padding: 28px 36px 28px 28px; }
.mentor-lead .arch { max-width: none; margin: 0; border-radius: var(--r-lg); aspect-ratio: 4 / 5; box-shadow: 0 18px 40px -18px rgba(16,22,50,.35); }
.mentor-lead .arch img { object-position: 36% 12%; }
/* Hiring card: round dashed placeholder instead of an arch */
.mentor-open { justify-content: center; }
.mentor-open .arch { max-width: 168px; aspect-ratio: 1; border-radius: 50%; margin-bottom: 26px; background: var(--bg-soft); box-shadow: none; border: 2px dashed var(--line); }
:root[data-theme="dark"] .mentor-open .arch { border-color: #39427A; }
.mentor-open .text-link { margin-top: 20px; }
.mentor-info { display: flex; flex-direction: column; align-items: flex-start; }
.mentor-badge { display: inline-block; padding: 6px 14px; border-radius: var(--r-pill); background: var(--gold); color: #101632; font-weight: 700; font-size: .85rem; margin-bottom: 14px; }
.mentor-lead h3 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); letter-spacing: var(--track-tight); }
.mentor-lead .alt-name { margin: 4px 0 6px; font-size: 1rem; }
.mentor-lead .role { margin: 0 0 14px; }
.mentor-bio { color: var(--fg-2); margin: 0 0 20px; max-width: 30em; }
.mentor-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-bottom: 18px; }
.mentor-facts li { padding: 14px; border-radius: var(--r-md); background: var(--bg-soft); display: grid; gap: 4px; }
.mentor-facts b { font: 700 1.6rem/1 "Bricolage Grotesque", sans-serif; letter-spacing: -0.02em; }
.mentor-facts span { font-size: .85rem; line-height: 1.3; color: var(--muted); }
.mentor-lead .skills { justify-content: flex-start; }
.mentor-social { margin-top: 14px; }

.award {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 48px auto 0; max-width: 1040px;
  display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: center;
  padding: 48px 56px; border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 85% 30%, rgba(244,183,60,.28), transparent 45%),
    linear-gradient(140deg, #1A2254 0%, #0B1030 70%);
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(244,183,60,.18);
}
.award-year {
  position: absolute; z-index: -1; left: -10px; bottom: -42px;
  font: 800 clamp(7rem, 4rem + 12vw, 13rem)/1 "Bricolage Grotesque", sans-serif; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(244,183,60,.16);
  user-select: none; pointer-events: none;
}
.award-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: var(--r-pill); background: var(--gold); color: #101632; font-weight: 700; font-size: .88rem; margin-bottom: 20px; }
.award-badge svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.award h3 { color: #FFFFFF; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); letter-spacing: var(--track-tight); margin-bottom: 8px; max-width: 14em; }
.award .alt-name { color: var(--gold); margin-bottom: 14px; }
.award-lede { color: rgba(255,255,255,.8); font-size: 1.08rem; max-width: 34em; margin-bottom: 28px; }
.award-facts { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.14); max-width: 34em; }
.award-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.award-facts dt { color: rgba(255,255,255,.55); font-size: .9rem; }
.award-facts dd { margin: 0; font-weight: 500; }

.award-poster {
  position: relative; display: block; width: 100%; padding: 10px; border: 0; cursor: zoom-in;
  border-radius: 22px; background: linear-gradient(160deg, #FFE29A, #C8891B);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1);
  transform: rotate(3deg); transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.award-poster:hover, .award-poster:focus-visible { transform: rotate(0) translateY(-6px) scale(1.02); box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 60px -10px rgba(244,183,60,.5); }
.award-poster img { width: 100%; height: auto; border-radius: 14px; }
.award-zoom {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 8px);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 14px; border-radius: var(--r-pill); background: rgba(11,16,48,.82); color: #FFFFFF;
  font: 600 .85rem/1 var(--body); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .35s, transform .45s var(--ease);
}
.award-zoom svg { width: 15px; height: 15px; }
.award-poster:hover .award-zoom, .award-poster:focus-visible .award-zoom { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .award-zoom { opacity: 1; transform: translate(-50%, 0); } }

/* Second award card: poster on the left, tilted the other way */
.award + .lightbox + .award { margin-top: 24px; }
.award-flip { grid-template-columns: 300px 1fr; }
.award-flip .award-poster { order: -1; transform: rotate(-3deg); }
.award-flip .award-poster:hover, .award-flip .award-poster:focus-visible { transform: rotate(0) translateY(-6px) scale(1.02); }
.award-flip .award-year { left: auto; right: -10px; }

/* Award photos from the stage */
.moments { max-width: 1040px; margin: 48px auto 0; }
.moments-title { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.7rem); letter-spacing: var(--track-tight); margin-bottom: 16px; }
.moments-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 12px; }
.moments figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-lg); }
.moments img { display: block; width: 100%; height: 380px; object-fit: cover; filter: var(--img-filter); }
.moments figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 7px 12px; border-radius: var(--r-pill);
  background: rgba(11,16,48,.78); color: #FFFFFF; font-size: .82rem; font-weight: 600;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* Poster viewer */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 640px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5,8,24,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox[open] { animation: lbIn .45s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.94) translateY(12px); } }
.lightbox img { width: 100%; max-height: 92vh; object-fit: contain; border-radius: 16px; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #FFFFFF; color: #101632; box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.lightbox-close svg { width: 20px; height: 20px; }

/* ---------- Careers ---------- */
.careers { padding: 120px 0; }
.careers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.careers-lede { color: var(--muted); font-size: 1.1rem; margin: 20px 0 28px; max-width: 30em; }
.careers-art { width: 100%; border-radius: var(--r-lg); margin-bottom: 28px; }
.roles { border-top: 1px solid var(--line); }
.roles li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.roles h3 { font-size: 1.15rem; margin-bottom: 4px; }
.roles p { margin: 0; color: var(--muted); font-size: .95rem; }
.r-mode { flex: none; font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); background: var(--bg-soft); }
.careers .form { position: sticky; top: 100px; }

/* ---------- Visit ---------- */
.visit { padding: 120px 0; background: var(--bg-soft); border-radius: var(--r-xl) var(--r-xl) 0 0; transition: background-color .4s; }
.visit-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
.centres { display: grid; gap: 12px; align-content: start; }
.centre { padding: 26px 28px; border-radius: var(--r-lg); background: var(--card); }
.centre-tag { display: inline-block; font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: var(--r-pill); background: var(--red-soft); color: var(--red-text); margin-bottom: 14px; }
.centre h3 { font-size: 1.35rem; margin-bottom: 6px; }
.centre address { font-style: normal; color: var(--fg-2); }
.contact { display: grid; padding: 10px 28px; border-radius: var(--r-lg); background: var(--card); margin: 0; }
.contact div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact div:last-child { border-bottom: 0; }
.contact dt { color: var(--muted); font-weight: 500; }
.contact dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; overflow-wrap: anywhere; }
.contact a { font-weight: 600; text-decoration: none; }
.contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.map { border-radius: var(--r-lg); overflow: hidden; min-height: 420px; background: var(--card); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: var(--map-filter); }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 12px; }
.gallery > picture { display: block; } /* each photo is one grid cell, not split into <source> + <img> */
.gallery img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--r-lg); filter: var(--img-filter); }

/* ---------- Footer (always dark) ---------- */
.footer { background: var(--night); color: #FFFFFF; padding: 96px 0 28px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-cta h2 { color: #FFFFFF; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); max-width: 11em; margin-bottom: 28px; }
:root[lang="ta"] .footer-cta h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer-links h3 { font-size: .9rem; color: rgba(255,255,255,.5); font-family: var(--body); font-weight: 500; margin-bottom: 14px; letter-spacing: 0; }
.footer-links a { display: block; padding: 5px 0; text-decoration: none; color: rgba(255,255,255,.85); }
.footer-links a:hover { color: var(--gold); }
.footer-breeze { position: relative; isolation: isolate; margin: 72px 0 20px; }
.breeze-footer { position: absolute; z-index: 1; left: -4%; top: -18%; width: 108%; height: 136%; pointer-events: none; }
.footer .bl-1, .footer .bl-3 { stroke: rgba(255,255,255,.22); }
.footer .bl-2 { stroke: rgba(244,183,60,.6); }
.footer .bl-4 { stroke: rgba(110,231,160,.4); }
.footer .lf { fill: rgba(110,231,160,.22); stroke: rgba(110,231,160,.6); }
.footer .lf-2 { fill: rgba(244,183,60,.3); stroke: rgba(244,183,60,.7); }
.wordmark {
  position: relative; margin: 0; text-align: center;
  font: 800 clamp(4.5rem, 1rem + 19vw, 19rem)/.8 "Bricolage Grotesque", sans-serif; letter-spacing: -0.06em;
  /* top layer: a soft band of light that drifts across like a breeze; bottom layer: the fade */
  background-image:
    linear-gradient(100deg, transparent 35%, rgba(255,226,154,.55) 48%, rgba(205,235,223,.45) 54%, transparent 66%),
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.06));
  background-size: 250% 100%, 100% 100%;
  background-position: 120% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: windSweep 9s ease-in-out infinite;
  user-select: none;
}
@keyframes windSweep { 0% { background-position: 120% 0, 0 0; } 55%, 100% { background-position: -20% 0, 0 0; } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: rgba(255,255,255,.6); }
.footer-bottom p { margin: 0; }

/* ---------- Floating call button (mobile) ---------- */
.fab-call {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--red); color: #FFFFFF; box-shadow: 0 12px 28px -8px rgba(210,43,43,.6);
}
.fab-call svg { width: 24px; height: 24px; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Hide English text for a moment on Tamil page loads, until the translation is applied */
:root.js[lang="ta"]:not(.i18n-ready) body { opacity: 0; }
body { transition: opacity .2s, background-color .4s var(--ease), color .4s var(--ease); }

/* Smooth cross-fade when switching language */
.i18n-fade [data-i18n]:not([data-hero]) { animation: i18nFade .45s var(--ease); }
@keyframes i18nFade { from { opacity: 0; filter: blur(4px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .chip-online { display: none; }
}
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .statement-grid { grid-template-columns: 1fr; gap: 12px; }
  .meaning-card { grid-template-columns: 1fr; gap: 24px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .sec-head-center { align-items: center; }
  .stack-card { grid-template-columns: 1fr; padding: 24px; min-height: 0; }
  .stack-card h3 { margin-top: 28px; }
  .stack-media { min-height: 0; width: 100%; aspect-ratio: 16 / 9; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .online-intro, .online-grid, .careers-grid, .visit-grid { grid-template-columns: 1fr; }
  .online-art { justify-self: center; max-width: 440px; }
  .careers .form { position: static; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .mentor-lead { grid-template-columns: 220px 1fr; gap: 24px; padding: 24px; }
  .award { grid-template-columns: 1fr 240px; gap: 36px; padding: 40px; }
  .award-flip { grid-template-columns: 240px 1fr; }
  .moments img { height: 300px; }
  .step-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav { top: 10px; }
  .nav-pill { gap: 6px; padding: 6px 6px 6px 8px; }
  .nav-brand { gap: 8px; font-size: 1.05rem; }
  .nav-brand img { width: 32px; height: 32px; }
  .lt-opt { min-width: 38px; padding: 8px 7px; }
  .icon-btn, .nav-toggle { width: 38px; height: 38px; }
  .nav-toggle span { left: 11px; right: 11px; }
  .nav-toggle span:first-child { top: 15px; }
  .nav-toggle span:last-child { top: 21px; }
  .hero { padding-top: 80px; padding-left: 12px; padding-right: 12px; }
  .hero-frame { min-height: 620px; border-radius: var(--r-lg); }
  .hero-shade { background: linear-gradient(0deg, rgba(11,16,48,.94) 0%, rgba(11,16,48,.72) 45%, rgba(11,16,48,.25) 72%, rgba(11,16,48,0) 100%); }
  .hero-bg { object-position: 37% 30%; }
  .hero-content { padding: 24px 20px 72px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-chip, .tag-place { display: none; }
  .hero-tag { font-size: .9rem; margin-bottom: 18px; }
  .stats { margin-top: -40px; gap: 8px; padding: 0 12px; }
  .stats li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; }
  .stats b { font-size: 1.7rem; }
  .marquee { padding-top: 56px; }
  .statement { padding: 64px 0 80px; }
  .motto { grid-template-columns: 1fr; }
  .meaning { padding-bottom: 80px; }
  .meaning-card { padding: 32px 22px; border-radius: var(--r-lg); }
  .programmes, .courses, .online, .steps, .faculty, .careers, .visit { padding-top: 80px; padding-bottom: 80px; }
  .sec-head { margin-bottom: 36px; }
  .stack-card { position: relative; top: 0; padding: 16px; }
  .stack-body { padding: 8px 4px 4px; }
  .course-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .course { padding: 16px 14px; border-radius: var(--r-md); }
  .c-ico { width: 30px; height: 30px; padding: 6px; border-radius: 9px; }
  .c-top .c-cat { display: none; }
  .course h3 { font-size: 1.02rem; margin-top: 8px; }
  :root[lang="ta"] .course h3 { font-size: .98rem; }
  .course p { display: none; }
  .c-mode { margin-top: 12px; font-size: .72rem; line-height: 1.3; padding: 5px 9px; }
  .course-feature { grid-column: span 2; }
  .course-feature .c-top .c-cat { display: inline; }
  .course-feature p { display: block; font-size: .9rem; margin: 0; }
  .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: -8px calc(var(--gutter) * -1) 28px; padding: 2px var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .online-intro { margin-bottom: 32px; gap: 28px; }
  .batch-list li { grid-template-columns: 1fr auto; }
  .b-tag { display: none; }
  .form { padding: 22px; border-radius: var(--r-lg); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .faculty-grid { grid-template-columns: 1fr; max-width: 420px; }
  .mentor-lead { grid-column: auto; grid-template-columns: 1fr; text-align: center; padding: 24px 20px; gap: 20px; }
  .mentor-lead .arch { max-width: 280px; width: 100%; margin: 0 auto; }
  .mentor-open { padding: 28px 20px; }
  .mentor-open .arch { max-width: 120px; margin-bottom: 16px; }
  .mentor-open .arch-empty svg { width: 48px; height: 48px; padding: 12px; }
  .mentor-open .text-link { margin-top: 12px; }
  .mentor-info { align-items: center; }
  .mentor-lead .skills { justify-content: center; }
  .mentor-facts li { padding: 12px 8px; text-align: center; }
  .mentor-facts b { font-size: 1.35rem; }
  .award, .award-flip { grid-template-columns: 1fr; padding: 32px 20px 28px; gap: 32px; }
  .award-poster { order: -1; max-width: 230px; margin: 0 auto; transform: rotate(-2deg); }
  .award-facts div { grid-template-columns: 1fr; gap: 2px; }
  .award-year { bottom: -24px; }
  .lightbox-close { top: 8px; right: 8px; }
  .roles li { flex-direction: column; align-items: flex-start; gap: 10px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 200px; }
  .moments-grid { grid-template-columns: 1fr 1fr; }
  .moments figure:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .moments img { height: 240px; }
  .moments figcaption { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 6px 10px; font-size: .74rem; }
  .footer-links { gap: 40px; }
  .footer-breeze { margin-top: 56px; }
  .breeze-footer { top: -70%; height: 240%; }
  .fab-call { display: grid; }
}
@media (max-width: 360px) {
  .nav-brand span { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-hero] { opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .reveal-text .w { color: var(--fg); }
  .marquee-row { animation: none; }
  .marquee-track { overflow-x: auto; }
}
