/* ==========================================================
   Harika weds Nagaraja — Stories by OneMark
   Palette: temple ivory, Tirumala gold, kumkum, maroon, banana leaf
   ========================================================== */
:root {
  --ivory: #f8efdd;
  --parchment: #f7ebd6;
  --paper: #fcf6ea;
  --gold: #b8862b;
  --gold-deep: #8a6115;
  --gold-light: #e6c374;
  --gold-pale: #f3e2b3;
  --kumkum: #9e1b1b;
  --maroon: #5a1212;
  --maroon-deep: #330909;
  --leaf: #3f6b2a;
  --ink: #3b2a14;
  --muted: #7a6448;

  --f-display: "Tenor Sans", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --f-caps: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(15.5px, 0.4vw + 14px, 17.5px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--parchment);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; height: 100vh; height: 100svh; }
/* without JavaScript (crawlers, link previews, script blockers) skip the gate and show the invitation */
html:not(.js) .gate,
html:not(.js) .music-btn,
html:not(.js) .scratch-canvas { display: none; }

main { overflow-x: hidden; overflow-x: clip; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--kumkum); outline-offset: 3px; border-radius: 4px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--f-caps);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--kumkum);
  margin: 0 0 0.6rem;
}
.eyebrow-light { color: var(--gold-light); }

.section-title {
  font-family: var(--f-caps);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0;
  line-height: 1.2;
}
.title-light { color: var(--gold-pale); }

.section-sub { max-width: 34rem; margin: 1rem auto 0; color: var(--muted); font-weight: 300; }

.section { position: relative; padding: clamp(72px, 11vw, 140px) var(--gutter); }
.section-head { text-align: center; margin-bottom: clamp(36px, 6vw, 64px); }

.ornament { width: min(260px, 70%); margin: 1rem auto 0; color: var(--gold); }
.ornament svg { width: 100%; height: auto; display: block; }
.ornament-light { color: var(--gold-light); }

/* ==========================================================
   TEMPLE GATE (opening)
   ========================================================== */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: #120604;
}
.gate-stage { position: absolute; inset: 0; will-change: transform, filter; }
.gate-photo {
  position: absolute;
  inset: 0;
  background: url("assets/img/temple-door.webp") 50% 58% / cover no-repeat;
}
/* light pouring out of the sanctum, positioned on the doorway by script.js */
.gate-glow,
.gate-rays {
  position: absolute;
  left: 50%;
  top: 60%;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.gate-glow {
  width: 46vmin;
  height: 62vmin;
  background: radial-gradient(closest-side, rgba(255, 236, 180, .55), rgba(255, 196, 92, .2) 45%, rgba(255, 170, 60, 0));
  opacity: .55;
}
.gate-rays {
  width: min(140vmax, 1600px);
  height: min(140vmax, 1600px);
  background:
    radial-gradient(closest-side, rgba(255, 214, 140, .22), rgba(255, 214, 140, .08) 30%, transparent 60%),
    repeating-conic-gradient(from 0deg, rgba(255, 220, 150, .1) 0deg 3deg, rgba(255, 220, 150, 0) 3deg 14deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 4%, rgba(0, 0, 0, .5) 24%, transparent 60%);
  mask-image: radial-gradient(closest-side, #000 4%, rgba(0, 0, 0, .5) 24%, transparent 60%);
  opacity: .5;
}
.gate-flames { position: absolute; inset: 0; pointer-events: none; }
.gate-flame {
  position: absolute;
  width: 7vmin;
  height: 7vmin;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 228, 160, .8), rgba(255, 160, 50, .3) 40%, rgba(255, 140, 30, 0));
}
.gate-dim { position: absolute; inset: 0; background: #0b0302; opacity: 0; pointer-events: none; }
.gate-dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.gate-dust i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffe2a0;
  box-shadow: 0 0 6px 2px rgba(255, 200, 110, .55);
}
.gate-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 6, 4, .78) 0%, rgba(18, 6, 4, 0) 26%),
    linear-gradient(0deg, rgba(18, 6, 4, .92) 0%, rgba(18, 6, 4, .55) 26%, rgba(18, 6, 4, 0) 48%);
}
.gate-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: max(28px, env(safe-area-inset-top)) var(--gutter) max(28px, env(safe-area-inset-bottom));
  color: var(--gold-pale);
}
.gate-invocation {
  margin: 0;
  font-family: var(--f-caps);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.gate-bottom { display: flex; flex-direction: column; align-items: center; }
.gate-names {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.45rem, 4.6vw, 2.5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.3;
  color: #f6e2a6;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
}
.gate-names .gn, .gate-names .amp { display: inline-block; }
.gate-names .amp { color: var(--gold-light); margin: 0 0.15em; }
.gate-message {
  margin: 0.5rem 0 1.5rem;
  max-width: 30rem;
  font-family: var(--f-body);
  font-size: clamp(0.92rem, 2.6vw, 1.05rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(246, 226, 166, .92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .7);
}
.gate-btn {
  position: relative;
  min-height: 52px;
  padding: 0 34px;
  border-radius: 999px;
  border: 1px solid rgba(246, 226, 166, .85);
  background: linear-gradient(180deg, rgba(242, 214, 140, .95), rgba(201, 151, 58, .95));
  color: var(--maroon-deep);
  font-family: var(--f-caps);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(201, 151, 58, .18), 0 12px 30px rgba(0, 0, 0, .45);
  animation: gatePulse 2.6s ease-in-out infinite;
}
@keyframes gatePulse { 50% { box-shadow: 0 0 0 12px rgba(201, 151, 58, .08), 0 12px 30px rgba(0, 0, 0, .45); } }
.gate-brand {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--f-caps);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: .7;
}
.gate-brand img { width: 96px; height: auto; }
.gate-flash {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at 50% 55%, #fffaf0, #f7ebd6 60%);
  opacity: 0;
  pointer-events: none;
}
.gate.is-gone { display: none; }

/* ==========================================================
   THREE.JS LAYER + MUSIC
   ========================================================== */
#sacredCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  pointer-events: none;
}

