/* Hallmark · macrostructure: Marquee Hero · tone: sacred-luxurious · anchor hue: lamp-gold 83 / saffron 50
 * theme: custom · vibe: "night darshan, black granite, lamp-gold, saffron cloth"
 * paper oklch(15% 0.018 45) · accent oklch(82% 0.125 83) gold · type: Anek Telugu for everything, Telugu and English (owner choice, 2026-11-16)
 * axes: dark / high-contrast-serif / warm · nav: N9 edge-aligned (transparent → solid) · footer: Ft5 statement
 * enrichment: real photograph (Real-ESRGAN 2x) + photo brass lamps with animated real flames + light rays + CSS petals · polish: impeccable pass 2026-11-16
 * Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V5
 */
@import url("tokens.css?v=20261117m");

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 76px; }
a { color: var(--color-gold); }
button, input { font-family: var(--font-body); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
[lang="te"] { font-family: var(--font-body); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-md); top: -100px; z-index: 30; background: var(--color-gold); color: var(--color-paper); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-sm); }
.skip:focus { top: var(--space-md); }

.wrap { width: min(1180px, 100% - 2 * var(--space-lg)); margin-inline: auto; }

/* ---------- Header ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-md) clamp(var(--space-md), 4vw, var(--space-2xl));
  transition: background-color var(--dur-long) var(--ease-out), border-color var(--dur-long) var(--ease-out);
  border-bottom: var(--rule-thin) solid transparent;
}
.topbar.is-solid { background: var(--color-veil); border-bottom-color: var(--color-rule-soft); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; color: var(--color-ink); min-width: 0; }
.brand-text { display: grid; line-height: 1.15; min-width: 0; }
.brand-te { font-family: var(--font-display-te); font-size: 1.05rem; color: var(--color-gold); white-space: nowrap; }
.brand-en { font-size: var(--text-xs); letter-spacing: 0.08em; color: var(--color-ink-soft); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(var(--space-md), 2vw, var(--space-xl)); }
.nav-links { display: flex; gap: clamp(var(--space-md), 2vw, var(--space-xl)); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--color-ink-soft); text-decoration: none; font-size: var(--text-sm); white-space: nowrap; padding: var(--space-xs) 0; display: inline-block; transition: color var(--dur-short) var(--ease-out); }
.nav-links a:hover { color: var(--color-gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 44px; padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-pill); border: var(--rule-thin) solid var(--color-gold);
  font: 600 var(--text-sm)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  color: var(--color-paper); background: var(--color-gold);
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); background: var(--color-ivory); border-color: var(--color-ivory); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--color-gold); }
.btn--ghost:hover { background: var(--color-gold); color: var(--color-paper); border-color: var(--color-gold); }
.btn--wa { background: var(--color-wa); border-color: var(--color-wa); color: var(--color-ivory); }
.btn--wa:hover { background: var(--color-ivory); border-color: var(--color-ivory); color: var(--color-paper); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  border-bottom: var(--rule-thin) solid var(--color-rule);
  min-height: 100svh;
  display: grid; align-items: end;
  overflow: clip;
  background: var(--color-paper);
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, var(--color-veil), var(--color-veil-0));
}
.hero-photo {
  position: absolute; inset: 0 0 0 auto; width: min(62%, 980px); z-index: -2;
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%), linear-gradient(to top, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to left, #000 55%, transparent 100%), linear-gradient(to top, transparent 0%, #000 22%);
  mask-composite: intersect;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  transform: scale(1.07); transform-origin: 50% 30%;
  animation: settle 5200ms var(--ease-out) forwards;
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1; background: var(--color-paper); pointer-events: none;
  animation: dawn var(--dur-dawn) var(--ease-in-out) 200ms forwards;
}
.hero-lamp {
  position: absolute; left: 50%; top: 79%; width: 46%; aspect-ratio: 1.6; translate: -50% -50%;
  background: radial-gradient(closest-side, var(--color-glow), var(--color-glow-far));
  mix-blend-mode: screen; opacity: 0; pointer-events: none;
  animation: lamp-in 1600ms var(--ease-out) 2200ms forwards, flicker 3800ms var(--ease-in-out) 3800ms infinite alternate;
}
.petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: clip; }
.petal {
  position: absolute; top: -6%; left: var(--x);
  width: calc(10px * var(--s, 1)); height: calc(16px * var(--s, 1));
  border-radius: 80% 10% 80% 10%;
  background: linear-gradient(140deg, var(--color-gold), var(--color-saffron));
  opacity: 0;
  animation: fall var(--d, 16s) linear var(--delay, 0s) infinite;
}
.petal:nth-child(3n) { background: linear-gradient(140deg, var(--color-saffron), var(--color-kumkum)); }

.hero-copy {
  position: relative; z-index: 2;
  padding: var(--space-4xl) clamp(var(--space-md), 5vw, var(--space-3xl)) clamp(var(--space-2xl), 8vh, var(--space-4xl));
  max-width: 820px;
}
.hero-chant { margin: 0 0 var(--space-md); font-family: var(--font-display-te); color: var(--color-saffron); font-size: var(--text-lg); letter-spacing: 0.04em; }
.hero h1 { margin: 0; font-weight: 400; }
.h-te {
  display: block; font-family: var(--font-display-te); font-size: var(--text-display);
  line-height: 1.12; color: var(--color-ivory); overflow-wrap: anywhere; min-width: 0;
}
.h-te .w { display: inline-block; }
.h-te .gold { color: var(--color-gold); }
.h-en {
  display: block; margin-top: var(--space-sm);
  font-family: var(--font-display-en); font-weight: 600; font-style: normal;
  font-size: var(--text-2xl); letter-spacing: 0.02em; color: var(--color-gold);
}
.hero-note { margin: var(--space-xl) 0 0; padding-top: var(--space-md); border-top: var(--rule-thin) solid var(--color-rule); color: var(--color-ink-soft); font-size: var(--text-sm); max-width: 34rem; }
.hero-note b { color: var(--color-ink); font-weight: 600; }
.rv { opacity: 0; transform: translateY(14px); animation: rise 1100ms var(--ease-out) forwards; animation-delay: calc(1100ms + var(--i, 0) * 160ms); }

@keyframes dawn   { to { opacity: 0; } }
@keyframes settle { to { transform: scale(1); } }
@keyframes rise   { to { opacity: 1; transform: none; } }
@keyframes lamp-in { to { opacity: 0.85; } }
@keyframes flicker { 0% { opacity: 0.85; transform: scale(1); } 50% { opacity: 0.62; } 100% { opacity: 0.95; transform: scale(1.04); } }
@keyframes fall {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg); }
  8%   { opacity: 0.9; }
  85%  { opacity: 0.75; }
  100% { opacity: 0; transform: translate3d(var(--drift, 40px), 108svh, 0) rotate(var(--spin, 300deg)); }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-4xl) 0; position: relative; }
main > .section + .section { border-top: var(--rule-thin) solid var(--color-rule-soft); }
.sec-head { margin: 0 0 var(--space-2xl); }
.sec-head h2 { margin: 0; font-weight: 400; }
.t-te { display: block; font-family: var(--font-display-te); font-size: var(--text-3xl); color: var(--color-ivory); line-height: 1.2; overflow-wrap: anywhere; }
.t-en { display: block; margin-top: var(--space-2xs); font-family: var(--font-display-en); font-weight: 600; font-size: var(--text-xl); color: var(--color-gold); letter-spacing: 0.02em; }
.lede { color: var(--color-ink-soft); max-width: 40rem; margin: var(--space-md) 0 0; }
.en { display: block; color: var(--color-ink-mute); font-size: var(--text-sm); margin-top: var(--space-2xs); }

/* Darshan: panchangam-style ledger */
.darshan { background: var(--color-paper-2); }
.ledger { margin: 0; display: grid; }
.ledger-row {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; gap: var(--space-lg); align-items: baseline;
  padding: var(--space-xl) 0; border-top: var(--rule-thin) solid var(--color-rule);
}
.ledger-row:last-child { border-bottom: var(--rule-thin) solid var(--color-rule); }
.ledger dt { font-family: var(--font-display-te); font-size: var(--text-xl); color: var(--color-gold); line-height: 1.3; }
.ledger dt .en { font-family: var(--font-display-en); font-size: var(--text-base); font-weight: 600; letter-spacing: 0.03em; }
.ledger dd { margin: 0; }
.ledger .when { font-family: var(--font-display-en); font-weight: 600; font-size: var(--text-2xl); color: var(--color-ivory); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.ledger .what { color: var(--color-ink); }
.flag { display: inline-block; margin-top: var(--space-xs); font-size: var(--text-xs); color: var(--color-saffron); border: var(--rule-thin) solid currentColor; border-radius: var(--radius-pill); padding: var(--space-2xs) var(--space-sm); }

/* Swamy */
.swamy-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(var(--space-xl), 6vw, var(--space-4xl)); align-items: center; }
.swamy-figure { margin: 0; position: relative; }
.swamy-figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 50% 50% var(--radius-md) var(--radius-md) / 34% 34% var(--radius-md) var(--radius-md); }
.swamy-figure::after {
  content: ""; position: absolute; inset: -10px; border: var(--rule-thin) solid var(--color-rule);
  border-radius: 50% 50% var(--radius-md) var(--radius-md) / 34% 34% var(--radius-md) var(--radius-md); pointer-events: none;
}
.swamy-figure figcaption { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-ink-mute); }
.facts { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; gap: var(--space-lg); }
.facts li { padding-left: var(--space-xl); position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 10px; rotate: 45deg; background: var(--color-gold); }
.facts b { color: var(--color-ivory); font-weight: 600; }
.more { margin: var(--space-xl) 0 0; }
.more a { color: var(--color-gold); text-decoration: none; font-size: var(--text-lg); display: inline-block; white-space: nowrap; padding: var(--space-xs) 0; }
.more a:hover { color: var(--color-ivory); }
.more .en { font-size: var(--text-sm); }
.note-soon { margin-top: var(--space-xl); padding: var(--space-md) var(--space-lg); border: var(--rule-thin) dashed var(--color-rule); border-radius: var(--radius-md); color: var(--color-ink-mute); font-size: var(--text-sm); }


