/* ============================================================
   TNSMJ — Design tokens · Light Editorial Heritage
   Palette grounded in logo (deep green + gold) & subject
   (Muharram crimson, manuscript parchment, ink).
   ============================================================ */

:root {
  /* --- Color --- */
  --parchment: #F7F3EA;
  --parchment-deep: #EFE8D6;
  --ink: #151812;
  --green: #1E4D38;
  --green-deep: #143526;
  --green-soft: #2E6B4F;
  --crimson: #7A1F1F;
  --crimson-deep: #5A1212;
  --gold: #C9971C;
  --gold-soft: #E8C56A;
  --gold-pale: #F3E3B3;
  --stone: #6B6659;
  --stone-light: #9A9486;
  --white: #FFFFFF;

  /* --- Type --- */
  --font-display: "Playfair Display", "Noto Serif Tamil", Georgia, serif;
  --font-body: "Inter Tight", "Noto Sans Tamil", system-ui, sans-serif;
  --font-tamil: "Noto Serif Tamil", "Noto Sans Tamil", serif;
  --font-arabic: "Amiri", "Noto Serif Arabic", serif;

  /* Type scale (1.25) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: clamp(2.75rem, 6vw, 5rem);

  /* --- Spacing (8px rhythm) --- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-6: 1.5rem;   --sp-8: 2rem;     --sp-10: 2.5rem;  --sp-12: 3rem;    --sp-16: 4rem;
  --sp-24: 6rem;    --sp-32: 8rem;

  --container: 72rem;
  --measure: 38rem;

  /* --- Effects --- */
  --rule: 1px solid rgba(21, 24, 18, 0.15);
  --rule-gold: 1px solid rgba(201, 151, 28, 0.45);
  --shadow-soft: 0 12px 40px rgba(21, 24, 18, 0.10);
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --glass-blur: blur(14px);

  /* Mihrab (pointed-arch) image mask */
  --arch-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 100 V62 C7 34 28 9 50 0 C72 9 93 34 100 62 V100 Z'/%3E%3C/svg%3E");
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}
::selection { background: rgba(201, 151, 28, 0.30); }

/* ---------- Utilities ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--sp-4); top: -100%;
  background: var(--green); color: var(--white);
  padding: var(--sp-2) var(--sp-4); z-index: 100;
}
.skip-link:focus { top: var(--sp-2); }

/* ---------- Bilingual type ---------- */
.tamil {
  font-family: var(--font-tamil);
  line-height: 1.5;
}
.arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  line-height: 1.9;
}

/* Display headings — editorial serif */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}
.display-ta {
  font-family: var(--font-tamil);
  font-weight: 600;
  line-height: 1.3;
}

/* Eyebrow — small caps label above headings */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--crimson);
  flex: none;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--gold::before { background: var(--gold); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 2rem; height: 1px; background: currentColor; flex: none;
}

/* Star ornament divider (8-point Islamic star) */
.star-ornament {
  width: 1.25rem; height: 1.25rem;
  margin: var(--sp-8) auto;
  color: var(--gold);
  opacity: 0.9;
}

/* Arch media — clean rounded frame (REFIT: replaced pointed mask) */
.arch {
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(140,28,43,.08);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 2.75rem;
  padding: 0.7rem 1.7rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform var(--dur-base) var(--ease-glide),
    box-shadow var(--dur-base) var(--ease-glide);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(21, 24, 18, 0.16);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover { background: var(--green-deep); }
.btn--crimson { background: var(--crimson); color: var(--white); }
.btn--crimson:hover { background: var(--crimson-deep); }
.btn--gold {
  background: var(--gold);
  color: var(--ink);
}
.btn--gold:hover { background: var(--gold-soft); }
.btn--outline {
  border-color: rgba(21, 24, 18, 0.4);
  color: var(--ink);
  background: transparent;
}
.btn--outline:hover { border-color: var(--ink); background: rgba(21, 24, 18, 0.04); }
.btn--outline-light {
  border-color: rgba(247, 243, 234, 0.55);
  color: var(--parchment);
  background: transparent;
}
.btn--outline-light:hover { border-color: var(--parchment); background: rgba(247, 243, 234, 0.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--rule);
  transition: box-shadow var(--dur-base) var(--ease-glide);
}
.site-header.is-scrolled { box-shadow: 0 10px 32px rgba(21, 24, 18, 0.10); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
}
.brand__logo {
  width: 2.6rem; height: 2.6rem;
  object-fit: contain;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.15;
}
.brand__name-ta {
  display: block;
  font-family: var(--font-tamil);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--stone);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.site-nav a:not(.btn) {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 0.35rem 0;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-glide);
}
.site-nav a:not(.btn):hover { color: var(--crimson); }
.site-nav a:not(.btn):hover::after,
.site-nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--crimson); font-weight: 600; }
.nav-cta { margin-left: var(--sp-2); }
.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  background: transparent;
  border: 1px solid rgba(21, 24, 18, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.nav-toggle:hover { background: rgba(21, 24, 18, 0.05); border-color: var(--ink); }
.nav-toggle::before {
  content: "";
  width: 1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}
@media (max-width: 52rem) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(247, 243, 234, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--rule);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: var(--sp-3) var(--sp-6) var(--sp-5);
    transform-origin: top center;
    animation: navdrop var(--dur-base) var(--ease-glide) both;
  }
  @keyframes navdrop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.8rem 0; border-bottom: var(--rule); }
  .site-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: var(--sp-3) 0 0; justify-content: center; }
}
html[data-theme="night"] .site-nav {
  background: rgba(11, 18, 14, 0.97);
}

/* ---------- Sections ---------- */
.section { padding: var(--sp-16) 0; }
.section--tight { padding: var(--sp-12) 0; }
.section--deep-green { background: var(--green-deep); color: var(--parchment); }
.section--crimson { background: var(--crimson-deep); color: var(--parchment); }
.section--parchment-deep { background: var(--parchment-deep); }
.section-head { max-width: var(--measure); margin-bottom: var(--sp-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .display { font-size: var(--text-5xl); }
.section-head .tamil-sub {
  margin: var(--sp-3) 0 0;
  font-size: var(--text-lg);
  color: var(--stone);
}
.section--deep-green .tamil-sub,
.section--crimson .tamil-sub { color: rgba(247, 243, 234, 0.75); }

/* Reveal-on-scroll (legacy, unused in v2 — kept for safety) */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
}

/* Inline-style-free two-column content rows (responsive version) */
.split-inline {
  display: grid;
  grid-template-columns: var(--split-cols, 1fr 1fr);
  gap: var(--sp-16);
  align-items: center;
}
.split-inline--wide-left { --split-cols: 1.1fr 0.9fr; }
.split-inline--wide-right { --split-cols: 0.95fr 1.05fr; }
@media (max-width: 900px) {
  .split-inline { grid-template-columns: 1fr !important; gap: var(--sp-10); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   V2 MOTION — one orchestrated moment per page.
   Tokens: transform/opacity only, decelerate curve, no bounce.
   ============================================================ */
:root {
  --ease-glide: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur-base: 320ms;
  --dur-slow: 700ms;
}

/* Gold thread scroll progress (site-wide, one element) */
.progress-thread {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index: 200;
  pointer-events: none;
}

/* Cinematic moment 1 — hero Ken Burns */
.hero-media img,
.hero-media picture,
.hero-media picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 26s var(--ease-glide) infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

/* Cinematic moment 1b — gold light sweep on hero title, once on load */
.sweep-title {
  background-image: linear-gradient(
    105deg,
    var(--ink) 0%,
    var(--ink) 38%,
    var(--gold) 50%,
    var(--ink) 62%,
    var(--ink) 100%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldsweep 2.1s var(--ease-glide) 0.35s 1 both;
}
@keyframes goldsweep {
  from { background-position: 120% 0; }
  to   { background-position: -20% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sweep-title { animation: none; color: var(--ink); background: none; -webkit-text-fill-color: var(--ink); }
  .hero-media img { animation: none; }
}

/* Quiet hover — one effect: gold edge + 2px lift */
.card,
.video-tile {
  transition: border-color var(--dur-fast) ease, transform var(--dur-base) var(--ease-glide);
}
.card:hover,
.video-tile:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(21, 24, 18, 0.10), 0 24px 56px rgba(21, 24, 18, 0.10);
}
@media (prefers-reduced-motion: reduce) {
  .card:hover, .video-tile:hover { transform: none; }
}

/* Prayer times strip */
.prayer-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-2);
  text-align: center;
}
.prayer-strip .prayer {
  padding: var(--sp-4) var(--sp-2);
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color var(--dur-fast) ease, transform var(--dur-base) var(--ease-glide);
}
.prayer-strip .prayer:hover { border-color: var(--gold); transform: translateY(-2px); }
.prayer-strip .prayer.is-next { border-color: var(--gold); background: var(--gold-pale); }
.prayer-strip .prayer .name { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.prayer-strip .prayer .time { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.prayer-strip .prayer .badge { font-size: 10px; color: var(--gold); font-weight: 600; }
@media (max-width: 700px) { .prayer-strip { grid-template-columns: repeat(3, 1fr); } }

/* Impact thermometer */
.thermo { max-width: 46rem; margin: 0 auto; text-align: center; }
.thermo__rail {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--parchment-deep);
  border: var(--rule);
  overflow: hidden;
}
.thermo__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width 1.6s var(--ease-glide);
}
.thermo__labels { display: flex; justify-content: space-between; margin-top: var(--sp-2); font-size: var(--text-sm); color: var(--stone); }
.thermo__amount { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 600; color: var(--green); }

/* Gallery tabs */
.tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-8); }
.tabs button {
  font: inherit;
  font-size: var(--text-sm);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid rgba(21, 24, 18, 0.25);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 999px;
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease;
}
html[data-theme="night"] .tabs button { border-color: rgba(240, 233, 216, 0.3); }
.tabs button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-pale); }
.gallery-grid button[hidden] { display: none; }

/* Video facade (click-to-load YouTube — keeps page fast) */
.video-facade { position: relative; cursor: pointer; }
.video-facade::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--white);
  background: rgba(21, 24, 18, 0.28);
  transition: background var(--dur-fast) ease;
}
.video-facade:hover::after { background: rgba(21, 24, 18, 0.15); }
.video-facade iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* Wall of fame */
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: var(--sp-6); }
.wall-card { text-align: center; }
.wall-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold-pale);
  margin-bottom: var(--sp-3);
}
.wall-card .name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); }
.wall-card .meta { font-size: var(--text-sm); color: var(--stone); }

/* Donation amount anchors */
.amount-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-6) 0; }
.amount-chip {
  font: inherit;
  text-align: center;
  padding: var(--sp-3) var(--sp-4);
  min-width: 9.5rem;
  border: 1px solid rgba(21, 24, 18, 0.25);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, transform var(--dur-base) var(--ease-glide), box-shadow var(--dur-base) var(--ease-glide);
}
html[data-theme="night"] .amount-chip { border-color: rgba(240, 233, 216, 0.3); background: var(--white); }
.amount-chip:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21, 24, 18, 0.10); }
.amount-chip strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); }
.amount-chip span { font-size: var(--text-xs); color: var(--stone); }

