/* ==========================================================================
   THE WEDDING OF ANASTASIA & KONSTANTIN
   Theme: European Botanical Rustic (Villa Balbiano Inspired)
   Scroll System: 100dvh Mandatory Snap (Identical to MONO)
   Language: 100% English
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-parchment: #f8f6f0;      /* Warm Italian limestone linen cream */
  --bg-parchment-soft: #f3f0e8; /* Soft linen alternate */
  --bg-olive: #4b5141;          /* Deep muted Tuscan olive green */
  --bg-olive-hover: #3e4336;    /* Darker olive for interactions */
  --bg-sand: #ece7de;           /* Warm sandstone / taupe card background */
  
  --text-main: #2b2d27;         /* Deep botanical charcoal / antique ink */
  --text-muted: #63685c;        /* Soft olive-grey subtitle and description */
  --text-light: #f8f6f0;        /* Parchment white text on olive cards */
  --text-light-muted: #d8dcd3;  /* Subdued white text */
  
  --accent-gold: #bfa473;       /* Subtle antique gold */
  --border-subtle: rgba(75, 81, 65, 0.16);
  --border-olive: rgba(248, 246, 240, 0.25);
  --shadow-soft: 0 8px 24px rgba(43, 45, 39, 0.06);
  --shadow-card: 0 12px 32px rgba(43, 45, 39, 0.09);

  /* Typography Stack */
  --font-title: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Alex Brush', cursive;
  --font-cursive: 'Caveat', cursive;
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==================== 1. NATIVE MANDATORY SCROLL SNAP ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  font-size: 16px;
  background-color: var(--bg-parchment);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-parchment);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Every Section is Strictly 100dvh (One Page per Screen) */
.section {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 55px 18px 45px;
}

.section-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* ==================== 2. COMMON HEADERS & ORNAMENTS ==================== */
.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 4px;
}

.leaf-ornament {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6px auto 0;
  max-width: 130px;
}

.leaf-ornament svg {
  width: 100%;
  height: auto;
}

/* ==================== 3. PAGE DOWN NAVIGATION ARROW ==================== */
.page-down-nav {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--bg-olive);
  text-decoration: none;
  z-index: 50;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition-smooth);
}

.page-down-nav:hover {
  transform: translateX(-50%) translateY(2px);
}

.page-down-nav * {
  pointer-events: none;
}

.down-nav-text {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.down-arrow-icon {
  font-size: 1.4rem;
  line-height: 0.8;
  animation: bounceDown 1.8s infinite;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(4px); }
  60% { transform: translateY(2px); }
}

.hero-section .page-down-nav {
  bottom: 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(75, 81, 65, 0.25);
  border-radius: 24px;
  padding: 8px 24px;
  box-shadow: 0 4px 16px rgba(43, 45, 39, 0.1);
  z-index: 50;
  cursor: pointer;
  pointer-events: auto;
}

.hero-section .page-down-nav:hover {
  background: #ffffff;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 45, 39, 0.16);
}

.hero-section .down-nav-text {
  color: var(--bg-olive);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
}

