@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300..700;1,300..700&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;1,300;1,400&display=swap');

@font-face {
  font-family: "brittany";
  src: url("./assets/BrittanySignature.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

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

/* =========================================
   DESIGN TOKENS (main content)
   ========================================= */
:root {
  --bg-950: #fdf5f6;
  --bg-900: #f8e8eb;
  --bg-800: #eed5da;
  --bg-700: #e0bdc4;

  /* Glassmorphism */
  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.80);
  --glass-border: rgba(224, 180, 190, 0.45);

  --gold: #b8838d;            /* Rose Gold Accent */
  --gold-soft: rgba(184, 131, 141, 0.25);
  --champagne: #6d4048;       /* Judul Utama (Deep Rose) */
  --ink-light: #4a282f;       /* Teks Isi (Deep Plum) */
  --ink-muted: #8c6870;       /* Teks Muted/Keterangan */

  --font-script: "brittany", cursive;
  --font-serif: "Crimson Pro", serif;
  --font-body: "Poppins", "Montserrat", sans-serif;
}

.glass, .quote-box, .event-card, .rsvp-form {
  box-shadow: 
    0 20px 40px -15px rgba(109, 64, 72, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html, body {
  min-height: 100dvh;
  background: #eaeaea;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-family: "Poppins", "Montserrat", sans-serif;
}

/* Mobile-only container */
.mobile-page {
  width: 100%;
  max-width: 390px;
  min-height: 100dvh;
  position: relative;
  background: var(--bg-950);
}

/* Lock scroll while cover is active */
.mobile-page.is-locked {
  height: 100dvh;
  overflow: hidden;
}

/* =========================================
   1. COVER OVERLAY (FRONT PAGE)
   ========================================= */
.front-page {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding-bottom: 70px;
  overflow: hidden;
  background-image: 
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 0.8) 100%
    ),
    url("assets/cover.webp");

  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.nama {
  position: relative;
  width: 75%;
  margin: 30px auto 0;
  text-align: center;
}

.nama img {
  width: 100%;
  display: block;
  animation: framePop 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.front-title {
  font-family: "Crimson Pro", serif;
  font-style: italic;
  font-size: 1rem;
  font-weight: 300;
  color: #fceee9;
  text-align: center;
  margin: 40px auto 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  animation: fadeInDown 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.nama-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  animation: textFadeInAbsolute 1s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both;
}

.nama h1 {
  font-family: "brittany", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: #d2bfaf;
  text-align: center;
  margin: 0;
  line-height: 2;
}

.nama h1:nth-child(2) {
  font-size: 1.4rem;
  line-height: 0.9;
}

.bottom-content {
  margin-top: auto;
  margin-bottom: 5rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.tamu {
  position: relative;
  width: 80%;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}

.tamu h2 {
  font-size: 1rem;
  color: #d2bfaf; 
  margin: 6px 0;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 4px rgba(0, 0, 0, 0.6);
}

.tamu h3 {
  font-size: 0.85rem;
  color: #fceee9;
  margin: 6px 0;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.btn-buka {
  margin: 40px auto 0;
  display: flex;
  width: fit-content;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-family: "Crimson Pro", serif;
  color: #fceee9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 400;
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  animation: buttonPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.3s both;
}

.btn-buka:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.flower-fade {
  position: absolute;
  bottom: -2%;
  left: 50%;
  width: 145%;
  transform: translateX(-50%);
  overflow: hidden;
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
  animation: fadeInBackground 1.5s ease-out 0.1s both;
}

.flower-l {
  position: absolute;
  bottom: -5%;
  left: 25%;
  width: 70%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  transform-origin: bottom left;
  animation: 
    flowerBloomLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both,
    swayLeft 5s ease-in-out 1.4s infinite alternate;
}

.flower-r {
  position: absolute;
  bottom: -5%;
  left: -30%;
  width: 70%;
  overflow: hidden;
  z-index: 1;
  transform: scaleX(-1);
  pointer-events: none;
  transform-origin: bottom right;
  animation: 
    flowerBloomRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both,
    swayRight 6s ease-in-out 1.5s infinite alternate;
}

/* =========================================
   2. MAIN INVITATION — SECTION SYSTEM
   ========================================= */
.main-content {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 15% 0%, rgba(201, 167, 105, 0.10) 0%, transparent 55%),
    radial-gradient(140% 70% at 90% 30%, rgba(96, 60, 54, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-950) 0%, var(--bg-900) 35%, var(--bg-800) 70%, var(--bg-950) 100%);
}

.ambient-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}

.orb-1 { top: 2%;   left: -10%; width: 220px; height: 220px; background: var(--gold-soft); animation: driftA 16s ease-in-out infinite alternate; }
.orb-2 { top: 20%;  right: -14%; width: 260px; height: 260px; background: rgba(96, 60, 54, 0.6); animation: driftB 20s ease-in-out infinite alternate; }
.orb-3 { top: 42%;  left: -12%; width: 200px; height: 200px; background: rgba(201, 167, 105, 0.22); animation: driftA 18s ease-in-out infinite alternate-reverse; }
.orb-4 { top: 62%;  right: -10%; width: 240px; height: 240px; background: rgba(74, 47, 43, 0.6); animation: driftB 15s ease-in-out infinite alternate; }
.orb-5 { top: 80%;  left: 5%;   width: 180px; height: 180px; background: var(--gold-soft); animation: driftA 22s ease-in-out infinite alternate; }
.orb-6 { top: 95%;  right: 8%;  width: 210px; height: 210px; background: rgba(96, 60, 54, 0.5); animation: driftB 19s ease-in-out infinite alternate-reverse; }

@keyframes driftA {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(24px, 34px) scale(1.12); }
}

@keyframes driftB {
  from { transform: translate(0, 0) scale(1.05); }
  to   { transform: translate(-28px, -22px) scale(0.94); }
}

.section {
  position: relative;
  z-index: 1;
  padding: 72px 22px;
  text-align: center;
  perspective: 1200px;
  background: url(assets/background.webp);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.section-eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-title {
  position: relative;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--champagne);
  margin-bottom: 36px;
  line-height: 1.3;
  z-index: 2;
}

/* =========================================
   SCROLL REVEAL & POP-IN ANIMATION SYSTEM
   ========================================= */

/* Base container animation */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.95);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Every inner element pop/fade-in system */
.reveal .section-eyebrow,
.reveal .section-title,
.reveal .event-card,
.reveal .livestream-box,
.reveal .gift-card,
.reveal .rsvp-form,
.reveal .field,
.reveal .wish-item,
.reveal .story-paragraph,
.reveal .couple-photo-frame,
.reveal .couple-glass-card,
.reveal .couple-amp,
.reveal .gallery-carousel,
.reveal .closing-quote,
.reveal .closing-names,
.reveal .closing-thanks,
.reveal .closing-hashtag,
.reveal .gift-intro,
.reveal .gift-note {
  opacity: 0;
  transform: translateY(24px) scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Active in-view state for inner elements */
.reveal.in-view .section-eyebrow,
.reveal.in-view .section-title,
.reveal.in-view .event-card,
.reveal.in-view .livestream-box,
.reveal.in-view .gift-card,
.reveal.in-view .rsvp-form,
.reveal.in-view .field,
.reveal.in-view .wish-item,
.reveal.in-view .story-paragraph,
.reveal.in-view .couple-photo-frame,
.reveal.in-view .couple-glass-card,
.reveal.in-view .couple-amp,
.reveal.in-view .gallery-carousel,
.reveal.in-view .closing-quote,
.reveal.in-view .closing-names,
.reveal.in-view .closing-thanks,
.reveal.in-view .closing-hashtag,
.reveal.in-view .gift-intro,
.reveal.in-view .gift-note {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered Pop-In Delays */
.reveal.in-view .section-eyebrow { transition-delay: 0.1s; }
.reveal.in-view .section-title { transition-delay: 0.2s; }

/* Couple Section Stagger */
.reveal.in-view .couple-photo-frame { transition-delay: 0.15s; }
.reveal.in-view .couple-glass-card { transition-delay: 0.3s; }
.reveal.in-view .couple-amp { transition-delay: 0.2s; }

/* Event Cards Stagger */
.reveal.in-view .event-card-top { transition-delay: 0.25s; }
.reveal.in-view .livestream-box { transition-delay: 0.4s; }
.reveal.in-view .event-card-bottom { transition-delay: 0.55s; }

/* Story Paragraphs Cascading Pop-In */
.reveal.in-view .story-paragraph:nth-child(1) { transition-delay: 0.15s; }
.reveal.in-view .story-paragraph:nth-child(2) { transition-delay: 0.25s; }
.reveal.in-view .story-paragraph:nth-child(3) { transition-delay: 0.35s; }
.reveal.in-view .story-paragraph:nth-child(4) { transition-delay: 0.45s; }
.reveal.in-view .story-paragraph:nth-child(5) { transition-delay: 0.55s; }

/* Gallery Stagger */
.reveal.in-view .gallery-carousel { transition-delay: 0.25s; }

/* Gift Cards Stagger */
.reveal.in-view .gift-intro { transition-delay: 0.15s; }
.reveal.in-view .gift-card:nth-of-type(1) { transition-delay: 0.25s; }
.reveal.in-view .gift-card:nth-of-type(2) { transition-delay: 0.4s; }
.reveal.in-view .gift-note { transition-delay: 0.5s; }

/* RSVP Form & Fields Stagger */
.reveal.in-view .rsvp-form { transition-delay: 0.2s; }
.reveal.in-view .field:nth-child(1) { transition-delay: 0.3s; }
.reveal.in-view .field:nth-child(2) { transition-delay: 0.4s; }
.reveal.in-view .field:nth-child(3) { transition-delay: 0.5s; }

/* Wishes Pop-In Stagger */
.reveal.in-view .wish-item:nth-child(1) { transition-delay: 0.1s; }
.reveal.in-view .wish-item:nth-child(2) { transition-delay: 0.2s; }
.reveal.in-view .wish-item:nth-child(3) { transition-delay: 0.3s; }

/* Closing Section Stagger */
.reveal.in-view .closing-quote { transition-delay: 0.15s; }
.reveal.in-view .closing-names { transition-delay: 0.3s; }
.reveal.in-view .closing-thanks { transition-delay: 0.4s; }
.reveal.in-view .closing-hashtag { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal *, .orb {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Scroll progress thread */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--champagne));
  z-index: 200;
  transition: width 0.1s linear;
}

/* Glass card base */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow:
    0 30px 50px -18px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* --- Hero section --- */
.hero-section {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 40px 22px 90px;
}

.hero-title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 3rem;
  color: var(--champagne);
  margin: 6px 0 30px;
  text-shadow: 0 2px 20px rgba(201, 167, 105, 0.25);
}

.quote-box {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 30px 50px -18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.8;
  max-width: 320px;
  margin: 30px auto;
  padding: 26px 22px;
  position: relative;
  z-index: 2;
}

.quote-box cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  font-size: 0.85rem;
}

