:root {
  --ivory: #fff8ef;
  --pearl: #fffdf8;
  --champagne: #c7a35a;
  --gold: #a77f37;
  --blush: #ffd5dc;
  --rose: #f08aa1;
  --burgundy: #9e4f62;
  --ink: #2f2926;
  --muted: #756b64;
  --mint: #8fc9a6;
  --shadow: 0 24px 70px rgba(111, 83, 74, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 215, 140, 0.18), transparent 26%),
    radial-gradient(circle at 92% 24%, rgba(255, 196, 208, 0.24), transparent 30%),
    radial-gradient(circle at 12% 86%, rgba(143, 201, 166, 0.2), transparent 24%),
    var(--ivory);
  font-family: "Be Vietnam Pro", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(167, 127, 55, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 127, 55, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 84%, transparent);
}

button,
input {
  font: inherit;
}

.scrollbar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 30;
  width: 100%;
  height: 4px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--burgundy), var(--champagne), var(--blush));
}

.ambient-glow,
.floating-hearts,
.open-burst,
.cursor-sparkles {
  position: fixed;
  inset: 0;
  z-index: 12;
  overflow: hidden;
  pointer-events: none;
}

.open-burst {
  z-index: 55;
}

.cursor-sparkles {
  z-index: 56;
}

.ambient-glow {
  z-index: 1;
}

.ambient-glow span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 214, 0.8), rgba(199, 163, 90, 0.2) 45%, transparent 70%);
  animation: twinkle var(--speed) ease-in-out infinite;
  animation-delay: var(--delay);
}

.ambient-glow span:nth-child(1) { --x: 8%; --y: 14%; --size: 70px; --speed: 5s; --delay: 0s; }
.ambient-glow span:nth-child(2) { --x: 22%; --y: 72%; --size: 44px; --speed: 7s; --delay: 1s; }
.ambient-glow span:nth-child(3) { --x: 36%; --y: 28%; --size: 34px; --speed: 6s; --delay: 2s; }
.ambient-glow span:nth-child(4) { --x: 49%; --y: 82%; --size: 58px; --speed: 8s; --delay: 0.5s; }
.ambient-glow span:nth-child(5) { --x: 63%; --y: 18%; --size: 42px; --speed: 6.5s; --delay: 1.5s; }
.ambient-glow span:nth-child(6) { --x: 81%; --y: 62%; --size: 64px; --speed: 7.2s; --delay: 2.2s; }
.ambient-glow span:nth-child(7) { --x: 92%; --y: 24%; --size: 36px; --speed: 5.8s; --delay: 0.8s; }
.ambient-glow span:nth-child(8) { --x: 14%; --y: 42%; --size: 38px; --speed: 8.5s; --delay: 2.8s; }
.ambient-glow span:nth-child(9) { --x: 72%; --y: 88%; --size: 52px; --speed: 7.8s; --delay: 1.8s; }
.ambient-glow span:nth-child(10) { --x: 44%; --y: 52%; --size: 30px; --speed: 5.4s; --delay: 3s; }
.ambient-glow span:nth-child(11) { --x: 3%; --y: 86%; --size: 48px; --speed: 6.8s; --delay: 2.4s; }
.ambient-glow span:nth-child(12) { --x: 88%; --y: 6%; --size: 54px; --speed: 9s; --delay: 1.2s; }

@keyframes twinkle {
  0%, 100% {
    opacity: 0.12;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.62;
    transform: scale(1.18);
  }
}

.floating-hearts {
  z-index: 14;
}

.floating-hearts span,
.open-burst span,
.cursor-sparkles span {
  position: absolute;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: rgba(185, 111, 119, 0.72);
  box-shadow: 0 0 16px rgba(255, 221, 222, 0.62);
}

.floating-hearts span::before,
.floating-hearts span::after,
.open-burst span::before,
.open-burst span::after,
.cursor-sparkles span::before,
.cursor-sparkles span::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: inherit;
}

.floating-hearts span::before,
.open-burst span::before,
.cursor-sparkles span::before {
  left: -7px;
}

.floating-hearts span::after,
.open-burst span::after,
.cursor-sparkles span::after {
  top: -7px;
}

.floating-hearts span {
  left: var(--x);
  bottom: -12vh;
  opacity: 0;
  animation: heart-float var(--speed) ease-in infinite;
  animation-delay: var(--delay);
}

.floating-hearts span:nth-child(1) { --x: 6%; --speed: 15s; --delay: 0s; }
.floating-hearts span:nth-child(2) { --x: 18%; --speed: 18s; --delay: 4s; }
.floating-hearts span:nth-child(3) { --x: 31%; --speed: 16s; --delay: 2s; }
.floating-hearts span:nth-child(4) { --x: 44%; --speed: 20s; --delay: 7s; }
.floating-hearts span:nth-child(5) { --x: 57%; --speed: 17s; --delay: 1s; }
.floating-hearts span:nth-child(6) { --x: 69%; --speed: 19s; --delay: 5s; }
.floating-hearts span:nth-child(7) { --x: 83%; --speed: 16s; --delay: 3s; }
.floating-hearts span:nth-child(8) { --x: 93%; --speed: 21s; --delay: 8s; }
.floating-hearts span:nth-child(9) { --x: 25%; --speed: 22s; --delay: 9s; }
.floating-hearts span:nth-child(10) { --x: 76%; --speed: 18s; --delay: 10s; }

@keyframes heart-float {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(45deg) scale(0.5);
  }
  12%, 74% {
    opacity: 0.58;
  }
  100% {
    opacity: 0;
    transform: translate3d(42px, -116vh, 0) rotate(405deg) scale(1.12);
  }
}

.open-burst span {
  left: 50%;
  top: 50%;
  opacity: 0;
}

.open-burst.is-active span {
  animation: burst-heart 1050ms ease-out forwards;
}

@keyframes burst-heart {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.2);
  }
  20% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(405deg) scale(1);
  }
}

.cursor-sparkles span {
  width: 8px;
  height: 8px;
  opacity: 0;
  background: rgba(199, 163, 90, 0.9);
  animation: cursor-spark 850ms ease-out forwards;
}

.cursor-sparkles span::before,
.cursor-sparkles span::after {
  width: 8px;
  height: 8px;
}

@keyframes cursor-spark {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.4);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(220deg) scale(1.1);
  }
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 24px;
  background:
    linear-gradient(rgba(255, 248, 239, 0.55), rgba(255, 248, 239, 0.8)),
    url("assets/photos/hero.jpg") center / cover;
  transition: opacity 650ms ease, visibility 650ms ease, transform 650ms ease;
}

.gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-18px);
}

.gate__panel {
  width: min(620px, 100%);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid rgba(167, 127, 55, 0.32);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  text-align: center;
}

.envelope-art {
  position: relative;
  width: min(250px, 72vw);
  height: 168px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 24px 32px rgba(72, 38, 31, 0.2));
  animation: envelope-float 4s ease-in-out infinite;
}

.envelope-art__body {
  position: absolute;
  inset: 52px 0 0;
  border: 1px solid rgba(167, 127, 55, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(255, 238, 222, 0.96)),
    var(--pearl);
  overflow: hidden;
}

.envelope-art__body::before,
.envelope-art__body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 49%, rgba(199, 163, 90, 0.28) 50%, transparent 51%);
}

.envelope-art__body::after {
  background: linear-gradient(35deg, transparent 49%, rgba(199, 163, 90, 0.22) 50%, transparent 51%);
}

.envelope-art__flap {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 116px;
  transform: perspective(420px) rotateX(12deg);
  clip-path: polygon(50% 0, 100% 62%, 100% 100%, 0 100%, 0 62%);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8ef, #f5d6cf);
  border: 1px solid rgba(167, 127, 55, 0.34);
}

.envelope-art__card {
  position: absolute;
  left: 50%;
  top: 0;
  display: grid;
  place-items: center;
  width: 124px;
  height: 86px;
  transform: translateX(-50%);
  border: 1px solid rgba(167, 127, 55, 0.34);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(255, 253, 248, 0.94);
  font-family: "Allura", cursive;
  font-size: 2.7rem;
}

