/* ==========================================================================
   Hanuman Dham — app landing page (apps/hanuman-chalisa.html)
   Cinematic, devotional, fully animated. Loaded after style.css.
   ========================================================================== */

:root {
  --hd-bg:      #0c0402;
  --hd-bg-2:    #150703;
  --hd-panel:   rgba(40,14,4,.55);
  --hd-line:    rgba(246,196,83,.18);
  --hd-saffron: #ff8a1f;
  --hd-ember:   #ff5a1f;
  --hd-gold:    #f6c453;
  --hd-gold-2:  #ffe29a;
  --hd-cream:   #fff3dc;
  --hd-muted:   #c9b49a;
  --hd-display: 'Cinzel', 'Exo 2', serif;
  --hd-deva:    'Yatra One', 'Tiro Devanagari Hindi', serif;
  --hd-verse:   'Tiro Devanagari Hindi', serif;
  --hd-ease:    cubic-bezier(.22,1,.36,1);
}

body.hd-page { background: var(--hd-bg); color: var(--hd-cream); overflow-x: clip; }
.hd-page #navbar.scrolled { background: rgba(12,4,2,.82); border-bottom-color: var(--hd-line); }
.hd-page .breadcrumb a { color: var(--hd-gold); }
.hd-page ::selection { background: var(--hd-saffron); color: #1a0500; }

/* ---------- Scroll progress + cursor aura ---------- */
.hd-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1100;
  background: linear-gradient(90deg, var(--hd-ember), var(--hd-gold), var(--hd-gold-2));
  transform-origin: 0 50%; transform: scaleX(0);
  box-shadow: 0 0 12px rgba(255,138,31,.8);
}
.hd-aura {
  position: fixed; top: 0; left: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(255,160,60,.11), transparent 62%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .6s;
}
.hd-aura.on { opacity: 1; }
@media (hover: none) { .hd-aura { display: none; } }

/* ---------- Shared bits ---------- */
.hd-section { position: relative; padding: 110px 0; overflow: hidden; }
.hd-section.alt { background: var(--hd-bg-2); }
.hd-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--hd-display); font-size: .78rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  color: var(--hd-gold); margin-bottom: 18px;
}
.hd-eyebrow::before, .hd-eyebrow::after { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--hd-gold)); }
.hd-eyebrow::after { transform: scaleX(-1); }
.hd-title {
  font-family: var(--hd-display); font-weight: 700; color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.12; margin-bottom: 18px;
}
.hd-gold-text {
  background: linear-gradient(100deg, #e9a23b 0%, var(--hd-gold-2) 25%, #f2a93b 50%, var(--hd-gold-2) 75%, #e9a23b 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hd-shimmer 6s linear infinite;
}
@keyframes hd-shimmer { to { background-position: -250% 0; } }
.hd-lead { color: var(--hd-muted); font-size: 1.08rem; line-height: 1.8; max-width: 640px; }
.hd-center { text-align: center; }
.hd-center .hd-lead { margin: 0 auto; }

/* Divider: lotus line */
.hd-divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--hd-gold); margin: 0 auto 8px; }
.hd-divider span { height: 1px; width: 80px; background: linear-gradient(90deg, transparent, var(--hd-gold)); }
.hd-divider span:last-child { transform: scaleX(-1); }

/* ---------- Scroll-triggered entrance animations (varied) ---------- */
[data-anim] { transition: opacity .9s var(--hd-ease), transform 1s var(--hd-ease), filter 1s var(--hd-ease), clip-path 1.1s var(--hd-ease); transition-delay: var(--d, 0s); }
[data-anim="up"]    { opacity: 0; transform: translateY(50px); }
[data-anim="left"]  { opacity: 0; transform: translateX(-70px); }
[data-anim="right"] { opacity: 0; transform: translateX(70px); }
[data-anim="zoom"]  { opacity: 0; transform: scale(.82); }
[data-anim="blur"]  { opacity: 0; filter: blur(14px); transform: scale(1.06); }
[data-anim="flip"]  { opacity: 0; transform: perspective(900px) rotateX(55deg) translateY(40px); transform-origin: 50% 100%; }
[data-anim="swing"] { opacity: 0; transform: perspective(900px) rotateY(-40deg); transform-origin: 0 50%; }
[data-anim="wipe"]  { clip-path: inset(0 100% 0 0 round 22px); }
[data-anim].in { opacity: 1; transform: none; filter: none; clip-path: inset(0 0 0 0 round 22px); }

