:root {
  --ink: #3f2c28;
  --red: #dd765f;
  --red-deep: #a94c40;
  --saffron: #efb64f;
  --gold: #b98945;
  --blush: #f5cec5;
  --cream: #faefdf;
  --paper: #fffaf3;
  --olive: #dfece5;
  --teal: #226d65;
  --border: rgba(75, 43, 35, 0.24);
  --wedding: "Cormorant Garamond", "Noto Serif Oriya", Georgia, serif;
  --display: "Bodoni Moda", "Noto Serif Oriya", Georgia, serif;
  --serif: "Newsreader", "Noto Serif Oriya", Georgia, serif;
  --sans: "Fustat", Arial, sans-serif;
  --shadow: 0 24px 70px rgba(106, 66, 49, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

body.site-opening {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

main {
  display: flex;
  flex-direction: column;
}

.hero {
  order: 0;
}

.intro {
  order: 1;
}

.events {
  order: 2;
}

.travel {
  order: 3;
}

.rsvp {
  order: 4;
}

.thankyou {
  order: 5;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: .8rem 1rem;
  color: var(--paper);
  background: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.opening-curtain {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100dvh;
  padding: 1.5rem;
  overflow: hidden;
  border: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 250, 243, .22), rgba(245, 206, 197, .34)),
    url("assets/saura-wedding-procession-couple.jpg") center / cover no-repeat;
  cursor: pointer;
  transition: translate 1.35s cubic-bezier(.76, 0, .24, 1), visibility 0s 1.35s;
}

.opening-curtain::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 250, 243, .9) 0 10%, rgba(255, 250, 243, .5) 36%, rgba(255, 250, 243, .12) 70%);
  content: "";
}

.opening-curtain.is-open {
  visibility: hidden;
  translate: 0 -105%;
}

.curtain-content {
  position: relative;
  display: grid;
  place-items: center;
  gap: 1rem;
}

.curtain-wheel {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(7rem, 22vw, 10rem);
  aspect-ratio: 1;
  border: 1px solid rgba(185, 137, 69, .75);
  border-radius: 50%;
  background: radial-gradient(circle, var(--ink) 0 25%, var(--paper) 26% 38%, rgba(255, 250, 243, .78) 39% 100%);
  box-shadow: 0 1.5rem 5rem rgba(63, 44, 40, .18), inset 0 0 0 .55rem rgba(185, 137, 69, .2);
}

.curtain-wheel::before {
  position: absolute;
  inset: 5%;
  border: 1px dotted var(--gold);
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(185, 137, 69, .82) 0deg 2deg, transparent 2deg 22.5deg);
  -webkit-mask: radial-gradient(circle, transparent 0 52%, #000 53% 100%);
  mask: radial-gradient(circle, transparent 0 52%, #000 53% 100%);
  content: "";
  animation: curtain-wheel-turn 8s linear infinite;
}

.curtain-wheel span {
  position: relative;
  z-index: 1;
  color: var(--paper);
  font: 600 1.25rem/1 var(--wedding);
}

.curtain-hint {
  padding: .55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 250, 243, .78);
  font: 600 .64rem/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}

@keyframes curtain-wheel-turn {
  to {
    rotate: 360deg;
  }
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 1.1rem 4vw;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}

.site-header.scrolled {
  padding-block: .7rem;
  background: rgba(251, 247, 239, .91);
  box-shadow: 0 8px 30px rgba(66, 39, 32, .07);
  backdrop-filter: blur(14px);
}

.monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  text-decoration: none;
  line-height: 0;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), filter .3s ease;
}

.monogram:hover {
  transform: scale(1.08) translateY(-1px);
  filter: drop-shadow(0 3px 10px rgba(185, 137, 69, .38));
}

.monogram-img {
  width: auto;
  height: clamp(2.2rem, 3.2vw, 2.85rem);
  max-width: 5.6rem;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  border-radius: 0;
  filter: drop-shadow(0 1px 3px rgba(66, 39, 32, .18));
  transition: filter .3s ease;
}

.monogram:hover .monogram-img {
  filter: drop-shadow(0 2px 8px rgba(185, 137, 69, .55));
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  position: relative;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -.35rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transition: transform .25s ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
}

.language-toggle {
  display: flex;
  gap: .35rem;
  padding: .4rem;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: 500 .75rem/1 var(--sans);
}

.language-toggle span:not(.active) {
  opacity: .42;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-height: 3.4rem;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 2.55rem;
  padding: .6rem 1.2rem;
}

.button-dark {
  color: var(--paper);
  background: var(--red-deep);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 100svh;
  padding: 6.2rem 5vw 4.5rem;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(rgba(103, 62, 45, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 62, 45, .05) 1px, transparent 1px),
    var(--cream);
  background-size: 48px 48px;
}

.hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, transparent 0 28%, rgba(255, 255, 255, .18) 28.3% 28.6%, transparent 29%);
  content: "";
}

.sun-disc {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(47vw, 37.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blush);
  transform: translate(-50%, -50%);
}

.gold-orbit {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(54vw, 41rem);
  aspect-ratio: 1;
  border: 1px solid rgba(185, 137, 69, .32);
  border-radius: 50%;
  box-shadow: inset 0 0 0 .45rem rgba(255, 250, 243, .34), inset 0 0 0 .5rem rgba(185, 137, 69, .13);
  pointer-events: none;
  translate: -50% -50%;
  animation: orbit-spin 48s linear infinite, orbit-breathe 6s ease-in-out infinite alternate;
}

.gold-orbit::before,
.gold-orbit::after {
  position: absolute;
  border: 1px dashed rgba(185, 137, 69, .18);
  border-radius: 50%;
  content: "";
}

