:root {
  --fw: min(100vw, 56.25vh);
  --u: calc(var(--fw) / 100);
  /* how far a section overlaps the one above it; the pictures dissolve into each other across this zone */
  --blend: calc(var(--sh, 100vh) * .22);

  --gold: #e6c47a;
  --gold-hi: #f6e3a8;
  --gold-lo: #b8893b;
  --wine: #4a0c14;
  --wine-deep: #1c0407;
  --cream: #f5ead8;
  --ink: #5e121b;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --caps: 'Cinzel', 'Times New Roman', serif;
  --script: 'Great Vibes', cursive;
  --arabic: 'Amiri', serif;
}

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

html { background: var(--wine-deep); }
/* scrolling stays locked while the envelope intro is on screen */
body.is-locked { overflow: hidden; }

body {
  background: var(--wine-deep);
  color: var(--cream);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

/* ============================ INTRO ============================ */
.intro {
  /* 16:9 video box: covers landscape screens, but on tall phones is capped at 230vw wide so the whole envelope stays in view */
  --vbox: max(100vw, min(177.78vh, 230vw));
  position: fixed;
  inset: 0;
  z-index: 50;
  background: linear-gradient(180deg, #efe9d9 0%, #e8e2d2 50%, #ddd6c6 100%);
  cursor: pointer;
  overflow: hidden;
  outline: none;
}
.intro video {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--vbox);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.intro__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 52%, transparent 35%, rgba(70, 25, 10, .28) 100%);
  transition: opacity 1s ease;
}
.intro__top,
.intro__cta {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--ink);
  transition: opacity .9s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .9s ease;
}
.intro__top { top: 9%; animation: introIn 1.8s .2s cubic-bezier(.2, .7, .2, 1) both; }
.intro__kicker {
  font-family: var(--caps);
  font-size: clamp(11px, 1.2vmin + 6px, 17px);
  letter-spacing: .42em;
  text-transform: uppercase;
  opacity: .8;
  padding-left: .42em;
}
.intro__names {
  font-family: var(--script);
  font-size: clamp(44px, 8.5vmin, 92px);
  line-height: 1.25;
  margin-top: .1em;
  background: linear-gradient(100deg, #6e1420 0%, #9e2b37 30%, #5a0f18 55%, #a3343f 80%, #6e1420 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}
.intro__names span { font-size: .7em; padding: 0 .1em; }

.intro__rings {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--vbox) * .0113);
  width: calc(var(--vbox) * .25);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity .6s ease;
}
.intro__rings i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(214, 170, 90, .9);
  box-shadow: 0 0 24px rgba(230, 190, 110, .45), inset 0 0 24px rgba(230, 190, 110, .3);
  animation: ripple 3s cubic-bezier(.2, .6, .3, 1) infinite;
  opacity: 0;
}
.intro__rings i:nth-child(2) { animation-delay: 1s; }
.intro__rings i:nth-child(3) { animation-delay: 2s; }