/* QR panel */
.qr-panel { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-8); align-items: center; }
@media (max-width: 700px) { .qr-panel { grid-template-columns: 1fr; text-align: center; } }
.qr-panel .qr-frame {
  padding: var(--sp-4);
  background: var(--white);
  border: var(--rule-gold);
  border-radius: var(--radius);
  width: fit-content;
  margin: 0 auto;
}
.qr-panel .qr-frame img { display: block; width: 220px; height: 220px; }
.qr-panel .org-name { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; }

/* Events list */
.event-row {
  display: flex;
  gap: var(--sp-6);
  align-items: baseline;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: var(--rule);
  border-radius: var(--radius);
  transition: background var(--dur-fast) ease;
}
.event-row:hover { background: rgba(201, 151, 28, 0.07); }
.event-row .date { font-family: var(--font-display); font-size: var(--text-xl); color: var(--crimson); min-width: 8.5rem; }
.event-row .ics { font-size: var(--text-sm); color: var(--gold); cursor: pointer; background: none; border: 0; font-family: inherit; padding: 0; }

/* Theme preview pill (?preview=1 — client demo only) */
.theme-pill {
  position: fixed;
  bottom: var(--sp-4);
  right: var(--sp-4);
  display: flex;
  gap: 6px;
  padding: 8px;
  background: rgba(21, 24, 18, 0.92);
  border-radius: 999px;
  z-index: 160;
  box-shadow: var(--shadow-soft);
}
.theme-pill a {
  font-size: var(--text-xs);
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #F7F3EA;
}
.theme-pill a.is-active { background: var(--gold); color: #151812; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--sp-16) 0 var(--sp-12);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, rgba(201, 151, 28, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 45% at 0% 100%, rgba(30, 77, 56, 0.10), transparent 60%),
    var(--parchment);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-16);
  align-items: center;
}
.hero__kicker {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--sp-4);
}
.hero__title-en {
  font-size: var(--text-7xl);
  margin: 0;
}
.hero__title-ta {
  font-size: var(--text-2xl);
  color: var(--green);
  margin: var(--sp-3) 0 0;
}
.hero__tagline {
  margin: var(--sp-6) 0 0;
  font-size: var(--text-lg);
  color: var(--stone);
  max-width: 30rem;
}
.hero__tagline strong { color: var(--crimson); font-weight: 600; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}
.hero__figure {
  position: relative;
  margin: 0;
}
.hero__img-frame {
  aspect-ratio: 3 / 4;
  max-height: 34rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.hero__img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__caption {
  margin-top: var(--sp-3);
  text-align: center;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}
@media (max-width: 56rem) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .hero__figure { max-width: 24rem; margin-inline: auto; }
  .hero__img-frame { aspect-ratio: 3 / 3.6; }
}

/* ---------- Bismillah band ---------- */
.bismillah {
  text-align: center;
  padding: var(--sp-16) 0;
}
.bismillah .arabic {
  font-size: var(--text-4xl);
  color: var(--gold-soft);
  margin: 0;
}
.bismillah__translation {
  margin: var(--sp-4) auto 0;
  max-width: 32rem;
  color: rgba(247, 243, 234, 0.85);
  font-size: var(--text-sm);
}
.bismillah__verse {
  margin: var(--sp-8) auto 0;
  max-width: 36rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
}
.bismillah__cite {
  display: block;
  margin-top: var(--sp-2);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- Impact numbers ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8) var(--sp-6);
}
.number__value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--crimson);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.number__label {
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--stone);
}
.number__label .tamil { display: block; font-size: var(--text-xs); color: var(--stone-light); }
@media (max-width: 48rem) { .numbers { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Cards / lists ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
@media (max-width: 56rem) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: 0 1px 2px rgba(21, 24, 18, 0.04), 0 16px 40px rgba(21, 24, 18, 0.06);
}
.card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--sp-2);
}
.card h3 .tamil {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--stone);
  margin-top: 0.2rem;
}
.card p { margin: 0; color: var(--stone); font-size: var(--text-sm); }
.card__stat {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--green);
  margin-bottom: var(--sp-3);
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--gold); }
.timeline li { position: relative; padding: 0 0 var(--sp-8) var(--sp-8); }
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.4rem; top: 0.4rem;
  width: 0.7rem; height: 0.7rem;
  background: var(--gold);
  transform: rotate(45deg);
}
.timeline h3 { font-family: var(--font-display); font-size: var(--text-lg); margin: 0 0 var(--sp-1); }
.timeline .tamil { color: var(--stone); font-size: var(--text-sm); display: block; margin-bottom: var(--sp-2); }
.timeline p { margin: 0; color: var(--stone); font-size: var(--text-sm); }

/* ---------- District chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(21, 24, 18, 0.25);
  border-radius: 999px;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--white);
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip small { color: var(--stone); font-weight: 400; }

/* ---------- Support band ---------- */
.support-band { text-align: center; }
.support-band .display { font-size: var(--text-5xl); color: var(--parchment); }
.support-band .tamil-sub { color: rgba(247, 243, 234, 0.8); }
.support-band .btn { margin-top: var(--sp-8); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(247, 243, 234, 0.82);
  padding: var(--sp-16) 0 var(--sp-8);
  font-size: var(--text-sm);
}
.site-footer h2 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--parchment);
  margin: 0 0 var(--sp-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}
@media (max-width: 56rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 36rem) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--sp-2); }
.site-footer a { text-decoration: none; color: rgba(247, 243, 234, 0.82); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-brand p { margin: var(--sp-3) 0 0; max-width: 26rem; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(247, 243, 234, 0.18);
  padding-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(247, 243, 234, 0.55);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: var(--sp-4); max-width: 32rem; }
.form-grid label { font-size: var(--text-sm); font-weight: 600; }
.form-grid input, .form-grid textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  border: 1px solid rgba(21, 24, 18, 0.3);
  border-radius: var(--radius);
  background: var(--white);
}
.form-grid input:focus, .form-grid textarea:focus {
  outline: 2px solid var(--green);
  border-color: transparent;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 56rem) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid button {
  padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-grid img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.35s var(--ease-glide);
}
.gallery-grid button:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(21, 24, 18, 0.92);
  display: none;
  align-items: center; justify-content: center;
  padding: var(--sp-6);
}
.lightbox.is-open { display: flex; }
@keyframes lbIn { from { opacity: 0; transform: scale(.94); } }
.lightbox.is-open img, .lightbox.is-open video { animation: lbIn .35s var(--ease, ease) both; }
.lightbox img { max-height: 86vh; max-width: min(100%, 72rem); object-fit: contain; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  background: rgba(247, 243, 234, 0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(247, 243, 234, 0.5);
  color: var(--parchment); font-size: var(--text-sm);
  padding: 0.5rem 1.1rem; cursor: pointer; border-radius: var(--radius-pill);
}
.lightbox__close:hover { background: rgba(247, 243, 234, 0.22); }

/* ---------- Video placeholders ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 56rem) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.video-tile {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  font-size: var(--text-sm);
  overflow: hidden;
  border: var(--rule-gold);
  border-radius: var(--radius);
}
.video-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55;
}
.video-tile span {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(20, 53, 38, 0.85);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(201, 151, 28, 0.5);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: var(--sp-12) 0 var(--sp-8);
  border-bottom: var(--rule);
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(201, 151, 28, 0.12), transparent 60%),
    var(--parchment);
}
.page-hero .display { font-size: var(--text-6xl); }
.page-hero .tamil-sub {
  margin: var(--sp-3) 0 0;
  font-size: var(--text-xl);
  color: var(--green);
}
.page-hero p.lede {
  margin: var(--sp-6) 0 0;
  max-width: var(--measure);
  color: var(--stone);
  font-size: var(--text-lg);
}

/* Breadcrumb */
.breadcrumb { font-size: var(--text-xs); color: var(--stone); margin-bottom: var(--sp-4); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--crimson); }

/* ---------- Prose ---------- */
.prose { max-width: var(--measure); }
.prose h2 { font-family: var(--font-display); font-size: var(--text-3xl); margin: var(--sp-12) 0 var(--sp-4); }
.prose h3 { font-family: var(--font-display); font-size: var(--text-xl); margin: var(--sp-8) 0 var(--sp-3); }
.prose p { color: var(--stone); }
.prose a { color: var(--crimson); }

/* Objectives grid */
.objectives {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3) var(--sp-6);
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: obj;
}
@media (max-width: 48rem) { .objectives { grid-template-columns: 1fr; } }
.objectives li {
  counter-increment: obj;
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: var(--rule);
  font-size: var(--text-sm);
}
.objectives li::before {
  content: counter(obj, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 600;
  flex: none;
}
.objectives .tamil { display: block; color: var(--stone); font-size: var(--text-xs); }

/* Founder cards */
.founder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 48rem) { .founder-grid { grid-template-columns: 1fr; } }
.founder {
  text-align: center;
  background: var(--surface-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6);
  transition: border-color var(--dur-fast) ease, transform var(--dur-base) var(--ease-glide), box-shadow var(--dur-base) var(--ease-glide);
}
.founder:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(21, 24, 18, 0.10);
}
.founder img {
  width: 8.5rem; height: 8.5rem;
  object-fit: cover;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.founder h3 { font-family: var(--font-display); font-size: var(--text-xl); margin: 0; }
.founder .role { color: var(--crimson); font-size: var(--text-sm); font-weight: 600; margin: var(--sp-1) 0 0; }

/* District blocks */
.district {
  padding: var(--sp-10) 0;
  border-bottom: var(--rule);
}
.district h2 { font-family: var(--font-display); font-size: var(--text-3xl); margin: 0 0 var(--sp-6); }
.district h2 .tamil { font-size: var(--text-lg); color: var(--stone); display: block; }
.mosque-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.mosque-list li {
  background: var(--white);
  border: var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  transition: border-color var(--dur-fast) ease, transform var(--dur-base) var(--ease-glide), box-shadow var(--dur-base) var(--ease-glide);
}
.mosque-list li:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(21, 24, 18, 0.08);
}
.mosque-list h3 { font-family: var(--font-display); font-size: var(--text-lg); margin: 0 0 0.15rem; }
.mosque-list .area { color: var(--stone); font-size: var(--text-sm); margin: 0; }
.mosque-list .age {
  color: var(--crimson);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  align-self: center;
}

/* Stats strip for journey/work pages */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  padding: var(--sp-10);
  background: linear-gradient(135deg, var(--green-deep), var(--green) 140%);
  color: var(--parchment);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.stat-strip .number__value { color: var(--gold-soft); }
.stat-strip .number__label { color: rgba(247, 243, 234, 0.8); }
.stat-strip .number__label .tamil { color: rgba(247, 243, 234, 0.55); }
@media (max-width: 48rem) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* Footer language button */
.footer-lang {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold-soft);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.footer-lang:hover { color: var(--gold); }

