/* ==========================================================================
   ELEGANT WEDDING INVITATION — Complete Stylesheet
   Layers: Background Scene → Curtains → Gate → Overlays → Content
   ========================================================================== */

/* ─── DESIGN TOKENS ─── */
:root {
  --clr-bg: #050907;
  --clr-dark: #0b140f;
  --clr-forest: #1b3327;
  --clr-gold: #dfb288;
  --clr-gold-light: #f0dac2;
  --clr-gold-bright: #fff5e0;
  --clr-ivory: #ffffff;
  --clr-cream: #fdfbf7;

  --ff-display: 'Cinzel Decorative', serif;
  --ff-heading: 'Cinzel', serif;
  --ff-script: 'Great Vibes', cursive;
  --ff-body: 'Montserrat', sans-serif;
  --ff-accent: 'Playfair Display', serif;

  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  background: var(--clr-bg);
  color: var(--clr-ivory);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

/* ==========================================================================
   APP CONTAINER — 9:16 centered card
   ========================================================================== */
.app-container {
  position: relative;
  width: 100vw;
  max-width: 450px;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--clr-dark);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

@media (min-aspect-ratio: 9/16) {
  .app-container {
    width: auto;
    aspect-ratio: 9 / 16;
  }
}

/* ==========================================================================
   LAYERS — Stacked absolute layers
   ========================================================================== */
.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.layer__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Layer 3: Background Scene */
.layer--bg {
  z-index: 1;
}

#bgImage {
  transform: scale(1);
  transform-origin: 50% 48%;
  /* Focus point: the couple */
  will-change: transform;
  transition: none;
  /* Controlled by JS phases */
}

.layer__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0.9) 100%);
  pointer-events: none;
}

/* Layer 2: Curtains */
.layer--curtains {
  z-index: 10;
  display: flex;
  transform-origin: 50% 48%;
  will-change: transform;
}

.curtain {
  width: 50%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transition: none;
  /* Controlled by JS */
}

.curtain--left {
  transform: translateX(0);
  object-position: right center;
  transform-origin: left center;
}

.curtain--right {
  transform: translateX(0);
  object-position: left center;
  transform-origin: right center;
}


/* Layer 1: Gate / Arch */
.layer--gate {
  z-index: 20;
  pointer-events: none;
}

.layer--gate .layer__img {
  transform-origin: 50% 48%;
  will-change: transform;
}

/* ==========================================================================
   ENVELOPE OVERLAY — The initial cover screen
   ========================================================================== */
.envelope {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.9s var(--ease-smooth);
  pointer-events: all;
}

.envelope__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(11, 20, 15, 0.92) 0%, rgba(5, 9, 7, 0.98) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.envelope.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.envelope__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  max-width: 380px;
  padding: 32px 24px;
  text-align: center;
}

.envelope__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(-15px);
  animation: fadeInDown 0.8s var(--ease-smooth) 0.3s forwards;
}

.envelope__label {
  font-family: var(--ff-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-gold-light);
}

.envelope__divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
}

.envelope__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 1s var(--ease-smooth) 0.6s forwards;
}

.envelope__names {
  font-family: var(--ff-script);
  font-size: clamp(42px, 12vw, 56px);
  font-weight: 500;
  color: var(--clr-gold-bright);
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(192, 149, 108, 0.5),
    0 0 40px rgba(192, 149, 108, 0.2);
  line-height: 1.2;
}

.envelope__names-break {
  display: none;
}

.envelope__amp {
  font-family: var(--ff-script);
  font-size: 0.7em;
  opacity: 0.7;
  display: inline;
  margin: 0 6px;
  color: var(--clr-gold);
}

.envelope__guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(223, 178, 136, 0.12);
  border-radius: 16px;
  padding: 16px 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.envelope__guest-label {
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(251, 249, 246, 0.45);
  text-transform: uppercase;
}

.envelope__guest-name {
  font-family: var(--ff-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--clr-gold-light);
  font-style: italic;
}

.envelope__bottom {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.8s var(--ease-smooth) 1.2s forwards;
}

