/* Burgundy Love invitation — loaded only on the invitation itself. */

.bw-site {
  --font-heading: 'Bodoni Moda', 'Cormorant Garamond', serif;
  --font-supporting: 'Cormorant Garamond', serif;
  --font-script: 'Pinyon Script', 'Allura', cursive;
  --font-display: var(--font-heading);
  --font-body: var(--font-supporting);
  --burgundy: #8f1f32;
  --espresso: #5a3a2e;
  --gold: #c6a267;
  --ivory: #fefefb;
  font-family: var(--font-supporting);
  color: var(--espresso);
  background: var(--ivory);
  overflow-x: hidden;
}

.bw-site *,
.bw-site *::before,
.bw-site *::after {
  box-sizing: border-box;
}

.bw-site ::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

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

@keyframes bwFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bwPulseGentle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes bwBounceChevron {
  0%, 100% { transform: translateY(0) rotate(90deg); }
  50% { transform: translateY(6px) rotate(90deg); }
}

@keyframes bwShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes bwRevealClip {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0% 0 0); }
}

/* Keep letter spacing fixed: rewrapping the names resizes the full-height curtains. */
@keyframes bwLuxurySmallReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes bwLuxuryNameReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes bwScrollLuxuryReveal {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes bwLetterReveal {
  from {
    opacity: 0;
    transform: translateY(7px);
    filter: blur(2px);
    letter-spacing: 0.055em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    letter-spacing: 0;
  }
}

@keyframes bwHandwritingReveal {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateY(8px) scaleX(1.42);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0) scaleX(1.42);
    filter: blur(0);
  }
}

@keyframes bwGarlandSway {
  0% { transform: rotate(-0.8deg); }
  50% { transform: rotate(0.8deg); }
  100% { transform: rotate(-0.8deg); }
}

@keyframes bwDancerBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.bw-fade-up { animation: bwFadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.bw-fade { animation: bwFadeIn 1.2s ease both; }
.bw-pulse { animation: bwPulseGentle 2.4s ease-in-out infinite; }
.bw-chevron { animation: bwBounceChevron 1.2s ease-in-out infinite; }
.bw-reveal { animation: bwRevealClip 1.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.bw-hero-eyebrow { animation: bwLuxurySmallReveal 1.05s cubic-bezier(0.22, 1, 0.36, 1) both; }
.bw-hero-name-one { animation: bwLuxuryNameReveal 1.05s cubic-bezier(0.22, 1, 0.36, 1) 220ms both; }
.bw-hero-and { animation: bwHandwritingReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 440ms both; }
.bw-hero-name-two { animation: bwLuxuryNameReveal 1.05s cubic-bezier(0.22, 1, 0.36, 1) 660ms both; }
.bw-hero-invite { animation: bwLuxurySmallReveal 1.05s cubic-bezier(0.22, 1, 0.36, 1) 880ms both; }
.bw-sway { transform-origin: center top; animation: bwGarlandSway 4s ease-in-out infinite; }
.bw-dancer1 { animation: bwDancerBlink 0.7s steps(1) infinite; }
.bw-dancer2 { animation: bwDancerBlink 0.7s steps(1) infinite reverse; }

.bw-scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
}

.bw-scroll-reveal.bw-is-visible {
  animation: bwScrollLuxuryReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) var(--bw-stagger, 0ms) both;
}

.bw-letter {
  display: inline-block;
}

.bw-is-visible .bw-letter,
.bw-hero-name-one .bw-letter,
.bw-hero-name-two .bw-letter {
  animation: bwLetterReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bw-countdown-unit.bw-is-visible {
  animation: bwScrollLuxuryReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bw-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;
}

@media (prefers-reduced-motion: reduce) {
  .bw-hero-eyebrow,
  .bw-hero-name-one,
  .bw-hero-and,
  .bw-hero-name-two,
  .bw-hero-invite,
  .bw-scroll-reveal,
  .bw-countdown-unit,
  .bw-letter {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.bw-burgundy-shimmer {
  color: var(--burgundy);
}

.bw-gold-shimmer {
  color: var(--gold);
}

.bw-site input,
.bw-site textarea,
.bw-site select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--espresso);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--burgundy) 25%, transparent);
  border-radius: 2px;
  padding: 0.7rem 0.9rem;
}

.bw-site input:focus,
.bw-site textarea:focus {
  outline: none;
  border-color: var(--burgundy);
}

.bw-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--espresso);
  margin-bottom: 0.45rem;
  text-align: left;
}