.music-btn {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(230, 195, 116, .8);
  background: radial-gradient(circle at 35% 30%, #7a1d1d, var(--maroon-deep));
  box-shadow: 0 6px 20px rgba(51, 9, 9, .35);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
}
.bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.bars i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--gold-light);
  transform-origin: bottom;
  animation: bar 1.1s ease-in-out infinite;
}
.bars i:nth-child(2) { animation-delay: -.4s; }
.bars i:nth-child(3) { animation-delay: -.7s; }
.bars i:nth-child(4) { animation-delay: -.2s; }
@keyframes bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.music-btn[aria-pressed="false"] .bars i { animation-play-state: paused; transform: scaleY(.25); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vh, 110px) var(--gutter) 100px;
  overflow: hidden;
  background: var(--parchment);
}
.hero-bg { position: absolute; inset: 0; }
.hero-pillar {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
}
.hero-pillar-left { left: 0; object-position: left top; }
.hero-pillar-right { right: 0; object-position: right top; }
.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 42% 55% at 50% 48%, rgba(252, 246, 234, .95), rgba(252, 246, 234, 0) 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 640px; }

.namam { width: clamp(150px, 18vw, 210px); height: auto; margin: 0 auto 0.8rem; filter: drop-shadow(0 4px 10px rgba(138, 97, 21, .18)); }
.namam-sm { width: 150px; }

