/* =====================================================================
   AARON & DIYA — WEDDING INVITATION
   Design system + all sections
===================================================================== */

/* ── DESIGN TOKENS ── */
:root {
  /* Colors */
  --burgundy-deep: #3E0F1E;
  --burgundy: #6B1E32;
  --burgundy-mid: #8A2B40;
  --navy-deep: #0B1526;
  --navy: #16233F;
  --gold: #C9A24B;
  --gold-light: #F0D897;
  --gold-dim: #8a6a1f;
  --cream: #F6EFDD;
  --cream-mid: #EEE4C8;
  --cream-dark: #E4D8B8;
  --ink: #2A1B14;
  --ink-soft: #4a372c;
  --ink-muted: #7a5e4e;

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-script: 'Tangerine', cursive;
  --font-utility: 'Cinzel', serif;
  --font-body: 'EB Garamond', serif;

  /* Easing */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy-deep);
  /* dark until cover opens */
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── TYPOGRAPHY SCALE ── */
.eyebrow {
  font-family: var(--font-utility);
  letter-spacing: .34em;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 400;
  color: var(--burgundy);
  margin: 0 0 .5rem;
}

.eyebrow--center {
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.85rem, 5.8vw, 2.7rem);
  color: var(--navy-deep);
  margin: .3em 0 0;
  text-align: center;
  line-height: 1.2;
}

.script-names {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(3.0rem, 9.5vw, 5.4rem);
  line-height: 1.12;
  margin: .15em 0 .3em;
  width: 100%;
}

.showcase-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.4rem, 7.5vw, 4.2rem);
  line-height: 1.15;
  margin: 0.2rem 0;
  letter-spacing: 0.04em;
}

.intro__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.1rem;
  width: 100%;
}

.intro__names .name-block {
  display: inline-block;
  text-align: center;
  padding: 0 0.4rem;
  max-width: none;
}

.intro__names .amp-block {
  display: block;
  margin: 0.15em 0;
  line-height: 1;
  text-align: center;
}

.script-names .amp,
.footer__monogram .amp {
  font-size: 0.8em;
  color: var(--gold-light, #F0D897);
  background: none;
  -webkit-text-fill-color: var(--gold-light, #F0D897);
  filter: drop-shadow(0 4px 14px rgba(201, 162, 75, 0.45));
  display: inline-block;
  line-height: 1;
  transform-style: preserve-3d;
  animation: spinAmpersand360 4.2s linear infinite;
  perspective: 500px;
}

@keyframes spinAmpersand360 {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

/* Aaron & Diya Lightened Maroon & Navy Gradients + Soft Hazy Hover Glow */
.name--aaron,
.showcase-name--aaron,
.name--diya,
.showcase-name--diya {
  display: inline-block;
  text-align: center;
  padding-right: 0.15em;
  transition: transform 0.6s var(--ease);
}

.name--aaron:hover,
.showcase-name--aaron:hover,
.name--diya:hover,
.showcase-name--diya:hover {
  transform: translateY(-2px);
}

.showcase-name--aaron {
  text-align: left;
}

.showcase-name--diya {
  text-align: right;
}

.char--aaron {
  display: inline-block;
  padding-right: 0.18em;
  margin-right: -0.08em;
  background: linear-gradient(175deg, #FFF0CB 0%, #E6C577 24%, #A82E46 62%, #7D1A2D 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 10px 22px rgba(168, 46, 70, 0.32)) drop-shadow(0 0 35px rgba(240, 216, 151, 0.28));
}

.char--diya {
  display: inline-block;
  padding-right: 0.18em;
  margin-right: -0.08em;
  background: linear-gradient(175deg, #FFF0CB 0%, #E6C577 24%, #2D5AA0 62%, #18376E 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 10px 22px rgba(45, 90, 160, 0.32)) drop-shadow(0 0 35px rgba(240, 216, 151, 0.28));
}

/* ── REVEAL ON SCROLL ── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HIDDEN ── */
.hidden {
  display: none !important;
}

/* =====================================================================
   1. COVER
===================================================================== */
.cover {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  overflow: hidden;
  background: transparent;
  perspective: 1200px;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s, opacity 0.6s ease 2.9s;
  opacity: 1;
}

.cover.is-open {
  opacity: 0 !important;
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ── 3D ENVELOPE SHADOWS ── */

/* Flap shadow — soft ambient paper fold shadow */
.cover__flap-shadow {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.cover__flap-shadow::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 5%;
  right: 5%;
  height: 45%;
  background: radial-gradient(ellipse at 50% 0%, rgba(107, 30, 50, 0.25) 0%, rgba(0, 0, 0, 0.15) 40%, transparent 75%);
  filter: blur(25px);
  transform: scaleY(0.2) translateY(0);
  transform-origin: top center;
  transition: transform 1.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.cover__flap-shadow::after {
  content: "";
  position: absolute;
  top: 18%;
  left: 12%;
  right: 12%;
  height: 30%;
  background: radial-gradient(ellipse at 50% 50%, rgba(107, 30, 50, 0.2), transparent 65%);
  filter: blur(30px);
  opacity: 0;
  transition: opacity 1.2s var(--ease) 0.15s;
}

.cover.open-flap .cover__flap-shadow {
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}

.cover.open-flap .cover__flap-shadow::before {
  transform: scaleY(1.8) translateY(10%);
}

.cover.open-flap .cover__flap-shadow::after {
  opacity: 1;
}

/* Cavity shadow — disabled black area so Introduction page is revealed beneath */
.cover__depth-shadow {
  display: none;
}

/* Flap front inner edge shadow — paper thickness */
.cover__flap-front::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  clip-path: url(#uFlap);
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.08) 0%,
      transparent 25%,
      rgba(0, 0, 0, 0.12) 75%,
      rgba(0, 0, 0, 0.45) 100%);
}

/* Pocket inner shadow — dark envelope interior */
.cover__envelope-pocket::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  clip-path: url(#uPocket);
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.4) 20%,
      rgba(0, 0, 0, 0.12) 45%,
      transparent 65%);
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}

.cover.open-flap .cover__envelope-pocket::before {
  opacity: 1;
}

.cover__paper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(107, 30, 50, 0.18), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(11, 21, 38, 0.35), transparent 60%);
  background-color: var(--cream);
}

.cover__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 18%;
  background-color: #3a1a0e;
  opacity: 0.5;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.42  0 0 0 0 0.35  0 0 0 0 0.25  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 6;
  pointer-events: none;
}

.cover__watercolor {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  mix-blend-mode: multiply;
}

.cover__watercolor--one {
  width: 60vmax;
  height: 60vmax;
  background: var(--burgundy);
  top: -25vmax;
  left: -20vmax;
}

.cover__watercolor--two {
  width: 50vmax;
  height: 50vmax;
  background: var(--navy);
  bottom: -24vmax;
  right: -18vmax;
}

/* Full-Screen Envelope Elements */
.cover__envelope-flap {
  position: absolute;
  inset: 0;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 4;
  will-change: transform;
}

/* Fold crease shadow — dark line at the envelope fold */
.cover__envelope-flap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 12;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease 0.15s;
}

.cover.open-flap .cover__envelope-flap::before {
  opacity: 1;
}

.cover__flap-front {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  z-index: 2;
  transform-style: preserve-3d;
  clip-path: url(#uFlap);
}

/* Paper grain texture on flap — makes it feel like real paper */
.cover__flap-front::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  clip-path: url(#uFlap);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.55  0 0 0 0 0.45  0 0 0 0 0.35  0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.cover__flap-inner-lining {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, transparent 25%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-dim) 80%);
  transform: rotateX(180deg);
  backface-visibility: hidden;
  z-index: 1;
  clip-path: url(#uFlap);
  transition: filter 1.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.cover__envelope-pocket {
  position: absolute;
  inset: 0;
  clip-path: url(#uPocket);
  z-index: 3;
  will-change: transform;
}

/* Edge vignette on cover — adds depth even when closed */
.cover__envelope-pocket::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  clip-path: url(#uPocket);
  background:
    radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 20%);
}

/* Stage 1: Envelope flap folds open in 3D starting immediately (0s delay) */
.cover.open-flap .cover__envelope-flap {
  transform: rotateX(175deg);
  z-index: 1;
  opacity: 1 !important;
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0s;
}

/* Stage 2: Cover card glides down after flap finishes opening (1.2s delay set on .cover) */
.cover.open-flap {
  transform: translate3d(0, 115vh, 0) !important;
  opacity: 1 !important;
}

.cover.open-flap .cover__envelope-pocket {
  opacity: 1 !important;
}

/* Hide title text, border decorations, hint text, and wax seal on open */
.cover.open-flap .cover__title-block,
.cover.open-flap .cover__border-wrap,
.cover.open-flap .cover__hint-wrap,
.cover.open-flap .wax-seal {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.35s ease 0s;
}

/* Scrim / overlay */
.cover__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(11, 21, 38, .65) 0%,
      rgba(30, 8, 16, .55) 45%,
      rgba(11, 21, 38, .80) 100%);
}

/* Animated border */
.cover__border-wrap {
  position: absolute;
  inset: 10px;
  z-index: 4;
  pointer-events: none;
}

.cover__border-svg {
  width: 100%;
  height: 100%;
}

.border-rect {
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  animation: drawBorder 2.4s var(--ease-smooth) forwards;
}

.border-rect--inner {
  stroke-dasharray: 2050;
  stroke-dashoffset: 2050;
  animation: drawBorder 2.8s var(--ease-smooth) .25s forwards;
}

@keyframes drawBorder {
  to {
    stroke-dashoffset: 0;
  }
}

.corner-ornament,
.mid-ornament {
  opacity: 0;
  animation: ornamentFade .7s ease forwards;
}

.corner-ornament--tl {
  animation-delay: 2.0s;
}

.corner-ornament--tr {
  animation-delay: 2.2s;
}

.corner-ornament--bl {
  animation-delay: 2.4s;
}

.corner-ornament--br {
  animation-delay: 2.6s;
}

.mid-ornament {
  animation-delay: 2.2s;
}

@keyframes ornamentFade {
  to {
    opacity: 1;
  }
}

/* Cover text / content */
.cover__content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cover__title-block {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  text-align: center;
  pointer-events: none;
  transition: transform 1.8s var(--ease-smooth), opacity 1.4s var(--ease);
  will-change: transform, opacity;
}

.cover.slide-card .cover__title-block {
  transform: translate(-50%, -130%);
  opacity: 0;
}

.cover__eyebrow {
  font-family: var(--font-utility);
  letter-spacing: .38em;
  text-transform: uppercase;
  font-size: .68rem;
  color: var(--gold-light);
  margin: 0 0 .55rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
  opacity: .9;
}

.cover__names {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.0rem, 8.5vw, 3.6rem);
  color: #fff;
  margin: 0 0 .4em;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7), 0 0 28px rgba(201, 162, 75, .22);
}

