/* home: hero with diya, four temple doors, puja tiles */
.topbar { position: absolute; top: 0; right: 0; z-index: 5; padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter-r) 0 0; }
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: center; padding-block: 130px 70px; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 70%) var(--gy, 55%), rgba(233,177,59,.16), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; position: relative; z-index: 2; }
.title-svg { width: 100%; max-width: 620px; height: auto; display: block; overflow: visible; }
.title-svg text { font-family: var(--f-display); font-size: 150px; fill: transparent; stroke: var(--gold); stroke-width: 1.4;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s ease .6s forwards, fillin 1.4s ease 2.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0 } }
@keyframes fillin { to { fill: var(--gold); stroke-width: 0 } }
.lede { font-size: 1.25rem; max-width: 36ch; margin: 6px 0 0; opacity: 0; animation: rise .9s ease 2.2s forwards; }
.lede .en { display: block; font-size: 1rem; margin-top: 4px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; opacity: 0; animation: rise .9s ease 2.6s forwards; }
.diya-wrap { position: relative; display: grid; place-items: center; }
.diya { width: min(420px, 80vw); height: auto; overflow: visible; }
.diya .halo { animation: halo 3.4s ease-in-out infinite; transform-origin: 200px 150px; }
@keyframes halo { 50% { opacity: .75; transform: scale(1.06) } }
.diya .flame { transform-origin: 200px 196px; animation: flicker 2.6s ease-in-out infinite; }
.diya .flame-in { transform-origin: 200px 196px; animation: flicker 1.9s ease-in-out infinite reverse; }
@keyframes flicker { 0%,100% { transform: scale(1,1) skewX(0) } 20% { transform: scale(.97,1.04) skewX(-2deg) } 45% { transform: scale(1.03,.96) skewX(2deg) } 70% { transform: scale(.98,1.05) skewX(-1deg) } }
.diya .lean { transform-origin: 200px 196px; transition: transform .6s cubic-bezier(.3,.7,.3,1); }
.diya-cap { margin-top: 10px; font-family: var(--f-mantra); font-style: italic; color: var(--ink-2); text-align: center; font-size: .95rem; opacity: 0; animation: rise 1s ease 3s forwards; }
@media (max-width: 820px) {
  .hero { min-height: 0; padding-block: 110px 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 20px; }
  .title-svg { margin: 0 auto; } .lede { margin-inline: auto; } .ctas { justify-content: center; }
  .diya { width: min(300px, 72vw); }
}
.band { height: 64px; background-repeat: repeat-x; background-size: 96px 64px; opacity: .7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 64'%3E%3Cg fill='none' stroke='%23E9B13B' stroke-width='1.2'%3E%3Cpath d='M48 50 C40 42 40 30 48 20 C56 30 56 42 48 50Z'/%3E%3Cpath d='M48 50 C36 48 30 40 30 32 C40 32 46 40 48 50'/%3E%3Cpath d='M48 50 C60 48 66 40 66 32 C56 32 50 40 48 50'/%3E%3Cpath d='M0 56 Q12 50 24 56 T48 56 T72 56 T96 56' stroke='%238FA4FF' opacity='.6'/%3E%3C/g%3E%3C/svg%3E"); }

section.block { padding-block: 80px 40px; }
.sec-head { display: grid; gap: 6px; margin-bottom: 40px; max-width: 60ch; }
.sec-head h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; text-wrap: balance; }
.sec-head p { margin: 0; color: var(--ink-2); }
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }

.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 26px); }
@media (max-width: 620px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; margin-inline: auto; } }
.door { --c: var(--gold); background: none; border: 0; padding: 0; text-align: center; display: grid; gap: 14px; }
.arch { position: relative; aspect-ratio: 3 / 4; max-width: 100%; border-radius: 999px 999px 10px 10px / 46% 46% 10px 10px; border: 2px solid var(--c); padding: 8px; perspective: 900px;
  box-shadow: inset 0 0 0 6px var(--night), inset 0 0 0 7px color-mix(in srgb, var(--c) 40%, transparent); background: var(--night-2); transition: box-shadow .5s; }