.wax-seal {
  position: absolute;
  left: 50%;
  top: 96px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  color: rgba(255, 253, 248, 0.9);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(145deg, #9d3140, #641f2a);
  box-shadow: inset 0 -4px 10px rgba(20, 8, 8, 0.22), 0 10px 24px rgba(109, 38, 48, 0.28);
  font-family: "Playfair Display", serif;
  font-size: 0.8rem;
  font-weight: 700;
}

@keyframes envelope-float {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gate h1,
.hero h2,
.invite h2,
.details__intro h2,
.closing h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.gate h1 {
  font-size: clamp(2.35rem, 7vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.gate__copy {
  margin: 18px auto 26px;
  max-width: 440px;
  color: var(--muted);
  line-height: 1.7;
}

.gate__form {
  text-align: left;
}

.gate__form label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.gate__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.gate input {
  min-width: 0;
  height: 52px;
  border: 1px solid rgba(109, 38, 48, 0.18);
  border-radius: 6px;
  padding: 0 16px;
  background: var(--pearl);
  color: var(--ink);
  outline-color: var(--champagne);
}

.gate button {
  height: 52px;
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  color: white;
  background: linear-gradient(135deg, var(--burgundy), #9d4752);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(109, 38, 48, 0.25);
}

.gate button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(109, 38, 48, 0.32);
}

.music-prompt {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: rgba(35, 24, 24, 0.34);
  backdrop-filter: blur(12px);
  transition: opacity 320ms ease, visibility 320ms ease;
}

.music-prompt.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.music-prompt__panel {
  width: min(520px, 100%);
  max-height: calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(199, 163, 90, 0.36);
  border-radius: 10px;
  padding: clamp(22px, 5vw, 42px);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(233, 184, 182, 0.4), transparent 32%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 239, 0.94));
  box-shadow: 0 34px 90px rgba(30, 12, 12, 0.32);
  text-align: center;
}

.music-prompt__panel h2 {
  margin: 8px 0 12px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.55rem, 5vw, 2.35rem);
  line-height: 1.15;
  color: var(--burgundy);
}

.music-prompt__panel p {
  margin: 0 auto;
  max-width: 380px;
  color: var(--muted);
  line-height: 1.65;
}

.music-prompt__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.music-prompt__actions button,
.music-toggle {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.music-prompt__actions button {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--pearl);
  background: linear-gradient(135deg, var(--burgundy), #9f5260);
  box-shadow: 0 14px 30px rgba(109, 38, 48, 0.22);
}

.music-prompt__actions button:last-child {
  color: var(--burgundy);
  background: rgba(109, 38, 48, 0.1);
  box-shadow: none;
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: calc(150px + env(safe-area-inset-bottom));
  z-index: 59;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(220px, calc(100vw - 24px));
  min-height: 54px;
  border: 1px solid rgba(255, 253, 248, 0.4);
  border-radius: 999px;
  padding: 6px 14px 6px 7px;
  color: var(--pearl);
  background: rgba(109, 38, 48, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 38px rgba(72, 38, 31, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 260ms ease, transform 260ms ease, background 260ms ease, box-shadow 260ms ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.music-choice-made .music-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.music-toggle__icon {
  position: relative;
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff8f0;
  background: radial-gradient(circle at 30% 28%, rgba(255, 245, 233, 0.95), rgba(255, 245, 233, 0.3) 12%, transparent 13%),
    radial-gradient(circle at center, #d08aa0 0 33%, #8c3346 34% 74%, #52101f 75% 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 244, 230, 0.12), 0 8px 18px rgba(54, 20, 26, 0.28);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transform-origin: center;
}

.music-toggle__icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 248, 240, 0.96);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(125, 51, 67, 0.25);
}

.music-toggle__label {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-playing .music-toggle {
  background: rgba(167, 127, 55, 0.9);
  box-shadow: 0 18px 42px rgba(130, 96, 33, 0.24);
}

.music-playing .music-toggle__icon {
  animation: vinyl-spin 2.6s linear infinite;
}

.music-toggle.is-dragging {
  transition: none;
  box-shadow: 0 20px 42px rgba(67, 34, 29, 0.26);
}

.site[aria-hidden="true"] {
  height: 100svh;
  overflow: hidden;
}

.opening-invitation {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 100svh;
  padding: clamp(28px, 5svh, 54px) 18px 190px;
  overflow: hidden;
  color: #27322f;
  background:
    radial-gradient(circle at 10% 22%, rgba(255, 202, 213, 0.48), transparent 18%),
    radial-gradient(circle at 90% 32%, rgba(255, 232, 166, 0.42), transparent 18%),
    radial-gradient(circle at 82% 86%, rgba(168, 220, 187, 0.38), transparent 22%),
    linear-gradient(180deg, #fffefa 0%, #fff7f5 48%, #f3fbf4 100%);
  isolation: isolate;
}

.opening-invitation::before,
.opening-invitation::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.opening-invitation::before {
  left: -34px;
  top: 32%;
  width: 148px;
  height: 238px;
  background:
    radial-gradient(circle at 48% 8%, #fff 0 8px, #ffd36a 9px 13px, transparent 14px),
    radial-gradient(circle at 70% 24%, #fff 0 8px, #ffd36a 9px 13px, transparent 14px),
    radial-gradient(circle at 35% 38%, #fff 0 8px, #ffd36a 9px 13px, transparent 14px),
    linear-gradient(102deg, transparent 47%, rgba(93, 159, 119, 0.62) 48% 51%, transparent 52%),
    linear-gradient(70deg, transparent 47%, rgba(93, 159, 119, 0.42) 48% 51%, transparent 52%);
  transform: rotate(-12deg);
  opacity: 0.82;
}

.opening-invitation::after {
  right: -22px;
  bottom: 14%;
  width: 145px;
  height: 184px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 253, 248, 0.95) 0 12px, rgba(255, 180, 194, 0.68) 13px 22px, transparent 23px),
    radial-gradient(circle at 32% 44%, rgba(255, 253, 248, 0.95) 0 10px, rgba(255, 180, 194, 0.68) 11px 20px, transparent 21px),
    radial-gradient(circle at 62% 52%, rgba(255, 253, 248, 0.95) 0 11px, rgba(255, 180, 194, 0.68) 12px 22px, transparent 23px),
    linear-gradient(140deg, transparent 48%, rgba(93, 159, 119, 0.5) 49% 52%, transparent 53%);
  transform: rotate(12deg);
}

.opening__phrase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 8vw, 150px);
  width: min(900px, 100%);
  margin-bottom: clamp(46px, 8svh, 76px);
  color: rgba(35, 25, 26, 0.76);
  font-size: clamp(0.72rem, 2.6vw, 1.05rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

.opening__phrase span:nth-child(2) {
  text-align: center;
}

.opening__phrase span:nth-child(3) {
  text-align: right;
}

.opening__title {
  margin: 0 0 clamp(34px, 6svh, 64px);
  font-family: "Allura", cursive;
  font-size: clamp(4.4rem, 12vw, 8rem);
  font-weight: 400;
  line-height: 0.9;
  text-align: center;
  color: #191514;
  text-shadow: 0 10px 30px rgba(255, 196, 204, 0.28);
}

.invitation-envelope {
  position: relative;
  width: min(580px, 86vw);
  aspect-ratio: 1.55;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  border-radius: 18px;
  isolation: isolate;
  filter: drop-shadow(0 28px 34px rgba(89, 74, 58, 0.16));
  perspective: 900px;
}

.invitation-envelope.is-open {
  overflow: visible;
}

.invitation-envelope::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -16%;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(20, 8, 8, 0.18), transparent 70%);
  filter: blur(8px);
}

.invitation-envelope__back,
.invitation-envelope__front,
.invitation-envelope__flap,
.invitation-envelope__card,
.invitation-envelope__seal {
  position: absolute;
  display: block;
}

.invitation-envelope__back {
  inset: 24% 0 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff9ed, #efe8d7);
  box-shadow: inset 0 0 0 1px rgba(215, 178, 112, 0.2);
}

.invitation-envelope__card {
  left: 50%;
  bottom: 19%;
  z-index: 2;
  width: 74%;
  aspect-ratio: 1.64;
  overflow: hidden;
  border: 8px solid rgba(255, 253, 248, 0.96);
  border-radius: 18px;
  background: #fff6f0;
  transform: translate(-50%, 28%) rotate(-0.8deg);
  transition: transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 760ms ease, z-index 0ms linear 160ms;
  box-shadow: 0 16px 26px rgba(107, 79, 66, 0.14);
}

.invitation-envelope__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.03);
}

.invitation-envelope__front {
  inset: 43% 0 0;
  z-index: 2;
  border-radius: 0 0 16px 16px;
  background:
    linear-gradient(148deg, transparent 0 49.5%, #fff6e4 50%),
    linear-gradient(32deg, transparent 0 49.5%, #fffaf0 50%),
    linear-gradient(180deg, #fff4df, #f4ecd9);
  box-shadow: inset 0 -1px 0 rgba(202, 170, 108, 0.18);
}

.invitation-envelope__flap {
  left: 0;
  right: 0;
  top: 24%;
  z-index: 3;
  height: 44%;
  clip-path: polygon(0 0, 50% 72%, 100% 0);
  background: linear-gradient(180deg, #fffaf0, #eadfc9);
  transform-origin: top;
  transition: transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 720ms ease;
}

.invitation-envelope__seal {
  left: 50%;
  top: 57%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: clamp(46px, 9vw, 66px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff7ef;
  font-family: "Playfair Display", serif;
  font-size: clamp(0.82rem, 2vw, 1rem);
  font-weight: 700;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 236, 210, 0.42), transparent 28%),
    linear-gradient(135deg, #ffb56b, #d76f77 64%, #f7c36e);
  box-shadow: inset 0 0 0 3px rgba(186, 93, 72, 0.25), 0 12px 24px rgba(172, 93, 78, 0.26);
  transform: translate(-50%, -50%);
  transition: transform 520ms ease, opacity 520ms ease;
}

.invitation-envelope.is-open .invitation-envelope__card {
  z-index: 5;
  transform: translate(-50%, -64%) rotate(-1deg);
  filter: drop-shadow(0 22px 28px rgba(58, 41, 29, 0.14));
}

.invitation-envelope.is-open .invitation-envelope__flap {
  z-index: 0;
  opacity: 0.24;
  transform: rotateX(158deg);
}

.invitation-envelope.is-open .invitation-envelope__seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}

.opening__invite {
  margin: clamp(54px, 7svh, 80px) 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 6vw, 3rem);
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  color: rgba(82, 63, 58, 0.8);
  text-shadow: 0 12px 18px rgba(255, 201, 210, 0.28);
}

.opening__hint {
  margin: 10px 0 0;
  color: rgba(72, 52, 48, 0.64);
  font-size: clamp(0.82rem, 2.4vw, 0.98rem);
  text-align: center;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 96svh;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  inset: 28px;
  border: 1px solid rgba(167, 127, 55, 0.48);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.52);
}

.hero::after {
  inset: 54px;
  border: 1px solid rgba(255, 253, 248, 0.48);
  border-radius: 8px;
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 116%;
}

.hero__image {
  z-index: -3;
  object-fit: cover;
  transform: translateY(var(--parallax, 0));
  filter: saturate(1.04);
}

.hero__veil {
  z-index: -2;
  background:
    radial-gradient(circle at center, rgba(255, 253, 248, 0.58), rgba(255, 248, 239, 0.2) 46%, rgba(109, 38, 48, 0.18)),
    linear-gradient(rgba(255, 248, 239, 0.2), rgba(255, 248, 239, 0.6));
}

.hero__ornament {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 32%, rgba(255, 253, 248, 0.5) 42%, transparent 52%),
    radial-gradient(circle at 50% 50%, transparent 0 35%, rgba(199, 163, 90, 0.18) 36%, transparent 37%);
  mix-blend-mode: screen;
  animation: shimmer-sweep 7s ease-in-out infinite;
}

@keyframes shimmer-sweep {
  0%, 100% {
    opacity: 0.18;
    transform: translateX(-18%);
  }
  50% {
    opacity: 0.52;
    transform: translateX(18%);
  }
}

.hero__content {
  width: min(880px, calc(100% - 32px));
  padding: 9svh 0 13svh;
  text-align: center;
}

.hero h2 {
  font-size: clamp(3.1rem, 10vw, 8.6rem);
  line-height: 0.86;
  color: var(--burgundy);
  text-shadow: 0 2px 22px rgba(255, 253, 248, 0.85);
}

.hero h2 .amp,
.signature,
.monogram {
  font-family: "Allura", cursive;
  font-weight: 400;
}

.hero h2 .amp {
  display: block;
  color: var(--gold);
  font-size: 0.62em;
}

.name-line {
  display: block;
  white-space: nowrap;
}

.hero__sub,
.hero__en,
.invite p,
.details__intro p,
.closing p,
.person p,
.story__item p {
  line-height: 1.8;
}

.hero__sub {
  margin: 28px auto 4px;
  max-width: 650px;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(167, 127, 55, 0.32);
  background: linear-gradient(90deg, var(--burgundy), #8f4a54, var(--burgundy));
  color: var(--pearl);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-slide 28s linear infinite;
}

.marquee span {
  padding: 18px 34px;
  color: rgba(255, 253, 248, 0.86);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  white-space: nowrap;
}

.marquee span:nth-child(even) {
  color: var(--champagne);
  font-family: "Allura", cursive;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
}

@keyframes marquee-slide {
  to {
    transform: translateX(-50%);
  }
}

@keyframes vinyl-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero__en,
.en {
  color: var(--muted);
}

.petal-field span {
  position: absolute;
  top: -10vh;
  width: 10px;
  height: 16px;
  border-radius: 10px 10px 2px 10px;
  background: rgba(233, 184, 182, 0.72);
  animation: petal 12s linear infinite;
}

.petal-field span:nth-child(1) { left: 10%; animation-delay: 0s; }
.petal-field span:nth-child(2) { left: 27%; animation-delay: 2s; }
.petal-field span:nth-child(3) { left: 44%; animation-delay: 4s; }
.petal-field span:nth-child(4) { left: 61%; animation-delay: 1s; }
.petal-field span:nth-child(5) { left: 78%; animation-delay: 6s; }
.petal-field span:nth-child(6) { left: 90%; animation-delay: 3s; }

@keyframes petal {
  to {
    transform: translate3d(-80px, 120vh, 0) rotate(520deg);
  }
}

.section-band {
  position: relative;
  padding: clamp(72px, 11vw, 136px) 20px;
  background: var(--pearl);
}

.section-band--light {
  background:
    linear-gradient(135deg, rgba(233, 184, 182, 0.2), rgba(255, 253, 248, 0.92)),
    var(--ivory);
}

.section-band--deep {
  color: var(--pearl);
  background:
    radial-gradient(circle at 18% 10%, rgba(199, 163, 90, 0.24), transparent 30%),
    linear-gradient(145deg, #4b1821, #6d2630 48%, #2c1718);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.luxury-quote {
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 253, 248, 0.92), rgba(255, 248, 239, 0.76)),
    var(--ivory);
}

.quote-shell {
  position: relative;
  margin: 0 auto;
  width: min(960px, 100%);
  padding: clamp(38px, 7vw, 86px);
  border: 1px solid rgba(199, 163, 90, 0.42);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
  text-align: center;
}

.quote-shell::before,
.quote-shell::after {
  content: "";
  position: absolute;
  width: clamp(92px, 14vw, 180px);
  aspect-ratio: 1;
  border: 1px solid rgba(199, 163, 90, 0.34);
  border-radius: 50%;
  pointer-events: none;
}

.quote-shell::before {
  top: -42px;
  left: -42px;
}

.quote-shell::after {
  right: -42px;
  bottom: -42px;
}

.quote-shell blockquote {
  margin: 0;
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.1rem, 5.8vw, 5.2rem);
  line-height: 1.05;
}

.quote-shell > p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
}

.invite__card {
  margin: 0 auto;
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(199, 163, 90, 0.38);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.82), rgba(255, 253, 248, 0.98));
  box-shadow: var(--shadow);
  text-align: center;
}