.envelope__flourish {
  opacity: 0;
  animation: fadeIn 0.6s ease 1.6s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ─── Open Button ─── */
.open-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--clr-gold) 0%, #a07850 100%);
  color: #fff;
  font-family: var(--ff-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  border-radius: 50px;
  box-shadow: 0 6px 25px rgba(192, 149, 108, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.open-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 35px rgba(192, 149, 108, 0.5);
}

.open-btn:active {
  transform: scale(0.97);
}

.open-btn__icon {
  font-size: 16px;
}

/* ==========================================================================
   COUPLE OVERLAY — Name reveal after camera zoom
   ========================================================================== */
.couple-overlay {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease-smooth);
}

.couple-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.couple-overlay__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: 52px 24px 32px;
  transform: translateY(20px);
  transition: transform 1.4s var(--ease-out-expo);
}

.couple-overlay__header {
  flex-shrink: 0;
}

.couple-overlay.is-visible .couple-overlay__content {
  transform: translateY(0);
}

.couple-overlay__label {
  font-family: var(--ff-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clr-gold-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.couple-overlay__divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
}

.couple-overlay__names {
  font-family: var(--ff-script);
  font-size: clamp(40px, 11vw, 56px);
  font-weight: 500;
  color: var(--clr-gold-bright);
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.9),
    0 4px 20px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(192, 149, 108, 0.6);
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.couple-overlay__amp {
  font-family: var(--ff-script);
  font-size: 0.7em;
  opacity: 0.8;
  display: block;
}

.couple-overlay__date {
  font-family: var(--ff-heading);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--clr-cream);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ─── Moment Photo ─── */
.moment-photo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 8px 0;
}

.moment-photo img {
  width: 65%;
  max-width: 260px;
  height: auto;
  max-height: 52vh;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(192, 149, 108, 0.35);
}

/* ─── Enter Button ─── */
.enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  margin-top: auto;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--clr-gold) 0%, #a07850 100%);
  color: #fff;
  font-family: var(--ff-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: 50px;
  box-shadow: 0 6px 25px rgba(192, 149, 108, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.enter-btn:hover {
  transform: scale(1.05);
}

.enter-btn__arrow {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   AUDIO TOGGLE
   ========================================================================== */
.audio-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 50;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, background 0.2s ease;
}

.audio-toggle.is-visible {
  opacity: 1;
  pointer-events: all;
}

.audio-toggle__icon {
  width: 18px;
  height: 18px;
}

.audio-toggle__icon--hidden {
  display: none;
}

@keyframes audioPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(192, 149, 108, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(192, 149, 108, 0);
  }
}

.audio-toggle.pulse {
  animation: audioPulse 2s infinite;
}

/* ==========================================================================
   MAIN SCROLLABLE CONTENT
   ========================================================================== */
.main-content {
  position: absolute;
  inset: 0;
  z-index: 45;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-smooth);
  scroll-behavior: smooth;
}

.main-content.is-visible {
  opacity: 1;
  pointer-events: all;
}

.main-content::-webkit-scrollbar {
  display: none;
}

.main-content {
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-padding-top: 80px;
}

.main-content__inner {
  width: 100%;
}

/* ==========================================================================
   SCENES (Full-height sections)
   ========================================================================== */
.scene {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  position: relative;
}

.scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 7, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;
}

.scene--cover {
  justify-content: flex-start;
  padding-top: 56px;
}

.scene--cover::before {
  background: rgba(5, 9, 7, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.scene--cover .moment-photo {
  margin: 10px 0 6px;
}

.scene__label {
  font-family: var(--ff-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--clr-gold-light);
  margin-bottom: 8px;
}

.scene__divider {
  width: 80px;
  height: 1px;
  margin: 10px auto;
  background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
}

.scene__title {
  font-family: var(--ff-script);
  font-size: clamp(40px, 11vw, 56px);
  font-weight: 500;
  color: var(--clr-gold-bright);
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.9),
    0 0 25px rgba(192, 149, 108, 0.6);
  margin: 16px 0;
}

.scene__date {
  font-family: var(--ff-heading);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--clr-cream);
  margin-top: 8px;
}

