/* ==========================================================================
   website06 — 永生花語・蜜桃拂曉 (Preserved Bouquet Palette)
   Color Palette:
   - Pearl Ivory: #F7F3EE
   - Peach Blush: #F8DFD6
   - Sakura Pink: #EBBEC0
   - Dusty Rose:  #D89695
   - Terracotta:  #A65E58 (Default --primary / --wine)
   - Cocoa Text:  #4A3F3D
   - Warm Taupe:  #7D6461
   ========================================================================== */

:root {
  --pearl: #F7F3EE;
  --outer-bg: #EDE6DE;
  --peach: #F8DFD6;
  --sakura: #EBBEC0;
  --dustyrose: #D89695;
  --terracotta: #A65E58;
  --wine: #A65E58;
  --primary: #A65E58;
  --cocoa: #4A3F3D;
  --warmtaupe: #7D6461;

  --font-display: Georgia, 'Noto Sans TC', '台北黑體', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  --font-serif: 'Noto Sans TC', '台北黑體', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  --font-sans: 'Noto Sans TC', '台北黑體', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
}

body.is-intro-playing {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   1. Falling Preserved Flower Petals (#petal-container)
   ========================================================================== */
#petal-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
}

.petal {
  position: fixed;
  top: -10%;
  z-index: 35;
  pointer-events: none;
  user-select: none;
  opacity: 0.65;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-5vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(105vh) translateX(45px) rotate(360deg);
    opacity: 0;
  }
}

/* ==========================================================================
   2. Floating Music Player & Quick Nav Controls
   ========================================================================== */
.bq-floating-controls {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bq-music-btn,
.bq-top-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: rgba(247, 243, 238, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--sakura);
  box-shadow: 0 6px 18px rgba(74, 63, 61, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
}

.bq-music-btn:hover,
.bq-top-btn:hover {
  transform: scale(1.06);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(166, 94, 88, 0.22);
}

.bq-music-btn svg,
.bq-top-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bq-music-btn.is-playing svg {
  animation: spinSlow 8s linear infinite;
}

/* ==========================================================================
   3. Envelope Opening Overlay (#envelope-overlay)
   ========================================================================== */
.bq-envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pearl);
  padding: 1rem;
  perspective: 1200px;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.9s ease;
}

.bq-envelope-overlay.is-leaving {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

.bq-envelope-overlay.is-hidden {
  display: none !important;
}

.bq-envelope-ambient-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 18rem;
  height: 18rem;
  border-radius: 9999px;
  background: rgba(248, 223, 214, 0.65);
  filter: blur(50px);
  transform: translate(-30%, -30%);
  pointer-events: none;
}

.bq-envelope-ambient-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20rem;
  height: 20rem;
  border-radius: 9999px;
  background: rgba(235, 190, 192, 0.55);
  filter: blur(55px);
  transform: translate(25%, 25%);
  pointer-events: none;
}