.invite__card,
.person,
.photo-frame,
.showcase-tile,
.album-shot {
  transform-style: preserve-3d;
  will-change: transform;
}

.invite__card::after,
.person::after,
.photo-frame::before,
.showcase-tile::before,
.album-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 253, 248, 0.38) 45%, transparent 56%);
  transform: translateX(-120%);
  transition: transform 900ms ease;
}

.invite__card,
.person {
  position: relative;
  overflow: hidden;
}

.invite__card:hover::after,
.person:hover::after,
.photo-frame:hover::before,
.showcase-tile:hover::before,
.album-shot:hover::before {
  transform: translateX(120%);
}

.invite h2 {
  color: var(--burgundy);
  font-size: clamp(2rem, 6vw, 4.6rem);
}

.couple__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 64px);
}

.person {
  min-height: 310px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(109, 38, 48, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(255, 248, 239, 0.66)),
    rgba(255, 253, 248, 0.72);
  box-shadow: 0 18px 55px rgba(72, 38, 31, 0.11);
}

.person h3 {
  margin: 0 0 10px;
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.7rem, 4vw, 3.1rem);
}

.person time {
  color: var(--gold);
  font-weight: 700;
}

.monogram {
  display: grid;
  place-items: center;
  width: clamp(92px, 14vw, 150px);
  aspect-ratio: 1;
  border: 1px solid rgba(167, 127, 55, 0.34);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 253, 248, 0.62);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.72;
}

.details__intro {
  max-width: 720px;
  margin-bottom: 34px;
}

.details {
  display: none;
}

.showcase__intro {
  max-width: 820px;
  margin: 0 auto 46px;
  text-align: center;
}

.showcase__intro h2 {
  margin: 0;
  color: var(--pearl);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.98;
}

.showcase__intro p {
  margin: 18px auto 0;
  max-width: 680px;
  color: rgba(255, 253, 248, 0.78);
  line-height: 1.85;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 18px;
}

.showcase-tile {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 8px;
  background: #2c1718;
  box-shadow: 0 34px 90px rgba(20, 8, 8, 0.34);
  isolation: isolate;
  transition: transform 450ms ease, box-shadow 450ms ease;
}

.showcase-tile:hover {
  box-shadow: 0 42px 110px rgba(20, 8, 8, 0.46);
}

.showcase-tile--large {
  grid-row: span 2;
  min-height: 650px;
}

.showcase-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: photo-breathe 10s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.02);
}

.showcase-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(44, 23, 24, 0.04), rgba(44, 23, 24, 0.76)),
    radial-gradient(circle at 30% 15%, rgba(255, 253, 248, 0.26), transparent 34%);
  pointer-events: none;
}

.showcase-tile__text {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  padding: clamp(22px, 4vw, 42px);
}

.showcase-tile__text span {
  color: var(--champagne);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.showcase-tile__text h3 {
  margin: 8px 0 10px;
  color: var(--pearl);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 3.9rem);
  line-height: 1.02;
}

.showcase-tile__text p {
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  line-height: 1.6;
}

.editorial-album {
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(199, 163, 90, 0.16), transparent 32%),
    linear-gradient(180deg, var(--pearl), var(--ivory));
}

.album-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(220px, 0.35fr);
  gap: 28px;
  align-items: end;
  margin-bottom: clamp(28px, 6vw, 64px);
}

.album-heading h2 {
  margin: 0;
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 7vw, 6.2rem);
  line-height: 0.98;
}

.album-heading::after {
  content: "V & H";
  justify-self: end;
  color: rgba(167, 127, 55, 0.22);
  font-family: "Allura", cursive;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.75;
}

.album-mosaic {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr;
  grid-auto-rows: 240px;
  gap: 16px;
}

.album-shot {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(167, 127, 55, 0.32);
  border-radius: 8px;
  background: var(--burgundy);
  box-shadow: 0 28px 80px rgba(72, 38, 31, 0.18);
  transition: transform 450ms ease, box-shadow 450ms ease;
  isolation: isolate;
}

.album-shot--tall {
  grid-row: span 2;
}

.album-shot--wide {
  grid-column: span 2;
}

.album-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 900ms ease;
}

.album-shot:hover {
  box-shadow: 0 36px 100px rgba(72, 38, 31, 0.28);
}

.album-shot:hover img {
  transform: scale(1.13);
}

.album-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(44, 23, 24, 0.72));
  pointer-events: none;
}

.album-shot figcaption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  color: var(--pearl);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.gallery__intro {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.gallery__intro h2 {
  margin: 0;
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.1rem, 6vw, 4.8rem);
}

.gallery__intro p {
  margin: 16px auto 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.8;
}

.portrait-stack {
  display: grid;
  gap: clamp(28px, 6vw, 72px);
}

.portrait-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
}

.portrait-card--groom {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 0.95fr);
}

.portrait-card--groom .photo-frame {
  order: 2;
}

.photo-frame {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(199, 163, 90, 0.38);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: 0 30px 90px rgba(72, 38, 31, 0.24);
  isolation: isolate;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 1px solid rgba(255, 253, 248, 0.7);
  border-radius: 6px;
  pointer-events: none;
}

.photo-frame:hover::before {
  transform: none;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.08), rgba(109, 38, 48, 0.22)),
    radial-gradient(circle at 25% 20%, rgba(255, 253, 248, 0.42), transparent 34%);
  pointer-events: none;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transform: scale(1.04);
  animation: photo-breathe 9s ease-in-out infinite alternate;
}

.photo-frame--wide {
  min-height: 470px;
}