.gold-orbit::before {
  inset: 2.7%;
  background: repeating-conic-gradient(from 0deg, rgba(185, 137, 69, .2) 0deg .8deg, transparent .8deg 22.5deg);
  box-shadow: inset 0 0 0 .42rem rgba(255, 250, 243, .38), inset 0 0 0 .48rem rgba(185, 137, 69, .12);
  -webkit-mask: radial-gradient(circle, transparent 0 70%, #000 71% 100%);
  mask: radial-gradient(circle, transparent 0 70%, #000 71% 100%);
}

.gold-orbit::after {
  inset: 6%;
  border-style: dotted;
}

.gold-monogram {
  position: absolute;
  z-index: 1;
  top: -2.65rem;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(5.3rem, 8vw, 7rem);
  aspect-ratio: 1;
  border: 1px solid rgba(185, 137, 69, .75);
  border-radius: 50%;
  color: var(--gold);
  background:
    repeating-conic-gradient(from 0deg, transparent 0deg 8deg, rgba(185, 137, 69, .7) 9deg 11deg, transparent 12deg 20deg),
    radial-gradient(circle, rgba(255, 250, 243, .94) 0 36%, transparent 37%);
  box-shadow: inset 0 0 0 .45rem rgba(255, 250, 243, .7), inset 0 0 0 .52rem rgba(185, 137, 69, .42), 0 1rem 3rem rgba(128, 84, 49, .1);
  opacity: .72;
  pointer-events: none;
  translate: -50% 0;
}

.gold-monogram::before {
  position: absolute;
  inset: 13%;
  border: 1px dashed currentColor;
  border-radius: 50%;
  content: "";
}

.gold-monogram::after {
  position: absolute;
  inset: 27%;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

.gold-monogram span {
  position: relative;
  z-index: 2;
  color: var(--paper);
  font: 600 clamp(1rem, 1.7vw, 1.35rem)/1 var(--wedding);
  letter-spacing: -.04em;
  animation: monogram-counterspin 48s linear infinite reverse;
}

.gold-date {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(2.8rem, 4.2vw, 3.6rem);
  aspect-ratio: 1;
  border: 1px solid rgba(185, 137, 69, .74);
  border-radius: 50%;
  color: var(--gold);
  background:
    radial-gradient(circle, rgba(255, 250, 243, .96) 0 34%, rgba(245, 206, 197, .5) 35% 47%, transparent 48%),
    repeating-conic-gradient(transparent 0deg 13deg, rgba(185, 137, 69, .62) 14deg 16deg, transparent 17deg 30deg),
    var(--paper);
  box-shadow: inset 0 0 0 .28rem rgba(255, 250, 243, .9), inset 0 0 0 .34rem rgba(185, 137, 69, .4), 0 .4rem 1rem rgba(128, 84, 49, .1);
  opacity: .84;
}

.gold-date::before {
  position: absolute;
  inset: 19%;
  border: 1px dotted currentColor;
  border-radius: 50%;
  content: "";
}

.gold-date span {
  position: relative;
  z-index: 1;
  color: #ba863b;
  text-shadow: 0 0 8px rgba(223, 186, 115, 0.85), 0 0 16px rgba(255, 240, 200, 0.65);
  font: 700 0.95rem/1 var(--wedding);
  animation: monogram-counterspin 48s linear infinite reverse, starOrbitPulse 2.8s ease-in-out infinite alternate;
}

@keyframes starOrbitPulse {
  from {
    transform: scale(0.9);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.7));
  }

  to {
    transform: scale(1.25);
    filter: drop-shadow(0 0 8px rgba(223, 186, 115, 0.95)) drop-shadow(0 0 14px rgba(255, 235, 170, 0.8));
  }
}

.gold-date-start {
  top: 58%;
  left: -1.2rem;
}

.gold-date-end {
  top: 32%;
  right: -1.2rem;
}

@keyframes monogram-counterspin {
  to {
    rotate: 360deg;
  }
}

@keyframes orbit-spin {
  to {
    rotate: 360deg;
  }
}

@keyframes orbit-breathe {
  from {
    scale: .99;
  }

  to {
    scale: 1.015;
  }
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(100%, 62rem);
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font: 600 clamp(4.5rem, 10.5vw, 8.5rem)/.69 var(--wedding);
  letter-spacing: -.065em;
  -webkit-text-stroke: .3px currentColor;
}

.hero h1 span {
  font-weight: 600;
}

.hero h1 span:last-child {
  color: var(--teal);
  font-family: var(--wedding);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.075em;
  font-feature-settings: "swsh" 1;
}

.hero h1 span:last-child::first-letter {
  font-size: 1.08em;
}

.hero h1 i {
  margin: .08em 0 .04em;
  color: var(--red);
  font-size: .45em;
  font-weight: 500;
  line-height: .75;
}

.hero-date {
  max-width: 20rem;
  margin: 1.15rem auto 1.15rem;
  padding-inline: .75rem;
  font: 600 clamp(.76rem, 1.15vw, .92rem)/1.4 var(--sans);
  letter-spacing: .1em;
  text-wrap: balance;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .8rem;
  font-weight: 600;
  text-underline-offset: .35rem;
}

.text-link b {
  color: var(--red);
  font-size: 1.1rem;
  animation: drift 1.8s ease-in-out infinite;
}

@keyframes drift {
  50% {
    transform: translateY(5px);
  }
}

/* While curtain is closed, keep photo tiles dormant below viewport */
body.site-opening .photo-tile {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(var(--start-x, 0), var(--start-y, 80vh), 0) scale(0.6) rotate(0deg);
  pointer-events: none;
  animation: none !important;
}

.photo-tile {
  --rotation: 0deg;
  --start-x: 0px;
  --start-y: 80vh;
  --delay: 0s;
  position: absolute;
  z-index: 4;
  width: clamp(7rem, 12vw, 10.5rem);
  padding: .45rem .45rem .9rem;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  opacity: 1;
  transform: rotate(var(--rotation));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
  will-change: transform;
}

body.curtain-revealed .photo-tile,
body:not(.site-opening) .photo-tile {
  animation:
    spring-up 0.95s cubic-bezier(.2, .9, .28, 1.15) var(--delay) backwards,
    photo-drift 5s ease-in-out calc(var(--delay) + 0.95s) infinite alternate;
}

.photo-tile img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(.78) sepia(.08);
}

.photo-tile span {
  display: block;
  padding-top: .55rem;
  font: italic 500 .8rem/1 var(--serif);
}

.photo-tile:hover,
.photo-tile:focus-visible {
  z-index: 5;
  box-shadow: 0 30px 80px rgba(73, 27, 19, .26);
  transform: rotate(0deg) scale(1.06);
  animation-play-state: paused;
}

.tile-one {
  --rotation: -7deg;
  --start-x: -4vw;
  --start-y: 85vh;
  --delay: .35s;
  top: 16%;
  left: 6%;
}

.tile-two {
  --rotation: 8deg;
  --start-x: 5vw;
  --start-y: 70vh;
  --delay: .18s;
  right: 5%;
  bottom: 12%;
}

.tile-three {
  --rotation: 3deg;
  --start-x: 6vw;
  --start-y: 90vh;
  --delay: .5s;
  top: 17%;
  right: 15%;
  width: clamp(5.5rem, 8vw, 7.5rem);
}

@keyframes spring-up {
  0% {
    opacity: 0;
    transform: translate3d(var(--start-x, 0), var(--start-y, 80vh), 0) scale(0.55) rotate(calc(var(--rotation) * 2.2));
    box-shadow: 0 45px 90px rgba(73, 27, 19, .35);
  }

  62% {
    opacity: 1;
  }

  82% {
    transform: translate3d(0, -12px, 0) scale(1.03) rotate(calc(var(--rotation) * 0.9));
    box-shadow: 0 16px 45px rgba(73, 27, 19, .2);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(var(--rotation));
    box-shadow: var(--shadow);
  }
}

@keyframes photo-drift {
  from {
    translate: 0 -4px;
  }

  to {
    translate: 0 9px;
  }
}

.hero-note {
  position: absolute;
  right: 4vw;
  bottom: 2.5rem;
  margin: 0;
  font: italic 500 .85rem/1 var(--serif);
}

.corner-flower {
  position: absolute;
  bottom: 2rem;
  color: var(--red);
  font-size: 1.4rem;
}

.corner-flower-left {
  left: 4vw;
}

.corner-flower-right {
  top: 8rem;
  right: 4vw;
  bottom: auto;
}

.section-pad {
  padding: clamp(5rem, 10vw, 10rem) 6vw;
}

.intro {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 60% 50% at 90% 45%, rgba(245, 206, 197, 0.42), transparent 70%),
    radial-gradient(ellipse 50% 60% at 8% 25%, rgba(254, 243, 226, 0.9), transparent 60%),
    var(--paper);
}

.intro-container {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: center;
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

/* Header Lockup Row (✦ N & K · A NOTE FROM US) */
.intro-header-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(185, 137, 69, .32);
  background: rgba(255, 250, 243, .9);
  color: var(--red);
  font: 500 .84rem/1 var(--serif);
  letter-spacing: .08em;
  box-shadow: 0 4px 14px rgba(93, 57, 45, .06);
}

.intro-badge i {
  font-family: var(--serif);
  font-style: italic;
}

.badge-dot {
  font-size: .62rem;
  color: var(--gold);
}

.intro-header-sep {
  color: var(--gold);
  font-size: 1rem;
  opacity: 0.7;
  line-height: 1;
}

.intro-copy .eyebrow {
  margin: 0 0 0.85rem;
  color: var(--red-deep);
  font-size: clamp(.72rem, 1vw, .82rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.2;
}

.intro-copy h2,
.section-heading h2,
.travel h2,
.rsvp h2 {
  margin: 0;
  font: 500 clamp(2.8rem, 5.2vw, 5rem)/.98 var(--display);
  letter-spacing: -.045em;
  -webkit-text-stroke: .15px currentColor;
}

.intro-copy>p:not(.eyebrow),
.travel-copy>p:last-child {
  max-width: 35rem;
  margin: 1.35rem 0 1.85rem;
  font: 400 clamp(0.98rem, 1.22vw, 1.14rem)/1.8 var(--sans);
  color: var(--ink);
}

.intro-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.intro-arch-frame {
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 27.5rem;
  padding: .65rem .65rem 1.05rem;
  border-radius: min(18rem, 42vw) min(18rem, 42vw) 2.2rem 2.2rem;
  background: linear-gradient(170deg, #fffdfa 0%, #fbf4e8 100%);
  border: 1px solid rgba(185, 137, 69, .32);
  box-shadow:
    0 28px 75px rgba(63, 44, 40, .12),
    0 2px 12px rgba(185, 137, 69, .08);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease;
}

.intro-arch-frame:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 40px 105px rgba(63, 44, 40, .18),
    0 4px 16px rgba(185, 137, 69, .14);
}

.intro-arch-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3.5 / 4.65;
  object-fit: cover;
  border-radius: min(17.4rem, 40vw) min(17.4rem, 40vw) 1.5rem 1.5rem;
  filter: saturate(.94);
}

