/* ============================================================
   LUMIÈRE (v2.3) — AA STUDIO DIGITAL WEDDING INVITATION
   Theme: Wevitation "Elegant Light" Edition
   Palette: Olive/Sage Green (#757d5c, #545c3e), Warm Cream (#f9f8f4)
   Bilingual: English (Default) + Indonesian
   ============================================================ */

:root {
  --wev-green:        #757d5c;
  --wev-green-dark:   #545c3e;
  --wev-green-soft:   #a1ab83;
  --wev-green-light:  #edf0e6;
  --wev-cream:        #f9f8f4;
  --wev-cream-card:   #ffffff;
  --wev-black:        #1d1f1a;
  --wev-text-muted:   #6d7064;
  --wev-border:       rgba(117, 125, 92, 0.22);
  --font-cinzel:      'Cinzel', serif;
  --font-serif:       'Playfair Display', Georgia, serif;
  --font-body:        'Cormorant Garamond', Georgia, serif;
  --font-script:      'Alex Brush', cursive;
  --font-sans:        'Jost', sans-serif;
  --ease-lux:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:      cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  font-size: 16px;
  background-color: var(--wev-cream);
  color: var(--wev-black);
  -webkit-font-smoothing: antialiased;
}

body {
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  background-color: var(--wev-cream);
  color: var(--wev-black);
  -webkit-overflow-scrolling: touch;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ========= BILINGUAL DISPLAY RULES ========= */
body[data-lang="en"] .lang-id { display: none !important; }
body[data-lang="en"] .lang-en { display: inline !important; }
body[data-lang="id"] .lang-en { display: none !important; }
body[data-lang="id"] .lang-id { display: inline !important; }

/* ========= SECTION ENGINE (100dvh STRICT SNAP) ========= */
.section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 46px 16px 70px;
  box-sizing: border-box;
}

.section-inner {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10; /* IN FRONT of falling leaves */
  height: 100%;
  justify-content: space-evenly;
}

/* ========= TOP BAR (INITIALS + LANG TOGGLE) ========= */
.top-monogram-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 900;
  background: rgba(249, 248, 244, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wev-border);
}
.top-bar-inner {
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-side {
  width: 60px;
  display: flex;
  align-items: center;
}
.monogram-text {
  font-family: var(--font-cinzel);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--wev-green-dark);
  text-align: center;
  flex: 1;
}
.lang-switch-wrap {
  justify-content: flex-end;
  gap: 3px;
}
.lang-btn {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--wev-text-muted);
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.25s ease;
}
.lang-btn.active {
  color: #ffffff;
  background: var(--wev-green);
}
.lang-divider {
  font-size: 0.65rem;
  color: var(--wev-border);
}

/* ========= BOTTOM FLOATING DOCK NAVBAR ========= */
/* ========= BOTTOM FLOATING DOCK NAVBAR (Always Available Across All Pages) ========= */
.bottom-dock-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 990;
  background: rgba(255, 255, 255, 0.50); /* Exactly 50% translucent glass */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 40px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.65);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: background 0.3s var(--ease-lux), transform 0.3s var(--ease-lux);
}
.dock-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 36px;
  border-radius: 18px;
  color: var(--wev-green-dark);
  transition: all 0.3s var(--ease-lux);
}
.dock-item svg { width: 18px; height: 18px; }
.dock-item.active {
  background: var(--wev-green);
  color: #ffffff;
}

/* ========= FLOATING SIDE TAB "QR CODE" ========= */
.wev-side-tab {
  position: fixed;
  right: 0;
  top: 36%; /* Raised higher up to avoid overlapping cards */
  transform: translateY(-50%);
  z-index: 850;
  background: rgba(255, 255, 255, 0.45); /* Translucent frosted glass */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--wev-green-dark);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  box-shadow: -2px 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}
.wev-side-tab:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-50%) translateX(-3px);
  box-shadow: -4px 6px 20px rgba(0, 0, 0, 0.1);
}
.wev-qr-icon {
  width: 15px;
  height: 15px;
  color: var(--wev-green);
  opacity: 0.85;
}
.wev-qr-label {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  opacity: 0.85;
}

/* ========= FLOATING MUSIC BUTTON ========= */
.floating-music-btn {
  position: fixed;
  bottom: 68px;
  right: 14px;
  z-index: 850;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.50); /* 50% translucent */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--wev-green-dark);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(25px) scale(0.85);
  transition: opacity 0.4s var(--ease-lux), transform 0.4s var(--ease-lux), visibility 0.4s ease;
}
.floating-music-btn.btn-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.floating-music-btn.playing .music-icon {
  animation: spinMusic 4s linear infinite;
}
@keyframes spinMusic { 100% { transform: rotate(360deg); } }
.music-icon { width: 17px; height: 17px; }

/* ========= RICH SCROLL-TRIGGERED ANIMATION ENGINE (EACH PAGE) ========= */
@keyframes softPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
  50% { transform: scale(1.06); box-shadow: 0 6px 20px rgba(117,125,92,0.35); }
}
.anim-pulse {
  animation: softPulse 2.2s ease-in-out infinite;
}

/* Botanical SVG Line Drawing on in-view */
.botanical-ornament-wrap {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 2px;
}
.small-ornament { max-width: 200px; }
.botanical-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.svg-wave {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 2.4s var(--ease-lux);
}
.in-view .svg-wave {
  stroke-dashoffset: 0;
}
.svg-leaf {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 2s var(--ease-lux) 0.35s;
}
.in-view .svg-leaf {
  stroke-dashoffset: 0;
}

