/* ==========================================================================
   TEMA PEMANDANGAN PUTIH (BLUEBELL BUNNY)
   Wedding Invitation Template - BestariWedding
   Ultra-High Fidelity Re-creation of Inveet Bluebell Bunny Theme
   ========================================================================== */

/* --- CSS Variables & Theme Tokens --- */
:root {
  --bb-ink: #303D42;
  --bb-paper: #FFFCF6;
  --bb-primary: #5F8FB7;
  --bb-primary-light: #A9D5EA;
  --bb-accent: #8FAE96;
  --bb-accent-dark: #587665;
  --bb-background: #FFFCF6;
  --bb-background-alt: #EEF7FA;
  --bb-text: #495353;
  --bb-heading: #303D42;
  --bb-secondary: #F2B7A5;
  --bb-button-primary: #EDC5B5;
  --bb-button-primary-hover: #E1B2A0;
  --bb-button-secondary: #E9A995;
  --bb-button-secondary-hover: #D78F7C;
  --bb-button-text: #303D42;
  --bb-button-text-hover: #303D42;
  --bb-left-panel-text: #334B5C;

  --ph-heading-font: 'Cormorant Infant', Georgia, serif;
  --ph-body-font: 'Lora', Georgia, serif;
  --ph-script-font: 'Great Vibes', cursive;
  --ph-sans-font: 'Poppins', sans-serif;
  --ph-accent-dark: #587665;
  --ph-accent: #8FAE96;
  --ph-button-primary: #EDC5B5;
  --ph-button-primary-hover: #E1B2A0;
  --ph-button-text: #303D42;
  --ph-button-text-hover: #303D42;

  --bb-wing-duration: 3.4s;
  --bb-drift-duration: 9.5s;
  --bb-drift-x: 9px;
  --bb-drift-y: 11px;
  --bb-flight-delay: 0s;
}

/* --- Base Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ph-body-font);
  background-color: #f0ece3;
  color: var(--bb-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
  height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Layout Architecture: Dual-Panel Desktop & Mobile View --- */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  background-color: #eae5dc;
}

/* Desktop Left Panel */
.left-panel {
  display: none;
}

@media (min-width: 1024px) {
  .left-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    height: 100vh;
    position: sticky;
    top: 0;
    left: 0;
    background: url('../assets/backgrounds/paper-wash-v1.webp') center/cover no-repeat;
    padding: 60px 40px;
    text-align: center;
    color: var(--bb-left-panel-text);
    z-index: 10;
    border-right: 1px solid rgba(216, 208, 189, 0.5);
  }

  .left-panel-inner {
    max-width: 480px;
    animation: fadeIn 1.2s ease-out;
  }

  .lp-eyebrow {
    font-family: var(--ph-script-font);
    font-size: 32px;
    color: #476d7c;
    margin-bottom: 12px;
  }

  .lp-title {
    font-family: var(--ph-heading-font);
    font-size: 44px;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--bb-left-panel-text);
    margin-bottom: 20px;
  }

  .lp-date {
    font-family: var(--ph-body-font);
    font-size: 15px;
    letter-spacing: 0.08em;
    color: #556c7a;
  }

  .lp-quote {
    margin-top: 36px;
    font-family: var(--ph-heading-font);
    font-size: 19px;
    font-style: italic;
    color: #556c7a;
    line-height: 1.6;
    max-width: 380px;
    margin-inline: auto;
  }
}

/* Right Panel (Invitation Scroll Area) */
.right-panel {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  position: relative;
  background: var(--bb-paper);
  background-image: url('../assets/backgrounds/paper-wash-v1.webp');
  background-position: center;
  background-size: cover;
  background-repeat: repeat-y;
  background-attachment: fixed;
  box-shadow: 0 0 40px rgba(48, 61, 66, 0.12);
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .right-panel {
    max-width: 480px;
    margin: 0;
    flex-shrink: 0;
  }
}

@media (min-width: 1440px) {
  .right-panel {
    max-width: 520px;
  }
}

/* --- Shared Section Styling --- */
.bb-scene {
  position: relative;
  width: 100%;
  overflow: clip;
  background: transparent;
  isolation: isolate;
}

.bb-content {
  position: relative;
  padding: 64px 28px;
  z-index: 2;
  text-align: center;
}

.bb-eyebrow, .bb-date {
  font-family: var(--ph-heading-font);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bb-ink);
}

.bb-eyebrow {
  max-width: 32ch;
  margin: 0 auto 10px;
}

.bb-names {
  position: relative;
  font-family: var(--ph-script-font);
  font-weight: 400;
  font-size: clamp(48px, 13vw, 76px);
  line-height: 1.05;
  color: var(--bb-ink);
  letter-spacing: -0.01em;
}

.bb-name-line {
  padding: 0 8px;
  overflow-wrap: anywhere;
}

.bb-name-0 {
  transform: rotate(-5deg);
  margin-right: 6%;
}

.bb-name-1 {
  transform: rotate(-4deg);
  margin-left: 6%;
}

.bb-ampersand {
  display: block;
  font-size: 0.46em;
  line-height: 1.2;
  margin-block: 4px 6px;
  color: #789caa;
}

/* --- Ornaments & Art Elements --- */
.bb-art {
  pointer-events: none;
  user-select: none;
}

