/* Hero: the couple before the mandap with falling petals, then "Welcome to the wedding of Hitanshu & Virali". Used by index.html (after the envelope) and hero.html. */
@font-face { font-family: 'Cinzel'; font-weight: 400; font-display: swap; src: url(../fonts/cinzel-400.ttf) format('truetype'); }
@font-face { font-family: 'Cinzel'; font-weight: 500; font-display: swap; src: url(../fonts/cinzel-500.ttf) format('truetype'); }

/* invite theme */
:root {
  --paper: #f5efe7;        /* off-white screen */
  --maroon: #7a1424;       /* dark reddish text */
  --maroon-deep: #4f0c16;
  --gold: #a87a24;         /* gold accents */
  --gold-soft: #d9b46a;
}
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--maroon);
  font-family: 'Cinzel', Georgia, serif;
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(217, 180, 106, .14), transparent 60%),
    var(--paper);
}
/* portrait film strip; on wide screens it sits centred on the off-white page */
.stage {
  position: relative;
  width: min(100vw, 62svh);
  height: 100svh;
  overflow: hidden;
  box-shadow: 0 0 80px rgba(122, 20, 36, .12);
}
@media (min-aspect-ratio: 3/4) {
  .stage { border-left: 1px solid rgba(184, 137, 47, .35); border-right: 1px solid rgba(184, 137, 47, .35); }
}
.shot {
  position: absolute; inset: 0;
  background: url(mandap.jpg?v=11) 20% 60% / cover;   /* x 20%: narrow screens keep the couple in the bottom-left in frame */
}

/* soft off-white veil over the sky so the text reads */
.sky {
  position: absolute; left: 0; right: 0; top: 0; height: 52%;
  background: linear-gradient(180deg, rgba(245, 239, 231, .92) 0%, rgba(245, 239, 231, .7) 45%, rgba(245, 239, 231, 0) 100%);
  opacity: 0;
  pointer-events: none;
}

.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -20px;
  width: 10px; height: 13px;
  border-radius: 60% 0 60% 0;
  background: linear-gradient(135deg, #c8203a, #8f0f22);
  opacity: .85;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translate(var(--dx), 105svh) rotate(var(--rot)); opacity: .2; }
}

.copy {
  position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + clamp(28px, 5svh, 48px));
  text-align: center; padding: 0 20px;
}
.ganesh {
  display: block; width: clamp(32px, 9vw, 40px); height: auto; margin: 0 auto clamp(10px, 1.8svh, 16px);
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, .6));
  opacity: 0;
}
.welcome {
  margin: 0 0 clamp(12px, 2.4svh, 20px);
  font-size: clamp(10px, 2.6vw, 13px);
  letter-spacing: .22em; text-transform: uppercase;
  color: #9a6d1c;
  opacity: 0;
}

/* the couple's names, stacked: serif names with a gold script ampersand */
.names {
  display: flex; flex-direction: column; align-items: center;
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500;
  font-size: clamp(46px, 14vw, 76px);
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--maroon-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.nm { display: block; white-space: nowrap; }
.nm-amp { font-family: 'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive; font-size: .5em; line-height: 1.1; color: var(--gold);
  position: relative; top: .1em; }   /* optical centring: Hitanshu ends on a solid baseline, Virali starts with thin ascenders */
.names > span { opacity: 0; }

.scroll {
  position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
  text-align: center;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: #fff8ec; font-weight: 500; text-shadow: 0 1px 6px rgba(79, 12, 22, .6);
  opacity: 0;
}
.scroll::after {
  content: ''; display: block; width: 9px; height: 9px; margin: 8px auto 0;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: nudge 2s ease-in-out infinite;
}
@keyframes nudge { 50% { transform: translateY(4px) rotate(45deg); } }

@media (prefers-reduced-motion: reduce) {
  .scroll::after { animation: none; }
}
  
