/* MahaDevastanam landing — sections */

/* ---------- lamps + stats (dark → kumkum) ---------- */
.lamps {
  position: relative; overflow: hidden; text-align: center; color: var(--sandal-50);
  padding: 120px 0 210px;
  background: linear-gradient(180deg, var(--night-950) 0%, #1A0B09 40%, #2B0F0C 78%, #3A1410 100%);
}
.lamps .display { max-width: 15ch; margin: 0 auto; }
.lamp-row { position: relative; display: flex; justify-content: space-between; align-items: flex-end; max-width: 1000px; margin: 78px auto 84px; padding: 0 var(--gutter); }
.lamp-row::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 4px; height: 1px; background: linear-gradient(90deg, transparent, rgba(242, 208, 138, .35), transparent); }
.lamp { position: relative; width: 66px; height: 70px; }
.lamp svg { position: absolute; left: 0; bottom: 0; width: 66px; overflow: visible; }
.lamp .lw { position: absolute; left: 47px; bottom: 25px; width: 12px; height: 30px; translate: -50% 0; transform-origin: 50% 100%; transform: scale(0); transition: transform .9s var(--ease-out); }
.lamp .lf {
  position: absolute; inset: 0; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; transform-origin: 50% 100%;
  background: radial-gradient(ellipse 62% 82% at 50% 84%, #FFF9E0 0%, #FFE08A 22%, #FFAE34 48%, rgba(255, 110, 20, .8) 68%, transparent 86%);
  box-shadow: 0 0 18px 5px rgba(255, 160, 40, .4); animation: flicker 2.3s ease-in-out infinite;
}
.lamp:nth-child(even) .lf { animation-duration: 2.9s; animation-delay: -1s; }
.lamp .lg {
  position: absolute; left: 47px; bottom: 40px; width: 200px; height: 200px; translate: -50% 50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 92, .34), transparent 64%); mix-blend-mode: screen;
  opacity: 0; transition: opacity 1.2s var(--ease-out); pointer-events: none;
}
.lamp.lit .lw { transform: scale(1); }
.lamp.lit .lg { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.stat { position: relative; padding: 8px 20px; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: linear-gradient(transparent, rgba(242, 208, 138, .3), transparent); }
.stat-num {
  display: block; font: 500 clamp(48px, 5.2vw, 76px)/1 var(--f-display); font-variant-numeric: lining-nums tabular-nums;
  background: var(--gold-grad); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { display: block; margin-top: 14px; font: 600 12px/1 var(--f-ui); letter-spacing: .24em; text-transform: uppercase; color: rgba(252, 248, 242, .58); }
.stats-note { display: inline-flex; align-items: center; gap: 10px; margin: 54px 0 0; font-size: 13px; color: rgba(252, 248, 242, .45); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #7CD36B; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124, 211, 107, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(124, 211, 107, 0); } }

/* the arch: stepping into the temple (dark → sandal) */
.gateway { position: relative; z-index: 2; margin-top: -120px; background: var(--sandal-50); border-radius: 50% 50% 0 0 / 120px 120px 0 0; }
.gateway::before {
  content: ""; position: absolute; left: 50%; top: -1px; width: 58%; height: 2px; translate: -50% 0;
  background: linear-gradient(90deg, transparent, rgba(233, 169, 58, .7), transparent); filter: blur(.4px);
}

/* ---------- marquee ---------- */
.marquee { padding: 120px 0 70px; overflow: hidden; }
.mq { display: flex; width: max-content; animation: mq 48s linear infinite; }
.mq.rev { animation-direction: reverse; animation-duration: 56s; }
.mq span { padding: 0 .32em; white-space: nowrap; font: 500 clamp(46px, 6.4vw, 100px)/1.12 var(--f-display); color: var(--ink-900); letter-spacing: -.015em; }
.mq span:nth-of-type(odd) { font-style: italic; }
.mq span.o { color: transparent; -webkit-text-stroke: 1.2px var(--sandal-300); }
.mq i { align-self: center; font-style: normal; font-size: clamp(18px, 2vw, 28px); color: var(--turmeric-400); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- temples (pinned horizontal rail) ---------- */
.temples { position: relative; background: var(--sandal-50); padding: 60px 0 90px; }
.temples-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 50px; }
.temples-head .lede { margin-top: 0; max-width: 40ch; }
.rail-wrap { overflow: visible; }
.rail { display: flex; gap: 28px; width: max-content; padding: 10px var(--gutter) 30px; will-change: transform; }
.tcard {
  position: relative; flex: none; width: clamp(280px, 25vw, 350px); border-radius: 22px; background: #fff;
  box-shadow: 0 1px 2px rgba(60, 35, 15, .06), 0 22px 44px -24px rgba(60, 35, 15, .3);
  transform-style: preserve-3d; transition: box-shadow .5s var(--ease-out);
}
.tcard::before {
  content: ""; position: absolute; inset: -1px; z-index: 3; border-radius: 23px; padding: 1.2px; pointer-events: none;
  background: var(--gold-grad); opacity: 0; transition: opacity .5s var(--ease-out);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.tcard:hover { box-shadow: 0 1px 2px rgba(60, 35, 15, .06), 0 40px 70px -30px rgba(60, 35, 15, .45); }
.tcard:hover::before { opacity: 1; }
.tcard-img { position: relative; height: min(40vh, 380px); border-radius: 22px 22px 0 0; overflow: hidden; }
.tcard-img img { width: 118%; max-width: none; height: 100%; object-fit: cover; transform: translateX(-8%) scale(1.02); transition: transform 1.4s var(--ease-out); }
.tcard:hover .tcard-img img { transform: translateX(-8%) scale(1.09); }
.tcard-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 8, 6, .08) 40%, rgba(14, 8, 6, .62)); }
.tcard-deity {
  position: absolute; left: 16px; top: 16px; z-index: 2; padding: 8px 12px; border-radius: 999px;
  background: rgba(252, 248, 242, .9); backdrop-filter: blur(8px);
  font: 700 10.5px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--saffron-600);
}
.tcard-place { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 7px; color: #fff; font-size: 13px; font-weight: 600; }
.tcard-place svg { width: 15px; height: 15px; }
.tcard-body { padding: 20px 22px 22px; }
.tcard h3 { margin: 0; font: 600 25px/1.08 var(--f-display); color: var(--ink-900); }
.tcard-meta { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-600); }
.tcard-meta b { color: var(--ink-900); font-weight: 700; }
.tcard-more {
  display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; min-height: 100%;
  background: radial-gradient(circle at 70% 20%, rgba(233, 169, 58, .35), transparent 55%), var(--night-900); color: var(--sandal-50);
}
.tcard-more b { font: 500 84px/1 var(--f-display); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tcard-more p { margin: 10px 0 26px; font: 500 26px/1.15 var(--f-display); }
.rail-progress { height: 2px; margin: 26px var(--gutter) 0; border-radius: 2px; background: var(--line); overflow: hidden; }
.rail-progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--saffron-500), var(--turmeric-400)); }