.cover__amp {
  color: var(--gold-light);
}

.cover__date-line {
  font-family: var(--font-utility);
  font-size: .64rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0;
  opacity: .85;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

/* ── WAX SEAL ── */
.wax-seal {
  background: none;
  border: none;
  cursor: pointer;
  width: min(34vw, 132px);
  height: min(34vw, 132px);
  padding: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: auto;
  transition: transform .45s var(--ease), filter .45s var(--ease);
  filter:
    drop-shadow(0 14px 26px rgba(46, 5, 16, .65)) drop-shadow(0 4px 10px rgba(0, 0, 0, .45));
  will-change: transform, filter;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.06) rotate(-1.5deg);
  filter:
    drop-shadow(0 18px 32px rgba(46, 5, 16, .75)) drop-shadow(0 5px 12px rgba(0, 0, 0, .5));
}

.wax-seal:active {
  transform: translate(-50%, -50%) scale(.96);
}

.wax-seal__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.85) saturate(0.9);
}

/* Pulsing rings */
.wax-seal__ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 162, 75, .5);
  animation: sealPulse 2.8s ease-in-out infinite;
}

.wax-seal__ring--2 {
  inset: -24px;
  border-color: rgba(201, 162, 75, .22);
  animation-delay: .7s;
  animation-duration: 3.2s;
}

@keyframes sealPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .7;
  }

  50% {
    transform: scale(1.1);
    opacity: 0;
  }
}

.wax-seal.is-breaking {
  animation: sealBreak 1.1s var(--ease) forwards;
  pointer-events: none;
}

@keyframes sealBreak {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0);
    opacity: 1;
    filter: drop-shadow(0 14px 26px rgba(46, 5, 16, .65));
  }

  35% {
    transform: translate(-50%, -50%) scale(1.18) rotate(7deg);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.8) rotate(16deg);
    opacity: 0;
    filter: blur(10px);
  }
}

/* Hint row */
.cover__hint-wrap {
  position: absolute;
  top: calc(50% + min(17vw, 66px) + 16px);
  left: 50%;
  transform: translate(-50%, 0);
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
  z-index: 6;
  transition: transform 1.8s var(--ease-smooth), opacity 1.4s var(--ease);
  will-change: transform, opacity;
}

.cover.slide-card .cover__hint-wrap {
  transform: translate(-50%, 80px);
  opacity: 0;
}

.cover__hint {
  font-family: var(--font-utility);
  font-size: .66rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: .85;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.cover__hint-arrow {
  font-size: 1.1rem;
  color: var(--gold-light);
  opacity: .7;
  animation: hintBounce 1.9s ease-in-out infinite;
}

@keyframes hintBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: .7;
  }

  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.cover__hint-wrap.pulse-attention .cover__hint {
  animation: hintAtten .65s ease-in-out 3;
}

@keyframes hintAtten {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.14);
    color: #fff;
  }
}

/* FX canvas — legacy, superseded by the DOM-based .petal-burst-layer below;
   no JS ever draws to this canvas, so it's fully disabled rather than left
   as dead paint/layout weight. */
#fxCanvas {
  display: none;
}

/* =====================================================================
   INVITATION WRAPPER
===================================================================== */
.invitation {
  position: relative;
  background: var(--cream);
  opacity: 1;
  visibility: visible;
}

.invitation[aria-hidden="true"] {
  visibility: hidden;
}

/* =====================================================================
   2. INTRO
===================================================================== */
.intro {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  /* parallax background spans the entire section */
}

.intro__parallax {
  position: absolute;
  inset: -6% -5%;
  background-size: cover;
  background-position: center 18%;
  will-change: transform;
}

.intro__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(8, 14, 26, 0.72) 0%,
      rgba(30, 20, 10, 0.68) 40%,
      rgba(8, 14, 26, 0.8) 100%);
}

/* Intro Card — centered on first panel */
.intro__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  text-align: center;
  color: var(--cream);
  padding: 6rem 0.6rem 5rem;
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  opacity: 1;
}

.intro .eyebrow {
  font-family: var(--font-utility);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-light, #F0D897);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.intro__message {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.9;
  font-style: italic;
  color: #F6EFDD;
  max-width: 520px;
  margin: 1.2rem auto 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ── INTRO CARD: Reference Image Style (Great Vibes golden script) ── */
.intro__ref-eyebrow {
  font-family: var(--font-utility);
  font-size: 0.65rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.4rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.intro__ref-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 0 2rem;
  font-family: 'Great Vibes', var(--font-script), cursive;
  font-weight: 400;
  font-style: normal;
  line-height: 1.35;
  overflow: visible;
}

.intro__ref-name {
  display: inline-block;
  font-size: clamp(3.2rem, 11vw, 5.5rem);
  background: linear-gradient(160deg, #FFF8E0 0%, #E8C86A 22%, #C9A24B 50%, #A07828 76%, #8a6a1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 16px rgba(201, 162, 75, 0.5)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
  line-height: 1.35;
  padding: 0.35em 0.1em 0.25em;
  margin-top: -0.35em;
  margin-bottom: -0.25em;
  overflow: visible;
}

.intro__ref-amp {
  display: inline-block;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 7vw, 3.4rem);
  background: linear-gradient(160deg, #FFF8E0 0%, #E8C86A 30%, #C9A24B 60%, #A07828 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(201, 162, 75, 0.5));
  line-height: 1.25;
  padding: 0.25em 0.1em 0.15em;
  margin-top: -0.25em;
  margin-bottom: -0.15em;
  overflow: visible;
}

.intro__ref-message {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  font-style: italic;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  max-width: 440px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  text-align: center;
}

/* Word-by-word reveal animation */
@keyframes wordReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.word-reveal {
  display: inline-block;
  opacity: 0;
  margin-right: 0.28em;
  animation: wordReveal 0.45s ease forwards;
}

/* Introduction Welcome Banner */
.intro__welcome-banner {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2.5rem 1.5rem;
  background: rgba(255, 252, 245, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.intro__names-title {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  color: var(--gold-light, #F0D897);
  margin: 0.4rem 0 1rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 25px rgba(240, 216, 151, 0.3);
}

.intro__welcome-text {
  font-family: var(--font-body);
  font-size: clamp(1.0rem, 3.2vw, 1.2rem);
  line-height: 1.95;
  font-style: italic;
  color: #F6EFDD;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* =====================================================================
   2b. SHOWCASE SECTIONS — Groom & Bride Reference-Matched Layout
===================================================================== */
.showcase-section {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 4.5rem 1.5rem;
  display: flex;
  justify-content: center;
}

.showcase-section--groom {
  padding-top: 6rem;
}

.showcase-content-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
}

/* Header Alignment */
.showcase-header {
  position: relative;
  z-index: 3;
  margin-bottom: 2rem;
  max-width: 620px;
}

.showcase-header--groom {
  text-align: left;
  align-self: flex-start;
}

.showcase-header--bride {
  text-align: right;
  align-self: flex-end;
}

.showcase-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0.4rem;
}

.showcase-header--groom .showcase-eyebrow-row {
  justify-content: flex-start;
}

.showcase-header--bride .showcase-eyebrow-row {
  justify-content: flex-end;
}

.showcase-eyebrow {
  font-family: var(--font-utility);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light, #F0D897);
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

/* Gold Accent Line with Terminal Circle Node */
.showcase-gold-line {
  position: relative;
  height: 1px;
  flex: 1;
  max-width: 220px;
  background: linear-gradient(90deg, #C9A24B 0%, rgba(201, 162, 75, 0.25) 100%);
}

.showcase-gold-line--right::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C9A24B;
  box-shadow: 0 0 6px rgba(201, 162, 75, 0.8);
}

.showcase-gold-line--left {
  background: linear-gradient(-90deg, #C9A24B 0%, rgba(201, 162, 75, 0.25) 100%);
}

.showcase-gold-line--left::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C9A24B;
  box-shadow: 0 0 6px rgba(201, 162, 75, 0.8);
}

/* Golden Thread Connecting Line — delicate animated stroke */
.golden-thread-wrap {
  position: relative;
  width: 100%;
  height: 90px;
  margin: -0.2rem 0 0.4rem;
  pointer-events: none;
  overflow: visible;
}

.golden-thread-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 8px rgba(201, 162, 75, 0.45));
}

.golden-thread-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible .golden-thread-path,
.showcase-header.is-visible .golden-thread-path {
  stroke-dashoffset: 0;
}

.golden-thread-node {
  opacity: 0;
  transition: opacity 0.8s ease 2.2s;
  animation: threadNodeGlow 2.8s ease-in-out infinite 2.2s;
}

.reveal-on-scroll.is-visible .golden-thread-node,
.showcase-header.is-visible .golden-thread-node {
  opacity: 1;
}

@keyframes threadNodeGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(240, 216, 151, 0.6));
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(240, 216, 151, 1));
  }
}

.showcase-sub {
  font-family: var(--font-utility);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light, #F0D897);
  font-weight: 600;
  margin: 0.4rem 0;
}