/* Temple courtyard band */
.temple { border-top: var(--rule-thin) solid var(--color-rule-soft); padding-bottom: var(--space-4xl); }
.temple-figure { margin: 0; position: relative; }
.temple-figure img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 18%; }
@media (max-width: 768px) { .temple-figure img { aspect-ratio: 4 / 5; object-position: 46% 30%; } }
.temple-figure::after { content: ""; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(to top, var(--color-paper), var(--color-veil-0)); pointer-events: none; }
.temple-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(var(--space-xl), 6vw, var(--space-4xl)); align-items: start; margin-top: calc(-1 * var(--space-2xl)); position: relative; }
.consecration { border-left: var(--rule-thin) solid var(--color-rule); padding-left: var(--space-xl); }
.consecration p { margin: 0; }
.consecration .date { font-family: var(--font-display-en); font-weight: 600; font-size: var(--text-3xl); color: var(--color-gold); line-height: 1.05; margin-bottom: var(--space-sm); font-variant-numeric: lining-nums; }
.consecration .date span { color: var(--color-ivory); }
.consecration .note-soon { margin-top: var(--space-xl); }
.dedication { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: var(--rule-thin) solid var(--color-rule-soft); }
.dedication p { color: var(--color-ink-soft); }
.dedication b { color: var(--color-ivory); font-weight: 600; }
.dedication .en b { color: var(--color-ink); }
@media (max-width: 900px) {
  .temple-body { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .consecration { border-left: 0; padding-left: 0; border-top: var(--rule-thin) solid var(--color-rule); padding-top: var(--space-lg); }
}

/* Puja */
.puja { text-align: left; background: radial-gradient(120% 90% at 85% 0%, var(--color-paper-3), var(--color-paper) 70%); }
.puja-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: end; }
.phone { font-family: var(--font-display-en); font-weight: 600; font-size: var(--text-3xl); color: var(--color-ivory); line-height: 1.1; white-space: nowrap; font-variant-numeric: lining-nums; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }

/* Visit */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(var(--space-xl), 5vw, var(--space-3xl)); align-items: start; }
.address { font-style: normal; font-size: var(--text-lg); color: var(--color-ink); line-height: 1.6; }
.plus { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-ink-mute); }
.plus code { font-family: var(--font-body); color: var(--color-gold); }
.map { margin: 0; }
.map-link { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; border: var(--rule-thin) solid var(--color-rule); background: var(--color-paper-2); aspect-ratio: 4 / 3; }
.map-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.map-cta {
  position: absolute; left: 50%; bottom: var(--space-md); translate: -50% 0; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-lg); border-radius: var(--radius-pill);
  background: var(--color-gold); color: var(--color-paper); font-weight: 600; font-size: var(--text-sm);
  transition: transform var(--dur-micro) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .map-link:hover img { transform: scale(1.03); } }
.map-link:active .map-cta { transform: scale(0.97); }
.map-credit { margin-top: var(--space-xs); font-size: var(--text-xs); color: var(--color-ink-mute); }
.map-credit a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .map-link img { transition: none; } .map-link:hover img { transform: none; } }

/* Footer */
.footer { padding: var(--space-3xl) 0 var(--space-xl); border-top: var(--rule-thin) solid var(--color-rule); }
.footer-statement { font-family: var(--font-display-te); font-size: var(--text-2xl); color: var(--color-gold); margin: 0; line-height: 1.3; }
.footer-statement .en { font-family: var(--font-display-en); font-weight: 600; font-size: var(--text-lg); color: var(--color-ink-soft); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-thin) solid var(--color-rule-soft); font-size: var(--text-sm); color: var(--color-ink-mute); }
.footer-row ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: 0; padding: 0; }
.footer-row a { color: var(--color-ink-soft); text-decoration: none; display: inline-block; padding: var(--space-xs) 0; white-space: nowrap; }
.footer-row a:hover { color: var(--color-gold); }
.credit { color: inherit; }
.credit strong { font-weight: 600; }


/* ---------- Hanuman page ---------- */
.nav-links a[aria-current="page"] { color: var(--color-gold); }
.page-hero { position: relative; isolation: isolate; min-height: 78svh; display: grid; align-items: end; overflow: clip; border-bottom: var(--rule-thin) solid var(--color-rule); }
.page-hero-photo { position: absolute; inset: 0 0 0 auto; width: min(52%, 760px); z-index: -2;
  -webkit-mask-image: linear-gradient(to left, #000 50%, transparent 100%); mask-image: linear-gradient(to left, #000 50%, transparent 100%); }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 3%; transform: scale(1.06); animation: settle 5200ms var(--ease-out) forwards; }
.page-hero-copy { position: relative; z-index: 2; padding: var(--space-4xl) clamp(var(--space-md), 5vw, var(--space-3xl)) var(--space-3xl); max-width: 760px; }
.page-hero h1 { margin: 0; font-weight: 400; }
.crumbs { font-size: var(--text-sm); color: var(--color-ink-mute); margin-bottom: var(--space-lg); }
.crumbs a { color: var(--color-ink-soft); text-decoration: none; display: inline-block; padding: var(--space-xs) 0; }
.crumbs a:hover { color: var(--color-gold); }
.who-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(var(--space-xl), 6vw, var(--space-4xl)); align-items: start; }
.names { margin: 0; display: grid; gap: 0; }
.names > div { padding: var(--space-lg) 0; border-top: var(--rule-thin) solid var(--color-rule); }
.names > div:last-child { border-bottom: var(--rule-thin) solid var(--color-rule); }
.names dt { font-family: var(--font-display-te); font-size: var(--text-xl); color: var(--color-gold); line-height: 1.3; }
.names dd { margin: var(--space-2xs) 0 0; }
.stories { background: var(--color-paper-2); }
.story-list { list-style: none; margin: 0; padding: 0; position: relative; max-width: 860px; }
.story-list::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: var(--rule-thin); background: var(--color-rule); }
.story { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-xl); padding-bottom: var(--space-2xl); position: relative; }
.story:last-child { padding-bottom: 0; }
.story-icon { width: 56px; height: 56px; padding: 10px; border-radius: 50%; background: var(--color-paper); border: var(--rule-thin) solid var(--color-rule);
  fill: none; stroke: var(--color-gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; position: relative; }
.story h3, .worship h3 { margin: 0 0 var(--space-sm); font-weight: 400; }
.s-te { display: block; font-family: var(--font-display-te); font-size: var(--text-xl); color: var(--color-ivory); line-height: 1.35; }
.s-en { display: block; font-family: var(--font-display-en); font-weight: 600; font-size: var(--text-lg); color: var(--color-gold); }
.story p { margin: 0; max-width: 42rem; }
.story .src { margin-top: var(--space-sm); font-size: var(--text-xs); color: var(--color-ink-mute); letter-spacing: 0.04em; }
.qualities .ledger-row { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
.worship { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) clamp(var(--space-xl), 5vw, var(--space-3xl)); }
.worship li { padding-top: var(--space-lg); border-top: var(--rule-thin) solid var(--color-rule); }
.worship p { margin: 0; }
.tradition { display: inline-block; font-family: var(--font-body); font-size: var(--text-xs); color: var(--color-saffron); border: var(--rule-thin) solid currentColor; border-radius: var(--radius-pill); padding: var(--space-2xs) var(--space-sm); line-height: 1.3; vertical-align: middle; }
.worship h3 .tradition { margin-top: var(--space-xs); }
.src-note { padding: var(--space-2xl) 0; color: var(--color-ink-mute); font-size: var(--text-sm); }
.src-note p { margin: 0; max-width: 48rem; }
@media (max-width: 900px) {
  .who-grid, .worship { grid-template-columns: minmax(0, 1fr); }
  .qualities .ledger-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .page-hero { min-height: 88svh; }
  .page-hero-photo { width: 100%; inset: 0 0 auto 0; height: 62svh; -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 40%); mask-image: linear-gradient(to top, transparent 0%, #000 40%); }
  .page-hero-copy { padding-top: 54svh; }
  .story { grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-md); }
  .story-icon { width: 44px; height: 44px; padding: 8px; }
  .story-list::before { left: 21px; }
}
@media (prefers-reduced-motion: reduce) { .page-hero-photo img { animation: none; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .swamy-grid, .puja-inner, .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .swamy-figure { max-width: 420px; }
  .ledger-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); padding: var(--space-lg) 0; }
}
@media (max-width: 768px) {
  .hero-photo { width: 100%; inset: 0 0 auto 0; height: 70svh; -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 34%); mask-image: linear-gradient(to top, transparent 0%, #000 34%); }
  .hero-photo img { object-position: 50% 12%; }
  .hero-lamp { top: 70%; width: 90%; }
  .hero-copy { padding-top: 60svh; padding-bottom: var(--space-2xl); }
  .hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; z-index: 1; pointer-events: none;
    background: linear-gradient(to top, var(--color-paper) 30%, var(--color-veil-0)); height: 48%; }
  .h-te { font-size: clamp(2.5rem, 1rem + 8vw, 3.6rem); }
  .section { padding: var(--space-3xl) 0; }
  .brand-en { display: none; }
}
@media (max-width: 380px) {
  .topbar .btn { padding-inline: var(--space-md); }
  .phone { font-size: var(--text-2xl); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-veil { animation: dawn 150ms linear forwards; }
  .hero-photo img { animation: none; transform: none; }
  .hero-lamp { animation: none; opacity: 0.8; }
  .petals { display: none; }
  .rv { animation: rise-fade 150ms linear forwards; animation-delay: 0ms; transform: none; }
  @keyframes rise-fade { to { opacity: 1; } }
  .btn, .topbar, .nav-links a { transition: none; }
}

/* ---------- Brand lockup: gada badge + engraved name ---------- */
.brand { gap: var(--space-sm); }
.brand-logo {
  position: relative; width: 56px; height: 56px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, var(--gada-badge-in), var(--gada-badge-out) 78%);
  border: var(--rule-thin) solid var(--gada-ring);
  animation: badge-in 900ms var(--ease-out) 100ms both;
}
.brand-glow {
  position: absolute; inset: -55%; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, var(--gada-glow), var(--gada-glow-0));
  opacity: 0; animation: glow-in 1200ms var(--ease-out) 500ms forwards, gada-breathe 5200ms var(--ease-in-out) 1700ms infinite alternate;
}
.badge-ring { position: absolute; inset: 3px; border-radius: 50%; border: var(--rule-thin) dashed var(--gada-ring); opacity: 0.4; animation: spin 40s linear infinite; }
.brand-gada {
  position: relative; width: 46px; height: 46px;
  animation: gada-float 6000ms var(--ease-in-out) 1000ms infinite alternate;
  transition: transform var(--dur-short) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-glow { opacity: 0.95; }
  .brand:hover .brand-logo { border-color: var(--color-gold); }
}
.brand:active .brand-logo { transform: scale(0.96); }

