/* Sai Mandir Kitchener: site styles */

@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Tiro Devanagari Hindi"; src: url("/assets/fonts/tiro-devanagari.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

:root {
  --night: #1c0508;
  --maroon: #3d0a12;
  --maroon-2: #64121e;
  --saffron: #f28c28;
  --vermilion: #e2622b;
  --marigold: #ffb627;
  --gold: #e9c46a;
  --cream: #fff7e8;
  --cream-2: #f7ecd6;
  --ink: #2b1a12;
  --ink-soft: #5d4637;
  --on-dark: #fbefdc;
  --on-dark-soft: #e4cdb0;

  --serif: "Cormorant Garamond", "Tiro Devanagari Hindi", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --deva: "Tiro Devanagari Hindi", "Cormorant Garamond", serif;

  --wrap: 1180px;
  --radius: 18px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--cream); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 em, h1 em { font-style: italic; font-weight: 500; color: var(--vermilion); }
p { margin: 0 0 1em; }
[lang="hi"] { font-family: var(--deva); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--marigold); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Scroll progress (scroll-driven animation where supported) */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--vermilion), var(--marigold)); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); color: var(--on-dark); transition: background .4s, box-shadow .4s, height .4s; }
.site-header.is-scrolled { background: rgb(28 5 8 / .82); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgb(233 196 106 / .18); --header-h: 62px; height: 62px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgb(255 182 39 / .55)); }
.brand-mark .diya-flame, .countdown-diya .diya-flame { transform-origin: 24px 22px; animation: flicker 2.6s ease-in-out infinite; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; }
.brand-sub { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); }
.nav-list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-list a { display: block; padding: .5rem .8rem; text-decoration: none; font-size: .95rem; border-radius: 999px; transition: background .25s, color .25s; }
.nav-list a:hover { background: rgb(255 255 255 / .08); }
.nav-list .nav-cta { background: var(--marigold); color: var(--night); font-weight: 600; margin-left: .35rem; }
.nav-list .nav-cta:hover { background: #ffc955; }
.nav-toggle { display: none; }
.sound-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgb(233 196 106 / .35); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .25s, border-color .25s; }
.sound-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.sound-toggle .wave { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: .35; }
.sound-toggle[aria-pressed="true"] { background: rgb(255 182 39 / .18); border-color: var(--marigold); }
.sound-toggle[aria-pressed="true"] .wave { opacity: 1; animation: wave 1.6s ease-in-out infinite; }

@media (max-width: 880px) {
  .nav { order: 3; }
  .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgb(233 196 106 / .35); background: transparent; cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; content: ""; }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-list { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem 1.5rem; background: rgb(28 5 8 / .97); backdrop-filter: blur(14px); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease-out), visibility 0s .3s; }
  .nav-list.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav-list a { padding: .85rem .5rem; font-size: 1.1rem; border-radius: 10px; }
  .nav-list .nav-cta { margin: .6rem 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease-out), background .25s, box-shadow .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: linear-gradient(135deg, var(--marigold), var(--saffron)); color: var(--night); box-shadow: 0 10px 30px -10px rgb(242 140 40 / .7); }
