/* ============================================================
   MAHARAJ JI — a digital mandir
   Warm light only. No black. No dark mode.
   Ivory, cream, sindoor red, saffron, marigold.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:         #FBF5EA;
  --bg-2:       #F7ECDB;
  --surface:    #FFFBF4;
  --surface-2:  #F3E5CF;
  --ink:        #3B1A12;
  --ink-soft:   #6E4433;
  --ink-muted:  #7C4A33;

  --red:        #B3222B;
  --red-deep:   #7C1418;
  --vermilion:  #D2452C;
  --saffron:    #E46F22;
  --marigold:   #F0A23A;
  --gold:       #8C5A12;
  --gold-hi:    #B8741A;

  --line:       #E6D2B5;
  --line-soft:  rgba(122, 42, 22, 0.14);
  --shadow:     0 30px 80px -34px rgba(122, 42, 22, 0.35);
  --shadow-sm:  0 14px 40px -22px rgba(122, 42, 22, 0.30);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Mukta", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --deva: "Tiro Devanagari Hindi", "Kohinoor Devanagari", "Devanagari Sangam MN", serif;

  --step--1: 0.8125rem;
  --step-0:  1.0625rem;
  --step-1:  1.375rem;
  --step-2:  1.875rem;
  --step-3:  2.5rem;
  --step-4:  3.5rem;
  --step-5:  clamp(3.25rem, 7.5vw, 6.75rem);

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --max: 1320px;
  --header-h: 78px;
  --tabs-h: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--marigold) transparent;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100svh;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--marigold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Type ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 { font-size: var(--step-5); }
h2 { font-size: clamp(2.25rem, 5vw, 4.25rem); }
h3 { font-size: var(--step-2); line-height: 1.1; }
h4 { font-size: var(--step-1); line-height: 1.2; }
p { text-wrap: pretty; }
.deva { font-family: var(--deva); font-weight: 400; letter-spacing: 0; line-height: 1.6; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.lede { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.65; color: var(--ink-soft); }
.muted { color: var(--ink-muted); }
.small { font-size: var(--step--1); }
.serif { font-family: var(--serif); }
.center { text-align: center; }
.balance { text-wrap: balance; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 10vw, 9rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--cream { background: var(--bg-2); }
.section--white { background: var(--surface); }
.section--red { background: var(--red); color: var(--surface); }
.section--red h2, .section--red h3, .section--red .eyebrow { color: var(--surface); }
.section-head { display: grid; gap: 1rem; max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head--split { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.rule { height: 1px; background: var(--line); border: 0; }
.rule--soft { background: var(--line-soft); }

/* ---------- Atmosphere ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.sunwash {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 85% 8%, rgba(240,162,58,0.20), transparent 60%),
    radial-gradient(ellipse 50% 40% at 8% 92%, rgba(226,111,34,0.12), transparent 60%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 80;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.5s var(--ease-soft), border-color 0.5s, backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(251, 245, 234, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line-soft);
}
.header-inner { width: min(100% - (var(--gutter) * 2), var(--max)); margin-inline: auto; display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; margin-right: auto; }
.brand__mark {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--deva); font-size: 1rem; color: var(--red);
  background: radial-gradient(circle at 50% 30%, rgba(240,162,58,0.22), var(--surface) 72%);
}
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.125rem; letter-spacing: 0.01em; }
.brand__sub { font-size: 0.5625rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-muted); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  position: relative; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); padding-block: 0.4rem; transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.icon-btn:hover { border-color: var(--red); color: var(--red); background: var(--surface); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

/* Mobile tab bar */
.tabs {
  position: fixed; z-index: 82; left: 0; right: 0; bottom: 0;
  display: none;
  padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
  background: rgba(255, 251, 244, 0.94);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 -12px 40px -30px rgba(122,42,22,0.35);
}
.tabs__inner { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.15rem; }
.tab {
  position: relative; min-height: 54px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.22rem;
  color: var(--ink-muted); font-size: 0.5625rem; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 12px; transition: color 0.25s, background 0.25s;
}
.tab svg { width: 21px; height: 21px; }
.tab[aria-current="page"] { color: var(--red); }
.tab[aria-current="page"]::before {
  content: ""; position: absolute; top: 0.15rem; width: 16px; height: 2px; border-radius: 2px;
  background: var(--red);
}
.tab:active { background: rgba(179,34,43,0.07); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 0.95rem 1.6rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink);
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.35s, border-color 0.35s, color 0.35s, transform 0.4s var(--ease-out), box-shadow 0.35s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--primary { background: var(--red); border-color: var(--red); color: var(--surface); }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--saffron { background: var(--saffron); border-color: var(--saffron); color: var(--surface); }
.btn--ghost { border-color: transparent; padding-inline: 0.25rem; color: var(--ink-muted); }
.btn--ghost:hover { background: none; color: var(--red); transform: none; box-shadow: none; }
.btn--ghost::after { content: "→"; transition: transform 0.4s var(--ease-out); }
.btn--ghost:hover::after { transform: translateX(4px); }
.btn svg { width: 15px; height: 15px; }
.btn--paper { border-color: rgba(59,26,18,0.22); color: var(--ink); background: transparent; }
.btn--paper:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  grid-template-areas: "intro media" "foot media";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 1.5rem clamp(2rem, 6vw, 6rem);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 64vw; height: 64vw; max-width: 860px; max-height: 860px;
  right: -10vw; top: 46%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(240,162,58,0.30), rgba(228,111,34,0.10) 44%, transparent 68%);
  filter: blur(14px);
}
.hero__intro { grid-area: intro; position: relative; z-index: 2; display: grid; gap: 1.1rem; justify-items: start; }
.hero__title { font-size: clamp(4rem, 9vw, 9rem); line-height: 0.84; letter-spacing: -0.04em; }
.hero__title em { font-style: italic; color: var(--red); }
.hero__deva { font-family: var(--deva); font-size: clamp(1.4rem, 2.4vw, 2.1rem); color: var(--saffron); line-height: 1.4; }
.hero__foot { grid-area: foot; position: relative; z-index: 2; align-self: end; display: grid; gap: 1.5rem; justify-items: start; }
.hero__copy { max-width: 34ch; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* Arched portrait */
.hero__media { grid-area: media; position: relative; z-index: 1; justify-self: end; align-self: center; width: min(100%, 540px); }
.arch {
  position: relative;
  border-radius: 999px 999px 8px 8px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  transform: translateZ(0);
  border: 1px solid rgba(179,34,43,0.28);
}
.arch::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(251,245,234,0) 58%, rgba(59,26,18,0.18) 100%);
  pointer-events: none;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; filter: saturate(0.96) contrast(1.01); }
