/* Anusha & Vishwanath — wedding invitation (mobile-first) */

:root {
  --night: #0d0609;
  --night-2: #1a0a12;
  --rosewood: #5a1a26;
  --rosewood-deep: #2c0b13;
  --ivory: #f8f0e3;
  --ivory-2: #efe2cc;
  --ink: #2a1810;
  --gold: #d4a84b;
  --gold-soft: #f0c36a;
  --gold-pale: #f7deaa;
  --coral: #c45c4a;
  --butter: #f5d76e;
  --pinky: #f4a7b9;
  --muted: rgba(248, 240, 227, 0.74);

  --font-script: "Pinyon Script", cursive;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", system-ui, -apple-system, sans-serif;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html.is-locked,
html.is-locked body {
  overflow: hidden;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ivory);
  background: var(--night);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img,
canvas {
  display: block;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Shared ---------- */

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.7rem;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 8.5vw, 3rem);
  line-height: 1.1;
}

.section-head {
  text-align: center;
  padding: 0 1.5rem;
  margin-bottom: 1.75rem;
}

.section-head__sub {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--gold {
  color: var(--rosewood-deep);
  background: linear-gradient(135deg, var(--gold-pale), var(--gold-soft) 45%, var(--gold));
  box-shadow: 0 10px 30px rgba(212, 168, 75, 0.3);
}

.btn--ghost {
  color: var(--ivory);
  border: 1px solid rgba(240, 195, 106, 0.55);
  background: rgba(20, 8, 12, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ---------- FX layers ---------- */

.fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

body.intro-active .fx {
  z-index: 110;
}

.lantern-sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 45;
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ================= INTRO ================= */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.intro.is-done {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

/* Palace doors */
.doors {
  position: absolute;
  inset: 0;
  perspective: 1400px;
  background: #fff3d6;
}

.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 50% at 50% 0%, rgba(240, 195, 106, 0.16), transparent 60%),
    linear-gradient(180deg, #4d1524 0%, #330c17 55%, #23070f 100%);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 2s cubic-bezier(0.6, 0, 0.2, 1);
  will-change: transform;
}

.door--l {
  left: 0;
  transform-origin: left center;
  box-shadow: inset -1px 0 0 rgba(240, 195, 106, 0.5);
}

.door--r {
  right: 0;
  transform-origin: right center;
  box-shadow: inset 1px 0 0 rgba(240, 195, 106, 0.5);
}

.door::before {
  content: "";
  position: absolute;
  inset: 8% 14% 6%;
  border: 1.5px solid rgba(212, 168, 75, 0.5);
  border-radius: 50% 50% 8px 8px / 18% 18% 8px 8px;
  box-shadow: inset 0 0 0 6px rgba(212, 168, 75, 0.06);
}

.door::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 92vmin;
  height: 92vmin;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(rgba(240, 195, 106, 0.55) 0deg 1.5deg, transparent 1.5deg 12deg);
  -webkit-mask: radial-gradient(circle, transparent 0 24%, #000 24.5% 25.5%, transparent 26% 36%, #000 36.5% 62%, transparent 62.5%);
  mask: radial-gradient(circle, transparent 0 24%, #000 24.5% 25.5%, transparent 26% 36%, #000 36.5% 62%, transparent 62.5%);
  opacity: 0.35;
}

.door--l::after {
  left: 100%;
}

.door--r::after {
  left: 0;
}

.door__ring {
  position: absolute;
  top: 50%;
  width: 34vmin;
  height: 34vmin;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 195, 106, 0.65);
  transform: translate(-50%, -50%);
}

.door--l .door__ring {
  left: 100%;
}

.door--r .door__ring {
  left: 0;
}

.door__letter {
  position: absolute;
  top: 50%;
  transform: translateY(-54%);
  font-family: var(--font-script);
  font-size: 15vmin;
  line-height: 1;
  color: var(--gold-soft);
}

.door--l .door__letter {
  right: 5vmin;
}

.door--r .door__letter {
  left: 5vmin;
}

.doors__seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%) scaleY(0);
  background: linear-gradient(180deg, transparent, #fff6dc 20%, #fff6dc 80%, transparent);
  box-shadow: 0 0 16px 5px rgba(255, 220, 150, 0.75), 0 0 60px 18px rgba(240, 195, 106, 0.35);
  transition: transform 0.9s var(--ease-out), opacity 0.6s ease;
  z-index: 2;
}

.doors__rays {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 246, 220, 0.95) 0%, rgba(240, 195, 106, 0.4) 18%, transparent 48%);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 1.2s ease, transform 2.2s var(--ease-out);
  pointer-events: none;
  z-index: 3;
}

.intro.is-seam .doors__seam {
  transform: translateX(-50%) scaleY(1);
}

.intro.is-open .doors__seam {
  opacity: 0;
}

.intro.is-open .door--l {
  transform: rotateY(-104deg);
}

.intro.is-open .door--r {
  transform: rotateY(104deg);
}

.intro.is-open .doors {
  background: transparent;
  transition: background 1.2s ease 0.4s;
}

.intro.is-open .doors__rays {
  opacity: 1;
  transform: scale(1.6);
}

.intro.is-fading .doors__rays {
  opacity: 0;
}

/* Darkness */
.intro__dark {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9vh;
  padding: calc(var(--safe-top) + 2rem) 1.5rem calc(var(--safe-bottom) + 2rem);
  background: radial-gradient(ellipse 90% 70% at 50% 62%, #2b0e17 0%, #12060a 55%, #070304 100%);
  transition: opacity 1.4s ease;
}

.intro.is-lit .intro__dark {
  opacity: 0;
  pointer-events: none;
  transition-delay: 0.55s;
}

.intro__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro__stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--gold-pale);
  opacity: 0;
  animation: twinkle 3.5s ease-in-out infinite;
}

.intro__lines {
  position: relative;
  display: grid;
  min-height: 6.5rem;
  text-align: center;
  max-width: 22rem;
}

.intro__line {
  grid-area: 1 / 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 5.6vw, 1.75rem);
  line-height: 1.35;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  transition: opacity 1.4s ease, transform 1.4s var(--ease-out), filter 1.4s ease;
}