.bb-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bb-lake {
  width: 112%;
  position: absolute;
  left: -6%;
  bottom: 0;
  z-index: 1;
  opacity: 0.85;
}

.bb-cover .bb-lake {
  max-height: clamp(80px, 18vh, 140px);
  max-height: clamp(80px, 18dvh, 140px);
  opacity: 0.8;
}

/* ==========================================================================
   1. COVER SECTION
   ========================================================================== */
.bb-cover {
  box-sizing: border-box;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: clamp(14px, 3vh, 32px) 20px clamp(20px, 4.5vh, 44px);
  padding: clamp(14px, 3dvh, 32px) 20px clamp(20px, 4.5dvh, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden !important;
  position: relative;
  z-index: 30;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}

.bb-cover.opened {
  transform: scale(0.98) translateY(-14px);
  opacity: 0.9;
}

.bb-cover-content {
  position: relative;
  z-index: 3;
  width: min(100%, 380px);
  margin: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 1.3vh, 12px);
  gap: clamp(4px, 1.3dvh, 12px);
}

.bb-cover .bb-eyebrow {
  font-size: clamp(10px, 1.8vh, 12px);
  margin: 0 0 clamp(1px, 0.6vh, 4px);
  letter-spacing: 0.22em;
}

.bb-cover .bb-names {
  font-size: clamp(28px, min(8.5vw, 4.8vh), 52px);
  font-size: clamp(28px, min(8.5vw, 4.8dvh), 52px);
  width: min(90vw, 360px);
  text-align: center;
  line-height: 1.05;
  margin: 0;
}

.bb-cover .bb-ampersand {
  font-size: 0.42em;
  margin-block: 1px 3px;
}

/* Polaroid Photo Card (Balanced compact scale) */
.bb-cover-photo {
  position: relative;
  width: clamp(115px, min(39vw, 18vh), 165px);
  width: clamp(115px, min(39vw, 18dvh), 165px);
  margin-block: clamp(2px, 0.7vh, 8px) clamp(1px, 0.3vh, 4px);
  margin-block: clamp(2px, 0.7dvh, 8px) clamp(1px, 0.3dvh, 4px);
}

.bb-polaroid-wrap {
  position: relative;
  transform: rotate(-5deg);
  transition: transform 0.4s ease;
}

.bb-polaroid-wrap:hover {
  transform: rotate(-3deg) scale(1.02);
}

.bb-polaroid {
  display: block;
  width: 100%;
  padding: 6px 6px 0;
  background: #fffdf8;
  border: 1px solid rgba(216, 208, 189, 0.6);
  box-shadow: 2px 7px 16px rgba(81, 75, 56, 0.14);
  border-radius: 2px;
}

.bb-photo-window {
  width: 100%;
  aspect-ratio: 4 / 4.3;
  overflow: hidden;
  background: #e6edf0;
  position: relative;
}

.bb-photo-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bb-polaroid-wrap:hover .bb-photo-window img {
  transform: scale(1.05);
}

.bb-photo-caption {
  display: block;
  padding: 6px 0 7px;
  color: var(--bb-ink);
  font-family: var(--ph-script-font);
  font-size: clamp(13px, 2.3vh, 18px);
  font-size: clamp(13px, 2.3dvh, 18px);
  line-height: 1;
}

.bb-photo-caption span {
  color: #bd745e;
  font-size: 14px;
}

.bb-tape {
  position: absolute;
  z-index: 5;
  width: 48%;
  height: 28px;
  top: -13px;
  left: 26%;
  pointer-events: none;
}