.arch__line {
  position: absolute; inset: 10px; border-radius: inherit;
  border: 1px solid rgba(255, 251, 244, 0.55); pointer-events: none; z-index: 2;
}
.arch__caption {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 1.1rem;
  text-align: center; font-family: var(--deva); color: rgba(255,251,244,0.92); font-size: 0.9rem;
}
.arch__finial {
  position: absolute; z-index: 4; top: 0.85rem; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--deva); font-size: 0.8rem; color: var(--red);
}
.hero__media-note {
  position: absolute; right: -0.4rem; bottom: -1.6rem;
  font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted);
  writing-mode: vertical-rl;
}

/* Diya */
.diya {
  display: inline-grid; justify-items: center; gap: 0.35rem;
  padding: 0.25rem; border-radius: 18px;
  color: var(--ink-muted);
  transition: color 0.4s;
}
.diya:hover { color: var(--red); }
.diya svg { width: 120px; height: auto; overflow: visible; }
.diya__label { font-size: 0.5625rem; letter-spacing: 0.2em; text-transform: uppercase; }
.diya .flame { transform-origin: 50% 100%; transform: scale(0.001); opacity: 0; transition: transform 0.8s var(--ease-out), opacity 0.6s; }
.diya .glow { opacity: 0; transition: opacity 1.2s; }
.diya.is-lit .flame { transform: scale(1); opacity: 1; animation: flicker 2.8s ease-in-out infinite; }
.diya.is-lit .glow { opacity: 1; }
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-1deg); }
  22% { transform: scale(1.04, 0.97) rotate(1.5deg); }
  44% { transform: scale(0.97, 1.05) rotate(-1deg); }
  67% { transform: scale(1.02, 0.99) rotate(0.8deg); }
  84% { transform: scale(0.99, 1.02) rotate(-0.5deg); }
}
.hero__diya { position: absolute; z-index: 5; left: 50%; bottom: -3.1rem; transform: translateX(-50%); }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 0.5rem;
  font-size: 0.5625rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-muted);
}
.scroll-cue::after {
  content: ""; width: 1px; height: 38px;
  background: linear-gradient(var(--red), transparent);
  animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(0.35); opacity: 0.4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }

/* ---------- Quotes ---------- */
.quotes { position: relative; overflow: hidden; }
.quote-stage { position: relative; min-height: clamp(14rem, 30vw, 22rem); display: grid; place-items: center; text-align: center; }
.quote {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 1.5rem;
  opacity: 0; transform: translateY(14px); filter: blur(4px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-out), filter 0.9s;
  padding-inline: 1rem;
}
.quote.is-active { opacity: 1; transform: none; filter: none; }
.quote__text { font-family: var(--serif); font-size: clamp(1.75rem, 4.2vw, 3.5rem); line-height: 1.12; max-width: 22ch; color: var(--ink); }
.quote__text::before { content: "“"; color: var(--red); margin-right: -0.06em; }
.quote__text::after { content: "”"; color: var(--red); margin-left: -0.06em; }
.quote__src { font-size: 0.625rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); }
.quote-dots { display: flex; justify-content: center; gap: 0.55rem; margin-top: 2.5rem; }
.quote-dots button { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background 0.3s, transform 0.3s; }
.quote-dots button[aria-current="true"] { background: var(--red); transform: scale(1.5); }