.scene__heading {
  font-family: var(--ff-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--clr-gold);
  margin-bottom: 24px;
}

.scene__subtitle {
  font-size: 12px;
  font-weight: 300;
  color: rgba(251, 249, 246, 0.65);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 20px;
}

/* ─── Cover Ornament ─── */
.cover-ornament {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 10px;
}

.cover-ornament__svg {
  width: 160px;
  height: 24px;
}

.scene__guest {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(251, 249, 246, 0.5);
  margin-top: 6px;
  min-height: 18px;
}

/* ─── Scroll Hint ─── */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 300;
  color: var(--clr-gold-light);
  opacity: 0.7;
  margin-top: auto;
  padding-top: 40px;
  animation: gentleBounce 2s ease-in-out infinite;
}

.scroll-hint svg {
  width: 16px;
  height: 16px;
}

@keyframes gentleBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* ─── Verse ─── */
.verse-card {
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.verse__bismillah {
  font-family: 'Amiri', 'Traditional Arabic', 'Scheherazade New', serif;
  font-size: 25px;
  font-weight: 400;
  color: var(--clr-gold-bright);
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(192, 149, 108, 0.3);
  letter-spacing: normal;
}

.verse__text {
  font-family: var(--ff-accent);
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  color: rgba(251, 249, 246, 0.88);
  line-height: 1.8;
  border: none;
}

.verse__source {
  font-family: var(--ff-heading);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.15em;
  color: var(--clr-gold-light);
}

/* ─── Profile Cards ─── */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.profile-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--clr-gold);
  box-shadow: 0 4px 20px rgba(192, 149, 108, 0.25);
}

.profile-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card__name {
  font-family: var(--ff-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--clr-gold-bright);
}

.profile-card__parents {
  font-size: 12px;
  font-weight: 300;
  color: rgba(251, 249, 246, 0.7);
  line-height: 1.6;
}

.profile-amp {
  font-family: var(--ff-script);
  font-size: 36px;
  color: var(--clr-gold);
  margin: 4px 0;
}

/* ─── Event Cards ─── */
.event-card {
  width: 100%;
  max-width: 320px;
  background: rgba(27, 51, 39, 0.2);
  border: 1px solid rgba(192, 149, 108, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
}

.event-card__title {
  font-family: var(--ff-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-gold-light);
  margin-bottom: 12px;
}

.event-card__detail {
  font-size: 13px;
  font-weight: 300;
  color: var(--clr-ivory);
  margin-bottom: 4px;
}

.event-card__address {
  font-size: 11px;
  font-weight: 300;
  color: rgba(251, 249, 246, 0.6);
  line-height: 1.6;
  margin-top: 8px;
}

.maps-btn {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--clr-gold-light);
  color: var(--clr-gold-light);
  font-family: var(--ff-heading);
  font-size: 13px;
  letter-spacing: 0.1em;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  margin: 8px 0 20px;
}

.maps-btn:hover {
  background: var(--clr-gold);
  color: #fff;
}

/* ─── Save the Date (top cover) ─── */
.save-date-top {
  margin-top: 10px;
  text-align: center;
}

.save-date-top__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 18px;
  background: rgba(223,178,136,0.08);
  border: 1px solid rgba(223,178,136,0.25);
  border-radius: 50px;
  color: var(--gold);
  cursor: pointer;
  font-family: var(--ff-body);
  transition: all 0.4s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.save-date-top__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(223,178,136,0.3), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.save-date-top__btn:hover {
  background: rgba(223,178,136,0.16);
  border-color: rgba(223,178,136,0.45);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(223,178,136,0.1);
}

.save-date-top__icon {
  width: 18px;
  height: 18px;
  opacity: 0.85;
  flex-shrink: 0;
}

