/* =========================================================
   Chamath & Amadhi – cinematic wedding invitation
   Scenes: velvet curtains → cover → invitation → "I'm Coming"
           → rose storm → video 1 → video 2 → back to the start
   ========================================================= */

:root {
  --maroon: #6a0f1f;
  --maroon-deep: #3a0710;
  --night: #230409;
  --gold: #c9993f;
  --gold-light: #f2d58f;
  --cream: #fbf3e4;
  --ink: #5b0e1b;
}

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

html {
  scroll-behavior: smooth;
  background: var(--night);
  -webkit-text-size-adjust: 100%;
}

html.locked,
html.locked body {
  overflow: hidden;
  height: 100%;
}

body {
  font-family: 'Cormorant SC', 'Playfair Display', serif;
  color: #fff6e4;
  background: var(--night);
  overflow-x: hidden;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

/* ---------------- FX canvas ---------------- */
#fx {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 300;
}

/* =========================================================
   SCENE 1 – CURTAINS
   ========================================================= */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.curtain.gone {
  display: none;
}

.curtain.no-anim,
.curtain.no-anim * {
  transition: none !important;
}

.panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.4%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 76%, rgba(0, 0, 0, .5) 100%),
    repeating-linear-gradient(90deg, #3a0510 0, #7a1226 3.6%, #a82039 5.2%, #7a1226 6.8%, #3a0510 10.4%);
  box-shadow: 0 0 60px rgba(0, 0, 0, .7);
  transition: transform 2.7s cubic-bezier(.75, 0, .2, 1) .35s;
  will-change: transform;
  z-index: 3;
}

.panel-l {
  left: 0;
}

.panel-r {
  right: 0;
}

/* gold trim on the inner edges + fringe along the bottom */
.panel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  background: linear-gradient(90deg, #8a5f1c, var(--gold), #fff0c0, var(--gold), #8a5f1c);
}

.panel-l::after {
  right: 0;
}

.panel-r::after {
  left: 0;
}

.panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  background:
    repeating-linear-gradient(90deg, var(--gold) 0 3px, transparent 3px 8px);
  -webkit-mask-image: linear-gradient(0deg, #000, transparent);
  mask-image: linear-gradient(0deg, #000, transparent);
  opacity: .8;
}

.curtain.open .panel-l {
  transform: translateX(-103%);
}

.curtain.open .panel-r {
  transform: translateX(103%);
}

/* pelmet / valance */
.valance {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(54px, 11vh, 108px);
  z-index: 4;
  background: linear-gradient(180deg, #260308, #5a0b19 85%);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .65);
  transition: transform 1.1s ease 2.2s;
}

.valance::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: clamp(18px, 4vh, 36px);
  background: radial-gradient(circle at 50% 0, #5a0b19 0 68%, transparent 70%) 0 0 / clamp(60px, 11vw, 120px) 100% repeat-x;
  filter: drop-shadow(0 3px 0 var(--gold));
}

.curtain.open .valance {
  transform: translateY(-140%);
}

/* warm stage light + sparkles */
.spot {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(255, 222, 150, .30), rgba(255, 222, 150, 0) 58%);
  mix-blend-mode: screen;
  animation: breathe 5s ease-in-out infinite;
  transition: opacity 1s ease;
}

.curtain.open .spot {
  opacity: 0;
}

@keyframes breathe {

  0%,
  100% {
    opacity: .65;
  }

  50% {
    opacity: 1;
  }
}

.sparkles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  transition: opacity 1s ease;
}

.curtain.open .sparkles {
  opacity: 0;
}

.sparkles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffe9b0;
  box-shadow: 0 0 8px 2px rgba(255, 224, 150, .8);
  opacity: 0;
  animation: twinkle 3.2s ease-in-out infinite;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0;
    transform: scale(.4);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* names */
.intro-text {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 4vw;
  transition: opacity .9s ease, transform 1.3s ease;
}

.curtain.open .intro-text {
  opacity: 0;
  transform: scale(1.18);
  pointer-events: none;
}