.photo-frame:hover,
.showcase-tile:hover,
.album-shot:hover {
  transform: translateY(-8px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
}

@keyframes photo-breathe {
  to {
    transform: scale(1.1) translateY(-10px);
  }
}

.portrait-copy {
  padding: clamp(22px, 4vw, 38px);
  border-left: 3px solid var(--champagne);
}

.portrait-card--groom .portrait-copy {
  border-right: 3px solid var(--champagne);
  border-left: 0;
  text-align: right;
}

.portrait-copy h3 {
  margin: 0 0 16px;
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.12;
}

.portrait-copy p {
  margin: 0 0 12px;
  line-height: 1.8;
}

.falling-magic {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.falling-magic span {
  position: absolute;
  top: -12%;
  left: var(--x);
  opacity: 0.86;
  animation: image-fall var(--speed) linear infinite;
  animation-delay: var(--delay);
}

.falling-magic--petals span,
.falling-magic--mix span:nth-child(odd) {
  width: 11px;
  height: 17px;
  border-radius: 12px 12px 3px 12px;
  background: linear-gradient(135deg, rgba(255, 221, 222, 0.98), rgba(185, 111, 119, 0.72));
  box-shadow: 0 0 16px rgba(255, 221, 222, 0.65);
}

.falling-magic--stars span,
.falling-magic--mix span:nth-child(even) {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 0 3px rgba(199, 163, 90, 0.18), 0 0 18px rgba(255, 235, 178, 0.95);
}

.falling-magic span:nth-child(1) { --x: 9%; --speed: 8s; --delay: 0s; }
.falling-magic span:nth-child(2) { --x: 24%; --speed: 10s; --delay: 1.8s; }
.falling-magic span:nth-child(3) { --x: 45%; --speed: 7s; --delay: 0.8s; }
.falling-magic span:nth-child(4) { --x: 66%; --speed: 11s; --delay: 2.6s; }
.falling-magic span:nth-child(5) { --x: 84%; --speed: 9s; --delay: 1.2s; }
.falling-magic span:nth-child(6) { --x: 55%; --speed: 12s; --delay: 3.3s; }

@keyframes image-fall {
  0% {
    transform: translate3d(0, -10%, 0) rotate(0deg) scale(0.9);
  }
  55% {
    opacity: 1;
  }
  100% {
    transform: translate3d(38px, 1220%, 0) rotate(540deg) scale(1.08);
    opacity: 0;
  }
}

.details__intro h2 {
  color: var(--burgundy);
  font-size: clamp(2rem, 5vw, 4rem);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.detail {
  padding: 28px;
  border-top: 3px solid var(--champagne);
  border-radius: 8px;
  background: var(--ivory);
}

.detail span {
  color: var(--rose);
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

.detail h3 {
  margin: 14px 0 10px;
}

.detail p {
  margin: 0 0 8px;
  font-weight: 600;
}

.detail small {
  color: var(--muted);
}

.story__line {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.story__item {
  display: grid;
  grid-template-columns: 120px minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 22px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid rgba(109, 38, 48, 0.13);
}

.story__item span {
  color: var(--gold);
  font-family: "Allura", cursive;
  font-size: 2.7rem;
}

.story__item h3 {
  margin: 0;
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
}

.story__item p {
  margin: 0;
  color: var(--muted);
}

.wishes {
  overflow: hidden;
}

.wishes__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}

.wishes__intro h2 {
  margin: 0;
  color: var(--pearl);
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.98;
}

.wishes__intro p {
  color: rgba(255, 253, 248, 0.78);
  line-height: 1.85;
}

.heart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid rgba(255, 253, 248, 0.32);
  border-radius: 999px;
  padding: 0 22px;
  color: var(--burgundy);
  background: linear-gradient(135deg, var(--pearl), #f6d8d5);
  box-shadow: 0 20px 50px rgba(20, 8, 8, 0.28);
  cursor: pointer;
}

.heart-button span {
  color: var(--rose);
  font-size: 1.35rem;
  line-height: 1;
}

.heart-button:hover {
  transform: translateY(-3px);
}

.wishes__panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.1), rgba(255, 253, 248, 0.03)),
    rgba(255, 253, 248, 0.08);
  box-shadow: 0 34px 90px rgba(20, 8, 8, 0.32);
  backdrop-filter: blur(12px);
}

.wishes__panel::before,
.wishes__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.wishes__panel::before {
  background:
    linear-gradient(90deg, #4b1821 0%, transparent 14%, transparent 86%, #4b1821 100%),
    linear-gradient(180deg, rgba(75, 24, 33, 0.9), transparent 20%, transparent 72%, rgba(75, 24, 33, 0.94));
}

.wishes__panel::after {
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
  box-shadow: inset 0 0 0 14px rgba(255, 253, 248, 0.03);
}

.live-comments {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  padding-bottom: 134px;
}

.live-overlay {
  position: fixed;
  inset: 0;
  z-index: 34;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
}

.invitation-open .live-overlay {
  opacity: 1;
}

.invitation-open.comments-muted .live-overlay {
  opacity: 0;
}

.invitation-open.comments-paused .live-overlay {
  opacity: 0;
}

.live-bubble {
  position: absolute;
  left: var(--x);
  bottom: -96px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: min(360px, calc(100% - 36px));
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: 999px;
  padding: 10px 16px 10px 10px;
  color: var(--pearl);
  background: rgba(255, 253, 248, 0.14);
  box-shadow: 0 12px 30px rgba(20, 8, 8, 0.18);
  backdrop-filter: blur(10px);
  animation: live-bubble-rise var(--rise-duration, 14s) linear forwards;
  will-change: transform, opacity;
}

.live-overlay .live-bubble {
  left: clamp(18px, var(--x), calc(100vw - 360px));
  bottom: calc(96px + env(safe-area-inset-bottom) + var(--start-offset, 0px));
  width: min(360px, calc(100vw - 30px));
  border: 0;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
  border-radius: 12px;
  padding: 8px 14px 8px 8px;
  color: white;
  background: linear-gradient(135deg, rgba(244, 157, 171, 0.95), rgba(236, 133, 151, 0.92));
  box-shadow: 0 10px 24px rgba(98, 42, 48, 0.18);
  backdrop-filter: blur(8px);
}

.live-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: white;
  background: var(--avatar-bg);
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(255, 253, 248, 0.22);
}

.live-overlay .live-avatar {
  width: 32px;
  font-size: 0.78rem;
  box-shadow: 0 0 0 2px rgba(255, 253, 248, 0.62);
}

.live-message {
  min-width: 0;
}

.live-overlay .live-message {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.live-name {
  display: block;
  margin-bottom: 2px;
  color: #ffe6c5;
  font-size: 0.78rem;
  font-weight: 700;
}

.live-overlay .live-name {
  display: inline;
  margin: 0;
  color: white;
  font-size: 0.92rem;
  white-space: normal !important;
}

.live-overlay .live-name::after {
  content: ": ";
}

.live-text {
  display: block;
  overflow: hidden;
  color: rgba(255, 253, 248, 0.94);
  font-size: 0.9rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-overlay .live-text {
  display: inline;
  overflow: visible !important;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.32;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.live-bubble--question {
  background: rgba(255, 253, 248, 0.19);
}

.live-overlay .live-bubble--question {
  background: linear-gradient(135deg, rgba(238, 178, 116, 0.95), rgba(224, 139, 105, 0.92));
}

.live-bubble--reply {
  border-color: rgba(199, 163, 90, 0.38);
  background: rgba(199, 163, 90, 0.18);
}

.live-overlay .live-bubble--reply {
  background: linear-gradient(135deg, rgba(204, 163, 224, 0.95), rgba(181, 126, 202, 0.92));
}

.live-bubble--real {
  border-color: rgba(255, 217, 217, 0.72);
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 124, 145, 0.62), rgba(199, 163, 90, 0.34));
  box-shadow: 0 0 28px rgba(255, 124, 145, 0.32), 0 16px 38px rgba(20, 8, 8, 0.22);
  animation-duration: 10s;
}

.live-overlay .live-bubble--real {
  background: linear-gradient(135deg, #ff6f90, #f2ad5f);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72), 0 0 34px rgba(255, 111, 144, 0.44), 0 16px 36px rgba(98, 42, 48, 0.26);
}

.live-bubble--real::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255, 253, 248, 0.75), transparent);
  animation: real-glow 1.2s ease-in-out infinite;
}

@keyframes real-glow {
  0%, 100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.8;
  }
}

.real-wish-toast {
  position: absolute;
  left: 50%;
  top: 22px;
  z-index: 5;
  width: min(470px, calc(100% - 36px));
  transform: translate(-50%, -22px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 253, 248, 0.34);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--pearl);
  background: linear-gradient(135deg, rgba(255, 124, 145, 0.76), rgba(109, 38, 48, 0.86));
  box-shadow: 0 26px 70px rgba(20, 8, 8, 0.38);
  text-align: center;
  backdrop-filter: blur(16px);
}

.real-wish-toast.is-visible {
  animation: real-wish-pop 4200ms ease forwards;
}

@keyframes real-wish-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -22px) scale(0.96);
  }
  12%, 78% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -12px) scale(0.98);
  }
}

@keyframes live-bubble-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.94);
  }
  8%, 88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), -690px, 0) scale(1);
  }
}

.live-overlay .live-bubble {
  animation-name: live-overlay-rise;
}

@keyframes live-overlay-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.96);
  }
  12%, 78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), -38vh, 0) scale(1);
  }
}

.wish-form {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 4;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 253, 248, 0.14);
  backdrop-filter: blur(18px);
}

.wish-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--pearl);
  font-size: 0.9rem;
  font-weight: 600;
}

.wish-form__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.wish-form input {
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--pearl);
  background: rgba(20, 8, 8, 0.18);
  outline-color: var(--champagne);
}

.wish-form input::placeholder {
  color: rgba(255, 253, 248, 0.58);
}

.wish-form button {
  height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  color: var(--burgundy);
  background: var(--champagne);
  cursor: pointer;
}

.wish-form button:hover {
  background: var(--pearl);
}

.heart-fly {
  position: fixed;
  z-index: 70;
  width: 16px;
  height: 16px;
  pointer-events: none;
  transform: rotate(45deg);
  background: #ff7c91;
  box-shadow: 0 0 20px rgba(255, 124, 145, 0.62);
  animation: manual-heart-fly 1500ms ease-out forwards;
}

.heart-fly::before,
.heart-fly::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: inherit;
}

.heart-fly::before {
  left: -8px;
}

.heart-fly::after {
  top: -8px;
}

@keyframes manual-heart-fly {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(45deg) scale(0.4);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(405deg) scale(1.25);
  }
}

.quick-wish-bar {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 46;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.invitation-open .quick-wish-bar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.invitation-open.comments-muted .quick-wish-bar {
  opacity: 0.42;
  transform: translateY(8px);
}

.invitation-open.comments-muted .quick-wish-bar:focus-within,
.invitation-open.comments-muted .quick-wish-bar:hover {
  opacity: 1;
  transform: translateY(0);
}

.quick-wish-bar input,
.quick-wish-bar button {
  height: 54px;
  border: 0;
  color: white;
  font: inherit;
  box-shadow: 0 12px 28px rgba(67, 37, 34, 0.18);
}

.quick-wish-bar input {
  min-width: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: rgba(133, 126, 126, 0.42);
  backdrop-filter: blur(16px);
  outline: 2px solid transparent;
}

.quick-wish-bar input:focus {
  outline-color: rgba(255, 255, 255, 0.76);
}

.quick-wish-bar input::placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.quick-wish-bar button {
  border-radius: 999px;
  background: rgba(120, 114, 114, 0.44);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: transform 220ms ease, background 220ms ease;
}

.quick-wish-bar button:hover {
  transform: translateY(-2px);
  background: rgba(237, 133, 151, 0.82);
}

.quick-wish-bar__send {
  min-width: 132px;
  padding: 0 22px;
  font-weight: 700;
}

.quick-wish-bar__send::before {
  content: "💞";
  margin-right: 8px;
}

.quick-wish-bar__icon {
  width: 54px;
  font-size: 1.45rem;
}

.closing {
  display: grid;
  place-items: center;
  min-height: 82svh;
  padding: 80px 20px;
  color: var(--pearl);
  background:
    linear-gradient(rgba(73, 24, 31, 0.78), rgba(73, 24, 31, 0.82)),
    url("assets/photos/closing.jpg") center / cover fixed;
  text-align: center;
}

.closing__content {
  width: min(780px, 100%);
}

.closing h2 {
  font-size: clamp(2.2rem, 6vw, 5.2rem);
}

.signature {
  margin-top: 26px;
  color: var(--champagne);
  font-size: clamp(3.2rem, 9vw, 7rem);
}

.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(42px) scale(0.975);
  transition: opacity 1000ms ease, filter 1000ms ease, transform 1000ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.reveal:nth-child(2n) {
  transform: translateX(-32px) scale(0.98);
}

.reveal:nth-child(3n) {
  transform: translateX(32px) scale(0.98);
}

.reveal.is-visible:nth-child(2n),
.reveal.is-visible:nth-child(3n) {
  transform: translateX(0) scale(1);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 58;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(199, 163, 90, 0.54);
  border-radius: 50%;
  color: var(--pearl);
  background: rgba(109, 38, 48, 0.86);
  box-shadow: 0 16px 38px rgba(72, 38, 31, 0.28);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 300ms ease, transform 300ms ease, background 300ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
}


@media (max-width: 430px), (max-height: 620px) {
  .music-prompt {
    place-items: start center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
  }

  .music-prompt__panel {
    width: 100%;
    max-height: none;
    padding: 18px 16px;
    border-radius: 14px;
  }

  .music-prompt__panel h2 {
    font-size: clamp(1.22rem, 7vw, 1.62rem);
    line-height: 1.2;
  }

  .music-prompt__panel p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .music-prompt__actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 18px -4px 0;
    padding: 8px 4px 2px;
    background: linear-gradient(180deg, rgba(255, 248, 239, 0), rgba(255, 248, 239, 0.96) 28%);
  }

  .music-prompt__actions button {
    min-height: 44px;
  }
}