.intro-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: 0.85rem;
  padding: .48rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(185, 137, 69, .32);
  background: rgba(255, 252, 248, .96);
  box-shadow: 0 4px 16px rgba(63, 44, 40, .06);
  font: italic 500 clamp(0.82rem, 1.05vw, 0.9rem)/1.3 var(--serif);
  color: var(--ink);
  white-space: nowrap;
  max-width: 95%;
  text-align: center;
  transition: all 0.3s ease;
}

.intro-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(63, 44, 40, .1);
  border-color: var(--gold);
}

.tag-flower {
  color: var(--gold);
  font-size: .95rem;
}

.events {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 15%, rgba(245, 206, 197, .72), transparent 27rem),
    linear-gradient(145deg, #fffaf3 0%, #f8ead5 58%, #f5ddbe 100%);
}

.section-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 4vw;
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading .eyebrow {
  align-self: start;
  color: var(--red-deep);
}

.section-heading h2 {
  max-width: 12ch;
}

.section-heading>p:last-child {
  margin: 0;
  line-height: 1.7;
}

.events .section-heading {
  grid-template-columns: minmax(0, 1fr) auto;
}

.events .section-heading h2 {
  max-width: none;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
}

.events .section-heading>p:last-child {
  max-width: 24rem;
  font-size: clamp(.72rem, 1vw, .88rem);
}

.event-procession {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.55) 10%, rgba(0, 0, 0, 0.75) 25%, rgba(0, 0, 0, 0.6) 88%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.55) 10%, rgba(0, 0, 0, 0.75) 25%, rgba(0, 0, 0, 0.6) 88%, rgba(0, 0, 0, 0) 100%);
}

.event-procession img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.24;
  filter: saturate(0.85) contrast(0.95);
  mix-blend-mode: multiply;
}

/* --- Events Section Layout (Compact) --- */
.events {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  scroll-margin-top: 2rem;
}

.events .section-heading {
  margin-bottom: 1.5rem;
}

