:root {
  --wed5-bg: #090909;
  --wed5-bg-soft: #121212;
  --wed5-paper: #f5f1e8;
  --wed5-paper-shadow: rgba(0, 0, 0, 0.35);
  --wed5-text: #f6f2eb;
  --wed5-text-muted: rgba(246, 242, 235, 0.72);
  --wed5-text-dim: rgba(246, 242, 235, 0.5);
  --wed5-accent: #c7a86a;
  --wed5-accent-soft: rgba(199, 168, 106, 0.18);
  --wed5-border: rgba(255, 255, 255, 0.12);
  --wed5-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(199, 168, 106, 0.12), transparent 28%),
    linear-gradient(180deg, #050505 0%, #0b0b0b 42%, #090909 100%);
  color: var(--wed5-text);
}

html.wed5-scroll-unlocked,
body.wed5-scroll-unlocked {
  height: auto;
  max-height: none;
  overflow-y: auto;
}

body {
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

.wed5-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
}

.wed5-grain,
.wed5-dust,
.wed5-frame-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.wed5-grain {
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px),
    radial-gradient(circle at 75% 35%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px),
    radial-gradient(circle at 50% 70%, rgba(199, 168, 106, 0.12) 0 1px, transparent 1px);
  background-size: 7px 7px, 9px 9px, 11px 11px;
  mix-blend-mode: soft-light;
}

.wed5-frame-lines span {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.wed5-frame-lines span:nth-child(1),
.wed5-frame-lines span:nth-child(2) {
  display: none;
}

.wed5-frame-lines span:nth-child(3),
.wed5-frame-lines span:nth-child(4) {
  top: 2vh;
  bottom: 2vh;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.wed5-frame-lines span:nth-child(3) { left: 24px; }
.wed5-frame-lines span:nth-child(4) { right: 24px; }

.wed5-dust::before,
.wed5-dust::after {
  content: "";
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(199, 168, 106, 0.65) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.7px);
  background-size: 180px 180px, 240px 240px, 300px 300px;
  opacity: 0.18;
  animation: wed5DustFloat 24s linear infinite;
}

.wed5-dust::after {
  opacity: 0.12;
  transform: scale(1.08);
  animation-duration: 34s;
  animation-direction: reverse;
}

.wed5-scene {
  display: none;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 1;
}

.wed5-scene.is-active {
  display: flex;
}


.wed5-scene-envelope {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(199, 168, 106, 0.1), transparent 34%),
    linear-gradient(180deg, #0a0a0a 0%, #070707 100%);
}

.wed5-scene-envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}

.wed5-scene-interstitial,
.wed5-scene-hero {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wed5-scene-interstitial {
  padding: 0;
}

.wed5-scene-details {
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* Match first-session outer gap around the ~96vh / max 980px card */
  padding: max(8px, calc((100dvh - min(96vh, 980px)) / 2)) 14px;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.wed5-scene-details > .wed5-details-spread {
  flex: 0 0 auto;
  width: min(920px, 100%);
  max-width: 100%;
}

.wed5-overline,
.wed5-open-note,
.wed5-sheet-kicker,
.wed5-name-label,
.wed5-mini-label,
.wed5-person-role,
.wed5-blessings-label,
.wed5-monogram-subtitle,
.wed5-section-label {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--wed5-text-dim);
}

.wed5-envelope-names {
  position: absolute;
  left: 50%;
  top: 11%;
  z-index: 2;
  margin: 0;
  max-width: min(86%, 560px);
  transform: translateX(-50%);
  text-align: center;
  font-family: "Parisienne", cursive;
  font-weight: 400;
  font-size: clamp(1.65rem, 5.6vw, 2.7rem);
  line-height: 1.15;
  color: #d8b56a;
  text-shadow:
    0 1px 0 rgba(255, 236, 193, 0.25),
    0 10px 28px rgba(0, 0, 0, 0.45);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.wed5-envelope {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: #0c0c0c;
}

.wed5-flap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
  transition: transform 1.85s cubic-bezier(0.22, 0.7, 0.18, 1);
  background: #111;
}

.wed5-flap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05), transparent 42%),
    linear-gradient(160deg, #171717 0%, #101010 48%, #0c0c0c 100%);
  box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.35);
}

.wed5-flap-left {
  z-index: 2;
  clip-path: polygon(
    0% 0%,
    16% 18%,
    26% 32%,
    34% 42%,
    40% 47%,
    44.5% 49%,
    48.6% 50%,
    44.5% 51%,
    40% 53%,
    34% 58%,
    26% 68%,
    16% 82%,
    0% 100%
  );
}

.wed5-flap-right {
  z-index: 2;
  clip-path: polygon(
    100% 0%,
    100% 100%,
    84% 82%,
    74% 68%,
    66% 58%,
    60% 53%,
    55.5% 51%,
    51.4% 50%,
    55.5% 49%,
    60% 47%,
    66% 42%,
    74% 32%,
    84% 18%
  );
}

.wed5-flap-top {
  z-index: 5;
  clip-path: polygon(
    0% 0%,
    100% 0%,
    84% 16%,
    70% 28%,
    60% 36%,
    54% 42%,
    51.5% 46%,
    50% 48.4%,
    48.5% 46%,
    46% 42%,
    40% 36%,
    30% 28%,
    16% 16%
  );
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.9))
    drop-shadow(0 3px 2px rgba(0, 0, 0, 0.8))
    drop-shadow(0 10px 8px rgba(0, 0, 0, 0.62))
    drop-shadow(-16px 22px 18px rgba(0, 0, 0, 0.5))
    drop-shadow(16px 22px 18px rgba(0, 0, 0, 0.5))
    drop-shadow(0 32px 36px rgba(0, 0, 0, 0.42));
}

.wed5-flap-top::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom right, transparent 46.5%, rgba(0, 0, 0, 0.72) 50%, transparent 53.5%),
    linear-gradient(to bottom left, transparent 46.5%, rgba(0, 0, 0, 0.72) 50%, transparent 53.5%),
    linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.28) 72%, rgba(0, 0, 0, 0.45) 100%);
  opacity: 0.95;
}

.wed5-flap-bottom {
  z-index: 4;
  clip-path: polygon(
    0% 100%,
    16% 84%,
    30% 72%,
    40% 64%,
    46% 58%,
    48.5% 54%,
    50% 51.6%,
    51.5% 54%,
    54% 58%,
    60% 64%,
    70% 72%,
    84% 84%,
    100% 100%
  );
  filter:
    drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.9))
    drop-shadow(0 -3px 2px rgba(0, 0, 0, 0.8))
    drop-shadow(0 -10px 8px rgba(0, 0, 0, 0.62))
    drop-shadow(-16px -22px 18px rgba(0, 0, 0, 0.5))
    drop-shadow(16px -22px 18px rgba(0, 0, 0, 0.5))
    drop-shadow(0 -32px 36px rgba(0, 0, 0, 0.42));
}