.intro__line--guest {
  grid-area: 2 / 1;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.intro__line.is-on {
  opacity: 1;
  transform: none;
  filter: none;
}

.intro__line.is-off {
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(4px);
}

/* Two rings + hold ring */
.intro__rings {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.rings-btn {
  --p: 0;
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

.rings-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(240, 195, 106, 0.6);
}

.rings-btn__ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
  opacity: 0;
  transition: opacity 1s ease;
}

.rings-btn__track,
.rings-btn__progress {
  fill: none;
  stroke-width: 1.6;
}

.rings-btn__track {
  stroke: rgba(240, 195, 106, 0.16);
}

.rings-btn__progress {
  stroke: var(--gold-soft);
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 339.3;
  filter: drop-shadow(0 0 4px rgba(240, 195, 106, 0.8));
}

.rings__glow {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 236, 190, 0.42), rgba(240, 195, 106, 0.1) 42%, transparent 68%);
  opacity: calc(0.1 + var(--p) * 0.9);
  scale: calc(0.5 + var(--p) * 0.7);
  pointer-events: none;
}

.rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  transition: opacity 1.2s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.ring {
  transform-box: view-box;
  transform-origin: 50% 57%;
}

.ring--l {
  transform: translateX(calc(-11px - (1 - var(--p)) * 24px)) rotate(calc((1 - var(--p)) * -14deg));
  animation: ringFloat 3.2s ease-in-out infinite;
}

.ring--r {
  transform: translateX(calc(11px + (1 - var(--p)) * 24px)) rotate(calc((1 - var(--p)) * 14deg));
  animation: ringFloat 3.2s ease-in-out -1.6s infinite;
}

.ring__glint {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: glint 2.8s ease-in-out 1s infinite;
}

.intro.is-holding .ring {
  animation: none;
}

.intro.is-lit .rings {
  scale: 1.18;
  transition: scale 0.6s var(--ease-out), opacity 1.2s ease;
}

.intro.is-lit .ring {
  animation: none;
  transition: transform 0.5s var(--ease-out);
}

.intro.is-lit .ring--l {
  transform: translateX(-10px) rotate(-6deg);
}

.intro.is-lit .ring--r {
  transform: translateX(10px) rotate(6deg);
}

.intro__hint {
  max-width: 16rem;
  text-align: center;
  line-height: 1.6;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 1s ease;
}

.intro.is-ready .rings-btn__ring,
.intro.is-ready .rings,
.intro.is-ready .intro__hint {
  opacity: 1;
}

.intro.is-ready .intro__hint {
  animation: breathe 2.6s ease-in-out infinite;
}

.intro.is-holding .intro__hint {
  animation: none;
  color: var(--gold-pale);
}

.intro__skip {
  position: absolute;
  top: calc(var(--safe-top) + 14px);
  right: 16px;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 240, 227, 0.55);
  border: 1px solid rgba(248, 240, 227, 0.18);
  opacity: 0;
  transition: opacity 0.8s ease;
}

.intro__skip.is-on {
  opacity: 1;
}

.intro__flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(circle at 50% 58%, rgba(255, 244, 214, 0.95), rgba(255, 214, 140, 0.5) 30%, transparent 70%);
  opacity: 0;
}

.intro.is-lit .intro__flash {
  animation: flash 1.3s ease-out;
}

.intro.is-shake .intro__dark {
  animation: shake 0.45s ease;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background: url("images/hero-florals.jpg") center / cover no-repeat;
  transform: scale(1.12);
}

body.is-open .hero__bg {
  animation: kenburns 26s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 50% 48%, rgba(26, 8, 14, 0.35), rgba(26, 8, 14, 0.82) 75%),
    linear-gradient(180deg, rgba(13, 6, 9, 0.6) 0%, rgba(13, 6, 9, 0.2) 40%, rgba(13, 6, 9, 0.9) 100%);
}

.hero__inner {
  width: 100%;
  max-width: 34rem;
  padding: calc(var(--safe-top) + 4.5rem) 1.5rem calc(var(--safe-bottom) + 5rem);
}

.hero__guest {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-pale);
  margin-bottom: 1.2rem;
  opacity: 0;
}

body.is-revealed .hero__guest {
  animation: up 1s var(--ease-out) both;
}

.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
  --d: 0.1s;
}

.hero__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  --d: 0.3s;
}

.hero__names {
  margin: 0.6rem 0 0.4rem;
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.02;
  color: var(--gold-pale);
}

.hero__name {
  display: block;
  font-size: clamp(3.6rem, 18vw, 6.8rem);
  text-shadow: 0 0 30px rgba(240, 195, 106, 0.35), 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero__name .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em) rotate(-8deg) scale(0.9);
}

body.is-revealed .hero__name .char {
  animation: charIn 1s var(--ease-out) both;
  animation-delay: calc(var(--i) * 75ms + var(--d, 0ms));
}

.hero__name.is-shiny {
  background: linear-gradient(100deg, #f7deaa 20%, #fff8e6 40%, #f0c36a 50%, #f7deaa 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(240, 195, 106, 0.35));
  animation: shimmer 5s ease-in-out infinite;
}

.hero__amp {
  display: block;
  font-size: clamp(2rem, 9vw, 3rem);
  color: var(--gold-soft);
  margin: -0.15em 0 -0.05em;
  --d: 1.1s;
}

.hero__tagline {
  max-width: 22rem;
  margin: 1rem auto 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--muted);
  --d: 1.8s;
}

.hero__date {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0.9rem;
  margin-top: 1.6rem;
  padding: 0.9rem 1.4rem;
  border-top: 1px solid rgba(240, 195, 106, 0.4);
  border-bottom: 1px solid rgba(240, 195, 106, 0.4);
  --d: 2s;
}

.hero__day {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ivory);
}

.hero__dot {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold-soft);
}

.hero__month {
  flex-basis: 100%;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero__place {
  margin-top: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  --d: 2.2s;
}

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  width: 64px;
  height: 64px;
  margin-top: 1.8rem;
  border-radius: 50%;
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--gold-pale);
  background: radial-gradient(circle at 35% 30%, #a83a3f, #6b1f2a 55%, #3d1018);
  box-shadow: 0 0 0 3px rgba(240, 195, 106, 0.25), 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 -4px 8px rgba(0, 0, 0, 0.35);
  --d: 2.5s;
}

