/* Fonts are self-hosted (SIL Open Font License) so the site works without Google Fonts. */
@font-face { font-family: "Tiro Devanagari Hindi"; font-style: normal; font-weight: 400; font-display: swap; src: url(tiro-devanagari-hindi-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tiro Devanagari Hindi"; font-style: normal; font-weight: 400; font-display: swap; src: url(tiro-devanagari-hindi-devanagari-400-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: "Tiro Devanagari Hindi"; font-style: italic; font-weight: 400; font-display: swap; src: url(tiro-devanagari-hindi-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tiro Devanagari Hindi"; font-style: italic; font-weight: 400; font-display: swap; src: url(tiro-devanagari-hindi-devanagari-400-italic.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap; src: url(mukta-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 500; font-display: swap; src: url(mukta-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 600; font-display: swap; src: url(mukta-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap; src: url(mukta-devanagari-400-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 500; font-display: swap; src: url(mukta-devanagari-500-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }

/* Shri Jayanti Devi Mandir, Jind — site styles
   Palette: aged parchment, temple maroon, muted terracotta, warm stone, antique gold. */

:root {
  --parchment: #F5EDDC;
  --parchment-deep: #EBDFC6;
  --paper: #FBF6EC;
  --stone: #CDBC9E;
  --stone-dark: #8A775F;
  --maroon: #6B1C24;
  --maroon-deep: #4A1218;
  --terracotta: #9E5537;
  --gold: #A6843D;
  --gold-soft: #CDB273;
  --ink: #33251E;
  --ink-soft: #5F4E44;
  --ivory: #F8F0E1;

  --serif: "Tiro Devanagari Hindi", "Iowan Old Style", Georgia, serif;
  --sans: "Mukta", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --text: 38rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(4.5rem, 10vw, 8.5rem);
  --header-h: 4.25rem;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; color: var(--maroon); letter-spacing: -.005em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
p { margin: 0 0 1.1em; max-width: var(--text); }
.serif { font-family: var(--serif); }
.sub { font-family: var(--serif); font-style: italic; color: var(--terracotta); font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin-top: -.3em; }
.lede { font-family: var(--serif); font-size: clamp(1.3rem, 2.3vw, 1.6rem); line-height: 1.5; color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.section + .section { padding-top: 0; }
.band { background: var(--parchment-deep); }
.band + .section, .section + .band { padding-top: var(--space); }
.skip { position: absolute; left: -999px; top: 0; background: var(--maroon); color: var(--ivory); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 3rem; padding: .7rem 1.4rem;
  font: 500 1rem/1.2 var(--sans); letter-spacing: .01em;
  text-decoration: none; border-radius: 2px;
  border: 1px solid var(--maroon); background: var(--maroon); color: var(--ivory);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); color: var(--ivory); }
.btn-quiet { background: transparent; color: var(--maroon); }
.btn-quiet:hover { background: var(--maroon); color: var(--ivory); }
.btn-light { background: var(--ivory); color: var(--maroon-deep); border-color: var(--ivory); }
.btn-light:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn-ghost-light { background: transparent; color: var(--ivory); border-color: rgba(248,240,225,.6); }
.btn-ghost-light:hover { background: var(--ivory); color: var(--maroon-deep); border-color: var(--ivory); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.textlink { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
.textlink:hover { border-color: var(--terracotta); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,237,220,.96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid rgba(138,119,95,.28);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; color: var(--maroon); white-space: nowrap; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1; }
.brand-place { font-family: var(--serif); font-style: italic; color: var(--terracotta); font-size: 1.1rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.9rem, 1.6vw, 1.6rem); }
.nav a { color: var(--ink); text-decoration: none; font-size: .98rem; padding: .35rem 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--maroon); border-color: var(--stone); }
.nav a[aria-current="page"] { color: var(--maroon); border-color: var(--gold); }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .55rem;
    background: none; border: 1px solid var(--stone); border-radius: 2px;
    font: 500 1rem var(--sans); color: var(--maroon); padding: .5rem .85rem; min-height: 2.75rem; cursor: pointer;
  }
  .menu-toggle .bars { width: 18px; height: 12px; position: relative; display: inline-block; }
  .menu-toggle .bars::before, .menu-toggle .bars::after, .menu-toggle .bars span {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s ease, opacity .2s ease;
  }
  .menu-toggle .bars::before { top: 0; } .menu-toggle .bars span { top: 5px; } .menu-toggle .bars::after { bottom: 0; }
  .menu-open .menu-toggle .bars::before { transform: translateY(5.25px) rotate(45deg); }
  .menu-open .menu-toggle .bars::after { transform: translateY(-5.25px) rotate(-45deg); }
  .menu-open .menu-toggle .bars span { opacity: 0; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--parchment);
    padding: 1.5rem var(--gutter) 6rem; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid rgba(138,119,95,.25); }
  .nav a { display: block; font-family: var(--serif); font-size: 1.6rem; padding: .85rem 0; border: 0; color: var(--maroon); }
  .nav a[aria-current="page"] { color: var(--terracotta); }
  .menu-open { overflow: hidden; }
}

/* ---------- Mobile quick bar ---------- */
.quickbar { display: none; }
@media (max-width: 760px) {
  .quickbar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--maroon-deep); border-top: 1px solid rgba(205,178,115,.35);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .quickbar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .25rem .55rem; color: var(--ivory); text-decoration: none; font-size: .85rem; line-height: 1.2; }
  .quickbar a + a { border-left: 1px solid rgba(248,240,225,.14); }
  .quickbar svg { width: 20px; height: 20px; stroke: var(--gold-soft); }
  body { padding-bottom: calc(3.6rem + env(safe-area-inset-bottom)); }
}

/* ---------- Image reveal (quiet) ---------- */
.js .reveal img, .js img.reveal { opacity: 0; transition: opacity 1.4s ease; }
.js .reveal.is-in img, .js img.reveal.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .reveal img, .js img.reveal { opacity: 1; transition: none; } }

figure { margin: 0; }
.ph { position: relative; overflow: hidden; background: var(--parchment-deep); }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88svh, 860px); display: flex; align-items: flex-end; color: var(--ivory); background: var(--maroon-deep); overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero picture img { object-position: 50% 30%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(42,10,13,.78) 0%, rgba(42,10,13,.45) 42%, rgba(42,10,13,0) 72%),
    linear-gradient(0deg, rgba(42,10,13,.7) 0%, rgba(42,10,13,0) 45%);
}
.hero .wrap { position: relative; z-index: 1; text-shadow: 0 1px 14px rgba(30,6,9,.35); padding-top: 6rem; padding-bottom: clamp(3rem, 8vw, 6rem); }
.hero h1 { color: var(--gold-soft); font-size: clamp(1.15rem, 2vw, 1.4rem); font-style: italic; margin-bottom: .9rem; }
.hero .hero-line { font-family: var(--serif); font-size: clamp(2.5rem, 6.2vw, 5.1rem); line-height: 1.04; margin: 0 0 1.4rem; max-width: 13.5em; color: var(--ivory); }
.hero .hero-line span { display: block; }
.hero p.intro { max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(248,240,225,.92); }
@media (min-width: 900px) {
  .hero picture { left: 28%; }
  .hero picture img { object-position: 50% 35%; }
  .hero::after {
    background:
      linear-gradient(90deg, var(--maroon-deep) 0%, var(--maroon-deep) 28%, rgba(74,18,24,.55) 40%, rgba(74,18,24,0) 58%),
      linear-gradient(0deg, rgba(42,10,13,.45) 0%, rgba(42,10,13,0) 35%);
  }
}
@media (max-width: 760px) {
  /* Mobile: the photograph of Maa stands clear above the words, never beneath them */
  .hero { display: block; min-height: 0; }
  .hero::after { display: none; }
  .hero picture { position: relative; display: block; height: 62svh; min-height: 22rem; }
  .hero picture img { object-position: 50% 32%; }
  .hero picture::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 35%; background: linear-gradient(0deg, var(--maroon-deep), rgba(74,18,24,0)); }
  .hero .wrap { padding-top: .5rem; margin-top: -2.5rem; padding-bottom: 3rem; text-shadow: none; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(2.7rem, 6.5vw, 5rem); line-height: 1.02; margin-bottom: .3em; }