/* ---------- Buttons ---------- */
.hd-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  color: #fff; border: 1px solid rgba(255,226,154,.35);
  background: rgba(255,255,255,.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .35s var(--hd-ease), box-shadow .35s, border-color .35s, background .35s;
}
.hd-btn:hover { border-color: var(--hd-gold); background: rgba(246,196,83,.12); box-shadow: 0 10px 40px rgba(255,138,31,.25); }
.hd-btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--hd-ease);
}
.hd-btn:hover::after { transform: translateX(120%); }
.hd-btn.primary {
  color: #2a0d00; border: 0;
  background: linear-gradient(135deg, var(--hd-gold-2), var(--hd-gold) 40%, var(--hd-saffron));
  box-shadow: 0 10px 40px rgba(255,138,31,.45), inset 0 1px 0 rgba(255,255,255,.6);
  animation: hd-btn-breathe 3.2s ease-in-out infinite;
}
.hd-btn.primary:hover { box-shadow: 0 16px 60px rgba(255,138,31,.65); }
.hd-btn img { width: 22px; height: 22px; }
.hd-btn small { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; line-height: 1; }
.hd-btn b { display: block; line-height: 1.1; }
@keyframes hd-btn-breathe { 50% { box-shadow: 0 10px 60px rgba(255,138,31,.7), inset 0 1px 0 rgba(255,255,255,.6); } }

/* ==========================================================================
   1. HERO — looping video darshan
   ========================================================================== */
.hd-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 100px 0 80px; }
.hd-hero-media { position: absolute; inset: -30px; z-index: 0; will-change: transform; }
.hd-hero-media video, .hd-hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%;
  animation: hd-kenburns 22s ease-in-out infinite alternate;
}
@keyframes hd-kenburns { from { transform: scale(1.02); } to { transform: scale(1.09) translate(-1%, .5%); } }
.hd-hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12,4,2,.92) 0%, rgba(12,4,2,.7) 32%, rgba(12,4,2,.15) 62%, rgba(12,4,2,.25) 100%),
    linear-gradient(0deg, var(--hd-bg) 0%, transparent 28%),
    linear-gradient(180deg, rgba(12,4,2,.7) 0%, transparent 22%);
}
/* God rays from the sun */
.hd-rays {
  position: absolute; z-index: 1; pointer-events: none; top: -60vmax; left: 38%;
  width: 140vmax; height: 140vmax; margin-left: -70vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255,214,140,.10) 0deg 4deg, transparent 4deg 13deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 55%); mask: radial-gradient(circle, #000 0%, transparent 55%);
  mix-blend-mode: screen; animation: hd-spin 90s linear infinite;
}
@keyframes hd-spin { to { transform: rotate(360deg); } }
.hd-embers { position: absolute; inset: 0; z-index: 2; pointer-events: none; width: 100%; height: 100%; }

.hd-hero .container { position: relative; z-index: 3; width: 100%; }
.hd-hero .breadcrumb { justify-content: flex-start; }
.hd-hero-content { max-width: 760px; }

.hd-om-wrap { position: relative; width: 96px; height: 96px; display: grid; place-items: center; margin-bottom: 12px; }
.hd-om {
  position: relative; z-index: 2; font-family: var(--hd-deva); font-size: 2.9rem; line-height: 1;
  color: var(--hd-gold-2); text-shadow: 0 0 24px rgba(255,170,60,.9), 0 0 60px rgba(255,120,30,.6);
  animation: hd-om-breathe 4s ease-in-out infinite;
}
@keyframes hd-om-breathe { 50% { transform: scale(1.08); text-shadow: 0 0 34px rgba(255,190,80,1), 0 0 90px rgba(255,120,30,.8); } }
.hd-mandala { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--hd-gold); opacity: .55; animation: hd-spin 40s linear infinite; }
.hd-mandala.rev { inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); opacity: .35; animation-duration: 26s; animation-direction: reverse; }
.hd-ring { position: absolute; inset: 22px; border-radius: 50%; border: 1px solid rgba(255,200,110,.6); animation: hd-ring 3.6s ease-out infinite; }
.hd-ring:nth-of-type(2) { animation-delay: 1.2s; }
.hd-ring:nth-of-type(3) { animation-delay: 2.4s; }
@keyframes hd-ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }

.hd-hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hd-gold-2); background: rgba(255,138,31,.12); border: 1px solid rgba(255,190,90,.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-bottom: 14px;
}
.hd-hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--hd-saffron); box-shadow: 0 0 0 0 rgba(255,138,31,.7); animation: hd-ping 1.8s infinite; }
@keyframes hd-ping { 70% { box-shadow: 0 0 0 10px rgba(255,138,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,138,31,0); } }