.trees-dv {
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

.hero-section .section-eyebrow,
.hero-section .hero-title,
.hero-section .quote-box {
  position: relative;
  z-index: 2;
  opacity: 0;
}

.is-opened .hero-section .trees-dv {
  animation: fadeInBackground 1.4s ease-out 0.2s forwards;
}

.is-opened .hero-section .section-eyebrow {
  animation: fadeInDown 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.is-opened .hero-section .hero-title {
  animation: framePop 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

.is-opened .hero-section .quote-box {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

/* --- Couple section --- */
.couple-section {
  z-index: 4;
}

.top-flower {
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  opacity: 1 !important;
  overflow: hidden;
  pointer-events: none;
  animation: fadeInBackground 1.5s ease-out 0.1s both;
}

.couple-zigzag {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.couple-block {
  position: relative;
  display: flex;
  width: 100%;
  margin-bottom: 46px;
}

.couple-block.reverse {
  flex-direction: row-reverse;
  margin-bottom: 90px;
}

.couple-photo-frame {
  position: relative;
  width: 70%;
}

.couple-block.reverse .couple-photo-frame {
  margin-left: auto;
}

.couple-photo-frame::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
  filter: blur(24px);
  z-index: -1;
}

.couple-photo {
  aspect-ratio: 3 / 4;
  border-radius: 130px 130px 18px 18px;
  background: linear-gradient(160deg, rgba(201, 167, 105, 0.32) 0%, rgba(51, 32, 29, 0.92) 100%);
  box-shadow: 0 25px 50px -14px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.couple-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.couple-flower-decor {
  position: absolute;
  bottom: 30%;
  right: -47%;
  width: 150px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
  transform-origin: bottom right; 
  animation: swayZoom 6s ease-in-out infinite alternate;
}

.couple-block.reverse .couple-flower-decor {
  right: auto;
  left: 10%;
  bottom: 38%;
  transform-origin: bottom left;
  animation: swayZoomFlipped 6s ease-in-out infinite alternate;
}

.couple-glass-card {
  position: absolute;
  bottom: -22px;
  width: 68%;
  padding: 20px 18px;
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  text-align: left;
  z-index: 1;
}

.couple-block:not(.reverse) .couple-glass-card {
  right: -8%;
}

.couple-block.reverse .couple-glass-card {
  left: -8%;
  text-align: right;
}

.couple-role {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 4px;
}

.couple-name {
  font-family: var(--font-script);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--champagne);
  margin-bottom: 8px;
  line-height: 1.15;
}

.couple-parents {
  font-size: 0.66rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.couple-amp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-script);
  font-size: 3rem;
  font-weight: 500;
  color: var(--gold);
  margin: 12px 0;
}

.flower-couple {
  width: 120%;
  position: absolute;
  bottom: -3%;
  z-index: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1 !important;
  overflow: hidden;
  pointer-events: none;
  animation: fadeInBackground 1.5s ease-out 0.1s both;
}

.amp-vine {
  width: 170px;
  height: auto;
  opacity: 0.95;
  pointer-events: none;
}

.amp-vine-right {
  transform: scaleX(-1);
}

/* --- Event cards (Akad / Resepsi) --- */
.event-section {
  z-index: 3;
}

.event-card {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 45px -15px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--glass-border);
  pointer-events: none;
  opacity: 0.8;
}

.event-card-top {
  border-radius: 190px 190px 24px 24px;
  padding: 48px 22px 32px;
  margin-bottom: 20px;
}

.event-card-top::after {
  border-radius: 182px 182px 16px 16px;
}

.event-card-bottom {
  border-radius: 24px 24px 190px 190px;
  padding: 30px 28px 50px;
  margin-top: 20px;
}

.event-card-bottom::after {
  border-radius: 16px 16px 182px 182px;
}

.event-card-title {
  font-family: var(--font-script);
  font-size: 2rem;
  font-weight: 400;
  color: var(--champagne);
  margin-bottom: 10px;
}

.event-date {
  font-weight: 600;
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.event-detail {
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin: 3px 0;
}

.event-place {
  margin-top: 6px;
}

.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -3px;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  background: linear-gradient(90deg, #dca3ac 0%, #9f606c 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 10px 24px -8px rgba(125, 68, 79, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-map:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(125, 68, 79, 0.65);
  filter: brightness(1.08);
}

.livestream-box {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.3);
}

.icon-live {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex-shrink: 0;
}

.livestream-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--champagne);
}