.bq-envelope-card {
  position: relative;
  width: 100%;
  max-width: 450px;
  border-radius: 32px;
  padding: 2.6rem 2rem 2.2rem;
  text-align: center;
  background: linear-gradient(165deg, #FCF9F6 0%, #F7F3EE 52%, #F2EAE1 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(235, 190, 192, 0.55);
  box-shadow:
    0 26px 65px -12px rgba(130, 74, 68, 0.24),
    0 8px 22px -6px rgba(74, 63, 61, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.bq-envelope-overlay.is-opening .bq-envelope-card {
  transform: translateY(32px) scale(0.98);
}

.bq-envelope-overlay.is-zooming .bq-envelope-card {
  transform: translateY(10px) scale(1.08);
}

.bq-envelope-folds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bq-envelope-folds svg {
  width: 100%;
  height: 100%;
}

.bq-envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8.8rem;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 7px 12px rgba(135, 82, 76, 0.16));
  transform-origin: 50% 0%;
  transform: rotateX(0deg);
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease 0.25s;
}

.bq-envelope-overlay.is-opening .bq-envelope-flap {
  transform: rotateX(165deg);
  opacity: 0.35;
}

.bq-envelope-flap svg {
  width: 100%;
  height: 100%;
}

.bq-envelope-body {
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.bq-envelope-overlay.is-zooming .bq-envelope-body {
  transform: translateY(-16px);
}

.bq-envelope-overlay.is-opening .wax-seal-btn {
  animation: none;
  transform: translateY(-28px) scale(1.22) rotate(10deg);
  opacity: 0;
  pointer-events: none;
}

.bq-envelope-overlay.is-opening .bq-envelope-hint,
.bq-envelope-overlay.is-opening .bq-envelope-footer {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.bq-envelope-divider {
  width: 3rem;
  height: 1px;
  background: var(--sakura);
  margin: 0 auto 1.5rem;
}

.bq-envelope-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-style: italic;
  font-weight: 500;
  color: var(--cocoa);
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
  line-height: 1.15;
}

.bq-envelope-chinese {
  font-size: 0.92rem;
  letter-spacing: 0.28em;
  color: var(--warmtaupe);
  margin: 0 0 1.9rem;
}

/* Realistic 3D Embossed Wax Seal Button */
.wax-seal-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.25rem auto;
}

.wax-seal-btn {
  position: relative;
  margin: 0 auto;
  width: 6.6rem;
  height: 6.6rem;
  /* Organic irregular hand-poured melted wax silhouette */
  border-radius: 53% 47% 52% 48% / 48% 53% 47% 52%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 224, 214, 0.42) 0%, rgba(255, 224, 214, 0) 38%),
    radial-gradient(circle at 72% 76%, rgba(68, 24, 21, 0.55) 0%, rgba(68, 24, 21, 0) 48%),
    radial-gradient(circle at 46% 45%, #BD6F68 0%, #A65E58 48%, #884540 82%, #6B312C 100%);
  color: #FDF8F2;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* 3D multi-layered outer lip, specular highlight & cast shadow on paper */
  box-shadow:
    0 14px 26px -4px rgba(92, 38, 34, 0.52),
    0 5px 10px -2px rgba(58, 24, 21, 0.35),
    0 0 0 2px rgba(122, 56, 51, 0.45),
    inset 3px 4px 7px rgba(255, 226, 218, 0.52),
    inset -4px -5px 9px rgba(64, 22, 19, 0.72),
    inset 0 0 12px rgba(90, 34, 30, 0.48);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease;
  animation: pulse-wax 2.8s ease-in-out infinite;
}

.wax-seal-btn:hover {
  transform: scale(1.06) rotate(-1.5deg);
}

.wax-seal-btn:active {
  transform: scale(0.95);
}

/* Top-left wax surface sheen */
.wax-seal-gloss {
  position: absolute;
  top: 0.42rem;
  left: 0.65rem;
  width: 2.6rem;
  height: 1.2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 242, 238, 0.42) 0%, rgba(255, 242, 238, 0) 100%);
  transform: rotate(-28deg);
  pointer-events: none;
  z-index: 1;
}

/* Deeply stamped inner well (debossed cavity) */
.wax-seal-well {
  position: absolute;
  inset: 0.72rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 65%, #AE625B 0%, #964E48 58%, #7C3C37 100%);
  /* Inset shadow at top-left simulates recessed stamp depth; highlight at bottom-right simulates raised outer rim */
  box-shadow:
    inset 3px 4px 8px rgba(54, 18, 15, 0.78),
    inset -2px -3px 6px rgba(248, 210, 200, 0.34),
    0 1px 2px rgba(255, 228, 220, 0.42),
    -1px -1px 2px rgba(62, 22, 19, 0.55);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wax-seal-ring {
  position: absolute;
  inset: 0.28rem;
  border-radius: 9999px;
  border: 1.2px solid rgba(252, 232, 222, 0.48);
  box-shadow:
    0 1px 1px rgba(56, 20, 17, 0.55),
    inset 0 1px 1px rgba(56, 20, 17, 0.45);
  pointer-events: none;
}

.wax-seal-flora {
  width: 100%;
  height: 100%;
  color: #FCE6DC;
  filter: drop-shadow(0 1px 1px rgba(54, 18, 15, 0.65));
}

.wax-seal-open-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  margin-top: 0.2rem;
  color: #FCE8DF;
  text-shadow: 0 1px 2px rgba(52, 17, 14, 0.75);
  opacity: 0.95;
}

@keyframes pulse-wax {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 14px 26px -4px rgba(92, 38, 34, 0.52),
      0 5px 10px -2px rgba(58, 24, 21, 0.35),
      0 0 0 0 rgba(166, 94, 88, 0.38),
      inset 3px 4px 7px rgba(255, 226, 218, 0.52),
      inset -4px -5px 9px rgba(64, 22, 19, 0.72),
      inset 0 0 12px rgba(90, 34, 30, 0.48);
  }
  50% {
    transform: scale(1.045);
    box-shadow:
      0 18px 34px -4px rgba(92, 38, 34, 0.62),
      0 7px 14px -2px rgba(58, 24, 21, 0.4),
      0 0 0 12px rgba(166, 94, 88, 0),
      inset 3px 4px 7px rgba(255, 226, 218, 0.58),
      inset -4px -5px 9px rgba(64, 22, 19, 0.72),
      inset 0 0 12px rgba(90, 34, 30, 0.48);
  }
}