/* ---------- Doors ---------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.door {
  position: relative; display: grid; align-content: space-between; gap: 3rem;
  min-height: clamp(18rem, 30vw, 26rem);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s, border-color 0.4s;
}
.door::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%;
  background: radial-gradient(ellipse at 50% 100%, rgba(240,162,58,0.28), transparent 70%);
  opacity: 0; transition: opacity 0.6s;
}
.door:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.door:hover::before { opacity: 1; }
.door__num { font-size: 0.625rem; letter-spacing: 0.24em; color: var(--red); }
.door__title { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; }
.door__title .deva { display: block; font-size: 0.85rem; color: var(--saffron); margin-top: 0.6rem; }
.door__desc { color: var(--ink-muted); max-width: 30ch; font-size: 0.9375rem; }
.door__arrow {
  position: absolute; right: 1.75rem; top: 1.75rem; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--red);
  transition: background 0.4s, color 0.4s, transform 0.5s var(--ease-out);
}
.door:hover .door__arrow { background: var(--red); color: var(--surface); transform: rotate(-45deg); }

/* ---------- Today's darshan ---------- */
.today { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.today__frame { position: relative; }
.today__frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; filter: saturate(0.96); box-shadow: var(--shadow-sm); }
.today__frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,251,244,0.5); pointer-events: none; }
.today__body { display: grid; gap: 1.4rem; justify-items: start; }
.today__date { font-size: 0.625rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); }
.today__title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.02; }
.today__caption { color: var(--ink-muted); font-size: 0.875rem; }

/* ---------- Gallery ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--line-soft);
  background: var(--surface);
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.chip[aria-pressed="true"] { border-color: var(--red); color: var(--surface); background: var(--red); }
.chip:hover { border-color: var(--red); color: var(--red); }
.chip[aria-pressed="true"]:hover { color: var(--surface); }

.masonry { columns: 3; column-gap: 1rem; }
.masonry__item {
  break-inside: avoid; margin-bottom: 1rem; position: relative; overflow: hidden;
  border-radius: 3px; background: var(--surface-2);
  border: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-out), box-shadow 0.5s;
  width: 100%; padding: 0; text-align: left;
}
.masonry__item.is-in { opacity: 1; transform: none; }
.masonry__item:hover { box-shadow: var(--shadow-sm); }
.masonry__item img { width: 100%; transition: transform 1.1s var(--ease-out), filter 0.6s; filter: saturate(0.94) contrast(1.01); }
.masonry__item:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.03); }
.masonry__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(59,26,18,0.55));
  opacity: 0; transition: opacity 0.5s;
}
.masonry__item:hover::after { opacity: 1; }
.masonry__cap {
  position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 0.9rem;
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
  transform: translateY(10px); opacity: 0; transition: opacity 0.5s, transform 0.5s var(--ease-out);
}
.masonry__item:hover .masonry__cap { opacity: 1; transform: none; }
.masonry__cap span { font-size: 0.6875rem; letter-spacing: 0.06em; color: #FFFBF4; }
.masonry__cap i { font-family: var(--serif); font-style: normal; color: var(--marigold); font-size: 1rem; }

/* Lightbox — warm ivory, never black */
dialog.lightbox {
  width: 100vw; max-width: none; height: 100svh; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(251, 245, 234, 0.985);
  color: var(--ink);
  overscroll-behavior: contain;
}
dialog.lightbox::backdrop { background: rgba(122, 42, 22, 0.25); }
dialog.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb 0.45s var(--ease-out); }
@keyframes lb { from { opacity: 0; } to { opacity: 1; } }
.lb__bar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line-soft); }
.lb__count { font-size: 0.625rem; letter-spacing: 0.2em; color: var(--ink-muted); }
.lb__stage { position: relative; display: grid; place-items: center; padding: 1rem; min-height: 0; }
.lb__stage img { max-width: 100%; max-height: calc(100svh - 200px); object-fit: contain; border-radius: 2px; box-shadow: 0 30px 90px -30px rgba(122,42,22,0.45); }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: var(--red);
  background: rgba(255,251,244,0.86); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.lb__nav:hover { background: var(--red); border-color: var(--red); color: var(--surface); }
.lb__nav--prev { left: 1rem; } .lb__nav--next { right: 1rem; }
.lb__foot { padding: 1rem 1.5rem calc(1.25rem + env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--line-soft); }
.lb__title { font-family: var(--serif); font-size: 1.375rem; }
.lb__sub { font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin-top: 0.25rem; }