.brand-te { font-size: 1.12rem; letter-spacing: 0.01em; line-height: 1.25; }
.bw {
  display: inline-block;
  background-image: linear-gradient(100deg, var(--gada-mid) 0%, var(--gada-gold) 38%, var(--gada-hi) 50%, var(--gada-gold) 62%, var(--gada-mid) 100%);
  background-size: 320% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(6px);
  animation: bw-in 900ms var(--ease-out) calc(450ms + var(--i) * 110ms) forwards, bw-sheen 9000ms var(--ease-in-out) calc(2600ms + var(--i) * 140ms) infinite;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) { .bw { color: var(--color-gold); background: none; } }
.brand-en {
  display: block; margin-top: 3px; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--color-ink-mute);
  opacity: 0; animation: bw-in 900ms var(--ease-out) 1000ms forwards;
}

@keyframes badge-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes gada-float { from { transform: translateY(-1px) rotate(-3deg); } to { transform: translateY(1px) rotate(3deg); } }
@keyframes glow-in { to { opacity: 0.4; } }
@keyframes gada-breathe { from { opacity: 0.25; transform: scale(0.94); } to { opacity: 0.55; transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bw-in { to { opacity: 1; transform: none; } }
@keyframes bw-sheen { 0%, 80% { background-position: 100% 0; } 100% { background-position: 0% 0; } }

@media (prefers-reduced-motion: reduce) {
  .brand-logo, .brand-gada, .badge-ring { animation: none; }
  .brand-glow { animation: none; opacity: 0.5; }
  .bw { animation: gada-fade 150ms linear forwards; transform: none; }
  .brand-en { animation: gada-fade 150ms linear forwards; }
  @keyframes gada-fade { from { opacity: 0; } to { opacity: 1; } }
}
@media (max-width: 440px) { .brand-te { font-size: 1rem; } .brand-logo { width: 46px; height: 46px; } .brand-gada { width: 38px; height: 38px; } }
@media (max-width: 768px) { .brand-en { display: none; } }

/* ---------- Gallery ---------- */
.g-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 190px; grid-auto-flow: dense; gap: var(--space-sm); }
.g-item.g-p { grid-row: span 2; }
.g-item.g-wide { grid-column: span 2; }
.g-item a { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: var(--radius-sm); background: var(--color-paper-2); outline-offset: 3px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.g-cap {
  position: absolute; inset: auto 0 0 0; padding: var(--space-xl) var(--space-md) var(--space-sm);
  background: linear-gradient(to top, var(--color-veil), var(--color-veil-0));
  display: grid; line-height: 1.35; pointer-events: none;
}
.g-te { font-size: var(--text-sm); color: var(--color-ivory); }
.g-en { font-size: var(--text-xs); color: var(--color-ink-soft); }
@media (hover: hover) and (pointer: fine) {
  .g-item a:hover img { transform: scale(1.045); }
}
.g-item a:active img { transform: scale(0.985); }

.lightbox {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: var(--color-veil); color: var(--color-ink);
  opacity: 1; transform: none;
  transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), overlay var(--dur-short) allow-discrete, display var(--dur-short) allow-discrete;
}
.lightbox:not([open]) { opacity: 0; transform: scale(0.97); }
@starting-style { .lightbox[open] { opacity: 0; transform: scale(0.97); } }
.lightbox::backdrop { background: var(--color-paper); opacity: 0.85; }
.lb-figure { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; padding: var(--space-3xl) var(--space-3xl) var(--space-lg); gap: var(--space-md); }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); transition: opacity 180ms var(--ease-out); }
.lb-img.is-swapping { opacity: 0; }
.lb-cap { text-align: center; display: grid; gap: 2px; }
.lb-te { font-family: var(--font-display-te); font-size: var(--text-lg); color: var(--color-gold); }
.lb-en { font-size: var(--text-sm); color: var(--color-ink-soft); }
.lb-count { font-size: var(--text-xs); color: var(--color-ink-mute); letter-spacing: 0.1em; margin-top: var(--space-2xs); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--color-paper-3); border: var(--rule-thin) solid var(--color-rule); color: var(--color-gold);
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:hover { background: var(--color-paper-2); }
.lb-btn:active { transform: scale(0.94); }
.lb-close { top: var(--space-md); right: var(--space-md); }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { left: var(--space-md); } .lb-next { right: var(--space-md); }
@media (max-width: 900px) {
  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
}
@media (max-width: 600px) {
  .lb-figure { padding: var(--space-3xl) var(--space-sm) calc(var(--space-3xl) + var(--space-md)); }
  .lb-prev, .lb-next { top: auto; bottom: var(--space-md); translate: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) {
  .g-item img, .lightbox, .lb-img { transition: opacity 150ms linear; }
  .g-item a:hover img, .g-item a:active img { transform: none; }
  .lightbox:not([open]) { transform: none; }
  @starting-style { .lightbox[open] { transform: none; } }
}

/* ---------- Divine gada showcase (Hanuman page) ---------- */
.gada-sec { overflow: clip; }
.gada-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(var(--space-xl), 6vw, var(--space-4xl)); align-items: center; }
.gada-copy .src { margin-top: var(--space-lg); font-size: var(--text-xs); color: var(--color-ink-mute); }
.gada-stage { position: relative; margin: 0; aspect-ratio: 4 / 5; display: grid; place-items: center; isolation: isolate; transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.gada-stage.is-in { opacity: 1; transform: none; }
.gs-glow { position: absolute; inset: 6% 4%; border-radius: 50%; z-index: -2; background: radial-gradient(closest-side, var(--gada-glow), var(--gada-glow-0)); animation: breathe 6s var(--ease-in-out) infinite alternate; }
.gs-disc {
  position: absolute; width: 92%; aspect-ratio: 1; border-radius: 50%; z-index: -1;
  border: var(--rule-thin) solid var(--gada-ring);
  box-shadow: 0 0 0 28px var(--gada-ring-soft), 0 0 0 60px var(--gada-ring-faint);
  animation: breathe 7s var(--ease-in-out) infinite alternate;
}
.gs-disc::before, .gs-disc::after { content: ""; position: absolute; border-radius: 50%; }
.gs-disc::before { inset: 5%; border: var(--rule-thin) dashed var(--gada-ring); animation: spin 80s linear infinite; }
.gs-disc::after { inset: 14%; border: var(--rule-thin) solid var(--gada-ring-soft); animation: spin 120s linear infinite reverse; }
.gs-sparks { position: absolute; inset: 0; pointer-events: none; }
.gs-spark { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px 2px var(--gada-glow); opacity: 0; animation: twinkle 5s var(--ease-in-out) infinite; }
.gs-mace-wrap { position: relative; height: 92%; display: grid; place-items: center; transition: transform 700ms var(--ease-out); }
.gs-mace { height: 100%; width: auto; animation: float 7s var(--ease-in-out) infinite; }
@keyframes float { 0%, 100% { transform: translateY(-10px) rotate(-1.1deg); } 50% { transform: translateY(12px) rotate(1.1deg); } }
@keyframes breathe { from { opacity: 0.65; transform: scale(0.97); } to { opacity: 1; transform: scale(1.04); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.5); } 50% { opacity: 0.9; transform: scale(1.5); } }
@media (max-width: 900px) {
  .gada-grid { grid-template-columns: minmax(0, 1fr); }
  .gada-stage { order: -1; width: min(100%, 420px); margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gada-stage { transition: opacity 150ms linear; transform: none; }
  .gs-glow, .gs-disc, .gs-disc::before, .gs-disc::after, .gs-mace, .gs-spark { animation: none; }
  .gs-mace-wrap { transition: none; }
}

/* ---------- Hero: hanging lamps, light rays, values, lotus divider ---------- */
.hero-rays {
  position: absolute; inset: -10% -20% 25% -20%; z-index: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: repeating-conic-gradient(from 160deg at 60% 0%, var(--ray) 0deg 2.5deg, var(--ray-0) 2.5deg 11deg);
  -webkit-mask-image: radial-gradient(70% 80% at 60% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 80% at 60% 0%, #000 20%, transparent 75%);
  transform-origin: 60% 0; animation: rays-in 2400ms var(--ease-out) 1800ms forwards, rays-drift 16s var(--ease-in-out) 1800ms infinite alternate;
}
.values { margin: var(--space-lg) 0 0; font-family: var(--font-display-te); font-size: var(--text-lg); color: var(--color-ink); letter-spacing: 0.04em; }
.values i { font-style: normal; color: var(--color-gold); padding: 0 var(--space-2xs); }
.values .en { letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--text-xs); margin-top: var(--space-2xs); }
.lotus-div { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-lg); max-width: 26rem; }
.ld-line { flex: 1; height: var(--rule-thin); background: var(--color-gold); opacity: 0.6; transform: scaleX(0); animation: ld-grow 1100ms var(--ease-out) 2200ms forwards; }
.ld-l { transform-origin: 100% 50%; } .ld-r { transform-origin: 0 50%; }
.ld-lotus { width: 34px; height: 21px; fill: none; stroke: var(--color-gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.6); animation: ld-lotus 900ms var(--ease-out) 1900ms forwards; }
.hero-copy .hero-note { margin-top: var(--space-lg); }

@keyframes lamp-drop { to { opacity: 1; transform: none; } }
@keyframes lamp-swing { from { transform: rotate(-2.6deg); } to { transform: rotate(2.6deg); } }
@keyframes rays-in { to { opacity: 0.32; } }
@keyframes rays-drift { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes ld-grow { to { transform: none; } }
@keyframes ld-lotus { to { opacity: 1; transform: none; } }

/* ---------- At-a-glance band (overlaps hero) ---------- */
.hero { padding-bottom: var(--space-3xl); }
.glance { position: relative; z-index: 3; margin-top: calc(-1 * var(--space-4xl)); padding-bottom: var(--space-xl); }
.glance-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); }
.gcard {
  position: relative; padding: var(--space-lg); border-radius: var(--radius-md);
  background: var(--card); border: var(--rule-thin) solid var(--color-rule);
  opacity: 0; transform: translateY(18px); animation: rise 900ms var(--ease-out) calc(1500ms + var(--c) * 120ms) forwards;
}
.gc-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: var(--rule-thin) solid var(--color-rule); color: var(--color-gold); margin-bottom: var(--space-sm); }
.gc-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gc-title { margin: 0; font-family: var(--font-display-te); font-weight: 400; font-size: var(--text-lg); color: var(--color-gold); line-height: 1.3; }
.gc-title .en { font-family: var(--font-display-en); font-weight: 600; font-size: var(--text-sm); color: var(--color-ink-soft); }
.gc-main { margin: var(--space-sm) 0 0; font-family: var(--font-display-en); font-weight: 600; font-size: var(--text-xl); color: var(--color-ivory); line-height: 1.25; font-variant-numeric: lining-nums; }
.gc-main:not([lang]) { font-family: var(--font-body); font-weight: 600; font-size: var(--text-lg); }
.gc-main a { color: inherit; text-decoration: none; white-space: nowrap; }
.gc-sub { margin: var(--space-xs) 0 0; font-size: var(--text-sm); color: var(--color-ink-soft); }
.gc-actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: var(--space-sm) 0 0; }
.gc-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: var(--rule-thin) solid var(--color-gold); color: var(--color-gold); text-decoration: none; font-size: var(--text-sm); font-weight: 600; white-space: nowrap; transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.gc-link:hover { background: var(--color-gold); color: var(--color-paper); }
.gc-link:active { transform: scale(0.97); }
.gc-wa { border-color: var(--color-wa); color: var(--color-ivory); background: var(--color-wa); }
.gc-wa:hover { background: var(--color-ivory); border-color: var(--color-ivory); color: var(--color-paper); }