.wed5-flap-bottom::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top right, transparent 46.5%, rgba(0, 0, 0, 0.72) 50%, transparent 53.5%),
    linear-gradient(to top left, transparent 46.5%, rgba(0, 0, 0, 0.72) 50%, transparent 53.5%),
    linear-gradient(0deg, transparent 35%, rgba(0, 0, 0, 0.28) 72%, rgba(0, 0, 0, 0.45) 100%);
  opacity: 0.95;
}

.wed5-gold-seams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 7;
  pointer-events: none;
  overflow: visible;
  transition: opacity 0.25s ease;
}

.wed5-gold-seams path {
  fill: url(#wed5-gold-foil);
  opacity: 0.9;
  filter: drop-shadow(0 0 0.5px rgba(255, 236, 193, 0.4));
}

.wed5-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  width: clamp(124px, 36%, 176px);
  height: clamp(124px, 36%, 176px);
  border: 0;
  padding: 0;
  background: transparent;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.35s ease,
    filter 0.35s ease;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55));
  transform-origin: center center;
}

.wed5-seal:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.wed5-seal:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.97);
}

.wed5-seal:active:not(:disabled) .wed5-seal-img {
  filter:
    drop-shadow(0 0 2px rgba(255, 236, 180, 0.95))
    drop-shadow(0 0 6px rgba(232, 190, 100, 0.75))
    drop-shadow(0 0 10px rgba(199, 168, 106, 0.45));
}

.wed5-seal-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  transition: filter 0.28s ease;
}

.wed5-open-note {
  position: absolute;
  left: 50%;
  bottom: 7%;
  z-index: 9;
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
  color: #e0c07a;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-family: "Inter", sans-serif;
  transition: opacity 0.35s ease;
  text-shadow:
    0 0 6px rgba(255, 220, 140, 0.7),
    0 0 14px rgba(199, 168, 106, 0.55),
    0 0 26px rgba(199, 168, 106, 0.35);
  animation: wed5OpenNoteFloat 2.4s ease-in-out infinite;
}

.wed5-envelope.is-seal-glowing .wed5-seal,
.wed5-envelope.is-seal-glowing .wed5-seal:hover {
  animation: wed5SealZoom 1.1s ease-out forwards;
  pointer-events: none;
  transition: none;
  filter:
    drop-shadow(0 0 3px rgba(255, 236, 180, 0.95))
    drop-shadow(0 0 8px rgba(232, 190, 100, 0.8))
    drop-shadow(0 0 14px rgba(199, 168, 106, 0.5))
    drop-shadow(0 16px 24px rgba(0, 0, 0, 0.4));
}

.wed5-envelope.is-seal-glowing .wed5-seal-img {
  animation: wed5SealBorderGlow 1.1s ease-out forwards;
}

.wed5-envelope.is-seal-dropping .wed5-seal,
.wed5-envelope.is-seal-dropping .wed5-seal:hover,
.wed5-envelope.is-seal-glowing.is-seal-dropping .wed5-seal,
.wed5-envelope.is-seal-glowing.is-seal-dropping .wed5-seal:hover {
  animation: wed5SealFall 0.9s cubic-bezier(0.4, 0.05, 0.35, 1) forwards;
  pointer-events: none;
  transition: none;
}

.wed5-envelope.is-seal-dropping .wed5-open-note {
  opacity: 0;
}

.wed5-envelope.is-seal-dropping .wed5-envelope-names {
  opacity: 0.35;
}

.wed5-envelope.is-open .wed5-flap-top {
  transform: translateY(-112%);
}

.wed5-envelope.is-open .wed5-flap-right {
  transform: translateX(112%);
  transition-delay: 0.1s;
}

.wed5-envelope.is-open .wed5-flap-bottom {
  transform: translateY(112%);
  transition-delay: 0.16s;
}

.wed5-envelope.is-open .wed5-flap-left {
  transform: translateX(-112%);
  transition-delay: 0.08s;
}

.wed5-envelope.is-open .wed5-gold-seams {
  opacity: 0;
}

.wed5-envelope.is-open .wed5-seal {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.wed5-scene-interstitial {
  background: rgba(0, 0, 0, 0.98);
  overflow: hidden;
}

.wed5-interstitial-track {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100%;
}

.wed5-save-date {
  margin: 0;
  display: block;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: "Italiana", serif;
  font-size: clamp(7rem, 28vw, 18rem);
  transform: translateX(100vw);
  will-change: transform;
}

.wed5-scene-interstitial.is-animating .wed5-save-date {
  animation: wed5Sweep 2.2s linear forwards;
}

.wed5-hero-sheet,
.wed5-details-spread {
  position: relative;
  width: min(920px, 100%);
  border: 1px solid rgba(199, 168, 106, 0.18);
  isolation: isolate;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-color: #121212;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(199, 168, 106, 0.06), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.4), transparent 50%),
    linear-gradient(165deg, #181818 0%, #101010 48%, #0b0b0b 100%);
  box-shadow:
    var(--wed5-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 80px rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 0, calc(100% - 58px) 0, 100% 58px, 100% 100%, 0 100%);
}

.wed5-hero-sheet::before,
.wed5-details-spread::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 58px;
  height: 58px;
  background:
    linear-gradient(
      225deg,
      transparent 49.5%,
      rgba(0, 0, 0, 0.55) 50%,
      #1c1c1c 50.5%,
      #2a2a2a 72%,
      #1f1f1f 100%
    );
  box-shadow:
    -6px 8px 14px rgba(0, 0, 0, 0.45),
    inset 1px -1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.wed5-hero-sheet::after,
.wed5-details-spread::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
  mix-blend-mode: soft-light;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='rough'%3E%3CfeTurbulence type='turbulence' baseFrequency='1.35' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23rough)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.055) 0 1px,
      transparent 1px 5px
    ),
    repeating-linear-gradient(
      28deg,
      rgba(0, 0, 0, 0.2) 0 1px,
      transparent 1px 6px
    );
  background-size: 95px 95px, auto, auto;
}

.wed5-details-spread {
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(199, 168, 106, 0.06), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.58), transparent 58%),
    radial-gradient(ellipse at 22% 88%, rgba(199, 168, 106, 0.07), transparent 32%),
    radial-gradient(ellipse at 78% 92%, rgba(255, 255, 255, 0.03), transparent 28%),
    linear-gradient(180deg, #181818 0%, #101010 38%, #0c0c0c 68%, #080808 100%);
  clip-path: polygon(
    0 0,
    calc(100% - 58px) 0,
    100% 58px,
    100% 100%,
    58px 100%,
    0 calc(100% - 58px)
  );
}

.wed5-details-spread::after {
  opacity: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='rough'%3E%3CfeTurbulence type='turbulence' baseFrequency='1.35' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23rough)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='rough2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' seed='23' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23rough2)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.06) 0 1px,
      transparent 1px 5px
    ),
    repeating-linear-gradient(
      28deg,
      rgba(0, 0, 0, 0.24) 0 1px,
      transparent 1px 6px
    );
  background-size: 95px 95px, 140px 140px, auto, auto;
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.7) 40%,
    rgba(0, 0, 0, 0.92) 72%,
    #000 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.7) 40%,
    rgba(0, 0, 0, 0.92) 72%,
    #000 100%
  );
}