.livestream-note {
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.btn-live {
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-live:hover {
  background: var(--gold);
  color: #241512;
}

.pillars {
  width: 160%;
  position: absolute;
  bottom: 0%;
  z-index: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1 !important;
  overflow: hidden;
  pointer-events: none;
  animation: fadeInBackground 1.5s ease-out 0.1s both;
}

.pillars-btm {
  width: 120%;
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -6%;
  transform: translateX(-50%);
  opacity: 1 !important;
  overflow: hidden;
  pointer-events: none;
  animation: fadeInBackground 1.5s ease-out 0.1s both;
}

/* --- Love story --- */
.story-section {
  padding-top: 0;
  z-index: 2;
}

.story-flower {
  width: 40%;
  position: absolute;
  top: 35%;
  z-index: 1;
  left: -25%;
  opacity: 1 !important;
  overflow: hidden;
  pointer-events: none;
  animation: swayZoom 6s ease-in-out 1.5s infinite alternate;
}

.story-flower-r {
  width: 40%;
  position: absolute;
  top: 60%;
  right: -20%;
  z-index: 1;
  opacity: 1 !important;
  overflow: hidden;
  pointer-events: none;
  animation: swayZoom 5s cubic-bezier(0.46, 0.03, 0.52, 0.96) 1.5s infinite alternate;
}

.story-photo {
  width: calc(100% + 45px);
  margin-left: -22px;
  margin-right: -23px;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0 0 28px 28px; 
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px 70px;
  z-index: 2;
  text-align: center;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    transparent 100%
  );
}

.story-header-overlay .section-eyebrow {
  color: #fceee9;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  margin-bottom: 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.story-header-overlay .section-title {
  color: #ffffff;
  font-family: "brittany", Arial, sans-serif;
  font-size: 2.2rem;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.story-photo-start {
  transform: rotate(-2deg);
  margin-bottom: -36px;
}

.story-photo-end {
  transform: rotate(2deg);
  margin-top: -36px;
}

.story-glass-card {
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(960%);
  -webkit-backdrop-filter: blur(22px) saturate(960%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 30px 22px 30px;
  text-align: left;
  box-shadow: 0 30px 50px -18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.story-paragraph {
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.story-paragraph + .story-paragraph {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(201, 167, 105, 0.3);
}

.story-badge {
  display: inline-block;
  font-weight: 700;
  font-size: 0.65rem;
  color: #8c6a38;
  background: rgba(201, 167, 105, 0.18);
  border: 1px solid rgba(201, 167, 105, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
  letter-spacing: 0.5px;
}

/* --- Gallery --- */
.gallery-carousel {
  position: relative;
  width: calc(100% + 45px);
  margin-left: -22px;
  margin-right: -23px;
  padding: 0px 0 90px;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  padding: 0 max(22px, calc(50% - 118px));
  align-items: center;
  height: 260px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  position: relative;
  flex: 0 0 clamp(176px, 55vw, 236px);
  height: 170px;
  scroll-snap-align: center;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--glass);
  box-shadow: 0 18px 30px -22px rgba(74, 40, 47, 0.75);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.58;
  filter: saturate(0.8) brightness(0.86);
  transform: scale(0.86);
  transform-origin: center;
  transition:
    opacity 0.38s ease,
    filter 0.38s ease,
    transform 0.38s ease,
    box-shadow 0.38s ease,
    border-color 0.38s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 58%, rgba(37, 19, 23, 0.28));
  pointer-events: none;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  opacity: 0.9;
  filter: saturate(1) brightness(0.96);
}

.gallery-item:focus-visible,
.gallery-control:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.gallery-item.is-active {
  opacity: 1;
  filter: saturate(1.06) brightness(1);
  transform: scale(1.08);
  box-shadow: 0 26px 34px -20px rgba(74, 40, 47, 0.78), 0 0 0 7px rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.78);
  z-index: 2;
}

.gallery-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--champagne);
  font-size: 1.7rem;
  line-height: 1;
  box-shadow: 0 12px 24px -16px rgba(74, 40, 47, 0.8);
  transform: translateY(-50%);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.gallery-control:hover {
  background: var(--champagne);
  color: #fff8f4;
  transform: translateY(-50%) scale(1.05);
}

.gallery-control-prev { left: 14px; }
.gallery-control-next { right: 14px; }

/* Lightbox Pop-In Image */
.lightbox-img-pop {
  width: auto;
  height: auto;
  max-width: min(92vw, 390px);
  max-height: 82dvh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(38, 20, 25, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.lightbox.is-open { display: flex; }

.lightbox-content {
  width: auto;
  max-width: min(92vw, 390px);
  max-height: 82dvh;
  background: transparent;
  border: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champagne);
  font-family: var(--font-body);
  font-size: 0.85rem;
  overflow: hidden;
}

.lightbox-content img { display: block; }

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--champagne);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  color: var(--champagne);
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

@media (max-width: 360px) {
  .gallery-track { padding-inline: max(18px, calc(50% - 102px)); }
  .gallery-item { flex-basis: 204px; height: 158px; }
  .gallery-control { width: 34px; height: 34px; }
}

/* --- Wedding gift --- */
.gift-frame {
  position: absolute;
  top: -2%;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  opacity: 1 !important;
  overflow: hidden;
  pointer-events: none;
  animation: fadeInBackground 1.5s ease-out 0.1s both;
}

.gift-flower {
  position: absolute;
  top: -3%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  opacity: 1 !important;
  overflow: hidden;
  pointer-events: none;
  animation: fadeInBackground 1.5s ease-out 0.1s both;
}

.gift-intro {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.7;
  max-width: 320px;
  margin: -14px auto 28px;
}

.gift-card {
  background: #ffffff;
  border: 1px solid rgba(74, 40, 47, 0.08);
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: 0 14px 30px -14px rgba(74, 40, 47, 0.28);
}

.gift-bank-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 8px;
}

.bank-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
}