.bb-tape img {
  transform: rotate(3deg);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.bb-cover-sprig {
  position: absolute;
  width: 50%;
  right: -27%;
  bottom: -9%;
  z-index: 6;
  pointer-events: none;
}

.bb-cover-sprig img {
  transform: rotate(18deg);
  animation: botanical-drift 6s ease-in-out infinite;
}

.bb-cover .bb-date {
  font-size: clamp(10px, 1.7vh, 12px);
  letter-spacing: 0.18em;
  margin: 0;
}

.bb-guest {
  font-family: var(--ph-body-font);
  font-size: clamp(10px, 1.6vh, 11px);
  line-height: 1.4;
  text-align: center;
}

.bb-guest p {
  margin: 2px 0 0;
  color: var(--bb-ink);
  font-size: clamp(14px, 2.4vh, 17px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Open Invitation Button */
.bb-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 24px;
  border-radius: 10px;
  background: var(--ph-button-primary);
  color: var(--ph-button-text);
  font-family: var(--ph-heading-font);
  font-size: clamp(11px, 1.9vh, 13px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(237, 197, 181, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 2px;
}

.bb-open-button:hover {
  background: var(--ph-button-primary-hover);
  color: var(--ph-button-text-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(237, 197, 181, 0.55);
}

.bb-open-button svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s ease;
}

.bb-open-button:hover svg {
  transform: scale(1.15) rotate(-5deg);
}

/* Cover Stems & Botanical Ornaments */
.cover-corner-top-left {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(90px, 28vw, 140px);
  max-width: 140px;
  z-index: 4;
  pointer-events: none;
}

.cover-stems-left {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42%;
  height: clamp(80px, 18vh, 140px);
  height: clamp(80px, 18dvh, 140px);
  z-index: 4;
  pointer-events: none;
}

.cover-stem-bluebell {
  position: absolute;
  bottom: 0;
  left: 6%;
  width: 60%;
  transform: rotate(-8deg);
  transform-origin: bottom center;
  animation: botanical-drift 7s ease-in-out infinite;
}

.cover-stem-daisy {
  position: absolute;
  bottom: 0;
  left: 38%;
  width: 50%;
  transform: rotate(7deg);
  transform-origin: bottom center;
  animation: botanical-drift 6.2s ease-in-out 0.5s infinite;
}

.cover-stems-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 42%;
  height: clamp(80px, 18vh, 140px);
  height: clamp(80px, 18dvh, 140px);
  z-index: 4;
  pointer-events: none;
}

.cover-stem-sage {
  position: absolute;
  bottom: 0;
  right: 30%;
  width: 58%;
  transform: rotate(-6deg);
  transform-origin: bottom center;
  animation: botanical-drift 6.8s ease-in-out 1s infinite;
}

.cover-stem-buttercup {
  position: absolute;
  bottom: 0;
  right: 6%;
  width: 54%;
  transform: rotate(9deg);
  transform-origin: bottom center;
  animation: botanical-drift 7.5s ease-in-out 0.3s infinite;
}

/* ==========================================================================
   2. OPENING SECTION
   ========================================================================== */
.bb-opening {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.bb-opening .bb-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 80px 28px 0;
  justify-content: space-between;
}

.bb-opening .bb-names {
  margin: 30px 0 24px;
  position: relative;
  overflow: visible;
}

/* Calligraphy Name Reveal Effect when Buka Undangan is clicked */
.bb-opening .reveal-name-groom,
.bb-opening .reveal-ampersand,
.bb-opening .reveal-name-bride {
  opacity: 0;
  display: inline-block;
  will-change: transform, opacity, filter;
}

.bb-opening .reveal-name-groom {
  transform: translateX(-40px) translateY(18px) rotate(-14deg) scale(0.9);
  filter: blur(10px);
}

.bb-opening .reveal-ampersand {
  transform: scale(0.2) rotate(-20deg);
  filter: blur(8px);
}

.bb-opening .reveal-name-bride {
  transform: translateX(40px) translateY(18px) rotate(12deg) scale(0.9);
  filter: blur(10px);
}

.bb-opening .bb-opening-message {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease;
}

/* Active Trigger State */
.bb-opening.active-reveal .reveal-name-groom,
.bb-opening.revealed .reveal-name-groom {
  animation: calligraphyRevealGroom 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

.bb-opening.active-reveal .reveal-ampersand,
.bb-opening.revealed .reveal-ampersand {
  animation: calligraphyRevealAmpersand 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.65s forwards;
}

.bb-opening.active-reveal .reveal-name-bride,
.bb-opening.revealed .reveal-name-bride {
  animation: calligraphyRevealBride 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

.bb-opening.active-reveal .bb-opening-message,
.bb-opening.revealed .bb-opening-message {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 1.3s;
}

@keyframes calligraphyRevealGroom {
  0% {
    opacity: 0;
    transform: translateX(-40px) translateY(18px) rotate(-14deg) scale(0.88);
    filter: blur(10px);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(-5deg) scale(1);
    filter: blur(0);
  }
}

@keyframes calligraphyRevealAmpersand {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-20deg);
    filter: blur(8px);
  }
  65% {
    transform: scale(1.3) rotate(4deg);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
}

@keyframes calligraphyRevealBride {
  0% {
    opacity: 0;
    transform: translateX(40px) translateY(18px) rotate(12deg) scale(0.88);
    filter: blur(10px);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(-4deg) scale(1);
    filter: blur(0);
  }
}

.bb-opening-message {
  font-family: var(--ph-body-font);
  font-size: 15px;
  line-height: 1.85;
  max-width: 32ch;
  margin: 0 auto 20px;
  color: var(--bb-ink);
}

.bb-opening-landscape {
  position: relative;
  flex-grow: 1;
  min-height: clamp(230px, 60vw, 320px);
  margin: 16px -28px 0;
  overflow: clip;
}

.bb-opening-garden {
  position: absolute;
  inset: 0;
}

.bb-opening-flowers, .bb-opening-grass {
  position: absolute;
  bottom: 4px;
  transform-origin: center bottom;
  z-index: 3;
}

.bb-opening-flowers {
  width: 30%;
  height: min(48%, 150px);
}

.bb-opening-flowers-left {
  left: 0;
  animation: botanical-drift 6.5s ease-in-out infinite;
}

.bb-opening-flowers-right {
  right: -2%;
  height: min(40%, 125px);
  animation: botanical-drift 7s ease-in-out 0.6s infinite;
}

.bb-opening-flowers-right img {
  transform: scaleX(-1);
}

.bb-opening-grass {
  width: 23%;
  height: min(28%, 85px);
}

.bb-opening-grass-left {
  left: 17%;
  animation: botanical-drift 5.8s ease-in-out 1.2s infinite;
}

.bb-opening-grass-right {
  right: 15%;
  animation: botanical-drift 6.2s ease-in-out 0.4s infinite;
}

.bb-opening-grass-right img {
  transform: scaleX(-1);
}

/* Butterfly Flight Animations */
.bb-opening-butterfly {
  position: absolute;
  width: clamp(40px, 13vw, 68px);
  z-index: 4;
  pointer-events: none;
}

.bb-butterfly-orient {
  display: block;
  transform-origin: 52% 62%;
  transform: rotate(calc(var(--bb-butterfly-angle, 0deg) + 28deg * var(--bb-butterfly-mirror, 1)));
}

.bb-butterfly-wings {
  display: block;
  transform-origin: 52% 62%;
  animation: bb-butterfly-wings var(--bb-wing-duration) cubic-bezier(0.45, 0, 0.55, 1) var(--bb-flight-delay) infinite;
  will-change: transform;
}

.bb-butterfly-wings img {
  transform-origin: 52% 62%;
  transform: rotate(calc(-28deg * var(--bb-butterfly-mirror, 1))) scaleX(var(--bb-butterfly-mirror, 1));
}

.bb-opening-butterfly-pose, .bb-closing-butterfly-pose {
  animation: bb-butterfly-drift var(--bb-drift-duration) ease-in-out var(--bb-flight-delay) infinite;
  transform-origin: 52% 62%;
  will-change: transform;
}

@keyframes bb-butterfly-wings {
  0%, 30%, 100% {
    transform: scaleX(1) translateY(0);
  }
  7% {
    transform: scaleX(0.28) translateY(-1.5px);
  }
  14% {
    transform: scaleX(1) translateY(0);
  }
  21% {
    transform: scaleX(0.38) translateY(-1px);
  }
}

@keyframes bb-butterfly-drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  22% {
    transform: translate3d(calc(var(--bb-drift-x) * 0.7), calc(var(--bb-drift-y) * -1), 0) rotate(4deg);
  }
  48% {
    transform: translate3d(calc(var(--bb-drift-x) * -0.3), calc(var(--bb-drift-y) * -1.45), 0) rotate(-2deg);
  }
  74% {
    transform: translate3d(calc(var(--bb-drift-x) * -1), calc(var(--bb-drift-y) * -0.55), 0) rotate(-5deg);
  }
}

@keyframes botanical-drift {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(1.8deg) translateY(-2px);
  }
}

/* Butterfly specific placements */
.bb-bf-1 {
  left: 18%;
  top: 48%;
  --bb-butterfly-angle: -18deg;
  --bb-wing-duration: 3.4s;
  --bb-drift-duration: 9.5s;
  --bb-drift-x: 9px;
  --bb-drift-y: 11px;
}

.bb-bf-2 {
  left: 32%;
  top: 25%;
  width: clamp(48px, 16vw, 78px);
  --bb-butterfly-angle: 12deg;
  --bb-wing-duration: 4.1s;
  --bb-drift-duration: 11s;
  --bb-drift-x: 11px;
  --bb-drift-y: 13px;
}

.bb-bf-3 {
  left: 53%;
  top: 42%;
  --bb-butterfly-angle: -8deg;
  --bb-wing-duration: 3.1s;
  --bb-drift-duration: 8.6s;
  --bb-drift-x: 8px;
  --bb-drift-y: 10px;
}

.bb-bf-4 {
  left: 65%;
  top: 14%;
  width: clamp(36px, 11vw, 58px);
  --bb-butterfly-angle: 20deg;
  --bb-wing-duration: 3.8s;
  --bb-drift-duration: 10.4s;
  --bb-drift-x: 7px;
  --bb-drift-y: 9px;
}

.bb-bf-5 {
  left: 44%;
  top: 8%;
  width: clamp(30px, 9vw, 46px);
  --bb-butterfly-angle: -22deg;
  --bb-wing-duration: 2.9s;
  --bb-drift-duration: 8.2s;
  --bb-drift-x: 5px;
  --bb-drift-y: 7px;
}

.bb-bf-6 {
  left: 76%;
  top: 36%;
  width: clamp(28px, 8vw, 42px);
  --bb-butterfly-angle: 8deg;
  --bb-wing-duration: 3.6s;
  --bb-drift-duration: 9.1s;
  --bb-drift-x: 5px;
  --bb-drift-y: 6px;
}

/* ==========================================================================
   3. QUOTE SECTION
   ========================================================================== */
.bb-quote {
  position: relative;
  padding: 40px 0;
}

.bb-quote .bb-content {
  padding: 32px 36px 48px;
}

.bb-quote-mark {
  display: block;
  font-family: var(--ph-heading-font);
  font-size: 72px;
  line-height: 0.8;
  color: #789caa;
  margin-bottom: 12px;
}

.bb-quote blockquote {
  font-family: var(--ph-heading-font);
  font-size: 19px;
  line-height: 1.7;
  color: var(--bb-ink);
  max-width: 32ch;
  margin: 0 auto 20px;
  font-weight: 400;
}

.bb-quote cite {
  display: block;
  font-family: var(--ph-body-font);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #556c7a;
}

.bb-quote-heart {
  width: 22px;
  height: 26px;
  margin: 22px auto 0;
}

.bb-quote-heart img {
  transform: rotate(-12deg);
}

.quote-corner-top-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 32%;
  max-width: 140px;
  pointer-events: none;
}

.quote-wildflowers-bottom-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48%;
  max-width: 220px;
  pointer-events: none;
}