.invocation {
  font-family: var(--f-caps);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--kumkum);
  margin: 0 0 1rem;
}
.hero-lead { margin: 0; color: var(--muted); font-weight: 300; }
.hero-names {
  margin: min(1.2rem, 2vh) 0 min(0.9rem, 1.5vh);
  font-weight: 400;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-names .name {
  font-family: var(--f-display);
  font-size: clamp(2.3rem, min(9vw, 8vh), 4.4rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.12em 0 0.12em 0.16em;
  color: var(--gold-deep);
}
.hero-names .name .ch {
  display: inline-block;
  padding: 0.04em 0;
  background: linear-gradient(180deg, #c99a3e 10%, #8a6115 60%, #6d4a0c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-names .weds {
  font-family: var(--f-caps);
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  color: var(--kumkum);
  text-transform: uppercase;
  margin: 0.2rem 0 0.1rem 0.5em;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-names .weds::before,
.hero-names .weds::after { content: ""; width: 42px; height: 1px; background: var(--gold); }
.hero-line { margin: 0 0 min(2rem, 3.5vh); font-size: 1.06em; font-weight: 300; }
.hero-line strong { font-weight: 500; color: var(--gold-deep); }

.countdown-label {
  font-family: var(--f-caps);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.9rem;
}
.countdown-tiles { display: flex; justify-content: center; gap: clamp(8px, 2vw, 16px); }
.tile {
  width: clamp(66px, 17vw, 92px);
  padding: 12px 4px 10px;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, rgba(252,246,234,.95), rgba(243,226,179,.9));
  border: 1px solid rgba(184, 134, 43, .55);
  box-shadow: inset 0 0 0 4px rgba(252, 246, 234, .9), inset 0 0 0 5px rgba(184, 134, 43, .3), 0 10px 24px rgba(138, 97, 21, .12);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tile .num {
  font-family: var(--f-caps);
  font-weight: 400;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  color: var(--maroon);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  padding-top: 6px;
}
.tile .unit { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.countdown-done { color: var(--kumkum); }

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-decoration: none;
  font-family: var(--f-caps);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 900px) {
  .hero-bg {
    background: url("assets/img/hero-mobile.webp") center top / cover no-repeat;
  }
  .hero-pillar { display: none; }
  .hero-glow { background: radial-gradient(ellipse 62% 48% at 50% 46%, rgba(252,246,234,.94), rgba(252,246,234,.55) 70%, rgba(252,246,234,0) 100%); }
}

/* ==========================================================
   COUPLE
   ========================================================== */
.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  max-width: 1040px;
  margin: 0 auto;
}
.person-card,
.event-card {
  position: relative;
  text-align: center;
  padding: clamp(36px, 5vw, 56px) clamp(22px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(252, 246, 234, .96), rgba(248, 239, 221, .96));
  border: 1px solid rgba(184, 134, 43, .55);
  outline: 1px solid rgba(184, 134, 43, .35);
  outline-offset: -10px;
  box-shadow: 0 24px 60px -30px rgba(90, 18, 18, .35);
}
.corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid var(--gold);
}
.corner::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--kumkum);
  transform: rotate(45deg);
}
.corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.corner.tl::after { top: 4px; left: 4px; }
.corner.tr::after { top: 4px; right: 4px; }
.corner.bl::after { bottom: 4px; left: 4px; }
.corner.br::after { bottom: 4px; right: 4px; }

.person-role {
  font-family: var(--f-caps);
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--kumkum);
  margin: 0;
}
.person-name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--gold-deep);
  margin: 0.6rem 0 0.2rem;
}
.person-qual { margin: 0; color: var(--muted); }
.person-rule {
  width: 70px;
  height: 10px;
  margin: 1.1rem auto;
  background:
    radial-gradient(circle, var(--kumkum) 0 3px, transparent 3.5px) center / 10px 10px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 100% 1px no-repeat;
}
.person-family { margin: 0; }
.person-family strong { font-weight: 500; color: var(--maroon); }
.person-place {
  margin: 0.9rem 0 0;
  font-family: var(--f-caps);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.couple-amp span {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  color: var(--kumkum);
  display: grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  border: 1px solid rgba(184, 134, 43, .5);
  background: var(--paper);
  line-height: 1;
}

.couple-head {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 3vw, 40px);
}
.elephant { width: clamp(72px, 11vw, 150px); height: auto; flex: none; }
@media (max-width: 600px) {
  .couple-head { flex-wrap: wrap; column-gap: 34%; row-gap: 10px; }
  .couple-head .reveal { order: 3; flex-basis: 100%; }
  .elephant { width: 82px; }
}

@media (max-width: 820px) {
  .couple-grid { grid-template-columns: 1fr; max-width: 460px; }
  .couple-amp { justify-self: center; margin: -6px 0; }
}