.seal i {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  margin: 0 0.1rem;
  color: var(--gold-soft);
}

.seal.is-tapped {
  animation: sealTap 0.35s ease;
}

.seal.is-hinting {
  animation: sealPulse 2.2s ease-in-out infinite;
}

.seal__hint {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-pale);
  --d: 1.8s;
}

body.is-revealed .seal.is-hinting {
  animation: up 1.1s var(--ease-out) both, sealPulse 2.2s ease-in-out 2.6s infinite;
}

.seal.has-tapped + .seal__hint {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.reveal-up {
  opacity: 0;
  transform: translateY(14px);
}

body.is-revealed .reveal-up {
  animation: up 1.1s var(--ease-out) both;
  animation-delay: var(--d, 0s);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 18px);
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 14px;
  border: 1.5px solid rgba(248, 240, 227, 0.5);
  opacity: 0;
}

.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold-soft);
  animation: scrollDot 1.8s ease-in-out infinite;
}

body.is-revealed .hero__scroll {
  animation: fadeIn 1s ease 3.2s both;
}

/* ================= SOUND ================= */

.sound {
  position: fixed;
  top: calc(var(--safe-top) + 12px);
  right: 12px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-pale);
  background: rgba(20, 8, 12, 0.62);
  border: 1px solid rgba(240, 195, 106, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: hintGlow 2.4s ease-in-out infinite;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.eq i {
  display: block;
  width: 2px;
  height: 40%;
  border-radius: 2px;
  background: var(--gold-soft);
  transform-origin: bottom;
  animation: eq 1s ease-in-out infinite;
}

.eq i:nth-child(2) { animation-delay: -0.2s; height: 70%; }
.eq i:nth-child(3) { animation-delay: -0.45s; height: 100%; }
.eq i:nth-child(4) { animation-delay: -0.1s; height: 55%; }

.sound[aria-pressed="false"] {
  animation: none;
  opacity: 0.7;
}

.sound[aria-pressed="false"] .eq i {
  animation: none;
  height: 3px;
}

/* ================= CONSTELLATION ================= */

.stars {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 4.5rem 1.5rem calc(var(--safe-bottom) + 3rem);
  text-align: center;
  background: radial-gradient(ellipse 120% 80% at 50% 100%, #2a0f22 0%, #110711 55%, #07040a 100%);
  overflow: hidden;
}

.stars__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}

.stars__copy,
.stars__btn {
  position: relative;
  z-index: 1;
}

.stars__copy {
  pointer-events: none;
}

.stars__sub {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.stars__btn {
  animation: hintGlow 2.4s ease-in-out infinite;
}

/* ================= EVENTS ================= */

.events {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(240, 195, 106, 0.1), transparent 70%),
    linear-gradient(180deg, var(--rosewood-deep) 0%, #3c0f1b 100%);
}

.cards {
  display: flex;
  gap: 16px;
  padding: 0.5rem 9vw 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cards::-webkit-scrollbar {
  display: none;
}

.swipe-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 1.25rem 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-pale);
  opacity: 0.85;
  animation: swipeNudge 1.8s ease-in-out infinite;
}

.swipe-cue i {
  width: 28px;
  height: 2px;
  background: var(--gold-soft);
  position: relative;
}

.swipe-cue i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold-soft);
  border-top: 2px solid var(--gold-soft);
  transform: rotate(45deg);
}

.swipe-cue.is-gone {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.card {
  position: relative;
  flex: 0 0 82vw;
  max-width: 360px;
  height: min(66svh, 520px);
  min-height: 430px;
  scroll-snap-align: center;
  perspective: 1200px;
  outline: none;
  cursor: pointer;
}

.card:focus-visible .card__inner {
  box-shadow: 0 0 0 2px var(--gold-soft);
  border-radius: 22px;
}

.card__inner {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.85s var(--ease-out);
}

.card.is-flipped .card__inner {
  transform: rotateY(180deg);
}

.card.is-peek:not(.is-flipped) .card__inner {
  animation: peek 1.5s var(--ease-out) 0.4s;
}

.card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.card__front {
  justify-content: flex-end;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(13, 6, 9, 0.05) 30%, rgba(13, 6, 9, 0.88) 100%),
    var(--img) center 30% / cover no-repeat;
  border: 1px solid rgba(240, 195, 106, 0.35);
}

.card__mood {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 2;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(13, 6, 9, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.card__flip b {
  font-weight: 500;
}

.card__flip {
  animation: flipPulse 2.2s ease-in-out infinite;
}

.card.is-flipped .card__flip,
.card.has-flipped .card__front .card__flip {
  animation: none;
}

.tap-cue {
  position: absolute;
  right: 16%;
  bottom: 26%;
  z-index: 6;
  width: 52px;
  height: 52px;
  pointer-events: none;
}

.tap-cue::before,
.tap-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
}

.tap-cue::before {
  width: 52px;
  height: 52px;
  margin: -26px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  animation: tapRipple 1.8s ease-out infinite;
}

.tap-cue::after {
  width: 16px;
  height: 16px;
  margin: -8px;
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.8);
  animation: tapDot 1.8s ease-out infinite;
}

.card.has-flipped .tap-cue,
.card.is-flipped .tap-cue {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bubbles i {
  position: absolute;
  bottom: 8%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.15);
  animation: bubbleRise 5.5s ease-in infinite;
}

.bubbles i:nth-child(1) { left: 18%; animation-delay: 0s; }
.bubbles i:nth-child(2) { left: 32%; width: 5px; height: 5px; animation-delay: 1.1s; }
.bubbles i:nth-child(3) { left: 48%; animation-delay: 2.2s; }
.bubbles i:nth-child(4) { left: 62%; width: 9px; height: 9px; animation-delay: 0.6s; }
.bubbles i:nth-child(5) { left: 74%; animation-delay: 1.8s; }
.bubbles i:nth-child(6) { left: 86%; width: 4px; height: 4px; animation-delay: 3s; }

.card--engagement .card__front {
  background-image:
    linear-gradient(180deg, rgba(12, 18, 32, 0.05) 28%, rgba(8, 12, 22, 0.9) 100%),
    var(--img);
  border-color: rgba(210, 225, 240, 0.4);
}