@media (max-width: 1100px) { .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .hero-rays { inset: -10% -40% 35% -40%; }
  .glance { margin-top: calc(-1 * var(--space-2xl)); }
  .values { font-size: var(--text-base); }
}
@media (max-width: 560px) {
  .glance-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .gcard { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--space-md); padding: var(--space-md); }
  .gc-icon { grid-row: span 4; margin: 0; }
  .gc-main { margin-top: var(--space-2xs); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-rays { animation: none; opacity: 0.28; }
  .ld-line { animation: none; transform: none; }
  .ld-lotus { animation: gada-fade 150ms linear forwards; transform: none; }
  .gcard { animation: gada-fade 150ms linear forwards; transform: none; }
}

#scroll-mark { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }
.glance + .section { padding-top: var(--space-3xl); }

/* ---------- Hanging lamps: owner's photo lamp + animated real flames ----------
   Horizontal position is set by script (equal distance either side of the idol); these are fallbacks. */
.hero-lamps { position: absolute; inset: 88px 0 0 0; z-index: 1; pointer-events: none; overflow: clip; }
/* feather the clip so the lamp glow never shows a hard line under the header; chains emerge from the dark */
.hero-lamps { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px); mask-image: linear-gradient(to bottom, transparent 0, #000 56px); }
.lamp {
  position: absolute; width: clamp(64px, 6vw, 88px); --sw: 5600ms; --swd: 0ms;
  opacity: 0; transform: translateY(-40px); animation: lamp-drop 1400ms var(--ease-out) 900ms forwards;
}
.lamp-1 { left: 51%; top: 14px; }
.lamp-2 { right: 3.5%; top: 34px; --sw: 6400ms; --swd: -2200ms; animation-delay: 1150ms; }
.lamp-swing { position: relative; transform-origin: 50% 0; animation: lamp-swing var(--sw) var(--ease-in-out) var(--swd) infinite alternate; }
.lamp-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 14px var(--lamp-shadow)); }
.lamp-fire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; mix-blend-mode: screen; }
.fl-lean { transform-box: fill-box; transform-origin: 50% 100%; animation: flame-lean var(--sw) var(--ease-in-out) calc(var(--swd) + 320ms) infinite alternate; }
.fl { transform-box: fill-box; transform-origin: 50% 100%; animation: flame-real var(--fd, 1.3s) var(--ease-in-out) var(--fdl, 0s) infinite alternate; }
.lamp-glow {
  position: absolute; left: 50%; top: 80%; width: 210%; aspect-ratio: 1.3; /* was 320%: reach reduced 2026-11-16 at owner request */ translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--flame-glow), var(--flame-glow-0)); mix-blend-mode: screen;
  animation: glow-flicker 1700ms var(--ease-in-out) infinite alternate;
}
@keyframes flame-lean { from { transform: rotate(3.2deg); } to { transform: rotate(-3.2deg); } }
@keyframes flame-real {
  0%   { transform: scale(1, 1);        opacity: 0.95; }
  18%  { transform: scale(0.96, 1.07);  opacity: 1; }
  37%  { transform: scale(1.04, 0.94);  opacity: 0.88; }
  55%  { transform: scale(0.97, 1.1);   opacity: 1; }
  74%  { transform: scale(1.02, 0.97);  opacity: 0.92; }
  100% { transform: scale(0.98, 1.04);  opacity: 1; }
}
@keyframes glow-flicker { 0% { opacity: 0.75; transform: scale(0.96); } 40% { opacity: 0.95; } 70% { opacity: 0.8; transform: scale(1.03); } 100% { opacity: 1; transform: scale(1); } }
@media (max-width: 768px) {
  .hero-lamps { inset: 76px 0 0 0; }
  .lamp { width: 44px; }
  .lamp-1 { left: 4%; top: 6px; } .lamp-2 { right: 4%; top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lamp { animation: gada-fade 150ms linear forwards; transform: none; }
  .lamp-swing, .fl-lean, .fl, .lamp-glow { animation: none; }
  .lamp-fire image { filter: none; }
}

/* ---------- Polish: tap targets ---------- */
.nav-links a { min-width: 44px; text-align: center; }
.gc-main a, .phone a { display: inline-flex; align-items: center; min-height: 44px; }
.phone a { color: inherit; text-decoration: none; }
.gc-title { font-family: var(--font-display-te); }

/* ---------- Motion budget: pause decorative loops off screen ---------- */
.is-paused, .is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

/* ---------- Gallery: shared-element zoom (View Transitions) ---------- */
::view-transition-group(g-photo) { animation-duration: 420ms; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
::view-transition-old(g-photo), ::view-transition-new(g-photo) { height: 100%; object-fit: cover; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* ---------- Browser surfaces themed to the palette ---------- */
:root { color-scheme: dark; accent-color: var(--color-gold); scrollbar-color: var(--scroll-thumb) var(--scroll-track); }
::selection { background: var(--selection); color: var(--color-ivory); }
body { caret-color: var(--color-gold); }
a { text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 10px; border: 2px solid var(--scroll-track); }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold-deep); }

/* ---------- Optimize: cheaper effects where they cannot be seen ---------- */
/* Heat shimmer is invisible on 6px phone flames: skip the per-frame filter on small or touch screens. */
@media (max-width: 768px), (hover: none) { .lamp-fire image { filter: none; } }

/* ---------- Typography alignment (measured) ----------
   Anek Telugu reserves 0.90em above / 0.60em below the baseline, so single-line labels sit high in pills.
   Display Telugu and Cormorant headings inherited the 1.7 body leading, opening large gaps between paired lines. */
body { font-synthesis: none; font-kerning: normal; }
.h-en, .t-en, .s-en, .ledger dt .en, .gc-title .en, .footer-statement .en { line-height: 1.22; }
.h-en { margin-top: var(--space-xs); }
.t-en { margin-top: var(--space-xs); }
.t-te, .s-te { line-height: 1.28; }
.gc-title { line-height: 1.3; }
.gc-title .en { margin-top: 2px; }
/* one face per role in the glance cards: display Telugu and Latin = Anek Telugu */
.gc-main:not([lang]) { font-family: var(--font-display-te); font-weight: 400; font-size: var(--text-xl); line-height: 1.3; }
.gc-main[lang="en"] { font-size: var(--text-xl); line-height: 1.3; }
/* optical centring of single-line labels in pills and buttons */
@supports (text-box: trim-both cap alphabetic) {
  .btn, .gc-link, .map-cta, .nav-links a, .tradition, .flag, .lb-count { text-box: trim-both cap alphabetic; }
}
@supports not (text-box: trim-both cap alphabetic) {
  .btn, .gc-link, .map-cta { padding-top: 2px; }
}

/* ---------- Harden ---------- */
/* Only hide the gada showcase for its reveal when scripts are running. */
.js .gada-stage:not(.is-in) { opacity: 0; transform: scale(0.96); }
.gada-stage { transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
/* Enlarged text (zoom / larger-text settings): single-line labels may wrap instead of being clipped. */
body { overflow-wrap: break-word; }
.btn, .gc-link, .map-cta, .tradition, .flag, .brand-te, .brand-en, .gc-main a, .phone, .footer-row a, .nav-links a, .more a, .g-te, .g-en, .crumbs a {
  white-space: normal; max-width: 100%;
}
.btn, .gc-link, .map-cta { text-align: center; text-wrap: balance; }
.phone, .gc-main a { overflow-wrap: anywhere; }
.map-cta { max-width: calc(100% - 2 * var(--space-md)); }
.gada-grid > *, .who-grid > *, .swamy-grid > *, .visit-grid > *, .temple-body > *, .puja-inner > *, .facts, .facts li { min-width: 0; }
@media (max-width: 420px) { .cta-en { display: none; } }
.map-cta { left: var(--space-md); right: var(--space-md); translate: none; width: fit-content; margin-inline: auto; max-width: calc(100% - 2 * var(--space-md)); }

/* ---------- Opening: the nāmam draws, glows, and dissolves into particles ---------- */
.intro { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--color-paper); transition: opacity 600ms var(--ease-out); }
html:not(.intro-on) .intro { display: none; }
.intro.is-leaving { display: grid; opacity: 0; pointer-events: none; }
.intro-mark { display: grid; justify-items: center; gap: var(--space-lg); transition: opacity 300ms var(--ease-out); }
.intro.is-dust .namam { opacity: 0; }
.intro.is-dust .intro-te { opacity: 0; transition: opacity 900ms var(--ease-out); }
.namam { width: clamp(84px, 11vw, 120px); overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nm-u { stroke: var(--namam-white); stroke-width: 13; stroke-dasharray: 300; stroke-dashoffset: 300; animation: nm-draw 700ms var(--ease-in-out) 100ms forwards; }
.nm-r { stroke: var(--namam-red); stroke-width: 9; stroke-dasharray: 100; stroke-dashoffset: 100; animation: nm-draw 450ms var(--ease-out) 650ms forwards; }
.intro.is-glow .namam { filter: drop-shadow(0 0 14px var(--namam-glow)) drop-shadow(0 0 30px var(--namam-glow)); transition: filter 500ms var(--ease-out); }
.intro-te { margin: 0; font-family: var(--font-display-te); font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); color: var(--color-gold); opacity: 0; transform: translateY(8px); animation: rise 700ms var(--ease-out) 800ms forwards; }
.intro-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-skip {
  position: absolute; right: var(--space-lg); bottom: var(--space-lg); min-height: 44px; padding: 0 var(--space-lg);
  border-radius: var(--radius-pill); border: var(--rule-thin) solid var(--color-rule); background: transparent; color: var(--color-ink-soft);
  font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.intro-skip:hover { border-color: var(--color-gold); color: var(--color-gold); }
.intro-skip:active { transform: scale(0.97); }
@keyframes nm-draw { to { stroke-dashoffset: 0; } }
/* hero choreography waits for the opening to finish */
.intro-on .hero *, .intro-on .hero, .intro-on .glance *, .intro-on .brand * { animation-play-state: paused !important; }
.intro-on body { overflow: hidden; }

/* ---------- Pause motion (WCAG 2.2.2) ---------- */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.motion-toggle {
  position: fixed; right: var(--space-md); bottom: var(--space-md); z-index: 40; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--color-gold);
  background: var(--card); border: var(--rule-thin) solid var(--color-rule);
  transition: transform var(--dur-micro) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.motion-toggle:hover { border-color: var(--color-gold); }
.motion-toggle:active { transform: scale(0.94); }
.motion-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle .mt-play { fill: currentColor; stroke: none; display: none; }
.motion-paused .motion-toggle .mt-play { display: block; } .motion-paused .motion-toggle .mt-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }

/* ---------- Framed photographs (temple path diptych, arrival view) ---------- */
.frame { margin: 0; position: relative; }
.frame-img {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  padding: 10px; background: var(--frame-mat);
  border: var(--rule-thin) solid var(--frame-line); box-shadow: var(--frame-shadow);
}
.frame-img::after {                         /* inner gilt hairline, inset like a mount */
  content: ""; position: absolute; inset: 10px; border-radius: calc(var(--radius-md) - 6px);
  box-shadow: inset 0 0 0 1px var(--frame-inner), inset 0 -60px 80px -40px oklch(10% 0.02 45 / 0.45);
  pointer-events: none;
}
.frame-img img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-md) - 6px);
  transition: transform 1600ms var(--ease-silk);
}
.frame figcaption { margin-top: var(--space-md); display: grid; gap: var(--space-2xs); padding-inline: var(--space-2xs); }
.fc-te { font-family: var(--font-display-te); font-size: var(--text-lg); color: var(--color-gold); line-height: 1.3; }
.fc-en { font-family: var(--font-display-en); font-weight: 600; font-size: var(--text-base); color: var(--color-ink-mute); letter-spacing: 0.01em; }
@media (hover: hover) and (pointer: fine) {
  .frame:hover .frame-img img { transform: scale(1.025); }
}