/* General Fade in & Guaranteed Permanent Visibility */
.anim-fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s var(--ease-lux), transform 1.1s var(--ease-lux);
  will-change: opacity, transform;
}
.in-view .anim-fade,
.in-view.anim-fade,
.section.in-view .anim-fade,
#home .anim-fade {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Slide in from right (decorations) */
.anim-from-right {
  opacity: 0;
  transform: translateX(65px);
  transition: opacity 1.2s var(--ease-lux), transform 1.2s var(--ease-lux);
  will-change: opacity, transform;
}
.in-view .anim-from-right {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from left (Bride) */
.anim-slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1.2s var(--ease-lux) 0.15s, transform 1.2s var(--ease-lux) 0.15s;
  will-change: opacity, transform;
}
.in-view .anim-slide-left {
  opacity: 1;
  transform: translateX(0);
}

/* Slide in from right (Groom) */
.anim-slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1.2s var(--ease-lux) 0.3s, transform 1.2s var(--ease-lux) 0.3s;
  will-change: opacity, transform;
}
.in-view .anim-slide-right {
  opacity: 1;
  transform: translateX(0);
}

/* Card pop up (Event cards, Wishes board) */
.anim-card-pop {
  opacity: 0;
  transform: translateY(32px) scale(0.95);
  transition: opacity 1.1s var(--ease-lux), transform 1.1s var(--ease-lux);
  will-change: opacity, transform;
}
.in-view .anim-card-pop {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.in-view .wev-green-card:nth-child(2) {
  transition-delay: 0.25s;
}

/* Scale in (Story photo, Video) */
.anim-scale-in {
  opacity: 0;
  transform: scale(0.90) translateY(15px);
  transition: opacity 1.2s var(--ease-lux) 0.15s, transform 1.2s var(--ease-lux) 0.15s;
  will-change: opacity, transform;
}
.in-view .anim-scale-in {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Gallery Stagger Pop on in-view */
.wev-gallery-grid .gal-cell {
  opacity: 0;
  transform: translateY(24px) scale(0.94);
  transition: opacity 0.85s var(--ease-lux), transform 0.85s var(--ease-lux);
  will-change: opacity, transform;
}
.in-view .wev-gallery-grid .gal-cell:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.1s; }
.in-view .wev-gallery-grid .gal-cell:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.22s; }
.in-view .wev-gallery-grid .gal-cell:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.34s; }
.in-view .wev-gallery-grid .gal-cell:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.46s; }
.in-view .wev-gallery-grid .gal-cell:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.58s; }
.in-view .wev-gallery-grid .gal-cell:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.70s; }

/* ========= TYPOGRAPHY ========= */
.section-heading-block {
  margin-bottom: 2px;
}
.section-kicker {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wev-green);
  margin-bottom: 1px;
}
.section-script-title {
  font-family: var(--font-script);
  font-size: clamp(2.3rem, 8vw, 3.1rem);
  font-weight: 400;
  color: var(--wev-green-dark);
  line-height: 1.05;
}
.small-title { font-size: 1.85rem; }

/* ========= PAGE 1: COVER (FROSTED GLASS & POSITIONING) ========= */
.cover-section {
  padding: 0;
  justify-content: flex-end;
}
/* ========= PAGE 1: COVER & UNBOXING ANIMATIONS ========= */
.cover-bg-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 1; /* Behind leaves and text */
  overflow: hidden;
}
.cover-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.cover-bg-image.unboxed-cinematic {
  transform: scale(1.05);
}

.cover-top-label {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 15;
}
.eyebrow-cinzel {
  font-family: var(--font-cinzel);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--wev-black);
  text-transform: uppercase;
}
.sub-lang-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--wev-text-muted);
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
}

/* Frosted Bottom Card (50% Translucent Glass, Smooth Height Transition) */
.cover-frosted-card {
  position: relative;
  z-index: 15; /* In front of falling leaves */
  width: 90%;
  max-width: 420px;
  margin: 0 auto 64px; /* Sits comfortably above bottom dock navbar */
  background: rgba(255, 255, 255, 0.50); /* 50% translucent glass */
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 34px 34px 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 18px 16px 14px;
  text-align: center;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.7s ease, border-color 0.7s ease;
  overflow: hidden;
}

/* BUTTER-SMOOTH STACKED GRID CROSSFADE (Zero sudden height snaps) */
.cover-card-slider {
  display: grid;
  grid-template-areas: "cardstack";
  width: 100%;
  align-items: center;
  justify-items: center;
}
#cover-state-initial,
#cover-state-opened {
  grid-area: cardstack;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Initial State: Visible */
#cover-state-initial {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Opened State: Hidden by default */
#cover-state-opened {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

/* Smooth Crossfade when Opened */
.cover-frosted-card.is-opened #cover-state-initial {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}
.cover-frosted-card.is-opened #cover-state-opened {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Button Open Invitation */
.btn-open-invitation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--wev-border);
  border-radius: 30px;
  padding: 8px 20px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--wev-black);
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-open-invitation::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  animation: shineGleam 2.8s infinite;
  pointer-events: none !important;
}
@keyframes shineGleam {
  0% { left: -100%; }
  35%, 100% { left: 130%; }
}
.envelope-icon {
  width: 16px;
  height: 16px;
  color: var(--wev-green);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
  pointer-events: none;
}
.btn-open-invitation.opening-active {
  transform: scale(0.95);
  background: #ffffff;
  box-shadow: 0 0 25px rgba(220, 225, 235, 0.6);
  pointer-events: none;
}
.btn-open-invitation.opening-active .envelope-icon {
  transform: scale(1.25) rotate(-10deg);
  color: var(--wev-gold);
}