.save-date-top__label {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

.save-date-top__hint {
  font-size: 9px;
  letter-spacing: 0.08em;
  opacity: 0.5;
  line-height: 1;
}

/* ─── Countdown ─── */
.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.countdown__block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(192, 149, 108, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 52px;
  text-align: center;
}

.countdown__digit {
  display: block;
  font-family: var(--ff-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--clr-gold-bright);
}

.countdown__label {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(251, 249, 246, 0.5);
  text-transform: uppercase;
  margin-top: 2px;
}

.countdown__sep {
  font-family: var(--ff-heading);
  font-size: 16px;
  color: var(--clr-gold);
  opacity: 0.5;
}

.countdown--cover {
  margin-top: 14px;
  gap: 6px;
}

.countdown--cover .countdown__block {
  background: rgba(0,0,0,0.25);
  border-color: rgba(192,149,108,0.12);
  padding: 6px 10px;
  min-width: 44px;
  border-radius: 8px;
}

.countdown--cover .countdown__digit {
  font-size: 18px;
}

.countdown--cover .countdown__label {
  font-size: 8.5px;
}

.countdown--cover .countdown__sep {
  font-size: 13px;
}

/* ─── Gift Card ─── */
.gift-card {
  width: 100%;
  max-width: 320px;
  background: rgba(27, 51, 39, 0.15);
  border: 1px solid rgba(192, 149, 108, 0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.gift-card__bank {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 16px;
}

.gift-card__bank-name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
}

.gift-card__bank-label {
  font-size: 11px;
  color: rgba(251, 249, 246, 0.5);
}

.gift-card__number-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.gift-card__number-label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(251, 249, 246, 0.45);
  margin-bottom: 4px;
}

.gift-card__number {
  display: block;
  font-family: var(--ff-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--clr-gold-bright);
}

.gift-card__holder {
  font-size: 12px;
  color: rgba(251, 249, 246, 0.7);
  margin-bottom: 16px;
}

.copy-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--clr-gold) 0%, #a07850 100%);
  color: #fff;
  font-family: var(--ff-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.copy-btn:active {
  transform: scale(0.97);
}

/* ─── RSVP Form ─── */
.rsvp-form {
  width: 100%;
  max-width: 320px;
  background: rgba(27, 51, 39, 0.2);
  border: 1px solid rgba(192, 149, 108, 0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: left;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--clr-gold-light);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(192, 149, 108, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--clr-ivory);
  font-family: var(--ff-body);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: var(--clr-gold);
}

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 300;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  accent-color: var(--clr-gold);
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--clr-gold) 0%, #a07850 100%);
  color: #fff;
  font-family: var(--ff-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.submit-btn:active {
  transform: scale(0.97);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── Wishes ─── */
.wishes-section {
  width: 100%;
  max-width: 320px;
  margin-top: 24px;
}

.wishes-section__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.wishes-section__icon {
  font-size: 14px;
  line-height: 1;
}

.wishes-section__title {
  font-family: var(--ff-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--clr-gold-light);
}

.wishes-section__count {
  font-family: var(--ff-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-gold);
  background: rgba(223, 178, 136, 0.1);
  border: 1px solid rgba(223, 178, 136, 0.2);
  padding: 1px 10px;
  border-radius: 20px;
  min-width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

.wishes-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.wishes-list::-webkit-scrollbar {
  width: 3px;
}

.wishes-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.wishes-list::-webkit-scrollbar-thumb {
  background: rgba(192, 149, 108, 0.3);
  border-radius: 2px;
}

.wish-card {
  background: rgba(27, 51, 39, 0.25);
  border-left: 3px solid var(--clr-gold);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  text-align: left;
}

.wish-card__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-gold-light);
  margin-bottom: 4px;
}

.wish-card__text {
  font-size: 12px;
  font-weight: 300;
  color: rgba(251, 249, 246, 0.75);
  line-height: 1.5;
}

/* ─── Footer ─── */
.footer {
  padding-top: 40px;
  font-size: 10px;
  font-weight: 300;
  color: rgba(251, 249, 246, 0.3);
  line-height: 1.8;
}

/* ==========================================================================
   LOADING SCREEN
   ========================================================================== */
.loading-screen {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-bg);
  opacity: 1;
  transition: opacity 0.8s ease;
  pointer-events: all;
}