.quote-butterfly-left {
  position: absolute;
  top: 35%;
  left: 2%;
  width: 30%;
  max-width: 120px;
  pointer-events: none;
}

/* ==========================================================================
   4. COUPLE SECTION (MEMPELAI)
   ========================================================================== */
.bb-couple {
  position: relative;
  padding: 50px 0 20px;
}

.bb-intro {
  margin: 14px auto 42px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.9;
  color: var(--bb-text);
}

.bb-portraits {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.bb-portrait-garden {
  position: relative;
  width: min(58vw, 240px);
  margin: 0 auto 24px;
  isolation: isolate;
}

.bb-portrait {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  aspect-ratio: 0.79;
  overflow: hidden;
  border: 6px solid #fffdf8;
  border-radius: 49% 47% 43% 46%;
  background: #e4eceb;
  transform: rotate(-3deg);
  box-shadow: 0 6px 18px rgba(51, 75, 92, 0.1);
  transition: transform 0.4s ease;
}

.bb-person-bride .bb-portrait {
  transform: rotate(5deg);
}

.bb-portrait:hover {
  transform: scale(1.03) rotate(0deg);
}

.bb-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Botanicals around portraits */
.bb-portrait-leaf {
  position: absolute;
  width: 65%;
  height: 88%;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.bb-portrait-leaf-left {
  left: -26%;
}

.bb-portrait-leaf-left img {
  transform: rotate(-24deg) scaleX(-1);
  animation: botanical-drift 6.8s ease-in-out infinite;
}

.bb-portrait-leaf-right {
  right: -24%;
  bottom: 6%;
}

.bb-portrait-leaf-right img {
  transform: rotate(24deg) scaleX(-1);
  animation: botanical-drift 7.2s ease-in-out 0.8s infinite;
}

.bb-person h3 {
  font-family: var(--ph-script-font);
  font-size: clamp(38px, 10vw, 52px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 auto 12px;
  color: var(--bb-ink);
}

.bb-parents {
  max-width: 34ch;
  margin-inline: auto;
  font-size: 14px;
  line-height: 1.8;
  color: var(--bb-text);
}

.bb-parents .bb-eyebrow {
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ph-accent-dark);
}

.bb-instagram {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  margin-top: 10px;
  color: var(--bb-ink);
  transition: transform 0.3s ease, color 0.3s ease;
}

.bb-instagram:hover {
  color: #c13584;
  transform: scale(1.15);
}

.bb-instagram svg {
  width: 20px;
  height: 20px;
}

/* Bunny Promise Illustration */
.bb-bunny-promise {
  position: relative;
  height: clamp(210px, 60vw, 300px);
  margin: 36px -28px 0;
}

.bb-ground {
  position: absolute;
  z-index: 1;
  width: 112%;
  left: -6%;
  bottom: 0;
  height: 26%;
  pointer-events: none;
}

.bb-bunny-couple {
  position: absolute;
  z-index: 2;
  bottom: 8%;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: min(84%, 360px);
  pointer-events: none;
}

.bb-bunny-couple img {
  filter: drop-shadow(0 6px 12px rgba(81, 75, 56, 0.1));
}

/* ==========================================================================
   5. EVENT SECTION (ACARA)
   ========================================================================== */
.bb-event {
  position: relative;
  padding: 80px 0 30px;
}

.event-pavilion-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 360px;
  z-index: 2;
  pointer-events: none;
}

.event-butterfly-top {
  position: absolute;
  top: 40px;
  right: 6%;
  width: 32%;
  max-width: 120px;
  pointer-events: none;
}

.bb-event .bb-content {
  padding-top: 140px;
}

.event-card-stack {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: min(100%, 420px);
  margin: 0 auto;
}

.event-card {
  padding: 30px 22px;
  background: rgba(255, 253, 248, 0.75);
  border: 1px solid rgba(216, 208, 189, 0.5);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(51, 75, 92, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-2px);
}

.event-card h3 {
  font-family: var(--ph-script-font);
  font-size: 42px;
  font-weight: 400;
  color: var(--bb-ink);
  margin-bottom: 8px;
}

.event-date-badge {
  font-family: var(--ph-heading-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bb-ink);
  margin-bottom: 6px;
}

.event-time {
  font-size: 14px;
  color: #607987;
  margin-bottom: 16px;
}

.event-venue {
  font-family: var(--ph-heading-font);
  font-size: 20px;
  font-weight: 600;
  color: var(--bb-ink);
  margin-bottom: 6px;
}

.event-address {
  font-size: 13px;
  line-height: 1.7;
  color: var(--bb-text);
  margin-bottom: 20px;
  max-width: 36ch;
  margin-inline: auto;
}

/* Map Preview Container */
.map-preview-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(216, 208, 189, 0.7);
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.map-preview-wrap iframe {
  width: 100%;
  height: 180px;
  border: 0;
  filter: saturate(0.7);
}

.event-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.btn-event-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 10px;
  font-family: var(--ph-heading-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.btn-primary-action {
  background: var(--ph-button-primary);
  color: var(--ph-button-text);
  box-shadow: 0 3px 10px rgba(237, 197, 181, 0.4);
}

.btn-primary-action:hover {
  background: var(--ph-button-primary-hover);
  transform: translateY(-2px);
}

.btn-secondary-action {
  background: transparent;
  color: #556c7a;
  border: 1px solid rgba(96, 121, 135, 0.4);
}

.btn-secondary-action:hover {
  background: rgba(237, 197, 181, 0.2);
  color: var(--bb-ink);
}

.btn-event-action svg {
  width: 15px;
  height: 15px;
}

/* Calendar Links */
.calendar-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 14px;
}

.cal-link {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #556c7a;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cal-link:hover {
  color: var(--bb-ink);
}

/* ==========================================================================
   6. COUNTDOWN SECTION
   ========================================================================== */
.bb-countdown {
  position: relative;
  padding: 50px 0;
}

.countdown-timer-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 360px;
  margin: 30px auto 20px;
}