.hd-h1 { font-family: var(--hd-display); font-weight: 800; color: #fff; line-height: 1.05; margin-bottom: 18px; }
.hd-h1 .l1 { display: block; font-size: clamp(2.3rem, 6.4vw, 4.8rem); letter-spacing: .01em; }
.hd-h1 .wd { display: inline-block; white-space: nowrap; }
.hd-h1 .l2 { display: block; font-size: clamp(1.15rem, 2.6vw, 1.75rem); font-weight: 600; letter-spacing: .08em; color: var(--hd-cream); margin-top: 10px; }
.hd-h1 .ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotateX(-80deg); transform-origin: 50% 100%; filter: blur(6px); animation: hd-char-in 1s var(--hd-ease) forwards; animation-delay: calc(.35s + var(--i) * .055s); }
.hd-h1 .l2 .ch { animation-delay: calc(1.1s + var(--i) * .018s); }
@keyframes hd-char-in { to { opacity: 1; transform: none; filter: none; } }
.hd-h1 .l1 { color: var(--hd-gold-2); text-shadow: 0 0 40px rgba(255,140,40,.35); }
.hd-h1 .l1.hd-gold-text { text-shadow: none; filter: drop-shadow(0 0 24px rgba(255,140,40,.35)); }

.hd-verse-rotator { position: relative; height: 1.9em; font-family: var(--hd-deva); font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--hd-gold); margin-bottom: 14px; }
.hd-verse-rotator span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; filter: blur(10px); transform: translateY(14px); transition: all 1s var(--hd-ease); text-shadow: 0 0 18px rgba(255,150,40,.45); }
.hd-verse-rotator span.on { opacity: 1; filter: none; transform: none; }
.hd-verse-rotator span.out { opacity: 0; filter: blur(10px); transform: translateY(-14px); }

.hd-hero-text { color: #e8d6bf; font-size: 1.02rem; line-height: 1.7; margin-bottom: 26px; max-width: 560px; }
.hd-hero-text strong { color: #fff; }
.hd-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hd-fade-seq > * { opacity: 0; transform: translateY(24px); animation: hd-rise 1s var(--hd-ease) forwards; }
.hd-fade-seq > *:nth-child(1) { animation-delay: .1s; }
.hd-fade-seq > *:nth-child(2) { animation-delay: .2s; }
.hd-fade-seq > *:nth-child(3) { animation-delay: .25s; }
.hd-fade-seq > *:nth-child(5) { animation-delay: 1.5s; }
.hd-fade-seq > *:nth-child(6) { animation-delay: 1.7s; }
.hd-fade-seq > *:nth-child(7) { animation-delay: 1.9s; }
.hd-fade-seq > *:nth-child(8) { animation-delay: 2.1s; }
.hd-fade-seq > .hd-h1 { opacity: 1; transform: none; animation: none; }
@keyframes hd-rise { to { opacity: 1; transform: none; } }

.hd-hero-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.hd-pill {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px;
  background: rgba(20,6,2,.45); border: 1px solid var(--hd-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.hd-pill b { font-family: var(--hd-display); font-size: 1.25rem; color: var(--hd-gold-2); }
.hd-pill span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hd-muted); line-height: 1.2; }

/* Sound toggle */
.hd-sound {
  position: absolute; z-index: 4; right: 24px; bottom: 34px;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  color: var(--hd-cream); font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  background: rgba(20,6,2,.5); border: 1px solid var(--hd-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .3s, background .3s;
}
.hd-sound:hover { border-color: var(--hd-gold); }
.hd-eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.hd-eq i { width: 3px; height: 30%; background: var(--hd-gold); border-radius: 2px; }
.hd-sound[aria-pressed="true"] .hd-eq i { animation: hd-eq .9s ease-in-out infinite alternate; }
.hd-sound[aria-pressed="true"] .hd-eq i:nth-child(2) { animation-delay: .2s; }
.hd-sound[aria-pressed="true"] .hd-eq i:nth-child(3) { animation-delay: .4s; }
.hd-sound[aria-pressed="true"] .hd-eq i:nth-child(4) { animation-delay: .1s; }
@keyframes hd-eq { from { height: 20%; } to { height: 100%; } }

.hd-scroll-cue { position: absolute; z-index: 4; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--hd-muted); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; }
.hd-scroll-cue i { width: 22px; height: 36px; border-radius: 12px; border: 2px solid rgba(255,226,154,.5); position: relative; }
.hd-scroll-cue i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--hd-gold); animation: hd-scroll-dot 1.8s ease-in-out infinite; }
@keyframes hd-scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ==========================================================================
   2. MARQUEE — chanting band
   ========================================================================== */