.gift-bank {
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
  color: var(--ink-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.gift-number {
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
  font-size: 1.1rem;
  color: var(--champagne);
  font-weight: 600;
}

.gift-owner {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin: 4px 0 16px;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-800);
  border: 1px solid var(--glass-border);
  color: var(--champagne);
  padding: 8px 18px;
  border-radius: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.25s ease;
}

.btn-copy:hover { background: var(--bg-700); }

.btn-copy.is-copied {
  background: var(--gold);
  color: #241512;
  border-color: var(--gold);
}

.gift-note {
  font-size: 0.75rem;
  color: var(--ink-muted);
  max-width: 300px;
  margin: 8px auto 0;
  line-height: 1.6;
}

/* --- RSVP & wishes --- */
.rsvp-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 30px 50px -18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.3px;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-light);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px 12px;
  /* background: rgba(0, 0, 0, 0.18); */
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-muted);
  opacity: 0.7;
}

.field select option {
  background: var(--bg-900);
  color: var(--ink-light);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.btn-submit {
  align-self: flex-start;
  background: linear-gradient(90deg, #dca3ac 0%, #9f606c 100%);
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(201, 167, 105, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(201, 167, 105, 0.65);
}

.wishes-list {
  position: relative;
  z-index: 5;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-height: 270px;
  overflow-y: auto;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
}

.wishes-list::-webkit-scrollbar { width: 4px; }
.wishes-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 10px; }
.wishes-list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; opacity: 0.6; }

.wish-item {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 14px 16px;
  flex-shrink: 0;
}

.wish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 8px;
}