.wed5-scene-hero {
  position: relative;
  padding: 4px 10px;
}

.wed5-mute-btn {
  -webkit-appearance: none;
  appearance: none;
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(199, 168, 106, 0.45);
  font-size: 1rem;
  color: var(--wed5-text);
  background: rgba(8, 8, 8, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.wed5-mute-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wed5-hero-sheet {
  min-height: 850px;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: 1fr;
  padding: clamp(10px, 2vw, 18px) clamp(16px, 3.5vw, 32px);
  overflow: hidden;
}

.wed5-continue-btn,
.wed5-map-btn,
.wed5-rsvp-phone {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(199, 168, 106, 0.45);
  background: rgba(255, 255, 255, 0.02);
  color: var(--wed5-text);
  text-decoration: none;
  cursor: pointer;
}

.wed5-hero-center {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: visible;
}

.wed5-monogram-block {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  overflow: visible;
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.wed5-hero-footer {
  position: relative;
  left: auto;
  top: auto;
  z-index: 5;
  display: flex;
  justify-content: center;
  width: auto;
  max-width: calc(100% - 24px);
  margin: 4px 0 0;
  transform: none;
  pointer-events: auto;
  flex: 0 0 auto;
}

.wed5-hero-footer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.wed5-monogram-block.is-faded {
  opacity: 0;
  transform: translateY(-20px) scale(0.96);
  pointer-events: none;
}

.wed5-monogram-caption {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(0.62rem, 2.2vw, 0.78rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(232, 210, 160, 0.72);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.wed5-monogram-block.is-butterfly-in .wed5-monogram-caption {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.32s;
}

.wed5-monogram-stage {
  position: relative;
  width: min(82vw, 360px);
  aspect-ratio: 0.88;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.wed5-monogram-butterflies {
  position: relative;
  z-index: 2;
  width: 80%;
  height: auto;
  max-height: 80%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transform: scale(0.94);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  transition:
    opacity 1.15s ease,
    transform 1.15s ease;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.wed5-monogram-block.is-butterfly-in .wed5-monogram-butterflies {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.12s;
}

.wed5-monogram-letter {
  position: absolute;
  z-index: 3;
  margin: 0;
  font-family: "Parisienne", cursive;
  font-size: clamp(3.6rem, 13vw, 5.8rem);
  line-height: 1;
  color: #e2c379;
  text-shadow:
    0 0 10px rgba(232, 198, 120, 0.55),
    0 0 24px rgba(199, 168, 106, 0.35),
    0 10px 26px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 0.95s ease,
    transform 0.95s ease;
  pointer-events: none;
}

.wed5-monogram-letter-groom {
  top: 26%;
  left: 22%;
}

.wed5-monogram-letter-bride {
  right: 22%;
  bottom: 26%;
}

.wed5-monogram-block.is-letters-in .wed5-monogram-letter-groom {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.05s;
}

.wed5-monogram-block.is-letters-in .wed5-monogram-letter-bride {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.28s;
}

.wed5-monogram-divider {
  display: block;
  width: min(62vw, 220px);
  height: auto;
  margin-top: 28px;
  opacity: 0;
  transform: scaleX(0.86);
  transition:
    opacity 0.95s ease,
    transform 0.95s ease;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(199, 168, 106, 0.22));
}

.wed5-monogram-block.is-butterfly-in .wed5-monogram-divider {
  opacity: 0.9;
  transform: scaleX(1);
  transition-delay: 0.22s;
}

.wed5-names-block {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: stretch;
  justify-items: center;
  gap: 14px;
  padding: 8% 2% 14%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
}

.wed5-names-block.is-visible {
  opacity: 1;
}

.wed5-names-title,
.wed5-names-subtitle {
  margin: 0;
  max-width: 100%;
  width: 100%;
  text-align: center;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  filter: blur(2px);
  transition:
    opacity 0.35s ease,
    clip-path 1.05s cubic-bezier(0.22, 0.7, 0.2, 1),
    filter 0.9s ease;
}

.wed5-names-title {
  font-family: "Italiana", serif;
  font-size: clamp(1.15rem, 3.8vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f6f2eb;
  white-space: nowrap;
  overflow: visible;
  padding-inline: 2px;
}

.wed5-names-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.98rem, 2.8vw, 1.28rem);
  line-height: 1.45;
  letter-spacing: 0.08em;
  color: var(--wed5-text-muted);
}

.wed5-names-block.is-title-in .wed5-names-title,
.wed5-names-block.is-subtitle-in .wed5-names-subtitle {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  filter: blur(0);
}

.wed5-names-main-stage {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin-top: clamp(2px, 0.8vh, 10px);
  transform: none;
  padding-bottom: 8px;
}

.wed5-names-ring-stage {
  position: relative;
  width: min(72vw, 410px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-top: 4px;
  flex: 0 0 auto;
}

.wed5-names-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 1.15s ease,
    transform 1.15s ease;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.wed5-names-block.is-ring-in .wed5-names-ring {
  opacity: 1;
  transform: scale(1);
}

.wed5-names-date-wrap {
  position: relative;
  left: auto;
  top: auto;
  z-index: 2;
  width: min(56%, 250px);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: -18px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 1.05s ease,
    transform 1.05s ease;
}

.wed5-names-block.is-date-in .wed5-names-date-wrap {
  opacity: 1;
  transform: translateY(0);
}

.wed5-names-date-decor {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.wed5-names-date {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  z-index: 2;
  margin: 0;
  transform: translateY(-50%);
  width: 100%;
  padding-inline: 0.16em;
  box-sizing: border-box;
  text-align: center;
  font-family: "Cinzel", serif;
  font-weight: 500;
  font-size: clamp(0.78rem, 2.1vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  min-height: 1.2em;
}

.wed5-names-date.is-typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-left: 3px;
  vertical-align: -0.08em;
  background: rgba(255, 255, 255, 0.85);
  animation: wed5DateCaret 0.75s step-end infinite;
}

.wed5-names-date.is-typed::after {
  display: none;
}

@keyframes wed5DateCaret {
  50% { opacity: 0; }
}

.wed5-corner-line {
  position: absolute;
  z-index: 4;
  width: min(34%, 180px);
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0;
  transform: translate(-8px, -8px);
  transition:
    opacity 1.15s ease,
    transform 1.15s ease;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.wed5-corner-line-tl {
  top: 0;
  left: 0;
  object-position: left top;
}

.wed5-hero-sheet.is-names-in .wed5-corner-line {
  opacity: 1;
  transform: translate(0, 0);
}

.wed5-names-flower {
  position: absolute;
  left: -2%;
  bottom: -2%;
  z-index: 2;
  width: min(72%, 460px);
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left bottom;
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.wed5-names-couple {
  position: absolute;
  left: 70%;
  bottom: -6%;
  z-index: 1;
  width: min(70%, 400px);
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transform: translate(-50%, 22px) scale(0.97);
  transition:
    opacity 1.2s ease 0.12s,
    transform 1.2s ease 0.12s;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.wed5-hero-sheet.is-names-in .wed5-names-flower {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wed5-hero-sheet.is-names-in .wed5-names-couple {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.wed5-names-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  width: 68%;
  max-width: 280px;
  padding-bottom: 4%;
  opacity: 0;
  visibility: hidden;
}

.wed5-names-block.is-animated .wed5-names-copy {
  opacity: 1;
  visibility: visible;
}

.wed5-couple-name-line,
.wed5-ampersand {
  margin: 0;
  opacity: 1;
  transform: none;
  transition: transform 0.85s ease;
}

.wed5-couple-name-line {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.55rem, 4.8vw, 2.55rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2c379;
  line-height: 1.1;
}

.wed5-ampersand {
  font-family: "Parisienne", cursive;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: #ffffff;
  justify-self: center;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.wed5-fly-line {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 1em;
}

.wed5-fly-letter {
  display: inline-block;
  opacity: 0;
  transform: translate(var(--sx, 0), var(--sy, 0)) rotate(var(--rot, 0deg)) scale(0.72);
  filter: blur(3px);
  transition:
    transform 1.15s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 1.05s ease,
    filter 1.05s ease;
  transition-delay: var(--delay, 0ms);
  will-change: transform, opacity;
}

.wed5-names-copy.is-fly-active .wed5-fly-letter {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg) scale(1);
  filter: blur(0);
}

.wed5-names-block.is-animated #wed5-groom-name {
  transform: translateX(-28px);
}

.wed5-names-block.is-animated #wed5-bride-name {
  transform: translateX(28px);
}

body.wed5-bride-first .wed5-names-block.is-animated #wed5-bride-name {
  transform: translateX(-28px);
}

body.wed5-bride-first .wed5-names-block.is-animated #wed5-groom-name {
  transform: translateX(28px);
}

body.wed5-bride-first .wed5-monogram-letter-groom {
  top: auto;
  left: auto;
  right: 22%;
  bottom: 26%;
}

body.wed5-bride-first .wed5-monogram-letter-bride {
  right: auto;
  bottom: auto;
  top: 26%;
  left: 22%;
}

body.wed5-bride-first .wed5-monogram-block.is-letters-in .wed5-monogram-letter-bride {
  transition-delay: 0.05s;
}

body.wed5-bride-first .wed5-monogram-block.is-letters-in .wed5-monogram-letter-groom {
  transition-delay: 0.28s;
}

body.wed5-bride-first .wed5-person-col-bride {
  order: -1;
  text-align: right;
}

body.wed5-bride-first .wed5-person-col-groom {
  text-align: left;
}

.wed5-continue-btn,
.wed5-map-btn {
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.wed5-continue-btn {
  min-height: 36px;
  padding: 0 16px 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

.wed5-continue-label {
  line-height: 1;
}

.wed5-continue-arrows {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.wed5-continue-arrows span {
  display: block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--wed5-accent);
  border-top: 1.5px solid var(--wed5-accent);
  transform: rotate(45deg);
  opacity: 0.25;
  animation: wed5JoinArrows 1.2s ease-in-out infinite;
}

.wed5-continue-arrows span:nth-child(1) { animation-delay: 0s; }
.wed5-continue-arrows span:nth-child(2) { animation-delay: 0.15s; }
.wed5-continue-arrows span:nth-child(3) { animation-delay: 0.3s; }

@keyframes wed5JoinArrows {
  0%,
  100% {
    opacity: 0.2;
    transform: rotate(45deg) translate(-1px, 1px);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) translate(2px, -2px);
  }
}

.wed5-continue-btn:hover,
.wed5-map-btn:hover,
.wed5-rsvp-phone:hover {
  background: rgba(199, 168, 106, 0.08);
  border-color: rgba(199, 168, 106, 0.72);
  transform: translateY(-2px);
}

.wed5-continue-btn:active,
.wed5-map-btn:active,
.wed5-rsvp-phone:active {
  transform: translateY(0);
}

.wed5-pointer-trail {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  overflow: hidden;
}

.wed5-trail-particle {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  color: #f1e0b0;
  text-shadow:
    0 0 8px rgba(255, 241, 184, 0.9),
    0 0 16px rgba(199, 168, 106, 0.45);
  animation: wed5-trail-fade 820ms ease-out forwards;
  will-change: transform, opacity;
}

@keyframes wed5-trail-fade {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.72);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -115%) scale(1.22);
  }
}

.wed5-details-spread {
  overflow: hidden;
  padding: clamp(22px, 4vw, 40px);
  container-type: inline-size;
}

.wed5-details-spread > *:not(.wed5-page-turn-shadow):not(.wed5-page-turn-shine):not(.wed5-back-btn):not(.wed5-details-flower):not(.wed5-details-butterfly):not(.wed5-details-sideline):not(.wed5-details-fold-bl) {
  position: relative;
  z-index: 1;
}

.wed5-page-turn-shine {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 30%);
  transform-origin: left center;
}

.wed5-details-spread.is-turning .wed5-page-turn-shine {
  animation: wed5PageTurn 1s cubic-bezier(0.2, 0.82, 0.18, 1) both;
}

.wed5-page-turn-shadow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  width: 22px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent);
  opacity: 0.4;
  pointer-events: none;
}

.wed5-details-topline,
.wed5-details-bottomline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 168, 106, 0.72), transparent);
}