.cover-couple-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
}
.script-title {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 9vw, 3.2rem);
  font-weight: 400;
  color: var(--wev-black);
  line-height: 0.95;
}
.ampersand-sign {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--wev-green);
  margin: 1px 0;
}

.cover-location-pill {
  display: inline-block;
  border: 1px solid var(--wev-green);
  border-radius: 25px;
  padding: 3px 14px;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: var(--wev-green-dark);
  margin-bottom: 6px;
}
.card-divider-line {
  width: 80%;
  height: 1px;
  background: var(--wev-border);
  margin: 5px auto;
  transform-origin: center;
}
.cover-guest-meta {
  padding-top: 2px;
}
.guest-to-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--wev-text-muted);
}
.guest-name-bold {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wev-black);
  line-height: 1.25;
}

.mini-names .script-title {
  font-size: 2.1rem;
}

.wev-countdown-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0;
}
.date-side-text {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: right;
  color: var(--wev-black);
}
.date-side-text span {
  display: block;
  font-size: 0.7rem;
  color: var(--wev-text-muted);
  font-family: var(--font-sans);
}

.countdown-track-wev {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid #222;
  border-radius: 35px;
  padding: 4px 12px;
}

.cd-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cd-val {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wev-black);
  line-height: 1;
}
.cd-lbl {
  font-family: var(--font-sans);
  font-size: 0.46rem;
  letter-spacing: 0.1em;
  color: var(--wev-text-muted);
}

/* Centered Scroll Down Explore Link with Centered Arrow & 50% Transparency */
.scroll-explore-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--wev-green-dark);
  margin: 10px auto 0;
  padding: 6px 20px 5px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.50); /* 50% translucent glass */
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: bounceChevron 2.4s ease-in-out infinite;
}
.scroll-explore-link:hover {
  background: rgba(255, 255, 255, 0.75);
  color: var(--wev-black);
}
.scroll-explore-text {
  text-align: center;
  display: block;
}
.chevron-arrow-svg {
  width: 14px;
  height: 14px;
  stroke: var(--wev-green-dark);
  display: block;
  margin: 0 auto;
}
@keyframes bounceChevron {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

/* Micro Silver Sparks (Kecil2, Silver, Banyak, Pelan & Smooth) */
.unboxing-sparkle-container {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none !important;
  z-index: 25;
}
.unboxing-sparkle-dot {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.95), 0 0 6px rgba(226, 232, 240, 0.7);
  animation-name: silverSparkleFly;
  animation-timing-function: cubic-bezier(0.12, 0.8, 0.32, 1);
  animation-fill-mode: forwards;
  pointer-events: none !important;
}
@keyframes silverSparkleFly {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }
  15% {
    opacity: 1;
    transform: translate(calc(var(--dx) * 0.3), calc(var(--dy) * 0.3)) scale(1.3);
  }
  60% {
    opacity: 0.8;
    transform: translate(calc(var(--dx) * 0.75), calc(var(--dy) * 0.75)) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.2);
  }
}

/* ========= PAGE 2: STORY (SMOOTH & CALM CINEMATIC ANIMATIONS) ========= */
.story-inner {
  justify-content: center;
  gap: 6px;
}