.bw-button {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.75rem, 3vw, 0.88rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--burgundy);
  padding: 1rem 2.5rem;
  border: 1px solid var(--burgundy);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.bw-button:hover:not(:disabled) {
  background: transparent;
  color: var(--burgundy);
}

.bw-button:disabled { opacity: 0.6; cursor: default; }

.bw-choice {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.bw-choice button {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.85rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--burgundy) 30%, transparent);
  background: transparent;
  color: var(--espresso);
  cursor: pointer;
}

.bw-choice button[data-active='true'] {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--ivory);
}

/* Lock the page until the invitation has been opened — applies from first paint */
html:has(.bw-locked),
body:has(.bw-locked) {
  overflow: hidden !important;
  touch-action: none;
  overscroll-behavior: none;
}


/* Image-based opening, matched to Emerald Grande. */
/* ================= ENVELOPE OVERLAY ================= */
.bw-envelope-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 100;
  pointer-events: auto;
  overflow: hidden;
  background: transparent;
}

.bw-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  height: 100%;
  overflow: hidden;
  transition: transform 3s cubic-bezier(0.45, 0, 0.2, 1);
  will-change: transform;
}

.bw-door-left {
  left: 0;
  z-index: 5;
  box-shadow: 8px 0 24px rgba(0, 0, 0, 0.25);
  overflow: visible;
}

.bw-door-right {
  right: 0;
  z-index: 1;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.25);
}

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

.bw-door-left .bw-door-img {
  object-position: right center;
}

.bw-door-right .bw-door-img {
  object-position: left center;
}

/* When opening: doors part left and right, moving all the way off-screen */
.bw-envelope-overlay.is-opening .bw-door-left {
  transform: translateX(calc(-100% - clamp(180px, 30vw, 260px)));
}

.bw-envelope-overlay.is-opening .bw-door-right {
  transform: translateX(calc(100% + 40px));
}

/* Wax Seal Interaction - Physically attached to the right edge of left door */
.bw-seal-wrap {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  z-index: 10;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  outline: none;
  background: none;
  border: none;
  padding: 0;
}

.bw-seal-btn {
  position: relative;
  width: clamp(195px, 44vw, 265px);
  height: clamp(195px, 44vw, 265px);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.42));
}

.bw-seal-btn:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.52));
}

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

.bw-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Curved 'Tap to Open' Gold Text Arched Around the Top of the Wax Seal */
.bw-seal-curved-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 142%;
  height: 142%;
  pointer-events: none;
  overflow: visible;
  z-index: 5;
  transition: opacity 0.22s ease-out;
}

.bw-seal-curved-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 13.5px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  fill: rgba(232, 213, 163, 0.95);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
  animation: bwCurvedPulse 3s ease-in-out infinite;
}