.card--engagement .card__back {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(180, 205, 230, 0.28), transparent 50%),
    linear-gradient(180deg, #f4f7fb, #e8eef4);
}

.card--engagement .card__back h3,
.card--engagement .card__back .card__secret {
  color: #1c2a3a;
}

.card--engagement .card__list dt {
  color: #8a6b32;
}

.card--haldi .card__front {
  background-image:
    linear-gradient(180deg, rgba(80, 40, 8, 0.05) 28%, rgba(70, 28, 6, 0.88) 100%),
    var(--img);
  border-color: rgba(245, 215, 110, 0.55);
}

.card--haldi .card__mood {
  background: rgba(245, 215, 110, 0.22);
  color: #fff8d8;
  border-color: rgba(245, 215, 110, 0.5);
}

.card--haldi .card__back {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(245, 215, 110, 0.45), transparent 55%),
    linear-gradient(180deg, #fff6d8, #f3e0a8);
}

.card--haldi .card__back h3 {
  color: #8a4a10;
}

.card--haldi .card__secret {
  background: rgba(232, 137, 47, 0.16);
  color: #6b3210;
}

.card--haldi.is-flipped .card__back {
  animation: haldiSplash 0.7s ease;
}

.card--wedding .card__front {
  background-image:
    linear-gradient(180deg, rgba(20, 6, 8, 0.08) 25%, rgba(20, 6, 8, 0.92) 100%),
    var(--img);
  border-color: rgba(240, 195, 106, 0.55);
  box-shadow: inset 0 0 0 1px rgba(240, 195, 106, 0.2), 0 18px 40px rgba(0, 0, 0, 0.5);
}

.card--wedding .card__mood {
  background: rgba(108, 30, 44, 0.55);
  border-color: rgba(240, 195, 106, 0.5);
  color: var(--gold-pale);
}

.card--wedding .card__back {
  color: var(--gold-pale);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 168, 75, 0.22), transparent 50%),
    linear-gradient(180deg, #3a1018, #1a070c);
  border-color: rgba(240, 195, 106, 0.55);
}

.card--wedding .card__back h3,
.card--wedding .card__back .card__num,
.card--wedding .card__list dd,
.card--wedding .card__secret {
  color: var(--gold-pale);
}

.card--wedding .card__list dt {
  color: var(--gold-soft);
}

.card--wedding .card__back .card__flip {
  color: var(--gold-pale);
  border-color: rgba(240, 195, 106, 0.4);
}

.card--wedding .card__secret {
  background: rgba(240, 195, 106, 0.12);
}

.card--wedding .card__back::before {
  border-color: rgba(240, 195, 106, 0.4);
}

.card__back {
  transform: rotateY(180deg);
  padding: 1.6rem 1.4rem 1.3rem;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(212, 168, 75, 0.22), transparent 50%),
    linear-gradient(180deg, #fbf5ea, var(--ivory-2));
  border: 1px solid rgba(212, 168, 75, 0.6);
}

.card__back::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 168, 75, 0.45);
  border-radius: 16px;
  pointer-events: none;
}

.card__num {
  position: absolute;
  top: 1.1rem;
  left: 1.3rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
}

.card__back .card__num {
  color: var(--gold);
}

.card__when {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.card h3 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 3.2rem;
  line-height: 1.15;
}

.card__front h3 {
  color: var(--ivory);
}

.card__back h3 {
  margin-top: 1.2rem;
  color: var(--rosewood);
}

.card__meta {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--muted);
}

.card__flip {
  margin-top: 1.1rem;
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-pale);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 195, 106, 0.45);
}

.card__back .card__flip {
  margin-top: auto;
  color: var(--rosewood);
  border-color: rgba(107, 31, 42, 0.3);
}

.card__list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.card__list dt {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.card__list dd {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.3;
}

.card__secret {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--rosewood);
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: rgba(212, 168, 75, 0.14);
}

.pill {
  display: inline-block;
  margin: 0.3rem 0.3rem 0 0;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
}

.pill--butter {
  background: var(--butter);
}

.pill--pink {
  background: var(--pinky);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(240, 195, 106, 0.3);
  transition: width 0.3s ease, background 0.3s ease;
}

.dots span.is-on {
  width: 22px;
  border-radius: 4px;
  background: var(--gold-soft);
}


/* ================= MEHNDI GAME ================= */

.mehndi {
  padding: 4.5rem 1.25rem;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(212, 168, 75, 0.18), transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(196, 92, 74, 0.12), transparent 45%),
    var(--ivory);
}

.mehndi .eyebrow {
  color: var(--gold);
}

.mehndi h2 {
  color: var(--rosewood);
}

.mehndi .section-head__sub {
  max-width: 24rem;
  margin-inline: auto;
  color: rgba(42, 24, 16, 0.68);
}

.mehndi__art {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #f9e2c4 0%, #f0cfa6 55%, #e3b88a 100%);
  box-shadow: 0 18px 40px rgba(90, 26, 38, 0.22), inset 0 0 40px rgba(140, 70, 30, 0.18);
  touch-action: manipulation;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

.mehndi__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.m-line {
  fill: none;
  stroke: #7c3410;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.m-line--thin {
  stroke-width: 0.9;
}

.m-dot {
  fill: #7c3410;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  scale: 0;
}

.m-fill {
  fill: #7c3410;
  opacity: 0;
}

.m-name {
  font-family: var(--font-script);
  font-size: 15px;
  fill: #7c3410;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.mehndi__art.is-drawn .m-line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.6s ease-in-out var(--d, 0s);
}

.mehndi__art.is-drawn .m-dot {
  opacity: 1;
  scale: 1;
  transition: opacity 0.4s ease var(--d, 0s), scale 0.5s var(--ease-out) var(--d, 0s);
}

.mehndi__art.is-drawn .m-fill {
  opacity: 0.9;
  transition: opacity 1s ease var(--d, 0s);
}

.mehndi__art.is-drawn .m-name {
  opacity: 0.92;
  transition: opacity 1.2s ease 2.6s;
}

.m-hint.is-glow {
  opacity: 1;
  fill: rgba(255, 246, 220, 0.85);
  transition: opacity 0.6s ease;
}

.m-name.is-found {
  fill: #a3122a;
  opacity: 1;
  animation: nameFound 1.4s var(--ease-out) forwards;
}

.m-hint {
  fill: rgba(255, 236, 190, 0.55);
  opacity: 0;
  pointer-events: none;
}

.m-hint.is-on {
  animation: hintPulse 2.4s ease-in-out;
}

.m-ripple {
  fill: none;
  stroke: rgba(124, 52, 16, 0.6);
  stroke-width: 1.5;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: ripple 0.7s ease-out forwards;
}

.mehndi__bar {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin-top: 1.4rem;
  text-align: center;
}

.mehndi__status {
  min-height: 3em;
  max-width: 24rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--rosewood);
}