.showcase-quote {
  font-family: var(--font-body);
  font-size: 1.06rem;
  font-style: italic;
  color: #F6EFDD;
  line-height: 1.75;
  margin: 0.5rem 0 0;
}

.showcase-disclaimer {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-style: italic;
  color: rgba(246, 239, 221, 0.7);
  margin-left: 0.3em;
}

.parents-info {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem 1.8rem;
  border-top: 1px solid rgba(201, 162, 75, 0.3);
  border-bottom: 1px solid rgba(201, 162, 75, 0.3);
  display: inline-block;
  align-self: center;
  background: rgba(11, 21, 38, 0.25);
  border-radius: 4px;
}

.parents-label {
  font-family: var(--font-utility);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-light, #F0D897);
  margin: 0 0 0.3rem;
}

.parents-names {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: #F6EFDD;
  margin: 0;
}

/* Composite Image Container */
.showcase-composite-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 1rem auto 3.5rem;
  display: flex;
  justify-content: center;
}

.showcase-composite--groom {
  align-self: center;
}

.showcase-composite--bride {
  align-self: center;
}

/* Subtle continuous vertical floating animation (~5px bobbing) */
@keyframes frameFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.showcase-frame__float-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.showcase-frame--main .showcase-frame__float-wrap {
  animation: frameFloat 4.4s ease-in-out infinite;
}

.showcase-frame--overlay .showcase-frame__float-wrap {
  animation: frameFloat 5.2s ease-in-out infinite 0.7s;
}

/* Primary Main Frame */
.showcase-frame--main {
  position: relative;
  width: clamp(280px, 42vw, 400px);
  height: clamp(400px, 58vw, 530px);
  border-radius: 32px;
  padding: 8px;
  background: linear-gradient(145deg, rgba(201, 162, 75, 0.6), rgba(138, 106, 31, 0.25));
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.7), 0 0 30px rgba(201, 162, 75, 0.25);
  isolation: isolate;
}

.showcase-frame__inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 75, 0.4);
}

.showcase-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  transition: transform 0.8s ease;
}

.showcase-frame--main:hover .showcase-frame__img {
  transform: scale(1.04);
}

/* Outer/Inner Gold Borders */
.showcase-frame__gold-border {
  position: absolute;
  inset: 4px;
  border-radius: 28px;
  border: 1.5px solid rgba(240, 216, 151, 0.85);
  pointer-events: none;
}

/* Smaller Overlay Carousel Frame */
.showcase-frame--overlay {
  position: absolute;
  z-index: 10;
  width: clamp(210px, 32vw, 310px);
  height: clamp(170px, 24vw, 240px);
  border-radius: 14px;
  background: #0B1526;
  border: 2px solid #C9A24B;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(201, 162, 75, 0.35);
  padding: 5px;
  transform: scale(0.92);
  opacity: 0.92;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease, box-shadow 0.6s ease;
  will-change: transform, box-shadow;
}

/* Groom overlay on bottom right, Bride on bottom left */
.showcase-composite--groom .showcase-frame--overlay {
  bottom: -35px;
  right: -20px;
}

.showcase-composite--bride .showcase-frame--overlay {
  bottom: -35px;
  left: -20px;
}

/* Scroll Triggered Scale Up */
.showcase-frame--overlay.is-scaled,
.showcase-frame--overlay:hover {
  transform: scale(1.08) !important;
  opacity: 1 !important;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.9), 0 0 40px rgba(201, 162, 75, 0.55);
}

/* Corner Accents on Overlay Frame (Matching Cover Gold Border) */
.showcase-frame__gold-border--corner {
  inset: 2px;
  border-radius: 10px;
  border: 1px solid rgba(240, 216, 151, 0.6);
}

.corner-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #C9A24B;
  border-radius: 50%;
}

.corner-dot--tl {
  top: -3px;
  left: -3px;
}

.corner-dot--tr {
  top: -3px;
  right: -3px;
}

.corner-dot--bl {
  bottom: -3px;
  left: -3px;
}

.corner-dot--br {
  bottom: -3px;
  right: -3px;
}

/* Carousel Component Inside Overlay Frame */
.showcase-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.showcase-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.showcase-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.04);
}

.showcase-carousel__slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.showcase-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Navigation Arrows */
.showcase-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(11, 21, 38, 0.65);
  border: 1px solid rgba(201, 162, 75, 0.6);
  color: #F0D897;
  font-size: 1.2rem;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s, background 0.3s;
}

.showcase-carousel:hover .showcase-carousel__nav {
  opacity: 1;
}

.showcase-carousel__nav:hover {
  background: rgba(201, 162, 75, 0.85);
  color: #0B1526;
}

.showcase-carousel__nav--prev {
  left: 6px;
}

.showcase-carousel__nav--next {
  right: 6px;
}

/* Dots Indicator */
.showcase-carousel__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 5px;
}

.showcase-carousel__dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s, transform 0.3s;
}

.showcase-carousel__dots .dot.active {
  background: #C9A24B;
  transform: scale(1.3);
}

.parents-info {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 162, 75, .22);
  text-align: center;
}

.parents-label {
  font-family: var(--font-utility);
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .3em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}

.parents-names {
  font-family: var(--font-body);
  font-size: .9rem;
  color: #f0e4cc;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

@media (max-width: 640px) {
  .showcase-section {
    padding: 3rem 1rem;
  }

  .showcase-composite--groom .showcase-frame--overlay {
    right: 0;
    bottom: -45px;
  }

  .showcase-composite--bride .showcase-frame--overlay {
    left: 0;
    bottom: -45px;
  }
}

/* Generic section reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive: mobile card adjustments */
@media (max-width: 768px) {
  .showcase-immersive-container {
    min-height: 380px;
  }

  .card-stack {
    height: 360px;
  }

  .gsap-card--main {
    width: min(240px, 75vw);
    height: 340px;
  }

  .gsap-card--sub {
    width: min(170px, 55vw);
    height: 250px;
  }

  .showcase-section {
    padding: 3.5rem 1rem;
  }

  .intro__card {
    padding: 5rem 1.2rem 4rem;
  }
}

/* =====================================================================
   SHOWCASE ANIMATIONS — Making the sections come alive
===================================================================== */

/* ── Keyframes ── */
@keyframes floatImage {
  0% {
    transform: translateY(0) rotate(-0.5deg) scale(1);
  }

  33% {
    transform: translateY(-14px) rotate(0.5deg) scale(1.01);
  }

  66% {
    transform: translateY(-7px) rotate(-0.3deg) scale(1.005);
  }

  100% {
    transform: translateY(0) rotate(-0.5deg) scale(1);
  }
}

@keyframes glowAura {

  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }

  50% {
    opacity: 0.70;
    transform: scale(1.07);
  }
}

@keyframes glowAuraBride {

  0%,
  100% {
    opacity: 0.30;
    transform: scale(1);
  }

  50% {
    opacity: 0.60;
    transform: scale(1.06);
  }
}

@keyframes shinePass {
  0% {
    transform: translateX(-150%) skewX(-20deg);
  }

  100% {
    transform: translateX(350%) skewX(-20deg);
  }
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(0);
  }

  15% {
    opacity: 0.9;
  }

  85% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
    transform: translate(var(--x), calc(var(--y) - 90px)) scale(0.3);
  }
}

@keyframes introCardIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.93);
    filter: blur(6px);
  }

  60% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes namesReveal {
  0% {
    opacity: 0;
    letter-spacing: .5em;
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    letter-spacing: normal;
    filter: blur(0);
  }
}

@keyframes borderGlow {

  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(201, 162, 75, .28), 0 20px 60px rgba(0, 0, 0, .55);
  }

  50% {
    box-shadow: 0 0 0 1px rgba(201, 162, 75, .65), 0 0 50px rgba(201, 162, 75, .18), 0 20px 60px rgba(0, 0, 0, .55);
  }
}

@keyframes cardGlowPulse {

  0%,
  100% {
    opacity: 0.25;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(1.10);
  }
}

@keyframes eyebrowSlide {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typeBlinkCursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes showcaseInfoSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes showcaseInfoSlideRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Intro Card Dramatic Entrance — fires after envelope opens ── */
.intro__card-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(201, 162, 75, .22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: cardGlowPulse 4s ease-in-out infinite;
}

/* Keep elements invisible initially — CSS animations fire after cover-open body class */
.intro__eyebrow,
.intro__names {
  opacity: 0;
}

body.cover-open .intro__eyebrow {
  animation: eyebrowSlide 0.9s ease both;
  animation-delay: 0.4s;
}

body.cover-open .intro__names {
  animation: namesReveal 1.4s ease both;
  animation-delay: 0.7s;
}

body.cover-open .intro__card {
  animation: introCardIn 1.1s cubic-bezier(.22, .61, .36, 1) both;
}

/* ── Typewriter Cursor ── */
.type-cursor {
  display: inline-block;
  color: var(--gold-light, #d4a843);
  font-family: var(--font-body);
  font-size: 1.1em;
  font-style: italic;
  font-weight: 300;
  margin-left: 1px;
  animation: typeBlinkCursor 0.75s step-end infinite;
}

.type-cursor.done {
  animation: none;
  opacity: 0;
  transition: opacity 0.6s ease 0.5s;
}

/* ── Showcase Glow Aura (behind image) ── */
.showcase-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
      rgba(201, 162, 75, .35) 0%,
      rgba(180, 50, 70, .15) 45%,
      transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(28px);
  animation: glowAura 5s ease-in-out infinite;
}

.showcase-glow--bride {
  background: radial-gradient(ellipse at center,
      rgba(220, 140, 160, .35) 0%,
      rgba(100, 30, 80, .15) 45%,
      transparent 70%);
  animation: glowAuraBride 5.5s ease-in-out infinite;
}

/* ── Floating image ── */
.showcase-section.is-visible .showcase-tilt-wrapper {
  animation: floatImage 7s ease-in-out infinite, borderGlow 4s ease-in-out infinite;
}

/* ── Shine overlay sweep (plays once on section entry) ── */
.showcase-img-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      transparent 40%,
      rgba(255, 255, 255, .18) 50%,
      transparent 60%);
  transform: translateX(-150%) skewX(-20deg);
  pointer-events: none;
  z-index: 3;
}