.bq-envelope-hint {
  margin: 1.4rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--warmtaupe);
}

.bq-envelope-footer {
  margin-top: 2rem;
  padding-top: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--warmtaupe);
}

.bq-envelope-footer-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: var(--dustyrose);
}

/* ==========================================================================
   4. Main Boutique Container (#invitation-main)
   ========================================================================== */
.bq-main-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--pearl);
  min-height: 100vh;
  box-shadow: 0 0 50px rgba(74, 63, 61, 0.12);
  position: relative;
  overflow: hidden;
}

@media (max-width: 760px) {
  .bq-main-container {
    max-width: 100%;
    box-shadow: none;
  }
}

/* Quick Sticky Pill Navigation inside container */
.bq-sticky-nav {
  position: sticky;
  top: 0.75rem;
  z-index: 45;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
  margin-top: -3.2rem;
  margin-bottom: 0.5rem;
}

.bq-sticky-nav-inner {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.55rem;
  border-radius: 9999px;
  background: rgba(247, 243, 238, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(235, 190, 192, 0.6);
  box-shadow: 0 8px 24px rgba(74, 63, 61, 0.08);
}

.bq-sticky-nav-inner a {
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--warmtaupe);
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
}

.bq-sticky-nav-inner a:hover,
.bq-sticky-nav-inner a.is-cta {
  background: var(--primary);
  color: var(--pearl);
}

/* Scroll Reveal Transitions */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   5. Section 1: Hero Cover
   ========================================================================== */
.bq-hero {
  position: relative;
  height: 100dvh;
  min-height: 640px;
  max-height: 860px;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bq-hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bq-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.bq-hero-slide.is-active {
  opacity: 1;
}

.bq-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kenburns 18s ease-out infinite alternate;
}

@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.bq-hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(74, 63, 61, 0.22) 0%,
    rgba(74, 63, 61, 0.06) 45%,
    rgba(247, 243, 238, 0.92) 86%,
    #F7F3EE 100%
  );
}

.bq-hero-top {
  position: relative;
  z-index: 2;
  padding-top: 1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  text-align: center;
}

.bq-hero-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.1rem;
}

.bq-hero-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.9rem;
  border-radius: 9999px;
  background: rgba(74, 63, 61, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(247, 243, 238, 0.42);
  color: var(--pearl);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(74, 63, 61, 0.14);
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.bq-hero-upload-btn:hover {
  background: rgba(74, 63, 61, 0.58);
  border-color: rgba(248, 223, 214, 0.7);
  transform: translateY(-1px);
}

.bq-hero-upload-btn svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--peach);
  flex-shrink: 0;
}

.bq-hero-bottom {
  position: relative;
  z-index: 2;
  padding: 0 1.75rem 3.2rem;
  text-align: center;
}

.bq-floral-divider {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.bq-floral-divider svg {
  width: 7rem;
  height: 2rem;
  color: var(--primary);
}

.bq-hero-title {
  font-family: var(--font-display);
  font-size: 3.35rem;
  font-style: italic;
  font-weight: 500;
  color: var(--cocoa);
  margin: 0 0 0.45rem;
  line-height: 1.08;
  letter-spacing: 0.03em;
}

.bq-hero-chinese {
  font-size: 1rem;
  letter-spacing: 0.35em;
  color: var(--warmtaupe);
  font-weight: 500;
  margin: 0 0 1.4rem;
}

.bq-hero-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(248, 223, 214, 0.85);
  border: 1px solid var(--sakura);
  padding: 0.55rem 1.35rem;
  border-radius: 9999px;
  color: var(--cocoa);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  box-shadow: 0 4px 14px rgba(166, 94, 88, 0.08);
}

.bq-hero-pill-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 9999px;
  background: var(--primary);
}

.bq-scroll-cue {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--warmtaupe);
  opacity: 0.78;
}

.bq-scroll-cue span {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.bq-scroll-line {
  width: 1px;
  height: 1.8rem;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

/* ==========================================================================
   6. Section 2: Romantic Quote & Couple Card
   ========================================================================== */
.bq-quote-section {
  padding: 3.5rem 1.75rem;
  text-align: center;
  position: relative;
}

.bq-quote-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(248, 223, 214, 0.48) 0%, transparent 72%);
  pointer-events: none;
}