.hd-marquee { position: relative; z-index: 3; padding: 34px 0; overflow: hidden; margin-top: -10px; }
.hd-band { display: flex; width: max-content; white-space: nowrap; font-family: var(--hd-deva); font-size: clamp(1.3rem, 3vw, 2rem); padding: 14px 0; }
.hd-band span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
.hd-band em { font-style: normal; font-size: .7em; color: inherit; opacity: .7; }
.hd-band.a { background: linear-gradient(90deg, var(--hd-ember), var(--hd-saffron), var(--hd-gold)); color: #2a0b00; transform: rotate(-2deg); animation: hd-marq 38s linear infinite; box-shadow: 0 10px 40px rgba(255,90,31,.35); }
.hd-band.b { background: #1d0902; color: var(--hd-gold); border-block: 1px solid var(--hd-line); transform: rotate(1.4deg); margin-top: -8px; animation: hd-marq 46s linear infinite reverse; }
@keyframes hd-marq { from { translate: 0 0; } to { translate: -50% 0; } }

/* ==========================================================================
   3. DARSHAN — scroll-lit doha + orbit
   ========================================================================== */
.hd-darshan-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hd-doha { font-family: var(--hd-verse); font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.6; margin: 8px 0 22px; }
.hd-doha .w { color: rgba(255,226,154,.16); transition: color .5s, text-shadow .5s; }
.hd-doha .w.lit { color: var(--hd-gold-2); text-shadow: 0 0 22px rgba(255,150,40,.45); }
.hd-doha-meaning { color: var(--hd-muted); font-style: italic; line-height: 1.8; border-left: 2px solid var(--hd-saffron); padding-left: 18px; max-width: 560px; }

.hd-orbit { position: relative; width: min(420px, 82vw); aspect-ratio: 1; margin: 0 auto; }
.hd-orbit-glow { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(255,138,31,.55), transparent 70%); filter: blur(30px); animation: hd-om-breathe 5s ease-in-out infinite; }
.hd-orbit-logo { position: absolute; inset: 27%; border-radius: 30%; overflow: hidden; box-shadow: 0 30px 80px rgba(255,120,30,.45), 0 0 0 1px rgba(255,226,154,.4); animation: hd-bob 6s ease-in-out infinite; }
.hd-orbit-logo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes hd-bob { 50% { transform: translateY(-12px) rotate(-2deg); } }
.hd-orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(246,196,83,.35); animation: hd-spin 30s linear infinite; }
.hd-orbit-ring.r1 { inset: 10%; }
.hd-orbit-ring.r2 { inset: 0; border-style: solid; border-color: rgba(246,196,83,.15); animation-duration: 46s; animation-direction: reverse; }
.hd-planet { position: absolute; width: 50px; height: 50px; margin: -25px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: rgba(30,10,3,.85); border: 1px solid rgba(246,196,83,.45); box-shadow: 0 0 20px rgba(255,138,31,.35); }
.hd-orbit-ring.r1 .hd-planet { animation: hd-spin 30s linear infinite reverse; }
.hd-orbit-ring.r2 .hd-planet { animation: hd-spin 46s linear infinite; }
.hd-planet.p1 { top: 0; left: 50%; } .hd-planet.p2 { top: 50%; left: 100%; } .hd-planet.p3 { top: 100%; left: 50%; } .hd-planet.p4 { top: 50%; left: 0; }
.hd-planet.p5 { top: 14.6%; left: 14.6%; } .hd-planet.p6 { top: 85.4%; left: 85.4%; }

.hd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 70px; }
.hd-stat { text-align: center; padding: 26px 12px; border-radius: 22px; background: var(--hd-panel); border: 1px solid var(--hd-line); position: relative; overflow: hidden; }
.hd-stat::before { content: ''; position: absolute; inset: auto -40% -60% -40%; height: 80%; background: radial-gradient(ellipse, rgba(255,138,31,.25), transparent 70%); }
.hd-stat b { position: relative; display: block; font-family: var(--hd-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--hd-gold-2); }
.hd-stat > span { position: relative; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hd-muted); }

/* ==========================================================================
   4. SHOWCASE — 3D coverflow
   ========================================================================== */