/* --- Timeline Filter Tabs --- */
.timeline-tabs {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.timeline-tab {
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(185, 137, 69, 0.3);
  background: rgba(255, 250, 243, 0.9);
  color: var(--ink);
  font: 500 0.82rem/1 var(--sans);
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(63, 44, 40, 0.05);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline-tab:hover {
  border-color: var(--red);
  color: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(63, 44, 40, 0.1);
}

.timeline-tab.active {
  background: var(--red-deep);
  color: var(--paper);
  border-color: var(--red-deep);
  box-shadow: 0 4px 16px rgba(138, 28, 44, 0.32);
}

/* --- Timeline Schedule Container --- */
.timeline-schedule {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.4rem 1.15rem 1.7rem;
  border-radius: 1.8rem;
  /* Consistent background across all days */
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(255, 248, 242, 0.95), transparent 75%),
    linear-gradient(170deg, #fffcf8 0%, #faf3eb 50%, #f6ebe0 100%);
  border: 1px solid rgba(185, 137, 69, 0.28);
  box-shadow: 0 1.2rem 3rem rgba(101, 61, 44, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  /* Default scrollbar colors */
  --stem-base: rgba(200, 50, 75, 0.18);
  --stem-active: linear-gradient(180deg, #f43f5e 0%, #be123c 100%);
  --stem-glow: 0 0 10px rgba(244, 63, 94, 0.55);
  --active-accent: #be123c;
}

/* --- Scroll Bar Colors per Day --- */
/* Day 1: Engagement / Sangeet - Upbeat Rose Gold & Ruby Wine Glow */
.timeline-schedule[data-theme="day1"] {
  --stem-base: rgba(220, 50, 80, 0.2);
  --stem-active: linear-gradient(180deg, #fb7185 0%, #e11d48 50%, #9f1239 100%);
  --stem-glow: 0 0 12px rgba(225, 29, 72, 0.6);
  --active-accent: #9f1239;
}

/* Day 2: Haldi - Vibrant Turmeric Yellow & Golden Marigold Glow */
.timeline-schedule[data-theme="day2"] {
  --stem-base: rgba(217, 140, 10, 0.22);
  --stem-active: linear-gradient(180deg, #fde047 0%, #f59e0b 50%, #b45309 100%);
  --stem-glow: 0 0 12px rgba(245, 158, 11, 0.7);
  --active-accent: #b45309;
}

/* Day 3: Wedding & Reception - Auspicious Sindoor Red & Temple Gold */
.timeline-schedule[data-theme="day3"] {
  --stem-base: rgba(168, 27, 48, 0.2);
  --stem-active: linear-gradient(180deg, #ef4444 0%, #b91c1c 50%, #7f1d1d 100%);
  --stem-glow: 0 0 12px rgba(185, 28, 28, 0.6);
  --active-accent: #7f1d1d;
}

/* Calligraphic Banner */
.timeline-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  text-align: center;
}

.timeline-banner h3 {
  margin: 0;
  font: italic 500 clamp(1.4rem, 2.4vw, 1.85rem)/1 var(--wedding);
  color: var(--red-deep);
  letter-spacing: -0.01em;
}

.banner-flourish {
  font-size: 1.25rem;
  color: var(--gold);
  opacity: 0.85;
}

/* Timeline Stem & Wrapper */
.timeline-wrapper {
  position: relative;
  padding: 0.35rem 0;
}

/* Vertical Central Stem Line (Scroll Bar Track) */
.timeline-stem {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2.5px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--stem-base);
  z-index: 1;
  transition: background 0.4s ease;
}

.timeline-stem-progress {
  width: 100%;
  height: 0%;
  border-radius: 999px;
  background: var(--stem-active);
  box-shadow: var(--stem-glow);
  will-change: height;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Multi-Themed Scroll Marker (Hardware Accelerated GPU Motion) */
.timeline-scroll-marker {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 5;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
  pointer-events: none;
}

.timeline-scroll-marker .marker-icon {
  display: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  animation: marker-breathe 4s ease-in-out infinite alternate;
}

.timeline-scroll-marker .marker-icon.active {
  display: block;
}

@keyframes marker-breathe {
  0% {
    transform: scale(0.96) rotate(-2deg);
  }

  100% {
    transform: scale(1.05) rotate(3deg);
  }
}

/* --- Day Block & Headers --- */
.timeline-day-block {
  margin-bottom: 1.5rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.timeline-day-block.is-hidden {
  display: none;
}

.timeline-day-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.96);
  border: 1px solid rgba(185, 137, 69, 0.28);
  box-shadow: 0 4px 14px rgba(63, 44, 40, 0.05);
}

.day-event-headline {
  margin: 0;
  font: 600 clamp(0.98rem, 2.6vw, 1.18rem)/1.2 var(--serif);
  color: var(--red-deep);
  letter-spacing: -0.01em;
}

.day-event-headline i {
  font-style: italic;
  font-family: var(--wedding);
  color: var(--gold);
}

.day-venue-featured {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 248, 243, 0.98), rgba(253, 239, 232, 0.98));
  border: 1px solid rgba(185, 45, 60, 0.3);
  font: 600 0.76rem/1 var(--sans);
  color: var(--red-deep);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(185, 45, 60, 0.08);
  transition: all 0.25s ease;
}

.day-venue-featured:hover {
  background: var(--red-deep);
  color: #fff;
  border-color: var(--red-deep);
  box-shadow: 0 4px 12px rgba(185, 45, 60, 0.25);
  transform: translateY(-1px);
}

.day-venue-featured .venue-pin-icon {
  display: grid;
  place-items: center;
  width: 1.15rem;
  aspect-ratio: 1;
}

.day-venue-featured .venue-pin-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.day-venue-featured .venue-arrow {
  font-size: 0.8rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.day-venue-featured:hover .venue-arrow {
  transform: translate(1px, -1px);
  opacity: 1;
}

.day-venue-pill:hover .venue-icon {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.2);
}

/* --- Timeline Items (Mobile-First 3-Column Linear Grid) --- */
.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-item {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  align-items: center;
  min-height: 2.85rem;
  margin: 0.3rem 0;
  /* Scroll Pop-In animation */
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.timeline-item.pop-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Time (Column 1): Left-aligned for effortless vertical scanning */
.timeline-time {
  text-align: left;
  width: 100%;
  padding-left: clamp(0.75rem, 4vw, 2.2rem);
  padding-right: 0.35rem;
  font: 500 clamp(1.02rem, 2.5vw, 1.22rem)/1.15 var(--wedding);
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Diamond Node (Column 2): Centered on vertical line */
.timeline-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  z-index: 3;
}

.diamond-marker {
  display: inline-block;
  color: var(--gold);
  font-size: 0.72rem;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s ease, text-shadow 0.3s ease;
}

/* Event Details (Column 3): Left-aligned starting from vertical line */
.timeline-details {
  text-align: left;
  width: 100%;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.timeline-event-name {
  font: 500 clamp(0.96rem, 2.3vw, 1.15rem)/1.2 var(--serif);
  color: var(--ink);
  transition: color 0.3s ease;
}

/* Active Highlight State */
.timeline-item.active-item .timeline-time {
  color: var(--active-accent);
  font-weight: 600;
  transform: scale(1.04);
}

.timeline-item.active-item .timeline-event-name {
  color: var(--active-accent);
  font-weight: 600;
}

.timeline-item.active-item .diamond-marker {
  color: var(--active-accent);
  transform: scale(1.28) rotate(45deg);
  text-shadow: var(--stem-glow);
}

/* Venue Icon Common Style */
.venue-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.5rem;
  aspect-ratio: 1;
  margin-left: 0.35rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--red-deep);
  background: rgba(255, 250, 243, .62);
  transition: transform .2s ease, background .2s ease;
}

.venue-icon svg {
  width: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

/* Responsive adjustments for mobile */
@media (max-width: 540px) {
  .timeline-schedule {
    padding: 1.15rem 0.7rem 1.45rem;
  }

  .timeline-time {
    padding-left: 0.65rem;
    padding-right: 0.25rem;
    font-size: 0.98rem;
  }

  .timeline-details {
    padding-left: 0.85rem;
  }

  .timeline-event-name {
    font-size: 0.92rem;
  }

  .timeline-item {
    min-height: 2.7rem;
    margin: 0.25rem 0;
  }

  .day-venue-pill span:first-child {
    display: none;
  }

  .timeline-attire-pill {
    font-size: 0.74rem;
    padding: 0.2rem 0.55rem;
  }
}

.travel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 9vw;
  color: var(--ink);
  background: var(--olive);
}

.travel-copy .eyebrow {
  color: var(--red-deep);
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(63, 44, 40, .18);
  border-left: 1px solid rgba(63, 44, 40, .18);
}

.travel-grid>div {
  min-height: 11rem;
  padding: 1.5rem;
  border-right: 1px solid rgba(63, 44, 40, .18);
  border-bottom: 1px solid rgba(63, 44, 40, .18);
  transition: background .3s ease;
}

.travel-grid>div:hover {
  background: rgba(255, 255, 255, .15);
}

.travel-grid span {
  display: inline-block;
  margin-bottom: 2.8rem;
  color: var(--red-deep);
  font: 400 1.8rem/1 var(--serif);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.travel-grid>div:hover span {
  transform: translateY(-5px) scale(1.12);
}

.travel-grid strong {
  display: block;
  margin-bottom: .75rem;
  font: 500 1.6rem/1 var(--display);
}

.travel-grid p {
  margin: 0;
  color: rgba(63, 44, 40, .7);
  font-size: .88rem;
  line-height: 1.6;
}

.rsvp {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 90vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(239, 182, 79, .18), transparent 20rem),
    radial-gradient(circle at 90% 80%, rgba(221, 118, 95, .16), transparent 24rem),
    #fffaf3;
  text-align: center;
  isolation: isolate;
}

.rsvp::before {
  position: absolute;
  z-index: -1;
  inset: 1.5rem;
  border: 1px solid rgba(185, 137, 69, .3);
  border-radius: 50% 50% 0 0 / 25% 25% 0 0;
  content: "";
}

.rsvp-ornament {
  margin-bottom: 2rem;
  color: var(--red);
  font-size: 2.5rem;
  display: inline-block;
  animation: ornament-pulse 5.2s ease-in-out infinite alternate;
}

@keyframes ornament-pulse {
  from {
    transform: scale(1) rotate(-4deg);
    opacity: .88;
  }

  to {
    transform: scale(1.09) rotate(6deg);
    opacity: 1;
  }
}

.rsvp h2 {
  color: var(--teal);
  font-style: italic;
}

.rsvp h2 {
  margin-bottom: 1.6rem;
}

.rsvp-lead {
  max-width: 33rem;
  margin: 0 0 2.2rem;
  color: rgba(63, 44, 40, .68);
  line-height: 1.7;
}

.button-light {
  color: #fff;
  background: var(--red);
  box-shadow: 0 .8rem 2rem rgba(196, 87, 70, .2);
}

.form-note {
  margin: .9rem 0 0;
  color: rgba(63, 44, 40, .48);
  font-size: .7rem;
}

.rsvp-wrapper {
  position: relative;
  width: min(52rem, 100%);
  margin-top: .8rem;
}

.rsvp-form[hidden],
.rsvp-success-card[hidden],
[hidden] {
  display: none !important;
}

.rsvp-form {
  width: 100%;
  margin-top: 0;
  padding: clamp(1rem, 2.5vw, 1.8rem);
  border: 1px solid rgba(133, 91, 62, .12);
  border-radius: 2rem;
  background: rgba(249, 239, 223, .8);
  box-shadow: 0 2rem 5rem rgba(100, 66, 47, .1);
  transition: opacity .45s cubic-bezier(.4, 0, .2, 1), transform .45s cubic-bezier(.4, 0, .2, 1), filter .4s ease;
}

.rsvp-form.is-closing {
  opacity: 0;
  transform: scale(.93) translateY(24px);
  filter: blur(6px);
  pointer-events: none;
}

.rsvp-form.is-reopening {
  animation: form-reopen .45s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes form-reopen {
  from {
    opacity: 0;
    transform: scale(.94) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin: 0;
}

.field>span,
.field legend {
  color: rgba(63, 44, 40, .68);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.field small {
  color: rgba(63, 44, 40, .42);
  font-size: inherit;
}

.field input[type="text"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 3.6rem;
  padding: .85rem 1rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  outline: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, .88);
  font: 400 1rem/1.4 var(--sans);
  transition: border-color .2s ease, background .2s ease;
}

.phone-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 3.6rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .88);
  border: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
  overflow: hidden;
}

.phone-input-group:focus-within {
  border-color: var(--red);
  background: #fff;
}

.field input.has-error,
.phone-input-group.has-error {
  border-color: var(--red) !important;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(196, 87, 70, .22);
}

.phone-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .95rem;
  font: 600 .98rem/1 var(--sans);
  color: var(--red-deep);
  background: rgba(185, 137, 69, .1);
  border-right: 1px solid rgba(63, 44, 40, .12);
  user-select: none;
}

.phone-input-group input[type="tel"] {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  padding: .85rem 1rem;
  border-radius: 0;
  letter-spacing: .06em;
}

.phone-input-group input[type="tel"]:focus {
  border: 0 !important;
  outline: 0 !important;
}

.field textarea {
  resize: vertical;
}

.field select {
  color-scheme: light;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(63, 44, 40, .35);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  background: #fff;
}

.field-events,
.field-meal,
.field-transport {
  padding: 0;
  border: 0;
}

.field-events,
.field-transport {
  grid-column: 1 / -1;
}

.field-events legend,
.field-meal legend,
.field-transport legend {
  margin-bottom: .75rem;
}

.field-events label,
.field-meal label {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 1.2rem .65rem 0;
  color: rgba(63, 44, 40, .86);
  cursor: pointer;
  font-size: .86rem;
}

.field input[type="checkbox"],
.field input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--red);
}

.field-message {
  grid-column: 2;
  grid-row: span 2;
}