.showcase-section.is-visible .showcase-img-shine {
  animation: shinePass 1.3s ease 0.4s both;
}

/* ── Floating gold particles ── */
.showcase-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-light, #d4a843);
  box-shadow: 0 0 6px 2px rgba(201, 162, 75, .6);
  opacity: 0;
  animation: floatParticle var(--dur) ease-in-out var(--delay) infinite;
}

/* ── Info slide-in when section becomes visible ── */
.showcase-section--groom.is-visible .showcase-info {
  animation: showcaseInfoSlideLeft 0.9s cubic-bezier(.22, .61, .36, 1) both;
}

.showcase-section--bride.is-visible .showcase-info {
  animation: showcaseInfoSlideRight 0.9s cubic-bezier(.22, .61, .36, 1) both;
}

.showcase-info>* {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.showcase-section.is-visible .showcase-info>*:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0.10s;
}

.showcase-section.is-visible .showcase-info>*:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.30s;
}

.showcase-section.is-visible .showcase-info>*:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.55s;
}

.showcase-section.is-visible .showcase-info>*:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.80s;
}

/* (showcase-name styling consolidated above) */

/* ── Mouse-tilt transition (JS applies inline transforms) ── */
.showcase-tilt-wrapper {
  transition: transform 0.30s ease;
  will-change: transform;
}

.parents {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.parents__label {
  font-family: var(--font-utility);
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .3em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}

.parents__names {
  font-family: var(--font-body);
  font-size: .9rem;
  color: #f0e4cc;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}

.parents__divider {
  color: var(--gold-dim);
}

/* =====================================================================
   3. SCRATCH SECTION — matches countdown card design language
===================================================================== */
.scratch-section {
  padding: 5.5rem 1.4rem 4rem;
  text-align: center;
  background: #FAF5E8;
  position: relative;
}

.scratch-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 15%, rgba(201, 162, 75, .07), transparent 65%);
  pointer-events: none;
}

/* Card shell — same as countdown-card */
.scratch-card {
  width: min(92vw, 440px);
  margin: 2.5rem auto 0;
  background: linear-gradient(135deg, rgba(255, 252, 245, .95) 0%, rgba(246, 239, 221, .98) 100%);
  border: 1px solid rgba(201, 162, 75, .45);
  border-radius: 28px;
  padding: 2.8rem 2rem 2.2rem;
  box-shadow:
    0 20px 48px -12px rgba(62, 15, 30, .1),
    0 4px 16px -4px rgba(0, 0, 0, .06);
  text-align: center;
}

.scratch-card__label {
  font-family: var(--font-utility);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 1.8rem;
}

/* Scratch area — keeps its own dark reveal style for contrast */
.scratch-card__scratch-area {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 200px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 8px 24px -6px rgba(11, 21, 38, .25),
    0 0 0 1px rgba(201, 162, 75, .25);
}

.scratch-card__reveal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #0d1a2e 0%, #2a0a17 60%, #0d1a2e 100%);
}

.scratch-card__date-content {
  text-align: center;
  color: var(--gold-light);
}

.scratch-card__day {
  font-family: var(--font-utility);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .65rem;
  margin: 0 0 .2em;
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(240, 216, 151, .4);
}

.scratch-card__date {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  font-weight: 600;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.scratch-card__suffix {
  font-size: 1.1rem;
  vertical-align: super;
}

.scratch-card__month {
  font-family: var(--font-utility);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .72rem;
  margin: .4em 0 0;
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(240, 216, 151, .4);
}

.scratch-card__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: none;
  z-index: 2;
  border-radius: 18px;
}

.scratch-card__footer {
  margin-top: 1.8rem;
}

.scratch-card__footer-names {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--ink);
  margin: 0;
}

.scratch-card__footer-thanks {
  font-family: var(--font-utility);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: .35rem 0 0;
}

/* =====================================================================
   4. COUNTDOWN SECTION
===================================================================== */
.countdown-section {
  padding: 6rem 1.4rem;
  background: var(--cream);
  display: flex;
  justify-content: center;
  align-items: center;
}

.countdown-card {
  width: 100%;
  max-width: 760px;
  background: linear-gradient(135deg, rgba(255, 252, 245, .92) 0%, rgba(246, 239, 221, .95) 100%);
  border: 1px solid rgba(201, 162, 75, .45);
  border-radius: 28px;
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow:
    0 24px 50px -15px rgba(62, 15, 30, .1),
    0 4px 16px -4px rgba(0, 0, 0, .06);
  position: relative;
  overflow: hidden;
}

.countdown-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(251, 239, 199, .25), transparent 65%);
  pointer-events: none;
}

.countdown-card__eyebrow {
  font-family: var(--font-utility);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .7rem;
  color: var(--burgundy);
  margin: 0 0 .6rem;
}

.countdown-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  font-weight: 500;
  color: var(--navy-deep);
  margin: 0 0 2.6rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  max-width: 260px;
  margin: 0 auto;
}

.countdown__unit {
  background: var(--navy-deep);
  border-radius: 18px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .4);
  transition: transform .3s var(--ease);
}

.countdown__unit:hover {
  transform: translateY(-4px);
}

.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  color: var(--gold-light);
  font-weight: 500;
  line-height: 1;
}

.countdown__label {
  font-family: var(--font-utility);
  font-size: clamp(.6rem, 1.2vw, .72rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: .82;
  margin-top: .4rem;
}

@media (min-width: 520px) {
  .countdown {
    display: flex;
    justify-content: center;
    gap: clamp(.6rem, 3.5vw, 2rem);
    max-width: none;
  }

  .countdown__unit {
    width: clamp(88px, 16vw, 118px);
  }
}

.countdown-card__live-msg {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy-deep);
  margin: 0 0 1.8rem;
}

.countdown-card__live .venue-card__btn-gmaps {
  margin: 12px auto 0;
}

/* "Watch Live Now" primary CTA — shown once the celebration begins */
.countdown-live-watch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  padding: 1rem 1.2rem;
  font-family: var(--font-utility);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--burgundy-mid), var(--burgundy) 55%, var(--burgundy-deep));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  min-height: 48px;
  box-shadow: 0 10px 18px -6px rgba(107, 30, 50, .35);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.countdown-live-watch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px -6px rgba(107, 30, 50, .45);
}

.countdown-live-watch-btn__dot,
.live-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: liveDotPulse 1.4s ease-in-out infinite;
}

.countdown-live-watch-btn__dot {
  background: #ff5252;
}

.live-badge__dot {
  width: 7px;
  height: 7px;
  background: #fff;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.7); }
}

@media (prefers-reduced-motion: reduce) {
  .countdown-live-watch-btn__dot,
  .live-badge__dot {
    animation: none;
  }
}

/* "LIVE" badge on the stream placeholder — shown once the ceremony has begun */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* Clears the fixed lang-switcher pill (top-right, z-index 9999) which can
     otherwise overlap this badge when the live section rests near the top
     of a short/mobile viewport. */
  margin-bottom: 10px;
  padding: 5px 14px 5px 10px;
  background: rgba(230, 40, 40, .92);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-utility);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(230, 40, 40, .4);
}

/* =====================================================================
   5. DETAILS / VENUES
===================================================================== */
.details {
  padding: 5.5rem 1.4rem;
  background: #FAF5E8;
  text-align: center;
}

.venues {
  display: grid;
  gap: 1.6rem;
  max-width: 760px;
  margin: 2rem auto 0;
}

@media(min-width:700px) {
  .venues {
    grid-template-columns: 1fr 1fr;
  }
}

.venue-card {
  background: var(--cream);
  border: 1px solid rgba(107, 30, 50, .15);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 10px 26px -6px rgba(11, 21, 38, .12);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.venue-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px -6px rgba(11, 21, 38, .18);
}

.venue-card__img-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid rgba(107, 30, 50, .08);
}

.venue-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.venue-card:hover .venue-card__img {
  transform: scale(1.04);
}

.venue-card__content {
  padding: 2rem 1.6rem;
}

.venue-card__eyebrow {
  font-family: var(--font-utility);
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .65rem;
  color: var(--burgundy);
  margin: 0 0 .5em;
}

.venue-card__time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.55rem;
  color: var(--navy-deep);
  margin: 0 0 .45em;
}

.venue-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 .4em;
  color: var(--ink);
}

.venue-card__address {
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
  line-height: 1.5;
}

.venue-card__actions {
  display: flex;
  justify-content: center;
}

.venue-card__btn-gmaps {
  width: 100%;
  max-width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-utility);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dim));
  padding: 1rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 10px 18px -6px rgba(107, 30, 50, .18);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  min-height: 48px;
  font-weight: 600;
}

.venue-card__btn-gmaps:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 22px -6px rgba(107, 30, 50, .28);
}

.gmaps-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* =====================================================================
   6. GALLERY — 6 Scattered Stacked Prints
===================================================================== */
.gallery {
  position: relative;
  padding: 5.5rem 1.4rem 4.5rem;
  background: linear-gradient(180deg, var(--cream), var(--cream-dark));
  text-align: center;
  overflow: hidden;
}

.gallery__header {
  margin-bottom: 1.5rem;
}

.gallery__sub-hint {
  font-family: var(--font-utility);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy-mid);
  margin: 0.5rem 0 0;
  opacity: 0.85;
}