.inside { position: absolute; inset: 8px; border-radius: inherit; display: grid; place-content: center; gap: 6px; padding: 14px;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%), var(--night-3); overflow: hidden; }
.inside svg { width: clamp(34px, 5vw, 56px); height: clamp(34px, 5vw, 56px); margin: 0 auto; color: var(--c); filter: drop-shadow(0 0 12px var(--c)); }
.inside strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--c); line-height: 1; }
.inside span { font-size: .85rem; color: var(--ink-2); }
.leaf { position: absolute; top: 8px; bottom: 8px; width: calc(50% - 8px); background: var(--night-2); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  transition: transform 1s cubic-bezier(.25,.8,.25,1); backface-visibility: hidden; }
.leaf.l { left: 8px; transform-origin: left center; border-radius: 999px 0 0 8px / 46% 0 0 8px; border-right-width: 0; }
.leaf.r { right: 8px; transform-origin: right center; border-radius: 0 999px 8px 0 / 0 46% 8px 0; }
.leaf::before { content: ""; position: absolute; inset: 22% 14% 10%; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.leaf.l::before { border-radius: 999px 0 4px 4px / 40% 0 4px 4px; }
.leaf.r::before { border-radius: 0 999px 4px 4px / 0 40% 4px 4px; }
.knock { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c); position: absolute; top: 56%; }
.leaf.l .knock { right: 10px; } .leaf.r .knock { left: 10px; }
.door:hover .leaf.l, .door:focus-visible .leaf.l, .door.open .leaf.l { transform: rotateY(-108deg); }
.door:hover .leaf.r, .door:focus-visible .leaf.r, .door.open .leaf.r { transform: rotateY(108deg); }
.door.open .arch { box-shadow: inset 0 0 0 6px var(--night), inset 0 0 0 7px var(--c), 0 0 50px -10px var(--c); }
.door-label { display: grid; line-height: 1.3; }
.door-label b { font-weight: 500; font-size: 1.05rem; }
.door-label .en { font-size: .88rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 46px 0 22px; scroll-margin-top: 20px; }
.search { flex: 1 1 220px; min-width: 0; max-width: 320px; margin-left: auto; border: 1px solid var(--line); background: var(--night-2); border-radius: 999px; padding: 7px 16px; color: var(--ink); font-size: .92rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tile { --c: var(--gold); position: relative; text-align: left; text-decoration: none; border: 1px solid var(--line); background: linear-gradient(180deg, var(--night-2), color-mix(in srgb, var(--night-2) 70%, var(--night))); border-radius: 18px;
  padding: 20px 20px 18px; display: grid; gap: 4px; align-content: start; overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s; }
.tile::before { content: ""; position: absolute; width: 160px; height: 160px; right: -50px; top: -50px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); opacity: .5; transition: opacity .4s, transform .6s; }
.tile:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 18px 40px -20px var(--c); }
.tile:hover::before { opacity: 1; transform: scale(1.3); }
.tile svg { width: 52px; height: 52px; color: var(--c); margin-bottom: 10px; position: relative; }
.tile svg use { stroke-dasharray: 220; }
.tile:hover svg use { animation: redraw 1.2s ease; }
@keyframes redraw { from { stroke-dashoffset: 220 } to { stroke-dashoffset: 0 } }
.tile .hi { font-family: var(--f-display); font-size: 1.4rem; line-height: 1.25; position: relative; }
.tile .en { font-size: .92rem; position: relative; }
.tile .blurb { font-size: .86rem; color: var(--ink-2); margin-top: 6px; position: relative; }
.tile .meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .8rem; color: var(--muted); position: relative; }
.ribbon { position: absolute; top: 14px; right: 14px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--c); color: var(--c); }
.ribbon.prem { background: var(--c); color: var(--on-gold); }
.tile.hide { display: none; }
.empty { color: var(--ink-2); padding: 20px 0; }
footer { padding-block: 60px 50px; color: var(--muted); font-size: .88rem; text-align: center; }
@media (prefers-reduced-motion: reduce) { .title-svg text { fill: var(--gold); stroke-width: 0; } .lede, .ctas, .diya-cap { opacity: 1; } }
.sec-head .l-en, .tile .blurb .l-en { display: block; }
.sec-head h2 .l-en { font-size: .55em; font-family: var(--f-body); font-weight: 300; margin-top: 4px; }
[data-lang="en"] .sec-head h2 .l-en { font-size: 1em; font-family: var(--f-display); font-weight: 400; }
[data-lang="both"] .ctas .l-en { display: none; }

/* ॐ: draws itself, glows, and sends out slow ripples like a sound vibration */
.om { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin: 0 0 14px -6px; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle, rgba(233,177,59,.18), transparent 70%); cursor: pointer; }
.om svg { width: 100%; height: 100%; overflow: visible; position: relative; z-index: 1; }
.om text { font-family: var(--f-mantra); font-size: 82px; fill: transparent; stroke: var(--gold); stroke-width: 1.2;
  stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 2.4s ease .2s forwards, omfill 1.2s ease 2s forwards, omglow 4s ease-in-out 3.2s infinite; }
@keyframes omfill { to { fill: url(#g-om); stroke-width: 0 } }
@keyframes omglow { 0%, 100% { filter: drop-shadow(0 0 6px rgba(233,177,59,.45)) } 50% { filter: drop-shadow(0 0 18px rgba(255,200,90,.85)) } }
.om-ring { position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(233,177,59,.55); opacity: 0; animation: ripple 4.5s ease-out 2.6s infinite; }
.om-ring:nth-child(2) { animation-delay: 4.1s; }
.om-ring:nth-child(3) { animation-delay: 5.6s; }
@keyframes ripple { 0% { transform: scale(.8); opacity: .8 } 100% { transform: scale(2.4); opacity: 0 } }
.om.chant .om-ring { animation-duration: 1.6s; animation-delay: 0s, .5s, 1s; }
.om:hover text { animation-duration: 2.4s, 1.2s, 1.6s; }
@media (max-width: 820px) { .om { margin: 0 auto 10px; } }
@media (prefers-reduced-motion: reduce) { .om text { fill: var(--gold); stroke-width: 0; } .om-ring { display: none; } }

/* consult-a-pandit note */
.pandit-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 34px; }
.pandit-note .pn-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mantra); color: var(--gold); font-size: 1.5rem; background: rgba(233,177,59,.14); border: 1px solid rgba(233,177,59,.45); }
.pandit-note .pn-text { min-width: 0; max-width: 78ch; border-left: 2px solid var(--gold); padding-left: 16px; }
.pandit-note strong { display: block; font-weight: 500; font-size: 1.08rem; color: var(--gold-soft); }
.pandit-note strong .l-en, .pandit-note p .l-en { display: block; }
[data-lang="both"] .pandit-note strong .l-en { font-size: .92rem; font-weight: 300; color: var(--ink-2); }
.pandit-note p { margin: 8px 0 0; color: var(--ink-2); font-size: .95rem; }
.pandit-note p .l-en { margin-top: 6px; }
[data-lang="en"] .pandit-note p .l-en { margin-top: 0; }
@media (max-width: 560px) { .pandit-note { flex-direction: column; gap: 10px; } }