/* ---------- how it works (pinned story + phone) ---------- */
.how { position: relative; overflow: hidden; background: var(--sandal-100); }
.how::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 50%, rgba(233, 169, 58, .16), transparent 45%); }
.how-inner { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; padding: 110px 0; }
.steps { position: relative; list-style: none; margin: 46px 0 0; padding: 0 0 0 40px; }
.steps::before { content: ""; position: absolute; left: 7px; top: 30px; bottom: 30px; width: 1px; background: var(--sandal-300); }
.steps-progress { position: absolute; left: 7px; top: 30px; bottom: 30px; width: 1px; transform: scaleY(0); transform-origin: top; background: linear-gradient(var(--turmeric-400), var(--saffron-500)); }
.steps-flame {
  position: absolute; left: 7.5px; top: 30px; width: 14px; height: 14px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, #FFF6CF, #FFB84D 50%, rgba(255, 140, 30, 0) 72%); box-shadow: 0 0 18px 5px rgba(255, 170, 60, .55);
}
.step { padding: 22px 0; opacity: .34; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transform: translateX(0); }
.step.is-active { opacity: 1; transform: translateX(6px); }
.step-num { font: italic 500 16px/1 var(--f-display); letter-spacing: .08em; color: var(--saffron-600); }
.step h3 { margin: 10px 0 8px; font: 600 clamp(27px, 2.4vw, 36px)/1.08 var(--f-display); color: var(--ink-900); }
.step p { margin: 0; max-width: 44ch; color: var(--ink-600); }
.how-phone { position: relative; display: grid; place-items: center; }
.phone-halo { position: absolute; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 169, 58, .3), transparent 62%); }
.phone-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(201, 123, 42, .35); animation: spin 60s linear infinite; }
.phone-ring.r1 { width: 520px; height: 520px; }
.phone-ring.r2 { width: 420px; height: 420px; border-style: dotted; animation-direction: reverse; animation-duration: 45s; }
@keyframes spin { to { rotate: 360deg; } }