/* ---------- Dhun page ---------- */
.dhun { min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; padding-block: clamp(2rem, 6vw, 5rem); }
.player { display: grid; justify-items: center; gap: 1.75rem; width: min(100%, 640px); text-align: center; }
.orb {
  position: relative; width: min(72vw, 400px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,251,244,0.95), rgba(240,162,58,0.55) 34%, rgba(228,111,34,0.30) 58%, rgba(251,245,234,0) 74%),
    radial-gradient(circle at 50% 50%, var(--surface), var(--bg-2) 72%);
  border: 1px solid rgba(179,34,43,0.20);
  box-shadow: inset 0 0 70px rgba(240,162,58,0.35), 0 24px 70px -30px rgba(122,42,22,0.45);
}
.orb::before, .orb::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(179,34,43,0.16);
  animation: breathe 7s var(--ease-in-out) infinite;
}
.orb::after { inset: -34px; border-color: rgba(179,34,43,0.08); animation-delay: -3.5s; }
@keyframes breathe { 0%,100% { transform: scale(0.97); opacity: 0.4; } 50% { transform: scale(1.03); opacity: 1; } }
.orb.is-playing::before { animation-duration: 4.2s; }
.orb canvas { position: absolute; inset: 11%; width: 78%; height: 78%; }
.orb__center { position: relative; z-index: 2; display: grid; justify-items: center; gap: 0.3rem; }
.orb__deva { font-family: var(--deva); font-size: clamp(2rem, 6vw, 3.25rem); color: var(--red-deep); text-shadow: 0 2px 20px rgba(255,251,244,0.8); }
.orb__sub { font-size: 0.5625rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); }
.player__title { font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 2.75rem); }
.player__meta { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); }
.transport { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.play-btn {
  width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: var(--surface);
  box-shadow: 0 14px 40px -16px rgba(179,34,43,0.55);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.play-btn:hover { transform: scale(1.05); background: var(--red-deep); }
.play-btn svg { width: 22px; height: 22px; }
.seek { width: 100%; display: grid; gap: 0.5rem; }
.seek input[type="range"] { width: 100%; appearance: none; -webkit-appearance: none; height: 2px; background: var(--line); border-radius: 2px; outline: none; }
.seek input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--red); cursor: pointer; border: 2px solid var(--surface); box-shadow: 0 2px 8px rgba(122,42,22,0.3); }
.seek input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid var(--surface); border-radius: 50%; background: var(--red); cursor: pointer; }
.seek__times { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; font-size: 0.6875rem; color: var(--ink-muted); }
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.55rem 0.95rem; border-radius: 999px; border: 1px solid var(--line-soft);
  background: var(--surface);
  font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.pill:hover { color: var(--red); border-color: var(--line); }
.pill[aria-pressed="true"] { border-color: var(--red); color: var(--surface); background: var(--red); }
.pill svg { width: 14px; height: 14px; }

/* ---------- Lilas ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)); padding-bottom: clamp(2rem, 5vw, 4rem); }
.page-head__title { font-size: clamp(3rem, 8vw, 7rem); line-height: 0.9; letter-spacing: -0.03em; }
.page-head__intro { max-width: 58ch; margin-top: 1.75rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-soft); }

.stories { display: grid; gap: clamp(3rem, 8vw, 7rem); }
.story { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.story:nth-child(even) { grid-template-columns: 1.15fr 0.85fr; }
.story:nth-child(even) .story__media { order: 2; }
.story__media { position: relative; }
.story__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: saturate(0.94) contrast(1.01); border-radius: 2px; box-shadow: var(--shadow-sm); }
.story__media::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,251,244,0.55); pointer-events: none; }
.story__index { font-family: var(--serif); font-size: 0.875rem; color: var(--red); letter-spacing: 0.12em; }
.story__body { display: grid; gap: 1.1rem; padding-top: 0.5rem; }
.story__title { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.02; }
.story__text { color: var(--ink-soft); max-width: 56ch; }
.story__source { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.story__source a { border-bottom: 1px solid rgba(179,34,43,0.35); transition: color 0.3s, border-color 0.3s; }
.story__source a:hover { color: var(--red); border-color: var(--red); }

.timeline { position: relative; display: grid; margin-top: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--line); }
.tl-item { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 2rem; padding: 1.5rem 0 1.5rem 2.25rem; }
.tl-item::before { content: ""; position: absolute; left: 2px; top: 1.95rem; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 1px solid var(--red); }
.tl-item__year { font-family: var(--serif); font-size: 1.375rem; color: var(--red); }
.tl-item__text { color: var(--ink-soft); max-width: 60ch; }

/* ---------- Practice ---------- */
.practice-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.japa { display: grid; justify-items: center; gap: 1.25rem; }
.mala {
  position: relative; width: min(80vw, 380px); aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(240,162,58,0.20), transparent 62%);
  touch-action: manipulation;
}
.mala__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.mala__ring .bead { fill: var(--surface); stroke: rgba(179,34,43,0.28); stroke-width: 2; transition: fill 0.3s, stroke 0.3s; }
.mala__ring .bead.done { fill: var(--red); stroke: var(--red); }
.mala__ring .bead.current { stroke: var(--red); stroke-width: 4; }
.mala__btn {
  position: relative; z-index: 2; width: 46%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(179,34,43,0.22);
  background: radial-gradient(circle at 50% 32%, #FFFDF8, #F3E2C8);
  display: grid; place-items: center; gap: 0.1rem;
  box-shadow: 0 22px 60px -24px rgba(122,42,22,0.45), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s;
}
.mala__btn:active { transform: scale(0.97); box-shadow: 0 10px 30px -12px rgba(122,42,22,0.35); }
.mala__count { font-family: var(--serif); font-size: clamp(2.5rem, 8vw, 4rem); line-height: 1; color: var(--ink); }
.mala__label { font-size: 0.5625rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-muted); }
.japa__hint { font-size: 0.8125rem; color: var(--ink-muted); text-align: center; max-width: 34ch; }
.japa__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.japa__done { color: var(--red); font-family: var(--serif); font-size: 1.25rem; }