.path {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(var(--space-lg), 3vw, var(--space-2xl));
  align-items: end; margin-top: var(--space-3xl); isolation: isolate;
}
.path-main .frame-img { aspect-ratio: 4 / 3; }
.path-side .frame-img { aspect-ratio: 4 / 5; }
.path-side .frame-img img { object-position: 62% 50%; }
.path-side { margin-bottom: var(--space-3xl); }        /* gentle offset: the eye steps down, then up */
.path-main::before {                                    /* soft lamp-glow behind the main photo */
  content: ""; position: absolute; inset: -12% -8% 10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--frame-glow), transparent);
}
@media (max-width: 900px) {
  .path { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-3xl); }
  .path-side { margin-bottom: 0; }
  .path-side .frame-img { aspect-ratio: 4 / 3; }
}

.arrive { margin-bottom: var(--space-3xl); }
.arrive .frame-img { aspect-ratio: 21 / 9; }
.arrive .frame-img img { object-position: 50% 58%; }
@media (max-width: 768px) {
  .arrive .frame-img { aspect-ratio: 4 / 3; }
  .arrive .frame-img img { object-position: 46% 50%; }
}
@media (max-width: 560px) { .frame-img { padding: 6px; } .frame-img::after { inset: 6px; } }

/* ---------- Scroll reveal (class added by js/site.js only) ---------- */
.reveal-ready .reveal {
  transition: opacity var(--dur-reveal) var(--ease-silk), transform calc(var(--dur-reveal) + 500ms) var(--ease-silk);
  transition-delay: var(--rd, 0ms);
}
.reveal-ready .reveal:not(.is-in) { opacity: 0; transform: translate3d(0, 16px, 0); }
.reveal-ready .frame.reveal .frame-img img { transition: transform 3000ms var(--ease-silk); transition-delay: var(--rd, 0ms); }
.reveal-ready .frame.reveal:not(.is-in) .frame-img img { transform: scale(1.045); }
.reveal-ready .g-item.reveal:not(.is-in) { transform: translate3d(0, 12px, 0) scale(0.99); }
.reveal-ready.motion-paused .reveal,
.reveal-ready.motion-paused .frame.reveal .frame-img img { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .frame-img img { transition: none; }
  .frame:hover .frame-img img { transform: none; }
}

.g-top img { object-position: 50% 8%; }   /* keep the Swamy in the wide crop */

/* ---------- Footer v2 (2026-11-16): columns, live open-now status ---------- */
.footer { position: relative; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) var(--space-3xl); align-items: start; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); }
.fcol-h { margin: 0 0 var(--space-sm); font-family: var(--font-display-te); font-weight: 400; font-size: var(--text-base); color: var(--color-gold); line-height: 1.3; }
.fcol-h span { display: block; font-family: var(--font-display-en); font-weight: 600; font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-ink-mute); }
.fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); font-size: var(--text-sm); color: var(--color-ink-soft); }
.fcol a { color: var(--color-ink-soft); text-decoration: none; display: inline-block; padding-block: 11px; line-height: 1.5; min-height: 44px; transition: color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.fcol li:not(:has(a)) { padding-block: var(--space-2xs); }
.fcol a:hover { color: var(--color-gold); }
.footer-row { align-items: center; }
.to-top { color: var(--color-ink-soft); text-decoration: none; display: inline-block; padding-block: 11px; line-height: 1.5; min-height: 44px; }
.to-top:hover { color: var(--color-gold); }

/* live status, like a "now open" pill: dot breathes only while open */
.open-now { display: inline-flex; align-items: center; gap: 0.5em; margin: var(--space-lg) 0 0; padding: 0.45em 0.9em; border: var(--rule-thin) solid var(--color-rule); border-radius: 999px; font-size: var(--text-sm); color: var(--color-ink-soft); }
.open-now[hidden] { display: none; }
.open-now .on-en { color: var(--color-ink-mute); }
.on-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--color-ink-mute); flex: none; }
.open-now.is-open .on-dot { background: oklch(78% 0.17 150); }
.open-now.is-open .on-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid oklch(78% 0.17 150 / 0.7); animation: on-breathe 2.8s var(--ease-silk) infinite; }
@keyframes on-breathe { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.open-now--card { margin-top: var(--space-sm); font-size: var(--text-xs); padding: 0.35em 0.8em; }
.motion-paused .open-now .on-dot::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .open-now .on-dot::after { animation: none; display: none; } }


/* press feedback (tactile, 60fps-style) */
.btn:active, .fcol a:active, .to-top:active { transform: scale(0.97); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
  .footer-cols .fcol:last-child { grid-column: 1 / -1; }
}
/* status text flows as one line and wraps naturally in narrow cards */
.open-now { display: inline-block; line-height: 1.5; }
.open-now .on-dot { display: inline-block; vertical-align: 0.05em; margin-right: 0.5em; }
.open-now--card { border-radius: var(--radius-md); }
.open-now--card .on-en { display: block; padding-left: calc(8px + 0.5em); }

/* ---------- Scroll cue (2026-11-16, Lottieflow-inspired): only when the next section is below the fold ---------- */
.scroll-cue { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 20; translate: -50% 0;
  display: grid; justify-items: center; gap: 4px; width: 44px; padding: 6px 0; text-decoration: none;
  opacity: 0; pointer-events: none; transition: opacity 700ms var(--ease-silk); }
.scroll-cue[hidden] { display: none; }
.scroll-cue.is-shown { opacity: 1; pointer-events: auto; transition-duration: 1200ms; transition-delay: 1400ms; }
.sc-line { position: relative; width: 9px; height: 42px; clip-path: inset(0 -12px); }
.sc-line::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--color-rule) 25%, var(--color-rule) 75%, transparent); }
.sc-glint { position: absolute; left: 3px; top: -16px; width: 3px; height: 16px; border-radius: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-gold)); box-shadow: 0 0 10px oklch(82% 0.125 83 / 0.7);
  animation: sc-fall 2.6s var(--ease-silk) infinite; }