.wish-name {
  font-weight: 600;
  color: var(--champagne);
  font-size: 0.85rem;
}

.wish-status {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid;
  white-space: nowrap;
}

.wish-status.hadir { color: #9fd7ad; border-color: rgba(159, 215, 173, 0.4); background: rgba(159, 215, 173, 0.1); }
.wish-status.tidak-hadir { color: #e3a3a3; border-color: rgba(227, 163, 163, 0.4); background: rgba(227, 163, 163, 0.1); }
.wish-status.ragu-ragu { color: var(--gold); border-color: rgba(201, 167, 105, 0.4); background: rgba(201, 167, 105, 0.1); }

.wish-message {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.wishes-empty {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
  padding: 12px 0;
}

/* --- Closing --- */
.closing-section { padding-bottom: 100px; }

.closing-ornament {
  width: 160px;
  height: 26px;
  color: var(--gold-soft);
  margin-bottom: 24px;
}

.closing-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.8;
  max-width: 300px;
  margin: 20px auto 26px;
}

.closing-names {
  font-family: var(--font-script);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--champagne);
  padding: 10px 0;
  margin: 20px 0;
}

.closing-thanks {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-bottom: 6px;
}

.closing-hashtag {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.5px;
}

/* --- Floating music toggle --- */
.music-toggle {
  position: fixed;
  bottom: 22px;
  right: max(22px, calc((100vw - 430px) / 2 + 22px));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 150;
}

.music-toggle .icon {
  width: 20px;
  height: 20px;
  animation: spin 4s linear infinite;
}

.music-toggle.is-paused .icon { animation-play-state: paused; }

@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================
   3. KEYFRAMES & UTILITIES
   ========================================= */
.page-exit {
  animation: slideUpExit 1.3s cubic-bezier(0.77, 0, 0.175, 1) forwards !important;
  pointer-events: none;
}

@keyframes slideUpExit {
  to {
    transform: translate(-50%, -100dvh);
    opacity: 0;
  }
}

@keyframes flowerBloomLeft {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.7) translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(0);
  }
}