.intro__cta { bottom: 11%; display: flex; justify-content: center; animation: introIn 1.8s .6s cubic-bezier(.2, .7, .2, 1) both; }
.intro__paths { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.path-float {
  font-family: var(--caps);
  font-size: clamp(13px, 1.2vmin + 8px, 18px);
  letter-spacing: .28em;
  padding: .9em 1.35em .8em;
  text-transform: uppercase;
  color: var(--gold-hi);
  border: 1px solid rgba(230, 196, 122, .75);
  border-radius: 999px;
  background: rgba(28, 4, 8, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(28, 4, 8, .28);
  animation: pathFloat 3.2s ease-in-out infinite;
}
.path-float:nth-child(2) { animation-delay: .4s; }
.path-float--stay {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 30;
  animation: pathFloatStay 3.2s ease-in-out infinite;
}
.path-float--stay[hidden] { display: none; }
@keyframes pathFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pathFloatStay {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}

.intro__flash {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #fffdf6 0%, #fff6e2 45%, #f7e3bd 100%);
}

.intro.is-playing { cursor: default; }
.intro.is-playing .intro__top { opacity: 0; transform: translateY(-30px); filter: blur(6px); }
.intro.is-playing .intro__cta { opacity: 0; transform: translateY(30px); filter: blur(6px); }
.intro.is-playing .intro__rings,
.intro.is-playing .intro__veil { opacity: 0; }

/* ============================ FILM ============================ */
.film {
  position: relative;
  background: var(--wine-deep);
}
/* each section is one screen tall; --sh is the screen height in px, set by script.js */
.scene {
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
}
html {
  scroll-snap-type: y mandatory;
}

/* the card slides up into the groom film; it does not jump or dissolve */
.scene[data-scene="stage"] { --blend: 0; }
.scene + .scene[data-scene="stage"] { margin-top: 0; }
.scene + .scene[data-scene="stage"] .scene__media,
.scene + .scene[data-scene="stage"] .scene__blur {
  -webkit-mask-image: none;
  mask-image: none;
}

/* most sections overlap the one above, and their pictures dissolve into it; the text stays sharp */
.scene + .scene:not([data-scene="bride"]) { margin-top: calc(var(--blend) * -1); }
.scene + .scene:not([data-scene="bride"]) .scene__media,
.scene + .scene:not([data-scene="bride"]) .vignette::after {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .15) calc(var(--blend) * .3), rgba(0, 0, 0, .6) calc(var(--blend) * .6), #000 var(--blend));
  mask-image: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .15) calc(var(--blend) * .3), rgba(0, 0, 0, .6) calc(var(--blend) * .6), #000 var(--blend));
}
.scene + .scene:not([data-scene="bride"]) .scene__blur {
  -webkit-mask-image: linear-gradient(180deg, transparent 60px, rgba(0, 0, 0, .15) calc(60px + var(--blend) * .3), rgba(0, 0, 0, .6) calc(60px + var(--blend) * .6), #000 calc(60px + var(--blend)));
  mask-image: linear-gradient(180deg, transparent 60px, rgba(0, 0, 0, .15) calc(60px + var(--blend) * .3), rgba(0, 0, 0, .6) calc(60px + var(--blend) * .6), #000 calc(60px + var(--blend)));
}
.scene + .scene:not([data-scene="bride"]) .frame { box-shadow: none; }
.scene + .scene[data-scene="stage"] .scene__media,
.scene + .scene[data-scene="stage"] .scene__blur,
.scene + .scene[data-scene="stage"] .vignette::after {
  -webkit-mask-image: none;
  mask-image: none;
}

/* the mix starts under the dinner location button, so the wording stays clear */
.scene[data-scene="finale"] { --blend: calc(var(--sh, 100vh) * .16); }

/* reception is its own full screen; the glow carries you into it, so it does not mix with the finale */
/* reception, the shore photo, and save the date each fill the screen; the auto move slides, it does not fade */
.scene[data-scene="reception"],
.scene[data-scene="shore"],
.scene[data-scene="savedate"] { --blend: 0; }
.scene + .scene[data-scene="reception"],
.scene + .scene[data-scene="shore"],
.scene + .scene[data-scene="savedate"] { margin-top: 0; }
.scene[data-scene="reception"] .scene__blur,
.scene[data-scene="shore"] .scene__blur,
.scene[data-scene="savedate"] .scene__blur { display: none; }
.scene + .scene[data-scene="reception"] .scene__media,
.scene + .scene[data-scene="shore"] .scene__media,
.scene + .scene[data-scene="savedate"] .scene__media,
.scene + .scene[data-scene="reception"] .scene__blur,
.scene + .scene[data-scene="shore"] .scene__blur,
.scene + .scene[data-scene="savedate"] .scene__blur {
  -webkit-mask-image: none;
  mask-image: none;
}
.scene[data-scene="finale"] .frame,
.scene[data-scene="reception"] .frame,
.scene[data-scene="shore"] .frame,
.scene[data-scene="savedate"] .frame {
  width: 100%;
  left: 0;
  box-shadow: none;
  -webkit-mask-image: none;
  mask-image: none;
}
/* on a wide screen every scene stays in the phone column, with the picture blurred beside it */
@media (min-aspect-ratio: 10/16) {
  .scene[data-scene="finale"] .frame,
  .scene[data-scene="reception"] .frame,
  .scene[data-scene="shore"] .frame,
  .scene[data-scene="savedate"] .frame {
    width: var(--fw);
    left: calc(50% - var(--fw) / 2);
    box-shadow: 0 0 140px rgba(0, 0, 0, .65);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  }
  .scene[data-scene="finale"] .scene__blur,
  .scene[data-scene="reception"] .scene__blur,
  .scene[data-scene="shore"] .scene__blur,
  .scene[data-scene="savedate"] .scene__blur {
    display: block;
  }
}
.scene[data-scene="shore"] .scene__media > img {
  animation: shoreDrift 16s ease-in-out infinite alternate;
}
@keyframes shoreDrift {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}
.resort-block {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 41%;
  z-index: 2;
  transform: translateY(calc(-50% - 40px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.resort-block .map-btn { margin: 60px 0 0; }
.resort-card {
  width: 100%;
  padding: calc(var(--u) * 2.2) calc(var(--u) * 1.6) calc(var(--u) * 1.6);
  background: var(--cream);
  border: 1px solid rgba(184, 137, 59, .55);
  border-radius: calc(var(--u) * 2.2);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
}
.resort-card p {
  margin: 0 0 calc(var(--u) * 1.4);
  font-family: var(--caps);
  font-size: calc(var(--u) * 4.6);
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #111;
}
.resort-card img {
  display: block;
  width: 100%;
  height: calc(var(--u) * 34);
  object-fit: cover;
  object-position: center 72%;
  border-radius: calc(var(--u) * 1.6);
}
.copy.copy--savedate {
  top: 3%;
  bottom: 12%;
  left: 6%;
  right: 6%;
  justify-content: space-evenly;
  text-align: center;
}
.copy--savedate .welcome { font-size: calc(var(--u) * 8.4); color: var(--gold-hi); margin: 0; }
.copy--savedate .wishes {
  margin: 15px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: calc(var(--u) * 4.2);
  color: var(--gold-hi);
}
.copy--savedate .count {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(var(--u) * 1.2);
  width: 100%;
  margin-top: 28px;
  padding: calc(var(--u) * 2.2) calc(var(--u) * 1.2);
  border-radius: calc(var(--u) * 1.6);
  background: rgba(6, 16, 20, .4);
}
.copy--savedate .count div { display: flex; flex-direction: column; align-items: center; }
.copy--savedate .count b {
  font-family: var(--caps);
  font-size: calc(var(--u) * 6.2);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--gold-hi);
  line-height: 1;
}
.copy--savedate .count span {
  margin-top: calc(var(--u) * .6);
  font-family: var(--caps);
  font-size: calc(var(--u) * 2.2);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.copy--savedate .sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--u) * 3);
  width: 100%;
  margin-top: 32px;
}
.copy--savedate .sides .label {
  margin-bottom: calc(var(--u) * 1.6);
  letter-spacing: .14em;
  padding-left: .14em;
  color: var(--gold-hi);
}
.copy--savedate .sides p:not(.label) {
  font-size: calc(var(--u) * 3.5);
  line-height: 1.7;
  margin: 11px 0;
}
.copy--savedate .nowrap { white-space: nowrap; }
.copy--reception {
  top: 0;
  bottom: 0;
  left: 8%;
  right: 8%;
  justify-content: center;
}
.copy--reception .label--lg { margin-bottom: 30px; }
.copy--reception .welcome { font-size: calc(var(--u) * 7.2); color: var(--gold-hi); margin-bottom: calc(var(--u) * .4); }
.copy--reception .day { font-size: calc(var(--u) * 9); }
.copy--reception .caps-line { font-size: calc(var(--u) * 4.2 + 8px); }
.copy--reception .time { margin-top: calc(var(--u) * 1.2); }
.scene[data-scene="reception"] .scene__media {
  background: url(assets/reception-opening-poster.jpg) center / cover no-repeat;
}
.scene[data-scene="finale"] .scene__media {
  background: url(assets/finale-poster.jpg) center / cover no-repeat;
}
.scene[data-scene="savedate"] .scene__media {
  background: url(assets/save-the-date-poster.jpg) center / cover no-repeat;
}
.scene[data-scene="stage"] .scene__media {
  background: url(assets/stage-groom-poster.jpg) center / cover no-repeat;
}
.reception-still {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shade--reception {
  background: radial-gradient(ellipse at 50% 50%, rgba(6, 16, 20, .42) 0%, rgba(6, 16, 20, .16) 38%, rgba(6, 16, 20, 0) 64%);
}
.shade--savedate {
  background: radial-gradient(ellipse at 50% 50%, rgba(6, 16, 20, .55) 0%, rgba(6, 16, 20, .28) 42%, rgba(6, 16, 20, .08) 68%);
}
.veil {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 252, 246, .2) 0%, rgba(255, 248, 236, .82) 100%);
}

/* the groom and the bride don't mix: both edges melt into one soft red band across the full width.
   The groom's feet sit at about 95% of the picture, so his band only covers the floor below them;
   neither band reaches the text. */
.scene[data-scene="stage"]::after,
.scene[data-scene="bride"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}
.scene[data-scene="stage"]::after {
  bottom: 0;
  height: 4%;
  background: linear-gradient(0deg, var(--wine) 0, rgba(74, 12, 20, .88) 30%, rgba(74, 12, 20, .5) 62%, rgba(74, 12, 20, 0) 100%);
}
/* tucks up over the empty floor below the groom's feet (the bottom ~5% of his picture) and fades in across it */
.scene[data-scene="bride"] { margin-top: calc(var(--sh, 100vh) * -.055); }
.scene[data-scene="bride"] .scene__media {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 calc(var(--sh, 100vh) * .04));
  mask-image: linear-gradient(180deg, transparent 0, #000 calc(var(--sh, 100vh) * .04));
}
.scene[data-scene="bride"] .scene__blur {
  -webkit-mask-image: linear-gradient(180deg, transparent 60px, #000 calc(60px + var(--sh, 100vh) * .04));
  mask-image: linear-gradient(180deg, transparent 60px, #000 calc(60px + var(--sh, 100vh) * .04));
}
/* the picture's plain maroon top is scaled up out of view, so the carpet starts close to the groom */
.scene[data-scene="bride"] .scene__media > img {
  transform: scale(1.14);
  transform-origin: 50% 100%;
}
/* solid red over the carpet's top border (about 2% to 9% of the screen after scaling), then a quick fade before the blossoms */
.scene[data-scene="bride"]::after {
  top: 0;
  height: 15%;
  background: linear-gradient(180deg, rgba(74, 12, 20, 0) 0, var(--wine) 27%, var(--wine) 63%, rgba(74, 12, 20, .7) 75%, rgba(74, 12, 20, .35) 87%, rgba(74, 12, 20, 0) 100%);
}
/* blurs what shows through the fade so the carpet's edge stays soft */
.scene[data-scene="bride"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15%;
  z-index: 1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 27%, #000 55%, transparent 72%);
  mask-image: linear-gradient(180deg, transparent 0, #000 27%, #000 55%, transparent 72%);
}
.seam-flowers {
  position: absolute;
  top: calc(var(--sh, 100vh) * -.025);
  left: calc(50% - var(--fw) / 2);
  width: var(--fw);
  height: calc(var(--sh, 100vh) * .2);
  z-index: 2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20%);
  mask-image: linear-gradient(180deg, transparent 0, #000 20%);
}
.seam-flowers img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 0;
  animation: sway 7s ease-in-out infinite alternate;
}
@media (min-aspect-ratio: 10/16) {
  .seam-flowers img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
}
@keyframes sway {
  from { transform: scale(1.05) rotate(-1.2deg) translateX(-4px); }
  to   { transform: scale(1.05) rotate(1.2deg) translateX(4px); }
}

.scene__blur {
  position: absolute;
  inset: -60px;
  background: var(--img) center / cover no-repeat;
  filter: blur(34px) brightness(.52) saturate(1.25);
}
.frame {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--fw);
  left: calc(50% - var(--fw) / 2);
  overflow: hidden;
  box-shadow: 0 0 140px rgba(0, 0, 0, .65);
}
@media (min-aspect-ratio: 10/16) {
  .frame {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  }
}
.vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(10, 0, 2, .6) 100%);
}