.hd-flow { position: relative; height: 560px; margin-top: 40px; perspective: 1400px; touch-action: pan-y; cursor: grab; user-select: none; }
.hd-flow:active { cursor: grabbing; }
.hd-flow::before { content: ''; position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,138,31,.3), transparent 65%); filter: blur(20px); }
.hd-flow-item {
  position: absolute; left: 50%; top: 50%; width: 240px; margin-left: -120px; margin-top: -255px;
  border-radius: 30px; overflow: hidden; border: 2px solid rgba(255,226,154,.25); background: #1b0802;
  transition: transform .9s var(--hd-ease), opacity .9s var(--hd-ease), filter .9s, box-shadow .9s;
  -webkit-box-reflect: below 10px linear-gradient(transparent 70%, rgba(0,0,0,.25));
}
.hd-flow-item img { display: block; width: 100%; aspect-ratio: 9 / 19; object-fit: cover; pointer-events: none; }
.hd-flow-item.center { box-shadow: 0 30px 90px rgba(255,120,30,.45); border-color: var(--hd-gold); }
.hd-flow-cap { margin-top: 22px; font-family: var(--hd-display); font-size: 1.1rem; color: var(--hd-gold-2); min-height: 1.6em; transition: opacity .4s; }
.hd-flow-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 18px; }
.hd-flow-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hd-line); background: var(--hd-panel); color: var(--hd-gold-2); font-size: 1.1rem; cursor: pointer; transition: all .3s; }
.hd-flow-nav button:hover { background: var(--hd-gold); color: #2a0b00; transform: scale(1.08); }
.hd-flow-dots { display: flex; gap: 8px; }
.hd-flow-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(246,196,83,.25); transition: all .4s; }
.hd-flow-dots i.on { width: 26px; background: var(--hd-gold); }

/* ==========================================================================
   5. FEATURES — bento with spotlight + tilt
   ========================================================================== */