@keyframes sc-fall { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(58px); opacity: 0; } }
.sc-chev { width: 14px; height: 9px; fill: none; stroke: var(--color-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; transition: transform var(--dur-micro) var(--ease-out); }
.scroll-cue:hover .sc-chev { transform: translateY(2px); }
.scroll-cue:active .sc-chev { transform: translateY(3px) scale(0.94); }
.motion-paused .sc-glint { animation-play-state: paused; }
.intro-on .scroll-cue { display: none; }
@media (prefers-reduced-motion: reduce) {
  .sc-glint { animation: none; top: 13px; }
  .scroll-cue, .scroll-cue.is-shown { transition: none; }
}
/* cue as a chip, matching the Pause button, so it never reads as a stray line over the hero text */
.scroll-cue { bottom: max(var(--space-md), env(safe-area-inset-bottom)); width: 44px; padding: 9px 0 8px; gap: 3px;
  border-radius: 22px; background: var(--card); border: var(--rule-thin) solid var(--color-rule); }
.scroll-cue:hover { border-color: var(--color-gold); }
.sc-line { height: 24px; }
@keyframes sc-fall { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sc-glint { top: 4px; } }
/* stacked above the Pause button: that right-hand column is clear of hero text at every width */
.scroll-cue { left: auto; right: var(--space-md); translate: none; bottom: calc(max(var(--space-md), env(safe-area-inset-bottom)) + 44px + var(--space-sm)); }

/* ---------- Hero type v2 (2026-11-16): Tiro Telugu + Cinzel inscription caps, centred invocation ---------- */
.hero-copy { text-align: center; margin-inline: auto; }
@media (min-width: 769px) { .hero-copy { margin-inline: 0; max-width: min(820px, 50vw); } }
.hero-chant { letter-spacing: 0.02em; font-size: var(--text-xl); }
.h-te { line-height: 1.22; text-wrap: balance; }
.h-en { font-family: var(--font-inscription); font-weight: 500; font-size: clamp(1.15rem, 0.7rem + 1.5vw, 1.9rem); letter-spacing: 0.08em; margin-top: var(--space-md); }
.values { font-size: var(--text-xl); letter-spacing: 0.02em; }
.values .en, .fcol-h span { font-family: var(--font-inscription); font-weight: 500; letter-spacing: 0.18em; }
.lotus-div { margin-inline: auto; }
.hero-copy .hero-note { margin-inline: auto; }
@media (max-width: 768px) {
  .h-en { font-size: clamp(1.05rem, 0.6rem + 2.6vw, 1.4rem); letter-spacing: 0.06em; }
  .values { font-size: var(--text-lg); }
}
/* Tiro Telugu sets wider than Ramaraja: size the title so "ఆంజనేయ స్వామి" holds one line on desktop */
.h-te { font-size: clamp(2.6rem, 1rem + 5vw, 5.75rem); }
@media (max-width: 768px) {
  .h-te { font-size: clamp(2.4rem, 1rem + 7vw, 3.4rem); }
  /* keep the centred invocation clear of the floating Pause and scroll buttons */
  .hero-copy { padding-inline: calc(44px + var(--space-md) + var(--space-xs)); }
}
@media (min-width: 769px) {
  .hero-copy { max-width: min(860px, 56vw); }
  .h-te { font-size: clamp(2.6rem, 5.6vw, 5.5rem); }
}
/* Cinzel is all capitals already; 0.05em keeps the name airy without over-tracking */
.h-en { letter-spacing: 0.05em; }
@media (max-width: 768px) { .h-en { letter-spacing: 0.04em; } }

/* ---------- Ideas adopted from sriankalamma.org (2026-11-16) ---------- */
/* Today's panchangam: a quiet ledger line under the darshan cards */
.panchang { margin-top: var(--space-lg); padding: var(--space-sm) 0; border-block: var(--rule-thin) solid var(--color-rule-soft);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-lg); font-size: var(--text-sm); color: var(--color-ink-soft); }
.panchang[hidden] { display: none; }
.pg-title { margin: 0; font-family: var(--font-display-te); font-size: var(--text-base); color: var(--color-gold); white-space: nowrap; }
.pg-title span { font-family: var(--font-inscription); font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-ink-mute); margin-left: 0.35em; }
.pg-items { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) 0; }
.pg-items li { padding: 0 var(--space-md); border-left: var(--rule-thin) solid var(--color-rule-soft); line-height: 1.6; }
.pg-items li:first-child { padding-left: 0; border-left: 0; color: var(--color-ink); }
.pg-items li[hidden] { display: none; }
.pg-items li span { color: var(--color-ink-mute); font-size: var(--text-xs); margin-left: 0.3em; }
.pg-items .pg-sat { color: var(--color-saffron); }
.pg-note { margin: 0 0 0 auto; font-size: var(--text-xs); color: var(--color-ink-mute); }
.pg-note[hidden] { display: none; }
.pg-note span { display: none; }
@media (max-width: 760px) {
  .pg-items { flex-direction: column; }
  .pg-items li { padding: 0; border-left: 0; }
  .pg-note { margin-left: 0; }
  .pg-note span { display: inline; }
}

/* Verse of the day: an arch-topped card, Telugu-script sloka, transliteration, meaning, source */
.verse .wrap { display: grid; justify-items: center; }
.verse-card { position: relative; margin: 0; width: min(100%, 860px); text-align: center;
  padding: clamp(var(--space-2xl), 6vw, var(--space-4xl)) clamp(var(--space-lg), 6vw, var(--space-4xl)) var(--space-3xl);
  border: var(--rule-thin) solid var(--color-rule); border-bottom: 0; border-radius: 50% 50% 0 0 / clamp(70px, 14vw, 150px) clamp(70px, 14vw, 150px) 0 0;
  background: radial-gradient(120% 70% at 50% 0%, oklch(80% 0.15 75 / 0.07), transparent 70%); }
.verse-bindu { display: block; width: 8px; height: 8px; margin: 0 auto var(--space-lg); border-radius: 50%; background: var(--color-saffron); }
.verse-kicker { margin: 0; font-family: var(--font-display-te); font-weight: 400; font-size: var(--text-base); color: var(--color-gold); }
.verse-kicker span { display: block; margin-top: 2px; font-family: var(--font-inscription); font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-ink-mute); }
.verse-text { margin: var(--space-xl) 0 0; }
.v-te { margin: 0; font-family: var(--font-display-te); font-size: clamp(1.35rem, 0.9rem + 1.7vw, 2.15rem); line-height: 1.75; color: var(--color-ivory); text-wrap: balance; }
.v-iast { margin: var(--space-md) 0 0; font-family: var(--font-display-te); font-style: italic; font-size: var(--text-base); line-height: 1.7; color: var(--color-gold); opacity: 0.85; }
.v-mean { margin: var(--space-lg) auto 0; max-width: 40rem; color: var(--color-ink-soft); }
.v-mean .en { display: block; margin-top: var(--space-2xs); color: var(--color-ink-mute); font-size: var(--text-sm); }
.v-src { margin-top: var(--space-md); font-family: var(--font-display-en); font-weight: 600; font-size: var(--text-sm); color: var(--color-gold-deep); letter-spacing: 0.02em; }
.verse-lotus { display: block; width: 40px; height: 24px; margin: var(--space-xl) auto 0; fill: none; stroke: var(--color-gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }

/* Honest history: three tiers, each saying where its knowledge comes from */
.history { margin-top: var(--space-4xl); }
.sec-head h3 { margin: 0; font-weight: 400; }
.h-tiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); counter-reset: none; }
.h-tier { position: relative; padding: var(--space-xl) var(--space-lg) var(--space-lg); border: var(--rule-thin) solid var(--color-rule-soft); border-radius: var(--radius-md); background: var(--card); display: flex; flex-direction: column; gap: var(--space-sm); }
.h-tier p { margin: 0; color: var(--color-ink-soft); }
.h-tier p .en { display: block; margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-ink-mute); }
.h-num { font-family: var(--font-inscription); font-size: var(--text-sm); letter-spacing: 0.12em; color: var(--color-gold-deep); }
.h-name { margin: 0; font-family: var(--font-display-te); font-weight: 400; font-size: var(--text-xl); color: var(--color-ivory); line-height: 1.3; }
.h-name span { display: block; font-family: var(--font-display-en); font-weight: 600; font-size: var(--text-base); color: var(--color-gold); }
.h-status { margin-top: auto !important; padding-top: var(--space-sm); border-top: var(--rule-thin) solid var(--color-rule-soft); font-size: var(--text-sm); color: var(--color-ink) !important; display: flex; align-items: center; gap: 0.5em; flex-wrap: wrap; }
.h-status span[lang] { color: var(--color-ink-mute); font-size: var(--text-xs); }
.h-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-ink-mute); flex: none; }
.is-done .h-dot { background: oklch(78% 0.17 150); }
.is-pending .h-dot { background: transparent; border: 1px solid var(--color-saffron); }
.h-status a { color: var(--color-gold); text-decoration: none; display: inline-block; padding-block: 11px; min-height: 44px; line-height: 1.5; }
.h-status a:hover { color: var(--color-ivory); }
.h-status a span[lang] { color: inherit; font-size: inherit; }
@media (max-width: 900px) { .h-tiers { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Fonts reverted to Ramaraja + Cormorant Garamond (owner, 2026-11-16); centred hero kept ---------- */
.hero-chant { font-size: var(--text-lg); letter-spacing: 0.04em; }
.h-te { line-height: 1.12; font-size: var(--text-display); }
.h-en { font-family: var(--font-display-en); font-weight: 600; letter-spacing: 0.02em; font-size: var(--text-2xl); margin-top: var(--space-sm); }
.values { font-size: var(--text-lg); letter-spacing: 0.04em; }
.values .en, .fcol-h span, .pg-title span, .verse-kicker span, .h-num { font-weight: 600; }
.values .en { letter-spacing: 0.12em; }
.v-iast { font-family: var(--font-display-en); font-weight: 500; font-size: var(--text-lg); }
@media (min-width: 769px) { .hero-copy { max-width: min(860px, 56vw); } }
@media (max-width: 768px) {
  .h-te { font-size: clamp(2.5rem, 1rem + 8vw, 3.6rem); }
  .h-en { font-size: var(--text-xl); letter-spacing: 0.02em; }
  .values { font-size: var(--text-base); }
}

/* consecration festival timeline (from the 2023 invitation) */
.festival { margin-top: var(--space-2xl); padding: var(--space-xl) clamp(var(--space-lg), 4vw, var(--space-2xl)); border: var(--rule-thin) solid var(--color-rule); border-radius: var(--radius-md); }
.festival-title { margin: 0; font-family: var(--font-display-te); font-weight: 400; font-size: var(--text-xl); color: var(--color-ivory); line-height: 1.3; }
.festival-title span { display: block; font-family: var(--font-display-en); font-weight: 600; font-size: var(--text-lg); color: var(--color-gold); }
.festival-src { margin: var(--space-2xs) 0 0; font-size: var(--text-xs); color: var(--color-ink-mute); }
.festival-src span { margin-left: 0.3em; }
.fest-days { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.fest-days li { position: relative; padding-top: var(--space-md); border-top: var(--rule-thin) solid var(--color-rule-soft); }
.fest-days li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--color-gold-deep); }
.fest-days .fd-main::before { background: var(--color-saffron); width: 9px; height: 9px; top: -5px; }
.fest-days p { margin: 0; color: var(--color-ink-soft); font-size: var(--text-sm); }
.fest-days p .en { display: block; margin-top: var(--space-2xs); color: var(--color-ink-mute); }
.fd-day { margin-bottom: var(--space-xs) !important; color: var(--color-ink) !important; font-size: var(--text-base) !important; }
.fd-day span { display: block; font-family: var(--font-display-en); font-weight: 600; color: var(--color-gold); font-size: var(--text-sm); }
@media (max-width: 900px) { .fest-days { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 769px) { .h-te { font-size: clamp(2.9rem, 7.6vw, 7.25rem); } }
.h-num, .fd-day span { font-variant-numeric: lining-nums; }

/* ---------- Final fonts (owner, 2026-11-16): Tiro Telugu for Telugu headings, Cinzel for the English name + small caps ---------- */
.hero-chant { font-size: var(--text-xl); letter-spacing: 0.02em; }
.h-te { line-height: 1.22; }
.h-en { font-family: var(--font-inscription); font-weight: 500; font-size: clamp(1.15rem, 0.7rem + 1.5vw, 1.9rem); letter-spacing: 0.05em; margin-top: var(--space-md); }
.values { font-size: var(--text-xl); letter-spacing: 0.02em; }
.values .en, .fcol-h span, .pg-title span, .verse-kicker span, .h-num { font-weight: 500; }
.values .en { letter-spacing: 0.18em; }
@media (min-width: 769px) { .h-te { font-size: clamp(2.6rem, 5.6vw, 5.5rem); } }
@media (max-width: 768px) {
  .h-te { font-size: clamp(2.4rem, 1rem + 7vw, 3.4rem); }
  .h-en { font-size: clamp(1.05rem, 0.6rem + 2.6vw, 1.4rem); letter-spacing: 0.04em; }
  .values { font-size: var(--text-lg); }
}

/* ---------- Responsive QA fixes (2026-11-16) ---------- */
/* readable header label (was 10.5px) */
.brand-en { font-size: 0.75rem; letter-spacing: 0.2em; }
/* 44px touch targets */
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding-block: 0; }
.crumbs a { padding-block: 11px; line-height: 1.4; min-height: 44px; }
.map-credit a { display: inline-block; padding-block: 12px; }
.footer-row .credit { display: inline-block; padding-block: 11px; line-height: 1.5; }
/* Hanuman page: keep the hero text clear of the floating Pause button on phones */
@media (max-width: 768px) { .page-hero-copy { padding-right: calc(44px + var(--space-md) + var(--space-xs)); } }

/* Mobile menu: below 1024px the inline nav becomes a panel opened by the Menu button (JS only; without JS the
   header keeps the Call button and the page's own links, as before) */
.menu-btn { display: none; }
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .js .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; cursor: pointer;
    color: var(--color-gold); background: var(--card); border: var(--rule-thin) solid var(--color-rule); font: inherit;
    transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
  .menu-btn:hover { border-color: var(--color-gold); }
  .menu-btn:active { transform: scale(0.94); }
  .menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; overflow: visible; }
  .menu-btn path { transform-origin: 12px 12px; transition: transform 320ms var(--ease-silk), opacity 200ms var(--ease-out); }
  .nav.is-open .mb-1 { transform: translateY(5px) rotate(45deg); }
  .nav.is-open .mb-2 { opacity: 0; }
  .nav.is-open .mb-3 { transform: translateY(-5px) rotate(-45deg); }
  .nav { display: flex; align-items: center; gap: var(--space-sm); }
  .js .nav.is-open .nav-links { display: flex; }
  .nav-links { position: fixed; left: 0; right: 0; top: var(--menu-top, 80px); flex-direction: column; gap: 0;
    padding: var(--space-xs) clamp(var(--space-md), 4vw, var(--space-2xl)) var(--space-lg);
    background: var(--color-paper); border-bottom: var(--rule-thin) solid var(--color-rule);
    box-shadow: 0 24px 40px -20px oklch(5% 0.02 45 / 0.85); max-height: calc(100svh - var(--menu-top, 80px)); overflow-y: auto;
    animation: menu-in 360ms var(--ease-silk); }
  .nav-links li { border-bottom: var(--rule-thin) solid var(--color-rule-soft); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: flex; justify-content: flex-start; width: 100%; min-height: 52px; font-family: var(--font-display-te); font-size: var(--text-lg); color: var(--color-ink); }
  .nav-links a[aria-current="page"] { color: var(--color-gold); }
  .topbar.menu-open { background: var(--color-paper); border-bottom-color: var(--color-rule-soft); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) { .nav-links { animation: none; } .menu-btn path { transition: none; } }