.bq-quote-card {
  position: relative;
  z-index: 1;
  background: rgba(247, 243, 238, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(235, 190, 192, 0.55);
  border-radius: 28px;
  padding: 2.5rem 1.75rem;
  box-shadow: 0 12px 32px -8px rgba(166, 94, 88, 0.12);
}

.bq-quote-icon {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 1.15rem;
  color: var(--dustyrose);
}

.bq-quote-headline {
  font-size: 1.12rem;
  line-height: 2;
  color: var(--cocoa);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 0 0 1.25rem;
}

.bq-quote-subtitle {
  font-size: 0.88rem;
  line-height: 1.95;
  color: var(--warmtaupe);
  letter-spacing: 0.08em;
  margin: 0;
}

.bq-couple-mini-grid {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.bq-couple-person {
  text-align: center;
}

.bq-couple-avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 0.65rem;
  padding: 4px;
  border-radius: 50%;
  border: 1px solid rgba(235, 190, 192, 0.7);
  background: transparent;
  box-sizing: border-box;
}

.bq-couple-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
}

.bq-couple-role {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.bq-couple-name-zh {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cocoa);
}

.bq-couple-name-en {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--warmtaupe);
}

.bq-couple-heart {
  color: var(--dustyrose);
  font-size: 1rem;
}

/* ==========================================================================
   7. Section Headers (Shared)
   ========================================================================== */
.bq-section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.bq-section-kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.76rem;
  color: var(--primary);
  margin: 0 0 0.35rem;
}

.bq-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cocoa);
  margin: 0;
}

.bq-section-underline {
  width: 2.5rem;
  height: 2px;
  background: var(--dustyrose);
  margin: 0.75rem auto 0;
}

.bq-section-desc {
  font-size: 0.76rem;
  color: var(--warmtaupe);
  letter-spacing: 0.14em;
  margin: 0.55rem 0 0;
}

/* ==========================================================================
   8. Section 3: Our Love Story Timeline (#story)
   ========================================================================== */
.bq-story-section {
  padding: 2.5rem 1.75rem;
}

.bq-story-featured-photo {
  margin-bottom: 1.85rem;
  border-radius: 22px;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 10px 26px rgba(74, 63, 61, 0.1);
  aspect-ratio: 16 / 10;
}

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

.bq-story-timeline {
  position: relative;
  border-left: 1.5px solid var(--sakura);
  margin-left: 0.85rem;
  padding-left: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.story-item {
  position: relative;
}

.bq-story-dot {
  position: absolute;
  left: -2.12rem;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 9999px;
  background: var(--dustyrose);
  border: 2.5px solid var(--pearl);
  box-shadow: 0 2px 6px rgba(166, 94, 88, 0.25);
}

.story-item:last-child .bq-story-dot {
  background: var(--primary);
}

.bq-story-card {
  background: rgba(248, 223, 214, 0.42);
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bq-story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(166, 94, 88, 0.14);
}

.story-item:last-child .bq-story-card {
  background: rgba(248, 223, 214, 0.72);
}

.bq-story-card small {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.bq-story-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cocoa);
  margin: 0 0 0.45rem;
  letter-spacing: 0.08em;
}

.bq-story-card p {
  font-size: 0.82rem;
  color: var(--warmtaupe);
  line-height: 1.75;
  margin: 0;
}

/* ==========================================================================
   9. Section 4: Countdown Timer (#countdown-section)
   ========================================================================== */
.bq-countdown-section {
  padding: 2.5rem 1.5rem;
}

.bq-countdown-card {
  border-radius: 32px;
  background: rgba(248, 223, 214, 0.55);
  padding: 2.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 12px 32px -8px rgba(166, 94, 88, 0.1);
}

.bq-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.bq-cd-box {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(235, 190, 192, 0.55);
  border-radius: 18px;
  padding: 0.85rem 0.35rem;
  box-shadow: 0 4px 12px rgba(166, 94, 88, 0.06);
}

.bq-cd-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.1;
}

.bq-cd-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--warmtaupe);
  margin-top: 0.3rem;
}

.bq-calendar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.45rem;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--sakura);
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  transition: all 0.25s ease;
}