.gallery__stack-wrap {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: clamp(340px, 58vw, 440px);
  margin: 2rem auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.gallery__stack {
  position: relative;
  width: clamp(240px, 48vw, 320px);
  height: clamp(300px, 52vw, 400px);
  cursor: grab;
  user-select: none;
}

.gallery__stack:active {
  cursor: grabbing;
}

.gallery__frame {
  display: block;
  border: 8px solid var(--cream);
  outline: 1px solid var(--gold);
  box-shadow: 0 18px 38px -10px rgba(42, 27, 20, 0.35), 0 4px 12px rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  overflow: hidden;
  background: var(--cream);
}

.gallery__stack-card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  will-change: transform, opacity;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease, filter 0.5s ease;
  transform-origin: center bottom;
}

.gallery__stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* 6 Stacked Card Scattered Angles & Offsets (Scatter on table effect) */
.gallery__stack-card[data-pos="0"] {
  transform: rotate(-3deg) translate(0px, 0px) scale(1);
  z-index: 6;
  opacity: 1;
  filter: brightness(1);
}

.gallery__stack-card[data-pos="1"] {
  transform: rotate(5deg) translate(14px, 8px) scale(0.97);
  z-index: 5;
  opacity: 0.96;
  filter: brightness(0.95);
}

.gallery__stack-card[data-pos="2"] {
  transform: rotate(-7deg) translate(-16px, 14px) scale(0.94);
  z-index: 4;
  opacity: 0.92;
  filter: brightness(0.9);
}

.gallery__stack-card[data-pos="3"] {
  transform: rotate(4deg) translate(18px, 10px) scale(0.91);
  z-index: 3;
  opacity: 0.88;
  filter: brightness(0.85);
}

.gallery__stack-card[data-pos="4"] {
  transform: rotate(-5deg) translate(-12px, 18px) scale(0.88);
  z-index: 2;
  opacity: 0.82;
  filter: brightness(0.8);
}

.gallery__stack-card[data-pos="5"] {
  transform: rotate(2deg) translate(8px, 22px) scale(0.85);
  z-index: 1;
  opacity: 0.75;
  filter: brightness(0.75);
}

/* Peeling exit animations */
.gallery__stack-card.peel-left {
  transform: translate(-140%, -20px) rotate(-24deg) scale(0.9) !important;
  opacity: 0 !important;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease !important;
}

.gallery__stack-card.peel-right {
  transform: translate(140%, -20px) rotate(24deg) scale(0.9) !important;
  opacity: 0 !important;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease !important;
}

.gallery__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 252, 245, 0.92);
  border: 1px solid var(--gold);
  color: var(--burgundy);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background 0.3s ease;
}

.gallery__nav-btn--prev {
  left: -10px;
}

.gallery__nav-btn--next {
  right: -10px;
}

.gallery__nav-btn:hover {
  transform: translateY(-50%) scale(1.1);
  background: var(--gold-light);
}

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.gallery__dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(138, 43, 64, 0.3);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.gallery__dots .dot.active {
  background: var(--burgundy);
  transform: scale(1.35);
}

.gallery__caption {
  margin-top: 2rem;
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: var(--burgundy);
}

/* =====================================================================
   7. WISHES — cream background, site-consistent style
===================================================================== */
.wishes-section {
  padding: 5rem 1.4rem 4rem;
  background: #FAF5E8;
  position: relative;
}

.wishes-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 75, .06), transparent 60%);
  pointer-events: none;
}

.wishes-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.wishes-section .eyebrow {
  color: var(--burgundy);
}

.wishes-section .section-title {
  color: var(--navy-deep);
}

.wishes-section__sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 480px;
  margin: .8rem auto 0;
  line-height: 1.7;
}

/* Wish form */
.wish-form-wrap {
  max-width: 480px;
  margin: 0 auto 3rem;
}

.wish-form {
  background: var(--cream);
  border: 1px solid rgba(201, 162, 75, .4);
  border-radius: 24px;
  padding: 2rem 1.6rem;
  box-shadow: 0 12px 32px -8px rgba(62, 15, 30, .1);
}

.wish-form__field {
  margin-bottom: 1.2rem;
  position: relative;
}

.wish-form__label {
  display: block;
  font-family: var(--font-utility);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: .45rem;
}

.wish-form__input,
.wish-form__textarea {
  width: 100%;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(107, 30, 50, .2);
  border-radius: 12px;
  padding: .85rem 1rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-appearance: none;
}

.wish-form__input::placeholder,
.wish-form__textarea::placeholder {
  color: var(--ink-muted);
  opacity: .6;
}

.wish-form__input:focus,
.wish-form__textarea:focus {
  border-color: rgba(107, 30, 50, .4);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, .15);
}

.wish-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.wish-form__char-count {
  position: absolute;
  bottom: .5rem;
  right: .8rem;
  font-family: var(--font-utility);
  font-size: .52rem;
  letter-spacing: .08em;
  color: var(--ink-muted);
  opacity: .6;
}

.wish-form__submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dim));
  border: none;
  border-radius: 999px;
  font-family: var(--font-utility);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy-deep);
  cursor: pointer;
  font-weight: 600;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .2s;
  box-shadow: 0 10px 22px -6px rgba(138, 106, 31, .55);
  min-height: 52px;
}

.wish-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(138, 106, 31, .7);
}

.wish-form__submit:active {
  transform: translateY(0);
}

.wish-form__submit:disabled {
  opacity: .5;
  pointer-events: none;
}

.wish-form__submit-icon {
  font-size: .9rem;
}

.wish-form__info {
  margin: .8rem 0 0;
  font-family: var(--font-utility);
  font-size: .64rem;
  letter-spacing: .1em;
  text-align: center;
  color: var(--ink-soft);
  min-height: 1em;
}

.wish-form__info.error {
  color: #c0392b;
}

/* Wishes wall */
.wishes-wall {
  max-width: 680px;
  margin: 0 auto;
}

/* Widen the wall so the multi-column grid has room to breathe */
@media (min-width: 700px) {
  .wishes-wall {
    max-width: 920px;
  }
}
@media (min-width: 1024px) {
  .wishes-wall {
    max-width: 1160px;
  }
}

.wishes-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  color: var(--ink-muted);
  font-family: var(--font-utility);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.wishes-loading__spinner {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(107, 30, 50, .15);
  border-top-color: var(--burgundy);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.wishes-empty {
  text-align: center;
  padding: 2rem;
  color: var(--ink-muted);
  font-style: italic;
  font-size: 1rem;
}

.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

/* Load-more button — pill style matching the site's gold/burgundy palette */
.wishes-load-more {
  display: block;
  width: fit-content;
  margin: 1.8rem auto 0;
  padding: .6rem 2rem;
  background: transparent;
  border: 1px solid rgba(201, 162, 75, .45);
  border-radius: 999px;
  color: var(--gold-dim);
  font-family: var(--font-utility);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.wishes-load-more:hover {
  background: rgba(201, 162, 75, .12);
  border-color: rgba(201, 162, 75, .7);
  color: var(--gold);
}
.wishes-load-more:active {
  background: rgba(201, 162, 75, .2);
}

/* Wish card — matches site card aesthetic */
.wish-card {
  background: var(--cream);
  border: 1px solid rgba(201, 162, 75, .35);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  position: relative;
  box-shadow: 0 6px 20px -6px rgba(62, 15, 30, .1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.wish-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -6px rgba(62, 15, 30, .16);
}

.wish-card::before {
  content: '✦';
  position: absolute;
  top: .8rem;
  left: 1rem;
  color: var(--gold);
  font-size: .6rem;
  opacity: .55;
}

.wish-card__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--burgundy);
  margin: 0 0 .5rem;
  padding-left: 1.2rem;
}

.wish-card__text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  font-style: italic;
}

.wish-card__text::before {
  content: '"';
  color: var(--gold-dim);
}

.wish-card__text::after {
  content: '"';
  color: var(--gold-dim);
}

.wish-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}

.wish-card__like-btn {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: rgba(107, 30, 50, .06);
  border: 1px solid rgba(107, 30, 50, .15);
  border-radius: 999px;
  padding: .4rem .8rem;
  color: var(--ink-muted);
  font-family: var(--font-utility);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s var(--ease);
  min-height: 36px;
}

.wish-card__like-btn:hover {
  background: rgba(201, 162, 75, .12);
  border-color: rgba(201, 162, 75, .35);
  color: var(--gold-dim);
}

.wish-card__like-btn.liked {
  background: rgba(138, 43, 64, .1);
  border-color: rgba(138, 43, 64, .3);
  color: var(--burgundy-mid);
}

.wish-card__like-icon {
  font-size: .85rem;
  transition: transform .2s var(--ease);
}

.wish-card__like-btn:active .wish-card__like-icon {
  transform: scale(1.45);
}

.wish-card__like-btn.liked .wish-card__like-icon {
  animation: heartPop .35s var(--ease);
}

@keyframes heartPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.5);
  }

  100% {
    transform: scale(1);
  }
}

.wish-card__actions {
  display: flex;
  gap: .5rem;
}

.wish-card__edit-btn,
.wish-card__delete-btn {
  background: transparent;
  border: 1px solid rgba(107, 30, 50, .15);
  border-radius: 999px;
  padding: .35rem .75rem;
  font-family: var(--font-utility);
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s var(--ease);
  color: var(--ink-muted);
  min-height: 36px;
}

.wish-card__edit-btn:hover {
  background: rgba(201, 162, 75, .12);
  color: var(--gold-dim);
  border-color: rgba(201, 162, 75, .35);
}

.wish-card__delete-btn:hover {
  background: rgba(192, 57, 43, .08);
  color: #c0392b;
  border-color: rgba(192, 57, 43, .25);
}

/* Edit modal */
.wish-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 38, .75);
  /* Must beat the fixed nav buttons (lang/music/details, z-index 9999) so the
     modal isn't blocked/hidden underneath them. */
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.wish-modal {
  background: var(--cream);
  border: 1px solid rgba(201, 162, 75, .4);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .45);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wish-modal__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--navy-deep);
  margin: 0;
  text-align: center;
}

.wish-modal__actions {
  display: flex;
  gap: .8rem;
}