/* narrow phones: Call becomes a round phone icon so brand + Call + Menu fit on one row */
@media (max-width: 560px) {
  .topbar .nav > .btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; flex: none; }
  .topbar .nav > .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Photo viewer on short landscape screens (phones turned sideways): arrows at the sides, slim caption,
   so the photo gets the height (it was squeezed to a 52px strip at 568x320) */
@media (max-height: 500px) and (orientation: landscape) {
  .lb-figure { padding: var(--space-sm) calc(48px + var(--space-sm) * 2); gap: var(--space-2xs); }
  .lb-prev, .lb-next { top: 50%; bottom: auto; translate: 0 -50%; }
  .lb-prev { left: var(--space-sm); right: auto; } .lb-next { right: var(--space-sm); left: auto; }
  .lb-close { top: var(--space-sm); right: var(--space-sm); }
  .lb-cap { display: flex; align-items: baseline; justify-content: center; gap: 0.6em; flex-wrap: nowrap; white-space: nowrap; }
  .lb-te { font-size: var(--text-base); }
  .lb-en { display: none; }
  .lb-count { margin-top: 0; }
}
/* 200% text on phones: let long Telugu/IAST words and labels wrap instead of running off the screen */
.verse .wrap { grid-template-columns: minmax(0, 1fr); }
.verse-card, .verse-card > *, .v-te, .v-iast, .v-mean, .verse-kicker { min-width: 0; overflow-wrap: anywhere; }
.pg-title { white-space: normal; min-width: 0; overflow-wrap: anywhere; }
.names, .names > div, .names dt, .names dd { min-width: 0; overflow-wrap: anywhere; }
/* Large text (200% zoom) on phones: header name wraps inside its own space; gallery tiles grow with the text */
.brand { min-width: 0; flex: 1 1 auto; }
.brand-text { min-width: 0; }
.topbar .nav { flex: none; }
.g-te, .g-en { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
@media (max-width: 600px) { .g-grid { grid-auto-rows: max(150px, 9.5rem); } }
@media (max-width: 560px) { .brand-te { font-size: min(1.05rem, 19px); } }
@media (max-width: 768px) { .hero-chant { font-size: min(var(--text-xl), 28px); } }

/* ---------- Main font: Anek Telugu for all Telugu (owner, 2026-11-16) ----------
   Body stays at 400; headings get weight so the hierarchy holds with one family. */
.h-te { font-weight: 600; line-height: 1.18; letter-spacing: -0.005em; }
.t-te, .names dt, .h-name, .festival-title, .ledger dt { font-weight: 600; }
.brand-te, .hero-chant, .values, .verse-kicker, .v-te, .fcol-h, .pg-title, .footer-statement, .gc-title, .lb-te, .s-te, .fc-te, .gc-main:not([lang]) { font-weight: 500; }
.v-te { line-height: 1.7; }
@media (min-width: 769px) { .h-te { font-size: clamp(2.6rem, 6.4vw, 6.25rem); } }
@media (min-width: 769px) { .page-hero .h-te { font-size: clamp(2.6rem, 4.9vw, 5rem); } }

/* ---------- One family for the whole site: Anek Telugu for Telugu and English (owner, 2026-11-16) ----------
   Tuning that was set for Cormorant/Cinzel: Anek has no italic (avoid faux italic) and needs less tracking. */
.h-en { font-weight: 500; letter-spacing: 0.01em; }
.t-en, .s-en, .h-name span, .festival-title span, .fd-day span { font-weight: 500; letter-spacing: 0; }
.ledger dt .en, .gc-title .en, .footer-statement .en, .fc-en, .gc-main[lang], .phone, .consecration .date, .ledger .when { font-weight: 500; letter-spacing: 0; }
.v-iast { font-style: normal; font-weight: 400; letter-spacing: 0.01em; }
.v-src { font-weight: 500; letter-spacing: 0; }
.values .en, .fcol-h span, .pg-title span, .verse-kicker span { font-weight: 500; letter-spacing: 0.14em; }
.h-num { font-weight: 500; letter-spacing: 0.08em; }

/* ---------- Header review (2026-11-16) ---------- */
/* Logo name: the gold gradient is clipped to the text, but it only fills each word's line box, and Anek Telugu's
   vowel signs (ీ in శ్రీ, ే in నే) rise above it, so their tops were not painted. Extend the painted area with
   padding and cancel it with negative margins so the layout does not move. */
.bw { padding: 0.36em 0.06em 0.24em; margin: -0.36em -0.06em -0.24em; }
/* Top menu: soft dark band behind the transparent header so the links read clearly over the bright photo;
   it fades away once the header turns solid on scroll. */
.topbar::before { content: ""; position: absolute; inset: 0 0 -55% 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, oklch(11% 0.018 45 / 0.92) 0%, oklch(11% 0.018 45 / 0.6) 55%, oklch(11% 0.018 45 / 0) 100%);
  transition: opacity var(--dur-long) var(--ease-out); }
.topbar.is-solid::before, .topbar.menu-open::before { opacity: 0; }
.nav-links a { text-shadow: 0 1px 10px oklch(8% 0.02 45 / 0.6); }

/* ---------- Visual review (2026-11-16): one fluid vertical rhythm, no dead bands, balanced wrapping ----------
   Sections used 8rem top and bottom on desktop (5rem on phones), so neighbouring sections stacked 250-310px of
   empty space. One fluid value now sets the rhythm: about 52px per side on phones up to 88px on large screens. */
:root { --section-y: clamp(3.25rem, 2rem + 4vw, 5.5rem); }
.section, .section.gallery, .section.puja, .section.verse { padding-block: var(--section-y); }
.temple { padding-bottom: var(--section-y); }
.history { margin-top: clamp(var(--space-2xl), 6vw, var(--space-3xl)); }
.sec-head { margin-bottom: clamp(var(--space-xl), 3.5vw, var(--space-2xl)); }
.footer { padding-top: clamp(var(--space-2xl), 5vw, 4.5rem); }
.verse-card { padding-bottom: var(--space-xl); }
/* Puja: phone block centred against the heading on desktop; no double gap when stacked */
.puja-inner { align-items: center; }
.puja .sec-head { margin-bottom: 0; }
@media (max-width: 900px) { .puja-inner { gap: var(--space-xl); } }
/* Balanced line breaks: no lone words, no lines starting with a separator dot */
.t-te, .t-en, .h-name, .festival-title, .values, .values .en, .hero-note, .verse-kicker { text-wrap: balance; }
.lede, .v-mean, .h-tier p, .fest-days p, .facts li { text-wrap: pretty; }
.values .vw { white-space: nowrap; }
/* Hanuman page, desktop: the stories timeline sat in a narrow left column with the right half empty.
   Heading on the left (stays in view while reading), timeline on the right. */
@media (min-width: 1100px) {
  .stories .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(var(--space-2xl), 5vw, var(--space-4xl)); align-items: start; }
  .stories .sec-head { position: sticky; top: 120px; margin-bottom: 0; }
  .story-list { max-width: none; }
}
/* Tablets: keep the Swamy photo beside its text instead of alone on the left with the right half empty */
@media (min-width: 640px) and (max-width: 900px) {
  .swamy-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .swamy-figure { max-width: none; }
}
/* the small sources note does not need a full section's breathing room */
.src-note { padding-block: var(--space-2xl); }
@media (min-width: 1100px) { .stories .sec-head .t-te { font-size: clamp(2.2rem, 3.2vw, 3.25rem); overflow-wrap: normal; } }