.cd-box {
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid rgba(216, 208, 189, 0.6);
  border-radius: 12px;
  padding: 14px 6px;
  box-shadow: 0 4px 12px rgba(51, 75, 92, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-num {
  font-family: var(--ph-heading-font);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: var(--bb-ink);
  margin-bottom: 4px;
}

.cd-label {
  font-family: var(--ph-body-font);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #607987;
}

.cd-sub {
  font-family: var(--ph-heading-font);
  font-size: 18px;
  font-style: italic;
  color: #556c7a;
}

.countdown-sage-left {
  position: absolute;
  bottom: 0;
  left: 2%;
  width: 25%;
  max-width: 100px;
  pointer-events: none;
}

.countdown-butterfly-right {
  position: absolute;
  top: 15%;
  right: 4%;
  width: 30%;
  max-width: 110px;
  pointer-events: none;
}

/* ==========================================================================
   7. GALLERY SECTION (POLAROID SCATTER)
   ========================================================================== */
.bb-gallery {
  position: relative;
  padding: 60px 0 40px;
}

.gallery-carousel-wrap {
  width: min(100%, 360px);
  margin: 28px auto 0;
  position: relative;
}

.gallery-polaroid-card {
  background: #fffdf8;
  border: 1px solid rgba(216, 208, 189, 0.6);
  padding: 12px 12px 18px;
  border-radius: 2px;
  box-shadow: 2px 10px 25px rgba(81, 75, 56, 0.16);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
  cursor: pointer;
}

.gallery-polaroid-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.gallery-photo-frame {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  overflow: hidden;
  background: #e6edf0;
}

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

.gallery-photo-caption {
  font-family: var(--ph-script-font);
  font-size: 26px;
  color: var(--bb-ink);
  margin-top: 14px;
}

.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

.gallery-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fffdf8;
  border: 1px solid rgba(216, 208, 189, 0.7);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--bb-ink);
  transition: all 0.2s ease;
}