/* phone + mini app UI */
.phone {
  position: relative; width: 300px; height: 620px; padding: 11px; border-radius: 50px; flex: none;
  background: linear-gradient(145deg, #34231a, #0f0906);
  box-shadow: 0 60px 100px -40px rgba(60, 35, 15, .6), inset 0 0 0 1.5px rgba(242, 208, 138, .28), inset 0 0 0 6px #120b08;
}
.phone-screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: var(--sandal-50); font-size: 12px; color: var(--ink-900); }
.phone-notch { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 92px; height: 27px; border-radius: 20px; background: #0c0705; z-index: 5; }
.screen { position: absolute; inset: 0; padding: 52px 16px 16px; opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.screen.is-active { opacity: 1; transform: none; }
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.app-hello small { display: block; font-size: 10px; color: var(--ink-600); }
.app-hello b { font: 600 20px/1.1 var(--f-display); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 700 11px/1 var(--f-ui); color: #fff; background: linear-gradient(135deg, #E9A93A, #A85D1B); }
.app-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; margin-bottom: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-400); }
.app-chips { display: flex; gap: 6px; margin-bottom: 12px; }
.app-chips span { padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 10.5px; }
.app-chips span.on { background: var(--saffron-500); border-color: var(--saffron-500); color: #fff; }
.app-temple { display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 16px -12px rgba(60, 35, 15, .35); }
.app-temple img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.app-temple b { display: block; font-size: 12px; line-height: 1.25; }
.app-temple small { color: var(--ink-600); font-size: 10.5px; }
.app-temple em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 10px; font-weight: 700; color: var(--saffron-600); }
.app-cover { position: relative; height: 150px; margin: -52px -16px 14px; background: url("../img/temple-brihadeeswarar.559f458a2af5.jpg") center/cover; }
.app-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 8, 6, .1), rgba(14, 8, 6, .55)); }
.app-cover span { position: absolute; left: 16px; bottom: 12px; z-index: 2; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.app-title { font: 600 22px/1.05 var(--f-display); }
.app-sub { color: var(--ink-600); font-size: 11px; margin-top: 3px; }
.app-label { margin: 14px 0 7px; font-size: 9.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-600); }
.app-dates { display: flex; gap: 6px; }
.app-date { flex: 1; padding: 6px 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: center; font-size: 9.5px; color: var(--ink-600); }
.app-date b { display: block; font-size: 15px; color: var(--ink-900); }
.app-date.on { background: var(--night-900); border-color: var(--night-900); color: rgba(252, 248, 242, .7); }
.app-date.on b { color: var(--gold-300); }
.app-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.app-slots span { padding: 8px 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-align: center; font-weight: 600; font-size: 10.5px; }
.app-slots span.on { border-color: var(--saffron-500); background: var(--gold-100); color: var(--saffron-600); }
.app-slots span.off { opacity: .35; text-decoration: line-through; }
.app-priest { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.app-priest small { display: block; color: var(--ink-600); font-size: 10px; }
.app-cta { position: absolute; left: 16px; right: 16px; bottom: 18px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--saffron-500); color: #fff; font-weight: 700; box-shadow: 0 12px 22px -12px rgba(201, 123, 42, .9); }
.app-done { padding-top: 34px; text-align: center; }
.app-check { position: relative; width: 88px; height: 88px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, #FFF3D6, #F2D08A); box-shadow: 0 0 0 10px rgba(242, 208, 138, .25), 0 0 50px rgba(233, 169, 58, .55); }
.app-check svg { width: 38px; height: 38px; }
.app-done h4 { margin: 0; font: 600 24px/1.1 var(--f-display); }
.app-done p { margin: 6px 0 0; color: var(--ink-600); font-size: 11px; }
.app-receipt { margin-top: 18px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px dashed var(--sandal-300); text-align: left; }
.app-receipt div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 10.5px; color: var(--ink-600); }
.app-receipt b { color: var(--ink-900); text-align: right; }

/* ---------- upcoming pujas ---------- */
.pujas { background: var(--sandal-50); padding: 140px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 58px; }
.puja-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard {
  position: relative; display: grid; grid-template-columns: 86px 1fr; gap: 20px; padding: 24px; border-radius: 22px;
  background: #fff; border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s;
}
.pcard:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 34px 60px -32px rgba(60, 35, 15, .38); }
.pdate { height: 98px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 16px; background: var(--sandal-100); border: 1px solid var(--sandal-200); transition: background .5s, border-color .5s; }
.pdate small { font: 700 10px/1 var(--f-ui); letter-spacing: .2em; color: var(--saffron-600); }
.pdate b { margin: 6px 0 4px; font: 500 40px/1 var(--f-display); color: var(--ink-900); transition: color .5s; }
.pdate span { font-size: 10.5px; color: var(--ink-600); transition: color .5s; }
.pcard:hover .pdate { background: var(--night-900); border-color: var(--night-900); }
.pcard:hover .pdate b { color: var(--gold-300); }
.pcard:hover .pdate span { color: rgba(252, 248, 242, .6); }
.pcard h3 { margin: 4px 0 6px; font: 600 24px/1.12 var(--f-display); }
.pcard p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-600); }
.pfoot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.pprice { font: 600 24px/1 var(--f-display); color: var(--ink-900); }
.pprice small { font: 500 12px var(--f-ui); color: var(--ink-600); }
.pbook { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--saffron-600); }
.pbook span { transition: transform .3s var(--ease-out); }
.pcard:hover .pbook span { transform: translateX(4px); }