/* 1. Botanical Ornament: Gentle float & fade without jarring horizontal flight */
.story-section .botanical-ornament-wrap,
.story-section .anim-from-right {
  opacity: 0;
  transform: translateY(12px) translateZ(0);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.in-view.story-section .botanical-ornament-wrap,
.story-section.in-view .botanical-ornament-wrap,
.in-view .botanical-ornament-wrap,
.in-view.story-section .anim-from-right,
.story-section.in-view .anim-from-right,
.in-view .anim-from-right {
  opacity: 1 !important;
  transform: translateY(0) translateZ(0) !important;
}

/* 2. SVG Line Strokes: Slow and meditative drawing effect */
.story-section .svg-wave {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 2.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.in-view.story-section .svg-wave,
.story-section.in-view .svg-wave,
.in-view .svg-wave {
  stroke-dashoffset: 0 !important;
}
.story-section .svg-leaf {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}
.in-view.story-section .svg-leaf,
.story-section.in-view .svg-leaf,
.in-view .svg-leaf {
  stroke-dashoffset: 0 !important;
}

/* 3. Section Heading Block: Luxurious, slow upward drift */
.story-section .section-heading-block.anim-fade {
  opacity: 0;
  transform: translateY(14px) translateZ(0);
  transition: opacity 1.7s cubic-bezier(0.16, 1, 0.3, 1) 0.18s, transform 1.7s cubic-bezier(0.16, 1, 0.3, 1) 0.18s;
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.in-view.story-section .section-heading-block.anim-fade,
.story-section.in-view .section-heading-block.anim-fade,
.in-view .section-heading-block.anim-fade {
  opacity: 1 !important;
  transform: translateY(0) translateZ(0) !important;
}

/* 4. Story Photo Card: Subtle 0.97 to 1.0 expansion with soft lift (eliminates stutter) */
.story-photo-card {
  width: 100%;
  max-width: 250px;
  height: 290px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 3px solid #ffffff;
}
.story-section .story-photo-card.anim-scale-in,
.story-photo-card.anim-scale-in {
  opacity: 0;
  transform: translateY(16px) scale(0.97) translateZ(0);
  transition: opacity 1.9s cubic-bezier(0.16, 1, 0.3, 1) 0.36s, transform 1.9s cubic-bezier(0.16, 1, 0.3, 1) 0.36s;
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.in-view.story-section .story-photo-card.anim-scale-in,
.story-section.in-view .story-photo-card.anim-scale-in,
.in-view .story-photo-card {
  opacity: 1 !important;
  transform: translateY(0) scale(1) translateZ(0) !important;
}
.story-photo {
  object-position: center 18% !important;
}

/* 5. Sacred Quran Verse Quote Card: Soft whisper-fade entrance */
.story-quote-card {
  max-width: 360px;
  padding: 0 8px;
}
.story-section .story-quote-card.anim-fade,
.story-quote-card.anim-fade {
  opacity: 0;
  transform: translateY(12px) translateZ(0);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.56s, transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.56s;
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.in-view.story-section .story-quote-card.anim-fade,
.story-section.in-view .story-quote-card.anim-fade,
.in-view .story-quote-card {
  opacity: 1 !important;
  transform: translateY(0) translateZ(0) !important;
}
.story-quote-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--wev-black);
  margin-bottom: 3px;
}
.story-surah {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--wev-green-dark);
}

/* ========= PAGE 3: COUPLE ========= */
.couple-inner {
  justify-content: center;
  gap: 8px;
}
.couple-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.couple-profile-card {
  background: #ffffff;
  border: 1px solid var(--wev-border);
  border-radius: 20px;
  padding: 10px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.couple-photo-frame {
  width: 100%;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 6px;
}
.couple-portrait {
  object-position: center 15% !important;
}
.role-badge {
  font-family: var(--font-cinzel);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wev-green);
  margin-bottom: 2px;
}
/* Beautiful, romantic & elegant couple typography */
.couple-fullname {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 1.18rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--wev-green-dark);
  margin-bottom: 2px;
  line-height: 1.16;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.couple-parents-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin-top: 2px;
  width: 100%;
  min-height: 72px;
}
.parents-role-title {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--wev-text-muted);
  margin-bottom: 2px;
  display: block;
}
.parent-name {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--wev-black);
  line-height: 1.22;
}
.parent-amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.76rem;
  color: var(--wev-green);
  line-height: 1;
  margin: 1px 0;
}
/* Instagram Pill Badge */
.btn-couple-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: auto;
  padding: 3px 10px;
  border-radius: 18px;
  background: rgba(117, 125, 92, 0.08);
  border: 1px solid rgba(117, 125, 92, 0.22);
  color: var(--wev-green-dark);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-couple-ig:hover {
  background: var(--wev-green);
  color: #ffffff;
  border-color: var(--wev-green);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(117, 125, 92, 0.25);
}
.btn-couple-ig:hover .ig-icon {
  stroke: #ffffff;
}
.ig-icon {
  width: 11px;
  height: 11px;
  stroke: var(--wev-green-dark);
  transition: stroke 0.25s ease;
}

/* ========= PAGE 4: EVENT ========= */
.event-inner {
  justify-content: center;
  gap: 6px;
}
.event-cards-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.wev-green-card {
  background: var(--wev-green);
  color: #ffffff;
  border-radius: 20px;
  padding: 12px 14px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(84, 92, 62, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.card-hearts-ornament {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  opacity: 0.85;
}
.event-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
}
.event-sub-label {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.72rem;
  opacity: 0.85;
}
.event-card-day {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
}
.event-card-time {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  opacity: 0.92;
  margin-bottom: 2px;
}
.event-location-box {
  margin: 2px 0 5px;
}
.event-venue-name {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
}
.event-venue-address {
  font-family: var(--font-body);
  font-size: 0.68rem;
  opacity: 0.88;
  max-width: 310px;
  line-height: 1.3;
}
.event-btn-row {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.btn-black-pill {
  background: var(--wev-black);
  color: #ffffff;
  border-radius: 20px;
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: transform 0.2s ease;
}
.btn-black-pill:hover { transform: scale(1.04); }

/* ========= PAGE 5: GALLERY (FITTED TO PREVENT CROPPING) ========= */
.gallery-section {
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: 46px 16px 70px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}
.gallery-inner {
  justify-content: center;
  gap: 4px;
}
.prewedding-video-block { width: 100%; }
.video-container {
  width: 100%;
  max-width: 360px;
  margin: 2px auto 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  border: 2px solid #ffffff;
  background: #000;
}
.prewed-video {
  width: 100%;
  max-height: 160px;
  display: block;
}
.gallery-block { width: 100%; }
.wev-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 105px);
  gap: 6px;
  width: 100%;
  max-width: 380px;
  margin: 3px auto 0;
}
.gal-cell {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.gal-cell img {
  object-position: center 15% !important; /* Preserves faces in gallery previews */
  transition: transform 0.4s var(--ease-lux);
}
.gal-cell:hover img { transform: scale(1.08); }

/* ========= PAGE 6: GIFT & RSVP (SPACIOUS & PINNED FOOTER) ========= */
.gift-rsvp-section {
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: 40px 14px 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}
.gift-inner {
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  justify-content: space-between;
  gap: 4px;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-width: none;
}
.gift-inner::-webkit-scrollbar {
  display: none;
}
.rsvp-action-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.btn-black-pill-large {
  background: var(--wev-black);
  color: #ffffff;
  border-radius: 25px;
  padding: 8px 22px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.btn-black-pill-large:hover { transform: scale(1.03); }

/* Live Wishes Board (Kotak Ucapan) with Comfortable Spacing */
.live-wishes-board {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid var(--wev-border);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin-bottom: 8px;
}
.wishes-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--wev-border);
  padding-bottom: 5px;
  margin-bottom: 6px;
}
.wishes-board-title {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--wev-green-dark);
}
.wishes-counter {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  color: var(--wev-text-muted);
}
.wishes-scroll-box {
  max-height: 110px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: var(--wev-green-soft) transparent;
}
.wish-card {
  background: var(--wev-cream);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.72rem;
}
.wish-header-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}
.wish-sender-name {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--wev-black);
}
.wish-attend-tag {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  color: var(--wev-green);
}
.wish-message-text {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--wev-text-muted);
  line-height: 1.35;
}