.bq-calendar-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   10. Section 5: Wedding Details & Venue (#details)
   ========================================================================== */
.bq-details-section {
  padding: 2.5rem 1.75rem;
}

.bq-venue-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 32px;
  padding: 2rem 1.5rem;
  box-shadow: 0 12px 32px -8px rgba(166, 94, 88, 0.12);
}

.bq-venue-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(235, 190, 192, 0.45);
}

.bq-venue-pill {
  display: inline-block;
  padding: 0.28rem 0.95rem;
  border-radius: 9999px;
  background: var(--dustyrose);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
}

.bq-venue-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cocoa);
  letter-spacing: 0.1em;
  margin: 0;
}

.bq-venue-room {
  font-size: 0.85rem;
  color: var(--primary);
  letter-spacing: 0.12em;
  margin: 0.35rem 0 0;
  font-weight: 500;
}

.bq-venue-address {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--warmtaupe);
  margin: 0.4rem 0 0;
  line-height: 1.6;
}

.bq-datetime-summary {
  margin-top: 1.1rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(248, 223, 214, 0.38);
  font-size: 0.8rem;
  color: var(--cocoa);
  letter-spacing: 0.08em;
}

.bq-datetime-summary p {
  margin: 0.2rem 0;
}

.bq-time-note {
  color: var(--primary);
  font-size: 0.75rem;
}

/* Schedule List */
.bq-schedule-list {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(235, 190, 192, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: rgba(247, 243, 238, 0.75);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}

.schedule-item time {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(248, 223, 214, 0.7);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.schedule-item h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cocoa);
  margin: 0 0 0.2rem;
  letter-spacing: 0.08em;
}

.schedule-item p {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--warmtaupe);
  margin: 0;
  line-height: 1.55;
}

/* Transport & Map */
.bq-venue-footer {
  padding-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bq-transport-box {
  background: rgba(248, 223, 214, 0.4);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: var(--warmtaupe);
  line-height: 1.75;
}

.bq-transport-title {
  font-weight: 600;
  color: var(--cocoa);
  margin: 0 0 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bq-map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 18px;
  background: var(--pearl);
  border: 1px solid var(--dustyrose);
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
}

.bq-map-btn:hover {
  background: var(--dustyrose);
  color: #ffffff;
}

.bq-map-btn svg {
  width: 1rem;
  height: 1rem;
}

.bq-map-embed {
  width: 100%;
  height: 210px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(235, 190, 192, 0.55);
}

.bq-map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   11. Section 6: Staggered 2-Column Photo Gallery (#gallery)
   ========================================================================== */
.bq-gallery-section {
  padding: 2.5rem 1.5rem;
}

.bq-gallery-grid-wrap {
  position: relative;
}

.bq-masonry-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.bq-masonry-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bq-masonry-col-offset {
  margin-top: 1.2rem;
}

.bq-photo-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(74, 63, 61, 0.09);
  aspect-ratio: 3 / 4;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bq-photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(166, 94, 88, 0.18);
}

.bq-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.7s ease;
}

.bq-photo-card:hover img {
  transform: scale(1.07);
}

.bq-photo-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem 0.75rem 0.65rem;
  background: linear-gradient(to top, rgba(74, 63, 61, 0.72), transparent);
  color: #ffffff;
  text-align: left;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bq-photo-card:hover .bq-photo-overlay {
  opacity: 1;
}

.bq-photo-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  margin: 0;
}

.bq-photo-caption {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  margin: 0.15rem 0 0;
  opacity: 0.9;
}

/* Gallery Pagination Controls */
.gallery-pager {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.gallery-pager-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.gallery-nav-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--sakura);
  color: var(--cocoa);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  transition: all 0.25s ease;
}

.gallery-nav-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.gallery-page-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gallery-page-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: 0;
  padding: 0;
  background: var(--sakura);
  transition: all 0.25s ease;
}

.gallery-page-dot.is-active {
  width: 1.35rem;
  background: var(--primary);
}

.bq-gallery-grid-wrap.is-carousel-ready {
  display: block;
}

.gallery-carousel-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 22px;
}

.gallery-carousel-track {
  display: flex;
  width: 100%;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.gallery-carousel-page {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.gallery-carousel-page.is-single-card .bq-photo-card {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 440px;
}

.gallery-carousel-page.is-single-card .bq-photo-overlay {
  opacity: 1;
}

/* ==========================================================================
   12. Section 7: RSVP Form (#rsvp)
   ========================================================================== */
.bq-rsvp-section {
  padding: 2.5rem 1.5rem 3.5rem;
}

.bq-rsvp-card {
  border-radius: 32px;
  padding: 2.25rem 1.5rem;
  background: rgba(247, 243, 238, 0.94);
  box-shadow: 0 14px 36px -10px rgba(166, 94, 88, 0.14);
}

.bq-rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.bq-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bq-field > span,
.bq-field-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--cocoa);
}