/* Split grid (prayer + events on homepage) */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
@media (max-width: 700px) { .split-grid { grid-template-columns: 1fr; gap: var(--sp-12); } }

/* ============================================================
   MOBILE / RESPONSIVE PASS — 2026-10-14 (round 2)
   ============================================================ */
@media (max-width: 56rem) {
  .page-hero .display { font-size: clamp(2rem, 7vw, var(--text-6xl)); }
  .section-head .display { font-size: clamp(1.75rem, 6vw, var(--text-5xl)); }
  .support-band .display { font-size: clamp(1.75rem, 6vw, var(--text-5xl)); }
  .stat-strip { padding: var(--sp-6); gap: var(--sp-6); }
  .event-row { flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); }
  .event-row .date { min-width: 0; }
}
@media (max-width: 36rem) {
  .amount-chip { min-width: 0; flex: 1 1 9rem; }
  .brand__name { font-size: var(--text-sm); }
  .brand__name-ta { font-size: 0.62rem; }
  .section { padding: var(--sp-12) 0; }
  .split-inline { gap: var(--sp-8); }
}
@media (max-width: 600px) {
  #mosque-map { height: 320px !important; }
}
.mosque-list li .age { margin-left: auto; }

/* Printable poster page */
.poster {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--sp-12);
  border: var(--rule);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.poster__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--green-deep);
  margin: var(--sp-4) 0 var(--sp-2);
}
.poster__qr { display: block; width: 240px; height: 240px; margin: var(--sp-6) auto; }
@media print {
  .site-header, .site-footer, .lightbox, .theme-pill, .skip-link, .footer-lang, .support-band, .no-print { display: none !important; }
  body { background: #fff; }
  .poster { box-shadow: none; border: 2px solid #151812; max-width: 100%; page-break-inside: avoid; }
}

/* ============================================================
   REVAMP LAYER — hero media bg, glass, board, impact, gallery 2.0
   ============================================================ */

/* ---------- Glass surfaces ---------- */
.glass {
  background: var(--surface-glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.glass--dark {
  background: rgba(21, 24, 18, 0.55);
  border: 1px solid rgba(232, 197, 106, 0.35);
}
.glass--gold {
  border: var(--rule-gold);
}

/* ---------- Hero background media rotation ---------- */
.hero--bg { position: relative; isolation: isolate; overflow: hidden; min-height: min(88vh, 52rem); display: flex; align-items: center; }
.hero--bg .container { position: relative; z-index: 2; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-bg__slide.is-active { opacity: 1; }
.hero-bg__slide img, .hero-bg__slide video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-bg__slide.is-active img { animation: heroKB 12s ease-out forwards; }
@keyframes heroKB { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-bg__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(21,24,18,.62) 0%, rgba(21,24,18,.32) 48%, rgba(21,24,18,.08) 100%),
    linear-gradient(0deg, rgba(21,24,18,.42) 0%, transparent 40%);
}
.hero--bg .hero__kicker { color: var(--gold-soft); }
.hero--bg .hero__title-en {
  font-family: "Amiri", serif;
  font-weight: 700;
  letter-spacing: .015em;
  background: linear-gradient(115deg, var(--parchment) 12%, var(--gold-soft) 34%, var(--parchment) 52%, var(--gold-soft) 78%, var(--parchment) 96%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroSheen 8s linear infinite;
  filter: drop-shadow(0 3px 22px rgba(0,0,0,.55));
}
@keyframes heroSheen { from { background-position: 0% 50%; } to { background-position: -200% 50%; } }
.hero--bg .hero__title-ta { color: var(--gold-soft); }
@media (prefers-reduced-motion: reduce) { .hero--bg .hero__title-en { animation: none; -webkit-text-fill-color: currentColor; background: none; } }
.hero--bg .hero__tagline { color: rgba(247,243,234,.92); }
.hero--bg .hero__tagline strong { color: var(--gold-soft); }
.hero-bg-dots { position: absolute; z-index: 3; bottom: var(--sp-6); left: 50%; transform: translateX(-50%); display: flex; gap: var(--sp-2); }
.hero-bg-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(247,243,234,.35); transition: background .3s, transform .3s;
}
.hero-bg-dots button.is-active { background: var(--gold-soft); transform: scale(1.35); }

/* ---------- Impact stat cards (clickable) ---------- */
.number--link {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface-glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: var(--rule); border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-4);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.number--link:hover, .number--link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(201,151,28,.55);
  box-shadow: var(--shadow-soft);
}
.number--link .number__hint {
  display: block; margin-top: var(--sp-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--crimson);
}
.number--link:hover .number__hint { color: var(--gold); }

/* ---------- Section header extras ---------- */
.kicker-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }

/* ---------- Pillar cards (homepage programs) ---------- */
.pillar-card {
  position: relative; overflow: hidden;
  background: var(--white); border: var(--rule); border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.pillar-card__no {
  font-family: var(--font-display); font-size: var(--text-5xl); line-height: 1;
  color: var(--gold-pale); position: absolute; top: var(--sp-3); right: var(--sp-4);
  pointer-events: none;
}
.pillar-card h3 { font-family: var(--font-display); font-size: var(--text-xl); margin: 0 0 var(--sp-2); }
.pillar-card h3 .tamil { display: block; font-size: var(--text-sm); color: var(--green); font-weight: 500; }
.pillar-card p { color: var(--stone); font-size: var(--text-sm); margin: 0 0 var(--sp-4); }
.pillar-card a { color: var(--crimson); font-weight: 600; font-size: var(--text-sm); text-decoration: none; }
.pillar-card a:hover { color: var(--gold); }

/* ---------- Video cards ---------- */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--sp-6); }
.vid-card {
  position: relative; border: var(--rule); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink); cursor: pointer; padding: 0; text-align: left; width: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.vid-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.vid-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; opacity: .92; transition: opacity .25s, transform .5s ease; }
.vid-card:hover img { opacity: 1; transform: scale(1.03); }
.vid-card__play {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.vid-card__play span {
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: rgba(201,151,28,.92); color: var(--ink);
  display: grid; place-items: center; font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .25s ease;
}
.vid-card:hover .vid-card__play span { transform: scale(1.12); }
.vid-card__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--sp-6) var(--sp-3) var(--sp-2);
  background: linear-gradient(0deg, rgba(21,24,18,.85), transparent);
  color: var(--parchment); font-size: var(--text-sm); font-weight: 600;
}
.vid-card--vert img { aspect-ratio: 3/4; }
.vid-player { border-radius: var(--radius-lg); overflow: hidden; border: var(--rule); background: var(--ink); }
.vid-player video { width: 100%; max-height: 70vh; display: block; }

/* ---------- Photo strip (scroll-snap) ---------- */
.photo-strip {
  display: flex; gap: var(--sp-4); overflow-x: auto; padding-bottom: var(--sp-3);
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.photo-strip button {
  flex: 0 0 auto; width: 15rem; padding: 0; border: var(--rule); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; background: var(--white); scroll-snap-align: start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.photo-strip button:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.photo-strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-strip .cap { display: block; padding: var(--sp-2) var(--sp-3); font-size: var(--text-xs); color: var(--stone); }

/* ---------- Gallery 2.0 ---------- */
.gal-head { display: flex; align-items: end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.gal-count { font-size: var(--text-sm); color: var(--stone); }
.gal-item { animation: galIn .45s ease both; }
@keyframes galIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.gallery-grid .g-item--video { position: relative; }
.gallery-grid .g-item--video::after {
  content: "▶"; position: absolute; top: var(--sp-2); right: var(--sp-2);
  background: rgba(201,151,28,.92); color: var(--ink);
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem;
}
.tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.lightbox video { max-width: min(92vw, 60rem); max-height: 80vh; border-radius: var(--radius); }

/* ---------- Footer logo + chairman ---------- */
.footer-logo-wrap { display: grid; place-items: center; padding-bottom: var(--sp-6); border-bottom: var(--rule); margin-bottom: var(--sp-8); }
.footer-logo-wrap img {
  max-height: 6.5rem; width: auto; border-radius: var(--radius);
  background: var(--white); padding: var(--sp-2) var(--sp-4);
  box-shadow: var(--shadow-soft);
}
.footer-president {
  display: flex; gap: var(--sp-4); align-items: center;
  margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: var(--rule);
}
.footer-president img {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold-soft);
}
.footer-president .who { font-size: var(--text-sm); line-height: 1.4; }
.footer-president .who strong { display: block; }
.footer-president .who span { color: var(--stone); font-size: var(--text-xs); }

/* ---------- Board page ---------- */
.board-spotlight {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-8); align-items: center;
  padding: var(--sp-8);
}
.board-spotlight img {
  width: 10rem; height: 12rem; object-fit: cover; border-radius: var(--radius-lg);
  border: 3px solid var(--gold-soft); box-shadow: var(--shadow-soft);
}
.board-spotlight h2 { font-family: var(--font-display); font-size: var(--text-3xl); margin: 0; }
.board-spotlight .role { color: var(--crimson); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: var(--text-xs); }
.board-spotlight .twin { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-4); }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--sp-4); }
.board-tile {
  background: var(--white); border: var(--rule); border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.board-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: rgba(201,151,28,.5); }
.board-tile .role {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--crimson);
}
.board-tile .role--top { color: var(--green); }
.board-tile .name { font-family: var(--font-display); font-size: var(--text-lg); }
.board-tile .tag { font-size: var(--text-xs); color: var(--stone); }
.board-tile .links { display: flex; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-3); }
.board-tile .links a { font-size: var(--text-sm); font-weight: 600; color: var(--green); text-decoration: none; }
.board-tile .links a:hover { color: var(--crimson); }
.board-tile--vacant { opacity: .65; }
.board-tile--chair {
  grid-column: span 2; background: linear-gradient(135deg, rgba(30,77,56,.08), rgba(201,151,28,.10));
  border: var(--rule-gold);
}
@media (max-width: 40rem) { .board-tile--chair { grid-column: span 1; } }
.board-mini-photo {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold-soft); float: right; margin: 0 0 var(--sp-2) var(--sp-3);
}
.monogram {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; float: right; margin: 0 0 var(--sp-2) var(--sp-3);
  display: grid; place-items: center;
  background: var(--green); color: var(--gold-soft);
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600;
}

/* ---------- Contact chairman cards ---------- */
.chair-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-8); }
.chair-card {
  display: flex; gap: var(--sp-4); align-items: center;
  padding: var(--sp-5);
  background: var(--surface-glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: var(--rule); border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.chair-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: rgba(201,151,28,.5); }
.chair-card img, .chair-card .monogram { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; float: none; margin: 0; flex: 0 0 auto; }
.chair-card h3 { font-family: var(--font-display); font-size: var(--text-lg); margin: 0; }
.chair-card .role { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--crimson); }
.chair-card .tel { display: block; font-size: var(--text-sm); color: var(--green); font-weight: 600; text-decoration: none; margin-top: var(--sp-1); }
.chair-card .tel:hover { color: var(--crimson); }