.gallery-nav-btn:hover {
  background: var(--ph-button-primary);
  transform: scale(1.1);
}

.gallery-counter {
  font-family: var(--ph-heading-font);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: #607987;
}

.gallery-hint {
  font-size: 11px;
  color: #8899a2;
  margin-top: 12px;
  letter-spacing: 0.04em;
}

.gallery-butterfly-left {
  position: absolute;
  top: 0;
  left: 2%;
  width: 32%;
  max-width: 120px;
  pointer-events: none;
}

.gallery-wildflowers-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48%;
  max-width: 200px;
  pointer-events: none;
}

/* ==========================================================================
   8. LOVE STORY SECTION
   ========================================================================== */
.bb-story {
  position: relative;
  padding: 50px 0;
}

.story-card-wrap {
  width: min(100%, 380px);
  margin: 30px auto 0;
}

.story-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid rgba(216, 208, 189, 0.6);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(51, 75, 92, 0.06);
}

.story-img {
  height: 100%;
  min-height: 170px;
}

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

.story-text {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.story-tag {
  font-family: var(--ph-heading-font);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #789caa;
  margin-bottom: 6px;
}

.story-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--bb-ink);
}

.story-sprig-right {
  position: absolute;
  top: 10px;
  right: 2%;
  width: 25%;
  max-width: 90px;
  pointer-events: none;
}

/* ==========================================================================
   9. GIFT SECTION (HADIAH)
   ========================================================================== */
.bb-gift {
  position: relative;
  padding: 60px 0 40px;
}

.gift-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--bb-text);
  max-width: 32ch;
  margin: 14px auto 28px;
}

.bank-card {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 24px 20px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(216, 208, 189, 0.7);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(81, 75, 56, 0.08);
  text-align: center;
}

.bank-logo {
  font-family: var(--ph-sans-font);
  font-size: 22px;
  font-weight: 700;
  color: #0060af;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.bank-number {
  font-family: var(--ph-heading-font);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--bb-ink);
  margin-bottom: 4px;
}

.bank-holder {
  font-size: 14px;
  color: #556c7a;
  margin-bottom: 18px;
}

.btn-copy-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 22px;
  border-radius: 8px;
  background: var(--ph-button-primary);
  color: var(--ph-button-text);
  font-family: var(--ph-heading-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.btn-copy-account:hover {
  background: var(--ph-button-primary-hover);
  transform: translateY(-2px);
}

.btn-confirm-gift {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: #556c7a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gift-butterfly-left {
  position: absolute;
  top: 10px;
  left: 2%;
  width: 30%;
  max-width: 110px;
  pointer-events: none;
}

.gift-wildflowers-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48%;
  max-width: 200px;
  pointer-events: none;
}

/* ==========================================================================
   10. WISHES & RSVP SECTION
   ========================================================================== */
.bb-rsvp {
  position: relative;
  padding: 80px 0 50px;
}

.rsvp-mailbox-center {
  width: 80px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
  pointer-events: none;
}

.bb-rsvp-title {
  font-family: var(--ph-heading-font);
  font-size: clamp(34px, 9vw, 46px);
  font-weight: 400;
  color: var(--bb-ink);
  line-height: 1.15;
  margin: 0;
}

