:root {
  --bg: #fff7ea;
  --bg2: #fdeccf;
  --gold: #a97c12;
  --ivory: #4a0b18;
  --mute: #7d5a49;
  --foil: linear-gradient(
    135deg,
    #7a5410 0%,
    #d9a82f 35%,
    #a67610 60%,
    #e8c25a 80%,
    #7a5410 100%
  );
  --fd: "Cormorant Garamond", serif;
  --fb: "Cormorant Garamond", serif;
  --fs: "Jost", "Mukta", sans-serif;
  --fc: "Cinzel", serif;
  --fscript: "Pinyon Script", cursive;
}
body.hi {
  --fd: "Tiro Devanagari Hindi", serif;
  --fb: "Tiro Devanagari Hindi", serif;
  --fs: "Mukta", sans-serif;
  --fc: "Tiro Devanagari Hindi", serif;
  --fscript: "Tiro Devanagari Hindi", serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font: 1.2rem/1.7 var(--fb);
  color: var(--ivory);
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 15% 0,
      rgba(246, 215, 122, 0.45) 0,
      transparent 45%
    ),
    radial-gradient(
      circle at 95% 55%,
      rgba(255, 170, 150, 0.3) 0,
      transparent 50%
    ),
    linear-gradient(180deg, #fffaf0, #fdeccf 55%, #fbe0cf);
}
body.locked {
  overflow: hidden;
}
.foil {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.script {
  font-family: var(--fscript);
}
.sub,
.chip,
.badge,
i,
.hint,
.cue,
.btn,
.grid,
#calList,
#timer span {
  font-family: var(--fs);
  font-style: normal;
}
.sub {
  font-size: 0.9rem;
  color: var(--mute);
  margin: 0.2rem 0 1.4rem;
}

/* landing + darwaza */
#intro {
  --scene:
    url(./gate-desktop.webp) center/cover no-repeat,
    radial-gradient(ellipse 12% 30% at 50% 100%, #8a1230, transparent 75%)
      center/100% 100% no-repeat,
    radial-gradient(
        ellipse 20% 30% at 50% 64%,
        rgba(255, 196, 100, 0.85),
        rgba(255, 140, 50, 0.2) 60%,
        transparent 75%
      )
      center/100% 100% no-repeat,
    radial-gradient(
        ellipse 9% 22% at 16% 68%,
        rgba(255, 170, 70, 0.6),
        transparent 70%
      )
      center/100% 100% no-repeat,
    radial-gradient(
        ellipse 9% 22% at 84% 68%,
        rgba(255, 170, 70, 0.6),
        transparent 70%
      )
      center/100% 100% no-repeat,
    linear-gradient(
        90deg,
        #2e140c,
        #8a5a3c 18%,
        #c08a62 36%,
        #9c673f 50%,
        #c08a62 64%,
        #8a5a3c 82%,
        #2e140c
      )
      0 100%/100% 80% no-repeat,
    linear-gradient(180deg, #3b2a5c 0%, #8a4a6a 35%, #e07a45 62%, #f0a35a 80%);
  position: fixed;
  inset: 0;
  z-index: 100;
  perspective: 1800px;
  overflow: hidden;
  background: #1c0409;
  color: #fff3dc;
  text-align: center;
}
.door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 2.6s cubic-bezier(0.65, 0, 0.25, 1);
}
.door::before {
  content: "";
  position: absolute;
  top: 0;
  width: 200%;
  height: 100%;
  background: var(--scene);
}
.door::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 5, 5, 0.3),
    rgba(20, 5, 5, 0.1) 35%,
    rgba(20, 5, 5, 0.6)
  );
}
.left {
  left: 0;
  transform-origin: left;
}
.left::before {
  left: 0;
}
.right {
  right: 0;
  transform-origin: right;
}
.right::before {
  right: 0;
}
.land-garland {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  z-index: 2;
  transition: opacity 0.6s;
  background:
    radial-gradient(circle at 12px 14px, #f59e0b 9px, transparent 10px) 0 0/26px
      54px repeat-x,
    radial-gradient(circle at 25px 28px, #ea580c 8px, transparent 9px) 0 0/26px
      54px repeat-x,
    radial-gradient(circle at 12px 42px, #fff 6px, transparent 7px) 0 0/26px
      54px repeat-x;
}
.land {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 1.2rem 1.5rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  transition: opacity 0.6s;
}
.om {
  font:
    4.2rem/1 "Tiro Devanagari Hindi",
    serif;
  color: #ffe9b8;
  filter: drop-shadow(0 0 14px rgba(246, 215, 122, 0.7));
}
.shl {
  max-width: 520px;
  margin: 0.8rem 0 1.2rem;
  font:
    1.2rem/1.7 "Tiro Devanagari Hindi",
    serif;
}
.ln {
  color: #fff7e6;
}
.and {
  font:
    italic 2.4rem/1.2 "Cormorant Garamond",
    serif;
  color: #f6d77a;
}
.lhash {
  margin: 1rem 0 1.4rem;
  font: italic 1.3rem var(--fd);
  color: #f6d77a;
}
.open-btn {
  padding: 0.85rem 2rem;
  border-radius: 99px;
  border: 1px solid #f6d77a;
  background: linear-gradient(180deg, #fbe9a0, #d9a52c);
  color: #4a0b18;
  font: 600 0.95rem var(--fs);
  letter-spacing: 0.08em;
  text-shadow: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s;
}
.open-btn:hover {
  transform: translateY(-2px);
}
.open-btn:focus-visible,
.pill button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.pill {
  display: flex;
  gap: 4px;
  margin-top: 0.9rem;
  padding: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.88);
  text-shadow: none;
}
.pill button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border: 0;
  border-radius: 99px;
  background: none;
  color: #5a3a3a;
  font:
    600 0.95rem Mukta,
    sans-serif;
  cursor: pointer;
}
.pill em {
  font-style: normal;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.08);
}
.pill .on {
  background: #a31830;
  color: #fff;
}
.pill .on em {
  background: rgba(255, 255, 255, 0.25);
}
#intro.open .left {
  transform: rotateY(-105deg);
}
#intro.open .right {
  transform: rotateY(105deg);
}
#intro.open .land,
#intro.open .land-garland {
  opacity: 0;
  pointer-events: none;
}
#intro.open {
  background: transparent;
  transition:
    background 1.6s 1s,
    opacity 1s 2s;
  opacity: 0;
  pointer-events: none;
}