.wed5-details-bottomline {
  margin-top: clamp(28px, 6vw, 48px);
  margin-bottom: 4px;
}

.wed5-details-fold-bl {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 58px;
  height: 58px;
  background:
    linear-gradient(
      45deg,
      transparent 49.5%,
      rgba(0, 0, 0, 0.55) 50%,
      #1c1c1c 50.5%,
      #2a2a2a 72%,
      #1f1f1f 100%
    );
  box-shadow:
    6px -8px 14px rgba(0, 0, 0, 0.45),
    inset -1px 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.wed5-message-divider-img {
  display: block;
  width: min(68%, 260px);
  height: auto;
  margin: -2px auto;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.wed5-details-sideline {
  position: absolute;
  z-index: 3;
  width: 2px;
  /* Same length as the horizontal topline (inner content width) */
  height: calc((100cqi - (2 * clamp(22px, 4vw, 40px))) * 0.75);
  max-height: calc((100% - (2 * clamp(22px, 4vw, 40px))) * 0.75);
  pointer-events: none;
}

.wed5-details-sideline-tl {
  top: clamp(22px, 4vw, 40px);
  left: clamp(8px, 1.6vw, 16px);
  background: linear-gradient(
    180deg,
    rgba(199, 168, 106, 0.95) 0%,
    rgba(199, 168, 106, 0.75) 55%,
    rgba(199, 168, 106, 0.3) 85%,
    transparent 100%
  );
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top center;
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.wed5-details-spread:has(.wed5-details-topline.is-in) .wed5-details-sideline-tl,
.wed5-details-spread.is-static .wed5-details-sideline-tl {
  opacity: 1;
  transform: scaleY(1);
}

.wed5-details-sideline-br {
  right: clamp(8px, 1.6vw, 16px);
  bottom: clamp(22px, 4vw, 40px);
  background: linear-gradient(
    0deg,
    rgba(199, 168, 106, 0.95) 0%,
    rgba(199, 168, 106, 0.75) 55%,
    rgba(199, 168, 106, 0.3) 85%,
    transparent 100%
  );
}

.wed5-back-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(199, 168, 106, 0.45);
  background: rgba(8, 8, 8, 0.72);
  color: var(--wed5-text);
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.wed5-back-btn:hover {
  background: rgba(199, 168, 106, 0.1);
  border-color: rgba(199, 168, 106, 0.72);
  transform: translateY(-1px);
}

.wed5-back-btn:active {
  transform: translateY(0);
}

.wed5-details-flower {
  position: absolute;
  z-index: 4;
  width: min(46%, 280px);
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0;
  transition:
    opacity 1.1s ease,
    transform 1.1s ease;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.wed5-details-flower-tl {
  top: 0;
  left: 0;
  margin-top: calc(clamp(22px, 4vw, 40px) * -1);
  margin-left: calc(clamp(22px, 4vw, 40px) * -1);
  object-position: left top;
  transform: translate(-10px, -8px) scale(0.96);
}

.wed5-details-flower-br {
  right: clamp(18px, 4vw, 42px);
  bottom: 0;
  margin-right: calc(clamp(22px, 4vw, 40px) * -1);
  margin-bottom: calc(clamp(22px, 4vw, 40px) * -1);
  object-position: right bottom;
  transform: translate(10px, 8px) rotate(180deg) scale(0.96);
}

.wed5-details-butterfly {
  position: absolute;
  top: -1.85em;
  right: -1.35em;
  z-index: 2;
  width: clamp(52px, 11vw, 88px);
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0;
  transform: translate(10px, -10px) scale(0.94);
  transition:
    opacity 1.15s ease,
    transform 1.15s ease;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.wed5-details-spread.is-decor-in .wed5-details-flower-tl {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.wed5-details-spread.is-decor-in .wed5-details-flower-br {
  opacity: 1;
  transform: translate(0, 0) rotate(180deg) scale(1);
}

.wed5-details-spread.is-revealed .wed5-reveal-section.is-in .wed5-details-butterfly {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.wed5-reveal-section {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.wed5-details-spread.is-revealed .wed5-reveal-section.is-in {
  opacity: 1;
  transform: translateY(0);
}

.wed5-details-spread.is-static .wed5-reveal-section,
.wed5-details-spread.is-static .wed5-reveal-section.is-in,
.wed5-details-spread.is-static .wed5-details-flower,
.wed5-details-spread.is-static .wed5-details-butterfly,
.wed5-details-spread.is-static .wed5-details-sideline-tl,
.wed5-details-spread.is-static .wed5-blessings-name,
.wed5-details-spread.is-static .wed5-blessings-sep,
.wed5-details-spread.is-static .wed5-person-sketch,
.wed5-details-spread.is-static .wed5-person-role,
.wed5-details-spread.is-static .wed5-person-meta {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  animation: none !important;
}

.wed5-details-spread.is-static .wed5-details-flower-br {
  transform: rotate(180deg) !important;
}

.wed5-details-header {
  position: relative;
  z-index: 3;
  text-align: center;
  display: grid;
  gap: 10px;
  margin-top: clamp(36px, 8vw, 72px);
}

.wed5-details-title {
  margin: 0;
  font-family: "Italiana", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: grid;
  justify-items: center;
  gap: 0.08em;
  line-height: 1.05;
}

.wed5-title-line {
  display: block;
}

.wed5-title-wedding {
  position: relative;
  display: inline-block;
}

.wed5-couple-columns {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  overflow: visible;
}

.wed5-person-col {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.wed5-person-col:focus-visible {
  outline: 1px solid rgba(199, 168, 106, 0.7);
  outline-offset: 2px;
}

.wed5-person-col,
.wed5-message-block {
  padding: 24px;
}

.wed5-date-panel,
.wed5-message-block {
  border: 0;
  background: transparent;
}

.wed5-date-panel {
  padding: 0;
}

.wed5-message-block {
  padding: 8px 0 0;
}

.wed5-detail-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: clamp(20px, 4vw, 28px) clamp(16px, 3.5vw, 24px);
  box-sizing: border-box;
}

.wed5-detail-card-title {
  margin: 0 0 1.15rem;
  text-align: center;
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 3.4vw, 1.55rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wed5-accent);
}

.wed5-person-col {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 210px;
}

.wed5-person-col-bride {
  overflow: hidden;
  z-index: 2;
  text-align: right;
  isolation: isolate;
  background: transparent;
  border-color: transparent;
  padding: 0;
}

.wed5-person-col-clip {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.wed5-person-col > *:not(.wed5-person-sketch):not(.wed5-person-col-clip):not(.wed5-card-sparks),
.wed5-person-col-clip > *:not(.wed5-person-sketch):not(.wed5-card-sparks) {
  position: relative;
  z-index: 1;
}

.wed5-card-sparks {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.wed5-card-spark {
  position: absolute;
  top: var(--spark-y, 50%);
  left: var(--spark-x, 0%);
  width: var(--spark-size, 3px);
  height: var(--spark-size, 3px);
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #fff6d8 0%,
    #ffe08a 28%,
    #e8a84a 58%,
    #c4782a 78%,
    transparent 100%
  );
  box-shadow:
    0 0 3px 1px rgba(255, 220, 140, 0.9),
    0 0 7px 1px rgba(232, 160, 60, 0.55),
    0 0 12px 2px rgba(196, 110, 30, 0.28);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: wed5-fire-spark var(--spark-dur, 1.35s) cubic-bezier(0.22, 0.55, 0.35, 1) forwards;
  animation-delay: var(--spark-delay, 0ms);
  will-change: transform, opacity, left, top;
  pointer-events: none;
}

.wed5-card-spark.is-hot {
  background: radial-gradient(
    circle at 35% 30%,
    #ffffff 0%,
    #ffe9a8 22%,
    #ffb347 55%,
    #e07020 80%,
    transparent 100%
  );
  box-shadow:
    0 0 5px 1px rgba(255, 240, 180, 1),
    0 0 12px 3px rgba(255, 170, 60, 0.75),
    0 0 22px 5px rgba(210, 90, 20, 0.4);
}

.wed5-card-spark.is-ember {
  width: calc(var(--spark-size, 5px) * 0.72);
  height: calc(var(--spark-size, 5px) * 0.72);
  background: radial-gradient(
    circle at 40% 35%,
    #ffd27a 0%,
    #d9863a 45%,
    #9a4a18 78%,
    transparent 100%
  );
}

.wed5-card-spark.is-dying {
  animation: none !important;
  animation-delay: 0s !important;
  will-change: left, top, opacity, transform, filter;
}

@keyframes wed5-fire-spark {
  0% {
    opacity: 0;
    left: var(--spark-x, 0%);
    top: var(--spark-y, 50%);
    transform: translate(-50%, -50%) scale(0.35);
    filter: blur(0.2px);
  }
  8% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
  55% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.9);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    left: var(--spark-end-x, 100%);
    top: var(--spark-end-y, 35%);
    transform: translate(-50%, -50%) scale(0.25);
    filter: blur(1.2px);
  }
}

.wed5-person-sketch {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
  transform: scale(1.18);
  mix-blend-mode: screen;
  transition:
    opacity 1.05s ease,
    transform 1.05s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.wed5-couple-columns.is-sketch-in .wed5-person-sketch {
  opacity: 0.32;
  transform: scale(1);
}

.wed5-person-col-groom .wed5-person-sketch {
  right: -6%;
  bottom: -8%;
  width: min(68%, 180px);
  height: auto;
  object-fit: contain;
  object-position: right bottom;
}

.wed5-person-col-bride .wed5-person-sketch {
  left: -6%;
  right: auto;
  bottom: -58%;
  width: min(62%, 180px);
  height: auto;
  object-fit: contain;
  object-position: left bottom;
}

.wed5-person-role,
.wed5-person-meta {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.85s ease,
    transform 0.85s ease;
}

.wed5-couple-columns.is-meta-in .wed5-person-role,
.wed5-couple-columns.is-meta-in .wed5-person-meta {
  opacity: 1;
  transform: translateY(0);
}

/* Details scroll hint (default under couple cards) */
.wed5-details-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 1.15rem auto 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e2c379;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
  transform: translateY(6px);
}

.wed5-details-scroll-hint.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wed5-details-scroll-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
}

.wed5-details-scroll-hint-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
}

.wed5-details-scroll-hint-chevrons span {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #e2c379;
  border-bottom: 2px solid #e2c379;
  transform: rotate(45deg);
  opacity: 0.45;
  animation: wed5DetailsScrollBounce 1.2s ease-in-out infinite;
}

.wed5-details-scroll-hint-chevrons span:nth-child(2) {
  animation-delay: 0.15s;
}

.wed5-details-scroll-hint-label {
  margin: 0;
  font-family: "Nunito", "Inter", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e2c379;
}

@keyframes wed5DetailsScrollBounce {
  0%, 100% { opacity: 0.35; transform: rotate(45deg) translateY(-2px); }
  50% { opacity: 1; transform: rotate(45deg) translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .wed5-details-scroll-hint-chevrons span {
    animation: none;
    opacity: 0.9;
  }
}

.wed5-person-name {
  margin: 12px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 1.15em;
}

.wed5-person-name.is-typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin-left: 3px;
  vertical-align: -0.08em;
  background: rgba(246, 242, 235, 0.75);
  animation: wed5DateCaret 0.75s step-end infinite;
}

.wed5-person-prefix,
.wed5-person-parents,
.wed5-message-copy,
.wed5-blessings-text,
.wed5-meta-value {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
}

.wed5-person-prefix {
  color: var(--wed5-text-muted);
  font-size: 0.96rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.wed5-person-parents {
  margin-top: 10px;
  font-size: 1.12rem;
  line-height: 1.45;
  display: grid;
  gap: 2px;
}

.wed5-parent-line {
  display: block;
}

.wed5-date-panel {
  margin-top: 24px;
  margin-bottom: 8px;
  padding: 8px 0 28px;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.wed5-date-rings {
  width: min(28%, 110px);
  height: auto;
  display: block;
  object-fit: contain;
  margin-top: -12px;
  margin-bottom: 6px;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  mix-blend-mode: screen;
  opacity: 0.92;
}

.wed5-calendar-month {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  text-transform: uppercase;
  color: var(--wed5-text);
}

.wed5-calendar {
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px 8px;
  align-items: start;
}

.wed5-calendar > .wed5-calendar-dayname {
  text-align: center;
  margin-bottom: 4px;
}

.wed5-calendar-day {
  position: relative;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0;
}

.wed5-calendar-dayname {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(246, 242, 235, 0.72);
}

.wed5-calendar-number-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
}

.wed5-calendar-number {
  position: relative;
  z-index: 1;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1;
  color: var(--wed5-text);
}

.wed5-calendar-heart {
  position: absolute;
  inset: -18%;
  z-index: 0;
  color: var(--wed5-accent);
  pointer-events: none;
}

.wed5-calendar-heart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wed5-calendar-stem {
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  width: 0;
  height: clamp(36px, 7vw, 56px);
  border-left: 1.5px dotted rgba(199, 168, 106, 0.85);
  transform: translateX(-50%);
  pointer-events: none;
}

.wed5-calendar-day.is-target {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.wed5-calendar-day.is-target .wed5-calendar-number,
.wed5-calendar-day.is-marked .wed5-calendar-number {
  color: #fff;
}

.wed5-calendar.is-multi-week {
  row-gap: 18px;
}

.wed5-calendar-day.is-marked .wed5-calendar-heart {
  opacity: 0.88;
}

.wed5-timeline {
  margin-top: 42px;
  width: 100%;
}

.wed5-timeline-wrap {
  position: relative;
  padding: 4px 0 0;
}

.wed5-venue-rsvp {
  margin-top: 34px;
  display: grid;
  gap: 0;
}

.wed5-venue-block {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.wed5-venue-block .wed5-detail-card-title {
  margin-bottom: 0.15rem;
}

.wed5-venue-decor {
  display: block;
  width: min(48%, 168px);
  height: auto;
  margin: 2px auto 4px;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.wed5-venue-block .wed5-meta-value-address {
  max-width: 34ch;
  margin: 0 auto;
}

.wed5-venue-rsvp-divider {
  width: 100%;
  height: 1px;
  margin: 28px 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(199, 168, 106, 0.15) 12%,
    rgba(199, 168, 106, 0.75) 50%,
    rgba(199, 168, 106, 0.15) 88%,
    transparent 100%
  );
}

.wed5-rsvp-block {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.wed5-rsvp-block .wed5-detail-card-title {
  margin-bottom: 0;
}

.wed5-rsvp-note {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  letter-spacing: 0.08em;
  color: var(--wed5-text-dim);
}

.wed5-rsvp-contacts {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 22rem;
  justify-items: stretch;
  margin-top: 4px;
}

.wed5-rsvp-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: "Cinzel", serif;
  font-size: clamp(0.86rem, 2.4vw, 0.98rem);
  letter-spacing: 0.12em;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.wed5-rsvp-phone.is-hidden {
  display: none;
}

body.wed5-no-rsvp .wed5-rsvp-block,
body.wed5-no-rsvp .wed5-venue-rsvp-divider {
  display: none;
}

body.wed5-no-blessings .wed5-blessings-label,
body.wed5-no-blessings .wed5-blessings-text {
  display: none;
}

.wed5-timeline-spine {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  bottom: 1.4rem;
  width: 48px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.wed5-timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(199, 168, 106, 0.85) 12%,
    rgba(199, 168, 106, 0.55) 50%,
    rgba(199, 168, 106, 0.85) 88%,
    transparent
  );
}

.wed5-timeline-flower {
  position: absolute;
  left: 50%;
  top: 0;
  width: 40px;
  height: auto;
  transform: translate(-50%, 0);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.08s linear;
  will-change: transform;
}

.wed5-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.wed5-timeline-item {
  position: relative;
  width: 50%;
  padding: 0 1.1rem 2rem;
  box-sizing: border-box;
  z-index: 1;
}

.wed5-timeline-item.is-hidden {
  display: none;
}

.wed5-timeline-left {
  margin-right: auto;
  padding-right: 2.35rem;
  text-align: right;
}

.wed5-timeline-right {
  margin-left: auto;
  padding-left: 2.35rem;
  text-align: left;
}

.wed5-timeline-copy {
  display: grid;
  gap: 6px;
}

.wed5-timeline-title {
  margin: 0;
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wed5-text);
}

.wed5-timeline-when {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--wed5-accent);
  white-space: nowrap;
}

.wed5-meta-value {
  font-size: 1.34rem;
  line-height: 1.55;
}

.wed5-meta-value-address {
  max-width: 34ch;
}

.wed5-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.wed5-message-block {
  margin-top: 28px;
  display: grid;
  gap: 10px;
  text-align: center;
  padding-bottom: clamp(28px, 6vw, 52px);
}

.wed5-message-copy {
  font-size: 1.22rem;
  line-height: 1.75;
  max-width: 42ch;
  margin-inline: auto;
}

.wed5-blessings-text {
  font-family: "Cinzel", serif;
  font-size: clamp(0.95rem, 2.6vw, 1.22rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--wed5-accent);
}

.wed5-blessings-name,
.wed5-blessings-sep {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.7em) scale(0.92);
  filter: blur(5px);
}

.wed5-blessings-name {
  margin-inline: 0.15em;
}

.wed5-blessings-sep {
  margin-inline: 0.28em;
  letter-spacing: 0.08em;
}

.wed5-blessings-text.is-names-in .wed5-blessings-name,
.wed5-blessings-text.is-names-in .wed5-blessings-sep {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 0.85s cubic-bezier(0.22, 0.7, 0.2, 1),
    transform 0.85s cubic-bezier(0.22, 0.7, 0.2, 1),
    filter 0.85s ease;
  transition-delay: calc(0.18s + (var(--i, 0) * 0.2s));
}

.wed5-blessings-text.is-names-in .wed5-blessings-sep {
  transition-delay: calc(0.28s + (var(--i, 0) * 0.2s));
}

@keyframes wed5DustFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(0.001deg);
  }
  50% {
    transform: translate3d(-2%, -3%, 0) rotate(0.001deg);
  }
  100% {
    transform: translate3d(2%, -6%, 0) rotate(0.001deg);
  }
}

@keyframes wed5SealBorderGlow {
  0% {
    filter:
      drop-shadow(0 0 1px rgba(255, 236, 180, 0.5))
      drop-shadow(0 0 3px rgba(199, 168, 106, 0.3));
  }
  45% {
    filter:
      drop-shadow(0 0 3px rgba(255, 244, 200, 1))
      drop-shadow(0 0 7px rgba(232, 190, 100, 0.9))
      drop-shadow(0 0 12px rgba(199, 168, 106, 0.55));
  }
  100% {
    filter:
      drop-shadow(0 0 2px rgba(255, 236, 180, 0.9))
      drop-shadow(0 0 6px rgba(232, 190, 100, 0.75))
      drop-shadow(0 0 10px rgba(199, 168, 106, 0.4));
  }
}

@keyframes wed5SealZoom {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.14) rotate(0deg);
  }
}