.intro-eyebrow {
  font-weight: 700;
  font-size: clamp(13px, 2.4vw, 20px);
  letter-spacing: .5em;
  padding-left: .5em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: clamp(4px, 1.5vh, 14px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
  animation: fadeUp 1.4s ease both .2s;
}

.intro-names {
  font-weight: 400;
  line-height: 1;
}

.intro-names span {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(64px, 17vw, 150px);
  line-height: 1.05;
  padding: 0 .1em;
  background: linear-gradient(100deg, #b9852e 10%, #fff1c2 35%, #d9a94a 50%, #fff1c2 65%, #b9852e 90%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite, fadeUp 1.6s ease both;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .65));
}

.intro-names span:last-child {
  animation-delay: 0s, .55s;
}

.intro-names i {
  display: block;
  font-style: normal;
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4.6vw, 42px);
  color: var(--gold-light);
  margin: .05em 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
  animation: fadeUp 1.6s ease both .35s;
}

@keyframes shimmer {
  to {
    background-position: -260% 0;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.open-btn {
  position: relative;
  margin-top: clamp(26px, 6vh, 54px);
  padding: 14px 30px;
  font-weight: 700;
  font-size: clamp(13px, 2.6vw, 17px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff6e4;
  background: rgba(40, 4, 10, .55);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  animation: fadeUp 1.4s ease both 1s;
  transition: transform .3s ease, background .3s ease;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}

.open-btn:hover,
.open-btn:focus-visible {
  transform: translateY(-2px) scale(1.03);
  background: rgba(106, 15, 31, .8);
  outline: none;
}

.open-btn .ring {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1.5px solid rgba(242, 213, 143, .8);
  animation: ringPulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes ringPulse {
  0% {
    transform: scale(1);
    opacity: .9;
  }

  100% {
    transform: scale(1.28, 1.7);
    opacity: 0;
  }
}

/* =========================================================
   SCENE 2 – COVER (Responsive Luxury Composition)
   ========================================================= */
.cover {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  background:
    radial-gradient(ellipse at 50% 30%, #ffffff 0%, #fdfbf7 50%, #f7f1e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

/* Royal hairline inner border */
.cover-border {
  position: absolute;
  inset: clamp(10px, 2.5vw, 24px);
  border: 1px solid rgba(201, 153, 63, 0.45);
  border-radius: 12px;
  pointer-events: none;
  z-index: 2;
}

.cover-border::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(201, 153, 63, 0.3);
  border-radius: 8px;
}

/* Luxury corner florals */
.cover-flower {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  line-height: 0;
}

.cover-flower img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(100, 20, 30, 0.12));
}

.flower-top-right {
  top: -8px;
  right: -8px;
  width: clamp(120px, 32vw, 220px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
}

.flower-top-left {
  top: -8px;
  left: -8px;
  width: clamp(100px, 26vw, 180px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
}

.flower-bottom-left {
  bottom: -8px;
  left: -8px;
  width: clamp(110px, 28vw, 200px);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 0%, #000 82%, transparent 100%);
}

.flower-bottom-right {
  bottom: -8px;
  right: -8px;
  width: clamp(85px, 22vw, 160px);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 0%, #000 82%, transparent 100%);
}

/* Main card column */
.cover-card {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 520px;
  height: 100%;
  min-height: 100svh;
  padding: clamp(18px, 3vh, 32px) 16px clamp(68px, 8.5vh, 84px);
  box-sizing: border-box;
  text-align: center;
}

/* Header */
.cover-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.badge-line {
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9993f);
}

.badge-line:last-child {
  background: linear-gradient(270deg, transparent, #c9993f);
}

.badge-tag {
  font-family: 'Cormorant SC', serif;
  font-weight: 700;
  font-size: clamp(13px, 3.6vw, 18px);
  letter-spacing: 0.3em;
  padding-left: 0.3em;
  color: #6a0f1f;
  text-transform: uppercase;
}

.cover-sub {
  font-family: 'Cormorant SC', serif;
  font-weight: 600;
  font-size: clamp(10px, 2.5vw, 13px);
  letter-spacing: 0.26em;
  padding-left: 0.26em;
  color: #8c6d35;
  margin-top: 3px;
  text-transform: uppercase;
}

.gold-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  color: #c9993f;
}

.gold-flourish span {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9993f);
}

.gold-flourish span:last-child {
  background: linear-gradient(270deg, transparent, #c9993f);
}

.gold-flourish i {
  font-style: normal;
  font-size: 12px;
  color: #a3173a;
}

/* Center hero */
.cover-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  margin: clamp(2px, 0.8vh, 10px) 0;
}

.hero-halo {
  position: absolute;
  width: clamp(220px, 58vw, 360px);
  height: clamp(220px, 58vw, 360px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 196, 120, 0.42) 0%, rgba(250, 235, 205, 0.22) 50%, transparent 72%);
  filter: blur(12px);
  z-index: 1;
  animation: haloPulse 4.5s ease-in-out infinite;
}

.hero-ring {
  position: absolute;
  width: clamp(210px, 55vw, 340px);
  height: clamp(210px, 55vw, 340px);
  border-radius: 50%;
  border: 1px dashed rgba(201, 153, 63, 0.35);
  box-shadow: 0 0 20px rgba(201, 153, 63, 0.12);
  z-index: 1;
  animation: ringRotate 60s linear infinite;
}

.couple-img {
  position: relative;
  z-index: 2;
  display: block;
  height: clamp(260px, 56vh, 519px);
  width: auto;
  max-width: 92vw;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(90, 15, 25, 0.15));
  animation: coupleBreathe 5s ease-in-out infinite;
}

/* Footer details */
.cover-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(34px, 8.8vw, 60px);
  font-weight: 400;
  color: #5c0919;
  line-height: 1.15;
  margin: 0 0 6px;
  text-shadow: 0 2px 10px rgba(92, 9, 25, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 8px;
}

.name-amp {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.72em;
  color: #c9993f;
}

.cover-date-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(201, 153, 63, 0.5);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  margin-bottom: 6px;
  font-family: 'Cormorant SC', serif;
  font-weight: 700;
  font-size: clamp(11px, 2.9vw, 14px);
  letter-spacing: 0.2em;
  color: #6a0f1f;
}

.date-dot {
  color: #c9993f;
  font-size: 0.8em;
}

.cover-venue {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(9px, 2.25vw, 11.5px);
  font-weight: 500;
  letter-spacing: 0.11em;
  color: #6a5340;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 92%;
  margin: 0 auto 4px;
}

.venue-pin {
  width: 12px;
  height: 12px;
  color: #a3173a;
  flex-shrink: 0;
}

/* Floating scroll button */
.scroll-hint {
  position: absolute;
  bottom: clamp(10px, 1.8vh, 18px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  padding: 7px 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(90, 15, 25, 0.12);
  color: #6a0f1f;
  font-family: 'Cormorant SC', serif;
  font-weight: 700;
  font-size: clamp(11px, 2.6vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 10;
  max-width: calc(100% - 32px);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  animation: scrollBob 2.2s ease-in-out infinite;
}

.scroll-hint svg {
  width: 15px;
  height: 15px;
  stroke: #6a0f1f;
  flex-shrink: 0;
}

.scroll-hint:hover,
.scroll-hint:focus-visible {
  background: #6a0f1f;
  color: #fff6e4;
  border-color: #6a0f1f;
  outline: none;
}

.scroll-hint:hover svg,
.scroll-hint:focus-visible svg {
  stroke: #fff6e4;
}

/* Subtle entrance when curtains slide open */
body.opened .couple-img {
  animation: coupleBreathe 5s ease-in-out infinite;
}

@keyframes coupleBreathe {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes haloPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.65;
  }

  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}

@keyframes ringRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes scrollBob {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 6px);
  }
}