/* ==========================================================
   MUHURTHAM
   ========================================================== */
.muhurtham {
  color: var(--gold-pale);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(201, 151, 58, .22), transparent 70%),
    linear-gradient(180deg, #4b0e0e 0%, var(--maroon-deep) 100%);
  overflow: hidden;
}
.kolam-veil {
  position: absolute;
  inset: 0;
  opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none' stroke='%23e6c374' stroke-width='1.2'%3E%3Ccircle cx='40' cy='40' r='2' fill='%23e6c374'/%3E%3Ccircle cx='0' cy='0' r='2' fill='%23e6c374'/%3E%3Ccircle cx='80' cy='0' r='2' fill='%23e6c374'/%3E%3Ccircle cx='0' cy='80' r='2' fill='%23e6c374'/%3E%3Ccircle cx='80' cy='80' r='2' fill='%23e6c374'/%3E%3Cpath d='M40 18 Q62 18 62 40 Q62 62 40 62 Q18 62 18 40 Q18 18 40 18Z'/%3E%3Cpath d='M40 4 L76 40 L40 76 L4 40Z'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}
.muhurtham > * { position: relative; }
.muhurtham > .divine-light {
  position: absolute;
  top: 0;
  left: 50%;
  width: max(100%, 900px);
  height: min(640px, 110vw);
  transform: translateX(-50%);
  background: url("assets/img/divine-rays.webp") center top / cover no-repeat;
  mix-blend-mode: screen;
  opacity: .8;
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent);
  mask-image: linear-gradient(180deg, #000 35%, transparent);
  pointer-events: none;
}
.namam-gold {
  width: clamp(200px, 28vw, 300px);
  height: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 18px rgba(246, 210, 120, .35));
}

.mandapam-wrap {
  position: relative;
  width: min(480px, 88vw);
  margin: 0 auto 1.4rem;
}
.mandapam { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.mandapam-kalyanam {
  position: absolute;
  left: 52.5%;
  top: 66%;
  width: 37%;
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5));
}

.scratch-block { position: relative; z-index: 3; max-width: 560px; margin: 0 auto; }
.scratch-cta { color: var(--gold-light); margin: 0 0 1rem; }

.scratch {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 2.1 / 1;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(230, 195, 116, .9), 0 0 0 6px rgba(51, 9, 9, .9), 0 0 0 7px rgba(230, 195, 116, .55), 0 30px 60px -20px rgba(0, 0, 0, .55);
  touch-action: pan-y;
}
.scratch.is-scratching { touch-action: none; }
.scratch-sm { max-width: 460px; aspect-ratio: 2.3 / 1; box-shadow: 0 0 0 1px rgba(184,134,43,.7), 0 0 0 5px var(--paper), 0 0 0 6px rgba(184,134,43,.45), 0 20px 40px -20px rgba(90,18,18,.4); }
.scratch-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(243, 226, 179, .55), transparent 70%),
    var(--paper);
}
.scratch-reveal p { margin: 0; }
.sr-kicker { font-family: var(--f-caps); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--kumkum); }
.sr-date { font-family: var(--f-caps); font-weight: 500; text-transform: uppercase; font-size: clamp(0.72rem, 2.2vw, 0.92rem); letter-spacing: 0.16em; color: var(--maroon); margin-top: 0.3rem !important; }
.sr-time {
  font-family: var(--f-caps);
  font-weight: 300;
  font-size: clamp(2.3rem, 9vw, 3.6rem);
  line-height: 1.1;
  color: var(--gold-deep);
}
.sr-time small { font-size: 0.42em; letter-spacing: 0.1em; }
.sr-note { font-size: 0.92rem; color: var(--muted); max-width: 26em; line-height: 1.35; }
.scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.scratch:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 6px; }
.sr-time small { text-transform: none; }
.scratch.is-revealed .scratch-canvas { pointer-events: none; }

.text-btn {
  background: none;
  border: 0;
  padding: 10px 6px;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  opacity: .75;
}
.text-btn:hover { opacity: 1; }

.after-reveal { display: none; }
.after-reveal.is-shown { display: block; }