/* ---------- temples & priests (dark) ---------- */
.join { position: relative; overflow: hidden; padding: 160px 0 140px; color: var(--sandal-50); background: var(--night-950); }
.join-bg { position: absolute; inset: -12% 0; background: url("../img/photo-diyas-night.c172155f3c7f.jpg") center/cover; filter: brightness(.42) saturate(1.1); will-change: transform; }
.join::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14, 8, 6, .95) 0%, rgba(14, 8, 6, .5) 38%, rgba(14, 8, 6, .62) 70%, rgba(14, 8, 6, .96) 100%);
}
.join .container { position: relative; z-index: 2; }
.join-head { max-width: 780px; margin: 0 auto 70px; text-align: center; }
.join-head .lede { margin-inline: auto; }
.join-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.jcard {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; padding: 46px; border-radius: 30px;
  background: linear-gradient(160deg, rgba(47, 28, 21, .78), rgba(22, 13, 10, .78)); backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(242, 208, 138, .16), 0 40px 90px -40px rgba(0, 0, 0, .85);
}
.jcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(460px circle at var(--mx) var(--my), rgba(242, 208, 138, .13), transparent 60%); }
.jicon { width: 66px; height: 66px; margin-bottom: 30px; display: grid; place-items: center; border-radius: 20px; background: rgba(242, 208, 138, .08); box-shadow: inset 0 0 0 1px rgba(242, 208, 138, .26); }
.jicon svg { width: 32px; height: 32px; }
.jcard h3 { margin: 0 0 12px; font: 500 44px/1 var(--f-display); }
.jcard h3 em { font-style: italic; color: var(--gold-300); }
.jcard > p { margin: 0 0 28px; color: rgba(252, 248, 242, .7); }
.jlist { display: grid; gap: 14px; list-style: none; margin: 0 0 36px; padding: 0; }
.jlist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(252, 248, 242, .86); }
.jlist li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: radial-gradient(circle, #FFE3A0 0 28%, transparent 31%), rgba(242, 208, 138, .12); box-shadow: inset 0 0 0 1px rgba(242, 208, 138, .4); }
.join-note { margin: 46px 0 0; text-align: center; font-size: 14px; color: rgba(252, 248, 242, .55); }

/* ---------- download ---------- */
.download { position: relative; overflow: hidden; padding: 150px 0 0; background: linear-gradient(180deg, var(--sandal-50) 0%, var(--gold-100) 100%); }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.dl-copy { padding-bottom: 150px; }
.stores { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }
.store { position: relative; display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 24px 0 18px; border-radius: 16px; background: var(--night-950); color: #fff; box-shadow: 0 18px 32px -18px rgba(14, 8, 6, .7); transition: transform .35s var(--ease-out); }
.store:hover { transform: translateY(-3px); }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 10px; letter-spacing: .04em; opacity: .7; }
.store b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.store .soon { position: absolute; top: -10px; right: -12px; padding: 6px 10px; border-radius: 999px; background: var(--turmeric-400); color: var(--night-950); font: 800 9px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 8px 16px -8px rgba(233, 169, 58, .9); }
.dl-phones { position: relative; height: 640px; }
.dl-sun { position: absolute; left: 50%; top: 45%; width: 760px; height: 760px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 140, .8), rgba(233, 169, 58, .25) 40%, transparent 68%); }
.dl-phones .phone { position: absolute; }
.dl-phones .phone.a { left: 4%; bottom: -150px; rotate: -8deg; }
.dl-phones .phone.b { right: 2%; bottom: -80px; rotate: 7deg; }