.wish-modal__btn {
  flex: 1;
  padding: .9rem 1rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-utility);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s var(--ease);
  min-height: 48px;
}

.wish-modal__btn--save {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  font-weight: 600;
}

.wish-modal__btn--save:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -4px rgba(138, 106, 31, .55);
}

.wish-modal__btn--cancel {
  background: rgba(107, 30, 50, .08);
  color: var(--ink-soft);
  border: 1px solid rgba(107, 30, 50, .18);
}

.wish-modal__btn--cancel:hover {
  background: rgba(107, 30, 50, .14);
}

/* =====================================================================
   8. YOUTUBE LIVE
===================================================================== */
.live-section {
  padding: 5rem 1.4rem 4rem;
  background: var(--cream-mid);
  text-align: center;
  /* Keeps scrollIntoView() / anchor navigation from resting flush under the
     fixed lang-switcher pill (top-right, z-index 9999), which would otherwise
     overlap the "LIVE" badge on the placeholder card. */
  scroll-margin-top: 5rem;
}

.live-section__header {
  margin-bottom: 2rem;
}

.live-section .eyebrow {
  color: var(--burgundy);
}

.live-section .section-title {
  color: var(--navy-deep);
}

.live-section__sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: .8rem auto 0;
  max-width: 420px;
  line-height: 1.7;
}

.live-section__note {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--burgundy-mid);
  margin: .35rem auto 0;
  max-width: 440px;
  line-height: 1.5;
  opacity: .9;
}

.live-section__player-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.live-section__player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  /* The 16:9 box above is sized for width; on narrow phones that shrinks
     shorter than the placeholder card's own content (badge + icon + title +
     button) needs, clipping the bottom of the card. This floor guarantees
     enough room regardless of width — has no effect once the aspect-ratio
     height naturally exceeds it (wider screens). */
  min-height: 400px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 48px -12px rgba(11, 21, 38, .2),
    0 0 0 1px rgba(201, 162, 75, .25);
  background: var(--navy-deep);
}

.live-section__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}

/* Fallback Placeholder Card for Offline / Error state */
.live-section__placeholder {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: auto;
}

.live-section__placeholder-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) blur(2px);
  transform: scale(1.04);
}

.live-section__placeholder-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(11, 21, 38, 0.45) 0%, rgba(11, 21, 38, 0.85) 100%);
}

.live-section__placeholder-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.2rem;
  color: var(--cream);
  max-width: 460px;
}

.live-section__play-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light, #FBEFC7), var(--gold, #C9A24B));
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(201, 162, 75, 0.4);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.live-section__play-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6), 0 0 28px rgba(201, 162, 75, 0.6);
}

.live-section__placeholder-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  font-style: italic;
  color: var(--cream);
  margin: 0 0 0.3rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.live-section__placeholder-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(240, 232, 212, 0.82);
  margin: 0 0 1rem;
}

.live-section__yt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  background: #FF0000;
  color: #FFFFFF !important;
  font-family: var(--font-utility);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.live-section__yt-btn:hover {
  transform: translateY(-2px);
  background: #CC0000;
  color: #FFFFFF !important;
}

/* =====================================================================
   FOOTER
===================================================================== */
.footer {
  background: linear-gradient(180deg, var(--navy-deep), #060b16);
  color: var(--cream-dark);
  text-align: center;
  padding: 4.5rem 1.4rem 3rem;
}

.footer__monogram {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--gold-light);
  margin: 0 0 .4em;
}

.footer__monogram .amp {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
}

.footer__line {
  max-width: 400px;
  margin: 0 auto 2rem;
  font-family: var(--font-body);
  font-style: italic;
  color: var(--cream-dark);
  opacity: .85;
  font-size: 1rem;
}

.footer__contacts {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-family: var(--font-utility);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--gold-light);
  margin-bottom: 2.2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(201, 162, 75, .22);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.footer__contact-name {
  opacity: .85;
}

.footer__credit {
  font-family: var(--font-utility);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(246, 239, 221, .45);
  margin: 0;
}

/* ── "friends" link — no underline, subtle hover only ── */
.footer__friends-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}

.footer__friends-link:hover {
  color: rgba(246, 239, 221, .75);
  border-bottom-color: rgba(201, 162, 75, .4);
}

/* =====================================================================
   FLOATING BALLS
===================================================================== */
.floating-balls-container {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}

body.cover-open .floating-balls-container {
  opacity: 1;
  visibility: visible;
}

.floating-ball {
  position: absolute;
  bottom: -60px;
  will-change: transform;
}

.floating-ball__inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  will-change: transform;
}

.floating-ball--gold .floating-ball__inner {
  background: radial-gradient(circle at 35% 35%, #FFF6D6 0%, #C9A24B 60%, #8a6a1f 100%);
  box-shadow: 0 4px 12px rgba(138, 106, 31, .22), inset -2px -2px 6px rgba(0, 0, 0, .2);
}

.floating-ball--burgundy .floating-ball__inner {
  background: radial-gradient(circle at 35% 35%, #F07D93 0%, #8A2B40 60%, #4a1220 100%);
  box-shadow: 0 4px 12px rgba(62, 15, 30, .22), inset -2px -2px 6px rgba(0, 0, 0, .2);
}

.floating-ball--back {
  filter: blur(3px);
}

.floating-ball--mid {
  filter: blur(1px);
}

.floating-ball--fore {
  filter: blur(6px);
}

@keyframes floatRise {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  10% {
    opacity: var(--ball-opacity, .7);
  }

  90% {
    opacity: var(--ball-opacity, .7);
  }

  100% {
    transform: translateY(-115vh);
    opacity: 0;
  }
}

@keyframes floatSway {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(var(--sway-amount, 30px));
  }
}

/* Three.js container */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease 2.2s;
}

body.cover-open #canvas-container {
  opacity: 1;
}


/* =====================================================================
   CSS/DOM PETAL BURST LAYER
===================================================================== */
.petal-burst-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 150;
  overflow: hidden;
}

.petal {
  position: absolute;
  width: var(--size, 22px);
  height: var(--size, 22px);
  top: var(--oy, 40%);
  left: var(--ox, 50%);
  opacity: 0;
  will-change: transform, opacity;
  animation:
    petalBurst var(--dur, 1.8s) var(--delay, 0s) cubic-bezier(0.22, 1, 0.36, 1) forwards,
    petalFall var(--dur, 1.8s) var(--delay, 0s) ease-in forwards;
  transform-origin: center center;
}

@keyframes petalBurst {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(var(--rot0, 0deg)) scale(0.5);
  }

  15% {
    opacity: 1;
    transform: translate(var(--bx, 0px), var(--by, -80px)) rotate(var(--rot1, 90deg)) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(var(--dx, 0px), var(--dy, 260px)) rotate(var(--rot2, 360deg)) scale(0.8);
  }
}

@keyframes petalFall {
  0%,
  15% {
    animation-timing-function: ease-out;
  }

  100% {
    animation-timing-function: ease-in;
  }
}

@media (prefers-reduced-motion: reduce) {
  .petal {
    animation: none;
    opacity: 0;
  }
}

/* =====================================================================
   RESPONSIVE
===================================================================== */

@media(max-width: 420px) {
  .gallery__frame {
    width: 66vw;
  }

  .cover__border-wrap {
    inset: 7px;
  }

  .wax-seal {
    width: min(42vw, 126px);
    height: min(42vw, 126px);
  }

  .wish-form {
    padding: 1.4rem 1rem;
  }

  .wishes-section {
    padding: 4rem 1rem 3rem;
  }

  .scratch-card {
    padding: 2.2rem 1.4rem 1.8rem;
  }
}

@media(max-width:360px) {
  .cover__names {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .scratch-card {
    width: 95vw;
  }
}

/* =====================================================================
   MUSIC TOGGLE BUTTON (User-friendly background music pause/play)
===================================================================== */
.music-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 252, 245, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--gold);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 300;
  box-shadow: 0 10px 24px rgba(62, 15, 30, 0.22), 0 0 14px rgba(201, 162, 75, 0.3);
  transition: transform 0.35s var(--ease), background-color 0.35s ease, opacity 0.45s ease;
  outline: none;
}

.music-toggle-btn:hover {
  transform: scale(1.08);
  background: var(--gold-light);
}

.music-toggle-btn:active {
  transform: scale(0.95);
}

.music-toggle-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.music-toggle-btn__aura {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.4);
  pointer-events: none;
  animation: musicAuraSpin 4s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.music-toggle-btn.is-playing .music-toggle-btn__aura {
  opacity: 1;
}

@keyframes musicAuraSpin {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: rotate(180deg) scale(1.08);
    opacity: 0.8;
  }

  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.5;
  }
}

/* =====================================================================
   COVER — GOLDEN SCRIPT HERO NAMES (inspired by elegant dark invitation)
===================================================================== */
.cover__names--script {
  font-family: 'Great Vibes', 'Cormorant Garamond', cursive;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(2.4rem, 9vw, 4.8rem);
  line-height: 1.25;
  background: linear-gradient(175deg, #FFF8E0 0%, #E8C86A 28%, #C9A24B 56%, #A07828 80%, #8a6a1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 18px rgba(201, 162, 75, 0.5));
  margin: 0 0 0.4em;
  letter-spacing: 0.01em;
}

.cover__amp-script {
  font-family: 'Great Vibes', cursive;
  font-size: 0.65em;
  line-height: 0.9;
  display: inline-block;
  background: linear-gradient(175deg, #FFF8E0 0%, #E8C86A 30%, #C9A24B 60%, #A07828 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(201, 162, 75, 0.6));
  animation: none;
  transform: none !important;
}

/* =====================================================================
   WEDDING DETAILS BUTTON (vertically above music toggle)
===================================================================== */
.wedding-details-btn {
  position: fixed;
  bottom: 82px;
  /* music button is at bottom:24px with h:48px, so 24+48+10=82 */
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 252, 245, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--gold);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 300;
  box-shadow: 0 10px 24px rgba(62, 15, 30, 0.22), 0 0 14px rgba(201, 162, 75, 0.3);
  transition: transform 0.35s var(--ease), background-color 0.35s ease, opacity 0.45s ease;
  outline: none;
}

.wedding-details-btn:hover {
  transform: scale(1.08);
  background: var(--gold-light);
}

.wedding-details-btn:active {
  transform: scale(0.95);
}

.wedding-details-btn__aura {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.4);
  pointer-events: none;
  animation: musicAuraSpin 5s linear infinite;
  opacity: 0.5;
}