.btn-primary:hover { box-shadow: 0 16px 36px -10px rgb(242 140 40 / .85); }
.btn-ghost { border-color: rgb(233 196 106 / .5); color: var(--on-dark); background: rgb(255 255 255 / .03); }
.btn-ghost:hover { border-color: var(--marigold); background: rgb(255 182 39 / .1); }
.btn-ghost-dark { border-color: rgb(43 26 18 / .25); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--vermilion); color: var(--vermilion); }
.bell-icon { width: 20px; height: 20px; fill: var(--marigold); transform-origin: 50% 8%; }
.bell-btn.is-ringing .bell-icon { animation: ring 1.4s var(--ease-out); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(var(--header-h) + 3rem) 0 5rem; color: var(--on-dark); isolation: isolate; overflow: hidden;
  background:
    radial-gradient(60% 55% at 72% 48%, rgb(242 140 40 / .28), transparent 70%),
    radial-gradient(80% 60% at 10% 100%, rgb(100 18 30 / .9), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--maroon) 70%, #4c0d16 100%);
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.om { font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--marigold); margin-bottom: .2em; text-shadow: 0 0 24px rgb(255 182 39 / .5); }
.hero h1 { font-size: clamp(4rem, 10vw, 8.2rem); font-weight: 600; margin-bottom: .15em; line-height: .95;
  background: linear-gradient(100deg, #fff4dc 0%, #ffd27a 35%, #fff4dc 50%, #ffd27a 65%, #fff4dc 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 9s linear infinite; }
.hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--on-dark-soft); max-width: 34ch; }
.status { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .95rem .45rem .75rem; border-radius: 999px; background: rgb(255 255 255 / .06); border: 1px solid rgb(233 196 106 / .25); font-size: .95rem; margin: .5rem 0 1.8rem; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--on-dark-soft); }
.status.is-open .status-dot { background: #6be38f; box-shadow: 0 0 0 0 rgb(107 227 143 / .6); animation: ping 2s infinite; }
.status.is-soon .status-dot { background: var(--marigold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 560px; justify-self: center; width: 100%; }
.mandala { position: absolute; inset: -8%; opacity: .5; animation: spin 140s linear infinite; }
.mandala svg { width: 100%; height: 100%; }
.halo { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(255 205 110 / .55), rgb(242 140 40 / .18) 45%, transparent 70%); animation: breathe 6s ease-in-out infinite; }
.arch { position: relative; margin: 0; width: 74%; aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px; padding: 7px; background: linear-gradient(160deg, #ffe39e, var(--saffron) 40%, #8d2a12 75%, var(--gold)); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .7), 0 0 60px rgb(255 182 39 / .25); }
.arch picture, .arch img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: 50% 30%; }
.arch::after { content: ""; position: absolute; inset: 7px; border-radius: 999px 999px 16px 16px; background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / .22) 50%, transparent 65%) -200% 0 / 250% 100% no-repeat; animation: sheen 7s ease-in-out infinite 2s; pointer-events: none; }

.toran { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 0; pointer-events: none; }
.toran::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; background: radial-gradient(circle at 7px 7px, var(--saffron) 0 6px, transparent 6.5px) 0 0 / 14px 14px repeat-x; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .35)); }
.strand { position: absolute; top: 6px; width: 14px; transform-origin: 50% 0; animation: sway var(--dur, 6s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s);
  height: var(--len, 120px);
  background: radial-gradient(circle at 50% 50%, var(--c, var(--marigold)) 0 6px, transparent 6.5px) 0 0 / 14px 12px repeat-y;
  filter: drop-shadow(0 3px 3px rgb(0 0 0 / .35)); }
.strand::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 10px; height: 16px; translate: -50% 0; background: #2f7d3a; border-radius: 0 100% 0 100%; rotate: 45deg; }

.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgb(233 196 106 / .5); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--marigold); animation: cue 2s ease-in-out infinite; }

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 2rem); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; order: 2; }
  .hero-lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { max-width: 380px; order: 1; }
  .scroll-cue { display: none; }
}