@keyframes bwCurvedPulse {
  0%, 100% {
    opacity: 0.88;
    fill: rgba(232, 213, 163, 0.88);
  }
  50% {
    opacity: 1;
    fill: #fdf5df;
    filter: drop-shadow(0 0 8px rgba(232, 213, 163, 0.8)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
  }
}

/* When opening: text disappears immediately, seal rides with left door */
.bw-envelope-overlay.is-opening .bw-seal-curved-svg {
  opacity: 0 !important;
}

/* ================= STAGE: CURTAINS & CHANDELIER ================= */
.bw-stage {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: visible;
  padding: clamp(60px, 8vh, 100px) 24px 110px;
  box-sizing: border-box;
}

/* Top valance matches Emerald Grande's shallow trim within the scrolling stage. */
.bw-curtain-top {
  position: absolute;
  top: clamp(-125px, -8.5vw, -65px);
  left: 0;
  right: 0;
  width: 100%;
  height: clamp(95px, 12.5vw, 165px);
  z-index: 28;
  pointer-events: none;
  object-fit: fill;
  object-position: top center;
  filter: drop-shadow(0 3px 10px rgba(90, 22, 38, 0.12));
}

/* Side Curtains - FULL HEIGHT DRAPES, 100% UNCROPPED */
.bw-curtain-left,
.bw-curtain-right {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  z-index: 35;
  pointer-events: none;
  object-fit: contain;
  will-change: transform;
}

.bw-curtain-left {
  left: clamp(-45px, -5vw, -20px);
  object-position: top left;
  transform-origin: top left;
  transform: translateX(0);
  filter: drop-shadow(6px 0 16px rgba(90, 22, 38, 0.14));
}

.bw-curtain-right {
  right: clamp(-45px, -5vw, -20px);
  object-position: top right;
  transform-origin: top right;
  transform: translateX(0);
  filter: drop-shadow(-6px 0 16px rgba(90, 22, 38, 0.14));
}

/* When opening */
.bw-stage.stage-opening .bw-curtain-left {
  animation: bwCurtainPartLeft 3.2s cubic-bezier(0.4, 0, 0.2, 1) .5s both;
}

.bw-stage.stage-opening .bw-curtain-right {
  animation: bwCurtainPartRight 3.2s cubic-bezier(0.4, 0, 0.2, 1) .5s both;
}

@keyframes bwCurtainPartLeft {
  0% {
    transform: translateX(15%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes bwCurtainPartRight {
  0% {
    transform: translateX(-15%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Side flowers arrive after the curtains have parted, without changing layout. */
.bw-side-flowers {
  position: absolute;
  top: 50%;
  height: clamp(480px, 68dvh, 760px);
  width: auto;
  max-width: 19vw;
  object-fit: contain;
  z-index: 37;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 8px 18px rgba(65, 24, 27, .24));
  will-change: transform, opacity;
}

.bw-flowers-left {
  left: 0;
  object-position: left center;
  transform: translate3d(-110%, -50%, 0);
}

.bw-flowers-right {
  right: 0;
  object-position: right center;
  transform: translate3d(110%, -50%, 0);
}

.bw-stage.stage-opening .bw-flowers-left {
  animation: bwFlowersEnterLeft 2.4s cubic-bezier(.22, 1, .36, 1) 3.8s both;
}

.bw-stage.stage-opening .bw-flowers-right {
  animation: bwFlowersEnterRight 2.4s cubic-bezier(.22, 1, .36, 1) 3.8s both;
}

@keyframes bwFlowersEnterLeft {
  from { transform: translate3d(-110%, -50%, 0); opacity: 0; }
  to { transform: translate3d(0, -50%, 0); opacity: 1; }
}

@keyframes bwFlowersEnterRight {
  from { transform: translate3d(110%, -50%, 0); opacity: 0; }
  to { transform: translate3d(0, -50%, 0); opacity: 1; }
}

/* Entrance Side Flowers Group — duplicated bouquets (big & small) framing left and right */
.bw-side-flowers-group {
  position: absolute;
  top: 0;
  bottom: 0;
  height: 100%;
  pointer-events: none;
  z-index: 37;
  will-change: transform, opacity;
  opacity: 0;
}

.bw-flowers-left-group {
  left: 0;
  width: clamp(140px, 22vw, 360px);
  transform: translate3d(-110%, 0, 0);
}

.bw-flowers-right-group {
  right: 0;
  width: clamp(140px, 22vw, 360px);
  transform: translate3d(110%, 0, 0);
}

.bw-stage.stage-opening .bw-flowers-left-group {
  animation: bwFlowersGroupEnterLeft 2.4s cubic-bezier(.22, 1, .36, 1) 3.8s both;
}

.bw-stage.stage-opening .bw-flowers-right-group {
  animation: bwFlowersGroupEnterRight 2.4s cubic-bezier(.22, 1, .36, 1) 3.8s both;
}

@keyframes bwFlowersGroupEnterLeft {
  from { transform: translate3d(-110%, 0, 0); opacity: 0; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}

@keyframes bwFlowersGroupEnterRight {
  from { transform: translate3d(110%, 0, 0); opacity: 0; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}

.bw-side-flower {
  position: absolute;
  width: auto;
  max-width: 24vw;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(65, 24, 27, 0.12));
  user-select: none;
  transform-origin: center center;
}

.bw-side-flower-left {
  left: 0;
  object-position: left center;
}

.bw-side-flower-right {
  right: 0;
  object-position: right center;
}

/* ================= CHANDELIERS ================= */

/* Base Chandelier Rig */
.bw-chandelier-rig {
  position: absolute;
  pointer-events: none;
  transform-origin: top center;
  will-change: transform;
}

/* Center Chandelier - Hidden on large screens (desktop/tablet landscape) */
.bw-chandelier-center {
  display: none;
  left: 50%;
  top: 0;
  z-index: 38;
}

.bw-chandelier-center.rig-enter {
  animation: bwChandelierDropBounceCenter 3.4s cubic-bezier(0.22, 1, 0.36, 1) .8s both;
}

@keyframes bwChandelierDropBounceCenter {
  from { transform: translateX(-50%) translateY(-110%); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Center Sway */
.bw-chandelier-center .bw-chandelier-sway {
  transform-origin: top center;
  will-change: transform;
  animation: bwChandelierSmoothSwayCenter 4.6s ease-in-out infinite alternate;
}

@keyframes bwChandelierSmoothSwayCenter {
  0% {
    transform: rotate(-2.8deg);
  }
  50% {
    transform: rotate(2.8deg);
  }
  100% {
    transform: rotate(-2.8deg);
  }
}

/* Dual Side Chandeliers for Large Screens: Stately, elegant, positioned down to the sides */
.bw-chandelier-left,
.bw-chandelier-right {
  display: block;
  top: -14px;
  z-index: 24;
}

.bw-chandelier-left {
  left: clamp(80px, 14vw, 280px);
}

.bw-chandelier-right {
  right: clamp(80px, 14vw, 280px);
  left: auto;
}

.bw-chandelier-left.rig-enter,
.bw-chandelier-right.rig-enter {
  animation: bwChandelierDropBounceSide 3.4s cubic-bezier(0.22, 1, 0.36, 1) .8s both;
}

@keyframes bwChandelierDropBounceSide {
  from { transform: translateY(-110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Side Chandeliers Swaying in graceful harmony */
.bw-sway-left {
  transform-origin: top center;
  will-change: transform;
  animation: bwChandelierSmoothSwayLeft 4.8s ease-in-out infinite alternate;
}

.bw-sway-right {
  transform-origin: top center;
  will-change: transform;
  animation: bwChandelierSmoothSwayRight 5.2s ease-in-out infinite alternate -0.9s;
}

@keyframes bwChandelierSmoothSwayLeft {
  0% {
    transform: rotate(-2.2deg);
  }
  50% {
    transform: rotate(2.2deg);
  }
  100% {
    transform: rotate(-2.2deg);
  }
}

@keyframes bwChandelierSmoothSwayRight {
  0% {
    transform: rotate(2.2deg);
  }
  50% {
    transform: rotate(-2.2deg);
  }
  100% {
    transform: rotate(2.2deg);
  }
}

/* Sizing of Desktop Side Chandeliers: Stately, refined, slightly bigger */
.bw-chandelier-left .bw-chandelier-img,
.bw-chandelier-right .bw-chandelier-img {
  display: block;
  width: clamp(150px, 14.5vw, 210px);
  height: auto;
  filter: drop-shadow(0 12px 26px rgba(140, 111, 50, 0.32)) drop-shadow(0 5px 12px rgba(0, 0, 0, 0.18));
}

/* Chandelier Sparkle Glow */
.bw-chandelier-glow {
  position: absolute;
  inset: 25% 15% 10% 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 205, 150, 0.12) 0%, rgba(197, 160, 89, 0.04) 50%, transparent 80%);
  filter: blur(12px);
  pointer-events: none;
  animation: bwGlowBreathe 3s ease-in-out infinite alternate;
}

@keyframes bwGlowBreathe {
  0% {
    opacity: 0.6;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.bw-stage {
  z-index: 1;
  isolation: isolate;
  user-select: none;
}

.bw-stage-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.bw-seal-wrap:focus-visible { outline: 2px solid #f4dfb5; outline-offset: 12px; border-radius: 50%; }
.bw-seal-initials {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 400;
}

/* The supplied valance includes transparent space above and below the fabric. */
.bw-curtain-top { overflow: hidden; }
.bw-curtain-top img { position: absolute; left: 0; top: -62%; width: 100%; height: 230%; max-width: none; object-fit: fill; }
.bw-curtain-left, .bw-curtain-right { max-width: none; }

.bw-hero-content { position: relative; z-index: 38; width: 100%; max-width: min(60vw, 720px); text-align: center; padding: 10px 16px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bw-hero-pending { visibility: hidden; }
.bw-hero-pending * { animation: none !important; }
.bw-hero-ornament { display: block; width: clamp(140px, 32vw, 190px); height: auto; margin: 0 auto; }
.bw-hero-ornament-top { margin-bottom: .75rem; }
.bw-hero-ornament-bottom { margin: 1.15rem auto 1.25rem; }
.bw-hero-eyebrow, .bw-hero-invite { font-family: var(--font-supporting); font-weight: 600; font-size: clamp(.8rem, 2.4vw, 1rem); letter-spacing: .2em; line-height: 1.7; text-transform: uppercase; color: var(--espresso); margin: 0 0 1rem; }
.bw-hero-invite { margin: 1.35rem 0 0; letter-spacing: .18em; }
.bw-hero-name-one, .bw-hero-name-two { font-family: var(--font-heading); line-height: 1.02; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--burgundy); margin: 0; overflow-wrap: anywhere; width: 100%; }
.bw-hero-and { font-family: var(--font-script); font-weight: 400; font-size: clamp(2.7rem, 12vw, 4.2rem); letter-spacing: 0; color: var(--burgundy); line-height: .78; margin: .12rem 0 .18rem; transform: scaleX(1.42); transform-origin: center; }
.bw-scroll-indicator { position: relative; z-index: 38; display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: .25rem auto 0; padding: .5rem 1rem; background: none; border: 0; color: var(--espresso); font-family: var(--font-supporting); font-size: .74rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; cursor: pointer; }
.bw-scroll-indicator img { width: 13px; height: 38px; }

@media (max-width: 900px), (max-width: 1024px) and (orientation: portrait) {
  .bw-chandelier-left, .bw-chandelier-right { display: none; }
  .bw-chandelier-center { display: block; top: 1.5dvh; z-index: 24; }
  .bw-chandelier-center .bw-chandelier-img { display: block; width: min(58vw, 28dvh); height: auto; filter: drop-shadow(0 12px 20px rgba(140, 111, 50, .25)); }
  .bw-stage { justify-content: flex-start; padding: 34dvh 0 max(145px, 18dvh); }
  .bw-hero-content { width: 60%; max-width: 600px; padding: 0; }
  .bw-hero-ornament { width: 31vw; }
  .bw-hero-ornament-top { margin-bottom: 1.5dvh; }
  .bw-hero-ornament-bottom { margin: 2dvh auto 0; }
  .bw-hero-eyebrow { font-size: clamp(12px, 3.45vw, 24px); line-height: 1.6; margin: 0 0 2dvh; width: 100%; }
  .bw-hero-invite { font-size: clamp(12px, 3.45vw, 24px); line-height: 1.7; margin: 2.2dvh 0 0; width: 100%; text-wrap: balance; }
  .bw-curtain-left { left: clamp(-55px, -12vw, -30px); }
  .bw-curtain-right { right: clamp(-55px, -12vw, -30px); }
  .bw-side-flowers {
    top: 44%;
    height: 34dvh;
    filter: drop-shadow(0 5px 10px rgba(65, 24, 27, .2));
  }
  .bw-side-flower {
    max-width: 32vw;
    filter: drop-shadow(0 5px 10px rgba(65, 24, 27, .2));
  }
  .bw-scroll-indicator { font-size: clamp(10px, 2.6vw, 18px); letter-spacing: .25em; }
  .bw-scroll-indicator img { height: 44px; width: 12px; margin-top: 8px; }
}

/* Editor previews are already open; show the settled scene immediately. */
.bw-stage-preview .bw-curtain-left, .bw-stage-preview .bw-curtain-right,
.bw-stage-preview .bw-chandelier-rig { animation: none !important; }
.bw-stage-preview .bw-chandelier-center { transform: translateX(-50%); }
.bw-stage-preview .bw-side-flowers {
  animation: none !important;
  opacity: 1;
  transform: translate3d(0, -50%, 0);
}
.bw-stage-preview .bw-side-flowers-group,
.bw-stage-preview .bw-flowers-left-group,
.bw-stage-preview .bw-flowers-right-group {
  animation: none !important;
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

/* Countdown Envelope & Scroll Motion */
.bw-countdown-envelope {
  position: relative;
  width: min(84vw, 380px);
  aspect-ratio: 965 / 1024;
  margin: 3.5rem auto 3rem;
  z-index: 3;
}

@media (max-width: 480px) {
  .bw-countdown-envelope {
    width: min(82vw, 340px);
    margin: 3rem auto 2.5rem;
  }
}

.bw-countdown-envelope-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 14px 28px rgba(45, 10, 18, 0.16));
}

.bw-countdown-envelope-heart {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 74%;
  aspect-ratio: 476 / 412;
  transform: translate(-50%, 50px) scale(0.95);
  z-index: 2;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.35));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: transform 0.12s linear;
}

.bw-countdown-envelope-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
}

/* Footer Couple Image: offset to the bottom on desktop so the dress cascades off-screen naturally */
.bw-footer-couple {
  width: 100%;
  max-width: 520px;
  display: block;
  mix-blend-mode: multiply;
}

@media (min-width: 768px) {
  .bw-footer-couple {
    max-width: 680px;
    margin-bottom: -28%;
  }
}

@media (min-width: 1200px) {
  .bw-footer-couple {
    max-width: 720px;
    margin-bottom: -30%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bw-site *, .bw-site *::before, .bw-site *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