/* =====================================================================
   WEDDING DETAILS MODAL
===================================================================== */
.wd-modal {
  position: fixed;
  inset: 0;
  /* Must beat the fixed nav buttons (lang/music/details, z-index 9999) so the
     modal isn't blocked/hidden underneath them. */
  z-index: 10500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.wd-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wd-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 21, 38, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.wd-modal__panel {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 85dvh;
  background: var(--cream, #F6EFDD);
  border-radius: 24px 24px 0 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -12px 60px rgba(62, 15, 30, 0.3);
}

.wd-modal.is-open .wd-modal__panel {
  transform: translateY(0);
}

.wd-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(201, 162, 75, 0.4);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.25s ease;
}

.wd-modal__close:hover {
  background: var(--gold-light);
}

.wd-modal__header {
  padding: 32px 28px 0;
  text-align: center;
  flex-shrink: 0;
}

.wd-modal__eyebrow {
  font-family: var(--font-utility);
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 0.4rem;
}

.wd-modal__title {
  font-family: 'Great Vibes', var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 2.8rem);
  background: linear-gradient(160deg, #FFF0CB 0%, #C9A24B 50%, #8a6a1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

.wd-modal__divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 16px;
}

/* Tabs */
.wd-tabs {
  display: flex;
  border-bottom: 1px solid rgba(201, 162, 75, 0.3);
  padding: 0 28px;
  flex-shrink: 0;
}

.wd-tab {
  padding: 10px 20px;
  font-family: var(--font-utility);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
}

.wd-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.wd-tab.active {
  color: var(--burgundy);
}

.wd-tab.active::after {
  transform: scaleX(1);
}

/* Tab content */
.wd-tab-content {
  display: none;
  padding: 24px 28px 32px;
  overflow-y: auto;
  flex: 1;
}

.wd-tab-content.active {
  display: block;
}

/* Detail tab */
.wd-detail-date {
  font-family: var(--font-utility);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy);
  text-align: center;
  margin-bottom: 20px;
}

.wd-timeline {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  padding-top: 10px;
}

.wd-timeline-item {
  display: flex;
  position: relative;
  gap: 16px;
  padding-bottom: 28px;
  transition: transform 0.3s ease;
}

.wd-timeline-item:hover {
  transform: translateY(-2px);
}

.wd-timeline-item:last-child {
  padding-bottom: 0;
}

.wd-timeline-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FCFAF8;
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  border: 1px solid rgba(201, 162, 75, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.wd-timeline-item:hover .wd-timeline-icon {
  background: var(--burgundy);
  color: #FCFAF8;
  border-color: var(--burgundy);
  box-shadow: 0 6px 15px rgba(201, 162, 75, 0.2);
}

.wd-timeline-node {
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: 0;
  width: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.wd-timeline-line {
  width: 1px;
  height: 100%;
  background: rgba(201, 162, 75, 0.3);
}

.wd-timeline-content {
  background: #FCFAF8;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  flex-grow: 1;
  transition: box-shadow 0.3s ease;
}

.wd-timeline-item:hover .wd-timeline-content {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.wd-timeline-time {
  font-family: var(--font-utility);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 6px;
  font-weight: 600;
}

.wd-timeline-desc {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--burgundy-deep);
  margin-bottom: 8px;
}

.wd-timeline-location {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.wd-timeline-location::before {
  content: "📍";
  font-size: 0.9rem;
  opacity: 0.7;
}

.wd-schedule-note {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-style: italic;
  line-height: 1.7;
  text-align: center;
  margin: 0;
}

/* FAQ tab */
.wd-faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wd-faq-category {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.8rem 0 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(201, 162, 75, 0.3);
  padding-bottom: 0.4rem;
}

.wd-faq-item {
  border-bottom: 1px solid rgba(201, 162, 75, 0.15);
  transition: background-color 0.3s ease;
  border-radius: 4px;
}

.wd-faq-item:hover {
  background-color: rgba(201, 162, 75, 0.03);
}

.wd-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 12px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  transition: color 0.3s ease;
  border-radius: 4px;
}

.wd-faq-q:hover,
.wd-faq-q[aria-expanded="true"] {
  color: var(--burgundy);
}

.wd-faq-icon {
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), color 0.3s ease;
  font-family: sans-serif;
  line-height: 1;
}

.wd-faq-q[aria-expanded="true"] .wd-faq-icon {
  transform: rotate(45deg);
  color: var(--burgundy);
}

.wd-faq-a {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease, opacity 0.3s ease;
  padding: 0 12px;
  opacity: 0;
}

.wd-faq-item.is-open .wd-faq-a {
  max-height: 2000px; /* Much larger to accommodate very long text */
  padding-bottom: 18px;
  opacity: 1;
}

/* =====================================================================
   SHOWCASE FRAMES — initial hidden state for GSAP animation
===================================================================== */
.showcase-frame--main,
.showcase-frame--overlay {
  will-change: transform, opacity;
}

/* =====================================================================
   GUEST PHOTO GALLERY SECTION
===================================================================== */
.guest-gallery {
  padding: 5rem 1.5rem 4rem;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.guest-gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(107, 30, 50, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(11, 21, 38, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.guest-gallery .section-title {
  color: var(--cream);
}

.guest-gallery .eyebrow {
  color: var(--gold-light);
}

.guest-gallery__header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.guest-gallery__sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(246, 239, 221, 0.7);
  max-width: 480px;
  margin: 0.6rem auto 0;
  line-height: 1.7;
}

/* Upload bar */
.guest-gallery__upload-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  position: relative;
}

.guest-gallery__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  font-family: var(--font-utility);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform 0.3s var(--ease), background 0.3s ease, box-shadow 0.3s ease;
}

.guest-gallery__action-btn--camera {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-mid));
  color: var(--cream);
  box-shadow: 0 6px 20px rgba(107, 30, 50, 0.45);
}

.guest-gallery__action-btn--camera:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(107, 30, 50, 0.55);
}

.guest-gallery__action-btn--upload {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 6px 20px rgba(201, 162, 75, 0.35);
}

.guest-gallery__action-btn--upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 162, 75, 0.5);
}

.guest-gallery__status {
  font-family: var(--font-utility);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(201, 162, 75, 0.12);
  display: none;
}

.guest-gallery__status.visible {
  display: inline-block;
}

/* Photo grid */
.guest-gallery__grid-wrap {
  position: relative;
  min-height: 200px;
}

.guest-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .guest-gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

.guest-photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(201, 162, 75, 0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.guest-photo-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(201, 162, 75, 0.4);
}

.guest-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guest-photo-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 8px;
}

.guest-photo-item:hover .guest-photo-item__overlay {
  opacity: 1;
}

/* Gallery controls row (load more + refresh) */
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.gallery-load-more {
  display: block;
  width: fit-content;
  margin: 0;
  padding: .6rem 2rem;
  background: transparent;
  border: 1px solid rgba(201, 162, 75, .45);
  border-radius: 999px;
  color: var(--gold-dim);
  font-family: var(--font-utility);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.gallery-load-more:hover {
  background: rgba(201, 162, 75, .12);
  border-color: rgba(201, 162, 75, .7);
  color: var(--gold);
}
.gallery-load-more:active {
  background: rgba(201, 162, 75, .2);
}

/* Gallery refresh button — ghost style sitting next to load-more */
.gallery-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .55rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(201, 162, 75, .3);
  border-radius: 999px;
  color: rgba(201, 162, 75, .7);
  font-family: var(--font-utility);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.gallery-refresh-btn svg {
  width: 13px;
  height: 13px;
  transition: transform .5s ease;
}
.gallery-refresh-btn:hover {
  border-color: rgba(201, 162, 75, .65);
  color: var(--gold-light);
  transform: translateY(-1px);
}
.gallery-refresh-btn:hover svg {
  transform: rotate(360deg);
}
.gallery-refresh-btn.spinning svg {
  animation: gallerySpin360 .7s ease forwards;
}
@keyframes gallerySpin360 {
  to { transform: rotate(360deg); }
}

.guest-gallery__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 4rem 1rem;
  color: rgba(246, 239, 221, 0.4);
  text-align: center;
}

.guest-gallery__empty p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  margin: 0;
  color: rgba(246, 239, 221, 0.5);
}

/* Guest Lightbox */
.guest-lightbox {
  position: fixed;
  inset: 0;
  /* Must beat the fixed nav buttons (lang/music/details, z-index 9999) so the
     lightbox close/nav/delete controls aren't blocked by them underneath. */
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 16, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.guest-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.guest-lightbox__img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest-lightbox__img-wrap img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.guest-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(201, 162, 75, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease;
}

.guest-lightbox__close:hover {
  background: rgba(201, 162, 75, 0.3);
}

.guest-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease;
}

.guest-lightbox__nav--prev {
  left: 16px;
}

.guest-lightbox__nav--next {
  right: 16px;
}

.guest-lightbox__nav:hover {
  background: rgba(201, 162, 75, 0.3);
}

.guest-lightbox__footer {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.guest-lightbox__counter {
  font-family: var(--font-utility);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.guest-lightbox__delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(180, 30, 50, 0.35);
  border: 1px solid rgba(200, 50, 70, 0.4);
  color: #fff;
  font-family: var(--font-utility);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease;
}

.guest-lightbox__delete:hover {
  background: rgba(180, 30, 50, 0.6);
}


.ig-link {

  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: opacity 0.3s ease;
}

.ig-link:hover,
.ig-link:active {
  opacity: 0.6;
}

/* -------------------------------------
   Order of Service Tab
------------------------------------- */
#wd-service {
  background-color: #FCFAF8;
  padding: 24px 20px;
  border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(201, 162, 75, 0.05);
}