/* Transportation Grid */
.transport-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
  width: 100%;
}

.transport-option {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.transport-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.transport-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .75rem .45rem;
  border-radius: 1rem;
  border: 1px solid rgba(185, 137, 69, .28);
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font: 500 .84rem/1.2 var(--sans);
  text-align: center;
  transition: all .25s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 2px 8px rgba(63, 44, 40, .04);
}

.transport-card .transport-icon {
  font-style: normal;
  font-size: 1.35rem;
  line-height: 1;
  transition: transform .25s ease;
}

.transport-option:hover .transport-card {
  background: rgba(255, 255, 255, .95);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(196, 87, 70, .12);
}

.transport-option:hover .transport-card .transport-icon {
  transform: scale(1.15);
}

.transport-option input:checked+.transport-card {
  background: var(--paper);
  border-color: var(--red);
  color: var(--red-deep);
  box-shadow: 0 4px 14px rgba(196, 87, 70, .22), inset 0 0 0 1px var(--red);
  font-weight: 600;
}

.transport-option input:focus-visible+.transport-card {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Success Card */
.rsvp-success-card {
  width: 100%;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(185, 137, 69, .32);
  border-radius: 2.2rem;
  background: linear-gradient(170deg, rgba(255, 252, 246, .96) 0%, rgba(251, 241, 226, .96) 100%);
  box-shadow: 0 2rem 5rem rgba(100, 66, 47, .14), 0 4px 18px rgba(185, 137, 69, .1);
  backdrop-filter: blur(16px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rsvp-success-card.is-opening {
  animation: success-card-pop .65s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes success-card-pop {
  from {
    opacity: 0;
    transform: scale(.88) translateY(30px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.success-icon-wrap {
  position: relative;
  width: 4.8rem;
  height: 4.8rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: rgba(196, 87, 70, .08);
  border: 1px solid rgba(196, 87, 70, .25);
}

.success-flower {
  color: var(--gold);
  font-size: 3.4rem;
  animation: ornament-pulse 6s ease-in-out infinite alternate;
  position: absolute;
  opacity: .28;
}

.success-check {
  color: var(--red);
  font-size: 2.2rem;
  font-weight: 700;
  z-index: 2;
  animation: check-scale .5s cubic-bezier(.175, .885, .32, 1.275) .15s both;
}

@keyframes check-scale {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.rsvp-success-card h3 {
  margin: 0 0 .8rem;
  font: 500 clamp(2.2rem, 4.5vw, 3.2rem)/1 var(--display);
  color: var(--red-deep);
  letter-spacing: -.03em;
}

.rsvp-success-card .success-lead {
  max-width: 28rem;
  margin: 0 0 1.6rem;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.65;
  color: rgba(63, 44, 40, .85);
}

.success-summary {
  width: 100%;
  max-width: 38rem;
  margin-bottom: 1.8rem;
}

.rsvp-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .85rem 1.1rem;
  width: 100%;
  padding: 1.2rem 1.4rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(185, 137, 69, .24);
  box-shadow: 0 4px 16px rgba(63, 44, 40, .05);
  text-align: left;
}

.rsvp-detail-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.rsvp-detail-item .detail-label {
  font: 600 .68rem/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(63, 44, 40, .58);
}

.rsvp-detail-item .detail-value {
  font: 500 .98rem/1.3 var(--serif);
  color: var(--ink);
}

.button-subtle {
  padding: .65rem 1.5rem;
  font-size: .82rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(63, 44, 40, .25);
  color: var(--ink);
  cursor: pointer;
  transition: all .25s ease;
}

.button-subtle:hover {
  background: var(--paper);
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

.rsvp-form .button {
  margin-top: 1.8rem;
  border: 0;
  cursor: pointer;
}

.rsvp-form .button:disabled {
  cursor: wait;
  opacity: .58;
}

.form-status {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  color: var(--teal);
  font-size: .82rem;
}

.form-status.error {
  color: var(--red-deep);
  font-weight: 600;
  animation: status-shake .3s ease;
}

@keyframes status-shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

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

.countdown {
  display: flex;
  gap: clamp(2rem, 7vw, 7rem);
  margin-top: 5rem;
}

.countdown div {
  display: flex;
  flex-direction: column;
}

.countdown strong {
  font: 500 clamp(2.7rem, 6vw, 5rem)/1 var(--serif);
}

.countdown span {
  margin-top: .55rem;
  color: rgba(63, 44, 40, .55);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* ==========================================================================
   Thank You Envelope Section
   ========================================================================== */

.thankyou {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper) 0%, rgba(250, 239, 223, 0.45) 50%, var(--cream) 100%);
  padding-block: clamp(4.5rem, 8vw, 6.5rem);
}

.thankyou::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(60rem, 90vw);
  height: 25rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(239, 182, 79, 0.16) 0%, rgba(221, 118, 95, 0.08) 45%, transparent 75%);
  transform: translateX(-50%);
  content: "";
  pointer-events: none;
}

.thankyou-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}


/* Envelope Scene & Stage */
.envelope-scene {
  position: relative;
  width: 100%;
  max-width: 32.5rem;
  margin: 0 auto;
  padding-top: 10.5rem;
  perspective: 1200px;
}

.envelope-interactive {
  position: relative;
  width: 100%;
  height: 19.5rem;
  margin: 0 auto;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.envelope-interactive:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

.envelope-interactive:hover {
  transform: translateY(-4px);
}

/* Back Wall & Silk Lining */
.envelope-back {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 14px;
  background: linear-gradient(155deg, #a43f33 0%, #7e271c 100%);
  box-shadow: 0 24px 60px rgba(63, 44, 40, 0.22), 0 6px 18px rgba(63, 44, 40, 0.12);
  overflow: hidden;
}

.envelope-lining {
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 30%, rgba(239, 182, 79, 0.24) 0%, rgba(138, 46, 36, 0.95) 75%), #80281e;
  display: grid;
  place-items: center;
  color: rgba(239, 182, 79, 0.32);
}

.lining-mandala {
  width: min(15rem, 60%);
  height: auto;
  opacity: 0.65;
}

/* The Letter / Note Card */
.letter-card {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 0.75rem;
  height: 19.2rem;
  z-index: 2;
  border-radius: 10px;
  background: var(--paper);
  box-shadow:
    inset 0 0 0 6px #fffaf3,
    inset 0 0 0 7.5px rgba(185, 137, 69, 0.42),
    0 10px 30px rgba(63, 44, 40, 0.16);
  transform: translateY(0);
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s ease,
    z-index 0s 0.25s;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Open state: Letter Card rises out of envelope */
.envelope-interactive.is-open .letter-card {
  transform: translateY(-10.25rem);
  z-index: 7;
  box-shadow:
    inset 0 0 0 6px #fffaf3,
    inset 0 0 0 7.5px rgba(185, 137, 69, 0.48),
    0 24px 55px rgba(63, 44, 40, 0.24);
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
    box-shadow 0.6s ease 0.1s,
    z-index 0s 0.1s;
}

.envelope-interactive.is-open:hover .letter-card {
  transform: translateY(-10.65rem) scale(1.01);
  box-shadow:
    inset 0 0 0 6px #fffaf3,
    inset 0 0 0 7.5px rgba(185, 137, 69, 0.55),
    0 28px 65px rgba(63, 44, 40, 0.28);
}

.letter-card-content {
  width: 100%;
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.letter-badge {
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.letter-monogram-img {
  width: clamp(2.6rem, 4.5vw, 3.4rem);
  height: auto;
  max-height: 2rem;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(185, 137, 69, 0.35));
}

.badge-flower {
  font-size: 1.25rem;
  color: var(--gold);
}

.letter-title {
  margin: 0.2rem 0 0.45rem;
  font: 500 clamp(1.85rem, 4.5vw, 2.5rem)/1.15 var(--wedding);
  color: var(--red-deep);
  letter-spacing: 0.03em;
}

.letter-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 7.5rem;
  margin: 0 auto 0.75rem;
  color: var(--gold);
}

.rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 137, 69, 0.55), transparent);
}

.rule-diamond {
  font-size: 0.65rem;
  line-height: 1;
}

.letter-message {
  margin: 0 auto 1.05rem;
  max-width: 34ch;
  font: 400 clamp(0.92rem, 2.4vw, 1.05rem)/1.65 var(--serif);
  color: var(--ink);
  font-style: italic;
}

.letter-signature {
  margin-top: 0.15rem;
}

.signature-line {
  display: inline-block;
  position: relative;
  font: 600 clamp(1.15rem, 3.2vw, 1.5rem)/1.2 var(--display);
  color: var(--red-deep);
  letter-spacing: 0.05em;
  padding-bottom: 0.25rem;
}

.signature-line::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Front Pocket of Envelope */
.envelope-front-pocket {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}

.pocket-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Top Flap (folds 180deg) */
.envelope-top-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10.6rem;
  z-index: 5;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.envelope-interactive.is-open .envelope-top-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.flap-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

.flap-face svg {
  width: 100%;
  height: 100%;
  display: block;
}

.flap-outside {
  transform: rotateX(0deg);
}

.flap-inside {
  transform: rotateX(180deg);
}

/* Wax Seal */
.wax-seal {
  position: absolute;
  top: 7.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3.4rem;
  height: 3.4rem;
  pointer-events: auto;
  cursor: pointer;
}

.wax-seal-body {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ca4636 0%, #9c2a1d 75%, #7a1d12 100%);
  box-shadow:
    0 4px 14px rgba(63, 20, 15, 0.45),
    inset 0 2px 3px rgba(255, 255, 255, 0.28),
    inset 0 -3px 4px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}

.wax-seal-ridge {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(239, 182, 79, 0.65);
}

.wax-seal-core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.wax-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
}

.wax-monogram-img {
  width: 82%;
  height: auto;
  max-height: 1.45rem;
  object-fit: contain;
  display: block;
  filter: brightness(1.18) drop-shadow(0 1px 2px rgba(45, 10, 5, 0.75));
}

.envelope-interactive:hover .wax-seal-body {
  transform: scale(1.06);
}

/* Toggle hint button */
.envelope-hint-wrap {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
}

.envelope-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(63, 44, 40, 0.06);
}

.envelope-toggle-btn:hover {
  background: #ffffff;
  border-color: var(--gold);
  color: var(--red-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(63, 44, 40, 0.12);
}

.envelope-toggle-btn .hint-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* Odia Typography Tweaks */
html[lang="or"] .letter-title {
  font-family: "Noto Serif Oriya", var(--wedding);
}

html[lang="or"] .letter-message {
  font-family: "Noto Serif Oriya", var(--serif);
  font-style: normal;
  line-height: 1.7;
}

html[lang="or"] .letter-signature .signature-line {
  font-family: "Noto Serif Oriya", var(--display);
}

/* Mobile Responsiveness for Envelope */
@media (max-width: 580px) {
  .envelope-scene {
    padding-top: 8.5rem;
    max-width: 25.5rem;
  }

  .envelope-interactive {
    height: 16.5rem;
  }

  .envelope-top-flap {
    height: 9rem;
  }

  .wax-seal {
    top: 6.6rem;
    width: 3rem;
    height: 3rem;
  }

  .wax-monogram {
    font-size: 0.92rem;
  }

  .letter-card {
    height: 16.2rem;
  }

  .envelope-interactive.is-open .letter-card {
    transform: translateY(-8.2rem);
  }

  .envelope-interactive.is-open:hover .letter-card {
    transform: translateY(-8.4rem) scale(1.01);
  }

  .letter-card-content {
    padding: 1.25rem 1rem;
  }

  .letter-title {
    font-size: 1.8rem;
    margin: 0.15rem 0 0.35rem;
  }

  .letter-message {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
  }

  .signature-line {
    font-size: 1.15rem;
  }
}

footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 10rem;
  padding: 3rem 4vw;
  overflow: hidden;
  background: var(--cream);
  font-size: .72rem;
}

footer> :not(.footer-mandala) {
  position: relative;
  z-index: 1;
}

footer p {
  margin: 0;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.footer-mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(31rem, 82vw);
  color: var(--red-deep);
  opacity: .1;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: mandala-spin 140s linear infinite;
  transform-origin: center center;
}

@keyframes mandala-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.mandala-outer-petals {
  stroke-width: 1.25;
}

.mandala-lotus {
  stroke-width: 1.6;
}

.mobile-dock {
  display: none;
}

.photo-dialog {
  width: min(64rem, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 35px 110px rgba(28, 13, 12, .45);
}

.photo-dialog[open] {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  animation: reveal-dialog .35s ease both;
}

.photo-dialog::backdrop {
  background: rgba(37, 22, 19, .77);
  backdrop-filter: blur(6px);
}

.photo-dialog>img {
  height: min(76vh, 45rem);
  object-fit: cover;
}

.dialog-copy {
  align-self: center;
  padding: clamp(2rem, 5vw, 5rem);
}

.dialog-copy h2 {
  margin: 0 0 1rem;
  font: 500 clamp(2.5rem, 5vw, 5rem)/1 var(--display);
  letter-spacing: -.04em;
}

.dialog-copy>p:last-child {
  line-height: 1.7;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  width: 2.8rem;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--cream);
  cursor: pointer;
  font-size: 1.5rem;
}

@keyframes reveal-dialog {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.98);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .75, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

html[lang="or"] body {
  font-family: "Noto Serif Oriya", var(--sans);
}

html[lang="or"] .eyebrow,
html[lang="or"] .button,
html[lang="or"] .desktop-nav a {
  letter-spacing: .04em;
  text-transform: none;
}

html[lang="or"] .intro-copy h2,
html[lang="or"] .section-heading h2,
html[lang="or"] .travel h2,
html[lang="or"] .rsvp h2 {
  line-height: 1.18;
}

/* ==========================================================================
   Scratch Reveal Wedding Dates Section
   ========================================================================== */
.scratch-reveal-section {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7.5rem) 5vw;
  background:
    radial-gradient(ellipse 65% 55% at 50% 25%, rgba(254, 243, 226, 0.95), transparent 75%),
    radial-gradient(circle at 10% 85%, rgba(245, 206, 197, 0.35), transparent 50%),
    radial-gradient(circle at 90% 15%, rgba(223, 186, 115, 0.18), transparent 50%),
    var(--cream);
  border-bottom: 1px solid rgba(185, 137, 69, 0.18);
}