/* Compact Bank Cards with Generous Spacing */
.gift-compact-block {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 12px;
}
.gift-compact-block .section-script-title {
  margin-bottom: 4px;
}
.gift-note-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--wev-text-muted);
  margin-bottom: 6px;
}
.bank-cards-compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}
.wev-bank-card-mini {
  background: #ffffff;
  border: 1px solid var(--wev-border);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.bank-mini-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.bank-brand-bca {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.7rem;
  color: #00569e;
}
.bank-brand-mandiri {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.7rem;
  color: #002d62;
}
.bank-owner {
  font-family: var(--font-serif);
  font-size: 0.65rem;
  color: var(--wev-text-muted);
}
.bank-mini-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.acc-num {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--wev-black);
}
.btn-mini-copy {
  background: var(--wev-cream);
  border: 1px solid var(--wev-border);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  cursor: pointer;
  color: var(--wev-black);
  transition: all 0.2s ease;
}
.btn-mini-copy:hover {
  background: var(--wev-green);
  color: #ffffff;
}

/* Footer Centered Vertically Between Divider Line and Bottom Navbar Dock */
.wev-footer {
  margin-top: auto; /* Pushes footer to bottom of container */
  padding-top: 28px; /* Comfortable breathing space below top divider line */
  padding-bottom: 24px; /* Perfectly balanced spacing above floating navbar dock */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  border-top: 1px solid rgba(117, 125, 92, 0.16);
  box-sizing: border-box;
}
.footer-couple-mini {
  font-family: var(--font-script);
  font-size: 1.25rem;
  color: var(--wev-green-dark);
  line-height: 1;
  margin-bottom: 2px;
}
.footer-aa-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  color: var(--wev-text-muted);
  opacity: 0.75;
}
.footer-aa-logo {
  width: 13px;
  height: 13px;
  object-fit: contain;
  opacity: 0.85;
}

/* ========= MODALS ========= */
.wev-modal-backdrop, .checkin-backdrop, .lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(29, 31, 26, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.wev-modal-backdrop.active, .checkin-backdrop.active, .lightbox-backdrop.active {
  opacity: 1;
  pointer-events: all;
}
.wev-modal-card, .lightbox-card {
  background: var(--wev-cream);
  border-radius: 22px;
  padding: 20px 16px;
  max-width: 370px;
  width: 100%;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  text-align: center;
}
.lightbox-card { max-width: 480px; padding: 10px; background: transparent; }
.lightbox-card img { border-radius: 16px; max-height: 75vh; object-fit: contain; }
.wev-modal-close, .checkin-drawer-close, .lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.6rem;
  color: var(--wev-text-muted);
  cursor: pointer;
}
.wev-rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  text-align: left;
}
.form-group label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--wev-green-dark);
  display: block;
  margin-bottom: 2px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  border: 1px solid var(--wev-border);
  border-radius: 10px;
  padding: 7px 10px;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  outline: none;
  background: #fff;
}
.btn-black-pill-submit {
  background: var(--wev-black);
  color: #fff;
  border-radius: 20px;
  padding: 9px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.form-toast-msg {
  background: var(--wev-green-light);
  color: var(--wev-green-dark);
  border-radius: 8px;
  padding: 6px;
  font-size: 0.75rem;
  text-align: center;
}

/* Checkin Drawer & QR Verification System (Anti-Fraud Multi-Tier) */
.checkin-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: min(320px, 90vw);
  height: 100dvh;
  z-index: 10000;
  background: var(--wev-cream);
  box-shadow: -8px 0 32px rgba(0,0,0,0.18);
  transition: right 0.4s var(--ease-lux);
  overflow-y: auto;
  padding: 24px 16px 36px;
  text-align: center;
}
.checkin-drawer.open { right: 0; }
.checkin-badge {
  display: inline-block;
  border-radius: 20px;
  padding: 4px 14px;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.checkin-badge.status-pending {
  background: #78716c;
  color: #fff;
}
.checkin-badge.status-verified {
  background: #15803d;
  color: #fff;
  box-shadow: 0 2px 10px rgba(21, 128, 61, 0.35);
}
.checkin-badge.status-warning {
  background: #b91c1c;
  color: #fff;
  animation: badgeWarningGlow 1.2s infinite alternate ease-in-out;
}
@keyframes badgeWarningGlow {
  0% { box-shadow: 0 0 6px rgba(185, 28, 28, 0.4); transform: scale(1); }
  100% { box-shadow: 0 0 16px rgba(220, 38, 38, 0.85); transform: scale(1.03); }
}

.checkin-title { font-family: var(--font-script); font-size: 1.8rem; margin-top: 6px; }
.checkin-guest-name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--wev-green-dark); }
.checkin-sub { font-family: var(--font-body); font-style: italic; font-size: 0.76rem; color: var(--wev-text-muted); margin: 6px 0 12px; line-height: 1.4; }