.bb-rsvp-subtitle {
  max-width: 32ch;
  margin: 10px auto 26px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--bb-ink);
}

.bb-rsvp-panel {
  width: min(100%, 420px);
  margin: 0 auto;
}

/* Form */
.wishes-form {
  padding: 24px 20px;
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid rgba(216, 208, 189, 0.6);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(75, 85, 78, 0.05);
  text-align: left;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-family: var(--ph-heading-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bb-ink);
  margin-bottom: 6px;
}

.wishes-input, .wishes-select, .wishes-textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #607987;
  background: #fffdf8;
  color: var(--bb-ink);
  font-family: var(--ph-body-font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wishes-textarea {
  min-height: 90px;
  resize: vertical;
}

.wishes-input:focus, .wishes-select:focus, .wishes-textarea:focus {
  border-color: var(--bb-primary);
  box-shadow: 0 0 0 3px rgba(95, 143, 183, 0.2);
}

/* Sticker Selection Row */
.sticker-selector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.btn-open-stickers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #eef7fa;
  border: 1px solid rgba(95, 143, 183, 0.4);
  font-family: var(--ph-heading-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #476d7c;
  transition: all 0.2s ease;
}

.btn-open-stickers:hover {
  background: #dbe9ed;
}

.selected-sticker-preview {
  display: flex;
  align-items: center;
  gap: 8px;
}

.selected-sticker-preview img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.btn-remove-sticker {
  font-size: 14px;
  color: #999;
  cursor: pointer;
}

.btn-send-wish {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  background: var(--ph-button-primary);
  color: var(--ph-button-text);
  font-family: var(--ph-heading-font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(237, 197, 181, 0.4);
  transition: all 0.3s ease;
}

.btn-send-wish:hover {
  background: var(--ph-button-primary-hover);
  transform: translateY(-2px);
}

/* Wishes Feed / Guestbook */
.wishes-list {
  display: block;
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid rgba(96, 121, 135, 0.6);
  border-radius: 4px 4px 16px 4px;
  background: rgba(255, 253, 248, 0.85);
  box-shadow: 2px 6px 16px rgba(51, 75, 92, 0.05);
}

.bb-rsvp-wish {
  padding: 20px 18px 19px;
  color: var(--bb-ink);
  text-align: left;
}

.bb-rsvp-wish + .bb-rsvp-wish {
  border-top: 1px solid #d8d0bd;
}

.bb-rsvp-wish-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: center;
}

.bb-rsvp-wish-avatar {
  display: grid;
  grid-row: 1;
  grid-column: 1;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #7797a3;
  border-radius: 50%;
  color: #476d7c;
  font-family: var(--ph-heading-font);
  font-size: 18px;
  font-weight: 600;
  background: rgba(238, 247, 250, 0.6);
}

.bb-rsvp-wish-name {
  grid-column: 2;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--bb-ink);
  font-family: var(--ph-heading-font);
  font-size: 17px;
  font-weight: 600;
}