.scratch-reveal-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 58rem;
  margin: 0 auto;
  text-align: center;
}

.scratch-header {
  margin-bottom: 2.2rem;
}

.scratch-header .eyebrow {
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.scratch-header h2 {
  margin: 0 0 0.85rem;
  font: 600 clamp(2.3rem, 5.5vw, 3.6rem)/1.15 var(--wedding);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.scratch-hint-text {
  max-width: 30rem;
  margin: 0 auto;
  font: 400 clamp(0.88rem, 1.4vw, 1.02rem)/1.5 var(--sans);
  color: var(--muted);
}

.scratch-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 530px;
  margin: 0 auto;
}

.scratch-card-aura {
  position: absolute;
  inset: -1.65rem;
  z-index: 0;
  border-radius: 2.4rem;
  background: radial-gradient(circle, rgba(223, 186, 115, 0.35) 0%, rgba(185, 137, 69, 0.12) 55%, transparent 75%);
  filter: blur(28px);
  pointer-events: none;
}

.scratch-card-box {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 16 / 10.8;
  min-height: 330px;
  border-radius: 1.6rem;
  overflow: hidden;
  background: #fffcf8;
  border: 1.5px solid rgba(185, 137, 69, 0.45);
  box-shadow:
    0 1.25rem 3.5rem rgba(103, 62, 45, 0.16),
    0 0 0 1px rgba(185, 137, 69, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.85);
  touch-action: pan-y;
  /* Crucial: Allows mobile users to scroll page smoothly */
  user-select: none;
  -webkit-user-select: none;
  cursor: crosshair;
}

.scratch-card-box.is-revealed {
  touch-action: auto;
  cursor: default;
}

/* Revealed Underlying Content */
.scratch-revealed-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 1.6rem;
  background:
    radial-gradient(ellipse 90% 80% at 50% 25%, #fdf5f2 0%, var(--blush) 65%, #edd2c9 100%);
}

.reveal-inner-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 1.15rem 1.4rem;
  border: 1.5px dashed rgba(185, 137, 69, 0.55);
  border-radius: 1.2rem;
  box-shadow:
    inset 0 0 0 4px rgba(245, 206, 197, 0.45),
    inset 0 0 25px rgba(185, 137, 69, 0.12);
}