@media (max-width: 820px) {
  .music-prompt__actions {
    grid-template-columns: 1fr;
  }

  .music-toggle {
    right: 10px;
    bottom: calc(118px + env(safe-area-inset-bottom));
    max-width: min(188px, calc(100vw - 20px));
    min-height: 50px;
    padding-right: 12px;
  }

  .music-toggle__icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 0.95rem;
  }

  .music-toggle__label {
    font-size: 0.78rem;
  }

  .gate__row,
  .couple__grid,
  .detail-list,
  .story__item,
  .portrait-card,
  .portrait-card--groom,
  .showcase-grid,
  .album-heading,
  .album-mosaic,
  .wishes__grid,
  .wish-form__row {
    grid-template-columns: 1fr;
  }

  .gate button {
    width: 100%;
  }

  .wish-form button {
    width: 100%;
  }

  .couple__grid {
    justify-items: center;
  }

  .person {
    width: 100%;
    min-height: 0;
  }

  .story__item {
    gap: 8px;
  }

  .photo-frame,
  .photo-frame--wide {
    min-height: 360px;
  }

  .portrait-card--groom .photo-frame {
    order: 0;
  }

  .portrait-card--groom .portrait-copy,
  .portrait-copy {
    border-right: 0;
    border-left: 3px solid var(--champagne);
    text-align: left;
  }

  .showcase-tile,
  .showcase-tile--large {
    min-height: 420px;
    grid-row: auto;
  }

  .album-heading::after {
    justify-self: start;
  }

  .album-mosaic {
    grid-auto-rows: 340px;
  }

  .album-shot--tall,
  .album-shot--wide {
    grid-row: auto;
    grid-column: auto;
  }

  .hero::before {
    inset: 14px;
  }

  .hero::after {
    inset: 28px;
  }

  .wishes__panel {
    min-height: 560px;
  }

  .live-bubble {
    max-width: 300px;
  }

  .opening-invitation {
    padding-bottom: 150px;
  }

  .opening__phrase {
    gap: 18px;
  }

  .quick-wish-bar {
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
  }

  .quick-wish-bar input,
  .quick-wish-bar button {
    height: 50px;
  }

  .quick-wish-bar input {
    padding-inline: 16px;
  }

  .quick-wish-bar__send {
    min-width: 0;
    padding-inline: 12px;
    font-size: 0.9rem;
  }

  .quick-wish-bar__icon {
    width: 48px;
  }
}

@media (max-width: 520px) {
  .gate h1 {
    font-size: clamp(2.05rem, 9.2vw, 2.65rem);
    letter-spacing: -0.055em;
  }

  .opening__phrase {
    font-size: 0.68rem;
  }

  .opening__title {
    font-size: clamp(3.4rem, 16vw, 4.8rem);
  }

  .invitation-envelope {
    width: min(560px, 82vw);
  }

  .opening__invite {
    margin-top: 70px;
  }

  .hero__content {
    width: min(calc(100% - 30px), 560px);
    padding-top: 5svh;
    padding-bottom: 9svh;
  }

  .hero .eyebrow {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }

  .hero h2 {
    font-size: clamp(1.92rem, 8vw, 2.48rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
  }

  .hero h2 .amp {
    font-size: 0.56em;
    line-height: 0.7;
    margin: 4px 0 6px;
  }

  .name-line,
  .name-line--bride {
    display: block;
    font-size: 1em;
    white-space: nowrap;
  }

  .hero__sub {
    max-width: 94%;
    margin-top: 20px;
    font-size: clamp(1.07rem, 4.3vw, 1.22rem);
    line-height: 1.68;
  }

  .hero__en {
    max-width: 92%;
    margin: 18px auto 0;
    font-size: clamp(0.98rem, 3.9vw, 1.08rem);
    line-height: 1.72;
  }
}

@media (max-width: 380px) {
  .gate h1 {
    font-size: clamp(1.85rem, 8.8vw, 2.22rem);
    letter-spacing: -0.06em;
  }

  .hero__content {
    width: min(calc(100% - 18px), 560px);
  }

  .hero h2 {
    font-size: clamp(1.72rem, 7.8vw, 2.06rem);
    line-height: 1.03;
    letter-spacing: -0.034em;
  }

  .hero__sub {
    font-size: clamp(1rem, 4vw, 1.1rem);
    line-height: 1.64;
  }

  .hero__en {
    font-size: clamp(0.94rem, 3.7vw, 1rem);
    line-height: 1.66;
  }
}

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

/* === Polished mobile final: loader, share, compact wish bar, safer floating controls === */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--burgundy);
  background: radial-gradient(circle at 50% 34%, rgba(255, 253, 248, 0.96), rgba(250, 238, 225, 0.92) 48%, rgba(238, 211, 196, 0.94));
  opacity: 1;
  visibility: visible;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__card {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.page-loader__ring {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: var(--pearl);
  background: radial-gradient(circle, #b65a72 0 36%, #7b2033 37% 100%);
  box-shadow: 0 18px 45px rgba(109, 38, 48, 0.24);
  animation: loader-heart 1.35s ease-in-out infinite;
}

.page-loader__card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 500;
}

.page-loader__card strong {
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.45rem, 5vw, 2.2rem);
}

@keyframes loader-heart {
  0%, 100% { transform: scale(0.94); }
  45% { transform: scale(1.04); }
}

.share-invite {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid rgba(255, 253, 248, 0.4);
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  color: var(--pearl);
  background: rgba(109, 38, 48, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 32px rgba(72, 38, 31, 0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 280ms ease, transform 280ms ease, background 220ms ease;
}

.share-invite span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--burgundy);
  background: var(--champagne);
  font-weight: 800;
}

.share-invite strong {
  font-size: 0.78rem;
  white-space: nowrap;
}

.invitation-open .share-invite {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.share-invite:hover {
  background: rgba(167, 127, 55, 0.9);
}

.music-toggle.is-snapping {
  transition: left 220ms ease, top 220ms ease, opacity 260ms ease, transform 260ms ease, background 260ms ease;
}

.quick-wish-bar {
  left: max(18px, env(safe-area-inset-left));
  right: auto;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: calc(100vw - 36px);
  margin: 0;
}

.quick-wish-bar__toggle,
.quick-wish-bar__send,
.quick-wish-bar__submit {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.quick-wish-bar__toggle,
.quick-wish-bar__send {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  color: #fff;
  background: rgba(120, 114, 114, 0.48);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px rgba(67, 37, 34, 0.18);
  transition: transform 220ms ease, background 220ms ease;
}

.quick-wish-bar__toggle:hover,
.quick-wish-bar__send:hover {
  transform: translateY(-2px);
  background: rgba(237, 133, 151, 0.82);
}

.quick-wish-bar__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: min(0px, calc(100vw - 132px));
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px) scaleX(0.96);
  transform-origin: left center;
  transition: width 260ms ease, opacity 220ms ease, transform 260ms ease;
}

.quick-wish-bar.is-expanded .quick-wish-bar__composer,
.quick-wish-bar:focus-within .quick-wish-bar__composer {
  width: min(520px, calc(100vw - 132px));
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scaleX(1);
}

.quick-wish-bar input,
.quick-wish-bar__submit {
  height: 50px;
  border: 0;
  color: white;
  font: inherit;
  box-shadow: 0 12px 28px rgba(67, 37, 34, 0.18);
}

.quick-wish-bar input {
  min-width: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(133, 126, 126, 0.44);
  backdrop-filter: blur(16px);
  outline: 2px solid transparent;
}

.quick-wish-bar input:focus {
  outline-color: rgba(255, 255, 255, 0.76);
}

.quick-wish-bar input::placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.quick-wish-bar__submit {
  min-width: 68px;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 700;
  background: rgba(109, 38, 48, 0.82);
  backdrop-filter: blur(16px);
}

.quick-wish-bar__send::before {
  content: none;
}

.quick-wish-bar__icon {
  width: auto;
}

.invitation-open.comments-muted .quick-wish-bar {
  opacity: 0.68;
}

.invitation-open.comments-muted .quick-wish-bar.is-expanded,
.invitation-open.comments-muted .quick-wish-bar:focus-within,
.invitation-open.comments-muted .quick-wish-bar:hover {
  opacity: 1;
}

@media (max-width: 820px) {
  .opening-invitation {
    padding-bottom: 118px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__content {
    padding-top: 4svh;
    padding-bottom: 8svh;
  }

  .share-invite {
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(74px + env(safe-area-inset-bottom));
    min-height: 42px;
    padding: 7px 10px 7px 8px;
  }

  .share-invite span {
    width: 26px;
    height: 26px;
  }

  .share-invite strong {
    font-size: 0.72rem;
  }

  .quick-wish-bar {
    left: max(10px, env(safe-area-inset-left));
    bottom: calc(12px + env(safe-area-inset-bottom));
    max-width: calc(100vw - 20px);
    gap: 7px;
  }

  .quick-wish-bar__toggle,
  .quick-wish-bar__send {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .quick-wish-bar__composer {
    width: min(0px, calc(100vw - 116px));
  }

  .quick-wish-bar.is-expanded .quick-wish-bar__composer,
  .quick-wish-bar:focus-within .quick-wish-bar__composer {
    width: min(430px, calc(100vw - 116px));
  }

  .quick-wish-bar input,
  .quick-wish-bar__submit {
    height: 46px;
  }

  .quick-wish-bar__submit {
    min-width: 58px;
    padding-inline: 12px;
    font-size: 0.86rem;
  }

  .back-to-top {
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(128px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  .hero h2 {
    font-size: clamp(1.72rem, 7.1vw, 2.18rem);
    line-height: 1.04;
    letter-spacing: -0.028em;
  }

  .hero__sub {
    margin-top: 18px;
    font-size: clamp(1.04rem, 4.1vw, 1.18rem);
    line-height: 1.62;
  }

  .hero__en {
    margin-top: 16px;
    font-size: clamp(0.96rem, 3.7vw, 1.04rem);
    line-height: 1.64;
  }
}

@media (max-width: 380px) {
  .hero h2 {
    font-size: clamp(1.56rem, 7vw, 1.9rem);
  }
}

@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: 100svh;
  }
}

.global-toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 110;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid rgba(255, 253, 248, 0.38);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--pearl);
  background: linear-gradient(135deg, rgba(167, 127, 55, 0.92), rgba(109, 38, 48, 0.9));
  box-shadow: 0 18px 42px rgba(45, 20, 20, 0.26);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.global-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* === Clean share sheet + better social sharing fallback === */
.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 118;
  display: grid;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.share-sheet.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.share-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 24, 26, 0.38);
  backdrop-filter: blur(5px);
}

.share-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 20px));
  margin: 0 auto max(10px, env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 253, 248, 0.5);
  border-radius: 28px;
  padding: 12px 16px 18px;
  color: var(--burgundy);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 -18px 48px rgba(58, 33, 31, 0.26);
  transform: translateY(18px);
  transition: transform 240ms ease;
}

.share-sheet.is-open .share-sheet__panel {
  transform: translateY(0);
}