/* =========================================================
   SCENE 3 & 4 – INVITATION CARD + RSVP
   ========================================================= */
.invite {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* padding: clamp(24px, 4vh, 42px) 14px clamp(48px, 8vh, 80px); */
  background:
    radial-gradient(ellipse at 50% 12%, #86182c 0%, rgba(134, 24, 44, 0) 65%),
    linear-gradient(180deg, #3a0710 0%, #1f0307 100%);
  overflow: hidden;
  box-sizing: border-box;
}


.invite-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(14px, 2.5vh, 22px);
}

.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 6px;
  color: var(--gold);
}

.gold-divider span {
  width: clamp(40px, 14vw, 100px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.gold-divider span:last-child {
  background: linear-gradient(270deg, transparent, var(--gold));
}

.gold-divider i {
  font-style: normal;
  font-size: 18px;
}

.invite-eyebrow {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(32px, 7.5vw, 52px);
  color: var(--gold-light);
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .5);
}

/* Invitation card (Large & Prominent) */
.invite-card {
  width: min(96vw, 540px);
  margin: 0 auto clamp(24px, 4vh, 36px);
  padding: clamp(6px, 1.6vw, 10px);
  background: linear-gradient(135deg, #e7c470, #b6862f 50%, #f1d995);
  border-radius: 10px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, .75), 0 0 50px rgba(201, 153, 63, .3);
  box-sizing: border-box;
}

.invite-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* RSVP bottom block */
.invite-rsvp {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 6px;
}

.rsvp-script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(30px, 7vw, 48px);
  color: var(--gold-light);
  line-height: 1.15;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .5);
  margin: 0 0 8px;
}

.rsvp-si {
  margin-top: 4px;
  font-family: 'Noto Serif Sinhala', serif;
  font-size: clamp(14px, 3.2vw, 18px);
  color: rgba(255, 246, 228, .8);
}

.coming-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 6px 0 12px;
  padding: clamp(14px, 2.4vh, 18px) clamp(34px, 7.5vw, 48px);
  font-family: 'Cormorant SC', serif;
  font-weight: 700;
  font-size: clamp(19px, 4.4vw, 24px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff6e4;
  background: linear-gradient(135deg, #a3173a 0%, #6a0f1f 55%, #4a0814 100%);
  border: 2px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .55), 0 0 0 0 rgba(201, 153, 63, .55);
  overflow: hidden;
  animation: comeGlow 2.4s ease-out infinite;
  transition: transform .3s ease, filter .3s ease;
}