.mehndi__hint {
  color: var(--rosewood);
  background: transparent;
  border-color: rgba(108, 30, 44, 0.35);
}

.mehndi.is-solved .mehndi__hint {
  visibility: hidden;
}

/* ================= VENUE ================= */

.venue {
  position: relative;
  min-height: 80vh;
  min-height: 80svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.venue__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("images/hero-florals.jpg") center / cover no-repeat;
}

.venue__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 6, 9, 0.55), rgba(44, 11, 19, 0.82));
}

.venue__inner {
  padding: 4rem 1.5rem;
}

.venue h2 {
  font-size: clamp(2.6rem, 11vw, 4rem);
}

.venue__place {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.venue__note {
  max-width: 20rem;
  margin: 1.2rem auto 1.6rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ================= COUNTDOWN ================= */

.countdown {
  padding: 4.5rem 1.25rem;
  text-align: center;
  background:
    repeating-conic-gradient(from 0deg at 50% 120%, rgba(240, 195, 106, 0.05) 0deg 6deg, transparent 6deg 12deg),
    linear-gradient(180deg, #3c0f1b, var(--rosewood-deep));
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 420px;
  margin: 1rem auto 0;
}

.countdown__grid div {
  padding: 1rem 0.2rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(240, 195, 106, 0.3);
  background: rgba(13, 6, 9, 0.35);
}

.countdown__grid span {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-pale);
  font-variant-numeric: tabular-nums;
}

.countdown__grid span.is-tick {
  animation: tick 0.45s var(--ease-out);
}

.countdown__grid small {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown__note {
  margin-top: 1.1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}

/* ================= WISH LANTERN ================= */

.wish {
  padding: 4.5rem 1.25rem 4rem;
  background: radial-gradient(ellipse 120% 70% at 50% 0%, #2a0f22 0%, #0d0609 70%);
}

.wish__form {
  display: grid;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.wish__form input,
.wish__form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 16px;
  border-radius: 14px;
  border: 1px solid rgba(240, 195, 106, 0.35);
  background: rgba(248, 240, 227, 0.06);
  color: var(--ivory);
  outline: none;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}

.wish__form input:focus,
.wish__form textarea:focus {
  border-color: var(--gold-soft);
  background: rgba(248, 240, 227, 0.1);
}

::placeholder {
  color: rgba(248, 240, 227, 0.45);
}



.lantern {
  position: absolute;
  width: 0;
  height: 0;
  animation: rise var(--dur, 11s) cubic-bezier(0.3, 0.1, 0.4, 1) both;
}

.lantern__size {
  position: absolute;
  left: 0;
  top: 0;
  transform: scale(var(--s, 1));
  transform-origin: 0 0;
}

.lantern__sway {
  position: absolute;
  left: -32px;
  bottom: 0;
  animation: sway 3.2s ease-in-out infinite alternate;
}

.lantern__body {
  width: 64px;
  height: 80px;
  border-radius: 40% 40% 22% 22% / 30% 30% 20% 20%;
  background: radial-gradient(ellipse at 50% 70%, #fff3c4 0%, #ffbf5a 38%, #e0702e 75%, #a53a1e 100%);
  box-shadow: 0 0 30px 10px rgba(255, 170, 70, 0.45), 0 0 80px 30px rgba(255, 150, 60, 0.18);
}

.lantern__text {
  position: absolute;
  bottom: 92px;
  left: 50%;
  width: 220px;
  margin-left: -110px;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--gold-pale);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  animation: fadeOutLate var(--dur, 11s) linear forwards;
}

/* ================= FOOTER ================= */

.footer {
  padding: 3.5rem 1.25rem calc(var(--safe-bottom) + 3rem);
  text-align: center;
  background: var(--night);
  border-top: 1px solid rgba(240, 195, 106, 0.15);
}

.footer__names {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--gold-pale);
}

.footer__sub {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer__credit { margin-top: 28px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.footer__credit a { color: var(--gold-pale); text-decoration: underline; text-underline-offset: 4px; }
.footer__credit a:hover { color: var(--ivory); }
.welcome-credit { margin-top: 20px; font-family: "Outfit",system-ui,sans-serif; }


/* ================= TOAST ================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--safe-bottom) + 22px);
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-align: center;
  color: var(--ivory);
  background: rgba(30, 10, 16, 0.88);
  border: 1px solid rgba(240, 195, 106, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ================= DESKTOP ================= */

@media (min-width: 900px) {
  .cards {
    justify-content: center;
    overflow: visible;
    padding-inline: 2rem;
  }

  .card {
    flex: 0 0 320px;
  }

  .dots {
    display: none;
  }
}

/* ================= KEYFRAMES ================= */

@keyframes twinkle {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.9; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes flicker {
  0%, 100% { transform: rotate(-2deg) scaleY(1); }
  25% { transform: rotate(2deg) scaleY(1.06); }
  50% { transform: rotate(-1deg) scaleY(0.96); }
  75% { transform: rotate(1.5deg) scaleY(1.04); }
}

@keyframes flash {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3px, 1px); }
  40% { transform: translate(3px, -1px); }
  60% { transform: translate(-2px, 1px); }
  80% { transform: translate(2px, 0); }
}

@keyframes kenburns {
  from { transform: scale(1.08) translate(0, 0); }
  to { transform: scale(1.2) translate(-2%, -2%); }
}

@keyframes charIn {
  from { opacity: 0; transform: translateY(0.4em) rotate(-8deg) scale(0.9); }
  to { opacity: 1; transform: none; }
}

@keyframes up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

@keyframes ringFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}

@keyframes glint {
  0%, 70%, 100% { opacity: 0; scale: 0.4; }
  80% { opacity: 1; scale: 1.3; }
}

@keyframes nameFound {
  0% { scale: 1; }
  35% { scale: 1.9; }
  100% { scale: 1.35; }
}

@keyframes hintPulse {
  0%, 100% { opacity: 0; }
  30%, 70% { opacity: 1; }
}

@keyframes ripple {
  from { opacity: 1; scale: 0.15; }
  to { opacity: 0; scale: 1; }
}


@keyframes blink { 50% { opacity: 0; } }
@keyframes stripes { to { background-position: 22px 0, 0 0; } }
@keyframes meterShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px) rotate(-1deg); }
  75% { transform: translateX(4px) rotate(1deg); }
}
@keyframes giftIdle {
  0%, 100% { transform: rotate(0); }
  10% { transform: rotate(-3deg); }
  20% { transform: rotate(3deg); }
  30% { transform: rotate(0); }
}
@keyframes giftWiggle {
  0%, 100% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-6deg) scale(1.05); }
  60% { transform: rotate(5deg) scale(1.05); }
}
@keyframes bubblePop {
  0% { transform: scale(0.85); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes hintGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 195, 106, 0.0); }
  50% { box-shadow: 0 0 0 6px rgba(240, 195, 106, 0.18); }
}