.scene__media {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.scene__media > img,
.scene__media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene[data-scene="invite"] .invite-card {
  position: absolute;
  inset: 0;
}

/* glows on the royal stage */
.glow { position: absolute; pointer-events: none; mix-blend-mode: screen; }
.glow--chandelier {
  left: 20%; right: 20%; top: -4%; height: 36%;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 214, 140, .55), rgba(255, 190, 110, .12) 45%, transparent 70%);
  animation: flicker 4.5s ease-in-out infinite;
}
/* spotlight falling from the top onto the groom; the blur softens the cone's clipped edges */
.glow--groom { inset: 0; opacity: .65; filter: blur(calc(var(--u) * 2.2)); }
.glow--groom::before,
.glow--groom::after { content: ''; position: absolute; }
.glow--groom::before {
  inset: 0;
  clip-path: polygon(45% 0, 55% 0, 75% 95%, 25% 95%);
  background: linear-gradient(180deg,
    rgba(255, 220, 165, .1) 0,
    rgba(255, 215, 160, .07) 30%,
    rgba(255, 212, 155, .2) 66%,
    rgba(255, 210, 150, .34) 92%,
    rgba(255, 210, 150, 0) 96%);
}
.glow--groom::after {
  left: 18%; right: 18%; top: 89%; height: 10%;
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 215, 160, .5), rgba(255, 205, 145, .15) 55%, transparent 75%);
}