.reveal-ornament {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  opacity: 0.85;
}

.reveal-ornament i {
  font-style: normal;
  font-size: 1.1rem;
  color: var(--red);
}

/* "We're getting married!" Banner with Pop Animation */
.reveal-married-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.1rem 0;
  opacity: 0;
  transform: scale(0.3) translateY(25px);
  will-change: transform, opacity;
}

.reveal-married-banner h3 {
  margin: 0;
  font: 600 clamp(1.35rem, 3.8vw, 1.75rem)/1.15 var(--wedding);
  font-style: italic;
  color: var(--red);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(143, 45, 36, 0.15);
}

.banner-sparkle {
  font-size: 1.1rem;
  animation: pulseSparkle 1.8s ease-in-out infinite alternate;
}

/* Popping Dates Card - in website colors, not white */
.reveal-dates-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.2rem 0;
  padding: 0.45rem 1.25rem;
  border-radius: 1rem;
  background: rgba(254, 243, 226, 0.75);
  border: 1.5px solid rgba(185, 137, 69, 0.45);
  box-shadow: 0 0.5rem 1.8rem rgba(143, 45, 36, 0.08);
  opacity: 0;
  transform: scale(0.4) translateY(30px);
  will-change: transform, opacity;
}

.reveal-date-days {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.1rem;
}

.reveal-day-badge {
  display: inline-grid;
  place-items: center;
  width: clamp(2.2rem, 5vw, 2.65rem);
  aspect-ratio: 1;
  border-radius: 50%;
  font: 700 clamp(1.1rem, 2.4vw, 1.35rem)/1 var(--wedding);
  color: var(--ink);
  border: 1.5px solid rgba(185, 137, 69, 0.6);
  background: rgba(245, 206, 197, 0.45);
  box-shadow: 0 2px 8px rgba(185, 137, 69, 0.15);
}

.reveal-day-badge.highlight {
  color: #fffaf3;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(143, 45, 36, 0.4);
}

.reveal-day-dash {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--gold);
}

.reveal-month-year {
  font: 600 clamp(0.85rem, 1.6vw, 1.02rem)/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 0.2rem;
}

.reveal-venue-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font: 500 0.78rem/1.3 var(--sans);
  color: var(--ink);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

.reveal-celebration-text {
  max-width: 17rem;
  margin: 0.15rem 0;
  font: 500 clamp(0.72rem, 1.2vw, 0.8rem)/1.35 var(--sans);
  color: #673e2d;
}

.reveal-actions {
  margin-top: 0.15rem;
}

/* Popping animations triggered upon reveal */
.scratch-card-box.is-revealed .reveal-married-banner {
  animation: popInMarried 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.scratch-card-box.is-revealed .reveal-dates-card {
  animation: popInDates 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s forwards;
}

@keyframes popInMarried {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(28px);
  }

  60% {
    opacity: 1;
    transform: scale(1.16) translateY(-6px);
    filter: drop-shadow(0 0 14px rgba(223, 186, 115, 0.75));
  }

  80% {
    transform: scale(0.96) translateY(2px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 0 0 transparent);
  }
}

@keyframes popInDates {
  0% {
    opacity: 0;
    transform: scale(0.4) translateY(32px);
  }

  60% {
    opacity: 1;
    transform: scale(1.14) translateY(-5px);
    box-shadow: 0 12px 30px rgba(185, 137, 69, 0.4);
  }

  80% {
    transform: scale(0.97) translateY(1px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    box-shadow: 0 0.5rem 1.8rem rgba(185, 137, 69, 0.14);
  }
}

@keyframes pulseSparkle {
  from {
    transform: scale(0.9) rotate(-10deg);
    opacity: 0.75;
  }

  to {
    transform: scale(1.22) rotate(14deg);
    opacity: 1;
  }
}

/* Scratch Canvas Top Layer */
.scratch-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hand Hint */
.scratch-hand-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* Golden Rolling DNA Hint on Scratch Card */
.scratch-gold-dna {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(92, 52, 18, 0.45) 0%, rgba(68, 36, 12, 0.2) 65%, transparent 100%);
  border: 1px solid rgba(255, 235, 160, 0.4);
  box-shadow:
    0 4px 14px rgba(60, 32, 10, 0.35),
    0 0 16px rgba(235, 195, 85, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: goldDnaFloat 2.6s ease-in-out infinite alternate;
}

.scratch-dna-helix {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1.2vw, 7.5px);
  height: 32px;
  perspective: 480px;
  perspective-origin: 50% 50%;
}

.scratch-dna-rung {
  position: relative;
  width: 2px;
  height: 22px;
  transform-style: preserve-3d;
  will-change: transform;
  animation: goldDnaSpin 2.6s linear infinite;
  animation-delay: calc(var(--i) * -0.16s);
  background: linear-gradient(to bottom, rgba(255, 248, 220, 0.65), rgba(212, 175, 55, 0.95) 50%, rgba(140, 95, 20, 0.65));
  border-radius: 2px;
}

.scratch-dna-rung i,
.scratch-dna-rung b {
  position: absolute;
  left: 50%;
  width: 6.2px;
  height: 6.2px;
  border-radius: 50%;
  transform: translateX(-50%);
  display: block;
}

/* Polished radiant champagne gold strand (top) */
.scratch-dna-rung i {
  top: -3.5px;
  background: radial-gradient(circle at 30% 28%, #ffffff 0%, #fff4c2 35%, #e2ab2c 75%, #945f08 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 5px rgba(255, 245, 175, 0.95),
    0 0 10px rgba(220, 175, 50, 0.6);
}

/* Deep warm gold & amber bronze strand (bottom) */
.scratch-dna-rung b {
  bottom: -3.5px;
  background: radial-gradient(circle at 30% 28%, #fff8e0 0%, #ffd970 38%, #c5891a 78%, #6b3e02 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 0 5px rgba(245, 195, 60, 0.9),
    0 0 8px rgba(185, 130, 20, 0.45);
}

@keyframes goldDnaSpin {
  0% {
    transform: rotateX(0deg);
  }

  100% {
    transform: rotateX(360deg);
  }
}

@keyframes goldDnaFloat {
  0% {
    transform: translateY(0);
    filter: drop-shadow(0 0 4px rgba(255, 230, 120, 0.4));
  }

  100% {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 10px rgba(255, 235, 140, 0.8));
  }
}

/* Scratch Sparkles */
.scratch-sparkles-container {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.scratch-sparkle {
  position: absolute;
  font-size: 1.1rem;
  color: #f7df96;
  text-shadow: 0 0 6px rgba(223, 186, 115, 0.9);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
  animation: sparkleFloat 0.7s ease-out forwards;
}

@keyframes sparkleFloat {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -80%) scale(1.3) rotate(60deg);
  }
}

/* Quick Action Buttons below card */
.scratch-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.scratch-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border: none;
  border-radius: 999px;
  font: 600 0.84rem/1 var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.scratch-action-btn.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(143, 45, 36, 0.28);
}

.scratch-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(143, 45, 36, 0.38);
}