/* ---------- Contact form success panel ---------- */
.wa-panel { text-align: center; padding: var(--sp-8) var(--sp-6); }
.wa-panel h3 { font-family: var(--font-display); font-size: var(--text-2xl); margin: 0 0 var(--sp-2); }
.wa-panel p { color: var(--stone); margin: 0 0 var(--sp-6); }
.wa-panel .wa-btns { display: grid; gap: var(--sp-3); max-width: 24rem; margin: 0 auto; }
.wa-panel .wa-btns .btn { justify-content: center; text-align: center; }
.wa-panel .copy-line { margin-top: var(--sp-6); font-size: var(--text-sm); color: var(--stone); }
.wa-panel .copy-line button { background: none; border: 0; color: var(--crimson); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* ---------- Impact page ---------- */
.impact-hero-stat {
  display: inline-flex; flex-direction: column; gap: var(--sp-1);
  padding: var(--sp-6) var(--sp-10); margin-top: var(--sp-6);
  border-radius: var(--radius-lg); border: var(--rule-gold);
  background: var(--surface-glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.impact-hero-stat .big { font-family: var(--font-display); font-size: var(--text-6xl); line-height: 1; color: var(--crimson); }
.impact-hero-stat .sub { font-size: var(--text-sm); color: var(--stone); }
.impact-rows { display: grid; gap: var(--sp-4); }
.impact-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-5); align-items: center;
  background: var(--white); border: var(--rule); border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: transform .2s ease, box-shadow .2s ease;
}
.impact-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.impact-row__no {
  font-family: var(--font-display); font-size: var(--text-4xl); color: var(--gold);
  min-width: 2.5rem; text-align: center;
}
.impact-row h3 { font-family: var(--font-display); font-size: var(--text-xl); margin: 0 0 var(--sp-1); }
.impact-row h3 .tamil { font-size: var(--text-sm); color: var(--green); margin-left: var(--sp-2); }
.impact-row p { margin: 0; color: var(--stone); font-size: var(--text-sm); }
.impact-row .figure {
  font-family: var(--font-display); font-size: var(--text-2xl); color: var(--crimson);
  text-align: right; white-space: nowrap;
}
.impact-row .figure small { display: block; font-family: var(--font-body); font-size: var(--text-xs); color: var(--stone); font-weight: 500; }
.impact-proof { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--sp-4); }
.impact-proof figure { margin: 0; border: var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.impact-proof img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.impact-proof figcaption { padding: var(--sp-2) var(--sp-3); font-size: var(--text-xs); color: var(--stone); }
.impact-note {
  font-size: var(--text-sm); color: var(--stone);
  border-left: 3px solid var(--gold); padding-left: var(--sp-4);
}
@media (max-width: 44rem) {
  .impact-row { grid-template-columns: auto 1fr; }
  .impact-row .figure { grid-column: 2; text-align: left; }
}

/* ---------- Mosques upgrades ---------- */
.mosque-list--rich li { display: flex; gap: var(--sp-4); align-items: center; }
.mosque-list--rich img {
  width: 4.25rem; height: 4.25rem; border-radius: var(--radius); object-fit: cover;
  border: var(--rule); flex: 0 0 auto;
}
.leaflet-popup-content-wrapper { border-radius: var(--radius); font-family: var(--font-body); }
.leaflet-popup-content a { color: var(--crimson); font-weight: 600; }
.map-fallback {
  padding: var(--sp-6); text-align: center; color: var(--stone);
  border: var(--rule); border-radius: var(--radius-lg); background: var(--parchment-deep);
}
.pin {
  width: 2.1rem; height: 2.1rem; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--crimson); border: 2px solid var(--gold-soft);
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}

/* ---------- Homepage media mosaic (gallery teaser) ---------- */
.mosaic {
  display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 9rem;
}
.mosaic button {
  padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  position: relative; background: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mosaic button:hover { transform: scale(1.02); box-shadow: var(--shadow-soft); z-index: 1; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic button:hover img { transform: scale(1.06); }
.mosaic .m-tall { grid-row: span 2; }
.mosaic .m-wide { grid-column: span 2; }
@media (max-width: 44rem) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 8rem; }
  .mosaic .m-wide { grid-column: span 2; }
}