@keyframes eq {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

@keyframes sealPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(240, 195, 106, 0.25), 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 -4px 8px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(240, 195, 106, 0.18), 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 -4px 8px rgba(0, 0, 0, 0.35); }
}

@keyframes swipeNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

@keyframes tapRipple {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes tapDot {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(0.7); }
}

@keyframes bubbleRise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: 0.8; }
  100% { transform: translateY(-340px) scale(0.6); opacity: 0; }
}

@keyframes flipPulse {
  0%, 100% { transform: scale(1); border-color: rgba(240, 195, 106, 0.45); }
  50% { transform: scale(1.05); border-color: rgba(255, 236, 190, 0.9); }
}

@keyframes haldiSplash {
  0% { filter: saturate(1); }
  35% { filter: saturate(1.6) hue-rotate(-8deg); }
  100% { filter: none; }
}

@keyframes peek {
  0%, 100% { transform: rotateY(0); }
  40% { transform: rotateY(-32deg); }
  70% { transform: rotateY(6deg); }
}

@keyframes sealTap {
  50% { transform: scale(0.9) rotate(-8deg); }
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes tick {
  from { transform: translateY(-30%); opacity: 0.2; }
  to { transform: none; opacity: 1; }
}

@keyframes rise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  6% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(-115vh) scale(0.45); opacity: 0; }
}

@keyframes sway {
  from { transform: translateX(-14px) rotate(-4deg); }
  to { transform: translateX(14px) rotate(4deg); }
}

@keyframes fadeOutLate {
  0%, 45% { opacity: 1; }
  70%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
}