.practice-list { display: grid; border-top: 1px solid var(--line-soft); }
.practice-item { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line-soft); transition: padding 0.4s var(--ease-out), color 0.3s; }
.practice-item:hover { padding-left: 0.6rem; color: var(--red); }
.practice-item__title { font-family: var(--serif); font-size: 1.5rem; }
.practice-item__note { font-size: 0.75rem; color: var(--ink-muted); }
.practice-item__arrow { color: var(--red); }

/* ---------- Seva ---------- */
.seva-hero { background: linear-gradient(160deg, var(--red) 0%, var(--vermilion) 62%, var(--saffron) 130%); color: var(--surface); }
.seva-hero .eyebrow { color: var(--marigold); }
.seva-quote { font-family: var(--serif); font-size: clamp(2.25rem, 6vw, 5rem); line-height: 1.02; max-width: 18ch; color: var(--surface); }
.seva-quote em { font-style: italic; color: #FFE3B8; }
.seva-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.seva-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 4px; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1rem; align-content: start; }
.seva-card h3 { font-size: 1.5rem; }
.seva-card p { color: var(--ink-muted); font-size: 0.9375rem; }
.seva-card a { color: var(--red); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 2px; justify-self: start; }

/* ---------- Film ---------- */
.film-frame { position: relative; border: 1px solid var(--line); background: var(--red-deep); box-shadow: var(--shadow); padding: 0.5rem; border-radius: 3px; }
.film-frame video { width: 100%; aspect-ratio: 16/9; background: var(--red-deep); border-radius: 2px; }
.film-frame::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,251,244,0.18); pointer-events: none; }

/* ---------- Places ---------- */
.places { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.place { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 4px; padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 0.75rem; transition: transform 0.5s var(--ease-out), box-shadow 0.5s; }
.place:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.place__name { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; }
.place__loc { font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.place__desc { color: var(--ink-soft); font-size: 0.9375rem; }
.place__note { font-size: 0.75rem; color: var(--ink-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--red-deep);
  color: rgba(255, 243, 226, 0.86);
  padding-block: clamp(3.5rem, 7vw, 6rem) calc(2.5rem + env(safe-area-inset-bottom));
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 0%, rgba(240,162,58,0.22), transparent 60%);
  pointer-events: none;
}
.footer-top { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: end; }
.footer-mark { font-family: var(--deva); font-size: clamp(4rem, 12vw, 10rem); line-height: 0.9; color: rgba(255, 227, 184, 0.22); }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 2rem; }
.footer-links a { font-size: 0.75rem; letter-spacing: 0.1em; color: rgba(255, 243, 226, 0.70); transition: color 0.3s; }
.footer-links a:hover { color: var(--marigold); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 243, 226, 0.16); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 243, 226, 0.55); }
.footer-dedication { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.75rem); color: rgba(255, 243, 226, 0.92); max-width: 34ch; line-height: 1.35; }