/* ==================== 4. FLOATING MUSIC BUTTON ==================== */
.floating-music {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--bg-olive);
  color: var(--text-light);
  border: 1px solid rgba(248, 246, 240, 0.3);
  box-shadow: 0 6px 20px rgba(43, 45, 39, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.floating-music:hover {
  transform: scale(1.08);
  background-color: var(--bg-olive-hover);
}

.music-disc {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.music-icon-wreath {
  width: 28px;
  height: 28px;
  animation: spinSlow 8s linear infinite;
  animation-play-state: paused;
}

.floating-music.playing .music-icon-wreath {
  animation-play-state: running;
}

.music-notes-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-light);
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==================== 5. TOP NAVBAR (SLIDES IN AFTER COVER) ==================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  background: rgba(248, 246, 240, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

.site-header.nav-visible {
  transform: translateY(0);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-main);
  padding: 4px 0;
  position: relative;
}

.nav-link:hover {
  color: var(--bg-olive);
}

.nav-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.wreath-svg {
  width: 58px;
  height: auto;
}

/* ==================== PAGE 1: COVER / HERO ==================== */
.hero-section {
  background: url('img/cover-bg.jpg') center center/cover no-repeat;
  text-align: center;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(248, 246, 240, 0.90) 0%,
    rgba(248, 246, 240, 0.82) 45%,
    rgba(248, 246, 240, 0.92) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-crest {
  margin-bottom: 8px;
}

.crest-svg {
  width: 78px;
  height: auto;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 2.75rem;
  font-weight: 500;
  letter-spacing: 6px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.ampersand-part {
  font-family: var(--font-script);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--bg-olive);
  line-height: 0.7;
  margin: 2px 0;
  text-transform: none;
  letter-spacing: normal;
}

.hero-date {
  margin-top: 14px;
  font-family: var(--font-title);
}

.date-text {
  font-size: 1.15rem;
  letter-spacing: 4px;
  color: var(--text-main);
  font-weight: 600;
  display: block;
}

.date-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.hero-venue {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.hero-guest-card {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(75, 81, 65, 0.2);
  border-radius: 8px;
  padding: 12px 22px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 16px rgba(43, 45, 39, 0.05);
}

.guest-badge-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.guest-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--bg-olive);
}

.guest-note {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.3;
}

/* ==================== PAGE 2: TIMELINE ==================== */
.timeline-section {
  background-color: var(--bg-parchment);
}

.timeline-wrapper {
  position: relative;
  width: 100%;
  margin-top: 15px;
}

.timeline-line {
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 1px;
  background-color: rgba(75, 81, 65, 0.25);
  z-index: 1;
}

.timeline-items {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  text-align: center;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--bg-parchment);
  border: 1px solid var(--bg-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-olive);
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(43, 45, 39, 0.05);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-icon-bubble {
  background-color: var(--bg-olive);
  color: var(--text-light);
  transform: scale(1.08);
}

.timeline-icon-bubble svg {
  width: 24px;
  height: 24px;
}

.timeline-time {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.timeline-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 2px;
}

.timeline-desc {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==================== PAGE 3: OUR STORY ==================== */
.story-section {
  background-color: var(--bg-parchment-soft);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.story-text-col {
  position: relative;
  text-align: center;
}

.botanical-sketch-corner {
  position: absolute;
  top: -30px;
  left: -20px;
  width: 100px;
  opacity: 0.35;
  pointer-events: none;
}

.story-paragraphs {
  margin-top: 14px;
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-align: center;
}

.story-paragraphs p {
  margin-bottom: 10px;
  text-align: center;
}

.story-signature {
  margin-top: 16px;
  text-align: center;
}

.script-quote {
  font-family: var(--font-cursive);
  font-size: 1.6rem;
  color: var(--bg-olive);
  line-height: 1.2;
}

.story-photo-col {
  display: flex;
  justify-content: center;
}

.story-photo-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  background: #fff;
  padding: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.story-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.photo-caption-tag {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==================== PAGE 4 & 5: THE BRIDE & THE GROOM ==================== */
.couple-single-section {
  background-color: var(--bg-parchment);
}

.couple-profile-card {
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
}

.couple-arch-frame {
  width: 195px;
  height: 260px;
  margin: 0 auto 14px;
  border-radius: 110px 110px 10px 10px;
  overflow: hidden;
  border: 2px solid var(--bg-olive);
  padding: 4px;
  background-color: #fff;
  box-shadow: var(--shadow-soft);
}

.couple-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 96px 96px 6px 6px;
}

.couple-fullname {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.couple-parents {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.couple-parents strong {
  color: var(--text-main);
}

.couple-bio {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-style: italic;
}

/* ==================== PAGE 6: 4 ACCENT CARDS ==================== */
.details-section {
  background-color: var(--bg-parchment-soft);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.card-item {
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.card-item:hover {
  transform: translateY(-4px);
}

.card-olive {
  background-color: var(--bg-olive);
  color: var(--text-light);
}

.card-sand {
  background-color: var(--bg-sand);
  color: var(--text-main);
  border: 1px solid rgba(75, 81, 65, 0.15);
}

.card-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.card-divider-light, .card-divider-dark {
  width: 80px;
  height: 12px;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.card-olive .card-desc { color: var(--text-light-muted); }
.card-sand .card-desc { color: var(--text-muted); }

/* Swatches */
.swatches-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.swatch-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(248, 246, 240, 0.6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.swatch-1 { background-color: #4a5043; }
.swatch-2 { background-color: #7c8672; }
.swatch-3 { background-color: #d7cfc2; }
.swatch-4 { background-color: #f8f6f0; }

.card-subnote {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: auto;
}

/* Villa sketch */
.villa-sketch-wrap {
  width: 110px;
  height: 55px;
  margin-bottom: 10px;
}

.villa-sketch-svg {
  width: 100%;
  height: 100%;
}

.venue-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.venue-address {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 14px;
}

/* Countdown */
.card-countdown {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
}

.cd-num {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bg-olive);
  line-height: 1;
}

.cd-lbl {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.cd-sep {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--bg-olive);
  margin-bottom: 8px;
}

/* Countdown sketch */
.countdown-sketch-wrap {
  width: 110px;
  height: 55px;
  margin: 4px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-sketch-svg {
  width: 100%;
  height: 100%;
}

/* Buttons */
.btn-card-action {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  background-color: var(--bg-olive);
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  margin-top: auto;
}

.btn-card-action:hover {
  background-color: var(--bg-olive-hover);
}

.btn-card-action-light {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  background-color: var(--text-light);
  color: var(--bg-olive);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  margin-top: auto;
}

.btn-card-action-light:hover {
  background-color: #fff;
}

/* Gift Cards inside Card 4 */
.gift-icon-wrap {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  color: var(--text-light);
}

.gift-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.gift-accounts-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.gift-acc-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-olive);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.bank-name {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 1px;
  color: var(--text-light-muted);
}

.acc-num {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.acc-holder {
  font-size: 0.68rem;
  color: var(--text-light-muted);
}

.btn-copy {
  background-color: var(--text-light);
  color: var(--bg-olive);
  border: none;
  padding: 4px 10px;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-copy.copied {
  background-color: #799a6c;
  color: #fff;
}

/* QRIS Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(43, 45, 39, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active { display: flex; }

.modal-box {
  background-color: var(--bg-parchment);
  border-radius: 12px;
  padding: 30px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.btn-close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.qris-img-wrap {
  width: 190px;
  height: 190px;
  margin: 0 auto 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.qris-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-footer-note {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==================== PAGE 7: GALLERY ==================== */
.gallery-section {
  background-color: var(--bg-parchment);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}

.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  background-color: #fff;
  padding: 4px;
  height: 150px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.video-container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.video-frame {
  position: relative;
  padding-bottom: 48%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
  background-color: #000;
}

.wedding-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Staggered Gallery Reveal Animation (Gentle Sequential Flow) */
.gal-stagger-1 { transition-delay: 0.15s !important; }
.gal-stagger-2 { transition-delay: 0.30s !important; }
.gal-stagger-3 { transition-delay: 0.48s !important; }
.gal-stagger-4 { transition-delay: 0.66s !important; }
.gal-stagger-5 { transition-delay: 0.84s !important; }
.gal-stagger-6 { transition-delay: 1.02s !important; }
.gal-stagger-7 { transition-delay: 1.20s !important; }

/* ==================== PAGE 8: RSVP & GUEST BOOK ==================== */
.rsvp-section {
  background-color: var(--bg-parchment-soft);
}

.rsvp-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
  margin-bottom: 20px;
  align-items: start;
}

.rsvp-form {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group.full-width {
  margin-top: 10px;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  background-color: var(--bg-parchment);
  border: 1px solid rgba(75, 81, 65, 0.25);
  border-radius: 4px;
  color: var(--text-main);
  font-size: 0.88rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--bg-olive);
  background-color: #fff;
}

.form-action {
  margin-top: 14px;
}

.btn-submit-rsvp {
  width: 100%;
  padding: 11px;
  background-color: var(--bg-olive);
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-submit-rsvp:hover {
  background-color: var(--bg-olive-hover);
}

.form-success-banner {
  margin-top: 10px;
  padding: 8px;
  background-color: rgba(121, 154, 108, 0.15);
  border: 1px solid #799a6c;
  color: #3f5e33;
  border-radius: 4px;
  font-size: 0.8rem;
  text-align: center;
}

/* Live Guest Book */
.wishes-board {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.wishes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.wishes-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  letter-spacing: 1.5px;
}

.wishes-count-badge {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  background-color: var(--bg-sand);
  border-radius: 12px;
}

.wishes-list-container {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.wish-item {
  background-color: var(--bg-parchment);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 10px;
}

.wish-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.wish-author {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
}

.wish-tag {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  padding: 2px 6px;
  border-radius: 10px;
}

.wish-tag.hadir { background: rgba(121, 154, 108, 0.2); color: #3f5e33; }
.wish-tag.tidak { background: rgba(197, 85, 85, 0.15); color: #8c2e2e; }
.wish-tag.ragu { background: rgba(200, 160, 60, 0.15); color: #8a6a12; }

.wish-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.35;
}

.wish-time {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  color: #999;
  margin-top: 3px;
}

/* Footer in Page 8 */
.site-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.footer-monogram {
  width: 50px;
  height: auto;
  margin-bottom: 6px;
}

.footer-couple-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  letter-spacing: 4px;
  margin-bottom: 2px;
}

.footer-sign {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 4px;
}

.footer-brand {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 1px;
  color: #888c80;
}

.footer-aa-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 5px;
}

.footer-aa-logo-img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}


/* ==================== 6. ANIMATION ENGINE (TRIGGERS PER PAGE - LUXURY SLOW PACING) ==================== */
.reveal, .anim-up, .anim-left, .anim-right, .anim-up-delay-1, .anim-up-delay-2, .anim-up-delay-3, .anim-up-delay-4, .anim-up-delay-5, .gallery-item, .video-container {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.35s cubic-bezier(0.16, 1, 0.3, 1), transform 1.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.anim-left { transform: translateX(-30px); }
.anim-right { transform: translateX(30px); }

/* In-View Class: Activated when section is active */
.in-view .reveal,
.in-view.reveal,
.in-view .anim-up,
.in-view .anim-left,
.in-view .anim-right,
.in-view .anim-up-delay-1,
.in-view .anim-up-delay-2,
.in-view .anim-up-delay-3,
.in-view .anim-up-delay-4,
.in-view .anim-up-delay-5,
.in-view .gallery-item,
.in-view .video-container {
  opacity: 1;
  transform: translate(0, 0);
}

.anim-up-delay-1 { transition-delay: 0.20s; }
.anim-up-delay-2 { transition-delay: 0.40s; }
.anim-up-delay-3 { transition-delay: 0.62s; }
.anim-up-delay-4 { transition-delay: 0.84s; }
.anim-up-delay-5 { transition-delay: 1.06s; }

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 900px) {
  .site-header {
    height: 48px;
  }

  .nav-container {
    padding: 4px 20px;
    height: 48px;
  }

  .wreath-svg {
    width: 44px;
    height: auto;
  }

  .section {
    padding: 48px 14px 36px;
  }

  .section:not(.hero-section) {
    padding-top: 64px;
    padding-bottom: 28px;
  }

  .hero-title {
    font-size: 2.1rem;
    letter-spacing: 4px;
  }

  .ampersand-part {
    font-size: 2.6rem;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .story-photo-frame {
    max-width: 320px;
    margin: 0 auto;
  }

  .story-img {
    max-height: 240px;
  }

  .couple-arch-frame {
    width: 175px;
    height: 235px;
    margin-bottom: 12px;
  }

  .botanical-sketch-corner {
    display: none;
  }

  .story-signature {
    text-align: center;
    width: 100%;
    margin-top: 14px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .card-item {
    padding: 14px 10px;
  }

  .card-desc {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .gallery-item {
    height: 95px;
  }

  .video-container {
    max-width: 600px;
  }

  .video-frame {
    padding-bottom: 48%;
  }

  .rsvp-wrapper {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .wishes-list-container {
    max-height: 160px;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }

  .site-header {
    height: 42px;
  }

  .nav-container {
    padding: 2px 16px;
    height: 42px;
  }

  .nav-monogram {
    padding: 0;
  }

  .wreath-svg {
    width: 34px;
    height: auto;
  }

  .section {
    padding: 36px 12px 28px;
  }

  .section:not(.hero-section) {
    padding-top: 54px;
    padding-bottom: 20px;
    justify-content: flex-start;
  }

  .section:not(.hero-section) .section-inner {
    margin-top: auto;
    margin-bottom: auto;
  }

  .section-header {
    margin-bottom: 8px;
  }

  .section-title {
    font-size: 1.22rem;
    letter-spacing: 2px;
  }

  .leaf-ornament {
    margin: 2px auto 0;
  }

  .leaf-ornament svg {
    height: 14px;
  }

  .hero-title {
    font-size: 1.85rem;
    letter-spacing: 3px;
  }

  .ampersand-part {
    font-size: 2.3rem;
  }

  .guest-name {
    font-size: 1.15rem;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .story-text-col {
    text-align: center;
  }

  .story-paragraphs {
    margin-top: 6px;
    font-size: 0.84rem;
    line-height: 1.45;
    text-align: center;
  }

  .story-paragraphs p {
    margin-bottom: 5px;
    text-align: center;
  }

  .story-signature {
    text-align: center;
    width: 100%;
    margin-top: 8px;
  }

  .script-quote {
    font-size: 1.35rem;
    display: inline-block;
  }

  .story-photo-frame {
    max-width: 235px;
    margin: 0 auto;
  }

  .story-img {
    max-height: 160px;
  }

  .photo-caption-tag {
    font-size: 0.58rem;
    padding: 2px 8px;
  }

  .timeline-items {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }

  .timeline-icon-bubble {
    width: 38px;
    height: 38px;
    margin-bottom: 6px;
  }

  .timeline-icon-bubble svg {
    width: 18px;
    height: 18px;
  }

  .timeline-time {
    font-size: 0.85rem;
  }

  .timeline-label {
    font-size: 0.55rem;
    letter-spacing: 0.5px;
  }

  .timeline-desc {
    display: none;
  }

  .timeline-line {
    top: 26px;
  }

  .couple-arch-frame {
    width: 155px;
    height: 210px;
    margin-bottom: 8px;
  }

  .couple-fullname {
    font-size: 1.15rem;
  }

  .couple-bio {
    font-size: 0.8rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .card-item {
    padding: 8px 6px;
  }

  .card-title {
    font-size: 0.76rem;
    letter-spacing: 1px;
  }

  .card-divider-light, .card-divider-dark {
    margin-bottom: 4px;
    height: 8px;
  }

  .card-desc {
    font-size: 0.68rem;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .swatches-wrap {
    gap: 4px;
    margin-bottom: 6px;
  }

  .swatch-circle {
    width: 18px;
    height: 18px;
  }

  .villa-sketch-wrap {
    width: 72px;
    height: 36px;
    margin-bottom: 4px;
  }

  .countdown-sketch-wrap {
    width: 72px;
    height: 36px;
    margin: 2px auto 4px;
  }

  .venue-name {
    font-size: 0.82rem;
  }

  .venue-address {
    font-size: 0.68rem;
    margin-bottom: 6px;
  }

  .card-countdown {
    gap: 2px;
    margin-bottom: 8px;
  }

  .cd-num {
    font-size: 0.95rem;
  }

  .cd-lbl {
    font-size: 0.5rem;
  }

  .btn-card-action, .btn-card-action-light {
    padding: 5px 10px;
    font-size: 0.58rem;
  }

  .gift-icon-wrap {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
  }

  .gift-accounts-list {
    gap: 4px;
    margin-bottom: 6px;
  }

  .gift-acc-card {
    padding: 4px 6px;
  }

  .acc-num {
    font-size: 0.75rem;
  }

  .btn-copy {
    padding: 2px 6px;
    font-size: 0.58rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 8px;
  }

  .gallery-item {
    height: 70px;
  }

  .video-container {
    width: 100%;
    max-width: 100%;
  }

  .video-frame {
    padding-bottom: 50%;
  }

  .rsvp-section {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rsvp-wrapper {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 6px;
    width: 100%;
    max-width: 420px;
  }

  .rsvp-form {
    padding: 10px 14px;
    border-radius: 8px;
  }

  .form-row {
    gap: 8px;
  }

  .form-group label {
    font-size: 0.66rem;
    letter-spacing: 1.2px;
    margin-bottom: 2px;
  }

  .form-group input,
  .form-group select {
    padding: 6px 8px;
    font-size: 0.82rem;
    height: 32px;
  }

  .form-group.full-width {
    margin-top: 6px;
  }

  .form-group textarea {
    padding: 6px 8px;
    font-size: 0.82rem;
    height: 44px;
    min-height: 44px;
    resize: none;
  }

  .form-action {
    margin-top: 6px;
  }

  .btn-submit-rsvp {
    padding: 8px 12px;
    font-size: 0.70rem;
    letter-spacing: 1.2px;
  }

  .wishes-board {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .wishes-header {
    margin-bottom: 6px;
    padding-bottom: 4px;
  }

  .wishes-title {
    font-size: 0.84rem;
    letter-spacing: 1.2px;
  }

  .wishes-count-badge {
    font-size: 0.58rem;
    padding: 2px 6px;
  }

  .wishes-list-container {
    max-height: 110px;
    gap: 5px;
  }

  .wish-item {
    padding: 5px 8px;
  }

  .wish-author {
    font-size: 0.82rem;
  }

  .wish-tag {
    font-size: 0.55rem;
    padding: 2px 5px;
  }

  .wish-text {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .wish-time {
    font-size: 0.52rem;
  }

  .site-footer {
    margin-top: 4px;
  }

  .footer-monogram {
    width: 24px;
    margin-bottom: 2px;
  }

  .footer-couple-name {
    font-size: 0.78rem;
    letter-spacing: 2px;
    margin-bottom: 1px;
  }

  .footer-sign {
    font-size: 0.62rem;
    margin-bottom: 2px;
    line-height: 1.2;
  }

  .footer-brand {
    font-size: 0.5rem;
    letter-spacing: 0.5px;
  }

  .floating-music {
    bottom: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }
}