.hd-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; text-align: left; }
.hd-card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 28px 24px; border-radius: 24px; overflow: hidden;
  background: var(--hd-panel); border: 1px solid var(--hd-line);
  transform-style: preserve-3d; transition: transform .25s ease-out, border-color .3s;
}
.hd-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255,160,60,.18), transparent 45%); opacity: 0; transition: opacity .3s; }
.hd-card:hover { border-color: rgba(246,196,83,.55); }
.hd-card:hover::before { opacity: 1; }
.hd-card.big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; background: linear-gradient(180deg, rgba(12,4,2,.1), rgba(12,4,2,.92)), url('../assets/hanuman-dham/hanuman-temple.jpg') center/cover; }
.hd-card.wide { grid-column: span 2; }
.hd-card-icon { position: relative; width: 56px; height: 56px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 18px; margin-bottom: 18px; background: linear-gradient(135deg, rgba(246,196,83,.2), rgba(255,90,31,.12)); border: 1px solid rgba(246,196,83,.3); transform: translateZ(30px); transition: transform .5s var(--hd-ease); }
.hd-card:hover .hd-card-icon { transform: translateZ(30px) rotate(-8deg) scale(1.1); }
.hd-card h3 { position: relative; font-family: var(--hd-display); font-size: 1.12rem; color: #fff; margin-bottom: 8px; transform: translateZ(20px); }
.hd-card.big h3 { font-size: 1.6rem; }
.hd-card p { position: relative; font-size: .9rem; color: var(--hd-muted); line-height: 1.65; }

/* ==========================================================================
   6. MANTRA JAAP — interactive mala
   ========================================================================== */
.hd-jaap { background: linear-gradient(180deg, var(--hd-bg) 0%, rgba(12,4,2,.78) 30%, rgba(12,4,2,.78) 70%, var(--hd-bg) 100%), url('../assets/hanuman-dham/hanuman-mala.jpg') center/cover fixed; }
.hd-jaap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hd-mantras { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.hd-mantras button { padding: 10px 18px; border-radius: 999px; font-family: var(--hd-deva); font-size: 1rem; cursor: pointer; color: var(--hd-cream); background: rgba(20,6,2,.6); border: 1px solid var(--hd-line); transition: all .3s; }
.hd-mantras button.on, .hd-mantras button:hover { background: var(--hd-gold); color: #2a0b00; border-color: var(--hd-gold); }
.hd-jaap-meta { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; color: var(--hd-muted); font-size: .9rem; }
.hd-jaap-meta b { font-family: var(--hd-display); color: var(--hd-gold-2); font-size: 1.5rem; margin-right: 6px; }
.hd-link-btn { background: none; border: 0; color: var(--hd-gold); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 4px; }

.hd-mala { position: relative; width: min(440px, 86vw); aspect-ratio: 1; margin: 0 auto; }
.hd-mala svg { width: 100%; height: 100%; overflow: visible; }
.hd-bead { fill: #8a4a1e; stroke: rgba(255,200,120,.45); stroke-width: .6; transition: fill .4s, filter .4s; }
.hd-bead.done { fill: var(--hd-gold); filter: drop-shadow(0 0 4px rgba(255,170,60,.9)); }
.hd-bead.now { fill: #fff3c4; animation: hd-bead-pop .5s var(--hd-ease); }
@keyframes hd-bead-pop { from { transform: scale(2.2); } }
.hd-sumeru { fill: var(--hd-saffron); filter: drop-shadow(0 0 6px rgba(255,120,30,.9)); }
.hd-mala-progress { fill: none; stroke: url(#hdGrad); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 200px 200px; transition: stroke-dashoffset .5s var(--hd-ease); }
.hd-tap {
  position: absolute; inset: 24%; border-radius: 50%; cursor: pointer; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #2a0b00; background: radial-gradient(circle at 35% 30%, #fff1c2, var(--hd-gold) 45%, var(--hd-saffron) 100%);
  box-shadow: 0 0 0 10px rgba(246,196,83,.08), 0 0 60px rgba(255,138,31,.55), inset 0 -10px 30px rgba(160,50,0,.35);
  transition: transform .15s; -webkit-tap-highlight-color: transparent; overflow: hidden;
}
.hd-tap:active { transform: scale(.94); }
.hd-tap-word { font-family: var(--hd-deva); font-size: clamp(1.2rem, 4vw, 2rem); line-height: 1.2; text-align: center; padding: 0 12px; }
.hd-tap-count { font-family: var(--hd-display); font-weight: 800; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1; }
.hd-tap-hint { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.hd-ripple { position: absolute; border-radius: 50%; width: 20px; height: 20px; margin: -10px; background: rgba(255,255,255,.7); pointer-events: none; animation: hd-ripple .8s ease-out forwards; }
@keyframes hd-ripple { to { transform: scale(18); opacity: 0; } }
.hd-float-word { position: absolute; left: 50%; top: 30%; pointer-events: none; font-family: var(--hd-deva); color: var(--hd-gold-2); font-size: 1.3rem; text-shadow: 0 0 14px rgba(255,140,40,.9); animation: hd-float-up 1.4s ease-out forwards; white-space: nowrap; }
@keyframes hd-float-up { from { opacity: 1; transform: translate(-50%, 0) scale(.8); } to { opacity: 0; transform: translate(calc(-50% + var(--dx)), -140px) scale(1.2); } }
.hd-complete { position: absolute; left: 50%; bottom: -10px; transform: translate(-50%, 20px); opacity: 0; transition: all .6s var(--hd-ease); white-space: nowrap; font-family: var(--hd-deva); font-size: 1.3rem; color: var(--hd-gold-2); }
.hd-complete.show { opacity: 1; transform: translate(-50%, 0); }
.hd-burst { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1050; }

/* ==========================================================================
   7. READ ONLINE — paths
   ========================================================================== */
.hd-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 48px; text-align: left; }
.hd-path {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 22px; overflow: hidden;
  background: var(--hd-panel); border: 1px solid var(--hd-line); color: inherit;
  transition: transform .45s var(--hd-ease), border-color .3s, box-shadow .45s;
}
.hd-path::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,138,31,.25), rgba(246,196,83,.08)); transform: translateX(-101%); transition: transform .6s var(--hd-ease); }
.hd-path:hover { transform: translateY(-6px); border-color: var(--hd-gold); box-shadow: 0 20px 50px rgba(255,120,30,.2); }
.hd-path:hover::before { transform: none; }
.hd-path-icon { position: relative; flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: rgba(246,196,83,.12); border: 1px solid rgba(246,196,83,.3); transition: transform .7s var(--hd-ease); }
.hd-path:hover .hd-path-icon { transform: rotate(360deg) scale(1.08); }
.hd-path h3 { position: relative; font-family: var(--hd-display); font-size: 1.05rem; color: #fff; margin-bottom: 3px; }
.hd-path p { position: relative; font-size: .84rem; color: var(--hd-muted); }
.hd-path-arrow { position: relative; margin-left: auto; color: var(--hd-gold); font-size: 1.2rem; transition: transform .4s var(--hd-ease); }
.hd-path:hover .hd-path-arrow { transform: translateX(6px); }

/* ==========================================================================
   8. BENEFITS — rotating aura borders
   ========================================================================== */
.hd-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.hd-benefit { position: relative; padding: 2px; border-radius: 26px; overflow: hidden; isolation: isolate; }
.hd-benefit::before { content: ''; position: absolute; left: 50%; top: 50%; width: 200%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 60%, var(--hd-gold) 75%, var(--hd-ember) 85%, transparent 95%); animation: hd-spin 5s linear infinite; }
.hd-benefit:nth-child(2)::before { animation-delay: -1.25s; }
.hd-benefit:nth-child(3)::before { animation-delay: -2.5s; }
.hd-benefit:nth-child(4)::before { animation-delay: -3.75s; }
.hd-benefit-in { height: 100%; padding: 30px 22px; border-radius: 24px; background: #170703; text-align: center; }
.hd-benefit-emoji { display: inline-block; font-size: 2.4rem; margin-bottom: 14px; animation: hd-bob 4s ease-in-out infinite; }
.hd-benefit h4 { font-family: var(--hd-display); color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.hd-benefit p { color: var(--hd-muted); font-size: .88rem; line-height: 1.65; }

/* ==========================================================================
   9. OFFLINE — floating phone
   ========================================================================== */
.hd-offline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hd-offline-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.hd-offline-item { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--hd-panel); border: 1px solid var(--hd-line); }
.hd-offline-item span { font-size: 1.6rem; }
.hd-offline-item h4 { font-family: var(--hd-display); color: #fff; font-size: 1rem; margin-bottom: 2px; }
.hd-offline-item p { font-size: .86rem; color: var(--hd-muted); }
.hd-phone-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.hd-phone { position: relative; z-index: 2; width: 250px; padding: 10px; border-radius: 40px; background: linear-gradient(145deg, #3a1a0a, #120502); border: 1px solid rgba(255,226,154,.3); box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 80px rgba(255,120,30,.25); animation: hd-phone-float 7s ease-in-out infinite; }
.hd-phone img { display: block; width: 100%; border-radius: 30px; }
@keyframes hd-phone-float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(3deg); } }
.hd-airplane { position: absolute; z-index: 3; top: 18%; right: 8%; font-size: 1.6rem; padding: 12px; border-radius: 50%; background: rgba(30,10,3,.85); border: 1px solid var(--hd-line); animation: hd-bob 5s ease-in-out infinite; }
.hd-noweb { position: absolute; z-index: 3; bottom: 20%; left: 6%; padding: 10px 16px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: #2a0b00; background: var(--hd-gold); animation: hd-bob 6s ease-in-out infinite reverse; }
.hd-halo { position: absolute; width: 440px; height: 440px; border-radius: 50%; border: 1px solid rgba(246,196,83,.18); }
.hd-halo::after { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--hd-gold); box-shadow: 0 0 14px var(--hd-gold); }
.hd-halo.h1 { animation: hd-spin 14s linear infinite; }
.hd-halo.h2 { width: 330px; height: 330px; animation: hd-spin 9s linear infinite reverse; }

/* ==========================================================================
   10. REVIEWS
   ========================================================================== */
.hd-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; text-align: left; }
.hd-review { position: relative; padding: 30px 26px; border-radius: 24px; background: var(--hd-panel); border: 1px solid var(--hd-line); }
.hd-review:nth-child(2) { margin-top: 40px; }
.hd-review::before { content: '“'; position: absolute; top: -10px; right: 18px; font-family: var(--hd-display); font-size: 6rem; line-height: 1; color: rgba(246,196,83,.18); }
.hd-stars { display: flex; gap: 4px; margin-bottom: 14px; }
.hd-stars i { font-style: normal; color: var(--hd-gold); opacity: 0; transform: scale(0) rotate(-90deg); transition: all .5s var(--hd-ease); }
.in .hd-stars i { opacity: 1; transform: none; }
.in .hd-stars i:nth-child(1) { transition-delay: .3s; } .in .hd-stars i:nth-child(2) { transition-delay: .4s; } .in .hd-stars i:nth-child(3) { transition-delay: .5s; } .in .hd-stars i:nth-child(4) { transition-delay: .6s; } .in .hd-stars i:nth-child(5) { transition-delay: .7s; }
.hd-review p { color: #e8d6bf; line-height: 1.75; margin-bottom: 20px; }
.hd-review-who { display: flex; align-items: center; gap: 12px; }
.hd-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #2a0b00; background: linear-gradient(135deg, var(--hd-gold-2), var(--hd-saffron)); }
.hd-review-who b { display: block; color: #fff; }
.hd-review-who span { font-size: .8rem; color: var(--hd-gold); }

/* ==========================================================================
   11. FAQ
   ========================================================================== */
.hd-page .faq-list { max-width: 820px; margin: 46px auto 0; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.hd-page .faq-item { background: var(--hd-panel); border: 1px solid var(--hd-line); border-radius: 18px; }
.hd-page .faq-item.open { border-color: rgba(246,196,83,.55); box-shadow: 0 0 40px rgba(255,120,30,.12); }
.hd-page .faq-question { color: #fff; }
.hd-page .faq-icon { background: rgba(246,196,83,.1); border-color: rgba(246,196,83,.3); color: var(--hd-gold); }
.hd-page .faq-item.open .faq-icon { background: var(--hd-gold); color: #2a0b00; }
.hd-page .faq-answer p { color: var(--hd-muted); }

/* ==========================================================================
   12. FINAL CTA
   ========================================================================== */
.hd-cta { position: relative; padding: 150px 0; text-align: center; overflow: hidden; }
.hd-cta-bg { position: absolute; inset: -15% 0; background: url('../assets/hanuman-dham/hanuman-hero-poster.jpg') center/cover; will-change: transform; }
.hd-cta::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(12,4,2,.55), rgba(12,4,2,.92) 70%), linear-gradient(180deg, var(--hd-bg), transparent 25%, transparent 75%, var(--hd-bg)); }
.hd-cta canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hd-cta .container { position: relative; z-index: 3; }
.hd-jai {
  font-family: var(--hd-deva); font-size: clamp(3rem, 11vw, 8rem); line-height: 1.15; margin-bottom: 10px;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,226,154,.7);
  background: linear-gradient(0deg, var(--hd-saffron), var(--hd-gold-2)) no-repeat 0 100% / 100% 0%;
  -webkit-background-clip: text; background-clip: text;
  transition: background-size 2.4s var(--hd-ease) .2s; filter: drop-shadow(0 0 30px rgba(255,120,30,.45));
}
.in .hd-jai, .hd-jai.in { background-size: 100% 100%; }
.hd-cta p { color: #e8d6bf; font-size: 1.1rem; max-width: 560px; margin: 0 auto 34px; }
.hd-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hd-page #footer { background: #080201; border-top: 1px solid var(--hd-line); }
.hd-page #back-top { background: var(--hd-gold); color: #2a0b00; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hd-bento { grid-template-columns: repeat(2, 1fr); }
  .hd-benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hd-section { padding: 84px 0; }
  .hd-darshan-grid, .hd-jaap-grid, .hd-offline-grid { grid-template-columns: 1fr; gap: 44px; }
  .hd-stats { grid-template-columns: repeat(2, 1fr); }
  .hd-reviews { grid-template-columns: 1fr; }
  .hd-review:nth-child(2) { margin-top: 0; }
  .hd-jaap { background-attachment: scroll; }
  .hd-phone-stage { min-height: 480px; }
  .hd-halo { width: 340px; height: 340px; }
  .hd-halo.h2 { width: 260px; height: 260px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hd-hero { align-items: flex-end; padding: 96px 0 84px; }
  .hd-hero .breadcrumb { display: none; }
  .hd-hero-cta .hd-btn { padding: 13px 22px; }
  .hd-hero-cta .hd-btn:not(.primary) { flex: 1 1 calc(50% - 6px); font-size: .86rem; padding: 12px 10px; }
  .hd-pill { padding: 8px 12px; }
  .hd-pill b { font-size: 1.05rem; }
  .hd-verse-rotator { height: 2.8em; }
  .hd-hero-media video, .hd-hero-media img { object-position: 70% 40%; }
  .hd-hero-shade { background: linear-gradient(0deg, var(--hd-bg) 2%, rgba(12,4,2,.88) 42%, rgba(12,4,2,.25) 75%, rgba(12,4,2,.6) 100%); }
  .hd-om-wrap { width: 92px; height: 92px; }
  .hd-om { font-size: 2.7rem; }
  .hd-verse-rotator span { white-space: normal; }
  .hd-hero-cta .hd-btn { flex: 1 1 100%; justify-content: center; }
  .hd-sound { right: 16px; bottom: 22px; }
  .hd-scroll-cue { display: none; }
  .hd-bento { grid-template-columns: 1fr; }
  .hd-card.big, .hd-card.wide { grid-column: auto; grid-row: auto; }
  .hd-benefits { grid-template-columns: 1fr; }
  .hd-flow { height: 470px; }
  .hd-flow-item { width: 190px; margin-left: -95px; margin-top: -205px; border-radius: 24px; }
  .hd-flow::before { width: 320px; height: 320px; margin: -160px; }
  .hd-phone { width: 210px; }
  .hd-cta { padding: 110px 0; }
}

/* Respect reduced motion: keep it calm and fully readable */
@media (prefers-reduced-motion: reduce) {
  .hd-page *, .hd-page *::before, .hd-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-anim] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .hd-h1 .ch, .hd-fade-seq > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hd-band.a, .hd-band.b { animation: none !important; }
  .hd-jai { background-size: 100% 100%; }
}