#lang,
#musicBtn {
  position: fixed;
  z-index: 120;
  border: 1px solid var(--gold);
  background: rgba(58, 9, 18, 0.88);
  color: #f6d77a;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
#lang {
  top: 14px;
  right: 14px;
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  font: 600 0.9rem var(--fs);
}
#musicBtn {
  right: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  z-index: 70;
}
#musicBtn.off {
  opacity: 0.5;
  text-decoration: line-through;
}
#sparkles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 0 1.2rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.garland {
  align-self: stretch;
  height: 46px;
  margin: 0 -1.2rem 1.4rem;
  border-top: 4px solid #3f7d3a;
  background:
    radial-gradient(circle at 12px 16px, #f59e0b 9px, transparent 10px) 0 0/26px
      46px repeat-x,
    radial-gradient(circle at 25px 30px, #ea580c 8px, transparent 9px) 0 0/26px
      46px repeat-x;
}
.mandala {
  position: absolute;
  left: 50%;
  top: 120px;
  width: min(900px, 150vw);
  transform: translateX(-50%);
  opacity: 0.28;
  animation: spin 140s linear infinite;
  pointer-events: none;
}
@keyframes spin {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}
.hero > *:not(.garland):not(.mandala) {
  position: relative;
}
.shloka {
  font: 600 1.3rem var(--fc);
}
.chip {
  margin: 0.8rem 0 1.4rem;
  padding: 0.3rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 99px;
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}
.arch {
  position: relative;
  width: min(270px, 70vw);
  aspect-ratio: 3/4;
  margin-bottom: 1.8rem;
  border-radius: 140px 140px 16px 16px;
  border: 2px solid var(--gold);
  padding: 8px;
  background:
    url(./hero.webp) center/cover,
    linear-gradient(165deg, #a3243d, #e0a15a 70%, #f6e27a);
  box-shadow:
    0 0 0 8px rgba(212, 175, 55, 0.15),
    0 24px 60px rgba(91, 15, 31, 0.35),
    inset 0 0 0 7px var(--bg);
}

.badge {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  background: var(--foil);
  color: #fff8e6;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.25rem 1rem;
  border-radius: 99px;
  white-space: nowrap;
}
h1 {
  font: 600 clamp(3.2rem, 13vw, 4.8rem)/1.1 var(--fd);
  letter-spacing: 0.03em;
}
.weds {
  font: 2.6rem var(--fscript);
  color: var(--gold);
  line-height: 1.3;
}
.tag {
  font-style: italic;
  color: var(--mute);
  margin: 1rem 0;
}
.note {
  width: 100%;
  max-width: 440px;
  margin: 1rem 0;
  padding: 1.3rem;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 0 0 5px rgba(212, 175, 55, 0.08);
  color: var(--mute);
}
.note b {
  font: 600 1.2rem var(--fd);
  display: block;
}
.parents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  width: 100%;
  max-width: 440px;
}
.parents div {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 1rem;
}
.parents i {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
  letter-spacing: 0.08em;
}
.hash {
  margin-top: 1.6rem;
  font: 600 1.5rem var(--fd);
}
.cue {
  margin-top: 2rem;
  color: var(--gold);
  font-size: 0.85rem;
  animation: pulse 2s infinite;
}

section {
  padding: 1rem 1.2rem 3rem;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}
.orn {
  height: 30px;
  margin: 1rem 0 0.6rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent)
    center/70% 1px no-repeat;
  position: relative;
}
.orn::after {
  content: "❖";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 0.8rem;
  background: #fdf1dc;
  color: var(--gold);
  font-size: 1rem;
}
h2 {
  font: 600 clamp(2rem, 8vw, 2.6rem)/1.25 var(--fd);
}
.card,
.cal {
  padding: 1.4rem;
  border-radius: 18px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0.5)
  );
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow:
    0 16px 40px rgba(169, 124, 18, 0.22),
    inset 0 0 0 5px rgba(212, 175, 55, 0.06);
}
.card h3 {
  font: 600 1.7rem var(--fd);
  color: var(--gold);
}