.bq-required {
  color: var(--primary);
}

.bq-field input[type="text"],
.bq-field input[type="tel"],
.bq-field select,
.bq-field textarea {
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--sakura);
  color: var(--cocoa);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.bq-field input:focus,
.bq-field select:focus,
.bq-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(216, 150, 149, 0.25);
}

/* Attendance Radio Cards */
.bq-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.bq-radio-option {
  position: relative;
  cursor: pointer;
}

.bq-radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bq-radio-box {
  text-align: center;
  padding: 0.82rem 0.65rem;
  border-radius: 16px;
  border: 1px solid var(--sakura);
  background: #ffffff;
  color: var(--cocoa);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  transition: all 0.25s ease;
}

.bq-radio-option input[type="radio"]:checked + .bq-radio-box {
  background: var(--dustyrose);
  color: #ffffff;
  border-color: var(--dustyrose);
  box-shadow: 0 6px 16px rgba(216, 150, 149, 0.35);
}

/* Conditional Guest Subfields */
.bq-guest-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.35rem;
}

.bq-form-grid,
.ed-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 380px) {
  .bq-form-grid,
  .ed-form-grid {
    grid-template-columns: 1fr;
  }
}

.ed-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ed-field > span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--cocoa);
}

.ed-field input,
.ed-field select {
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--sakura);
  color: var(--cocoa);
  font-family: var(--font-sans);
  font-size: 0.86rem;
}

.bq-extra-checks,
.ed-extra-checks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: rgba(248, 223, 214, 0.42);
  border: 1px solid rgba(235, 190, 192, 0.55);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}

.bq-check-item,
.ed-check-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--cocoa);
  cursor: pointer;
}

.bq-check-item input[type="checkbox"],
.ed-check-item input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--primary);
}

.rsvp-custom-fields {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.bq-submit-btn {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  border: 0;
  background: var(--primary);
  color: var(--pearl);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  box-shadow: 0 10px 24px -6px rgba(166, 94, 88, 0.45);
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.bq-submit-btn:hover {
  background: #8f4e48;
}

.bq-submit-btn:active {
  transform: scale(0.98);
}

.bq-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bq-form-status {
  margin: 0.5rem 0 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--primary);
  line-height: 1.6;
}

/* ==========================================================================
   13. Footer & Preserved Bouquet Color Palette Showcase
   ========================================================================== */
.bq-footer {
  padding: 2.5rem 1.75rem 3.5rem;
  text-align: center;
  border-top: 1px solid rgba(235, 190, 192, 0.45);
  background: rgba(248, 223, 214, 0.3);
}

.bq-footer-closing-text {
  font-size: 0.82rem;
  color: var(--warmtaupe);
  line-height: 1.85;
  letter-spacing: 0.08em;
  margin: 0 auto 1.2rem;
  width: 100%;
  max-width: 100%;
}

.bq-footer-couple {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--cocoa);
  margin: 0 0 0.25rem;
}

.bq-footer-date {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: var(--warmtaupe);
  margin: 0 0 1.4rem;
}

.bq-footer-credit {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: rgba(125, 100, 97, 0.65);
  margin: 0;
}

/* ==========================================================================
   14. Lightbox Dialog (<dialog id="lightbox">) & Copy Toast
   ========================================================================== */
.bq-lightbox {
  border: 0;
  padding: 1rem;
  background: rgba(74, 63, 61, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--pearl);
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  margin: 0;
}

.bq-lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bq-lightbox::backdrop {
  background: rgba(74, 63, 61, 0.85);
}

.bq-lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bq-lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 78vh;
}