.page-head .sub { font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.text-left { grid-template-columns: 1.05fr .95fr; }
  .split.img-left { grid-template-columns: .9fr 1.1fr; }
}

/* Arch frame — echoes the sanctum niche */
.arch { border-radius: 50% 50% 0 0 / 22% 22% 0 0; overflow: hidden; }
.arch-tall { aspect-ratio: 3 / 4; }

/* ---------- The story band ---------- */
.story { background: var(--maroon-deep); color: var(--ivory); padding: var(--space) 0; position: relative; }
.story a { color: var(--gold-soft); }
.story .opening { max-width: 40rem; margin: 0 auto; }
.story .opening .lede { color: var(--gold-soft); font-style: italic; margin-bottom: .8em; }
.story .opening p { color: rgba(248,240,225,.9); }
.story h2 { color: var(--ivory); text-align: center; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; margin: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.story h2 span { display: block; }
.story h2 span:nth-child(2) { color: var(--gold-soft); }

.stages { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 0; max-width: 64rem; }
.stage { text-align: center; position: relative; }
.stage .ph { width: min(15rem, 70vw); margin: 0 auto 1.25rem; aspect-ratio: 3/4; border: 1px solid rgba(205,178,115,.45); padding: 6px; background: transparent; }
.stage .ph img { border-radius: inherit; }
.stage .kicker { font-family: var(--serif); font-style: italic; color: var(--gold-soft); font-size: 1.15rem; display: block; margin-bottom: .2rem; }
.stage .name { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; display: block; color: var(--ivory); }
.stage .gloss { display: block; color: rgba(248,240,225,.75); font-size: 1rem; margin-top: .3rem; }
.stage-link { display: flex; justify-content: center; align-items: center; height: 4.5rem; }
.stage-link::before { content: ""; width: 1px; height: 100%; background: linear-gradient(var(--gold-soft), rgba(205,178,115,.2)); }
.stage-link::after { content: ""; position: absolute; width: 7px; height: 7px; border-right: 1px solid var(--gold-soft); border-bottom: 1px solid var(--gold-soft); transform: translateY(1.9rem) rotate(45deg); }
.stage-link { position: relative; }
@media (min-width: 860px) {
  .stages { grid-template-columns: 1fr 5rem 1fr 5rem 1fr; align-items: start; }
  .stage-link { height: auto; padding-top: 9.5rem; }
  .stage-link::before { width: 100%; height: 1px; background: linear-gradient(90deg, rgba(205,178,115,.25), var(--gold-soft)); }
  .stage-link::after { transform: translateX(calc(2.5rem - 4px)) rotate(-45deg); }
}

/* The Jaintapuri → Jind transformation */
.morph { margin: clamp(3.5rem, 8vw, 6rem) auto 0; text-align: center; font-family: var(--serif); }
.morph .from, .morph .to { display: inline-block; vertical-align: middle; }
.morph .from { font-size: clamp(2.2rem, 7vw, 5rem); line-height: 1; color: var(--ivory); letter-spacing: .01em; }
.morph .from span { display: inline-block; transition: opacity 1s ease, color 1s ease; }
.morph .arrow { display: inline-block; vertical-align: middle; width: clamp(3rem, 9vw, 7rem); height: 1px; background: var(--gold-soft); margin: 0 clamp(.75rem, 2.5vw, 2rem); position: relative; transform-origin: left center; transition: transform 1s ease; }
.morph .arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--gold-soft); border-right: 1px solid var(--gold-soft); transform: rotate(45deg); }
.morph .to { font-size: clamp(3.4rem, 12vw, 8.5rem); line-height: .9; color: var(--gold-soft); transition: opacity 1.2s ease, transform 1.2s ease; }
.morph .note { display: block; font-family: var(--sans); font-size: 1rem; color: rgba(248,240,225,.7); margin-top: 1.4rem; }
.js .morph:not(.is-in) .from span.drop { opacity: 1; }
.js .morph:not(.is-in) .arrow { transform: scaleX(0); }
.js .morph:not(.is-in) .to { opacity: 0; transform: translateY(.15em); }
.morph.is-in .from span.drop, .no-js .morph .from span.drop { opacity: .28; }
.morph.is-in .from span.keep, .no-js .morph .from span.keep { color: var(--gold-soft); }
.morph.is-in .arrow { transition-delay: 1.5s; }
.morph.is-in .to { transition-delay: 2.1s; }
@media (max-width: 640px) {
  .morph .from, .morph .to { display: block; }
  .morph .arrow { display: block; width: 1px; height: 3rem; margin: 1rem auto; transform-origin: top center; }
  .morph .arrow::after { right: -4px; top: auto; bottom: 0; transform: rotate(135deg); }
  .js .morph:not(.is-in) .arrow { transform: scaleY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .morph .from span, .morph .arrow, .morph .to { transition: none !important; }
}
.story .closing { text-align: center; max-width: 36rem; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; }
.story .closing .serif { font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.35; color: var(--ivory); margin: 0 auto 1.5rem; }
.story .today { max-width: 40rem; margin: clamp(3.5rem, 7vw, 5rem) auto 0; padding-top: 2.5rem; border-top: 1px solid rgba(205,178,115,.3); }
.story .today p { color: rgba(248,240,225,.9); }

/* Record notes: how the copy separates official record from tradition */
.record { border-left: 2px solid var(--gold); padding: .2rem 0 .2rem 1.25rem; font-size: 1.02rem; color: var(--ink-soft); max-width: var(--text); }
.story .record { color: rgba(248,240,225,.78); border-color: var(--gold-soft); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: clamp(3rem, 6vw, 4.5rem) 0 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--stone); }
.timeline li { position: relative; padding-top: 1.6rem; padding-right: 1rem; font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; color: var(--ink); }
.timeline li::before { content: ""; position: absolute; top: 2px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--parchment); border: 1px solid var(--gold); }
.timeline li.mark::before { background: var(--maroon); border-color: var(--maroon); }
.timeline a { color: inherit; text-decoration: none; }
.timeline a:hover { color: var(--terracotta); }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 1.1rem; padding-left: 1.6rem; }
  .timeline::before { left: 5px; right: auto; top: .5rem; bottom: .5rem; width: 1px; height: auto; }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -1.6rem; top: .3rem; }
}