.loading-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-screen__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.loading-screen__ring {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-screen__ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.loading-screen__ring-progress {
  animation: loadingRing 2s ease-in-out forwards;
}

.loading-screen__initials {
  font-family: var(--ff-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--clr-gold-light);
  text-shadow: 0 0 30px rgba(223, 178, 136, 0.5);
}

.loading-screen__names {
  font-family: var(--ff-script);
  font-size: 24px;
  font-weight: 500;
  color: var(--clr-gold-bright);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(192, 149, 108, 0.3);
  letter-spacing: 0.03em;
}

.loading-screen__bar {
  width: 160px;
  height: 2px;
  background: rgba(223, 178, 136, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.loading-screen__label {
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(251, 249, 246, 0.4);
}

.loading-screen__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-gold-light), var(--clr-gold));
  background-size: 200% 100%;
  border-radius: 2px;
  animation: loadingBar 2.2s ease-in-out forwards, shimmer 1.2s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ==========================================================================
   GALLERY CAROUSEL — Golden Carousel
   ========================================================================== */
.gallery-carousel {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
}

.gallery-carousel__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.gallery-carousel__slide {
  min-width: 100%;
  padding: 0 4px;
}

.gallery-carousel__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(223, 178, 136, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-carousel__frame::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(223, 178, 136, 0.15);
  border-radius: 11px;
  pointer-events: none;
}

.gallery-carousel__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-carousel__slide.is-active .gallery-carousel__frame {
  box-shadow: 0 12px 40px rgba(223, 178, 136, 0.2), 0 0 60px rgba(223, 178, 136, 0.08);
}

.gallery-carousel__slide.is-active .gallery-carousel__frame img {
  transform: scale(1.03);
}

.gallery-carousel__counter {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--ff-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-gold-bright);
  background: rgba(5, 9, 7, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(223, 178, 136, 0.2);
  z-index: 2;
}

.gallery-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.gallery-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(223, 178, 136, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.gallery-carousel__dot.is-active {
  width: 28px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-gold-light));
  box-shadow: 0 0 12px rgba(223, 178, 136, 0.35);
}

/* ==========================================================================
   LOVE STORY TIMELINE — The Journey
   ========================================================================== */
.timeline {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--clr-gold), transparent);
  transform: translateX(-50%);
  opacity: 0.4;
}

.timeline__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.timeline__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline__item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 20px);
  text-align: right;
}

.timeline__item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 20px);
  text-align: left;
}

.timeline__marker {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--clr-dark);
  border: 2.5px solid var(--clr-gold);
  box-shadow: 0 0 0 4px rgba(223, 178, 136, 0.15), 0 0 20px rgba(223, 178, 136, 0.2);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  color: var(--clr-gold);
}

.timeline__card {
  background: rgba(27, 51, 39, 0.2);
  border: 1px solid rgba(223, 178, 136, 0.15);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  width: 100%;
}

.timeline__year {
  font-family: var(--ff-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--clr-gold);
  margin-bottom: 4px;
}

.timeline__title {
  font-family: var(--ff-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-gold-bright);
  margin-bottom: 6px;
}

.timeline__desc {
  font-size: 12px;
  font-weight: 300;
  color: rgba(251, 249, 246, 0.65);
  line-height: 1.7;
}

/* ==========================================================================
   NAVIGATION DOTS — Section Compass
   ========================================================================== */
.nav-dots {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 49;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.nav-dots.is-visible {
  opacity: 1;
  pointer-events: all;
}

.nav-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(223, 178, 136, 0.25);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
}

.nav-dot.is-active {
  width: 14px;
  height: 14px;
  background: var(--clr-gold);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 16px rgba(223, 178, 136, 0.4), 0 0 30px rgba(223, 178, 136, 0.15);
}

.nav-dot:hover {
  background: rgba(223, 178, 136, 0.5);
}