/* QR Frame & Stamp */
.checkin-qr-frame-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}
.checkin-qr-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--wev-border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#checkin-qrcode-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#checkin-qrcode-box canvas,
#checkin-qrcode-box img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 6px;
}

.checkin-stamp-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  z-index: 2;
}
.checkin-stamp-overlay.active {
  display: flex;
  animation: stampPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.stamp-circle {
  border: 2.5px dashed #15803d;
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  color: #15803d;
  transform: rotate(-10deg);
  background: rgba(240, 253, 244, 0.85);
  transition: all 0.3s ease;
}
.checkin-stamp-overlay.warning .stamp-circle {
  border-color: #b91c1c;
  color: #b91c1c;
  background: rgba(254, 242, 242, 0.92);
}
.stamp-check { font-size: 1.8rem; line-height: 1; font-weight: 900; }
.stamp-text { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.stamp-sub { font-family: var(--font-sans); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.06em; margin-top: 2px; }

@keyframes stampPop {
  0% { transform: scale(2.2) rotate(20deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.checkin-qr-hint { font-family: var(--font-sans); font-size: 0.64rem; color: var(--wev-text-muted); margin: 8px 0 10px; font-weight: 500; }

/* Alert Box with Anti-Fraud Warning */
.checkin-alert-box {
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}
.checkin-alert-box.alert-pending {
  background: #fbf9f5;
  border: 1px solid #e7e3db;
  color: #57534e;
}
.checkin-alert-box.alert-verified {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #14532d;
  box-shadow: 0 2px 10px rgba(22, 101, 52, 0.08);
}
.checkin-alert-box.alert-warning {
  background: #fef2f2;
  border: 2px solid #ef4444;
  color: #991b1b;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.18);
  animation: alertShake 0.4s ease-in-out;
}
@keyframes alertShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.checkin-alert-icon { font-size: 1.4rem; flex-shrink: 0; }
.checkin-alert-title { font-family: var(--font-sans); font-size: 0.74rem; font-weight: 700; }
.checkin-alert-desc { font-family: var(--font-serif); font-size: 0.72rem; margin-top: 2px; line-height: 1.35; }

/* Quick Action Button & Lockout */
.btn-checkin-action {
  width: 100%;
  padding: 10px 14px;
  border-radius: 22px;
  border: none;
  font-weight: 700;
  font-size: 0.74rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-checkin-action.btn-pending {
  background: #3f4733;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(63, 71, 51, 0.3);
}
.btn-checkin-action.btn-pending:hover {
  background: #2b3221;
  transform: translateY(-1px);
}
.btn-checkin-action.btn-locked {
  background: #f4f4f5;
  color: #71717a;
  border: 1px solid #d4d4d8;
  cursor: not-allowed;
  opacity: 0.88;
}

.checkin-info-card {
  background: #fff;
  border: 1px solid var(--wev-border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  text-align: left;
}

/* PIN-Protected Admin Reset Link */
.checkin-admin-zone {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--wev-border);
  text-align: center;
}
.btn-admin-reset-link {
  background: none;
  border: none;
  color: var(--wev-text-muted);
  font-size: 0.62rem;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.btn-admin-reset-link:hover {
  opacity: 1;
  color: #b91c1c;
}

/* ========= AESTHETIC 3D BOTANICAL FALLING LEAVES EFFECT ========= */
.falling-leaves-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
  z-index: 2; /* STRICTLY BEHIND all text, photos & cards (which are z-index: 10) */
  overflow: hidden;
  perspective: 600px;
}

.falling-leaf {
  position: absolute;
  pointer-events: none !important;
  user-select: none;
  top: -40px;
  opacity: 0;
  will-change: transform, opacity;
  animation-name: leafFallAndFlutter;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-iteration-count: infinite;
}

.leaf-svg {
  pointer-events: none !important;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.65;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.04));
}

/* Subtle, Calm, Whisper-soft Falling & Fluttering */
@keyframes leafFallAndFlutter {
  0% {
    opacity: 0;
    transform: translate3d(0, -40px, 0) rotateZ(0deg) rotateY(0deg) rotateX(0deg);
  }
  15% {
    opacity: 0.55;
  }
  45% {
    transform: translate3d(20px, 45vh, 8px) rotateZ(60deg) rotateY(180deg) rotateX(20deg);
    opacity: 0.55;
  }
  75% {
    transform: translate3d(-18px, 78vh, -4px) rotateZ(130deg) rotateY(360deg) rotateX(-15deg);
    opacity: 0.4;
  }
  95% {
    opacity: 0.15;
  }
  100% {
    opacity: 0;
    transform: translate3d(12px, 106vh, 0px) rotateZ(190deg) rotateY(540deg) rotateX(0deg);
  }
}

/* Mini aesthetic sizes (8px - 14px) and calm floating speeds */
.leaf-1 {
  left: 6%;
  width: 12px;
  height: 20px;
  animation-duration: 15s;
  animation-delay: 0s;
}
.leaf-2 {
  left: 18%;
  width: 10px;
  height: 17px;
  animation-duration: 18s;
  animation-delay: 4s;
}
.leaf-3 {
  left: 32%;
  width: 9px;
  height: 15px;
  animation-duration: 16s;
  animation-delay: 8s;
}
.leaf-4 {
  left: 48%;
  width: 13px;
  height: 22px;
  animation-duration: 20s;
  animation-delay: 1.5s;
}
.leaf-5 {
  left: 62%;
  width: 8px;
  height: 13px;
  animation-duration: 23s;
  animation-delay: 10s;
  filter: blur(0.4px);
}
.leaf-6 {
  left: 76%;
  width: 11px;
  height: 19px;
  animation-duration: 14s;
  animation-delay: 5.5s;
}
.leaf-7 {
  left: 88%;
  width: 9px;
  height: 15px;
  animation-duration: 17s;
  animation-delay: 2.5s;
}
.leaf-8 {
  left: 25%;
  width: 10px;
  height: 17px;
  animation-duration: 19s;
  animation-delay: 9.5s;
}
.leaf-9 {
  left: 55%;
  width: 8px;
  height: 14px;
  animation-duration: 21s;
  animation-delay: 6s;
  filter: blur(0.3px);
}
.leaf-10 {
  left: 82%;
  width: 14px;
  height: 23px;
  animation-duration: 16s;
  animation-delay: 12s;
}
/* 3D Realistic Falling & Fluttering Dynamics */
@keyframes leafFallAndFlutter {
  0% {
    opacity: 0;
    transform: translate3d(0, -60px, 0) rotateZ(0deg) rotateY(0deg) rotateX(0deg);
  }
  10% {
    opacity: 0.9;
  }
  25% {
    transform: translate3d(28px, 25vh, 10px) rotateZ(45deg) rotateY(180deg) rotateX(30deg);
  }
  50% {
    transform: translate3d(-35px, 52vh, 0px) rotateZ(110deg) rotateY(360deg) rotateX(-20deg);
  }
  75% {
    transform: translate3d(30px, 78vh, 15px) rotateZ(180deg) rotateY(540deg) rotateX(35deg);
    opacity: 0.85;
  }
  95% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translate3d(-15px, 108vh, 0px) rotateZ(240deg) rotateY(720deg) rotateX(0deg);
  }
}

/* Varied positions, speeds, delays, sizes & depth */
.leaf-1 {
  left: 6%;
  width: 22px;
  height: 38px;
  animation-duration: 13s;
  animation-delay: 0s;
}
.leaf-2 {
  left: 18%;
  width: 18px;
  height: 32px;
  animation-duration: 16s;
  animation-delay: 3.5s;
}
.leaf-3 {
  left: 32%;
  width: 16px;
  height: 28px;
  animation-duration: 14s;
  animation-delay: 7s;
}
.leaf-4 {
  left: 48%;
  width: 24px;
  height: 40px;
  animation-duration: 18s;
  animation-delay: 1.2s;
}
.leaf-5 {
  left: 62%;
  width: 13px;
  height: 22px;
  animation-duration: 21s;
  animation-delay: 9s;
  filter: blur(0.8px); /* Depth of field blur */
}
.leaf-6 {
  left: 76%;
  width: 20px;
  height: 35px;
  animation-duration: 12s;
  animation-delay: 4.8s;
}
.leaf-7 {
  left: 88%;
  width: 15px;
  height: 26px;
  animation-duration: 15s;
  animation-delay: 2s;
}
.leaf-8 {
  left: 25%;
  width: 19px;
  height: 33px;
  animation-duration: 17s;
  animation-delay: 8.5s;
}
.leaf-9 {
  left: 55%;
  width: 14px;
  height: 24px;
  animation-duration: 19s;
  animation-delay: 5s;
  filter: blur(0.6px);
}
.leaf-10 {
  left: 82%;
  width: 26px;
  height: 44px;
  animation-duration: 14.5s;
  animation-delay: 11s;
}


/* ==================== DESKTOP & CROSS-BROWSER FIT (CHROME, SAFARI, EDGE, FIREFOX) ==================== */

/* Safari & standard font smoothing & base scroll behavior */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ensure sections never clip content on short laptop screens */
/* Mobile Slide heights: Sections 1-5 fit 100dvh, Section 6 scrolls to footer */
.gallery-section {
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: 46px 16px 70px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}
.gift-rsvp-section {
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding: 40px 14px 62px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}

/* Ensure images don't distort in Safari */
.polaroid-photo-frame img,
.card-image-wrap img,
.wev-gallery-grid img,
.cover-bg-image {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Desktop Presentation Container (Screens >= 768px) */
@media (min-width: 768px) {
  html {
    background-color: #121513;
    background-image: 
      radial-gradient(circle at 18% 25%, rgba(117, 125, 92, 0.28) 0%, transparent 55%),
      radial-gradient(circle at 82% 75%, rgba(197, 160, 89, 0.18) 0%, transparent 50%),
      radial-gradient(circle at 50% 50%, rgba(249, 248, 244, 0.02) 0%, transparent 80%);
    min-height: 100vh;
  }

  body {
    max-width: 460px;
    margin: 0 auto;
    position: relative;
    background-color: var(--wev-cream);
    min-height: 100vh;
    min-height: 100dvh;
    box-shadow: 
      0 0 50px rgba(0, 0, 0, 0.55),
      0 20px 80px rgba(0, 0, 0, 0.40),
      0 0 1px rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Fixed Bars / Docks / Tabs constrained to the 460px invitation on desktop */
  .top-monogram-bar {
    max-width: 460px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
  }

  .wev-side-tab {
    right: auto;
    left: calc(50% + 230px);
    transform: translate(-100%, -50%);
  }
  .wev-side-tab:hover {
    transform: translate(-100%, -50%) translateX(-3px);
  }

  .floating-music-btn {
    right: auto;
    left: calc(50% + 230px - 50px);
  }

  .checkin-drawer {
    right: auto;
    left: calc(50% + 230px);
    transition: transform 0.4s var(--ease-lux);
  }
  .checkin-drawer.open {
    transform: translateX(-100%);
  }

  /* Modals on desktop */
  .wev-modal-backdrop, .lightbox-backdrop, .checkin-backdrop {
    max-width: 100vw;
  }
  .wev-modal-card, .lightbox-card {
    max-width: 440px;
    margin: auto;
  }
}

/* Desktop Side Presentation (Wide Screens >= 1100px) */
@media (max-width: 1099px) {
  .desktop-side-brand,
  .desktop-side-tip {
    display: none !important;
  }
}

@media (min-width: 1100px) {
  .desktop-side-brand {
    position: fixed;
    top: 50%;
    left: calc(50% - 230px - 320px);
    transform: translateY(-50%);
    width: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 50;
    pointer-events: none;
    color: #e5e0d8;
    animation: fadeInDesk 1.2s ease forwards;
  }

  .desk-brand-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  }

  .desk-monogram {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
  }
  .desk-monogram span { opacity: 0.35; margin: 0 2px; }

  .desk-studio {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-bottom: 14px;
  }

  .desk-divider {
    width: 40px;
    height: 1px;
    background: rgba(197, 160, 89, 0.5);
    margin-bottom: 16px;
  }

  .desk-wedding-kicker {
    font-family: var(--font-sans);
    font-size: 0.60rem;
    letter-spacing: 0.22em;
    color: #c5a059;
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .desk-couple-title {
    font-family: var(--font-script);
    font-size: 2.3rem;
    font-weight: 400;
    color: #fdfbf7;
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .desk-wedding-date {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 6px;
  }

  .desk-venue {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.50);
    letter-spacing: 0.05em;
    line-height: 1.4;
    margin-bottom: 18px;
  }

  .desk-bottom-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    pointer-events: auto;
  }
  .desk-bottom-tag span {
    font-family: var(--font-sans);
    font-size: 0.60rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.40);
  }
  .desk-bottom-tag a {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: #c5a059;
    text-decoration: none;
    transition: color 0.2s;
  }
  .desk-bottom-tag a:hover {
    color: #fff;
  }

  /* Desktop Right Tip Panel */
  .desktop-side-tip {
    position: fixed;
    top: 50%;
    right: calc(50% - 230px - 260px);
    transform: translateY(-50%);
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 50;
    pointer-events: none;
    color: #e5e0d8;
    animation: fadeInDesk 1.4s ease forwards;
  }
  .desk-tip-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  }
  .desk-phone-icon {
    font-size: 26px;
    margin-bottom: 8px;
    opacity: 0.85;
  }
  .desk-tip-title {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fdfbf7;
    margin-bottom: 6px;
  }
  .desk-tip-desc {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.45;
  }
}

@keyframes fadeInDesk {
  from { opacity: 0; transform: translateY(-46%); }
  to { opacity: 1; transform: translateY(-50%); }
}

/* Universal Permanent in-view Guarantee for all sections */
.in-view .anim-slide-left,
.section.in-view .anim-slide-left {
  opacity: 1 !important;
  transform: translateX(0) !important;
}
.in-view .anim-slide-right,
.section.in-view .anim-slide-right {
  opacity: 1 !important;
  transform: translateX(0) !important;
}
.in-view .anim-card-pop,
.section.in-view .anim-card-pop {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}
.in-view .anim-scale-in,
.section.in-view .anim-scale-in {
  opacity: 1 !important;
  transform: scale(1) translateY(0) !important;
}

/* ===== LUMIÈRE TIMELINE & DRESSCODE SECTIONS ===== */
.timeline-section .section-inner,
.dresscode-section .section-inner {
  justify-content: center;
  gap: 12px;
}

.lumiere-timeline-card,
.lumiere-dresscode-card {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(117, 125, 92, 0.28);
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(84, 92, 62, 0.12);
  padding: clamp(14px, 2.2vh, 20px) clamp(16px, 3vw, 22px);
  box-sizing: border-box;
}

.lumiere-timeline-items {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.3vh, 12px);
  position: relative;
}

.lumiere-timeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.lumiere-tl-time {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--wev-green);
  min-width: 44px;
}

.lumiere-tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wev-green);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(117, 125, 92, 0.2);
}

.lumiere-tl-title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wev-black);
  margin: 0;
}

.lumiere-tl-desc {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--wev-text-muted);
  margin: 0;
}

/* Dresscode Swatches */
.dresscode-lead {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--wev-black);
  margin-bottom: 12px;
}

.lumiere-swatches-grid {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  margin: 14px 0 16px;
}

.swatch-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.swatch-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: inline-block;
}

.swatch-label {
  font-family: var(--font-sans);
  font-size: 0.60rem;
  color: var(--wev-black);
  font-weight: 600;
}

.dresscode-footer-pill {
  display: inline-block;
  background: var(--wev-green);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  padding: 5px 14px;
  border-radius: 15px;
  letter-spacing: 0.05em;
}

/* Compact Dock for 8 Items */
.bottom-dock-nav {
  gap: 4px;
  padding: 4px 8px;
}
.dock-item {
  width: 33px;
  height: 33px;
  border-radius: 17px;
}
.dock-item svg {
  width: 16px;
  height: 16px;
}