@keyframes wed5SealFall {
  0% {
    transform: translate(-50%, -50%) scale(1.14) rotate(0deg);
    opacity: 1;
  }

  12% {
    transform: translate(-50%, -56%) scale(1.16) rotate(-6deg);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, calc(-50% + 62vh)) scale(0.92) rotate(16deg);
    opacity: 0;
  }
}

@keyframes wed5OpenNoteFloat {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -7px);
  }
}

@keyframes wed5Sweep {
  0% {
    transform: translateX(100vw);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(-100% - 10vw));
    opacity: 1;
  }
}

@keyframes wed5PageTurn {
  0% {
    opacity: 0.18;
    transform: perspective(1400px) rotateY(-92deg);
  }
  35% {
    opacity: 0.65;
  }
  100% {
    opacity: 0;
    transform: perspective(1400px) rotateY(0deg);
  }
}

/* Tablet + desktop: fixed responsive gaps; scroll if content is taller. Mobile unchanged. */
@media (min-width: 721px) {
  .wed5-hero-sheet {
    padding: clamp(12px, 2vw, 20px) clamp(24px, 3vw, 40px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .wed5-hero-center {
    place-items: start center;
    width: 100%;
    min-height: 100%;
  }

  .wed5-hero-footer {
    position: relative;
    left: auto;
    top: auto;
    z-index: 5;
    width: auto;
    max-width: none;
    transform: none;
    margin-top: 4px;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .wed5-monogram-block {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: 100%;
  }

  .wed5-monogram-block.is-faded {
    transform: translate(-50%, calc(-50% - 20px)) scale(0.96);
  }

  .wed5-names-block {
    --wed5-names-gap: clamp(20px, 2.4vw, 32px);
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--wed5-names-gap);
    padding: clamp(16px, 2vw, 28px) 4% clamp(110px, 16vh, 160px);
    box-sizing: border-box;
  }

  .wed5-names-title,
  .wed5-names-subtitle {
    flex: 0 0 auto;
  }

  .wed5-names-main-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: clamp(0px, 0.5vh, 8px);
    transform: none;
    padding-top: 0;
  }

  .wed5-names-ring-stage {
    width: min(42vw, 360px);
    margin-top: 0;
    flex: 0 0 auto;
  }

  .wed5-names-date-wrap {
    position: relative;
    left: auto;
    top: auto;
    z-index: 2;
    width: min(38%, 260px);
    margin: -22px 0 0;
    transform: translateY(16px);
  }

  .wed5-names-block.is-date-in .wed5-names-date-wrap {
    transform: translateY(0);
  }

  .wed5-names-flower {
    left: -1%;
    bottom: 0;
    width: min(46%, 380px);
  }

  .wed5-names-couple {
    left: auto;
    right: -1%;
    bottom: -2%;
    width: min(38%, 300px);
    transform: translateY(22px) scale(0.97);
  }

  .wed5-hero-sheet.is-names-in .wed5-names-couple {
    transform: translateY(0) scale(1);
  }

  .wed5-couple-name-line {
    font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  }
}

@media (min-width: 1100px) {
  .wed5-names-block {
    --wed5-names-gap: clamp(24px, 2.2vw, 36px);
    padding: clamp(20px, 2.4vw, 36px) 5% clamp(120px, 16vh, 180px);
  }

  .wed5-names-ring-stage {
    width: min(34vw, 380px);
  }

  .wed5-names-date-wrap {
    width: min(32%, 280px);
  }

  .wed5-names-flower {
    width: min(42%, 400px);
  }

  .wed5-names-couple {
    width: min(34%, 320px);
    right: 0;
  }
}

@media (max-width: 720px) {
  .wed5-scene-hero {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 4px 8px 6px;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .wed5-scene-details {
    padding: max(6px, calc((100dvh - min(96vh, 980px)) / 2)) 10px;
  }

  .wed5-details-flower {
    width: min(52%, 210px);
  }

  .wed5-details-flower-tl {
    top: 0;
    left: 0;
  }

  .wed5-details-flower-br {
    right: clamp(14px, 5vw, 28px);
    bottom: 0;
  }

  .wed5-details-butterfly {
    width: clamp(44px, 14vw, 72px);
    top: -1.65em;
    right: -1.15em;
  }

  /* Invite card: screen height, with 850px minimum. */
  .wed5-hero-sheet {
    width: 100%;
    min-height: 850px;
    height: 100vh;
    height: 100dvh;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
  }

  .wed5-details-spread {
    width: 100%;
  }

  .wed5-names-flower {
    left: -2%;
    bottom: 0;
    width: min(72%, 300px);
  }

  .wed5-names-couple {
    left: 70%;
    bottom: 0;
    width: min(64%, 280px);
  }

  .wed5-couple-columns {
    grid-template-columns: 1fr;
  }

  .wed5-timeline-wrap {
    padding: 6px 0 2px;
  }

  .wed5-timeline-item {
    width: 50%;
    padding-top: 0;
    padding-bottom: 1.55rem;
  }

  .wed5-timeline-left {
    margin-right: auto;
    margin-left: 0;
    padding-left: 0.25rem;
    padding-right: 1.35rem;
    text-align: right;
  }

  .wed5-timeline-right {
    margin-left: auto;
    margin-right: 0;
    padding-right: 0.25rem;
    padding-left: 1.35rem;
    text-align: left;
  }

  .wed5-timeline-spine {
    left: 50%;
    transform: translateX(-50%);
    top: 0.35rem;
    bottom: 1rem;
    width: 36px;
  }

  .wed5-timeline-flower {
    width: 32px;
  }

  .wed5-timeline-title {
    font-size: clamp(0.95rem, 4.2vw, 1.15rem);
    letter-spacing: 0.08em;
    line-height: 1.2;
  }

  .wed5-timeline-when {
    font-size: clamp(0.62rem, 2.5vw, 0.76rem);
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
  }

  .wed5-venue-decor {
    width: min(52%, 132px);
  }

  .wed5-date-panel {
    margin-top: 18px;
    padding-top: 6px;
  }

  .wed5-date-rings {
    width: min(32%, 96px);
  }

  .wed5-calendar {
    gap: 4px 4px;
    max-width: 100%;
  }

  .wed5-calendar-month {
    letter-spacing: 0.42em;
    text-indent: 0.42em;
  }

  .wed5-calendar-dayname {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wed5-trail-particle,
  .wed5-card-spark {
    animation: none !important;
    opacity: 0 !important;
  }

  .wed5-dust::before,
  .wed5-dust::after,
  .wed5-save-date,
  .wed5-open-note,
  .wed5-flap,
  .wed5-seal,
  .wed5-monogram-block,
  .wed5-monogram-butterflies,
  .wed5-monogram-letter,
  .wed5-names-flower,
  .wed5-names-couple,
  .wed5-corner-line,
  .wed5-names-ring,
  .wed5-names-title,
  .wed5-names-subtitle,
  .wed5-names-date-wrap,
  .wed5-couple-name-line,
  .wed5-ampersand,
  .wed5-fly-letter,
  .wed5-names-block,
  .wed5-date-line,
  .wed5-continue-arrows span,
  .wed5-details-flower,
  .wed5-details-butterfly,
  .wed5-reveal-section,
  .wed5-details-spread.is-turning .wed5-page-turn-shine {
    animation: none !important;
    transition: none !important;
  }

  .wed5-name-letter,
  .wed5-date-line,
  .wed5-names-block {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .wed5-monogram-butterflies,
  .wed5-monogram-letter {
    transition: none !important;
  }

  .wed5-monogram-block.is-butterfly-in .wed5-monogram-butterflies,
  .wed5-monogram-block.is-butterfly-in .wed5-monogram-divider,
  .wed5-monogram-block.is-butterfly-in .wed5-monogram-caption,
  .wed5-monogram-block.is-letters-in .wed5-monogram-letter,
  .wed5-hero-sheet.is-names-in .wed5-names-flower,
  .wed5-hero-sheet.is-names-in .wed5-corner-line,
  .wed5-names-block.is-title-in .wed5-names-title,
  .wed5-names-block.is-subtitle-in .wed5-names-subtitle,
  .wed5-names-block.is-ring-in .wed5-names-ring {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }

  .wed5-hero-sheet.is-names-in .wed5-names-couple {
    opacity: 1 !important;
    transform: translate(-50%, 0) !important;
    clip-path: none !important;
    filter: none !important;
  }

  .wed5-names-block.is-date-in .wed5-names-date-wrap {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }

  .wed5-details-spread.is-decor-in .wed5-details-flower-tl,
  .wed5-details-spread.is-revealed .wed5-reveal-section.is-in .wed5-details-butterfly,
  .wed5-details-spread.is-revealed .wed5-reveal-section.is-in,
  .wed5-details-spread:has(.wed5-details-topline.is-in) .wed5-details-sideline-tl {
    opacity: 1 !important;
    transform: none !important;
  }

  .wed5-details-spread.is-decor-in .wed5-details-flower-br {
    opacity: 1 !important;
    transform: rotate(180deg) !important;
  }

  .wed5-blessings-name,
  .wed5-blessings-sep {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .wed5-couple-columns.is-sketch-in .wed5-person-sketch,
  .wed5-couple-columns.is-meta-in .wed5-person-role,
  .wed5-couple-columns.is-meta-in .wed5-person-meta {
    opacity: 1 !important;
    transform: none !important;
  }

  .wed5-couple-columns.is-sketch-in .wed5-person-sketch {
    opacity: 0.32 !important;
  }

  .wed5-names-copy.is-fly-active .wed5-fly-letter {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 721px) {
  .wed5-hero-sheet.is-names-in .wed5-names-couple,
  .wed5-names-block.is-date-in .wed5-names-date-wrap {
    transform: none !important;
  }
}