/* ---------- Marquee (infinite) ---------- */
.marquee-band { background: linear-gradient(90deg, var(--vermilion), var(--saffron) 50%, var(--vermilion)); color: var(--night); padding: .7rem 0; overflow: hidden; position: relative; box-shadow: 0 0 0 1px rgb(255 255 255 / .1) inset; }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); user-select: none; }
.marquee + .marquee { margin-top: .25rem; opacity: .75; }
.marquee-track { display: flex; flex-shrink: 0; gap: 2.6rem; padding: 0 1.3rem; margin: 0; list-style: none; min-width: 100%; justify-content: space-around; animation: marquee var(--marquee-dur, 38s) linear infinite; }
.marquee-reverse .marquee-track { animation-direction: reverse; --marquee-dur: 46s; }
.marquee-track li { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 2.6rem; }
.marquee-track li::after { content: "✺"; font-size: .8em; color: rgb(61 10 18 / .55); }
.marquee-reverse .marquee-track li { font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.marquee-band:hover .marquee-track { animation-play-state: paused; }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; }
.section-cream { background: var(--cream); }
.section-dark { background: linear-gradient(180deg, var(--maroon), #2b0710); color: var(--on-dark); }
.section-night { background: radial-gradient(70% 50% at 50% 0%, rgb(100 18 30 / .65), transparent), var(--night); color: var(--on-dark); }
.section-dark .lead, .section-night .lead { color: var(--on-dark-soft); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--vermilion); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .7rem; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.section-dark .eyebrow, .section-night .eyebrow { color: var(--marigold); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: var(--ink-soft); max-width: 58ch; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.section-head .lead { margin-inline: auto; }

/* ---------- Darshan ---------- */
.darshan-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.week { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
.week li { text-align: center; padding: .8rem .2rem; border-radius: 14px; background: #fff; border: 1px solid rgb(43 26 18 / .08); font-size: .8rem; color: var(--ink-soft); transition: transform .3s var(--ease-out); }
.week li strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); line-height: 1.1; }
.week li.is-today { background: linear-gradient(160deg, var(--marigold), var(--saffron)); color: var(--night); border-color: transparent; transform: translateY(-6px); box-shadow: 0 14px 30px -12px rgb(242 140 40 / .7); }
.week li.is-today strong { color: var(--night); }
.countdown-card { position: relative; text-align: center; padding: 2.6rem 2rem; border-radius: 28px; background: linear-gradient(170deg, var(--maroon-2), var(--night)); color: var(--on-dark); box-shadow: 0 30px 60px -30px rgb(61 10 18 / .8); overflow: hidden; }
.countdown-card::before { content: ""; position: absolute; inset: -40% -20% auto; height: 90%; background: radial-gradient(circle, rgb(255 182 39 / .35), transparent 65%); }
.countdown-diya { position: relative; width: 64px; height: 64px; margin: 0 auto .6rem; filter: drop-shadow(0 0 18px rgb(255 182 39 / .7)); }
.countdown-label { position: relative; text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; color: var(--marigold); margin-bottom: .3rem; }
.countdown { position: relative; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; line-height: 1.05; margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.countdown-note { position: relative; font-size: .85rem; color: var(--on-dark-soft); margin: 0; }
@media (max-width: 900px) { .darshan-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .week { gap: .3rem; } .week li { font-size: .68rem; padding: .6rem 0; } .week li strong { font-size: 1.05rem; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-art { margin: 0; }
.about-frame { border-radius: 999px 999px 24px 24px; overflow: hidden; border: 6px solid rgb(233 196 106 / .55); box-shadow: 0 40px 80px -30px #000; max-width: 440px; margin-inline: auto; }
.about-frame img { width: 100%; aspect-ratio: 565 / 800; object-fit: cover; scale: 1.12; }
@supports (animation-timeline: view()) {
  .about-frame img { animation: parallax linear both; animation-timeline: view(); }
  @keyframes parallax { from { translate: 0 -5%; } to { translate: 0 5%; } }
}
.about-copy p { color: var(--on-dark-soft); font-size: 1.12rem; max-width: 56ch; }
.about-copy strong { color: var(--on-dark); }
.pull { margin: 2rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid rgb(233 196 106 / .3); }
.pull p { font-family: var(--serif); font-style: italic; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.2; color: var(--marigold) !important; margin: 0; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Teachings wall (infinite vertical scroll) ---------- */
.today-vachan { max-width: 760px; margin: 0 auto 3rem; text-align: center; padding: 1.6rem 2rem; border-radius: 22px; border: 1px solid rgb(233 196 106 / .3); background: linear-gradient(160deg, rgb(255 182 39 / .12), rgb(255 255 255 / .02)); }
.today-label { display: inline-block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--marigold); margin-bottom: .4rem; }
.today-text { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-style: italic; line-height: 1.25; margin: 0; }
.wall { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 1.25rem; height: clamp(520px, 75vh, 760px); overflow: hidden; mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); }
.wall-col { overflow: hidden; }
.wall-col:hover .wall-track, .wall-col:focus-within .wall-track, .wall-col.is-paused .wall-track { animation-play-state: paused; }
.wall-track { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; animation: wall var(--dur, 50s) linear infinite; }
.wall-col:nth-child(2) .wall-track { animation-direction: reverse; }
.vachan { padding: 1.6rem 1.5rem 1.4rem; border-radius: var(--radius); background: linear-gradient(170deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)); border: 1px solid rgb(233 196 106 / .16); transition: border-color .3s, background .3s, transform .3s var(--ease-out); }
.vachan:hover { border-color: rgb(255 182 39 / .55); background: linear-gradient(170deg, rgb(255 182 39 / .14), rgb(255 255 255 / .03)); transform: scale(1.015); }
.vachan-num { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .5rem; border-radius: 999px; background: rgb(255 182 39 / .15); color: var(--marigold); font-size: .78rem; font-weight: 600; margin-bottom: .8rem; }
.vachan p { font-family: var(--serif); font-size: 1.38rem; line-height: 1.3; margin: 0 0 .6rem; color: var(--on-dark); }
.vachan .vachan-hi { font-family: var(--deva); font-size: 1.05rem; color: var(--gold); margin-bottom: .6rem; }
.vachan cite { font-style: normal; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-soft); }

/* ---------- Chant / mala ---------- */
.chant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.mala-wrap { display: grid; place-items: center; }
.mala { position: relative; width: min(100%, 440px); aspect-ratio: 1; border: 0; padding: 0; border-radius: 50%; background: radial-gradient(circle, #fff 0 38%, var(--cream-2) 39% 100%); cursor: pointer; box-shadow: 0 30px 60px -30px rgb(61 10 18 / .45), inset 0 0 0 1px rgb(43 26 18 / .06); transition: transform .15s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.mala:active { transform: scale(.985); }
.mala-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mala-svg .bead { fill: #d9c3a0; transition: fill .35s, r .35s; }
.mala-svg .bead.lit { fill: url(#bead-lit); }
.mala-svg .bead.latest { r: 7.5; }
.mala-svg .guru { fill: var(--maroon-2); }
.mala-svg .thread { fill: none; stroke: #b7905a; stroke-width: 1.2; opacity: .6; }
.mala-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.mala-om { font-size: clamp(4rem, 9vw, 5.8rem); line-height: 1; color: var(--vermilion); text-shadow: 0 6px 30px rgb(242 140 40 / .35); transition: transform .3s var(--ease-out); }
.mala.is-tapped .mala-om { animation: pop .45s var(--ease-out); }
.mala-count { display: block; margin-top: .4rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-soft); letter-spacing: .06em; }
.chant-actions { margin-top: 1.5rem; }
@media (max-width: 900px) { .chant-grid { grid-template-columns: 1fr; } .mala { width: min(100%, 360px); } }

/* ---------- Sewa ---------- */
.sewa { background: linear-gradient(180deg, var(--cream) 0%, #fde9c8 100%); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar { position: relative; padding: 3.2rem 2rem 2.2rem; border-radius: 999px 999px 24px 24px; background: #fff; text-align: center; border: 1px solid rgb(43 26 18 / .08); box-shadow: 0 24px 50px -32px rgb(61 10 18 / .4); transition: transform .45s var(--ease-out), box-shadow .45s; overflow: hidden; }
.pillar::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 60% at 50% 0%, rgb(255 182 39 / .22), transparent 60%); opacity: 0; transition: opacity .45s; }
.pillar:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -30px rgb(61 10 18 / .5); }
.pillar:hover::before { opacity: 1; }
.pillar-letter { position: relative; display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 1.2rem; border-radius: 50%; font-family: var(--serif); font-size: 2.8rem; font-weight: 600; color: #fff; background: linear-gradient(150deg, var(--marigold), var(--vermilion)); box-shadow: 0 12px 26px -10px rgb(226 98 43 / .8); }
.pillar h3 { position: relative; font-size: 2rem; }
.pillar p { position: relative; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.address { font-style: normal; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.25; margin-bottom: 1.6rem; color: var(--maroon-2); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; color: var(--ink-soft); }
.steps li strong { color: var(--ink); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--marigold); color: var(--night); font-weight: 700; font-size: .95rem; }
.transit { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 14px; background: #fff; border: 1px solid rgb(43 26 18 / .08); color: var(--ink-soft); }
.transit svg { width: 26px; height: 26px; flex-shrink: 0; fill: var(--vermilion); }
.transit strong { color: var(--ink); }
.visit-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.map-card { margin: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.map { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 30px 60px -30px rgb(61 10 18 / .45); border: 1px solid rgb(43 26 18 / .08); }
.map .streets rect { fill: #fffaf0; stroke: #e2cfa8; }
.map .lrt { stroke: #8a7f74; stroke-width: 2; stroke-dasharray: 10 6; }
.map .street-labels text { font: 600 13px var(--sans); fill: #7b6a5a; letter-spacing: .04em; }
.map .bldg { fill: #b5563a; }
.map .bldg-other { fill: #d8c5a3; }
.map .bldg-label { font: 700 16px var(--sans); fill: #fff; }
.map .bldg-sub { font: 500 12px var(--sans); fill: #ffe6c7; }
.map .lot { fill: #ece0c6; stroke: #c9b48a; stroke-dasharray: 4 4; }
.map .lot-label { font: 600 12px var(--sans); fill: #6d5a45; }
.map .route-bg { fill: none; stroke: rgb(255 182 39 / .25); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.map .route { fill: none; stroke: #f2a900; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.map-card.in .route { transition: stroke-dashoffset 2.6s var(--ease-out) .4s; stroke-dashoffset: 0; }
.map .station circle { fill: #0b5aa6; }
.map .station text, .map .bus text { font: 700 9px var(--sans); fill: #fff; }
.map .bus rect { fill: #0b5aa6; }
.map .poi-label { font: 600 12px var(--sans); fill: #4e3e30; }
.map .poi-label.strong { font-weight: 700; fill: var(--vermilion); }
.map .entrance circle { fill: var(--vermilion); }
.map .entrance .pulse { fill: rgb(226 98 43 / .35); transform-box: fill-box; transform-origin: center; animation: mapPulse 2s ease-out infinite; }
.map .compass path { fill: #6d5a45; }
.map .compass text { font: 700 11px var(--sans); fill: #6d5a45; }
.map-card figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .8rem; text-align: center; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } .map-card { position: static; } }

/* ---------- Donate ---------- */
.donate-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.charity { font-size: .95rem; color: var(--on-dark-soft); }
.charity strong { color: var(--marigold); letter-spacing: .04em; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-cards li { position: relative; display: flex; flex-direction: column; padding: 1.3rem 1.5rem; border-radius: var(--radius); background: rgb(255 255 255 / .05); border: 1px solid rgb(233 196 106 / .2); transition: border-color .3s, background .3s; }
.contact-cards li:hover { border-color: rgb(255 182 39 / .55); background: rgb(255 182 39 / .07); }
.contact-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--marigold); }
.contact-value { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; text-decoration: none; word-break: break-word; }
a.contact-value:hover { color: var(--marigold); }
.copy { position: absolute; right: 1rem; top: 50%; translate: 0 -50%; border: 1px solid rgb(233 196 106 / .4); background: transparent; border-radius: 999px; padding: .35rem .8rem; font-size: .8rem; cursor: pointer; }
.copy:hover { background: rgb(255 182 39 / .12); }
@media (max-width: 900px) { .donate-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .copy { position: static; translate: none; align-self: flex-start; margin-top: .6rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark-soft); text-align: center; padding: 3.5rem 0 3rem; border-top: 1px solid rgb(233 196 106 / .15); }
.footer-om { font-size: 1.8rem; color: var(--marigold); margin-bottom: .4rem; }
.footer-inner p { margin: 0 0 .3rem; }
.footer-small { font-size: .85rem; opacity: .75; }

/* ---------- Petal overlay ---------- */
.petals { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 70; pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; translate: -50% 120%; z-index: 80; background: var(--night); color: var(--on-dark); padding: .7rem 1.2rem; border-radius: 999px; border: 1px solid rgb(233 196 106 / .4); font-size: .95rem; transition: translate .4s var(--ease-out); }
.toast.show { translate: -50% 0; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* ---------- Keyframes ---------- */
@keyframes flicker { 0%, 100% { transform: scale(1, 1) rotate(0); } 25% { transform: scale(.96, 1.06) rotate(-2deg); } 50% { transform: scale(1.03, .97) rotate(1deg); } 75% { transform: scale(.98, 1.04) rotate(2deg); } }
@keyframes shimmer { to { background-position: -250% 0; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { 0%, 100% { scale: .94; opacity: .8; } 50% { scale: 1.06; opacity: 1; } }
@keyframes sheen { 0%, 60% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes sway { from { rotate: calc(var(--amp, 3deg) * -1); } to { rotate: var(--amp, 3deg); } }
@keyframes cue { 0% { opacity: 0; translate: 0 0; } 40% { opacity: 1; } 100% { opacity: 0; translate: 0 14px; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(107 227 143 / .6); } 100% { box-shadow: 0 0 0 12px rgb(107 227 143 / 0); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes wall { to { transform: translateY(calc(-50% - .625rem)); } }
@keyframes ring { 0% { rotate: 0; } 15% { rotate: 22deg; } 30% { rotate: -18deg; } 45% { rotate: 12deg; } 60% { rotate: -8deg; } 75% { rotate: 4deg; } 100% { rotate: 0; } }
@keyframes wave { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes mapPulse { 0% { scale: .8; opacity: 1; } 100% { scale: 2.6; opacity: 0; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; min-width: 0; }
  .marquee { mask-image: none; justify-content: center; }
  .marquee-track[data-clone] { display: none; }
  .wall { height: auto; max-height: 760px; overflow-y: auto; mask-image: none; }
  .wall-track [data-clone] { display: none; }
  .map .route { stroke-dashoffset: 0; }
  .about-frame img { scale: 1; }
}

.wall-controls { text-align: center; margin: 2rem 0 0; }
.wall.is-paused .wall-track, .is-paused .marquee-track { animation-play-state: paused; }
.week-time { display: block; font-size: .72rem; margin-top: .15rem; }
@media (max-width: 520px) { .week-time { display: none; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; }
.not-found-inner { display: flex; flex-direction: column; align-items: center; }
.not-found h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.not-found .hero-lede { margin-inline: auto; }

/* Lining figures for the display serif (Cormorant defaults to old-style). */
h1, h2, h3, .countdown, .week li strong, .contact-value, .address, .mala-count { font-variant-numeric: lining-nums tabular-nums; }
h1, h2, h3, .address { font-variant-numeric: lining-nums; }

@media (max-width: 600px) {
  .map .street-labels text { font-size: 19px; }
  .map .bldg-label { font-size: 22px; }
  .map .bldg-sub { font-size: 16px; }
  .map .lot-label { font-size: 17px; }
  .map .poi-label { font-size: 17px; }
}