/* ===== REVAMP 2026-10-15b: marquee · slideshow · footer watermark · glass cards ===== */
.marquee { position:relative; overflow:hidden; background:linear-gradient(90deg,var(--crimson-dark,#6B1522),var(--crimson),var(--crimson-dark,#6B1522)); color:var(--gold-soft); padding:var(--sp-3) 0; border-block:1px solid rgba(201,151,28,.4); }
.marquee__track { display:flex; width:max-content; white-space:nowrap; animation:marq 30s linear infinite; font-family:var(--font-display); font-size:var(--text-sm); letter-spacing:.14em; text-transform:uppercase; }
.marquee__track > span { display:inline-flex; align-items:center; gap:2.2rem; padding-right:2.2rem; }
.marquee .star { color:var(--gold); font-size:.85em; }
@keyframes marq { to { transform:translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state:paused; }
@media (prefers-reduced-motion:reduce) { .marquee__track { animation:none; } }

.ss { position:relative; overflow:hidden; border-radius:var(--radius-lg); background:var(--parchment-deep); }
.ss__s { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transform:scale(1.06); transition:opacity 1s ease, transform 4.5s ease; }
.ss__s.is-on { opacity:1; transform:scale(1); z-index:1; }
.ss::after { content:""; position:absolute; inset:auto 0 0 0; height:34%; background:linear-gradient(transparent, rgba(26,26,26,.45)); z-index:2; pointer-events:none; }
.ss__dots { position:absolute; z-index:3; left:50%; bottom:.8rem; transform:translateX(-50%); display:flex; gap:.4rem; }
.ss__dots i { width:.45rem; height:.45rem; border-radius:50%; background:rgba(255,255,255,.45); transition:.3s; }
.ss__dots i.on { background:var(--gold); width:1.2rem; border-radius:99px; }
.ss .ss__s { position:absolute; }
.ss[data-slideshow] { position:relative; }
.ss:not([data-ss-has])::before { content:none; }
div.ss[data-slideshow] > img.ss__s:first-child { position:absolute; }

.site-footer { position:relative; overflow:hidden; }
.site-footer .container { position:relative; z-index:1; }
.site-footer .footer-brand p { color:var(--stone); font-size:var(--text-sm); max-width:34ch; }
.site-footer .footer-brand h2 { font-size:var(--text-xl); margin-bottom:var(--sp-2); }

.card.glass, .glass-card { background:rgba(255,255,255,.66); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border:1px solid rgba(255,255,255,.75); box-shadow:0 8px 30px rgba(26,26,26,.06); border-radius:var(--radius-lg); }
.card-grid .card { transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card-grid .card:hover { transform:translateY(-6px) scale(1.015); box-shadow:0 18px 44px rgba(140,28,43,.14); border-color:rgba(201,151,28,.55); }
.stat-strip .number { background:rgba(255,255,255,.6); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,.7); border-radius:var(--radius-lg); padding:var(--sp-4) var(--sp-5); transition:transform .35s var(--ease), box-shadow .35s; }
.stat-strip .number:hover { transform:translateY(-4px); box-shadow:0 14px 34px rgba(140,28,43,.12); }
.wall-card { background:rgba(255,255,255,.62); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,.7); border-radius:var(--radius-lg); transition:transform .35s var(--ease), box-shadow .35s; }
.wall-card:hover { transform:translateY(-5px) rotate(-.4deg); box-shadow:0 16px 36px rgba(140,28,43,.14); }
.mosque-list li { background:rgba(255,255,255,.55); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,.65); border-radius:14px; margin-bottom:var(--sp-3); padding:var(--sp-4) var(--sp-5); transition:transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.mosque-list li:hover { transform:translateX(6px); border-color:rgba(201,151,28,.5); box-shadow:0 10px 26px rgba(140,28,43,.1); }
.mosque-list li.m-card { display:flex; align-items:center; gap:var(--sp-4); }
.mosque-list li.m-card img { width:5.2rem; height:5.2rem; object-fit:cover; border-radius:12px; flex:0 0 auto; box-shadow:var(--shadow-soft); }
.mosque-list li.m-card > div { flex:1; min-width:0; }
.mosque-list li.m-card .age { flex:0 0 auto; }

.hero-bg__slide img { animation:kb 16s ease-in-out infinite alternate; }
@keyframes kb { from { transform:scale(1); } to { transform:scale(1.09); } }
.star-ornament { animation:floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform:translateY(0) rotate(0deg); } 50% { transform:translateY(-10px) rotate(8deg); } }
.pin { position:relative; width:26px; height:26px; border-radius:50% 50% 50% 0; background:var(--crimson); transform:rotate(-45deg); box-shadow:0 4px 12px rgba(140,28,43,.45); border:2px solid var(--gold); }
.pin::after { content:""; position:absolute; inset:7px; border-radius:50%; background:var(--gold); }
.pin::before { content:""; position:absolute; inset:-8px; border-radius:50%; border:2px solid rgba(140,28,43,.4); animation:pulse 2s ease-out infinite; }
@keyframes pulse { from { transform:scale(.6); opacity:1; } to { transform:scale(1.6); opacity:0; } }
.gal-item img { transition:transform .5s var(--ease); }
.gal-item:hover img { transform:scale(1.08); }
.vid-card { transition:transform .35s var(--ease), box-shadow .35s; }
.vid-card:hover { transform:translateY(-5px); box-shadow:0 18px 40px rgba(26,26,26,.18); }
.chair-card { background:rgba(255,255,255,.66); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }

/* ===== REFIT 2026-10-15c: Eastate · Aelix · RooFix language ===== */

/* 1. Floating pill nav (all pages) */
.site-header.site-header {
  position: sticky; top: 10px; z-index: 60;
  width: min(1180px, calc(100% - 24px));
  margin: 10px auto 0; padding: 0;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(26,26,26,.10);
}
.site-header.site-header .site-header__inner { padding-block: .55rem; }
.nav-cta.nav-cta {
  background: var(--ink, #1A1A1A) !important; color: #F7F3EA !important;
  border: 0 !important; display: inline-flex; align-items: center; gap: .55rem;
  box-shadow: none;
}
.nav-cta.nav-cta::after {
  content: "↗"; display: grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--crimson); color: #fff; font-size: .8rem;
  transition: transform .35s var(--ease), background .35s;
}
.nav-cta.nav-cta:hover::after { transform: rotate(45deg) scale(1.15); background: var(--gold); color: var(--ink); }
.site-nav a:not(.btn) { position: relative; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 0; height: 2px; background: var(--crimson); transition: width .3s var(--ease), left .3s var(--ease); }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]:not(.btn)::after { width: 100%; left: 0; }

/* 2. Home hero = rounded inset card */
.hero--bg.hero--bg {
  margin: 10px; border-radius: 30px;
  overflow: hidden; isolation: isolate;
  box-shadow: 0 34px 80px rgba(26,26,26,.30);
}
.hero--bg .display, .hero--bg h1 { animation: riseIn .9s var(--ease) both .1s; }
.hero--bg .hero-actions, .hero--bg .chip-row, .hero--bg .twin { animation: riseIn .9s var(--ease) both .28s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero--bg .hero__title-en { animation: riseIn .9s var(--ease) both .1s, heroSheen 8s linear infinite; }

/* 3. Inner-page heroes = rounded tone card (every inner page) */
.page-hero.page-hero {
  width: min(1180px, calc(100% - 24px));
  margin: 12px auto 0;
  border-radius: 30px;
  background: var(--parchment-deep, #EFE7D6);
  border: 1px solid rgba(140,28,43,.07);
  box-shadow: 0 18px 44px rgba(26,26,26,.06);
}
.page-hero.page-hero h1 { animation: riseIn .8s var(--ease) both .05s; }
.page-hero.page-hero .lede { animation: riseIn .8s var(--ease) both .18s; }

@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* 5. Circular-arrow CTAs (RooFix/Eastate) */
.btn--arr { display: inline-flex; align-items: center; gap: .7rem; }
.btn--arr .arr {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .95rem;
  background: rgba(255,255,255,.18); color: inherit;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.btn--arr:hover .arr { transform: rotate(45deg) scale(1.12); background: var(--gold); color: var(--ink); }
.arr-inline {
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem;
  border-radius: 50%; background: var(--crimson); color: #fff;
  text-decoration: none; font-size: .9rem; flex: 0 0 auto;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.arr-inline:hover { transform: rotate(45deg) scale(1.14); background: var(--gold); color: var(--ink); }
.btn:active { transform: scale(.97); }

/* 6. Dark rounded CTA band (Eastate "Ready To Work") */
.support-band.support-band {
  background: var(--ink, #191919); color: #F3EEE3;
  border-radius: 34px;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto var(--sp-12);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 34px 80px rgba(26,26,26,.32);
  text-align: center; position: relative; overflow: hidden;
}
.support-band.support-band::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(201,151,28,.14); filter: blur(4px);
  animation: floatCard 8s ease-in-out infinite;
}
.support-band.support-band .display, .support-band.support-band .tamil-sub { color: #F3EEE3; position: relative; }
.support-band.support-band .btn--gold { position: relative; }

/* 7. Quote-mark cards (Eastate testimonials) */
.wall-card.wall-card { position: relative; overflow: hidden; }
.wall-card.wall-card::after {
  content: "\201D"; position: absolute; right: 12px; top: 2px;
  font-family: var(--font-display); font-size: 4.2rem; line-height: 1;
  color: rgba(140,28,43,.15); pointer-events: none;
}
.wall-card.wall-card .name::before { content: "\201C"; color: var(--crimson); margin-right: 1px; }

/* 8. Photo-strip captions = overlay info bars (Eastate property cards) */
.photo-strip button { position: relative; }
.photo-strip .cap.cap {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  background: rgba(26,26,26,.75); color: #F3EEE3;
  border-radius: 10px; padding: 6px 9px;
  font-size: .72rem; line-height: 1.3;
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.photo-strip button:hover .cap.cap, .photo-strip button:focus-visible .cap.cap { opacity: 1; transform: none; }

/* 9. Gallery cards: rounded, layered, hover lift */
.gal-item.gal-item {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 22px rgba(26,26,26,.08);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.gal-item.gal-item:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(140,28,43,.18); }

/* 10. Mixed dark stat card (Eastate bento) */
.number--dark {
  background: var(--ink, #1A1A1A) !important; color: #F3EEE3 !important;
  border-color: transparent !important;
}
.number--dark .number__value { color: #F7F3EA; }
.number--dark .number__label, .number--dark .tamil { color: rgba(243,238,227,.75) !important; }
.number--dark .number__hint { color: var(--gold-soft) !important; }

/* 11. Editorial muted tail (Aelix statement) */
.mut-tail { color: var(--stone); }

/* 12. Board mini photo cards */
.board-mini-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5); margin-top: var(--sp-5);
}
.board-mini {
  margin: 0; padding: 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 14px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.board-mini:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(140,28,43,.16); }
.board-mini img {
  width: 92px; height: 92px; object-fit: cover; object-position: top center;
  border-radius: 14px; flex: 0 0 auto;
}
.board-mini figcaption { display: flex; flex-direction: column; gap: 4px; }
.board-mini .role {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--crimson); font-weight: 700;
}
.board-mini .name { font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink); line-height: 1.2; }
@media (max-width: 40rem) { .board-mini-row { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .support-band.support-band::before { animation: none; }
  .hero--bg .display, .hero--bg h1, .hero--bg .hero-actions, .page-hero.page-hero h1, .page-hero.page-hero .lede { animation: none; }
}


/* ============ Batch 2 (2026-10-15 feedback round) ============ */



/* 15. Heritage — arch-topped district cards */
.heritage-arches {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-4); margin-bottom: var(--sp-4);
}
.arch-card {
  text-decoration: none; display: flex; flex-direction: column; gap: .5rem;
  padding: 12px 12px 18px;
  background: #FFFCF6; border: 1px solid var(--rule); border-radius: 20px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.arch-card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(140,28,43,.16); border-color: rgba(201,151,28,.55); }
.arch-img {
  display: block; overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 14px 14px;
  background: var(--ink, #1A1A1A);
}
.arch-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.arch-card:hover .arch-img img { transform: scale(1.07); }
.arch-name { font-family: var(--font-display); font-size: var(--text-base, 1rem); color: var(--ink); line-height: 1.2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.arch-name .tamil { font-family: inherit; font-size: .78rem; color: var(--crimson); font-weight: 500; }
.arch-meta { font-size: .74rem; color: var(--stone); }
@media (max-width: 70rem) { .heritage-arches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 46rem) { .heritage-arches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 16. Journey stat strip — solid, single colour scheme (fixes mixed glass/gold) */
.stat-strip .number.number {
  background: #FFFCF6;
  border: 1px solid var(--rule);
  box-shadow: 0 6px 22px rgba(26,26,26,.07);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  text-align: left;
}
.stat-strip .number.number .number__value { color: var(--crimson); }
.stat-strip .number.number .number__label { color: var(--ink); }
.stat-strip .number.number .number__label .tamil { color: var(--stone); }

/* 16b. Dark CTA band spacing (was touching the section above) */
.support-band.support-band { margin-top: var(--sp-10); margin-left: auto; margin-right: auto; }

/* 17. Mosques — stats row, map card, district cards */
.mosque-stats { padding-top: var(--sp-6); }
.mosque-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.mstat { text-align: center; padding: var(--sp-6) var(--sp-4); border-radius: var(--radius-lg); display: grid; gap: 8px; }
.mstat-num { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); color: var(--crimson); line-height: 1; }
.mstat-label { font-size: var(--text-sm); color: var(--ink); font-weight: 600; }
.mstat-label .tamil { display: block; color: var(--stone); font-weight: 400; font-size: .78rem; margin-top: 3px; }
.map-card {
  background: #fff; border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: var(--sp-5);
  box-shadow: var(--shadow-soft);
}
.map-card__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-4); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.map-legend { font-size: .78rem; color: var(--stone); display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.map-legend .pin {
  width: 14px; height: 14px; display: inline-block;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--crimson); border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
#mosque-map { border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.dist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: var(--sp-5); }
.dist-card {
  background: #fff; border: 1px solid var(--rule); border-radius: 22px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.dist-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(140,28,43,.15); }
.dist-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink, #1A1A1A); }
.dist-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.dist-card:hover .dist-photo img { transform: scale(1.05); }
.dist-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.dist-body h3 { font-family: var(--font-display); font-size: var(--text-xl); margin: 0; line-height: 1.15; }
.dist-body h3 .tamil { display: block; font-size: .84rem; color: var(--stone); font-weight: 400; margin-top: 3px; }
.m-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.m-mini li { display: grid; gap: 1px; padding: 11px 2px; border-bottom: 1px solid var(--rule); }
.m-mini strong { color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.35; }
.m-mini span { color: var(--stone); font-size: .78rem; line-height: 1.35; }
.dist-body .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 52rem) {
  .mosque-stats-grid { grid-template-columns: 1fr; }
  .mstat { padding: var(--sp-4); display: flex; align-items: baseline; justify-content: center; gap: 12px; }
  .mstat-label .tamil { display: inline; margin-top: 0; }
}

/* 18. Contact — WhatsApp hero + leadership stack + form card (mobile-first) */
.contact-grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "wa" "form" "lead";
  align-items: start;
}
.contact-wa { grid-area: wa; display: grid; gap: var(--sp-4); align-content: start; }
.contact-lead { grid-area: lead; display: grid; gap: var(--sp-5); align-content: start; }
.wa-hero {
  background: var(--ink, #191919); color: #F3EEE3;
  border-radius: 26px; padding: clamp(22px, 4vw, 34px);
  display: grid; gap: var(--sp-3); justify-items: start;
  position: relative; overflow: hidden;
  box-shadow: 0 24px 60px rgba(26,26,26,.28);
}
.wa-hero::after {
  content: ""; position: absolute; right: -56px; top: -56px;
  width: 190px; height: 190px; border-radius: 50%;
  background: rgba(201,151,28,.16);
}
.wa-hero__tag {
  position: relative; z-index: 1;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-soft);
  border: 1px solid rgba(201,151,28,.55); border-radius: 999px;
  padding: 5px 13px;
}
.wa-hero h2 { position: relative; z-index: 1; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); margin: .2rem 0 0; line-height: 1.15; color: #F7F3EA; }
.wa-hero p { position: relative; z-index: 1; margin: 0; font-size: var(--text-sm); color: rgba(243,238,227,.78); line-height: 1.5; max-width: 34ch; }
.wa-hero .btn { position: relative; z-index: 1; margin-top: var(--sp-2); }
.chair-grid--stack { grid-template-columns: 1fr; margin-bottom: 0; }
.chair-grid--stack .chair-card { align-items: center; }
.board-link { font-size: var(--text-sm); font-weight: 700; color: var(--crimson); text-decoration: none; justify-self: start; }
.board-link:hover { text-decoration: underline; }
.contact-form-card {
  grid-area: form;
  background: #fff; border: 1px solid var(--rule); border-radius: 28px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 20px 50px rgba(26,26,26,.09);
}
.contact-form-card .form-grid { max-width: none; }
.contact-form-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: .25rem 0 var(--sp-5); line-height: 1.15; }
.contact-form-card input, .contact-form-card textarea { border-radius: 14px; background: #FCFAF5; }
.contact-form-card input:focus, .contact-form-card textarea:focus { background: #fff; }
.contact-submit { justify-content: space-between; width: 100%; }
@media (min-width: 60rem) {
  .contact-grid {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    grid-template-areas: "wa form" "lead form";
    gap: var(--sp-8);
  }
}

/* 19. About — official office bearers row + full board grid */
.board-mini-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.board-mini { background: #FFFCF6; }
.board-mini .name { display: block; }
.board-mini .tel-link { font-size: var(--text-sm); font-weight: 600; color: var(--green); text-decoration: none; }
.board-mini .tel-link:hover { color: var(--crimson); }
.about-board-grid { margin-top: var(--sp-8); }
.about-board-grid .board-tile { background: #FFFCF6; }
@media (max-width: 60rem) { .board-mini-row--3 { grid-template-columns: 1fr; } }

/* 20. Mosques — map robustness + responsive */
#mosque-map.leaflet-container { background: #dde5ec; font: inherit; }
@media (max-width: 52rem) {
  #mosque-map { height: 320px !important; }
  .map-card { padding: var(--sp-4); }
  .map-card__head { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .mosque-stats { padding-top: var(--sp-4); }
}
.map-fallback { padding: var(--sp-6); text-align: center; color: var(--stone); background: #FFFCF6; border: 1px dashed var(--rule); border-radius: 14px; margin-top: var(--sp-3); }

/* 21. Contact — mobile-first polish */
@media (max-width: 40rem) {
  .wa-hero { padding: var(--sp-5); border-radius: 20px; }
  .wa-hero h2 { font-size: 1.35rem; }
  .wa-hero .btn { width: 100%; justify-content: center; }
  .contact-form-card { padding: var(--sp-5); border-radius: 20px; }
  .contact-submit { flex-direction: row; }
  .chair-grid--stack .chair-card { padding: var(--sp-3); }
  .contact-grid { gap: var(--sp-6); }
}

/* 22. Generic mobile tighten for batch-2 blocks */
@media (max-width: 40rem) {
  .heritage-arches { gap: var(--sp-3); }
  .arch-card { padding: 10px 10px 14px; }
  .field-bento { gap: var(--sp-3); }
  .stat-strip .number.number { padding: var(--sp-3) var(--sp-4); }
  .dist-body { padding: var(--sp-4); }
  .dist-grid { gap: var(--sp-4); }
}

/* 23. Journey/work stat-strip — no horizontal overflow on mobile */
.stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-strip .number, .stat-strip .number__value { min-width: 0; }
.stat-strip .number__value { font-size: clamp(1.35rem, 6.5vw, 2.4rem); overflow-wrap: normal; }
@media (max-width: 48rem) {
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); padding: var(--sp-5); }
}
@media (max-width: 26rem) {
  .stat-strip { grid-template-columns: 1fr; }
}

/* 24. "Service, counted in lives" numbers — mobile responsive */
.numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.number__value { min-width: 0; font-size: clamp(1.6rem, 7vw, var(--text-4xl)); }
.number__label { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 48rem) {
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-4); }
}
@media (max-width: 26rem) {
  .numbers { grid-template-columns: 1fr; }
}

/* 25. About — clean numbered roster (official board table) */
.roster { list-style: none; margin: var(--sp-5) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.roster li {
  display: grid;
  grid-template-columns: 2.4rem 9.5rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.4rem 1.1rem;
  padding: 13px 4px;
  border-bottom: 1px solid var(--rule);
}
.roster-no { font-family: var(--font-display); font-weight: 700; color: var(--crimson); font-size: 1rem; }
.roster-role { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.roster-name { font-family: var(--font-display); font-size: 1.04rem; color: var(--ink); line-height: 1.25; }
.roster-name .tag { font-family: var(--font-sans, inherit); font-size: .78rem; color: var(--stone); font-weight: 400; }
.roster-tel { font-weight: 600; color: var(--green); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .92rem; }
.roster-tel:hover { color: var(--crimson); }
.roster-wa { font-size: .8rem; font-weight: 700; color: var(--crimson); text-decoration: none; white-space: nowrap; }
.roster-wa:hover { text-decoration: underline; }
.roster-vacant { font-size: .8rem; color: var(--stone); font-style: italic; white-space: nowrap; }
.roster li:nth-child(-n+3) .roster-name { font-weight: 600; }
@media (max-width: 60rem) {
  .roster li { grid-template-columns: 2rem minmax(0, 1fr) auto; row-gap: 1px; padding: 12px 2px; }
  .roster-no { grid-row: 1 / span 3; align-self: start; padding-top: 3px; }
  .roster-role { grid-column: 2; }
  .roster-name { grid-column: 2 / 4; font-size: 1rem; }
  .roster-tel { grid-column: 2; }
  .roster-wa, .roster-vacant { grid-column: 3; grid-row: 3; align-self: center; justify-self: end; }
}

/* 26. Mosques — uniform district cards + clean directory below */
.dist-photo { aspect-ratio: 5 / 4; }
.dist-body { padding: var(--sp-5) var(--sp-5) var(--sp-5); gap: var(--sp-2); }
.dist-meta { font-size: .8rem; color: var(--stone); }
.dist-body .btn { margin-top: var(--sp-3); }
.mosque-dir { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--sp-6) var(--sp-8); margin-top: var(--sp-4); }
.mosque-dir h3 { font-family: var(--font-display); font-size: var(--text-lg); margin: 0 0 var(--sp-2); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mosque-dir h3 .tamil { font-size: .85rem; color: var(--crimson); font-weight: 500; }
.mosque-dir h3 small { font-family: var(--font-sans, inherit); font-size: .72rem; color: var(--stone); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mosque-dir .m-mini { border-top: 1px solid var(--rule); }

/* 27. Mosque district cards — more breathing room, separated cards */
.dist-grid { gap: var(--sp-8); margin-top: var(--sp-2); }
.dist-card { box-shadow: 0 3px 14px rgba(26,26,26,.07); border-color: rgba(26,26,26,.12); }
.dist-body { gap: var(--sp-2); }
.dist-body .btn { margin-top: auto; padding-top: .95rem; }
.dist-meta { margin-top: var(--sp-1); }
.mosque-dir { row-gap: var(--sp-8); }

/* 28. Token repair — --sp-5 and --ease were referenced throughout but never defined
   (spacing scale jumped sp-4 -> sp-6; --ease only existed in d1.css).
   Defining them restores every padding/gap/transition that was silently invalid. */
:root {
  --sp-5: 1.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* 29. Header language switcher — English is the default/active language */
.lang-switch { position: relative; display: flex; align-items: center; margin-left: auto; }
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid rgba(21, 24, 18, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.lang-switch__btn:hover { background: rgba(21, 24, 18, 0.05); border-color: var(--ink); }
.lang-switch__btn:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
.lang-switch__globe { flex: none; }
.lang-switch__caret { font-size: 0.7em; transform: translateY(-1px); }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 11rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: rgba(247, 243, 234, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  z-index: 80;
  animation: langdrop var(--dur-base) var(--ease-glide) both;
}
@keyframes langdrop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.lang-switch__menu li + li { margin-top: 2px; }
.lang-switch__menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.85rem;
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.lang-switch__menu button:hover { background: rgba(21, 24, 18, 0.06); }
.lang-switch__menu button.is-active { color: var(--crimson); font-weight: 700; }
.lang-switch__menu button.is-active::after { content: "\2713"; font-size: 0.85em; }
html[data-theme="night"] .lang-switch__btn { border-color: rgba(247, 243, 234, 0.3); color: #f7f3ea; }
html[data-theme="night"] .lang-switch__btn:hover { background: rgba(247, 243, 234, 0.08); border-color: #f7f3ea; }
html[data-theme="night"] .lang-switch__menu { background: rgba(11, 18, 14, 0.98); border-color: rgba(247, 243, 234, 0.15); }
html[data-theme="night"] .lang-switch__menu button { color: #f7f3ea; }
html[data-theme="night"] .lang-switch__menu button:hover { background: rgba(247, 243, 234, 0.08); }
@media (max-width: 52rem) {
  .lang-switch__btn { padding: 0.45rem 0.8rem; }
  .lang-switch__btn .lang-switch__label { display: none; }
}

/* 30. Typography pass — clean Fraunces cut + refined hero
   Fraunces ships with its WONK axis defaulting to 1 (quirky alternate
   letterforms that visually collide at display sizes). Pinning WONK/SOFT to 0
   gives the clean editorial cut; tracking and optical sizing are eased to match. */
body {
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
.display {
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.06;
  letter-spacing: -0.004em;
  text-wrap: balance;
}
.hero__title-en {
  font-size: clamp(2.9rem, 6.2vw, 5.25rem);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.012em;
  word-spacing: 0.015em;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  text-wrap: balance;
}
.section-head .display,
.page-hero .display { text-wrap: balance; }
/* 31. Heritage directory — the nine Chennai centres + mosque photo strip */
.hz-list { display: grid; gap: var(--sp-5); }
.hz {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--sp-6);
  align-items: start;
  padding: var(--sp-8);
  background: var(--white);
  border-radius: 18px;
  border-left: 3px solid var(--gold);
}
.hz-no {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  letter-spacing: -0.02em;
}
.hz-area {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 var(--sp-2);
}
.hz-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 var(--sp-3);
}
.hz-story { margin: 0; line-height: 1.65; color: var(--ink); opacity: .84; }
.hz-facts {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  list-style: none; padding: 0;
  margin: var(--sp-5) 0 0;
  font-size: var(--text-sm); color: var(--stone);
}
.hz-facts li::before { content: "\25C6"; color: var(--gold); margin-right: .5em; font-size: .65em; vertical-align: .12em; }
.hz { transition: opacity .6s ease, transform .45s var(--ease, ease), box-shadow .45s var(--ease, ease); }
.hz:hover { border-left-color: var(--crimson); transform: translateY(-4px); box-shadow: 0 18px 44px rgba(26, 26, 26, .10); }

.mosque-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.mosque-strip > button {
  padding: 0; border: 0; background: none; cursor: pointer;
  display: block; text-align: left;
}
.mosque-strip > button img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 14px; display: block;
  transition: transform .5s var(--ease, ease);
}
.mosque-strip > button:hover img { transform: scale(1.03); }
.mosque-strip > button { animation: galIn .55s var(--ease, ease) both; }
.mosque-strip .cap {
  display: block; margin-top: var(--sp-2);
  font-size: var(--text-xs); color: var(--stone);
  letter-spacing: .08em; text-transform: uppercase;
  transition: color .3s var(--ease, ease);
}
.mosque-strip > button:hover .cap { color: var(--crimson); }
.split-inline .mosque-strip { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 60rem) {
  .mosque-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 40rem) {
  .hz { grid-template-columns: 1fr; gap: var(--sp-3); padding: var(--sp-6); }
  .hz-no { font-size: var(--text-3xl); }
  .mosque-strip { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
}
@media (prefers-reduced-motion: reduce) {
  .hz { transition: none; }
  .mosque-strip > button { animation: none; }
  .lightbox.is-open img, .lightbox.is-open video { animation: none; }
}

/* 32. Moments showcase — first-year achievements */
.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.moment {
  position: relative; display: block;
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--ink);
  text-decoration: none; color: var(--parchment);
}
.moment img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s var(--ease, ease);
}
.moment:hover img, .moment:focus-visible img { transform: scale(1.07); }
.moment__cap {
  position: absolute; inset: auto 0 0 0;
  padding: var(--sp-12) var(--sp-5) var(--sp-5);
  background: linear-gradient(to top, rgba(10,8,6,.9) 8%, rgba(10,8,6,.45) 58%, transparent);
}
.moment__no {
  display: block; margin-bottom: .3rem;
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.moment__t {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg); font-weight: 600;
  line-height: 1.15; letter-spacing: -.005em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
@media (max-width: 70rem) { .moments { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 50rem) { .moments { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 30rem) { .moments { grid-template-columns: 1fr; } .moment { aspect-ratio: 4 / 3; } }

/* 33. Heritage card photos + pending-verification state */
.hz { grid-template-columns: 4.5rem minmax(0, 17rem) minmax(0, 1fr); align-items: start; }
.hz-photo { border-radius: 14px; overflow: hidden; background: var(--parchment); line-height: 0; }
.hz-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .7s var(--ease, ease);
}
.hz:hover .hz-photo img { transform: scale(1.05); }
@media (max-width: 64rem) {
  .hz { grid-template-columns: 3.5rem minmax(0, 14rem) minmax(0, 1fr); gap: var(--sp-5); padding: var(--sp-6); }
}
@media (max-width: 50rem) {
  .hz { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hz-photo { order: -1; }
}

/* 33b. Photo-less heritage cards (stock videos to be slotted in later) */
.hz--nophoto { grid-template-columns: 4.5rem minmax(0, 1fr); }
@media (max-width: 64rem) { .hz--nophoto { grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--sp-5); padding: var(--sp-6); } }
@media (max-width: 50rem) { .hz--nophoto { grid-template-columns: 1fr; } }
.hz--nophoto .hz-no { color: var(--gold); }


/* 34. FAQ (contact page) — native <details>, no JS, content always in the DOM */
.faq { max-width: 46rem; margin: 0 auto; border-top: 1px solid var(--stone-20, #e6ddd0); }
.faq-item { border-bottom: 1px solid var(--stone-20, #e6ddd0); padding: var(--sp-4) 0; }
.faq-item summary {
  cursor: pointer; list-style: none; font-weight: 600;
  font-size: var(--text-md); color: var(--ink);
  padding-right: 2rem; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--gold, #b98a2e); font-size: var(--text-lg); line-height: 1;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  margin: var(--sp-3) 0 0; color: var(--stone);
  font-size: var(--text-sm); line-height: 1.7; max-width: 40rem;
}
.faq-item p a { color: var(--crimson, #9b1b30); text-decoration: underline; }

/* 35. Fraunces axis catch-all — any display-ish selector not caught by the
       critical <head> rule. SOFT/WONK default to 0 so letterforms never
       collide at large sizes. */
:is(h1,h2,h3,h4,h5,h6,.display,.eyebrow,.page-hero,.section-head,.moment__t,
.number__value,.card__stat,.hz-no,.hz-name,.brand__name,.mstat-num,.thermo__amount,
.footer-brand,.arch-name,.m-mini__name,.pass-name,.wall-card,.sweep-title,
.hero__title-en,.section-title,.stat__n) {
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

/* 36. RTL support for built-in i18n (Arabic / Urdu flip the page) */
html[dir="rtl"] .hz { text-align: start; }

/* 37. Pending-centre affordances (10th mosque: name/location not yet verified) */
.chip--pending { border-style: dashed; color: var(--stone); }
.chip--pending small { color: var(--stone); }
.chip--pending:hover { border-style: solid; }
.hz-photo--pending img { aspect-ratio: 4 / 3; }

/* 38. Moments showcase grid — 4-column bento mosaic, randomized tiles, no captions */
.moments--showcase { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; }
.moments--showcase .moment { aspect-ratio: auto; height: 100%; }
.moments--showcase .moment:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.moments--showcase .moment:nth-child(2) { grid-column: span 2; }
.moments--showcase .moment:nth-child(6) { grid-column: span 2; }
.moments--showcase .moment:nth-child(7) { grid-row: span 2; }
.moments--showcase .moment:nth-child(8) { grid-column: span 2; }
.moments--showcase .moment::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 40%);
  opacity: 0; transition: opacity .4s ease;
}
.moments--showcase .moment:hover::after { opacity: 1; }
.moments--showcase .moment:hover img { transform: scale(1.03); }
@media (max-width: 64rem) {
  .moments--showcase { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .moments--showcase .moment:nth-child(n) { grid-column: auto; grid-row: auto; }
  .moments--showcase .moment:nth-child(1) { grid-row: span 2; }
}
@media (max-width: 40rem) {
  .moments--showcase { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .moments--showcase .moment:nth-child(n) { grid-column: auto; grid-row: auto; }
}

/* 39. Gallery poster tiles — graphics show contain-fit + gold badge */
.gal-item--poster { position: relative; }
.gal-item--poster img { object-fit: contain; background: #101010; }
.gal-item--poster { box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .4), 0 6px 22px rgba(26, 26, 26, .08); }
.gal-item--poster:hover { box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .7), 0 18px 42px rgba(140, 28, 43, .18); }
.gal-item--poster::after {
  content: attr(data-kind);
  position: absolute; left: 8px; bottom: 8px;
  font: 600 10px/1 "Inter Tight", system-ui, sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
  color: #16130a;
  background: linear-gradient(120deg, #e8c96a, #d4af37);
  padding: 5px 9px; border-radius: 999px;
  pointer-events: none; line-height: 1;
}

/* 40. Footer logo — centered emblem above the link columns */
.footer-logo { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; pointer-events: none; z-index: 0; padding: var(--sp-6) 0; }
.footer-logo img { width: auto; height: auto; max-width: min(82vw, 540px); max-height: min(46vh, 62%); display: block; opacity: .09; }
.site-footer.footer-in .footer-logo img { animation: footLogo .9s var(--ease, ease) .15s both; }
@keyframes footLogo { from { opacity: 0; transform: scale(.96); } to { opacity: .09; transform: scale(1); } }

/* ===== Footer entrance animations (site-wide, IO adds .footer-in; static-safe without JS) ===== */
.footer-grid > div { opacity: 1; }
.site-footer.footer-in .footer-grid > div { animation: footCol .7s var(--ease, ease) both; }
.site-footer.footer-in .footer-grid > div:nth-child(2) { animation-delay: .1s; }
.site-footer.footer-in .footer-grid > div:nth-child(3) { animation-delay: .2s; }
.site-footer.footer-in .footer-grid > div:nth-child(4) { animation-delay: .3s; }
@keyframes footCol { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.site-footer.footer-in .footer-bottom { animation: footCol .6s ease .4s both; }
.footer a { transition: color .25s ease, transform .25s ease; }
.footer a:hover { color: var(--gold); transform: translateY(-2px); }
.footer-lang { transition: border-color .25s ease, color .25s ease; }
.footer-lang:hover { border-color: var(--gold); color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .site-footer.footer-in .footer-logo img, .site-footer.footer-in .footer-grid > div, .site-footer.footer-in .footer-bottom { animation: none; }
  .footer a:hover, .footer-lang:hover { transform: none; }
}

/* ===== Loading screen (all pages; auto-hides via CSS even if JS is off) ===== */
.loader { position: fixed; inset: 0; z-index: 2000; background: var(--parchment, #f7f3ea); display: grid; place-items: center; animation: loaderAuto .5s ease 2.4s forwards; }
.loader.is-done { animation: loaderDone .45s ease forwards; }
.loader__inner { display: grid; place-items: center; gap: var(--sp-4); text-align: center; }
.loader__mark { width: 84px; height: auto; animation: loaderPulse 1.6s ease-in-out infinite; }
.loader__line { width: 120px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: center; animation: loaderLine .9s var(--ease, ease) .2s forwards; }
.loader__words { margin: 0; font-family: var(--font-display); font-size: var(--text-xs); letter-spacing: .34em; text-transform: uppercase; color: var(--crimson); opacity: 0; animation: loaderWords .8s ease .35s forwards; }
@keyframes loaderAuto { to { opacity: 0; visibility: hidden; } }
@keyframes loaderDone { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes loaderPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes loaderLine { to { transform: scaleX(1); } }
@keyframes loaderWords { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .loader { animation: none; opacity: 0; visibility: hidden; }
  .loader__mark, .loader__line, .loader__words { animation: none; }
  .loader__words { opacity: 1; }
}

/* ===== Homepage marquee strip (mid-page divider) ===== */
.marquee-strip { padding: var(--sp-3) 0; }
.marquee-strip .marquee__track { animation-duration: 26s; }
.footer-grid, .footer-bottom { position: relative; z-index: 1; }

/* 41. First-year milestone band (deep-green) */
.achv { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-8); }
.achv__item {
  background: rgba(247, 243, 234, .06);
  border: 1px solid rgba(247, 243, 234, .14);
  border-radius: 18px;
  padding: var(--sp-6);
}
.achv__n {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--gold);
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
.achv__t { margin-top: var(--sp-2); font-size: var(--text-sm); line-height: 1.55; color: rgba(247, 243, 234, .88); }
@media (max-width: 64rem) { .achv { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .achv { grid-template-columns: 1fr; } }

/* 42. Milestone band motion + hero slow zoom */
.achv-band { position: relative; overflow: hidden; }
.achv-ghost {
  position: absolute; right: -2%; top: 50%;
  transform: translateY(-47%);
  font-family: var(--font-display);
  font-size: clamp(16rem, 38vw, 34rem);
  font-weight: 600; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(247, 243, 234, .07);
  pointer-events: none; user-select: none; z-index: 0;
}
.achv-band .container { position: relative; z-index: 1; }
.achv-sub {
  color: rgba(247, 243, 234, .78);
  font-size: var(--text-md);
  max-width: 42rem; margin: var(--sp-3) auto 0;
  text-align: center;
}
.achv__item {
  transition: transform .4s var(--ease, ease), background .4s var(--ease, ease),
    border-color .4s var(--ease, ease), box-shadow .4s var(--ease, ease);
}
.achv__item:hover {
  transform: translateY(-5px);
  background: rgba(247, 243, 234, .10);
  border-color: rgba(212, 175, 55, .5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}
.achv-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .055) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: achvSheen 9s var(--ease, ease) infinite;
}
@keyframes achvSheen { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@media (max-width: 40rem) { .achv-ghost { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .achv-band::after { animation: none; }
  .achv-ghost { -webkit-text-stroke: 1px rgba(247, 243, 234, .1); }
}

/* ---------- Notice band (camp / important announcements) ---------- */
.notice-band--home { padding: var(--sp-8) 0 var(--sp-4); }
.notice-band__grid {
  display: grid; grid-template-columns: 230px 1fr;
  gap: var(--sp-8); align-items: center;
  background: linear-gradient(135deg, #0E3A25 0%, #154028 48%, #0E3A25 100%);
  border: 1px solid rgba(201,151,28,.4);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-8);
  box-shadow: var(--shadow-soft);
  color: var(--parchment); position: relative; overflow: hidden;
}
.notice-band__grid::after {
  content: ""; position: absolute; inset: -40% -20%;
  background: radial-gradient(ellipse 40% 40% at 88% 8%, rgba(201,151,28,.16), transparent 65%);
  pointer-events: none;
}
.notice-band__vid {
  width: 100%; max-height: 460px; object-fit: cover;
  border-radius: var(--radius-md, 14px);
  border: 1px solid rgba(201,151,28,.5);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  background: #000; position: relative; z-index: 2;
}
.notice-band__body { position: relative; z-index: 2; }
.notice-band__pill {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(201,151,28,.4); border-radius: 999px;
  padding: .35rem 1rem; margin: 0 0 var(--sp-4);
}
.notice-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold-soft);
  animation: noticePulse 1.8s ease-out infinite;
}
@keyframes noticePulse { 0% { box-shadow: 0 0 0 0 rgba(217,178,93,.6); } 100% { box-shadow: 0 0 0 10px rgba(217,178,93,0); } }
.notice-band__grid h2 { color: var(--parchment); font-size: clamp(1.4rem, 3.2vw, 2.1rem); margin: 0; }
.notice-band__ta { color: rgba(217,178,93,.9); margin: var(--sp-2) 0 0; font-size: var(--text-base); }
.notice-band__lede { color: rgba(247,243,234,.88); margin: var(--sp-4) 0 0; max-width: 46rem; }
.notice-band__lede strong { color: var(--gold-soft); font-weight: 600; }
.notice-band__meta {
  list-style: none; margin: var(--sp-5) 0 0; padding: 0;
  display: flex; gap: var(--sp-3) var(--sp-7); flex-wrap: wrap;
}
.notice-band__meta li { font-size: var(--text-sm); color: rgba(247,243,234,.92); }
.notice-band__meta .k {
  display: block; font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-soft); margin-bottom: .15rem;
}
.notice-band__cta { margin: var(--sp-6) 0 0; }
.notice-band__cta .btn { color: var(--ink); }
@media (max-width: 56rem) {
  .notice-band__grid { grid-template-columns: 1fr; padding: var(--sp-6); }
  .notice-band__vid { max-width: 300px; margin-inline: auto; max-height: 420px; }
}
@media (prefers-reduced-motion: reduce) { .notice-dot { animation: none; } }

/* ---------- About page — official documents grid ---------- */
.docs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5); margin-top: var(--sp-8);
}
.doc-card { margin: 0; }
.doc-card button {
  position: relative; display: block; width: 100%; padding: 0; border: var(--rule);
  border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; background: var(--white);
  box-shadow: var(--shadow-soft); transition: transform .3s var(--ease), box-shadow .3s;
}
.doc-card button:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(140,28,43,.16); }
.doc-card img { display: block; width: 100%; height: auto; }
.doc-card .doc-tap {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--parchment); background: rgba(21,24,18,.72);
  border: 1px solid rgba(201,151,28,.5); border-radius: 999px; padding: .35rem 1rem; white-space: nowrap;
}
.doc-card figcaption {
  margin-top: var(--sp-3); text-align: center;
  font-size: var(--text-sm); color: var(--stone);
}
.doc-card figcaption strong { color: var(--crimson); font-weight: 600; }
.docs-note {
  text-align: center; font-size: var(--text-sm); color: var(--stone);
  margin-top: var(--sp-6);
}
.docs-note a { color: var(--crimson); font-weight: 600; }
@media (max-width: 56rem) { .docs-grid { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; } }

/* ---------- MOBILE HERO BREATHING — 2026-10-20 (client: mobile hero "space less") ---------- */
@media (max-width: 56rem) {
  .hero--bg { min-height: min(90vh, 46rem); padding-block: var(--sp-12) var(--sp-16); }
  .hero--bg .hero__kicker { margin-bottom: var(--sp-5); }
  .hero--bg .hero__tagline { margin-top: var(--sp-8); max-width: 26rem; }
  .hero--bg .hero__actions { margin-top: var(--sp-10); }
}
@media (max-width: 36rem) {
  .hero--bg { padding-block: var(--sp-12) var(--sp-24); }
  .hero--bg .hero__title-en { line-height: 1.16; }
  .hero--bg .hero-bg-dots { bottom: var(--sp-4); }
}

/* 7. Journey timeline CTAs (batch-28 — real album thumbnail chips) */
.tl-cta {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .35rem .45rem .35rem .35rem;
  border: 1px solid rgba(21, 24, 18, .12);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: .82rem; font-weight: 600; letter-spacing: .01em;
  transition: border-color .3s, transform .3s var(--ease);
}
.tl-cta__th {
  width: 2.6rem; height: 2.6rem; border-radius: 8px;
  object-fit: cover; display: block; flex: 0 0 auto;
}
.tl-cta__arr {
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--ink); font-size: .74rem; line-height: 1;
  transition: transform .4s var(--ease);
}
.tl-cta:hover { border-color: var(--gold); transform: translateY(-1px); }
.tl-cta:hover .tl-cta__arr { transform: rotate(45deg) scale(1.12); }
.tl-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .tl-cta, .tl-cta__arr { transition: none; }
  .tl-cta:hover { transform: none; }
  .tl-cta:hover .tl-cta__arr { transform: none; }
}

/* 8. Batch-28 — index event rail, mosque videos, 5-col receipts */
.achv { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 64rem) { .achv { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .achv { grid-template-columns: 1fr; } }
.ms-title {
  font-family: var(--font-display); color: #f7f3ea;
  font-size: var(--text-xl); margin: var(--sp-10) 0 var(--sp-4);
}
.ms-rail {
  display: flex; gap: var(--sp-4); overflow-x: auto;
  scroll-snap-type: x proximity; padding: 2px 2px var(--sp-4);
  scrollbar-width: thin; scrollbar-color: var(--gold) rgba(247,243,234,.12);
}
.ms-rail:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.ms-rail::-webkit-scrollbar { height: 6px; }
.ms-rail::-webkit-scrollbar-track { background: rgba(247,243,234,.12); border-radius: 99px; }
.ms-rail::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }
.ms-card {
  flex: 0 0 clamp(13rem, 22vw, 15.5rem);
  scroll-snap-align: start;
  background: rgba(247, 243, 234, .06);
  border: 1px solid rgba(247, 243, 234, .12);
  border-radius: 14px; overflow: hidden;
  color: #f7f3ea; text-decoration: none;
  transition: border-color .3s, transform .3s var(--ease);
}
.ms-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.ms-card__t { display: block; padding: .75rem .85rem .15rem; font-weight: 600; font-size: .92rem; }
.ms-card__n {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  padding: .2rem .85rem .9rem; font-size: .78rem; line-height: 1.5; color: rgba(247,243,234,.68);
}
.ms-card:hover { border-color: rgba(212,175,55,.55); transform: translateY(-2px); }
.ms-card:hover .ms-card__img { transform: scale(1.06); }
.ms-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ms-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; margin-top: var(--sp-8); }
.ms-cta .btn--outline { color: #f7f3ea; border-color: rgba(247, 243, 234, .4); }
.ms-cta .btn--outline:hover { color: var(--gold); border-color: var(--gold); }
.hz-video {
  display: flex; gap: 14px; align-items: center; margin: var(--sp-5) 0 0;
  padding: 10px 12px; background: rgba(21, 24, 18, .04);
  border: 1px solid rgba(21, 24, 18, .10); border-radius: 14px;
}
.hz-video__btn {
  position: relative; flex: 0 0 auto; width: 5.25rem; padding: 0; cursor: pointer;
  border: 0; border-radius: 10px;
  overflow: hidden; background: var(--ink, #151812);
}
.hz-video__btn img { display: block; width: 100%; height: auto; }
.hz-video__play {
  position: absolute; right: 5px; bottom: 5px;
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: rgba(21,24,18,.85); color: #fff;
  font-size: .58rem; display: grid; place-items: center;
}
.hz-video__btn:hover { outline: 2px solid var(--gold); outline-offset: 1px; }
.hz-video figcaption { font-size: .85rem; color: var(--stone); line-height: 1.5; margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .ms-card, .ms-card__img { transition: none; }
  .ms-card:hover { transform: none; }
  .ms-card:hover .ms-card__img { transform: none; }
}


/* ===== batch-32: i18n-safe header — two-tier nav, no lost navigation ===== */
/* Translated nav labels (ta/ar/ur/hi) need ~958px min-content and can never share
   the 1180px pill with brand + language switch. Instead of hiding navigation behind
   a hamburger on desktop, wrap the nav into its own centered row under a divider.
   Hamburger only where that row itself cannot fit (base <=52rem, ta 52-65rem). */

/* 1. Translated langs 52.001-64.999rem: dropdown (row would not fit one line) */
@media (max-width: 64.999rem) {
  html:is([lang="ta"],[lang="ar"],[lang="ur"],[lang="hi"]) .nav-toggle { display: inline-flex; }
  html:is([lang="ta"],[lang="ar"],[lang="ur"],[lang="hi"]) .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(247, 243, 234, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--rule);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: var(--sp-3) var(--sp-6) var(--sp-5);
    transform-origin: top center;
    animation: navdrop var(--dur-base) var(--ease-glide) both;
  }
  @keyframes navdrop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
  }
  html:is([lang="ta"],[lang="ar"],[lang="ur"],[lang="hi"]) .site-nav.is-open { display: flex; }
  html:is([lang="ta"],[lang="ar"],[lang="ur"],[lang="hi"]) .site-nav a:not(.btn) { padding: 0.8rem 0; border-bottom: var(--rule); }
  html:is([lang="ta"],[lang="ar"],[lang="ur"],[lang="hi"]) .site-nav a:not(.btn)::after { display: none; }
  html:is([lang="ta"],[lang="ar"],[lang="ur"],[lang="hi"]) .nav-cta { margin: var(--sp-3) 0 0; justify-content: center; }
}

/* 2. Two-tier desktop header: visible nav links on their own centered row.
   - ta/ar/ur/hi from 65rem up (nav row needs >=958px of the ~976px inner width)
   - EN between 52.001-71.999rem (one-row needs brand+nav+switch ~1065px, fits >=72rem) */
@media (min-width: 65rem) {
  html:is([lang="ta"],[lang="ar"],[lang="ur"],[lang="hi"]) .site-header.site-header { border-radius: 30px; }
  html:is([lang="ta"],[lang="ar"],[lang="ur"],[lang="hi"]) .site-header__inner { flex-wrap: wrap; gap: 0.3rem 1rem; }
  html:is([lang="ta"],[lang="ar"],[lang="ur"],[lang="hi"]) .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-top: 0.15rem;
    padding-top: 0.6rem;
    border-top: var(--rule);
  }
  html:is([lang="ta"],[lang="ar"],[lang="ur"],[lang="hi"]) .site-nav .nav-cta { margin-left: 0; }
}
@media (min-width: 52.001rem) and (max-width: 71.999rem) {
  html[lang="en"] .site-header.site-header { border-radius: 30px; }
  html[lang="en"] .site-header__inner { flex-wrap: wrap; gap: 0.3rem 1rem; }
  html[lang="en"] .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
    margin-top: 0.15rem;
    padding-top: 0.6rem;
    border-top: var(--rule);
  }
}

/* 3. Brand name: max 2 lines, hidden on small phones (logo carries the identity) */
.brand__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 30rem) {
  .brand__name { display: none; }
}