.bq-lb-stage img {
  max-width: 86vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 18px;
  border: 3px solid rgba(247, 243, 238, 0.9);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.bq-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(74, 63, 61, 0.65);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bq-lb-prev { left: -0.75rem; }
.bq-lb-next { right: -0.75rem; }

.bq-lb-caption {
  margin-top: 1rem;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  color: var(--peach);
  text-align: center;
}

/* Copy Hex Toast */
.bq-toast {
  position: fixed;
  bottom: calc(1.5rem + 5vh);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 95;
  max-width: calc(100vw - 2rem);
  background: rgba(225, 122, 138, 0.96);
  color: #ffffff;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.14em;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.bq-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* Section Entrance Animation */
.section-reveal > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.section-reveal.is-section-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.section-reveal.is-section-visible > *:nth-child(1) { transition-delay: 0.05s; }
.section-reveal.is-section-visible > *:nth-child(2) { transition-delay: 0.12s; }
.section-reveal.is-section-visible > *:nth-child(3) { transition-delay: 0.20s; }
.section-reveal.is-section-visible > *:nth-child(4) { transition-delay: 0.28s; }
.section-reveal.is-section-visible > *:nth-child(5) { transition-delay: 0.34s; }
.section-reveal.is-section-visible > *:nth-child(6) { transition-delay: 0.40s; }

#story-list.section-reveal.is-section-visible > .story-item:nth-child(1),
.story-list.section-reveal.is-section-visible > .story-item:nth-child(1),
#mc-story-entries.section-reveal.is-section-visible > *:nth-child(1),
#schedule.section-reveal.is-section-visible > .schedule-item:nth-child(1),
.schedule.section-reveal.is-section-visible > .schedule-item:nth-child(1),
#mc-timeline-box.section-reveal.is-section-visible > *:nth-child(1) { transition-delay: 0.15s; }
#story-list.section-reveal.is-section-visible > .story-item:nth-child(2),
.story-list.section-reveal.is-section-visible > .story-item:nth-child(2),
#mc-story-entries.section-reveal.is-section-visible > *:nth-child(2),
#schedule.section-reveal.is-section-visible > .schedule-item:nth-child(2),
.schedule.section-reveal.is-section-visible > .schedule-item:nth-child(2),
#mc-timeline-box.section-reveal.is-section-visible > *:nth-child(2) { transition-delay: 0.60s; }
#story-list.section-reveal.is-section-visible > .story-item:nth-child(3),
.story-list.section-reveal.is-section-visible > .story-item:nth-child(3),
#mc-story-entries.section-reveal.is-section-visible > *:nth-child(3),
#schedule.section-reveal.is-section-visible > .schedule-item:nth-child(3),
.schedule.section-reveal.is-section-visible > .schedule-item:nth-child(3),
#mc-timeline-box.section-reveal.is-section-visible > *:nth-child(3) { transition-delay: 1.05s; }
#story-list.section-reveal.is-section-visible > .story-item:nth-child(4),
.story-list.section-reveal.is-section-visible > .story-item:nth-child(4),
#mc-story-entries.section-reveal.is-section-visible > *:nth-child(4),
#schedule.section-reveal.is-section-visible > .schedule-item:nth-child(4),
.schedule.section-reveal.is-section-visible > .schedule-item:nth-child(4),
#mc-timeline-box.section-reveal.is-section-visible > *:nth-child(4) { transition-delay: 1.50s; }
#story-list.section-reveal.is-section-visible > .story-item:nth-child(5),
.story-list.section-reveal.is-section-visible > .story-item:nth-child(5),
#mc-story-entries.section-reveal.is-section-visible > *:nth-child(5),
#schedule.section-reveal.is-section-visible > .schedule-item:nth-child(5),
.schedule.section-reveal.is-section-visible > .schedule-item:nth-child(5),
#mc-timeline-box.section-reveal.is-section-visible > *:nth-child(5) { transition-delay: 1.95s; }
#story-list.section-reveal.is-section-visible > .story-item:nth-child(6),
.story-list.section-reveal.is-section-visible > .story-item:nth-child(6),
#mc-story-entries.section-reveal.is-section-visible > *:nth-child(6),
#schedule.section-reveal.is-section-visible > .schedule-item:nth-child(6),
.schedule.section-reveal.is-section-visible > .schedule-item:nth-child(6),
#mc-timeline-box.section-reveal.is-section-visible > *:nth-child(6) { transition-delay: 2.40s; }
#story-list.section-reveal.is-section-visible > .story-item:nth-child(7),
.story-list.section-reveal.is-section-visible > .story-item:nth-child(7),
#mc-story-entries.section-reveal.is-section-visible > *:nth-child(7),
#schedule.section-reveal.is-section-visible > .schedule-item:nth-child(7),
.schedule.section-reveal.is-section-visible > .schedule-item:nth-child(7),
#mc-timeline-box.section-reveal.is-section-visible > *:nth-child(7) { transition-delay: 2.85s; }
#story-list.section-reveal.is-section-visible > .story-item:nth-child(8),
.story-list.section-reveal.is-section-visible > .story-item:nth-child(8),
#mc-story-entries.section-reveal.is-section-visible > *:nth-child(8),
#schedule.section-reveal.is-section-visible > .schedule-item:nth-child(8),
.schedule.section-reveal.is-section-visible > .schedule-item:nth-child(8),
#mc-timeline-box.section-reveal.is-section-visible > *:nth-child(8) { transition-delay: 3.30s; }

@media (prefers-reduced-motion: reduce) {
  .section-reveal > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.gallery-carousel-page.is-single-card span {
  display: block;
  width: 100%;
  text-align: center;
}

#rsvp-form,
#rsvp-form * {
  font-family: 'Noto Sans TC', '台北黑體', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
}

.mobile-home-fab {
  display: none;
}

@media (max-width: 760px) {
  .mobile-home-fab {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 12px 0 8px;
    border-radius: 999px;
    background: rgba(42, 34, 30, 0.36);
    color: rgba(255, 252, 247, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
  }

  .mobile-home-fab svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .mobile-home-fab:active {
    transform: scale(0.96);
    background: rgba(42, 34, 30, 0.52);
  }
}


/* ==========================================================================
   親友的祝福 (Words of Love — 法式珍珠蜜桃金配色)
   ========================================================================== */
.blessings {
  background: #433935;
  color: var(--pearl, #F7F3EE);
  text-align: center;
  padding: 84px 8%;
}

.blessings-heading {
  margin-bottom: 28px;
}

.blessings-heading .eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: #ebd0c4;
  margin-bottom: 10px;
}

.blessings-heading h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.16em;
  color: var(--pearl, #F7F3EE);
}

.blessings-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 auto 38px;
}

.blessings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 128px;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(248, 223, 214, 0.32);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.blessings-btn:hover {
  transform: translateY(-1px);
}

.blessings-btn-secondary {
  background: #9b7362;
  color: #ffffff;
}

.blessings-btn-secondary:hover {
  background: #856151;
}

.blessings-btn-secondary.is-loading {
  opacity: 0.78;
  cursor: wait;
  pointer-events: none;
}

.blessings-btn-secondary.is-loading svg {
  animation: blessingSpin 0.75s linear infinite;
}

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

.blessings-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 12px;
  max-width: 820px;
  margin: 0 auto;
  transition: opacity 0.25s ease;
}

.blessings-cloud.is-loading {
  opacity: 0.25;
}

.blessings-card {
  background: rgba(248, 223, 214, 0.93);
  color: #3a2e2a;
  border-radius: 26px;
  padding: 13px 22px;
  max-width: min(360px, 100%);
  text-align: left;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  word-break: break-word;
  white-space: pre-line;
  will-change: transform, opacity;
  animation:
    blessingPopIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--enter-delay, 0ms) both,
    blessingSway 4.8s ease-in-out calc(var(--enter-delay, 0ms) + 0.5s) infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@keyframes blessingPopIn {
  0% {
    opacity: 0;
    scale: 0.78;
  }
  70% {
    opacity: 1;
    scale: 1.04;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

.blessings-card:nth-child(2n) {
  animation-duration: 0.5s, 5.6s;
  animation-delay: var(--enter-delay, 0ms), -1.4s;
}

.blessings-card:nth-child(3n) {
  animation-duration: 0.5s, 6.2s;
  animation-delay: var(--enter-delay, 0ms), -2.8s;
}

.blessings-card:nth-child(4n) {
  animation-duration: 0.5s, 5.1s;
  animation-delay: var(--enter-delay, 0ms), -0.9s;
}

.blessings-card:hover {
  animation-play-state: paused;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

@keyframes blessingSway {
  0%, 100% {
    transform: translate(0, 0) rotate(-1.6deg);
  }
  25% {
    transform: translate(4px, -9px) rotate(1.1deg);
  }
  50% {
    transform: translate(-3px, -13px) rotate(1.8deg);
  }
  75% {
    transform: translate(-5px, -6px) rotate(-1.2deg);
  }
}

.blessings-card.is-short {
  text-align: center;
  border-radius: 999px;
  padding: 11px 24px;
}

.blessings-empty {
  color: #e4d4cc;
  font-size: 13px;
  margin: 16px auto 0;
}

@media (max-width: 760px) {
  .blessings {
    padding: 64px 6%;
  }

  .blessings-heading h2 {
    font-size: 24px;
  }

  .blessings-card {
    font-size: 13.5px;
    padding: 12px 18px;
  }
}