.venue-card {
  max-width: 600px;
  margin: 2.6rem auto 0;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid rgba(230, 195, 116, .45);
  border-radius: 200px 200px 14px 14px;
  background: linear-gradient(180deg, rgba(230, 195, 116, .08), rgba(230, 195, 116, .02));
}
.venue-label {
  font-family: var(--f-caps);
  font-size: 0.75rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin: 0;
  opacity: .8;
}
.venue-name {
  font-family: var(--f-caps);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  letter-spacing: 0.14em;
  margin: 0.3rem 0 0.2rem;
}
.muhurtham .venue-name { color: var(--gold-light); }
.venue-addr { margin: 0; }
.panchangam { margin: 1.6rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(230, 195, 116, .3); }
.panchangam-title { font-family: var(--f-caps); font-size: 0.75rem; letter-spacing: 0.34em; text-transform: uppercase; margin: 0 0 0.5rem; color: var(--gold-light); }
.panchangam ul { list-style: none; margin: 0; padding: 0; }
.panchangam li + li::before { content: "✦"; display: block; font-size: 0.6rem /*decor*/; font-style: normal; color: var(--gold-light); opacity: .6; margin: 2px 0; }
.blessing-note { margin: 1.6rem auto 0; max-width: 30rem; font-size: 1.05em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 1.6rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--f-caps);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  border: 0;
  color: var(--maroon-deep);
  background: linear-gradient(180deg, #f2d68c, #c9973a);
  box-shadow: 0 8px 22px -8px rgba(201, 151, 58, .8), inset 0 1px 0 rgba(255, 250, 230, .7);
}
.btn-ghost { border: 1px solid var(--gold); background: transparent; color: var(--gold-deep); }
.btn-ghost-light { border: 1px solid rgba(230, 195, 116, .7); background: transparent; color: var(--gold-pale); }