.bb-rsvp-wish-time {
  grid-column: 3;
  justify-self: end;
  color: #607987;
  font-family: var(--ph-body-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bb-rsvp-wish-message {
  margin: 10px 0 0 60px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: var(--bb-ink);
  font-family: var(--ph-body-font);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
}

.bb-rsvp-wish-sticker {
  display: block;
  width: min(100px, 40%);
  max-width: 100px;
  max-height: 100px;
  margin: 12px auto 8px;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgba(51, 75, 92, 0.1));
}

.bb-rsvp-wish-attendance {
  display: inline-flex;
  margin: 12px 0 0 60px;
  color: #476d7c;
  font-family: var(--ph-body-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #eef7fa;
  padding: 3px 8px;
  border-radius: 4px;
}

.btn-load-more-wishes {
  display: block;
  width: fit-content;
  min-height: 44px;
  margin: 22px auto 0;
  padding: 8px 24px;
  border-radius: 8px;
  border: 1px solid rgba(96, 121, 135, 0.4);
  background: #fffdf8;
  color: var(--bb-ink);
  font-family: var(--ph-heading-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-load-more-wishes:hover {
  background: var(--ph-button-primary);
}

.rsvp-wildflowers-left {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48%;
  max-width: 200px;
  pointer-events: none;
}

.rsvp-wildflowers-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 48%;
  max-width: 200px;
  pointer-events: none;
}



/* ==========================================================================
   12. CLOSING SECTION
   ========================================================================== */
.bb-closing {
  position: relative;
  padding: 38px 0 20px;
  overflow: clip;
}

.bb-closing .bb-content {
  padding: 12px 24px 0;
  position: relative;
  z-index: 2;
}

.bb-closing-thanks {
  font-family: var(--ph-heading-font);
  font-size: clamp(26px, 7vw, 31px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--bb-ink);
  margin: 0 auto 12px;
  max-width: 22ch;
}

.bb-closing-message {
  font-size: 13.5px;
  line-height: 1.75;
  max-width: 32ch;
  margin: 0 auto 18px;
  color: var(--bb-text);
}

.bb-closing .bb-names {
  font-size: clamp(36px, 9.5vw, 48px);
  margin: 0 auto;
}

.closing-corner-top-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 28%;
  max-width: 110px;
  pointer-events: none;
  z-index: 1;
}

/* Closing Garden with 4 Butterflies - Proportional Garden Base & Integrated Branding */
.bb-closing-garden {
  position: relative;
  width: 100%;
  min-height: 220px;
  margin: 14px 0 0;
  padding: 16px 20px 92px; /* 92px safe clearance from floating navbar & vinyl button */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: clip;
  z-index: 2;
}

.bb-closing-garden-side {
  position: absolute;
  z-index: 1;
  bottom: 0;
  width: min(44%, 170px);
  pointer-events: none;
}

.bb-closing-garden-left {
  left: -8px;
}

.bb-closing-garden-right {
  right: -8px;
}

.bb-closing-flight {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.bb-closing-butterfly {
  position: absolute;
  z-index: 2;
  width: clamp(22px, 6.5vw, 32px);
  pointer-events: none;
}

.bb-cbf-one {
  left: 18%;
  bottom: 66%;
  --bb-butterfly-angle: -12deg;
  --bb-wing-duration: 3.5s;
  --bb-drift-duration: 9.8s;
  --bb-drift-x: 8px;
  --bb-drift-y: 10px;
}

.bb-cbf-two {
  left: 50%;
  bottom: 82%;
  width: clamp(18px, 5.5vw, 26px);
  --bb-butterfly-angle: 10deg;
  --bb-butterfly-mirror: -1;
  --bb-wing-duration: 3s;
  --bb-drift-duration: 8.4s;
  --bb-drift-x: 6px;
  --bb-drift-y: 8px;
}

.bb-cbf-three {
  right: 18%;
  bottom: 60%;
  width: clamp(24px, 7vw, 34px);
  --bb-butterfly-angle: 16deg;
  --bb-wing-duration: 4s;
  --bb-drift-duration: 10.6s;
  --bb-drift-x: 9px;
  --bb-drift-y: 11px;
}

.bb-cbf-four {
  right: 44%;
  bottom: 40%;
  width: clamp(18px, 5.5vw, 26px);
  --bb-butterfly-angle: -18deg;
  --bb-butterfly-mirror: -1;
  --bb-wing-duration: 3.2s;
  --bb-drift-duration: 8.9s;
  --bb-drift-x: 5px;
  --bb-drift-y: 7px;
}

.bb-closing-credit {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  margin: 0 auto;
  pointer-events: auto;
}

.bb-closing-credit p {
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #778893;
  margin: 0 0 8px 0;
  font-weight: 500;
}

.bb-closing-credit a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.bb-closing-credit span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: #3b5a69;
  letter-spacing: 1.2px;
  margin-bottom: 3px;
}

.bb-closing-credit img {
  height: 44px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-top: 2px;
}

/* ==========================================================================
   13. FLOATING MUSIC PLAYER & FLOATING NAVBAR
   ========================================================================== */
/* Music Player */
.floating-music-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fffdf8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  z-index: 99;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.floating-music-btn:hover {
  transform: scale(1.08);
}

.vinyl-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 25%, #111 26%, #282828 40%, #111 41%, #222 60%, #111 61%, #1e1e1e 80%, #0d0d0d 100%);
  position: relative;
  display: grid;
  place-items: center;
  animation: spin-disc 4s linear infinite;
}

.floating-music-btn.paused .vinyl-disc {
  animation-play-state: paused;
}

.vinyl-center-hole {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bb-secondary);
  border: 2px solid #111;
}

.music-icon {
  position: absolute;
  color: #fff;
  width: 14px;
  height: 14px;
  z-index: 2;
}

@keyframes spin-disc {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Floating Bottom Navbar Dock */
.floating-navbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(216, 208, 189, 0.7);
  border-radius: 28px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 6px 24px rgba(51, 75, 92, 0.12);
  z-index: 90;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  opacity: 0;
  pointer-events: none;
}

.floating-navbar.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .floating-navbar {
    left: calc(100vw - 260px);
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #607987;
  font-size: 10px;
  font-family: var(--ph-heading-font);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
}

.nav-item.active, .nav-item:hover {
  color: var(--bb-ink);
  background: rgba(237, 197, 181, 0.4);
}

/* ==========================================================================
   14. MODALS & POPUPS (STICKERS, LIGHTBOX, TOAST)
   ========================================================================== */
/* Sticker Picker Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 40, 45, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: grid;
}

.sticker-modal-box {
  background: #fffdf8;
  border-radius: 20px;
  padding: 24px;
  width: min(100%, 420px);
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
}

.modal-title {
  font-family: var(--ph-heading-font);
  font-size: 22px;
  font-weight: 600;
  color: var(--bb-ink);
  margin-bottom: 16px;
}

.sticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.sticker-item {
  aspect-ratio: 1;
  background: #f7fafb;
  border: 1px solid rgba(216, 208, 189, 0.6);
  border-radius: 12px;
  padding: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sticker-item:hover {
  transform: scale(1.08);
  border-color: var(--bb-primary);
  background: #eef7fa;
}

.sticker-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 20px;
  color: #888;
  cursor: pointer;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  place-items: center;
  z-index: 2000;
  padding: 20px;
}

.lightbox-modal.active {
  display: grid;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}



/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #303d42;
  color: #fffdf8;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: var(--ph-heading-font);
  font-size: 14px;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 3000;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1500;
  width: 100%;
  height: 100%;
}

/* --- Scroll Reveal Animations --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Keyframe Generic Helper --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