.nav-dot__tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-body);
  font-size: 9px;
  font-weight: 500;
  color: var(--clr-gold-light);
  background: rgba(5, 9, 7, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(223, 178, 136, 0.2);
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dot:hover .nav-dot__tooltip {
  opacity: 1;
}

/* ==========================================================================
   SHARE BUTTON
   ========================================================================== */
.share-toggle {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 50;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-gold-light);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, background 0.2s ease, transform 0.2s ease;
}

.share-toggle.is-visible {
  opacity: 1;
  pointer-events: all;
}

.share-toggle:hover {
  background: rgba(223, 178, 136, 0.2);
  transform: scale(1.05);
}

.share-toggle:active {
  transform: scale(0.95);
}

.share-toggle__icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   RSVP MULTI-STEP FORM
   ========================================================================== */
.rsvp-steps {
  margin-bottom: 20px;
  text-align: center;
}

.rsvp-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 8px;
}

.rsvp-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-size: 11px;
  font-weight: 600;
  color: rgba(251, 249, 246, 0.3);
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(223, 178, 136, 0.15);
  transition: all 0.4s ease;
}

.rsvp-step-dot.is-active {
  color: var(--clr-dark);
  background: var(--clr-gold);
  border-color: var(--clr-gold-light);
  box-shadow: 0 0 16px rgba(223, 178, 136, 0.35);
}

.rsvp-step-dot.is-done {
  color: var(--clr-gold);
  border-color: var(--clr-gold);
  background: rgba(223, 178, 136, 0.1);
}

.rsvp-step-line {
  width: 32px;
  height: 1.5px;
  background: rgba(223, 178, 136, 0.12);
  transition: background 0.4s ease;
}

.rsvp-step-line.is-done {
  background: var(--clr-gold);
}

.rsvp-step-labels {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.rsvp-step-label {
  font-family: var(--ff-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 249, 246, 0.25);
  transition: color 0.4s ease;
}

.rsvp-step-label.is-active {
  color: var(--clr-gold-light);
}

.rsvp-step-content {
  display: none;
  animation: fadeInUp 0.4s var(--ease-smooth) forwards;
}

.rsvp-step-content.is-active {
  display: block;
}

.rsvp-nav-buttons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.rsvp-nav-buttons .submit-btn {
  flex: 1;
}

.rsvp-prev {
  background: transparent !important;
  border: 1px solid rgba(223, 178, 136, 0.3) !important;
  color: var(--clr-gold-light) !important;
  box-shadow: none !important;
}

.rsvp-prev:hover {
  background: rgba(223, 178, 136, 0.1) !important;
}

.rsvp-success {
  text-align: center;
  padding: 20px 0;
}

.rsvp-success__icon {
  margin-bottom: 16px;
}

.rsvp-success__circle {
  stroke-dasharray: 188;
  stroke-dashoffset: 188;
  animation: drawCircle 0.8s ease forwards 0.2s;
}

.rsvp-success__check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck 0.6s ease forwards 0.8s;
}

.rsvp-success__title {
  font-family: var(--ff-script);
  font-size: 28px;
  font-weight: 500;
  color: var(--clr-gold-bright);
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.rsvp-success__text {
  font-family: var(--ff-accent);
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: rgba(251, 249, 246, 0.6);
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS — Staggered Entry
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes loadingRing {
  0% {
    stroke-dashoffset: 226;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes loadingBar {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   PHASE ANIMATION CLASSES (Added by JS sequentially)
   ========================================================================== */

/* Phase 1: Curtains open */
.phase-curtains-open .curtain--left {
  transform: translateX(-85%) scaleX(0.3);
  /* Simulates folds by squishing horizontally */
  transition: transform 2.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.phase-curtains-open .curtain--right {
  transform: translateX(85%) scaleX(0.3);
  /* Simulates folds by squishing horizontally */
  transition: transform 2.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Phase 2: Camera zoom — background, curtains, and gate move together */
.phase-camera-zoom #bgImage,
.phase-camera-zoom #layerCurtains,
.phase-camera-zoom .layer--gate .layer__img {
  animation: cameraZoom 5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cameraZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(3);
  }
}