/* ============================ TYPOGRAPHY ============================ */
.copy {
  position: absolute;
  left: 11%;
  right: 11%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-variant-numeric: lining-nums;
}
.copy p { text-wrap: balance; }
.copy--light { color: var(--cream); text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.copy--ink { color: var(--ink); }
.rv { display: block; }

.gold-text {
  background: linear-gradient(100deg, #b8893b 0%, #f6e3a8 22%, #d9ae5c 42%, #fff3c9 52%, #c9973f 70%, #f1d68f 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  animation: shine 6s linear infinite;
}
.ink-text {
  background: linear-gradient(100deg, #5a0f18 0%, #9e2b37 30%, #5a0f18 55%, #a3343f 80%, #5a0f18 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}

.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: 1.25;
  padding: .06em .35em;
}
.write {
  --w: 140%;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--w) - 40%), transparent var(--w));
  mask-image: linear-gradient(90deg, #000 calc(var(--w) - 40%), transparent var(--w));
}

.label {
  font-family: var(--caps);
  font-size: calc(var(--u) * 3.1);
  letter-spacing: .38em;
  padding-left: .38em;
  text-transform: uppercase;
  color: var(--gold);
}
.copy--ink .label { color: #8a5a2b; }
.label--lg { font-size: calc(var(--u) * 7.2); letter-spacing: .3em; padding-left: .3em; font-weight: 500; }

.name { font-size: calc(var(--u) * 10.5); margin: calc(var(--u) * .6) 0; }
.title { font-size: calc(var(--u) * 13); }
.meta { font-size: calc(var(--u) * 4.4); letter-spacing: .04em; font-weight: 500; }
.meta--sm { font-size: calc(var(--u) * 3.8); font-style: italic; font-weight: 400; opacity: .9; }
.sep { color: var(--gold); padding: 0 .4em; }
.copy--ink .sep { color: #a0703a; }
.rel { font-style: italic; font-size: calc(var(--u) * 3.9); opacity: .85; }
.parent { font-family: var(--caps); font-size: calc(var(--u) * 4.7); letter-spacing: .1em; margin: calc(var(--u) * .5) 0; font-weight: 500; }
.caps-line { font-family: var(--caps); font-size: calc(var(--u) * 4.2); letter-spacing: .14em; }
.caps-line sup { font-size: .55em; }
.time { font-family: var(--caps); font-size: calc(var(--u) * 5.2); letter-spacing: .18em; color: var(--gold-hi); margin-top: calc(var(--u) * .6); }
.day { font-size: calc(var(--u) * 8.5); color: var(--cream); line-height: 1.1; }
.venue { font-size: calc(var(--u) * 8.4); }
.lead { font-size: calc(var(--u) * 4.4); font-style: italic; line-height: 1.4; max-width: 30ch; }
.amp { font-family: var(--script); font-size: calc(var(--u) * 7); color: var(--gold-hi); line-height: 1; }

.orn {
  width: calc(var(--u) * 46);
  height: calc(var(--u) * 4.6);
  color: var(--gold);
  margin: calc(var(--u) * 2.2) 0;
  overflow: visible;
}
.copy--ink .orn { color: #a0703a; }

/* ============================ SCENES ============================ */
/* 1 · invitation (inside the cream floral frame) */
.copy--invite { top: 25%; bottom: 17%; left: 18%; right: 18%; }
.copy--invite .arabic {
  font-family: var(--arabic);
  font-size: calc(var(--u) * 6.8);
  line-height: 1.6;
  padding: 0 .2em;
}
.copy--invite .bism { font-size: calc(var(--u) * 3.4); font-style: italic; letter-spacing: .03em; opacity: .9; margin-top: calc(var(--u) * .4); }
.copy--invite .orn { width: calc(var(--u) * 38); margin: calc(var(--u) * 2) 0 calc(var(--u) * .8); }
.names { display: flex; flex-direction: column; align-items: center; font-weight: 400; }
.names .script { font-size: calc(var(--u) * 9); }
.copy--ink .amp { color: #a0703a; }
.copy--invite .lead { font-size: calc(var(--u) * 4); margin-top: calc(var(--u) * 2.2); }

/* 2 · groom */
.copy--groom { top: 30%; height: 36%; }

/* 3 · bride */
/* kept in the clear cream part of the arch, below the blossoms and left of the bride */
.copy--bride { top: 42%; bottom: 30%; left: 12%; right: 24%; }
.copy--bride .name { font-size: calc(var(--u) * 8.4); margin: 0; }
.copy--bride .meta--sm { font-size: calc(var(--u) * 3.6); }
.copy--bride .orn { width: calc(var(--u) * 38); margin: calc(var(--u) * 1.3) 0; }
.glow--bride {
  left: 52%; right: 0; top: 58%; bottom: 0;
  background:
    radial-gradient(ellipse 45% 40% at 55% 45%, rgba(255, 225, 190, .35), transparent 70%),
    radial-gradient(ellipse 60% 8% at 55% 97%, rgba(255, 210, 160, .25), transparent 70%);
}

.map-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: .85em 1.7em;
  border: 1px solid rgba(230, 196, 122, .65);
  border-radius: 999px;
  font-family: var(--caps);
  font-size: calc(var(--u) * 2.7);
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-hi);
  background: rgba(24, 3, 7, .45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  text-shadow: none;
  transition: background .4s ease, color .4s ease, box-shadow .4s ease;
}
.map-btn { margin-top: calc(var(--u) * 3); }
.map-btn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 240, 200, .45), transparent);
  animation: btnSweep 3.6s ease-in-out infinite;
}
.map-btn:hover { background: rgba(230, 196, 122, .18); box-shadow: 0 0 24px rgba(230, 196, 122, .35); }

/* 4 · nikkah */
.copy--nikkah {
  top: 1%;
  bottom: 17%;
  left: 8%;
  right: 8%;
  justify-content: center;
  font-variant-numeric: lining-nums;
}
.shade { position: absolute; inset: 0; pointer-events: none; }
.shade--nikkah {
  background: linear-gradient(180deg, rgba(10, 2, 4, .28) 0%, rgba(10, 2, 4, .1) 42%, rgba(10, 2, 4, .16) 100%);
}
.copy--nikkah .caps-line { font-size: calc(var(--u) * 4.2 + 6px); }
.copy--nikkah .day { font-size: calc(var(--u) * 6.4); }
.copy--nikkah .venue { font-size: calc(var(--u) * 6.2); }
.copy--nikkah .orn { margin: calc(var(--u) * 1.2) 0 calc(var(--u) * .5); }
.copy--nikkah .map-btn { margin-top: calc(var(--u) * 1.4); }
.copy--nikkah .time { font-size: calc(var(--u) * 4.4); margin-top: calc(var(--u) * .5); }
.nikkah-dinner { margin-top: calc(var(--u) * 4.5 + 52px); }
.nikkah-dinner .label {
  margin-bottom: calc(var(--u) * 1.6);
  opacity: 1;
  color: var(--gold-hi);
}
.nikkah-dinner .dinner-title { font-size: calc(var(--u) * 6.4); line-height: 1.15; margin-bottom: calc(var(--u) * 1.1); }
.nikkah-dinner .venue { font-size: calc(var(--u) * 6.2); margin-top: calc(var(--u) * 1.1); }
.nikkah-dinner .time { font-size: calc(var(--u) * 4.4); margin-top: calc(var(--u) * 1.2); }
.nikkah-dinner .gold-text,
.nikkah-dinner .time {
  opacity: 1;
  background: none;
  color: var(--gold-hi);
  -webkit-text-fill-color: var(--gold-hi);
  animation: none;
}
.nikkah-dinner .map-btn { opacity: 1; }

/* 5 · dinner */
.copy--dinner { top: 26%; bottom: 26%; left: 10%; right: 10%; font-variant-numeric: lining-nums; }
.copy--dinner .title { font-size: calc(var(--u) * 13); line-height: 1.05; }
.copy--dinner .time { margin-top: calc(var(--u) * .6); }
.copy--dinner .orn { margin: calc(var(--u) * 1.4) 0 calc(var(--u) * .4); }
.copy--dinner .venue { font-size: calc(var(--u) * 7.4); }
.copy--dinner .map-btn { margin-top: calc(var(--u) * 2.2); }
.reel { position: absolute; inset: 0; overflow: hidden; isolation: isolate; background: #1a0508; }
.reel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: transform, opacity;
}
.shade--dinner {
  background:
    radial-gradient(ellipse 80% 38% at 50% 50%, rgba(18, 3, 6, .72) 0%, rgba(18, 3, 6, .5) 60%, rgba(18, 3, 6, 0) 100%),
    linear-gradient(180deg, rgba(18, 3, 6, .5) 0%, rgba(18, 3, 6, .2) 30%, rgba(18, 3, 6, .2) 70%, rgba(18, 3, 6, .6) 100%);
}
/* ============================ FX & UI ============================ */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.bridge {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 42%, #fff 0%, #fffaf0 46%, #f6e2b0 100%);
}
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 20;
  background: rgba(230, 196, 122, .12);
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 10px rgba(246, 227, 168, .7);
}