/* Anusha & Vishwanath: bilingual invitation and complete family celebrations. */
html { overflow-x: clip; }
.events { overflow: hidden; }
[hidden] { display: none !important; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 5px; }
.language-switch { position: fixed; left: 12px; top: calc(var(--safe-top) + 12px); display: flex; padding: 4px; gap: 3px; z-index: 150; border: 1px solid rgba(240,195,106,.45); border-radius: 999px; background: rgba(20,8,12,.94); }
.language-switch button { padding: 8px 13px; min-height: 40px; border-radius: 999px; font-size: 14px; color: var(--ivory); font-weight: 500; }
.language-switch button[aria-pressed="true"] { background: var(--gold-pale); color: var(--rosewood-deep); }
.language-switch button[lang="kn"] { font-family: "Noto Sans Kannada",sans-serif; }
.intro__skip { top: calc(var(--safe-top) + 17px); min-height: 44px; }
.hero__inner { max-width: 42rem; padding-top: calc(var(--safe-top) + 6.5rem); }
.hero__eyebrow.prayer { font-size: .67rem; letter-spacing: .13em; margin-bottom: .6rem; }
.hero__lead { margin-top: 1.3rem; }
.hero__name { font-size: clamp(3.7rem,16vw,6.8rem); overflow-wrap: normal; }
.hero__reception { margin-top: .7rem; color: var(--gold-pale); font-size: .9rem; }
.hero__links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hero__links a { color: var(--gold-pale); text-decoration-thickness: 1px; text-underline-offset: 6px; font-size: .85rem; padding: 8px 0; }
.our-story { background: var(--ivory); color: var(--ink); padding: 5rem 1.5rem; }
.story-layout { display: grid; max-width: 1080px; margin: auto; align-items: center; gap: 2.5rem; }
.couple-art { margin: 0 auto; max-width: 440px; width: 100%; }
.couple-art img { width: 100%; height: auto; border-radius: 46% 46% 6px 6px; }
.story-copy { max-width: 520px; margin: auto; }
.story-copy .section-head { text-align: left; padding: 0; }
.story-copy h2 { color: var(--rosewood); }
.story-copy > p { font-size: 1rem; line-height: 1.85; margin: 1rem 0; }
.story-copy .story-sign { font-family: var(--font-script); color: var(--rosewood); font-size: 2rem; }
.families { background: var(--ivory-2); color: var(--rosewood); padding: 4rem 1.5rem; text-align: center; }
.family-grid { display: grid; max-width: 920px; margin: 2.5rem auto 1.5rem; gap: 2.5rem; }
.family-grid h3 { font: 500 1.6rem/1.4 var(--font-serif); max-width: 350px; margin: auto; }
.family-grid .eyebrow, .families .eyebrow, .story-copy .eyebrow { color: var(--rosewood); }
.family-welcome { max-width: 650px; margin: 2rem auto 0; line-height: 1.8; font-size: .9rem; }
.cards .card { height: 570px; min-height: 570px; max-width: 370px; }
.card__front-copy h3 { font-size: 2.7rem; line-height: 1.15; margin-bottom: .5rem; }
.card__front .card__when { line-height: 1.7; }
.card__back { padding: 2rem 1.5rem 1.4rem; }
.card__back h3 { font-size: 2rem; padding-top: .8rem; line-height: 1.2; }
.card__list { margin-top: 1.3rem; }
.card__list dd { font-size: 1rem; line-height: 1.5; }
.card__secret { font-size: 1rem; line-height: 1.5; margin-top: 1rem; }
.card__meta { line-height: 1.7; }
.card__flip { font-size: .72rem; }
.events .swipe-cue { max-width: 580px; margin: 0 auto 1.4rem; padding-inline: 1rem; line-height: 1.7; text-align: center; letter-spacing: .08em; }
.dots { gap: 9px; }
.m-name { font-size: 10px; }
.mehndi__bar button { min-height: 44px; }
.mehndi.is-solved .mehndi__hint { display: none; }
.venue { min-height: auto; background: var(--rosewood-deep); }
/* Venue cards use decorative florals, not a photograph suggesting the actual hall. */
.venue__bg { background-image: url("images/hero-florals.jpg"); }
.venue__inner { width: 100%; max-width: 1100px; margin: auto; }
.venue h2 { font-size: clamp(2.4rem,7vw,3.7rem); }
.venue-grid { display: grid; gap: 2rem; margin-top: 3rem; }
.venue-grid article { padding: 2rem 1.5rem; border: 1px solid rgba(240,195,106,.4); background: rgba(20,8,12,.75); border-radius: 20px; }
.venue-grid h3 { font: 500 2rem/1.3 var(--font-serif); margin-top: 1rem; }
.venue-grid .venue__place { font-size: .7rem; line-height: 1.8; }
.venue-grid .venue__note { max-width: 28rem; line-height: 1.65; }
.venue-grid .btn { font-size: .9rem; }
.wish__form label { color: var(--gold-pale); font-size: .85rem; margin-top: .25rem; }
.wish-disclosure { font-size: .78rem; line-height: 1.7; text-align: center; color: var(--muted); max-width: 420px; margin: 1.5rem auto 0; }
.wish__form textarea { scroll-margin-top: 110px; }
.stars, .events, .our-story, .venue { scroll-margin-top: 80px; }
html[lang="kn"] { --font-sans: "Noto Sans Kannada",sans-serif; --font-serif: "Noto Sans Kannada",sans-serif; --font-script: "Noto Sans Kannada",sans-serif; }
html[lang="kn"] body { line-height: 1.8; font-weight: 400; }
html[lang="kn"] .eyebrow, html[lang="kn"] .hero__month, html[lang="kn"] .card__when, html[lang="kn"] .hero__eyebrow, html[lang="kn"] .swipe-cue, html[lang="kn"] .intro__hint { letter-spacing: 0; }
html[lang="kn"] h2 { font-size: clamp(1.6rem,6vw,2.4rem); line-height: 1.65; }
html[lang="kn"] .hero__name { font-size: clamp(2.8rem,12vw,4.4rem); line-height: 1.65; }
html[lang="kn"] .hero__amp { font: 2rem/1.5 Georgia,serif; margin: 0; }
html[lang="kn"] .hero__names { margin-top: 1.3rem; }
html[lang="kn"] .hero__tagline { font-size: .95rem; line-height: 2; }
html[lang="kn"] .hero__eyebrow { font-size: .7rem; line-height: 1.8; }
html[lang="kn"] .card__front-copy h3 { font-size: 1.9rem; line-height: 1.8; }
html[lang="kn"] .card__back h3 { font-size: 1.5rem; line-height: 1.7; }
html[lang="kn"] .card__list dd { font-size: .84rem; line-height: 1.9; }
html[lang="kn"] .card__secret { font-size: .82rem; line-height: 1.9; }
html[lang="kn"] .card__flip { font-size: .7rem; line-height: 1.8; letter-spacing: 0; }
html[lang="kn"] .card__list dt { letter-spacing: 0; }
html[lang="kn"] .intro__line { font-size: clamp(1.3rem,5vw,1.8rem); line-height: 1.8; }
html[lang="kn"] .intro__line--guest { font-size: .85rem; }
html[lang="kn"] .footer__names { font-size: 1.9rem; line-height: 1.8; }
html[lang="kn"] .family-grid h3 { font-size: 1.2rem; line-height: 1.8; }
html[lang="kn"] .venue-grid h3 { font-size: 1.5rem; line-height: 1.7; }
@media (min-width: 760px) {
 .story-layout { grid-template-columns: 1fr 1fr; }
 .family-grid, .venue-grid { grid-template-columns: 1fr 1fr; }
 .family-grid > div + div { border-left: 1px solid rgba(90,26,38,.25); padding-left: 2rem; }
}
@media (min-width: 900px) {
 .cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 1140px; padding-inline: 1.5rem; margin: auto; gap: 24px; }
 .cards .card { width: 100%; max-width: none; }
 .cards .card:last-child { grid-column: 2; }
 .events .swipe-cue { display: none; }
}
@media (max-width: 360px) {
 .language-switch { left: 8px; }
 .language-switch button { padding-inline: 10px; }
 .hero__name { font-size: 15vw; }
 .cards .card { flex-basis: 88vw; height: 610px; }
 .card__back { padding-inline: 1.1rem; }
 html[lang="kn"] .card__back h3 { font-size: 1.3rem; }
}