/* ---------- about ---------- */
.about { background: var(--sandal-50); padding: 160px 0; }
.about-quote { max-width: 1000px; margin: 0 auto 120px; text-align: center; }
.shloka.on-light { display: inline-block; margin-bottom: 26px; background: linear-gradient(120deg, #8E4C14, #C97B2A 40%, #E9A93A 60%, #8E4C14); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; }
.about-quote blockquote { margin: 0; font: italic 500 clamp(34px, 4.2vw, 62px)/1.1 var(--f-display); color: var(--ink-900); letter-spacing: -.01em; }
.about-quote cite { display: block; margin-top: 28px; font: normal 600 12px/1 var(--f-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-600); }
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 84px; align-items: center; }
.about-text p { margin: 0 0 20px; font-size: 17px; line-height: 1.85; color: var(--ink-600); }
.about-text p:first-of-type::first-letter { float: left; margin: 10px 12px 0 0; font: 500 86px/.78 var(--f-display); color: var(--saffron-600); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.value { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.value b { display: block; margin-bottom: 4px; font: 600 21px/1.1 var(--f-display); color: var(--ink-900); }
.value span { font-size: 13px; line-height: 1.5; color: var(--ink-600); }
.collage { position: relative; height: 640px; }
.collage figure { position: absolute; margin: 0; overflow: hidden; border-radius: 24px; box-shadow: 0 44px 80px -36px rgba(60, 35, 15, .5); }
.collage img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.collage .c1 { left: 0; top: 60px; width: 52%; height: 76%; }
.collage .c2 { right: 0; top: 0; width: 44%; height: 47%; }
.collage .c3 { right: 7%; bottom: 0; width: 40%; height: 44%; }
.seal { position: absolute; left: 41%; bottom: 36px; z-index: 3; width: 132px; height: 132px; display: grid; place-items: center; border-radius: 50%; background: var(--night-950); box-shadow: 0 20px 40px -16px rgba(14, 8, 6, .7); }
.seal svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal .brand-mark { width: 44px; height: 44px; }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; padding: 140px 0 36px; background: var(--night-950); color: var(--sandal-50); }
.footer::before { content: ""; position: absolute; left: 50%; top: -300px; width: 900px; height: 600px; translate: -50% 0; background: radial-gradient(ellipse, rgba(233, 169, 58, .14), transparent 65%); }
.footer .container { position: relative; }
.footer-cta { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: end; padding-bottom: 96px; border-bottom: 1px solid rgba(242, 208, 138, .12); }
.contact-cards { display: grid; gap: 14px; }
.ccard { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 20px; background: rgba(251, 239, 210, .04); box-shadow: inset 0 0 0 1px rgba(242, 208, 138, .14); transition: background .3s, box-shadow .3s, transform .4s var(--ease-out); }
.ccard:hover { background: rgba(251, 239, 210, .08); box-shadow: inset 0 0 0 1px rgba(242, 208, 138, .42); transform: translateX(6px); }
.ccard .ci { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(242, 208, 138, .1); color: var(--gold-300); }
.ccard .ci svg { width: 22px; height: 22px; }
.ccard small { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(242, 208, 138, .6); }
.ccard b { font-size: 16px; font-weight: 600; }
.ccard .go { margin-left: auto; color: rgba(242, 208, 138, .6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 76px 0 60px; }
.footer h4 { margin: 0 0 20px; font: 600 12px/1 var(--f-ui); letter-spacing: .22em; text-transform: uppercase; color: rgba(242, 208, 138, .7); }
.footer ul { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; font-size: 15px; color: rgba(252, 248, 242, .68); }
.footer ul a { transition: color .25s; }
.footer ul a:hover { color: var(--gold-300); }
.blessing { margin: 26px 0 6px; font: 400 22px/1.4 var(--f-deva); color: var(--gold-300); }
.blessing-en { margin: 0; font-size: 14px; color: rgba(252, 248, 242, .5); }
.footer-word { margin: 10px 0 30px; text-align: center; user-select: none; font: 500 clamp(64px, 15.5vw, 250px)/.8 var(--f-display); letter-spacing: -.035em; background: linear-gradient(180deg, rgba(242, 208, 138, .2), rgba(242, 208, 138, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 30px; padding-top: 28px; border-top: 1px solid rgba(242, 208, 138, .12); font-size: 13px; color: rgba(252, 248, 242, .45); }
.footer-base a:hover { color: var(--gold-300); }
.credits { max-width: 90ch; margin-top: 14px; font-size: 11px; line-height: 1.6; color: rgba(252, 248, 242, .32); }

/* ---------- application modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(14, 8, 6, .62); backdrop-filter: blur(12px); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease-out); }
.modal.open { opacity: 1; pointer-events: auto; }
.mcard { position: relative; width: min(660px, 100%); max-height: calc(100svh - 40px); overflow: auto; border-radius: 30px; background: var(--sandal-50); box-shadow: 0 70px 140px -40px rgba(0, 0, 0, .75); transform: translateY(34px) scale(.97); transition: transform .6s var(--ease-out); }
.modal.open .mcard { transform: none; }
.mcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold-grad); }
.mhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 34px 36px 0; }
.mhead h2 { margin: 0; font: 500 38px/1 var(--f-display); }
.mhead p { margin: 8px 0 0; color: var(--ink-600); font-size: 14px; }
.mclose { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--sandal-100); transition: background .25s, transform .4s var(--ease-out); }
.mclose:hover { background: var(--sandal-200); transform: rotate(90deg); }
.mtabs { position: relative; display: inline-flex; margin: 22px 36px 0; padding: 4px; border-radius: 999px; background: var(--sandal-100); }
.mtabs button { position: relative; z-index: 1; padding: 10px 20px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-600); transition: color .3s; }
.mtabs button.on { color: var(--ink-900); }
.mtabs .pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(60, 35, 15, .14); transition: left .45s var(--ease-out), width .45s var(--ease-out); }
.msteps { display: flex; gap: 8px; padding: 24px 36px 0; }
.msteps span { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 3px; background: var(--sandal-200); }
.msteps span::after { content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); background: linear-gradient(90deg, var(--saffron-500), var(--turmeric-400)); }
.msteps span.done::after { transform: scaleX(1); }
.msteps-label { padding: 12px 36px 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink-400); }
.mbody { padding: 22px 36px 6px; }
.mpane { display: none; animation: paneIn .5s var(--ease-out); }
.mpane.on { display: block; }
@keyframes paneIn { from { opacity: 0; transform: translateX(16px); } }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 700; color: var(--ink-900); }
.field label small { font-weight: 500; color: var(--ink-400); }
.field input, .field select, .field textarea { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--sandal-300); background: #fff; font: 500 15px var(--f-ui); color: var(--ink-900); transition: border-color .2s, box-shadow .2s; }
.field textarea { height: 100px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--saffron-500); box-shadow: 0 0 0 4px rgba(233, 169, 58, .2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1px solid var(--sandal-300); background: #fff; cursor: pointer; transition: border-color .25s, box-shadow .25s, background .25s; }
.choice input { accent-color: var(--saffron-500); margin-top: 3px; }
.choice b { display: block; font-size: 14px; }
.choice small { color: var(--ink-600); font-size: 12.5px; font-weight: 500; }
.choice label:has(input:checked) { border-color: var(--saffron-500); background: var(--gold-100); box-shadow: 0 0 0 3px rgba(233, 169, 58, .16); }
.review { margin: 0; padding: 6px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.review div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.review div:last-child { border-bottom: 0; }
.review dt { color: var(--ink-600); }
.review dd { margin: 0; font-weight: 700; text-align: right; }
.mfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 36px 32px; }
.mfoot .hint { font-size: 12.5px; color: var(--ink-400); }
.msuccess { display: none; padding: 60px 36px 48px; text-align: center; }
.mcard.sent .msuccess { display: block; }
.mcard.sent .mtabs, .mcard.sent .msteps, .mcard.sent .msteps-label, .mcard.sent .mbody, .mcard.sent .mfoot { display: none; }
.msuccess .diya { margin: 10px auto 26px; transform: scale(.8); }
.msuccess h3 { margin: 0; font: 500 40px/1.05 var(--f-display); }
.msuccess p { max-width: 40ch; margin: 14px auto 28px; color: var(--ink-600); }

/* ---------- scroll reveal (initial state set only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); filter: blur(6px); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .how-inner { grid-template-columns: 1fr; gap: 70px; min-height: 0; }
  .puja-grid { grid-template-columns: 1fr 1fr; }
  .join-cards, .dl-grid, .about-grid, .footer-cta { grid-template-columns: 1fr; }
  .dl-copy { padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .stat:nth-child(3)::before { display: none; }
  .temples-head { flex-direction: column; align-items: flex-start; }
  .rail-wrap { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .rail-wrap::-webkit-scrollbar { display: none; }
  .tcard { scroll-snap-align: center; }
  .rail-progress { display: none; }
}
@media (max-width: 640px) {
  .puja-grid, .row2, .choice, .values, .footer-grid { grid-template-columns: 1fr; }
  .jcard { padding: 30px; }
  .jcard h3 { font-size: 36px; }
  .collage { height: 460px; }
  .seal { width: 104px; height: 104px; left: 36%; }
  .lamp-row .lamp:nth-child(n+6) { display: none; }
  .phone { width: 262px; height: 544px; }
  .dl-phones { height: 520px; }
  .dl-phones .phone.b { display: none; }
  .dl-phones .phone.a { left: 50%; translate: -50% 0; }
  .mhead, .mbody, .mfoot { padding-left: 22px; padding-right: 22px; }
  .mtabs { margin-left: 22px; }
  .msteps, .msteps-label { padding-left: 22px; padding-right: 22px; }
  .mhead h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* ---------- states the live site needs ---------- */
/* A field real people never see; bots fill it in and the server says no. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tcard-nophoto { height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, var(--sandal-200), var(--sandal-300)); color: var(--saffron-600); }
.tcard-nophoto svg { width: 76px; height: 76px; opacity: .55; }
.app-temple-nophoto { width: 58px; height: 58px; flex: none; border-radius: 12px; background: linear-gradient(140deg, var(--sandal-200), var(--sandal-300)); }
.temples-empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--sandal-300); border-radius: 26px; background: #fff; }
.temples-empty h3 { margin: 0 0 10px; font: 500 clamp(28px, 3vw, 40px)/1.1 var(--f-display); color: var(--ink-900); }
.temples-empty p { max-width: 52ch; margin: 0 auto 26px; color: var(--ink-600); }
.form-error { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #FDECEA; color: #8E1B15; font-size: 13.5px; font-weight: 600; }
.field input.is-missing, .field select.is-missing, .field textarea.is-missing { border-color: var(--kumkum-500); box-shadow: 0 0 0 4px rgba(163, 38, 30, .14); }
.store { cursor: default; }