.scratch {
  position: relative;
  max-width: 340px;
  height: 200px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.scratch-under {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff8e8;
}
.scratch-under b {
  font: 600 4.6rem/1 var(--fd);
}
.scratch-under span {
  color: var(--gold);
  letter-spacing: 0.2em;
  font-size: 0.95rem;
}
.scratch-under p {
  font-size: 0.85rem;
  color: var(--mute);
  margin-top: 0.3rem;
}
#scratchCv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  transition: opacity 0.8s;
}

.carousel {
  overflow: hidden;
  padding: 6px 0;
}
.track {
  display: flex;
  transition: transform 0.7s ease;
}
.slide {
  flex: 0 0 100%;
  padding: 0 0.3rem;
}
.slide .card {
  text-align: left;
}
.slide .d {
  font: 600 0.8rem var(--fs);
  color: var(--gold);
  letter-spacing: 0.14em;
}
.slide p {
  font: 0.95rem/1.6 var(--fs);
  color: var(--mute);
}
.ctrl {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.ctrl button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: none;
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
}
#dots {
  display: flex;
  gap: 6px;
}
#dots span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(212, 175, 55, 0.3);
  transition: 0.4s;
}
#dots .on {
  width: 26px;
  background: var(--gold);
}

.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.grid b {
  color: var(--gold);
  font-weight: 600;
}
.grid span {
  padding: 0.45rem 0;
  border-radius: 8px;
  color: var(--mute);
}
.grid .ev {
  background: rgba(169, 124, 18, 0.18);
  color: #4a0b18;
  font-weight: 600;
}
.grid .main {
  background: var(--foil);
  color: #fff;
  box-shadow: 0 0 14px rgba(246, 226, 122, 0.6);
}
#calList {
  list-style: none;
  text-align: left;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--mute);
}
#calList b {
  color: var(--ivory);
}
#timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
#timer div {
  padding: 0.7rem 0;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}
#timer b {
  display: block;
  font: 600 1.9rem/1 var(--fd);
  color: var(--gold);
}
#timer span {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--mute);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.btn {
  display: inline-block;
  margin: 0.7rem 0;
  padding: 0.8rem 1.6rem;
  border-radius: 99px;
  border: 0;
  background: var(--foil);
  color: #fff8e6;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.3);
  transition: transform 0.3s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.ghost {
  background: none;
  color: var(--gold);
  border: 1px solid var(--gold);
  box-shadow: none;
}
.btn:focus-visible,
.call:focus-visible,
#lang:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.call {
  text-decoration: none;
  color: inherit;
  display: block;
  font: 0.9rem var(--fs);
}
.call b {
  display: block;
  font-size: 1rem;
}
.call i {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
}
.bless {
  font-size: 1rem;
  color: var(--mute);
  margin-top: 1.6rem;
}
.sign {
  font-size: 3.4rem;
  margin-top: 1rem;
  line-height: 1.4;
}
.end {
  padding-bottom: 5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1s,
    transform 1s;
}
.reveal.show {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .door,
  .reveal,
  #intro,
  .track {
    transition-duration: 0.01s !important;
  }
  .hint,
  .cue,
  .mandala {
    animation: none;
  }
  #sparkles {
    display: none;
  }
}