@keyframes flowerBloomRight {
  from {
    opacity: 0;
    transform: scaleX(-1) scale(0.7) translateY(40px);
  }
  to {
    opacity: 1;
    transform: scaleX(-1) scale(1) translateY(0);
  }
}

@keyframes framePop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes textFadeInAbsolute {
  from { opacity: 0; transform: translate(-50%, -60%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes buttonPop {
  from { opacity: 0; transform: translateY(25px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeInBackground {
  from { opacity: 0; }
  to { opacity: 0.6; }
}

@keyframes swayLeft {
  0% { transform: translateX(-50%) rotate(0deg); }
  50% { transform: translateX(-50%) rotate(2.5deg); }
  100% { transform: translateX(-50%) rotate(-2deg); }
}

@keyframes swayRight {
  0% { transform: scaleX(-1) rotate(0deg); }
  50% { transform: scaleX(-1) rotate(-2.5deg); }
  100% { transform: scaleX(-1) rotate(2deg); }
}

@keyframes swayZoom {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(3.5deg) scale(1.06); }
  100% { transform: rotate(-2.5deg) scale(0.98); }
}

@keyframes swayZoomFlipped {
  0% { transform: scaleX(-1) rotate(0deg) scale(1); }
  50% { transform: scaleX(-1) rotate(-3.5deg) scale(1.06); }
  100% { transform: scaleX(-1) rotate(2.5deg) scale(0.98); }
}

@media (min-width: 431px) {
  .mobile-page { box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); }
}