.scratch-action-btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(185, 137, 69, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.scratch-action-btn.secondary:hover {
  transform: translateY(-2px);
  background: #fffcf8;
  border-color: var(--gold);
}

.scratch-action-btn.hidden {
  display: none !important;
}

/* Fullscreen Confetti Canvas */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 99999;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

@media (max-width: 820px) {
  .scratch-reveal-section {
    padding: clamp(3.5rem, 6vw, 5.5rem) 5vw;
  }
}

@media (max-width: 480px) {
  .scratch-card-box {
    aspect-ratio: 16 / 12;
    min-height: 320px;
  }

  .reveal-inner-frame {
    padding: 0.95rem 1rem;
    gap: 0.2rem;
  }

  .reveal-married-banner h3 {
    font-size: clamp(1.45rem, 5.8vw, 1.95rem);
  }

  .reveal-dates-card {
    padding: 0.5rem 1.1rem;
  }

  .reveal-day-badge {
    width: 2.2rem;
    font-size: 1.1rem;
  }

  .reveal-month-year {
    font-size: 0.88rem;
  }

  .scratch-header h2 {
    font-size: clamp(2rem, 7.8vw, 2.7rem);
  }
}

@media (max-width: 820px) {
  .opening-curtain {
    place-items: start center;
    padding-top: 9vh;
    background-position: 67% center;
  }

  .opening-curtain::before {
    background: linear-gradient(to bottom, rgba(255, 250, 243, .84) 0 26%, rgba(255, 250, 243, .2) 48% 76%, rgba(255, 250, 243, .58) 100%);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header .button-small {
    display: none;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    min-height: max(49rem, 100svh);
    padding-inline: 1.5rem;
  }

  .sun-disc {
    width: 72vw;
  }

  .hero h1 {
    font-size: clamp(4.3rem, 21vw, 7rem);
  }

  .hero-copy {
    padding-inline: clamp(1rem, 5vw, 2rem);
  }

  .gold-orbit {
    width: min(78vw, 25rem);
  }

  .gold-monogram {
    top: -2.45rem;
    width: 5rem;
  }

  .gold-date {
    width: 2.75rem;
  }

  .gold-date-start {
    left: -1.1rem;
  }

  .gold-date-end {
    right: -1.1rem;
  }

  .hero-date {
    max-width: 22rem;
  }

  .tile-one {
    top: 16%;
    left: -1.5rem;
    --start-x: -2rem;
    --start-y: 65vh;
    --delay: .32s;
  }

  .tile-two {
    right: -1.5rem;
    bottom: 11%;
    --start-x: 2rem;
    --start-y: 50vh;
    --delay: .16s;
  }

  .tile-three {
    display: none;
  }

  .hero-note {
    right: 1.5rem;
    bottom: 1.2rem;
  }

  .corner-flower {
    display: none;
  }

  .section-pad {
    padding: 4.75rem 1.15rem;
  }

  .intro {
    min-height: auto;
    padding-block: clamp(3.2rem, 7.5vw, 4.5rem);
  }

  .intro-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }

  .intro-copy h2 {
    font-size: clamp(2.35rem, 9.5vw, 3.2rem);
    line-height: 1.02;
    margin-bottom: 0.85rem;
  }

  .intro-copy>p:not(.eyebrow) {
    margin: 0;
    font-size: clamp(0.92rem, 3.8vw, 1.02rem);
    line-height: 1.72;
  }

  .intro-arch-frame {
    max-width: min(21.5rem, 88vw);
    margin: 0 auto;
    padding: .55rem .55rem .85rem;
    border-radius: min(15rem, 42vw) min(15rem, 42vw) 1.6rem 1.6rem;
  }

  .intro-arch-frame img {
    aspect-ratio: 3.5 / 4.5;
    border-radius: min(14.5rem, 40vw) min(14.5rem, 40vw) 1.25rem 1.25rem;
  }

  .intro-tag {
    font-size: 0.8rem;
    padding: 0.42rem 0.95rem;
    margin-top: 0.65rem;
    white-space: normal;
  }

  .section-heading {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 2.2rem;
  }

  .section-heading h2 {
    max-width: 11ch;
    margin-bottom: 1rem;
    font-size: clamp(2.8rem, 12vw, 4.5rem);
  }

  .section-heading>p:last-child {
    max-width: 26rem;
  }

  .event-list {
    grid-template-columns: 1fr;
    gap: .85rem;
  }

  .event-card {
    display: grid;
    grid-template-columns: 4.6rem minmax(0, 1fr);
    gap: 0 1rem;
    min-height: 0;
    padding: 1.1rem;
    border-radius: 1.4rem;
  }

  .event-day {
    grid-row: 1 / 3;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: .9rem;
    border-right: 1px solid rgba(63, 44, 40, .12);
    text-align: center;
  }

  .event-day span {
    font-size: .74rem;
  }

  .event-day strong {
    grid-row: auto;
    margin: .25rem 0;
    font-size: 3.35rem;
  }

  .event-day small {
    font-size: .58rem;
  }

  .event-art {
    display: none;
  }

  .event-copy {
    grid-column: 2;
  }

  .event-copy .eyebrow {
    margin-bottom: .35rem;
    font-size: .58rem;
  }

  .event-copy h3 {
    max-width: none;
    margin: 0 0 .5rem;
    font-size: 1.7rem;
  }

  .event-copy>p:not(.eyebrow) {
    margin-bottom: .75rem;
    font-size: .78rem;
  }

  .venue-link {
    padding: .65rem 0 .2rem;
    border-top: 1px solid rgba(63, 44, 40, .12);
    border-bottom: 0;
    font-size: .67rem;
  }

  .events .section-heading {
    display: block;
  }

  .events .section-heading h2 {
    margin-bottom: .45rem;
    font-size: clamp(2rem, 8.5vw, 2.8rem);
  }

  .events .section-heading>p:last-child {
    max-width: 20rem;
    font-size: .68rem;
  }

  .event-procession {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .event-procession img {
    object-position: center 32%;
  }

  .travel {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .travel-grid>div {
    min-height: 12rem;
    padding: 1.4rem;
  }

  .photo-dialog[open] {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .photo-dialog>img {
    height: 52vh;
  }

  .dialog-copy {
    padding: 2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-events,
  .field-transport,
  .field-message {
    grid-column: 1;
    grid-row: auto;
  }

  .field-events label,
  .field-meal label {
    display: flex;
    margin-right: 0;
  }

  .transport-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
  }

  .mobile-dock {
    position: fixed;
    z-index: 80;
    right: .75rem;
    bottom: calc(.65rem + env(safe-area-inset-bottom));
    left: .75rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 3.9rem;
    padding: .35rem;
    border: 1px solid rgba(93, 57, 45, .12);
    border-radius: 1.25rem;
    background: rgba(255, 250, 243, .92);
    box-shadow: 0 1rem 3rem rgba(88, 54, 43, .18);
    backdrop-filter: blur(18px);
  }

  .mobile-dock a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    border-radius: .9rem;
    color: var(--ink);
    text-decoration: none;
  }

  .mobile-dock a:last-child {
    color: #fff;
    background: var(--red);
  }

  .mobile-dock span {
    font: 600 .78rem/1 var(--sans);
  }

  .mobile-dock b {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .03em;
  }

  footer {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: .8rem 1rem;
  }

  .header-actions {
    min-width: 0;
    gap: .35rem;
  }

  .language-toggle {
    flex: 0 0 auto;
    padding-inline: .2rem;
    font-size: .66rem;
  }

  .hero {
    min-height: max(45rem, 100svh);
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(3.45rem, 17vw, 5rem);
    letter-spacing: -.07em;
  }

  .hero-copy {
    padding-inline: 1rem;
  }

  .hero .eyebrow {
    max-width: 16rem;
    margin-inline: auto;
    line-height: 1.6;
  }

  .hero-date {
    padding-inline: .75rem;
    line-height: 1.65;
  }

  .photo-tile {
    width: 6.2rem;
    padding: .3rem .3rem .65rem;
  }

  .photo-tile span {
    font-size: .65rem;
  }

  .tile-one {
    top: 19%;
  }

  .tile-two {
    bottom: 14%;
  }

  .travel {
    gap: 2.5rem;
  }

  .travel-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .travel-grid>div {
    min-height: 8.5rem;
    padding: .85rem;
  }

  .travel-grid span {
    margin-bottom: 1.4rem;
    font-size: 1.35rem;
  }

  .travel-grid strong {
    font-size: 1.15rem;
  }

  .travel-grid p {
    font-size: .72rem;
    line-height: 1.45;
  }

  .rsvp-form {
    padding: 1rem;
    border-radius: 1.35rem;
  }

  .rsvp h2 {
    font-size: 3.25rem;
  }

  .countdown {
    gap: 1.8rem;
  }

  .countdown strong {
    font-size: 2.4rem;
  }

  footer {
    padding-inline: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .photo-tile,
  body.site-opening .photo-tile {
    opacity: 1 !important;
    visibility: visible !important;
    transform: rotate(var(--rotation)) !important;
    animation: none !important;
  }
}