/* ---------- Mini player ---------- */
.mini {
  position: fixed; z-index: 78; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 251, 244, 0.95); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px -24px rgba(122,42,22,0.45);
  transition: transform 0.6s var(--ease-out);
  max-width: calc(100vw - 2rem);
}
.mini.is-visible { transform: translate(-50%, 0); }
.mini__label { font-size: 0.5625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.mini__label b { display: block; color: var(--red); font-family: var(--deva); font-size: 0.9rem; letter-spacing: 0.02em; }
.mini button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--surface); background: var(--red); }
.mini button svg { width: 16px; height: 16px; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.35s var(--ease-soft) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .masonry { columns: 2; }
  .seva-grid { grid-template-columns: 1fr; }
  .places { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; --tabs-h: 64px; }
  body { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); font-size: 1rem; }
  .nav { display: none; }
  .tabs { display: block; }
  .site-header { height: var(--header-h); }
  .header-inner { gap: 0.5rem; }
  .brand__mark { width: 34px; height: 34px; flex-basis: 34px; }
  .brand__name { font-size: 1rem; }
  .brand__sub { font-size: 0.5rem; }

  .hero {
    display: block;
    min-height: 0;
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: 1.5rem;
    overflow: hidden;
  }
  .hero__glow {
    width: 120vw; height: 120vw; right: -40vw; top: 18%; opacity: 0.9;
  }
  .hero__intro { gap: 0.9rem; }
  .hero__title { font-size: clamp(3.6rem, 17vw, 5.6rem); }
  .hero__deva { font-size: 1.3rem; }
  .hero__foot { margin-top: 1.25rem; gap: 1.1rem; }
  .hero__copy { font-size: 0.9375rem; max-width: 36ch; }
  .hero__actions { gap: 0.75rem; width: 100%; }
  .btn { padding: 0.85rem 1.35rem; font-size: 0.6875rem; }
  .hero__media { width: min(78vw, 380px); margin: 1.5rem auto 0; justify-self: center; }
  .arch { aspect-ratio: 4/5; }
  .hero__media-note { display: none; }
  .hero__diya { position: static; transform: none; margin: 0.4rem auto 0; }
  .diya svg { width: 86px; }
  .diya__label { font-size: 0.5rem; }
  .scroll-cue { display: none; }

  .section { padding-block: clamp(3.25rem, 11vw, 5rem); }
  .section-head { margin-bottom: 2rem; }
  .section-head--split { grid-template-columns: 1fr; align-items: start; gap: 1.25rem; }
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 0; gap: 2rem; padding: 1.6rem 1.25rem; }
  .door__arrow { top: 1.2rem; right: 1.2rem; }
  .today { grid-template-columns: 1fr; gap: 2rem; }
  .today__frame img { aspect-ratio: 5/4; }
  .masonry { columns: 2; column-gap: 0.6rem; }
  .masonry__item { margin-bottom: 0.6rem; }
  .masonry__cap { display: none; }
  .masonry__item::after { display: none; }
  .quote-stage { min-height: 17rem; }
  .quote__text { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .story, .story:nth-child(even) { grid-template-columns: 1fr; gap: 1.5rem; }
  .story:nth-child(even) .story__media { order: 0; }
  .story__media img { aspect-ratio: 4/3; }
  .timeline::before { left: 4px; }
  .tl-item { grid-template-columns: 1fr; gap: 0.35rem; padding-left: 1.75rem; }
  .tl-item::before { left: -1px; top: 1.2rem; }
  .practice-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .mini { bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 0.75rem); }
  .lb__nav { width: 44px; height: 44px; }
  .lb__nav--prev { left: 0.5rem; } .lb__nav--next { right: 0.5rem; }
  .lb__stage img { max-height: calc(100svh - 230px); }
  .page-head { padding-top: calc(var(--header-h) + 2.5rem); }
  .page-head__title { font-size: clamp(2.75rem, 13vw, 4.5rem); }
  .seva-quote { font-size: clamp(2rem, 9vw, 3.25rem); }
  .film-frame { padding: 0.3rem; }
  .film-frame::after { inset: 8px; }
}

@media (max-width: 380px) {
  .masonry { columns: 1; }
  .tab { font-size: 0.5rem; }
}

/* Desktop pointer flourishes */
@media (hover: hover) and (pointer: fine) {
  .hero__media { transition: transform 0.8s var(--ease-out); }
  .hero__media:hover { transform: translateY(-4px); }
  .cursor-glow {
    position: fixed; z-index: 1; pointer-events: none;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(240,162,58,0.16), transparent 65%);
    transform: translate(-50%, -50%);
    opacity: 0; transition: opacity 0.6s;
  }
  body:hover .cursor-glow { opacity: 1; }
}
@media (hover: none) { .cursor-glow { display: none; } }