.share-sheet__handle {
  width: 46px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(109, 38, 48, 0.18);
}

.share-sheet__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.share-sheet__header h2 {
  margin: 2px 0 0;
  font-size: clamp(1.35rem, 5vw, 1.9rem);
}

.share-sheet__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--burgundy);
  background: rgba(109, 38, 48, 0.08);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.share-sheet__url {
  overflow: hidden;
  margin: 14px 0 16px;
  border: 1px solid rgba(167, 127, 55, 0.24);
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(75, 52, 47, 0.82);
  background: rgba(167, 127, 55, 0.08);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-sheet__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.share-option {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 86px;
  border: 1px solid rgba(109, 38, 48, 0.08);
  border-radius: 20px;
  padding: 12px 8px;
  color: var(--burgundy);
  background: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.share-option span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--burgundy), #a95c6a);
  font-weight: 800;
}

.share-option strong {
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: center;
}

.share-option--zalo span { background: #0068ff; }
.share-option--messenger span { background: linear-gradient(135deg, #0084ff, #a033ff); }
.share-option--facebook span { background: #1877f2; font-family: Arial, sans-serif; font-size: 1.35rem; }
.share-option--sms span { background: #2ca75f; }
.share-option--copy span { background: #8b5a2b; }
.share-option--native span { background: var(--gold); }

@media (max-width: 420px) {
  .share-sheet__panel {
    width: min(100vw - 14px, 560px);
    border-radius: 24px;
    padding-inline: 12px;
  }

  .share-sheet__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .share-option {
    min-height: 80px;
    border-radius: 17px;
    padding: 10px 6px;
  }

  .share-option span {
    width: 34px;
    height: 34px;
  }

  .share-option strong {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__ring,
  .music-playing .music-toggle__icon {
    animation: none !important;
  }
}


/* === Wedding typography polish + prettier invitation preview === */
.gate__panel {
  border-radius: 18px;
  padding: clamp(28px, 6vw, 54px);
}

.envelope-art {
  width: min(286px, 76vw);
  height: 188px;
  margin-bottom: 28px;
}

.envelope-art__flap {
  left: 16px;
  right: 16px;
  top: 18px;
  height: 124px;
  background: linear-gradient(180deg, #fffaf3, #f0ddd2);
}

.envelope-art__card {
  width: 132px;
  height: 94px;
  padding-top: 10px;
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.envelope-art__card span {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-family: "Allura", cursive;
  font-size: 1.9rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.wax-seal,
.invitation-envelope__seal {
  line-height: 1;
}

.wax-seal::before,
.invitation-envelope__seal::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 245, 235, 0.7);
}

.wax-seal span,
.invitation-envelope__seal span {
  position: relative;
  z-index: 1;
  display: block;
  transform: translateY(-1px);
}

.wax-seal {
  top: 102px;
  width: 58px;
  font-size: 0.95rem;
}

.gate__names {
  margin: 0;
  line-height: 0.98;
}

.gate-name {
  display: block;
  color: var(--burgundy);
}

.gate-amp {
  display: block;
  margin: 6px 0 8px;
  color: var(--gold);
  font-family: "Allura", cursive;
  font-size: 0.6em;
  font-weight: 400;
  line-height: 0.7;
}

.gate h1 {
  font-size: clamp(2.15rem, 6.4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  white-space: normal;
}

.gate__copy {
  margin: 18px auto 28px;
  max-width: 460px;
  font-size: 1rem;
  line-height: 1.75;
}

.gate__form label {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}

.hero h2 {
  font-size: clamp(3rem, 8.6vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.hero h2 .amp {
  display: block;
  margin: 8px 0 10px;
  color: var(--gold);
  font-family: "Allura", cursive;
  font-size: 0.42em;
  line-height: 0.6;
}

.name-line {
  letter-spacing: -0.02em;
}

.hero__sub {
  margin: 30px auto 8px;
  max-width: 660px;
  font-size: clamp(1.05rem, 1.9vw, 1.24rem);
  line-height: 1.8;
}

.hero__en {
  max-width: 620px;
  font-size: clamp(1rem, 1.55vw, 1.08rem);
  line-height: 1.8;
}

.invite__card {
  border-radius: 28px;
}

.invite h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.invite p,
.quote-shell blockquote,
.quote-shell p,
.person p,
.story__item p,
.closing p {
  font-size: 1rem;
}

.opening__invite {
  letter-spacing: -0.02em;
}

@media (max-width: 820px) {
  .gate__panel {
    padding: 26px 18px 30px;
  }

  .envelope-art {
    width: min(250px, 72vw);
    height: 174px;
  }

  .envelope-art__card {
    width: 120px;
    height: 86px;
    font-size: 1.05rem;
  }

  .envelope-art__card span {
    font-size: 1.72rem;
  }

  .gate h1 {
    font-size: clamp(2rem, 8.6vw, 2.8rem);
    letter-spacing: -0.03em;
  }

  .gate-amp {
    margin: 2px 0 6px;
    font-size: 0.56em;
  }

  .gate__copy {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .hero h2 {
    font-size: clamp(1.86rem, 8vw, 2.34rem);
    line-height: 1;
    letter-spacing: -0.028em;
  }

  .hero h2 .amp {
    margin: 4px 0 5px;
    font-size: 0.38em;
  }

  .name-line,
  .name-line--bride {
    white-space: nowrap;
  }

  .hero__sub {
    max-width: 95%;
    margin-top: 18px;
    font-size: clamp(1.05rem, 4.3vw, 1.16rem);
    line-height: 1.72;
  }

  .hero__en {
    max-width: 92%;
    margin-top: 14px;
    font-size: clamp(0.95rem, 3.8vw, 1.02rem);
    line-height: 1.68;
  }

  .invite h2 {
    font-size: clamp(1.8rem, 6.8vw, 2.45rem);
  }
}

@media (max-width: 380px) {
  .gate h1 {
    font-size: clamp(1.84rem, 8.1vw, 2.2rem);
  }

  .hero h2 {
    font-size: clamp(1.64rem, 7.5vw, 1.98rem);
  }

  .hero h2 .amp {
    font-size: 0.36em;
  }
}


/* === Ampersand polish override === */
.gate-amp,
.hero h2 .amp {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.gate-amp {
  margin: 6px 0 8px;
  font-size: 0.48em;
  line-height: 0.7;
}

.hero h2 .amp {
  margin: 8px 0 10px;
  font-size: 0.34em;
  line-height: 0.56;
}

@media (max-width: 820px) {
  .gate-amp {
    margin: 2px 0 6px;
    font-size: 0.45em;
  }

  .hero h2 .amp {
    margin: 3px 0 5px;
    font-size: 0.31em;
  }
}

@media (max-width: 380px) {
  .gate-amp {
    font-size: 0.43em;
  }

  .hero h2 .amp {
    font-size: 0.29em;
  }
}


/* === Final ampersand + typography balance override === */
.gate h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
}

.gate-amp,
.hero h2 .amp {
  display: block;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gate-amp {
  margin: 6px 0 10px;
  font-size: 0.56em;
  line-height: 0.78;
}

.hero h2 {
  line-height: 0.96;
}

.hero h2 .amp {
  margin: 6px 0 8px;
  font-size: 0.4em;
  line-height: 0.7;
}

.name-line,
.name-line--bride {
  font-size: 1em;
}

@media (max-width: 820px) {
  .gate h1 {
    font-size: clamp(1.92rem, 8.2vw, 2.55rem);
  }

  .gate-amp {
    margin: 4px 0 8px;
    font-size: 0.52em;
  }

  .hero h2 {
    font-size: clamp(1.86rem, 8vw, 2.28rem);
    line-height: 1;
  }

  .hero h2 .amp {
    margin: 4px 0 6px;
    font-size: 0.38em;
  }
}

@media (max-width: 380px) {
  .gate h1 {
    font-size: clamp(1.8rem, 8vw, 2.08rem);
  }

  .gate-amp {
    font-size: 0.5em;
  }

  .hero h2 {
    font-size: clamp(1.66rem, 7.4vw, 1.94rem);
  }

  .hero h2 .amp {
    font-size: 0.36em;
  }
}


/* === Preview choice round: spacing, font weight, ampersand, seal === */
.gate h1, .hero h2 { font-weight: 600; }
.gate h1 { line-height: 1.02; letter-spacing: -0.025em; }
.gate-name, .name-line, .name-line--bride { font-weight: 600; }
.gate-amp { margin: 5px 0 9px; font-size: 0.54em; line-height: 0.76; }
.hero h2 { line-height: 0.98; letter-spacing: -0.022em; }
.hero h2 .amp { margin: 5px 0 7px; font-size: 0.42em; line-height: 0.72; }
.wax-seal { top: 100px; }
.invitation-envelope__seal { top: 56%; left: 50%; }
@media (max-width: 820px){ .gate-amp{font-size:0.5em;margin:4px 0 7px;} .hero h2 .amp{font-size:0.4em;margin:4px 0 6px;} .hero h2{font-size:clamp(1.9rem,8vw,2.3rem);} }
@media (max-width: 380px){ .gate-amp{font-size:0.48em;} .hero h2 .amp{font-size:0.38em;} }


/* === B-final: refined spacing, weight, ampersand, and wax seal === */
.gate h1,
.hero h2 {
  font-weight: 600;
}

.gate-name,
.name-line,
.name-line--bride {
  font-weight: 600;
}

.gate h1 {
  line-height: 1.02;
  letter-spacing: -0.024em;
}

.gate-amp,
.hero h2 .amp {
  display: block;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gate-amp {
  margin: 5px 0 9px;
  font-size: 0.54em;
  line-height: 0.76;
}

.hero h2 {
  line-height: 0.98;
  letter-spacing: -0.022em;
}

.hero h2 .amp {
  margin: 5px 0 7px;
  font-size: 0.42em;
  line-height: 0.72;
}

.hero__sub {
  margin-top: 22px;
}

.wax-seal {
  top: 100px;
}

.wax-seal span,
.invitation-envelope__seal span {
  transform: translateY(-1px);
}

.invitation-envelope__seal {
  top: 56%;
  left: 50%;
}

@media (max-width: 820px) {
  .gate-amp {
    margin: 4px 0 7px;
    font-size: 0.5em;
  }

  .hero h2 {
    font-size: clamp(1.9rem, 8vw, 2.3rem);
  }

  .hero h2 .amp {
    margin: 4px 0 6px;
    font-size: 0.4em;
  }
}

@media (max-width: 380px) {
  .gate-amp {
    font-size: 0.48em;
  }

  .hero h2 .amp {
    font-size: 0.38em;
  }
}


/* === Event details + QR support === */
.event-details {
  background:
    linear-gradient(135deg, rgba(233, 184, 182, 0.18), rgba(255, 253, 248, 0.96)),
    var(--ivory);
}

.event-details__grid,
.gift-support__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 34px);
  align-items: stretch;
}

.event-card,
.gift-support__intro,
.gift-support__panel {
  border: 1px solid rgba(109, 38, 48, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(255, 248, 239, 0.9));
  box-shadow: 0 20px 58px rgba(72, 38, 31, 0.09);
}

.event-card {
  padding: clamp(24px, 5vw, 40px);
}

.event-card h2,
.gift-support__intro h2 {
  margin: 0 0 18px;
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
}

.event-card p,
.gift-support__intro p,
.qr-card__info li {
  line-height: 1.8;
}

.event-meta {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-meta li {
  padding: 16px 18px;
  border: 1px solid rgba(199, 163, 90, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.event-meta span,
.qr-card__info span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.event-meta strong,
.qr-card__info strong {
  color: var(--ink);
  font-size: 1.03rem;
}

.event-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 14px;
  border-radius: 999px;
  padding: 0 24px;
  color: var(--pearl);
  background: linear-gradient(135deg, var(--burgundy), #8f3849);
  box-shadow: 0 18px 38px rgba(109, 38, 48, 0.24);
  font-weight: 700;
}

.event-note,
.gift-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.gift-support {
  background:
    linear-gradient(135deg, rgba(255, 251, 246, 0.92), rgba(247, 233, 224, 0.92)),
    var(--pearl);
}

.gift-support__intro,
.gift-support__panel {
  padding: clamp(24px, 5vw, 40px);
}

.qr-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.qr-card img {
  width: 100%;
  max-width: 210px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(109, 38, 48, 0.14);
  background: #fff;
  padding: 12px;
}

.qr-card__info h3 {
  margin: 0 0 14px;
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}

.qr-card__info ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.qr-card__info li {
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(109, 38, 48, 0.16);
}

@media (max-width: 900px) {
  .event-details__grid,
  .gift-support__grid,
  .qr-card {
    grid-template-columns: 1fr;
  }

  .qr-card img {
    max-width: 210px;
    margin: 0 auto;
  }
}

/* === Bride/Groom VietQR gift cards === */
.gift-qr-list {
  display: grid;
  gap: 18px;
}

.gift-qr-loading {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.gift-qr-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(126px, 188px) minmax(0, 1fr);
  gap: clamp(10px, 2vw, 18px);
  align-items: start;
}

.wedding-qr-centerpiece {
  display: grid;
  place-items: center;
  align-self: center;
  gap: 10px;
  padding-top: 16px;
}

.wedding-qr-centerpiece img {
  width: 100%;
  max-width: 248px;
  height: auto;
  border-radius: 18px;
  filter: drop-shadow(0 14px 24px rgba(72, 38, 31, 0.12));
}

.wedding-qr-centerpiece__note {
  margin: 0;
  text-align: center;
  color: var(--burgundy);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.5;
}

.wedding-qr-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: clamp(12px, 2vw, 16px);
  border: 1px solid rgba(109, 38, 48, 0.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(199, 163, 90, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 46px rgba(72, 38, 31, 0.08);
}

.wedding-qr-card__media {
  position: relative;
  display: grid;
  place-items: center;
  padding-top: 10px;
}

.wedding-qr-card__role {
  position: absolute;
  top: -4px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--pearl);
  background: linear-gradient(135deg, var(--burgundy), #9c4656);
  box-shadow: 0 10px 24px rgba(109, 38, 48, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.wedding-qr-card__media img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid rgba(109, 38, 48, 0.14);
  border-radius: 16px;
  background: #fff;
  padding: 10px;
}

.wedding-qr-card__body h3 {
  margin: 0 0 12px;
  color: var(--burgundy);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.15;
  text-align: center;
}

.wedding-qr-card__meta {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.wedding-qr-card__meta li {
  display: grid;
  gap: 1px;
  padding-bottom: 5px;
  border-bottom: 1px dashed rgba(109, 38, 48, 0.14);
  line-height: 1.35;
}

.wedding-qr-card__meta span,
.wedding-qr-card__app-label,
.wedding-qr-card__hint {
  color: var(--muted);
  font-size: 0.84rem;
}

.wedding-qr-card__meta strong {
  color: var(--ink);
  font-size: 0.92rem;
  word-break: break-word;
}

.wedding-qr-card__app-label {
  display: none;
}

.wedding-qr-card__app-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(109, 38, 48, 0.18);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  font: inherit;
}

.wedding-qr-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.wedding-qr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: 100%;
  border: 1px solid rgba(109, 38, 48, 0.16);
  border-radius: 999px;
  padding: 0 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wedding-qr-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(72, 38, 31, 0.12);
}

.wedding-qr-button--primary {
  color: var(--pearl);
  background: linear-gradient(135deg, var(--burgundy), #8f3849);
  border-color: transparent;
}

.wedding-qr-button--light {
  color: var(--burgundy);
  background: rgba(255, 255, 255, 0.88);
}

.wedding-qr-button--ghost {
  color: var(--muted);
  background: transparent;
}

.wedding-qr-card__hint {
  margin: 0;
  line-height: 1.55;
  font-style: italic;
}

@media (max-width: 760px) {
  .gift-qr-showcase {
    grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
    gap: 8px;
  }

  .wedding-qr-centerpiece {
    padding-top: 28px;
    gap: 6px;
  }

  .wedding-qr-centerpiece img {
    max-width: 132px;
    border-radius: 14px;
  }

  .wedding-qr-centerpiece__note {
    font-size: 0.68rem;
  }

  .wedding-qr-card {
    gap: 8px;
    padding: 9px;
    border-radius: 16px;
  }

  .wedding-qr-card__role {
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .wedding-qr-card__media img {
    max-width: 118px;
    padding: 6px;
    border-radius: 12px;
  }

  .wedding-qr-card__body h3 {
    margin-bottom: 10px;
    font-size: 0.96rem;
    line-height: 1.2;
  }

  .wedding-qr-card__meta {
    gap: 4px;
    margin-bottom: 8px;
  }

  .wedding-qr-card__meta span,
  .wedding-qr-card__app-label,
  .wedding-qr-card__hint {
    font-size: 0.74rem;
  }

  .wedding-qr-card__meta strong {
    font-size: 0.8rem;
  }

  .wedding-qr-card__actions {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 6px;
  }

  .wedding-qr-card__app-select,
  .wedding-qr-button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.74rem;
  }
}



/* === Mobile scroll fix: guest-name gate === */
.gate {
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.gate__panel {
  margin: auto;
}

@media (max-width: 430px), (max-height: 700px) {
  .gate {
    place-items: start center;
    align-content: start;
    padding: max(12px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
  }

  .gate__panel {
    width: 100%;
    margin: 0 auto;
    padding: 20px 16px 22px;
    border-radius: 16px;
  }

  .envelope-art {
    width: min(220px, 68vw);
    height: 148px;
    margin-bottom: 18px;
  }

  .wax-seal {
    top: 82px;
    width: 48px;
    font-size: 0.82rem;
  }

  .gate h1 {
    font-size: clamp(1.72rem, 7.6vw, 2.04rem);
  }

  .gate-amp {
    margin: 3px 0 6px;
  }

  .gate__copy {
    margin: 12px auto 16px;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .gate__form label {
    margin-bottom: 8px;
    font-size: 0.84rem;
  }

  .gate__row {
    gap: 8px;
  }

  .gate input,
  .gate button {
    height: 44px;
  }
}

@media (max-height: 560px) {
  .gate__panel {
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .envelope-art {
    width: min(180px, 54vw);
    height: 120px;
    margin-bottom: 12px;
  }

  .gate__copy {
    margin-bottom: 12px;
  }
}


/* ========================================================================
   2026 EDITORIAL ROMANCE REFRESH
   A deliberate visual layer placed after legacy polish rules so the original
   interactions keep working while the experience gets a calmer hierarchy.
   ======================================================================== */
:root {
  --ivory: #fbf6ed;
  --pearl: #fffdf8;
  --champagne: #c79b55;
  --gold: #a97832;
  --blush: #f2d6d1;
  --rose: #c87984;
  --burgundy: #6f2333;
  --ink: #282326;
  --muted: #71666a;
  --line: rgba(111, 35, 51, 0.14);
  --shadow: 0 28px 90px rgba(73, 33, 40, 0.14);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html {
  scroll-padding-top: 72px;
}

body {
  background:
    radial-gradient(circle at 4% 4%, rgba(255, 230, 198, 0.32), transparent 26%),
    radial-gradient(circle at 96% 20%, rgba(242, 214, 209, 0.38), transparent 29%),
    var(--ivory);
  font-size: 16px;
  letter-spacing: -0.008em;
}

body::before {
  opacity: 0.52;
  background-size: 72px 72px;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out),
    background-color 180ms var(--ease-out), border-color 180ms var(--ease-out),
    color 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

button:active,
a:active {
  transform: scale(0.975);
}

:focus-visible {
  outline: 3px solid rgba(199, 155, 85, 0.72);
  outline-offset: 4px;
}

.ambient-glow {
  opacity: 0.62;
}

.floating-hearts {
  opacity: 0.36;
}

.cursor-sparkles {
  opacity: 0.56;
}

.page-loader__card {
  border: 1px solid rgba(199, 155, 85, 0.28);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 30px 90px rgba(44, 18, 24, 0.2);
}

.music-prompt {
  background: rgba(38, 18, 24, 0.54);
  backdrop-filter: blur(18px) saturate(1.05);
}

.music-prompt__panel {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid rgba(199, 155, 85, 0.38);
  border-radius: 28px;
  padding: clamp(28px, 6vw, 54px);
  background:
    radial-gradient(circle at 90% 0%, rgba(242, 214, 209, 0.54), transparent 34%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(251, 246, 237, 0.96));
  box-shadow: 0 38px 120px rgba(38, 18, 24, 0.34);
}

.music-prompt__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border: 1px solid rgba(199, 155, 85, 0.42);
  border-radius: 50%;
  color: var(--pearl);
  background: linear-gradient(145deg, var(--burgundy), #a54d5b);
  box-shadow: 0 14px 28px rgba(111, 35, 51, 0.2);
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
}

.music-prompt__panel h2 {
  max-width: 470px;
  margin: 8px auto 14px;
  font-size: clamp(1.75rem, 4.8vw, 2.7rem);
  line-height: 1.08;
}

.music-prompt__actions button {
  min-height: 52px;
  font-weight: 700;
}

.gate {
  background:
    linear-gradient(135deg, rgba(46, 17, 25, 0.78), rgba(111, 35, 51, 0.48)),
    url("assets/photos/hero.jpg") center / cover;
}

.gate::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 253, 248, 0.32);
  border-radius: 28px;
  pointer-events: none;
}

.gate__panel {
  position: relative;
  width: min(680px, 100%);
  border: 1px solid rgba(199, 155, 85, 0.44);
  border-radius: 28px;
  padding: clamp(28px, 6vw, 64px);
  background: rgba(255, 253, 248, 0.95);
  box-shadow: 0 38px 110px rgba(34, 11, 17, 0.34);
}

.gate__names {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.12em;
  color: var(--burgundy);
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  white-space: normal;
}

.gate-name:first-child {
  text-align: right;
}

.gate-name--bride {
  text-align: left;
}

.gate-amp {
  color: var(--champagne);
  font-family: "Allura", cursive;
  font-weight: 400;
  line-height: 1;
}

.gate__copy {
  max-width: 480px;
  font-size: 1rem;
}

.gate__date,
.hero__date {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.gate__date {
  margin: -8px auto 28px;
}

.gate__date span {
  margin: 0 8px;
  color: rgba(111, 35, 51, 0.36);
}

.gate__form label {
  color: var(--burgundy);
  letter-spacing: 0.02em;
}

.gate input {
  border-color: rgba(111, 35, 51, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.gate input:focus {
  border-color: var(--champagne);
  box-shadow: 0 0 0 4px rgba(199, 155, 85, 0.13);
}

.gate button {
  border-radius: 14px;
  background: linear-gradient(135deg, var(--burgundy), #913f50);
  font-weight: 700;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  min-height: 62px;
  padding: 8px 20px;
  overflow-x: auto;
  border-block: 1px solid rgba(199, 155, 85, 0.22);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 10px 30px rgba(73, 33, 40, 0.07);
  backdrop-filter: blur(18px) saturate(1.1);
  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  color: var(--burgundy);
}

.section-nav__gift {
  border: 1px solid rgba(111, 35, 51, 0.2);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--burgundy) !important;
  background: rgba(242, 214, 209, 0.42);
}

.opening-invitation {
  min-height: min(900px, 100svh);
  padding-top: clamp(42px, 8svh, 88px);
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 218, 180, 0.36), transparent 21%),
    radial-gradient(circle at 89% 28%, rgba(242, 214, 209, 0.5), transparent 24%),
    linear-gradient(180deg, #fffdf8 0%, #fbf1ed 52%, #edf5ee 100%);
}

.opening__phrase {
  color: rgba(111, 35, 51, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.opening__title {
  margin-bottom: clamp(28px, 5svh, 54px);
  color: var(--burgundy);
  font-size: clamp(4.3rem, 12vw, 8.2rem);
}

.invitation-envelope {
  border-radius: 24px;
  filter: drop-shadow(0 30px 44px rgba(89, 74, 58, 0.18));
}

.invitation-envelope:focus-visible {
  outline-offset: 10px;
}

.opening__invite {
  margin-top: clamp(40px, 6svh, 68px);
  color: var(--burgundy);
  font-size: clamp(1.6rem, 5vw, 2.7rem);
  letter-spacing: 0.04em;
  text-transform: none;
}

.opening__hint {
  max-width: 420px;
  color: var(--muted);
}

.hero {
  min-height: min(980px, 100svh);
}

.hero::before {
  inset: 22px;
  border-radius: 22px;
}

.hero::after {
  inset: 40px;
  border-radius: 18px;
}

.hero__veil {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.18), rgba(111, 35, 51, 0.24)),
    linear-gradient(90deg, rgba(255, 248, 239, 0.16), rgba(255, 248, 239, 0.52));
}

.hero__content {
  padding-block: 10svh 14svh;
}

.hero__date {
  margin-bottom: 18px;
  color: var(--burgundy);
  text-shadow: 0 1px 18px rgba(255, 253, 248, 0.76);
}

.hero h2 {
  color: var(--burgundy);
  font-size: clamp(3rem, 9.5vw, 8rem);
  text-shadow: 0 3px 28px rgba(255, 253, 248, 0.96);
}

.hero__sub {
  max-width: 610px;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.marquee {
  background: var(--burgundy);
}

.section-band {
  padding: clamp(78px, 11vw, 148px) 20px;
}

.section-band--light {
  background:
    radial-gradient(circle at 90% 10%, rgba(242, 214, 209, 0.35), transparent 28%),
    linear-gradient(145deg, #fffdf8, #f8eee8);
}

.section-inner {
  width: min(1180px, 100%);
}

.invite__card,
.quote-shell,
.event-card,
.gift-support__intro,
.gift-support__panel,
.person,
.wedding-qr-card {
  border-radius: 24px;
}

.invite__card {
  width: min(820px, 100%);
  padding: clamp(30px, 6vw, 68px);
  background:
    radial-gradient(circle at 88% 0%, rgba(242, 214, 209, 0.46), transparent 30%),
    linear-gradient(160deg, rgba(255, 253, 248, 0.98), rgba(251, 246, 237, 0.96));
  box-shadow: var(--shadow);
}

.invite h2 {
  font-size: clamp(2rem, 6vw, 4.8rem);
}

.event-details {
  background:
    radial-gradient(circle at 6% 18%, rgba(255, 219, 178, 0.22), transparent 24%),
    linear-gradient(135deg, #f9eee9, #fffdf8);
}

.event-card,
.gift-support__intro,
.gift-support__panel {
  border-color: rgba(111, 35, 51, 0.12);
  box-shadow: 0 26px 72px rgba(73, 33, 40, 0.11);
}

.event-card {
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: "01";
  position: absolute;
  top: 24px;
  right: 30px;
  color: rgba(167, 120, 50, 0.26);
  font-family: "Playfair Display", serif;
  font-size: 3.8rem;
  line-height: 1;
}

.event-card--map::before {
  content: "02";
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-right: 6px;
  border: 1px solid rgba(167, 120, 50, 0.28);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--gold);
  background: rgba(255, 230, 198, 0.42);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-button {
  gap: 10px;
  min-height: 56px;
  padding-inline: 24px;
}

.event-button:hover {
  box-shadow: 0 22px 44px rgba(109, 38, 48, 0.28);
  transform: translateY(-3px);
}

.quote-shell {
  padding: clamp(40px, 7vw, 92px);
  background: rgba(255, 253, 248, 0.88);
}

.quote-shell blockquote {
  font-size: clamp(2rem, 5.8vw, 5.4rem);
}

.person {
  min-height: 340px;
  background:
    radial-gradient(circle at 100% 0%, rgba(242, 214, 209, 0.34), transparent 36%),
    rgba(255, 253, 248, 0.86);
  box-shadow: 0 24px 70px rgba(73, 33, 40, 0.1);
}

.monogram {
  border-color: rgba(199, 155, 85, 0.48);
  background: rgba(255, 253, 248, 0.82);
}

.photo-frame,
.showcase-tile,
.album-shot {
  border-radius: 22px;
}

.photo-frame {
  box-shadow: 0 34px 100px rgba(73, 33, 40, 0.2);
}

.portrait-copy {
  border-left-width: 2px;
}

.portrait-card--groom .portrait-copy {
  border-right-width: 2px;
}

.showcase {
  background:
    radial-gradient(circle at 8% 10%, rgba(199, 155, 85, 0.28), transparent 30%),
    linear-gradient(145deg, #491722, #6f2333 52%, #251416);
}

.showcase-tile,
.album-shot {
  border-color: rgba(255, 253, 248, 0.34);
}

.showcase-tile:hover,
.album-shot:hover,
.photo-frame:hover {
  transform: translateY(-6px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
}

.editorial-album {
  background:
    radial-gradient(circle at 86% 4%, rgba(242, 214, 209, 0.42), transparent 28%),
    linear-gradient(180deg, var(--pearl), var(--ivory));
}

.story__item {
  padding-block: 30px;
  border-bottom-color: rgba(111, 35, 51, 0.16);
}

.story__item span {
  color: var(--gold);
}

.wishes__panel {
  border-radius: 24px;
}

.heart-button {
  min-height: 56px;
  font-weight: 700;
}

.heart-button:hover {
  box-shadow: 0 24px 56px rgba(20, 8, 8, 0.34);
  transform: translateY(-3px);
}

.gift-support {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 219, 178, 0.28), transparent 28%),
    linear-gradient(135deg, #fffaf4, #f7e9e0);
}

.wedding-qr-card {
  border-color: rgba(111, 35, 51, 0.14);
  background:
    radial-gradient(circle at top left, rgba(199, 155, 85, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.82);
}

.closing {
  min-height: 88svh;
  background:
    linear-gradient(rgba(58, 16, 25, 0.68), rgba(58, 16, 25, 0.84)),
    url("assets/photos/closing.jpg") center / cover;
}

.reveal {
  filter: blur(5px);
  transform: translateY(28px) scale(0.985);
  transition-duration: 760ms;
}

.back-to-top {
  border-radius: 14px;
}

.quick-wish-bar input,
.quick-wish-bar button {
  box-shadow: 0 16px 34px rgba(67, 37, 34, 0.22);
}

@media (max-width: 820px) {
  .section-nav {
    justify-content: flex-start;
    gap: 22px;
    padding-inline: 16px;
  }

  .gate::before {
    inset: 10px;
    border-radius: 20px;
  }

  .gate__panel {
    border-radius: 22px;
  }

  .opening-invitation {
    min-height: 780px;
  }

  .hero {
    min-height: 760px;
  }

  .hero::before {
    inset: 14px;
    border-radius: 16px;
  }

  .hero::after {
    inset: 26px;
    border-radius: 14px;
  }

  .hero__content {
    width: min(100% - 44px, 680px);
  }

  .hero h2 {
    font-size: clamp(2.72rem, 12vw, 5.6rem);
    line-height: 0.92;
  }

  .name-line {
    white-space: normal;
  }

  .event-card::before {
    top: 18px;
    right: 22px;
    font-size: 3rem;
  }

  .quick-wish-bar {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  .gate__panel {
    padding: 24px 18px 26px;
  }

  .gate__names {
    gap: 0.06em;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .gate__copy {
    margin-top: 14px;
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .gate__date {
    margin-bottom: 22px;
    font-size: 0.66rem;
    letter-spacing: 0.13em;
  }

  .gate__date span {
    margin-inline: 3px;
  }

  .opening-invitation {
    min-height: 700px;
    padding-inline: 14px;
  }

  .opening__phrase {
    gap: 10px;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .opening__title {
    font-size: clamp(3.5rem, 18vw, 5.8rem);
  }

  .invitation-envelope {
    width: min(500px, 92vw);
  }

  .opening__invite {
    font-size: 1.5rem;
  }

  .section-band {
    padding-inline: 14px;
  }

  .section-inner {
    width: 100%;
  }

  .quote-shell,
  .invite__card,
  .event-card,
  .gift-support__intro,
  .gift-support__panel,
  .person {
    border-radius: 20px;
  }

  .event-card,
  .gift-support__intro,
  .gift-support__panel {
    padding: 24px 20px;
  }

  .event-meta li {
    padding: 14px;
  }

  .event-meta strong {
    display: block;
    font-size: 0.96rem;
  }

  .status-badge {
    margin-bottom: 6px;
  }

  .story__item {
    padding-block: 24px;
  }

  .portrait-copy {
    padding-inline: 18px;
  }

  .closing {
    min-height: 760px;
    background-attachment: scroll;
  }

  .quick-wish-bar__send {
    min-width: 54px;
    padding-inline: 12px;
    font-size: 0;
  }

  .quick-wish-bar__send::before {
    margin: 0;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-sparkles,
  .floating-hearts,
  .ambient-glow,
  .petal-field,
  .falling-magic {
    display: none;
  }
}