/* ---------- Side shrines pair (2026-11-16): Mahaganapati left, small Anjaneya right, as they stand at the temple ---------- */
.shrines { margin-top: clamp(var(--space-2xl), 6vw, var(--space-3xl)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(var(--space-lg), 4vw, var(--space-2xl)) clamp(var(--space-md), 3vw, var(--space-2xl)); max-width: 1080px; }
.shrines-head { grid-column: 1 / -1; }
.shrines-head h3 { margin: 0; font-weight: 400; }
.shrines-head .t-te { font-size: var(--text-2xl); }
.shrines-head .lede { max-width: 36rem; }
.shrine .frame-img { aspect-ratio: 4 / 5; }
.shrine .frame-img img { object-position: 50% 30%; }
@media (max-width: 559px) { .shrine .frame-img { padding: 5px; } .shrine .fc-te { font-size: var(--text-sm); } .shrine .fc-en { font-size: var(--text-xs); } }
.shrines { max-width: none; grid-template-columns: repeat(2, minmax(0, 430px)); justify-content: start; }
@media (max-width: 960px) { .shrines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Puja section photo (2026-11-16): the Swamy after an abhishekam, beside the call-to-offer ---------- */
@media (min-width: 901px) {
  .puja-inner { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); align-items: center; }
}
.puja-photo .frame-img { aspect-ratio: 4 / 5; }
.puja-photo .frame-img img { object-position: 50% 20%; }
@media (max-width: 900px) {
  .puja-photo { max-width: 440px; }
  .puja-photo .frame-img { aspect-ratio: 4 / 3; }
  .puja-photo .frame-img img { object-position: 50% 18%; }
}
@media (min-width: 901px) {
  .puja-inner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(var(--space-2xl), 5vw, var(--space-4xl)); row-gap: var(--space-xl); align-items: start; }
  .puja-photo { grid-row: 1 / span 2; align-self: center; }
  .puja-inner > .sec-head { grid-column: 2; align-self: end; }
  .puja-inner > :last-child { grid-column: 2; align-self: start; }
  .puja .t-te { overflow-wrap: normal; }
}

/* ---------- Glance cards: lamp-lit effects (2026-11-16) ----------
   Ideas from OriginKit's Neon Border / Ribbon Glow, rebuilt in CSS for the lamp-gold theme:
   1. a gold glint travelling slowly round each card's edge (each card at its own phase)
   2. a warm lamp spotlight that follows the pointer (fine pointers only, set by site.js)
   3. a gentle tilt towards the pointer (the separate `rotate`/`translate` properties, so it never fights the entrance animation)
   4. icons draw themselves in with a gold line; the icon ring glows on hover */
@property --beam { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.glance-grid { perspective: 1400px; }
.gcard { isolation: isolate; overflow: hidden; transform-style: preserve-3d;
  transition: rotate 500ms var(--ease-silk), translate 500ms var(--ease-silk), border-color 400ms var(--ease-out), box-shadow 500ms var(--ease-out); }
.gcard::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--beam), transparent 0deg 250deg, oklch(80% 0.13 80 / 0.25) 290deg, oklch(90% 0.11 88) 322deg, oklch(80% 0.13 80 / 0.25) 340deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: gc-beam 11s linear infinite; animation-delay: calc(var(--c) * -2.75s); opacity: 0.9; }
@keyframes gc-beam { to { --beam: 360deg; } }
.gcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), oklch(82% 0.13 80 / 0.16), oklch(70% 0.12 60 / 0.05) 45%, transparent 70%);
  transition: opacity 500ms var(--ease-out); }
.gcard.is-lit::after { opacity: 1; }
.gcard.is-lit { border-color: oklch(82% 0.125 83 / 0.45); box-shadow: 0 24px 48px -28px oklch(5% 0.02 45 / 0.9), 0 0 0 1px oklch(82% 0.125 83 / 0.08); }
/* icon ring + draw-in */
.gc-icon { transition: border-color 500ms var(--ease-out), box-shadow 500ms var(--ease-out), background-color 500ms var(--ease-out); }
.gcard.is-lit .gc-icon { border-color: var(--color-gold); background-color: oklch(82% 0.125 83 / 0.08); box-shadow: 0 0 18px -2px oklch(82% 0.13 80 / 0.45); }
.gc-icon [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: gc-draw 1600ms var(--ease-silk) calc(1900ms + var(--c) * 160ms) forwards; }
@keyframes gc-draw { to { stroke-dashoffset: 0; } }
/* touch: a soft press instead of hover */
.gcard:active { translate: 0 1px; }
/* Pause motion stops the travelling glint; reduced motion keeps everything still and fully drawn */
.motion-paused .gcard::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .gcard::before { animation: none; --beam: 300deg; opacity: 0.5; }
  .gc-icon [pathLength] { animation: none; stroke-dashoffset: 0; }
  .gcard { transition: border-color 200ms linear; }
}

/* ---------- Gallery coverflow (2026-11-16, OriginKit "Coverflow Gallery" idea, rebuilt in CSS/JS) ----------
   site.js turns the same .g-grid into a 3D coverflow; without JS the grid stays. "View all" switches back. */
.cf-bar { display: none; }
.js .cf-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin: 0 0 var(--space-lg); flex-wrap: wrap; }
.cf-count { font-size: var(--text-sm); color: var(--color-ink-mute); font-variant-numeric: tabular-nums; }
.cf-ctrls { display: flex; gap: var(--space-xs); align-items: center; }
.cf-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; color: var(--color-gold); background: var(--card); border: var(--rule-thin) solid var(--color-rule); transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); font: inherit; }
.cf-btn:hover { border-color: var(--color-gold); } .cf-btn:active { transform: scale(0.94); }
.cf-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cf-mode { min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: var(--rule-thin) solid var(--color-gold); background: transparent; color: var(--color-gold); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.cf-mode:hover { background: var(--color-gold); color: var(--color-paper); }

.g-grid.is-cf { display: block; position: relative; height: clamp(380px, 62vh, 600px); perspective: 1600px; touch-action: pan-y; user-select: none; overflow: visible; }
.g-grid.is-cf .g-item { position: absolute; left: 50%; top: 0; width: clamp(230px, 30vw, 400px); height: 100%; margin: 0;
  transform: translateX(-50%) translateX(var(--x, 0px)) translateZ(var(--z, 0px)) rotateY(var(--ry, 0deg)); opacity: var(--op, 1); z-index: var(--zi, 1);
  transition: transform 900ms var(--ease-silk), opacity 700ms var(--ease-silk), filter 700ms var(--ease-silk); filter: brightness(var(--br, 1)); }
.g-grid.is-cf .g-item.cf-hidden { visibility: hidden; }
.g-grid.is-cf .g-item a { border-radius: var(--radius-md); box-shadow: 0 40px 70px -30px oklch(5% 0.02 45 / 0.95); outline-offset: 4px; }
.g-grid.is-cf .g-item a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; border: var(--rule-thin) solid oklch(82% 0.125 83 / 0.0); transition: border-color 700ms var(--ease-out); }
.g-grid.is-cf .g-item.is-active a::after { border-color: oklch(82% 0.125 83 / 0.55); box-shadow: inset 0 0 0 1px oklch(90% 0.08 85 / 0.12); }
.g-grid.is-cf .g-item img { object-position: 50% 30%; }
.g-grid.is-cf .g-item:not(.is-active) .g-cap { opacity: 0; }
.g-grid.is-cf .g-cap { transition: opacity 600ms var(--ease-out); }
/* soft reflection under the floor of the coverflow */
.g-grid.is-cf::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -28px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, oklch(80% 0.12 75 / 0.18), transparent); pointer-events: none; }
@media (max-width: 600px) { .g-grid.is-cf { height: min(440px, 70svh); } .g-grid.is-cf .g-item { width: 66vw; } }
@media (prefers-reduced-motion: reduce) { .g-grid.is-cf .g-item { transition: opacity 200ms linear; } }
@media (max-width: 600px) {
  .js .cf-bar { flex-wrap: nowrap; gap: var(--space-xs); }
  .cf-en { display: none; }
  .cf-mode { padding: 0 var(--space-sm); white-space: nowrap; }
}

/* ---------- Critique P1 fixes (2026-11-16) ---------- */
/* After the (now ~2.4s) namam opening, the intro has already been the dawn: show the hero promptly
   instead of replaying the full 3.2s dawn and the 1.1s+ staggered reveal. */
.intro-done .hero-veil { animation-duration: 1200ms; animation-delay: 0ms; }
.intro-done .rv { animation-duration: 700ms; animation-delay: calc(var(--i, 0) * 70ms); }

/* Directions beside the hours (desktop + tablet; phones also get the action bar) */
.gc-link svg { width: 16px; height: 16px; margin-right: 6px; flex: none; }

/* Phone action bar removed 2026-11-17 (owner: looked odd on mobile). Call/WhatsApp/Directions live in
   the glance card, the contact section and the footer. With no bar to dock into, the Pause control
   sits in the header beside the menu button on phones, so it never floats over body text. */
@media (max-width: 560px) {
  .topbar .nav > .btn { display: none; }
  /* topbar: padding-top --space-md, row height = logo (56px; 46px at <=440px), menu button 44px centred */
  .motion-toggle { top: calc(var(--space-md) + 6px); bottom: auto; z-index: 21;
    right: calc(clamp(var(--space-md), 4vw, var(--space-2xl)) + 44px + var(--space-xs)); }
  .topbar .brand { padding-right: calc(44px + var(--space-xs)); }
  .scroll-cue { bottom: max(var(--space-md), env(safe-area-inset-bottom)); }
}
@media (max-width: 440px) { .motion-toggle { top: calc(var(--space-md) + 1px); } }
@media (max-width: 560px) and (prefers-reduced-motion: reduce) { .topbar .brand { padding-right: 0; } }

/* 7-item menu (Hanuman Chalisa added 2026-11-16): keep the header on one line between 1024 and 1279px.
   Without this the temple name wraps to 3-4 lines and the header grows from 89px to 131px at 1024px. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav { gap: var(--space-md); }
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.875rem; min-width: 0; }
  .brand-te { white-space: nowrap; }
  .topbar .btn { padding-inline: var(--space-md); }
}

/* second "read more" link right under the first (Hanuman Chalisa, 2026-11-16) */
.more--next { margin-top: var(--space-md); }

/* reduced motion: stop the "Open now" pulse in every engine (the .is-open rule out-ranked the earlier override) */
@media (prefers-reduced-motion: reduce) { .open-now.is-open .on-dot::after { animation: none; } }