/* Print */
@media print {
  .site-header, .tabs, .mini, .grain, .sunwash, .diya, .scroll-cue { display: none !important; }
  body { background: #FFF; color: var(--ink); }
  .hero, .section { min-height: 0; padding: 2rem 0; }
  .hero__media { display: none; }
  .site-footer { background: none; color: var(--ink); }
  .footer-mark { color: rgba(59,26,18,0.1); }
}

/* ---------- Editorial split ---------- */
.split { display: grid; grid-template-columns: 0.36fr 0.64fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split__aside { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1.25rem; }
.split__deva { font-family: var(--deva); font-size: clamp(1.05rem, 1.5vw, 1.35rem); color: var(--saffron); line-height: 1.75; max-width: 22ch; }
.split__body { display: grid; gap: 1.75rem; justify-items: start; }
.prose { display: grid; gap: 1.15rem; max-width: 62ch; color: var(--ink-soft); font-size: clamp(1rem, 1.15vw, 1.0625rem); }
.prose em { font-style: italic; color: var(--ink); }
.prose p:first-child::first-letter { font-family: var(--serif); font-size: 3.2em; float: left; line-height: 0.8; padding: 0.08em 0.12em 0 0; color: var(--red); }

/* ---------- Invitation ---------- */
.invite { display: grid; gap: 1.1rem; justify-items: center; margin-top: 1.5rem; }
.invite p { font-family: var(--serif); font-size: clamp(2.2rem, 5.4vw, 4.5rem); line-height: 1.05; color: var(--ink); letter-spacing: -0.02em; }
.invite cite { font-size: 0.625rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-muted); font-style: normal; }
.invite__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .split__aside { position: static; }
  .split__deva { display: none; }
  .prose p:first-child::first-letter { font-size: 2.8em; }
}

/* ---------- Dhun extras ---------- */
.dhun { padding-top: calc(var(--header-h) + clamp(1.5rem, 4vw, 3rem)); }
.volume { display: flex; align-items: center; gap: 0.75rem; width: min(100%, 300px); color: var(--ink-muted); }
.volume svg { width: 16px; height: 16px; flex: 0 0 auto; }
.volume input { flex: 1; appearance: none; -webkit-appearance: none; height: 2px; background: var(--line); border-radius: 2px; }
.volume input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--saffron); border: 2px solid var(--surface); cursor: pointer; }
.volume input::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid var(--surface); border-radius: 50%; background: var(--saffron); cursor: pointer; }
.player__note { max-width: 54ch; font-size: 0.8125rem; color: var(--ink-muted); line-height: 1.75; margin-top: 0.5rem; }

/* ---------- Fixes after first render ---------- */
[hidden] { display: none !important; }

@media (max-width: 860px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100svh;
    padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 2rem);
  }
  .hero__intro { order: 1; }
  .hero__foot { order: 2; margin-top: 1.4rem; }
  .hero__media { order: 3; margin: 1.9rem auto 0; width: min(72vw, 340px); }
  .hero__copy { font-size: 0.9375rem; }
  .hero__actions { margin-top: 0.25rem; }
  .hero__diya { margin: 0.6rem auto 0; }
  .diya svg { width: 96px; }
  .hero .arch { aspect-ratio: 4 / 5; }
}