/* ---------- Mosaic (temple photos) ---------- */
.mosaic { display: grid; gap: clamp(.75rem, 1.6vw, 1.25rem); grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(9rem, 17vw, 15rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.mosaic .ph:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.mosaic .ph:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.mosaic .ph:nth-child(3) { grid-column: span 2; }
.mosaic .ph:nth-child(4) { grid-column: span 2; }
.mosaic .ph:nth-child(5) { grid-column: span 2; }
.mosaic .ph:nth-child(6) { grid-column: span 3; grid-row: span 2; }
.mosaic .ph:nth-child(7) { grid-column: span 3; grid-row: span 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; grid-auto-flow: dense; }
  .mosaic .ph:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .mosaic .ph:nth-child(1), .mosaic .ph:nth-child(6) { grid-column: span 2; grid-row: span 1; }
  .mosaic .ph:nth-child(2) { grid-row: span 2; }
}

/* ---------- Darshan ---------- */
.darshan-card {
  background: var(--paper); border: 1px solid rgba(166,132,61,.45); outline: 1px solid rgba(166,132,61,.2); outline-offset: 6px;
  padding: clamp(1.75rem, 4.5vw, 3.5rem); display: grid; gap: 2.5rem; margin-top: 2.5rem;
}
@media (min-width: 820px) { .darshan-card { grid-template-columns: 1.1fr 1px 1fr; gap: clamp(2rem, 4vw, 3.5rem); } .darshan-card .rule { background: rgba(166,132,61,.4); } }
.darshan-card h3 { font-size: 1.5rem; margin-bottom: 1.1rem; color: var(--terracotta); }
.times { list-style: none; padding: 0; margin: 0; }
.times li { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; color: var(--maroon); margin-bottom: .4rem; white-space: nowrap; }
.season { display: grid; grid-template-columns: 5.5rem 1fr; gap: .2rem 1rem; padding: .9rem 0; border-top: 1px solid rgba(166,132,61,.3); }
.season:first-of-type { border-top: 0; padding-top: 0; }
.season dt { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.season dd { margin: 0; font-size: 1.1rem; }
.season dd b { font-weight: 600; color: var(--maroon); font-size: 1.2rem; white-space: nowrap; }
.season dd span.t { white-space: nowrap; }
@media (max-width: 480px) { .season { grid-template-columns: 1fr; } .season dd .sep { display: none; } .season dd span.t { display: block; } }
.season dd .sep { color: var(--stone-dark); margin: 0 .5rem; }

/* ---------- Festival grid ---------- */
.fest-grid { display: grid; gap: clamp(.6rem, 1.2vw, 1rem); grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(11rem, 19vw, 16.5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.fest-grid a { position: relative; display: block; overflow: hidden; color: var(--ivory); text-decoration: none; background: var(--maroon-deep); }
.fest-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s ease, opacity 1.4s ease; }
.fest-grid a:hover img { transform: scale(1.035); }
.fest-grid a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42,10,13,.85) 0%, rgba(42,10,13,.1) 50%, rgba(42,10,13,0) 70%); }
.fest-grid .label { position: absolute; left: 1.1rem; right: 1.1rem; bottom: .95rem; z-index: 1; font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.15; }
.fest-grid a:first-child { grid-column: span 2; grid-row: span 2; }
.fest-grid a:first-child .label { font-size: clamp(1.6rem, 3vw, 2.4rem); left: 1.6rem; bottom: 1.4rem; }
.fest-grid a:nth-last-child(-n+2) { grid-column: span 2; }
@media (max-width: 760px) {
  .fest-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .fest-grid a:first-child { grid-column: span 2; grid-row: span 2; }
  .fest-grid a:nth-last-child(-n+2) { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) { .fest-grid a img { transition: none; } .fest-grid a:hover img { transform: none; } }

/* ---------- Kanya Pujan ---------- */
.kanya-lead { aspect-ratio: 21 / 9; margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 760px) { .kanya-lead { aspect-ratio: 4 / 3; } }
.kanya-body { display: grid; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) { .kanya-body { grid-template-columns: 1fr 1fr; align-items: start; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 1.6vw, 1.25rem); }
.pair .ph { aspect-ratio: 3 / 4; }
.pair .ph:nth-child(2) { margin-top: 3rem; }
.news { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid rgba(138,119,95,.3); }
.news h3 { font-size: 1.35rem; color: var(--ink); }
.news-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); }
.news-row a { display: block; background: var(--paper); padding: .6rem; border: 1px solid rgba(138,119,95,.3); text-decoration: none; color: var(--ink-soft); font-size: .92rem; }
.news-row a:hover { border-color: var(--gold); }
.news-row .ph { aspect-ratio: 4 / 5; }
.news-row .ph img { object-position: top; }
.news-row span { display: block; padding-top: .5rem; }
@media (max-width: 600px) { .news-row { grid-template-columns: repeat(3, 70vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; } .news-row a { scroll-snap-align: start; } }

/* ---------- Seva & donation ---------- */
.seva-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (min-width: 900px) { .seva-grid { grid-template-columns: 1.1fr .9fr; } }
.donate {
  background: var(--paper); border: 1px solid rgba(166,132,61,.45);
  padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center;
}
.donate h3 { margin-bottom: .1rem; }
.donate .scan { font-family: var(--serif); font-style: italic; color: var(--terracotta); font-size: 1.25rem; margin: 0 auto 1.25rem; }
.donate .qr { width: min(17rem, 100%); margin: 0 auto; background: #fff; padding: .5rem; border: 1px solid rgba(138,119,95,.3); }
.donate dl { margin: 1.5rem auto 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; text-align: left; font-size: 1rem; max-width: 22rem; }
.donate dt { color: var(--stone-dark); }
.donate dd { margin: 0; color: var(--ink); word-break: break-word; font-weight: 500; }
.donate .upi-btn { margin-top: 1.25rem; }
.donate .fine { font-size: .9rem; color: var(--ink-soft); margin: 1rem auto 0; }
@media (min-width: 761px) { .donate .upi-btn { display: none; } }
.serve-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0 2rem; }
.serve-list li { font-family: var(--serif); font-size: 1.3rem; padding: .85rem 0; border-bottom: 1px solid rgba(138,119,95,.3); color: var(--maroon); }

/* ---------- Visit ---------- */
.visit-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: .9fr 1.1fr; } }
.address { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.35; color: var(--ink); margin: 0 0 1.25rem; font-style: normal; }
.address strong { font-weight: 400; color: var(--maroon); display: block; }
.map { min-height: 22rem; border: 1px solid rgba(138,119,95,.35); background: var(--parchment-deep); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.18) saturate(.9); }
.ways { display: grid; gap: 1.5rem; margin: 2rem 0 0; }
.ways h3 { font-size: 1.35rem; margin-bottom: .25rem; color: var(--terracotta); }
.ways p { margin: 0 0 .3em; }
.phones { list-style: none; padding: 0; margin: 0 0 1rem; }
.phones a { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); text-decoration: none; color: var(--maroon); }
.phones a:hover { color: var(--terracotta); }
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.6rem, 1.4vw, 1rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.gallery-strip .ph { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { .gallery-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- Long-form pages ---------- */
.prose { max-width: var(--text); }
.prose h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.pull { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.3; color: var(--maroon); max-width: 30rem; margin: 2.2rem 0; padding-left: 1.5rem; border-left: 2px solid var(--gold); }
.chapters { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.chapter { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .chapter { grid-template-columns: 12rem 1fr; gap: 3rem; } }
.chapter .era { font-family: var(--serif); font-style: italic; color: var(--terracotta); font-size: 1.35rem; padding-top: .35rem; border-top: 1px solid var(--gold); align-self: start; }
.chapter h2 { margin-top: 0; }
.figure-wide { margin: clamp(2.5rem, 6vw, 4rem) 0; }
.figure-wide .ph { aspect-ratio: 16 / 8; }
@media (max-width: 760px) { .figure-wide .ph { aspect-ratio: 4 / 3; } }

.fest-section { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid rgba(138,119,95,.28); }
.fest-section:first-of-type { border-top: 0; }
@media (min-width: 900px) {
  .fest-section { grid-template-columns: 1fr 1fr; }
  .fest-section:nth-of-type(even) .fest-media { order: 2; }
}
.fest-media { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.fest-media .ph { aspect-ratio: 4 / 3; }
.fest-media .ph:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.fest-media.single .ph:first-child { aspect-ratio: 4 / 3; }

.jind-word { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--maroon); line-height: 1.2; margin: 2rem 0 0; max-width: 26rem; }
.morph-light { background: var(--maroon-deep); color: var(--ivory); padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); margin: clamp(2.5rem, 5vw, 3.5rem) 0; }
.morph-light .morph { margin-top: 0; }

.closing-words { text-align: center; max-width: 34rem; margin: 0 auto; }
.closing-words p { margin-left: auto; margin-right: auto; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.5; }
.closing-words h2 { margin-bottom: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-deep); color: rgba(248,240,225,.85); padding: clamp(3.5rem, 7vw, 5rem) 0 2.5rem; font-size: 1rem; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-name { font-family: var(--serif); font-size: 1.6rem; color: var(--ivory); margin: 0 0 .5rem; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.foot-nav { columns: 2; column-gap: 2rem; }
.jmd { max-width: none; text-align: center; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--gold-soft); margin: clamp(3rem, 6vw, 4rem) 0 .75rem; line-height: 1.3; }
.foot-base { max-width: none; text-align: center; font-size: .85rem; color: rgba(248,240,225,.55); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Hindi content ---------- */
[lang="hi"] { line-height: 1.85; }
.hi-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.4; }
.hi-prose p { font-size: 1.18rem; max-width: 40rem; }
.hi-sub { font-style: normal; }
.hi-line { font-family: var(--serif); font-size: 1.35rem; color: var(--maroon); margin-bottom: .2rem; max-width: 40rem; }
.en-line { color: var(--ink-soft); font-size: 1rem; }
.slogan { font-family: var(--serif); color: var(--maroon); font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.6; margin: 1.75rem 0 0; padding-left: 1.25rem; border-left: 2px solid var(--gold); }
.translation { margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid rgba(138,119,95,.3); max-width: 40rem; }
.translation summary { cursor: pointer; color: var(--maroon); font-weight: 500; list-style-position: outside; }
.translation summary:hover { color: var(--terracotta); }
.translation[open] summary { margin-bottom: 1rem; }
.translation p { font-size: 1.02rem; color: var(--ink-soft); }
.serve-list li .en { display: block; font-family: var(--sans); font-size: .95rem; line-height: 1.4; color: var(--ink-soft); margin-top: .1rem; }
.serve-list li [lang="hi"] { line-height: 1.5; }
.events-list { list-style: none; padding: 0; margin: 0; }
.events-list li { padding: 1rem 0; border-bottom: 1px solid rgba(138,119,95,.28); }
.events-list li:first-child { padding-top: .2rem; }
.events-list .hi { display: block; font-size: 1.25rem; line-height: 1.7; color: var(--ink); }
.events-list .en { display: block; font-size: 1rem; color: var(--ink-soft); margin-top: .15rem; }
.events-list.feature li { border-bottom: 0; }
.events-list.feature .hi { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.5; color: var(--maroon); }
.timeline-7 { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 760px) { .timeline-7 { grid-template-columns: 1fr; } }
@media (max-width: 899px) { .chapter { gap: .6rem; } }