.next-cue {
  display: inline-flex;
  gap: 8px;
  margin-top: 2.4rem;
  font-family: var(--f-caps);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-light);
}
.next-cue i { font-style: normal; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ==========================================================
   CELEBRATIONS
   ========================================================== */
.celebrations { text-align: center; }
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 32px);
  max-width: 860px;
  margin: 0 auto;
}
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: clamp(28px, 4vw, 40px) 16px clamp(22px, 3vw, 30px);
  border-radius: 220px 220px 16px 16px;
  border: 1px solid rgba(184, 134, 43, .5);
  background: linear-gradient(180deg, var(--paper), var(--ivory));
  cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, background .4s;
  box-shadow: 0 18px 40px -26px rgba(90, 18, 18, .4);
}
.choice::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 1px dashed rgba(184, 134, 43, .35);
  pointer-events: none;
}
.choice:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -26px rgba(90, 18, 18, .5); }
.choice[aria-selected="true"] {
  background: linear-gradient(180deg, #6a1616, var(--maroon-deep));
  border-color: var(--gold-light);
  color: var(--gold-pale);
}
.choice[aria-selected="true"] .choice-title,
.choice[aria-selected="true"] .choice-icon { color: var(--gold-light); }
.choice[aria-selected="true"] .choice-kicker { color: #f0b9a0; }
.choice-icon { width: 64px; height: 64px; color: var(--gold); margin-bottom: 6px; }
.choice-icon svg { width: 100%; height: 100%; }
.choice-kicker { font-family: var(--f-caps); font-size: 0.75rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--kumkum); }
.choice-title { font-family: var(--f-display); font-size: clamp(1.05rem, 2.6vw, 1.6rem); letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.35; margin: 0.35rem 0 0.2rem; color: var(--gold-deep); }
.choice-place { }
.choice-go { margin-top: 10px; font-family: var(--f-caps); font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: .75; }
.choice[aria-selected="true"] .choice-go { visibility: hidden; }

@media (max-width: 560px) {
  .choice { border-radius: 160px 160px 14px 14px; padding-left: 8px; padding-right: 8px; }
  .choice-icon { width: 48px; height: 48px; }
  .choice-kicker { font-size: 0.75rem; letter-spacing: 0.06em; line-height: 1.4; }
  .choice-go { font-size: 0.75rem; letter-spacing: 0.06em; }
}

.side-panel { max-width: 640px; margin: clamp(28px, 5vw, 48px) auto 0; }
.event-kicker { font-family: var(--f-caps); font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--kumkum); margin: 0; }
.event-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 4.6vw, 2.3rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin: 0.5rem 0 0.8rem; line-height: 1.25; }
.event-desc { margin: 0 auto 1.6rem; max-width: 30rem; color: var(--muted); }
.event-days { font-family: var(--f-caps); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--kumkum); margin: 1.2rem 0 1.4rem; }
.event-card .venue-name { color: var(--maroon); }
.hosts { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(184, 134, 43, .35); }
.hosts p { margin: 0; }
.hosts-label { font-family: var(--f-caps); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.hosts-names { font-weight: 500; color: var(--maroon); margin-top: 0.3rem !important; }
.hosts-sub { color: var(--muted); }
.switch-side { margin-top: 1.4rem; color: var(--gold-deep); }

/* ==========================================================
   BLESSINGS
   ========================================================== */
.blessings {
  text-align: center;
  overflow: hidden;
  padding-bottom: clamp(120px, 16vw, 200px);
}
.pillar {
  position: absolute;
  bottom: 0;
  width: clamp(120px, 17vw, 240px);
  height: auto;
  pointer-events: none;
}
.pillar-left { left: 0; }
.pillar-right { right: 0; }
.blessings-inner { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; }
.deity-arch {
  position: relative;
  width: clamp(220px, 34vw, 320px);
  aspect-ratio: 3 / 4;
  margin: 0 auto 1.6rem;
  padding: 8px;
  border-radius: 999px 999px 18px 18px;
  background: linear-gradient(180deg, #f2d68c, #b8862b 60%, #8a6115);
  box-shadow: 0 0 0 1px rgba(138, 97, 21, .5), 0 30px 60px -24px rgba(90, 18, 18, .55);
}
.deity-arch::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px 999px 12px 12px;
  box-shadow: inset 0 0 0 2px rgba(255, 244, 214, .55), inset 0 -60px 50px -30px rgba(58, 10, 10, .45);
  pointer-events: none;
}
.deity-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 999px 999px 12px 12px;
}
.blessings-invocation {
  margin: 0;
  font-family: var(--f-caps);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--kumkum);
}
.blessings-quote {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--maroon);
  margin: 1.2rem 0 0;
}
.blessings-from { margin: 1.4rem 0 0; font-family: var(--f-caps); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.blessings-families { font-family: var(--f-display); font-size: clamp(1.15rem, 3vw, 1.7rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin: 0.5rem 0 0; line-height: 1.5; }

@media (max-width: 640px) {
  .blessings { padding-bottom: 300px; }
  .pillar { width: 128px; }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  position: relative;
  text-align: center;
  padding: 44px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(201, 151, 58, .14), transparent 70%),
    var(--maroon-deep);
  color: var(--gold-pale);
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(420px, 70%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(230, 195, 116, .8), transparent);
}
.footer-label,
.footer-tagline {
  margin: 0;
  font-family: var(--f-caps);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(243, 226, 179, .65);
}
.footer-logo-link { display: inline-block; margin: 12px 0 10px; opacity: .95; transition: opacity .3s, transform .3s var(--ease); }
.footer-logo-link:hover { opacity: 1; transform: translateY(-2px); }
.footer-logo { width: 124px; height: auto; }
.footer-links {
  margin: 18px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-links span { color: rgba(230, 195, 116, .5); }
.footer-links a { color: var(--gold-light); text-decoration: none; border-bottom: 1px solid rgba(230, 195, 116, .35); padding-bottom: 1px; }
.footer-links a:hover { border-bottom-color: var(--gold-light); }

/* ==========================================================
   PETAL BURST + REVEAL STATES
   ========================================================== */
.burst-petal {
  position: fixed;
  z-index: 70;
  width: 12px;
  height: 18px;
  border-radius: 60% 60% 60% 60% / 80% 80% 30% 30%;
  pointer-events: none;
}

.reveal, .reveal-left, .reveal-right { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