.wd-service-header {
  text-align: center;
  margin-bottom: 32px;
}

/* Main tab title — sized and coloured above the accordion's sub-section titles for clear hierarchy */
.wd-section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  color: var(--burgundy-deep);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0;
}

.wd-section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}

.wd-service-subtitle {
  font-family: var(--font-utility);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 8px;
}

.wd-service-section {
  margin-bottom: 40px;
  position: relative;
}

.wd-service-section::after {
  content: "♦";
  display: block;
  text-align: center;
  color: var(--gold-dim);
  font-size: 0.8rem;
  margin-top: 40px;
  opacity: 0.5;
}

.wd-service-section:last-child::after {
  display: none;
}

.wd-service-section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--burgundy-deep);
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 162, 75, 0.3);
}

.wd-service-music-note {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gold-dim);
  text-align: center;
  margin-bottom: 24px;
}

.wd-service-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(201, 162, 75, 0.2);
}

.wd-service-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.wd-service-role {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 500;
  text-align: left;
}

.wd-service-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.6;
  text-align: left;
  border-left: 2px solid rgba(201, 162, 75, 0.3);
  padding-left: 12px;
  margin-top: 8px;
}

.wd-service-names {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  border-left: 2px solid rgba(201, 162, 75, 0.3);
  padding-left: 12px;
  margin-top: 8px;
}

.wd-service-names span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--burgundy);
}

/* Elegant styling for every named person across the Order of Service.
   font-size uses a fixed rem (not em) so it can never compound if a name ends
   up nested two levels deep, and never drifts between the 0.9rem .wd-service-desc
   context and the 0.95rem .wd-service-names context — every name renders at the
   exact same pixel size regardless of which section it's in.
   !important guards against .wd-service-names span (class+element, higher
   specificity) overriding the color/size for names inside list-style entries
   like the Bridal Retinue, Coordinators and Ushers. */
.wd-service-name {
  color: var(--gold) !important;
  font-size: 1.05rem !important;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-shadow: 0 0 14px rgba(201, 162, 75, 0.22);
}

/* De-emphasized credit for composers/authors of a piece — not wedding participants.
   Paired with .wd-service-name in the markup, so its color must also be !important
   to win over that class's !important gold. */
.wd-service-composer {
  color: var(--gold-dim) !important;
  font-weight: 400;
  letter-spacing: normal;
  text-shadow: none;
}

/* The Bride's name gets the showcase's signature gold-to-navy gradient treatment,
   making her the visual focal point of her own entry. !important on font-size and
   the fill guards against .wd-service-names span (class+element, higher specificity)
   shrinking her name back down and repainting it a flat colour. */
.wd-service-bride-name {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.55rem !important;
  letter-spacing: 0.03em;
  background: linear-gradient(175deg, #FFF0CB 0%, #E6C577 24%, #2D5AA0 62%, #18376E 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 4px 14px rgba(45, 90, 160, 0.28)) drop-shadow(0 0 20px rgba(240, 216, 151, 0.25));
}

/* The Groom's name mirrors the Bride's treatment, using the showcase's gold-to-maroon
   gradient so both hold the same visual weightage in their respective entries. */
.wd-service-groom-name {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.55rem !important;
  letter-spacing: 0.03em;
  background: linear-gradient(175deg, #FFF0CB 0%, #E6C577 24%, #A82E46 62%, #7D1A2D 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 4px 14px rgba(168, 46, 70, 0.32)) drop-shadow(0 0 20px rgba(240, 216, 151, 0.25));
}

/* Placeholders */
.placeholder-text {
  color: var(--burgundy);
  background: rgba(201, 162, 75, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  border-bottom: 1px dashed var(--gold);
  cursor: help;
  display: inline-block;
  line-height: 1.2;
}

/* Musician Tribute Card */
.wd-tribute-card {
  margin-top: 48px;
  padding-top: 32px;
  text-align: center;
}

/* Flowing musical staff with notes travelling along it, in place of the old static divider */
.wd-tribute-staff {
  width: min(360px, 88%);
  margin: 0 auto 18px;
}

.wd-tribute-staff svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.wd-tribute-note {
  filter: drop-shadow(0 0 3px rgba(226, 201, 126, 0.65));
}

.wd-tribute-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto;
}

.wd-tribute-text .alwin-easter-egg {
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
  border-bottom: 1px dashed var(--gold);
  letter-spacing: 0.02em;
}

.wd-tribute-text .alwin-easter-egg:hover,
.wd-tribute-text .alwin-easter-egg:focus {
  color: var(--gold);
}


/* ==========================================================
   Alwin Easter Egg - Art Deco Click Modal
   ========================================================== */

/* Trigger word in footer */
span.alwin-easter-egg {
  cursor: pointer;
  position: relative;
  display: inline-block;
  transition: color 0.25s ease;
}

span.alwin-easter-egg:hover,
span.alwin-easter-egg:focus {
  color: #c9a24b;
  outline: none;
  text-decoration: underline dotted;
}

/* Full-screen darkened overlay */
.alwin-modal-overlay {
  position: fixed;
  inset: 0;
  /* Must beat the fixed nav buttons (lang/music/details, z-index 9999) so the
     modal isn't blocked/hidden underneath them. */
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 5, 2, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.alwin-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Card - transparent, no background */
.alwin-modal-card {
  position: relative;
  width: min(300px, 88vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transform: scale(0.88) translateY(24px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.alwin-modal-overlay.is-open .alwin-modal-card {
  transform: scale(1) translateY(0);
}

/* Close button top-right */
.alwin-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 75, 0.7);
  background: rgba(20, 10, 5, 0.85);
  color: #e2c97e;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.alwin-modal-close:hover {
  background: #c9a24b;
  color: #1a0d00;
  transform: rotate(90deg);
}

/* Frame wrapper: full SVG card dimensions */
.alwin-frame-wrapper {
  position: relative;
  width: 100%;
  /* SVG viewBox: 0 0 525.6 705.6 */
  aspect-ratio: 525.6 / 705.6;
}

/* SVG frame IS the card - sits as background layer */
.alwin-deco-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
  /* Start clipped for reveal animation */
  clip-path: inset(100% 0% 0% 0%);
  transition: none;
}

/* Photo sits ON TOP inside the arch window */
/* Arch in SVG: center=262.8, radius=121.83, top-y=208.99, height=263.57 */
/* As % of viewBox 525.6 x 705.6:                                        */
/*   left   = 140.97/525.6  = 26.8%                                      */
/*   top    = 208.99/705.6  = 29.6%                                       */
/*   width  = 243.66/525.6  = 46.4%                                       */
/*   height = 263.57/705.6  = 37.4%                                       */
.alwin-photo {
  position: absolute;
  left: 26.8%;
  top: 29.6%;
  width: 46.4%;
  height: 37.4%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 2;
  /* Match the arch top: radius = 121.83/243.66 = 50% of width */
  border-radius: 50% 50% 0 0 / 22% 22% 0 0;
}


/* When modal opens, animate the frame drawing in - top down reveal */
.alwin-modal-overlay.is-open .alwin-deco-frame {
  animation: frameReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

@keyframes frameReveal {
  0%   { clip-path: inset(100% 0% 0% 0%); opacity: 0.4; }
  30%  { opacity: 1; clip-path: inset(60% 0% 0% 0%); }
  60%  { clip-path: inset(20% 0% 0% 0%); }
  100% { clip-path: inset(0% 0% 0% 0%); }
}

/* CTA below the card */
.alwin-modal-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 20px 16px;
  background: rgba(10, 5, 2, 0.55);
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-top: none;
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 1.1s, transform 0.4s ease 1.1s;
}

.alwin-modal-overlay.is-open .alwin-modal-cta {
  opacity: 1;
  transform: translateY(0);
}

.alwin-modal-name {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #e2c97e;
  letter-spacing: 0.06em;
  text-align: center;
}

.alwin-modal-title {
  margin: 0;
  font-family: var(--font-body, "Lato", sans-serif);
  font-size: 0.8rem;
  color: rgba(220, 200, 160, 0.75);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Instagram CTA button */
.alwin-insta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
  border-radius: 30px;
  font-family: var(--font-body, "Lato", sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(253, 29, 29, 0.35);
}

.alwin-insta-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px rgba(253, 29, 29, 0.5);
}

/* =====================================================================
   FULL-PAGE LIVE STREAM MODAL
===================================================================== */
.live-modal-overlay {
  position: fixed;
  inset: 0;
  /* Must beat the fixed nav buttons (lang/music/details, z-index 9999) and
     the events-hint chevron (10000) so the full-page takeover is truly on top. */
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 15, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 4rem 1rem 1.5rem;
  box-sizing: border-box;
}

.live-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.live-modal-frame {
  position: relative;
  width: min(1100px, 96vw);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(201, 162, 75, 0.3);
  transform: scale(0.94) translateY(16px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.live-modal-overlay.is-open .live-modal-frame {
  transform: scale(1) translateY(0);
}

.live-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.live-modal-close {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(201, 162, 75, 0.7);
  background: rgba(20, 10, 5, 0.85);
  color: #e2c97e;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.live-modal-close:hover {
  background: #c9a24b;
  color: #1a0d00;
  transform: rotate(90deg);
}

/* =====================================================================
   PERFORMANCE & LAYOUT STABILITY (Image placeholders & off-screen rendering)
===================================================================== */
.showcase-frame__inner,
.venue-card__img-container,
.live-section__placeholder {
  background-color: var(--burgundy-deep, #3E0F1E);
}

.gallery__frame {
  background-color: var(--cream-dark, #E4D8B8);
}

.details,
.gallery,
.guest-gallery,
.wishes-section,
.live-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}