/* Language welcome and readability refinements. */
body.awaiting-language .intro { visibility: hidden; }
body.awaiting-language .hero { visibility: hidden; }
.language-welcome { position: fixed; inset: 0; z-index: 180; overflow-y: auto; display: grid; place-items: center; padding: 28px 18px; background: radial-gradient(ellipse at 50% 25%,#4b1926 0%,#230c14 55%,#10070b 100%); }
.welcome-invitation { position: relative; width: min(100%,620px); padding: 38px 34px; text-align: center; border: 1px solid rgba(240,195,106,.5); border-radius: 190px 190px 18px 18px; background: rgba(31,10,18,.55); }
.welcome-invitation::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(240,195,106,.22); border-radius: inherit; pointer-events: none; }
.welcome-flower { color: var(--gold-soft); font: 44px/1 Georgia,serif; margin-bottom: 18px; }
.welcome-kicker { font-size: 14px; line-height: 1.6; letter-spacing: .12em; color: var(--gold-pale); }
.welcome-kannada { font-family: "Noto Sans Kannada",sans-serif; line-height: 1.9; }
.welcome-kicker.welcome-kannada { font-size: 14px; letter-spacing: 0; margin-top: 4px; }
.welcome-names { font: 400 clamp(48px,9vw,66px)/1.12 "Pinyon Script",cursive; margin: 24px 0 18px; color: var(--gold-pale); }
.welcome-names > span { display: block; font: italic 26px/1 "Cormorant Garamond",serif; margin: 6px 0; }
.welcome-date { font-size: 14px; letter-spacing: .08em; line-height: 1.8; color: var(--muted); }
.welcome-divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold-soft); margin: 22px 0; font-size: 22px; }
.welcome-divider span { width: 54px; height: 1px; background: rgba(240,195,106,.45); }
.welcome-invitation h2 { font: 500 24px/1.3 "Cormorant Garamond",serif; }
.welcome-prompt { font-size: 16px; margin-top: 6px; color: var(--gold-pale); }
.welcome-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.welcome-options button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100px; padding: 16px 10px; gap: 12px; background: var(--gold-pale); color: var(--rosewood-deep); border-radius: 12px; border: 1px solid var(--gold-soft); transition: background .2s, transform .2s; }
.welcome-options button:hover { background: #fff1cf; transform: translateY(-2px); }
.welcome-options button:focus-visible { outline: 3px solid var(--ivory); outline-offset: 5px; }
.welcome-option-title { font-size: 22px; line-height: 1.2; font-weight: 500; }
.welcome-option-title.kn-label { font-family: "Noto Sans Kannada",sans-serif; }
.welcome-option-sub { font-size: 14px; line-height: 1.7; }
.welcome-options button[lang="kn"] { font-family: "Noto Sans Kannada",sans-serif; }
.language-switch button { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-height: 44px; min-width: 76px; padding: 0 14px; font-size: 15px; line-height: 1; }
.language-switch button[lang="en"] { font-family: "Outfit",system-ui,sans-serif; }
.language-switch button[lang="en"] > span { line-height: 1; transform: none; }
.language-switch .kn-label { display: inline-block; transform: translateY(2px); line-height: 1; }
.monogram { display: inline-grid; grid-template-columns: 1em .7em 1em; align-items: center; justify-items: center; gap: .12em; font: 500 28px/1.25 "Cormorant Garamond",serif; white-space: nowrap; }
.monogram > span { display: inline-flex; align-items: center; justify-content: center; min-width: 0; width: 100%; }
.monogram .monogram-heart { font: 400 .67em/1 Georgia,serif; }
.seal { width: 84px; height: 84px; padding: 12px; gap: 0; }
.seal .monogram { font-size: 23px; }
.story-copy .story-sign { margin-top: 24px; text-align: left; }
.story-sign .monogram { font-size: 36px; gap: .22em; }
html[lang="kn"] .monogram { font-family: "Noto Sans Kannada",sans-serif; line-height: 1.6; }
html[lang="kn"] .seal .monogram { font-size: 20px; gap: .08em; }
html[lang="kn"] .story-sign .monogram { font-size: 30px; }
html[lang="kn"] .hero__amp { font: 400 1.3rem/1.8 "Noto Sans Kannada",sans-serif; margin: .1rem 0; color: var(--gold-soft); }
.hero__eyebrow.prayer { font-size: 14px; line-height: 1.7; letter-spacing: .035em; }
.hero__lead { font-size: 20px; }
.hero__month, .hero__reception, .hero__place { font-size: 16px; line-height: 1.7; }
.hero__month { letter-spacing: .15em; }
.seal__hint { font-size: 14px; letter-spacing: .12em; }
.hero__links a { font-size: 15px; }
.eyebrow { font-size: 14px; line-height: 1.8; letter-spacing: .18em; }
.section-head__sub, .stars__sub, .family-welcome { font-size: 16px; line-height: 1.8; }
.card__when { font-size: 14px; letter-spacing: .08em; }
.card__meta { font-size: 19px; }
.card__flip { font-size: 14px; letter-spacing: .04em; line-height: 1.6; }
.card__list dt { font-size: 14px; line-height: 1.6; }
.card__list dd { font-size: 17px; line-height: 1.65; }
.card__secret { font-size: 17px; line-height: 1.65; }
.cards .card { height: 670px; min-height: 670px; }
.card__back { overflow-y: auto; }
.events .swipe-cue { font-size: 14px; }
.venue-grid .venue__place, .venue__address { font-size: 15px; line-height: 1.8; letter-spacing: .035em; }
.venue__address { margin: 1rem auto; color: var(--ivory); max-width: 30rem; }
.countdown__grid small { font-size: 14px; letter-spacing: .04em; }
.wish__form label { font-size: 16px; }
.wish-disclosure, .footer__sub { font-size: 14px; line-height: 1.8; }
.sound { height: 44px; font-size: 14px; letter-spacing: .02em; }
.intro__skip, .intro__hint { font-size: 14px; }
.intro__line--guest, html[lang="kn"] .intro__line--guest { font-size: 14px; }
html[lang="kn"] .hero__eyebrow { font-size: 14px; line-height: 1.9; }
html[lang="kn"] .hero__tagline { font-size: 16px; }
html[lang="kn"] .card__when { font-size: 14px; }
html[lang="kn"] .card__list dd, html[lang="kn"] .card__secret { font-size: 16px; line-height: 1.85; }
html[lang="kn"] .card__flip { font-size: 14px; line-height: 1.8; }
html[lang="kn"] .cards .card { height: 730px; min-height: 730px; }
@media (max-width: 480px) {
 .welcome-invitation { padding: 26px 18px; border-radius: 140px 140px 16px 16px; }
 .welcome-kicker { font-size: 14px; letter-spacing: .08em; }
 .welcome-date { font-size: 14px; letter-spacing: .04em; }
 .welcome-option-title { font-size: 20px; }
 .welcome-option-sub { font-size: 14px; }
 .welcome-options { gap: 10px; }
 .hero__inner { padding-top: calc(var(--safe-top) + 6.7rem); }
 .hero__name { font-size: clamp(3.7rem,15.5vw,5.5rem); }
 .hero__eyebrow.prayer { letter-spacing: 0; }
}