.coming-btn::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 240, 200, .45), transparent);
  transform: skewX(-20deg);
  animation: sweep 3.4s ease-in-out infinite;
}

@keyframes sweep {
  0% {
    left: -60%;
  }

  55%,
  100% {
    left: 130%;
  }
}

@keyframes comeGlow {
  0% {
    box-shadow: 0 14px 36px rgba(0, 0, 0, .55), 0 0 0 0 rgba(201, 153, 63, .55);
  }

  100% {
    box-shadow: 0 14px 36px rgba(0, 0, 0, .55), 0 0 0 26px rgba(201, 153, 63, 0);
  }
}

.coming-btn .heart {
  width: 24px;
  height: 24px;
  color: #ffd0da;
  animation: beat 1.3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 120, 150, .8));
  flex-shrink: 0;
}

@keyframes beat {

  0%,
  100% {
    transform: scale(1);
  }

  15% {
    transform: scale(1.25);
  }

  30% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.18);
  }
}

.coming-btn:hover,
.coming-btn:focus-visible {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.12);
  outline: none;
}

.coming-btn:active {
  transform: scale(.97);
}

.coming-btn.done,
.coming-btn:disabled {
  animation: none;
  cursor: default;
  filter: saturate(.85);
  transform: none;
}

.coming-btn.done::before {
  display: none;
}

.rsvp-note {
  font-size: clamp(11px, 2.5vw, 13px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(242, 213, 143, .75);
  margin: 0;
}

/* =========================================================
   SCENE 5 – BLACK VIDEO STAGE
   ========================================================= */
.stage {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}

.stage.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s ease;
}

.stage video {
  height: 100vh;
  height: 100svh;
  width: auto;
  max-width: 100vw;
  object-fit: contain;
  background: #000;
  opacity: 0;
  transition: opacity .7s ease;
}

.stage video.on {
  opacity: 1;
}

.tap-play {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff6e4;
  background: rgba(106, 15, 31, .85);
  border: 2px solid var(--gold);
  box-shadow: 0 0 40px rgba(201, 153, 63, .35);
}

.tap-play[hidden] {
  display: none;
}

.tap-play svg {
  width: 40px;
  height: 40px;
  margin-left: 4px;
}

.stage-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(36px, 9vh, 90px);
  text-align: center;
  padding: 0 20px;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(34px, 8vw, 64px);
  color: var(--gold-light);
  text-shadow: 0 3px 18px rgba(0, 0, 0, .95), 0 0 24px rgba(201, 153, 63, .35);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.4s ease, transform 1.4s ease;
  pointer-events: none;
}

.stage-caption.show {
  opacity: 1;
  transform: none;
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2, .8, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.invite-card.reveal {
  transform: perspective(1200px) rotateX(12deg) translateY(70px) scale(.93);
  transition-duration: 1.5s;
}

.invite-card.reveal.in {
  transform: perspective(1200px) rotateX(0) translateY(0) scale(1);
}

.coming-btn.reveal {
  transition: opacity 1s ease, transform .3s ease, filter .3s ease;
}

/* =========================================================
   MUSIC BUTTON
   ========================================================= */
.music-wrap {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease;
}

body.opened .music-wrap {
  opacity: 1;
  visibility: visible;
}

body.in-video .music-wrap {
  opacity: 0;
  visibility: hidden;
}

.music-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff6e4;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}

.music-btn:hover,
.music-btn:focus-visible {
  transform: translateY(-2px) scale(1.05);
  outline: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .55);
}

.music-btn .ic-note {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.music-btn .bars {
  display: none;
  align-items: flex-end;
  gap: 2.5px;
  height: 18px;
}

.music-btn .bars i {
  width: 3px;
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transform-origin: bottom;
  animation: eq .9s ease-in-out infinite;
}

.music-btn .bars i:nth-child(2) {
  animation-delay: .2s;
}

.music-btn .bars i:nth-child(3) {
  animation-delay: .4s;
}

@keyframes eq {

  0%,
  100% {
    transform: scaleY(.25);
  }

  50% {
    transform: scaleY(1);
  }
}

.music-btn.on .ic-note {
  display: none;
}

.music-btn.on .bars {
  display: inline-flex;
}

/* ---------------- larger screens ---------------- */
@media (min-width: 900px) {
  .cover-frame img {
    max-height: 84vh;
  }
}

@media (prefers-reduced-motion: reduce) {

  .spot,
  .sparkles span,
  .open-btn .ring,
  .scroll-hint,
  .coming-btn,
  .coming-btn::before,
  .coming-btn .heart,
  .intro-names span {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}