/* ---------- Hero composition refinement ---------- */
.hero {
  grid-template-rows: auto auto;
  align-content: center;
  gap: clamp(1.6rem, 3vw, 2.6rem) clamp(2rem, 6vw, 6rem);
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero__foot { align-self: start; }
@media (max-width: 860px) {
  .hero { align-content: normal; }
}

/* ---------- Desktop hero: two columns, media absolute ---------- */
@media (min-width: 861px) {
  .hero {
    display: block;
    position: relative;
    min-height: 100svh;
    padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
    padding-bottom: clamp(4rem, 8vw, 6rem);
  }
  .hero__intro { max-width: 47%; }
  .hero__foot { max-width: 47%; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
  .hero__media {
    position: absolute;
    right: 0;
    top: 51%;
    transform: translateY(-50%);
    width: min(43vw, 520px);
    justify-self: auto;
  }
  .hero__media:hover { transform: translateY(-50%) translateY(-4px); }
  .hero__diya { bottom: -3.6rem; }
  .hero__diya svg { width: 136px; }
}

/* ---------- Seva header on sindoor red ---------- */
body[data-page="seva"] .site-header:not(.is-scrolled) .brand__name { color: #FFF3E2; }
body[data-page="seva"] .site-header:not(.is-scrolled) .brand__sub { color: rgba(255,243,226,0.62); }
body[data-page="seva"] .site-header:not(.is-scrolled) .brand__mark { background: rgba(255,251,244,0.10); border-color: rgba(255,243,226,0.34); color: #FFF3E2; }
body[data-page="seva"] .site-header:not(.is-scrolled) .nav a { color: rgba(255,243,226,0.80); }
body[data-page="seva"] .site-header:not(.is-scrolled) .nav a:hover,
body[data-page="seva"] .site-header:not(.is-scrolled) .nav a[aria-current="page"] { color: #FFF3E2; }
body[data-page="seva"] .site-header:not(.is-scrolled) .nav a::after { background: #FFF3E2; }
body[data-page="seva"] .site-header:not(.is-scrolled) .icon-btn { color: #FFF3E2; border-color: rgba(255,243,226,0.32); }
body[data-page="seva"] .site-header:not(.is-scrolled) .icon-btn:hover { background: rgba(255,251,244,0.12); color: #FFF3E2; border-color: #FFF3E2; }

/* ---------- Mobile page-head tightening ---------- */
@media (max-width: 860px) {
  .page-head { padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 1.1rem; }
  .page-head__title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .page-head__intro { margin-top: 0.9rem; font-size: 0.9375rem; line-height: 1.6; }
  .hero__title { font-size: clamp(3.1rem, 15vw, 5rem); }
  .hero__media { width: min(66vw, 300px); margin-top: 1.35rem; }
  .hero__foot { margin-top: 1.1rem; }
  .hero__copy { font-size: 0.9rem; }
  .hero__media-note { display: none; }
  .mala { width: min(72vw, 300px); }
  .dhun { padding-top: calc(var(--header-h) + 1rem); }
}
.hero__media-note { display: none; }
.orb { cursor: pointer; }

/* ---------- Prayer reader ---------- */
.reader { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: 4rem; }
.reader__nav { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 0.15rem; }
.reader__nav a { padding: 0.55rem 0.75rem; border-radius: 3px; font-size: 0.8125rem; color: var(--ink-muted); border-left: 2px solid transparent; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.reader__nav a:hover { color: var(--ink); background: var(--bg-2); }
.reader__nav a.is-active { color: var(--red); border-left-color: var(--red); background: var(--bg-2); }
.reader__main { min-width: 0; }
.reader__tools { position: sticky; top: var(--header-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.75rem 0; margin-bottom: 2rem; background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.reader__tools .spacer { flex: 1; }
.reader__tools .tool { padding: 0.4rem 0.75rem; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); transition: all 0.25s; }
.reader__tools .tool[aria-pressed="true"] { border-color: var(--red); color: var(--red); background: rgba(179,34,43,0.05); }
.reader__tools .tool:hover { border-color: var(--red); color: var(--red); }
.prayer { scroll-margin-top: calc(var(--header-h) + 4.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.prayer__head { margin-bottom: 1.5rem; }
.prayer__title { font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1; }
.prayer__note { margin-top: 1rem; max-width: 60ch; font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.7; }
.verse { display: grid; gap: 0.45rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line-soft); }
.verse__label { font-size: 0.5625rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }
.verse__deva { font-family: var(--deva); font-size: 1.35rem; line-height: 1.75; color: var(--ink); }
.verse__roman { font-size: 0.875rem; line-height: 1.65; color: var(--ink-muted); font-style: italic; }
.verse__en { font-size: 0.9375rem; line-height: 1.7; color: var(--ink-soft); max-width: 62ch; }
.reader__body.hide-roman .verse__roman { display: none; }
.reader__body.hide-en .verse__en { display: none; }
.reader[data-size="1"] .verse__deva { font-size: 1.15rem; }
.reader[data-size="3"] .verse__deva { font-size: 1.7rem; }
.reader[data-size="1"] .verse__en, .reader[data-size="1"] .verse__roman { font-size: 0.8125rem; }
.reader[data-size="3"] .verse__en, .reader[data-size="3"] .verse__roman { font-size: 1.0625rem; }
.prayer__source { margin-top: 1.25rem; font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.prayer__source a { color: var(--red); border-bottom: 1px solid var(--line); }
.reader-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

@media (max-width: 860px) {
  .reader { grid-template-columns: 1fr; gap: 0; }
  .reader__nav { position: sticky; top: var(--header-h); z-index: 21; display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.6rem 0; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line-soft); scrollbar-width: none; }
  .reader__nav::-webkit-scrollbar { display: none; }
  .reader__nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 0.45rem 0.5rem; }
  .reader__nav a.is-active { border-left: 0; border-bottom-color: var(--red); background: none; }
  .reader__tools { top: calc(var(--header-h) + 46px); margin-bottom: 1.5rem; background: var(--bg); }
  .verse__deva { font-size: 1.2rem; }
}

/* Unlit diya as a visible invitation */
.hero__diya { bottom: -4.4rem; }
.hero__diya svg { width: 150px; }
.hero__diya::before {
  content: ""; position: absolute; z-index: -1;
  width: 120px; height: 92px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, rgba(240,162,58,0.28), transparent 70%);
  filter: blur(6px);
}
.hero__diya .diya__label { color: var(--red); font-size: 0.625rem; letter-spacing: 0.22em; }
.hero__diya:hover .diya__label { color: var(--red-deep); }
@media (max-width: 860px) {
  .hero__diya { bottom: auto; }
  .hero__diya svg { width: 110px; }
  .hero__diya::before { width: 90px; height: 70px; }
}

/* Native-only settings */
.native-card { display: grid; justify-items: center; gap: 0.75rem; margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--surface); }
.native-card[hidden] { display: none; }