.controls {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .8s ease, transform .8s ease;
}
.controls.is-visible { opacity: 1; transform: none; }
.ctrl {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(230, 196, 122, .5);
  background: rgba(28, 4, 8, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--gold-hi);
  transition: background .3s ease, transform .3s ease;
}
.ctrl[hidden] { display: none; }
.ctrl:hover { background: rgba(230, 196, 122, .18); transform: scale(1.06); }
.ctrl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ctrl.is-muted { opacity: .55; }

.hint {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 20;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--caps);
  font-size: 12px;
  letter-spacing: .45em;
  padding-left: .45em;
  color: var(--gold-hi);
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}
.hint.is-visible { opacity: 1; animation: hintBounce 2.2s ease-in-out infinite; }
.hint i {
  display: block;
  width: 1.5px;
  height: 44px;
  background: linear-gradient(180deg, transparent, var(--gold-hi));
  box-shadow: 0 0 8px rgba(246, 227, 168, .6);
  animation: drip 2s ease-in-out infinite;
  transform-origin: top;
}

/* ============================ KEYFRAMES ============================ */
@keyframes shine { to { background-position: -250% 0; } }
@keyframes breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes introIn { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }
@keyframes ripple {
  0% { transform: scale(.72); opacity: 0; }
  20% { opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes flicker {
  0%, 100% { opacity: .85; }
  30% { opacity: 1; }
  55% { opacity: .7; }
  75% { opacity: .95; }
}
@keyframes btnSweep { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes hintBounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
@keyframes drip {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(20px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .glow--chandelier { animation: none; }
  .seam-flowers img { animation: none; }
}
