:root {
  --bg: #f7f3ec;
  --paper: #fbf8f2;
  --ink: #3e3731;
  --muted: #7d7269;
  --gold: #9a7c53;
  --gold-dark: #6f563b;
  --line: rgba(89, 71, 55, .18);
  --shadow: 0 24px 70px rgba(49, 39, 30, .18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --script: "Allura", cursive;
  --script-name: "Allura", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }

img { display: block; width: 100%; }
button, input, textarea, select { font: inherit; }

.section { position: relative; width: 100%; }
.section-inner { width: min(100% - 32px, 980px); margin: 0 auto; padding: 88px 0; }
.section-inner.narrow { width: min(100% - 40px, 720px); }
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 600;
}
.script { font-family: var(--script); font-weight: 400; }

/* Lệ: chữ L khác Allura + dấu nặng hiện rõ */
.vn-accent {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
  font-style: italic;
  font-weight: 600;
  font-size: .88em;
  letter-spacing: .02em;
  line-height: 1.4;
  display: inline;
}
.vn-accent .vn-l {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-style: normal;
  font-weight: 600;
  font-size: 1.05em;
  letter-spacing: .04em;
  display: inline !important;
}
.heading-script { font-size: clamp(48px, 9.72vw, 80px); line-height: .95; margin: 10px 0 22px; }
.lead { font-size: 22px; line-height: 1.65; color: var(--muted); }

/* ===== Reveal animation (scroll fade in / out) ===== */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(.985);
  filter: blur(6px);
  transition:
    opacity .95s cubic-bezier(.22, .8, .22, 1),
    transform 1.05s cubic-bezier(.22, .8, .22, 1),
    filter .9s ease;
  will-change: opacity, transform, filter;
}
[data-reveal].visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

[data-reveal="up"] {
  transform: translate3d(0, 40px, 0);
  filter: blur(5px);
}
[data-reveal="down"] {
  transform: translate3d(0, -28px, 0);
  filter: blur(5px);
}
[data-reveal="left"] {
  transform: translate3d(-36px, 16px, 0);
  filter: blur(5px);
}
[data-reveal="right"] {
  transform: translate3d(36px, 16px, 0);
  filter: blur(5px);
}
[data-reveal="zoom"] {
  transform: translate3d(0, 18px, 0) scale(.92);
  filter: blur(8px);
}
[data-reveal="fade"] {
  transform: none;
  filter: blur(8px);
}
[data-reveal="up"].visible,
[data-reveal="down"].visible,
[data-reveal="left"].visible,
[data-reveal="right"].visible,
[data-reveal="zoom"].visible,
[data-reveal="fade"].visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

/* Stagger children when parent is visible */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(4px);
  transition:
    opacity .85s cubic-bezier(.22, .8, .22, 1),
    transform .95s cubic-bezier(.22, .8, .22, 1),
    filter .8s ease;
  will-change: opacity, transform, filter;
}
[data-reveal-stagger].visible > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}
[data-reveal-stagger].visible > *:nth-child(1) { transition-delay: .04s; }
[data-reveal-stagger].visible > *:nth-child(2) { transition-delay: .12s; }
[data-reveal-stagger].visible > *:nth-child(3) { transition-delay: .2s; }
[data-reveal-stagger].visible > *:nth-child(4) { transition-delay: .28s; }
[data-reveal-stagger].visible > *:nth-child(5) { transition-delay: .36s; }
[data-reveal-stagger].visible > *:nth-child(6) { transition-delay: .44s; }
[data-reveal-stagger].visible > *:nth-child(7) { transition-delay: .52s; }
[data-reveal-stagger].visible > *:nth-child(8) { transition-delay: .6s; }
[data-reveal-stagger].visible > *:nth-child(9) { transition-delay: .68s; }
[data-reveal-stagger].visible > *:nth-child(10) { transition-delay: .76s; }
[data-reveal-stagger].visible > *:nth-child(n+11) { transition-delay: .84s; }
[data-reveal-stagger]:not(.visible) > * {
  transition-delay: 0s !important;
}

/* Text line soft rise */
[data-reveal-text] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity .8s cubic-bezier(.22, .8, .22, 1),
    transform .9s cubic-bezier(.22, .8, .22, 1);
}
[data-reveal-text].visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ===== Envelope gate ===== */
.envelope-gate {
  position: fixed;
  z-index: 999;
  inset: 0;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding:
    max(16px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  background-color: #fafafa;
  transition: opacity 1s ease, visibility 1s ease;
}
.gate-floral-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.gate-floral-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, .42) 0%,
    rgba(255, 255, 255, .12) 32%,
    rgba(255, 255, 255, 0) 58%
  );
}
.gate-floral-main {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
  opacity: 1;
}
.gate-noise { z-index: 1; opacity: .028; }
.gate-layout {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  flex: 1;
  min-height: min(100%, 100svh);
  padding: max(28px, 6vh) 0 max(24px, 4vh);
}
.gate-header {
  text-align: center;
  margin: 0 0 clamp(12px, 3vh, 20px);
  z-index: 20;
  transition: opacity .45s ease, transform .45s ease;
  width: 100%;
  padding: 0 6px;
}
.gate-names {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(34px, 9.2vw, 52px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.28;
  color: #6f5a45;
  letter-spacing: .02em;
  white-space: nowrap;
  max-width: 100%;
  overflow: visible;
}
.gate-date {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(20px, 4.8vw, 25px);
  font-weight: 500;
  letter-spacing: .06em;
  color: #5a544c;
}
.gate-hint {
  margin: clamp(56px, 12vh, 88px) 0 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(21px, 5.2vw, 26px);
  font-weight: 500;
  letter-spacing: .03em;
  color: rgba(92, 84, 74, .68);
  z-index: 20;
  cursor: pointer;
  transition: opacity .45s ease;
}
.envelope:not(.is-opening) .wax-seal {
  animation: waxSealTap 1.35s ease-in-out infinite;
}
@keyframes waxSealTap {
  0%, 28%, 68%, 100% { transform: translate(-50%, -50%) scale(1); }
  42% { transform: translate(-50%, -50%) scale(0.96); }
  52% { transform: translate(-50%, -50%) scale(0.92); }
}
.envelope-gate.is-opening .gate-header,
.envelope-gate.is-opening .gate-hint {
  opacity: 0;
  pointer-events: none;
}
.envelope-gate.is-opening .gate-header {
  transform: translateY(-12px);
}
.envelope-gate::before,
.envelope-gate::after {
  content: none;
}
.envelope-gate.is-opening.gate-reveal {
  pointer-events: none;
  background-color: transparent;
}
.envelope-gate.is-opening.gate-reveal .gate-floral-bg,
.envelope-gate.is-opening.gate-reveal .gate-noise {
  animation: gateShellFade 1.15s ease forwards;
}
.envelope-gate.is-opening.gate-reveal .envelope-back,
.envelope-gate.is-opening.gate-reveal .envelope-front,
.envelope-gate.is-opening.gate-reveal .envelope-left,
.envelope-gate.is-opening.gate-reveal .envelope-right,
.envelope-gate.is-opening.gate-reveal .envelope-flap,
.envelope-gate.is-opening.gate-reveal .envelope-shadow,
.envelope-gate.is-opening.gate-reveal .gate-pearls,
.envelope-gate.is-opening.gate-reveal .orchid-photo {
  animation: gateShellFade 0.95s ease forwards;
}
.envelope-gate.is-opening.gate-reveal .envelope {
  animation: none;
  transform: none;
}
.envelope-gate.is-opening.gate-reveal .letter-preview {
  z-index: 30;
}
@keyframes gateShellFade {
  to { opacity: 0; }
}
.envelope-gate.gate-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s ease, visibility .55s ease;
}
.gate-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.envelope {
  --env-w: min(88vw, 468px);
  --env-h: calc(var(--env-w) * .62);
  --weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  position: relative;
  width: var(--env-w);
  height: var(--env-h);
  margin: clamp(28px, 6vh, 44px) 0 0;
  perspective: 1200px;
  transform-style: preserve-3d;
  animation: envelopeFloat 4s ease-in-out infinite;
}
@keyframes envelopeFloat {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
.envelope-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -28px;
  height: 42px;
  border-radius: 50%;
  background: rgba(56,39,25,.2);
  filter: blur(18px);
}
.envelope-back {
  position: absolute; inset: 0;
  z-index: 2;
  border-radius: 4px;
  background: #f3ece3 var(--weave);
  box-shadow: 0 18px 40px rgba(90, 74, 58, .16);
}
.envelope-front {
  position: absolute;
  z-index: 5;
  inset: 0;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}
.envelope-front::before {
  content: "";
  position: absolute; inset: 0;
  background: #f7f2ea var(--weave);
  clip-path: polygon(0 0, 50% 62%, 100% 0, 100% 100%, 0 100%);
}
.envelope-side { position: absolute; z-index: 4; inset: 0; }
.envelope-left {
  background: #efe6da var(--weave);
  clip-path: polygon(0 0, 52% 54%, 0 100%);
}
.envelope-right {
  background: #f4eee6 var(--weave);
  clip-path: polygon(100% 0, 48% 54%, 100% 100%);
}
.envelope-flap {
  position: absolute;
  z-index: 8;
  top: 0; left: 0; right: 0;
  height: 57%;
  background: #f6f1e8 var(--weave);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0%;
  backface-visibility: hidden;
  transition: transform 1.1s cubic-bezier(.45, .02, .12, 1);
}
.flap-edge { position: absolute; inset: 0; width: 100%; height: 100%; }
.orchid-photo {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  height: auto;
  user-select: none;
}
.orchid-left {
  width: 54%;
  left: -16%;
  top: 18%;
}
.orchid-right {
  width: 48%;
  right: -14%;
  top: 10%;
}
.gate-pearls {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: -14%;
  width: 92%;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(80, 60, 40, .08));
}
.wax-seal-wrap {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: 54%;
  width: 0;
  height: 0;
}
.gate-tap-hand {
  --tip-x: 16%;
  --tip-y: 42%;
  position: absolute;
  z-index: 14;
  left: 44px;
  top: 2px;
  width: clamp(72px, 19vw, 88px);
  pointer-events: none;
  transform: translate(calc(var(--tip-x) * -1), calc(var(--tip-y) * -1));
  transform-origin: var(--tip-x) var(--tip-y);
}
.gate-tap-hand-inner {
  position: relative;
  width: 100%;
  transform: rotate(-45deg);
  transform-origin: var(--tip-x) var(--tip-y);
  animation: gateHandTap 1.15s ease-in-out infinite;
}
.gate-tap-finger {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  /* PNG viền đen → viền trắng, nền trong suốt giữ nguyên */
  filter: brightness(0) invert(1);
}
.gate-tap-rays {
  position: absolute;
  left: 2%;
  top: 38%;
  width: 34%;
  height: auto;
  overflow: visible;
  pointer-events: none;
  transform: rotate(-45deg);
  transform-origin: 70% 50%;
}
.gate-tap-rays line,
.gate-tap-hand .tap-ray {
  stroke: #ffffff;
}
.gate-tap-hand .tap-ray {
  opacity: 0;
  animation: tapRayPulse 1.15s ease-in-out infinite;
}
.gate-tap-hand .tap-ray-b { animation-delay: .05s; }
.gate-tap-hand .tap-ray-c { animation-delay: .1s; }
@keyframes gateHandTap {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(-3px, 3px); }
  50% { transform: translate(-6px, 6px); }
  62% { transform: translate(-6px, 6px); }
  76% { transform: translate(-1px, 1px); }
}
@keyframes tapRayPulse {
  0%, 36%, 70%, 100% { opacity: 0; }
  48%, 58% { opacity: 1; }
}
.wax-seal-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(201, 156, 105, .45);
  opacity: 0;
  animation: sealPulse 1.35s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sealPulse {
  0%, 26%, 100% { opacity: 0; transform: scale(1); }
  42%, 52% { opacity: .75; transform: scale(1.08); }
  58% { opacity: 0; transform: scale(1.18); }
}
.letter-preview {
  position: absolute;
  z-index: 3;
  left: 10%;
  right: 10%;
  top: 6%;
  height: 94%;
  background: transparent;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  clip-path: inset(0 0 44% 0 round 2px);
}
.envelope.is-opening .letter-preview {
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  clip-path: inset(0 0 44% 0 round 2px);
}
.letter-preview-inner {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 10% 8% 48%;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(60, 45, 30, .08);
  text-align: center;
}
.letter-preview-crest {
  width: clamp(48px, 14vw, 64px);
  height: auto;
  margin: 0 0 4px;
  opacity: 0;
}
.letter-preview-names {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(22px, 7.2vw, 32px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.3;
  color: #6f5a45;
}
.letter-preview-names span {
  font-family: var(--serif);
  font-size: .72em;
  font-weight: 500;
}
.letter-preview-date {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: clamp(15px, 4.6vw, 20px);
  letter-spacing: .12em;
  color: #5a544c;
}
.envelope.is-opening .letter-preview-crest {
  animation: letterTextIn .55s 1.4s ease forwards;
}
.envelope.is-opening .letter-preview-names,
.envelope.is-opening .letter-preview-date {
  animation: letterTextIn .6s 1.55s ease forwards;
  opacity: 0;
}
@keyframes letterTextIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wax-seal {
  position: absolute;
  left: 0;
  top: 0;
  width: 92px;
  height: 92px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
  transition: transform .35s ease, opacity .35s ease;
  filter: drop-shadow(0 10px 16px rgba(69, 43, 22, .28));
}
.wax-seal::before { content: none; }
.wax-seal-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}
.envelope:not(.is-opening) .wax-seal:hover {
  animation: none;
  transform: translate(-50%, -50%) scale(1.06);
}
.wax-seal i { font-family: var(--script); font-size: 20px; margin: 0 2px; }

.envelope.is-opening { animation: none; }
.envelope.is-opening .gate-tap-hand {
  animation: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.envelope.is-opening .wax-seal-pulse { animation: none; opacity: 0; }
.envelope.is-opening .gate-pearls {
  animation: floraFade .85s .15s ease forwards;
}
.envelope.is-opening .wax-seal {
  animation: sealPop .9s cubic-bezier(.34, 1.2, .48, 1) forwards;
}
.envelope.is-opening .envelope-flap {
  transform: rotateX(180deg);
  transition-duration: 1.1s;
  transition-timing-function: cubic-bezier(.45, .02, .12, 1);
  z-index: 2;
}
.envelope.is-opening .envelope-front {
  z-index: 6;
}
.envelope.is-opening .envelope-side {
  z-index: 5;
}
.envelope.is-opening .letter-preview {
  will-change: transform, opacity, clip-path;
  animation: letterRise 3.6s 1.1s both;
  animation-timing-function: cubic-bezier(.22, .78, .2, 1);
}
.envelope.is-opening .orchid-photo {
  animation: floraFade .85s .15s ease forwards;
}
.envelope.is-opening .envelope-shadow {
  animation: shadowShrink 2.4s .7s ease forwards;
}
@keyframes floraFade { to { opacity: 0; } }
@keyframes shadowShrink {
  to { opacity: .35; transform: scale(.88); }
}
@keyframes sealPop {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  35% { transform: translate(-50%, -52%) scale(1.08); opacity: 1; }
  70% { transform: translate(-50%, -62%) scale(1.18) rotate(-6deg); opacity: .85; }
  100% { transform: translate(-50%, -95%) scale(.7) rotate(12deg); opacity: 0; }
}
/*
  1) Đẩy thiệp lên khỏi phong bì
  2) Nổi lên trên phong bì
  3) Dần biến mất → hiện landing
*/
@keyframes letterRise {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    clip-path: inset(0 0 44% 0 round 2px);
    opacity: 1;
    z-index: 3;
  }
  /* Đẩy dần lộ thiệp (đáy vẫn trong phong bì) */
  36% {
    transform: translate3d(0, -46%, 0) scale(1);
    clip-path: inset(0 0 10% 0 round 2px);
    opacity: 1;
    z-index: 3;
  }
  /* Rời miệng phong bì, nổi rõ phía trên */
  50% {
    transform: translate3d(0, -58%, 0) scale(1);
    clip-path: inset(0 0 0 0 round 2px);
    opacity: 1;
    z-index: 12;
  }
  /* Nổi cao hơn một nhịp */
  68% {
    transform: translate3d(0, -82%, 0) scale(1.03);
    clip-path: inset(0 0 0 0 round 2px);
    opacity: 1;
    z-index: 12;
  }
  /* Dần biến mất */
  100% {
    transform: translate3d(0, -96%, 0) scale(1.06);
    clip-path: inset(0 0 0 0 round 2px);
    opacity: 0;
    z-index: 12;
  }
}

/* ===== Floating music ===== */
.music-toggle {
  position: fixed;
  z-index: 1001;
  top: auto;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  right: auto;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .52);
  box-shadow: 0 6px 18px rgba(110, 80, 50, .14);
  color: #604833;
  cursor: pointer;
  opacity: .42;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .5s ease, background .35s ease, box-shadow .35s ease;
}
body.invitation-open .music-toggle {
  opacity: 1;
  left: auto;
  right: max(16px, env(safe-area-inset-right));
  background: linear-gradient(135deg, #ffbad3, #ffdc77);
  box-shadow: 0 8px 22px rgba(110, 80, 50, .2);
  width: 54px;
  height: 54px;
}
.music-toggle.playing .music-icon { animation: spinNote 3s linear infinite; }
.music-icon { display: block; font-size: 22px; }
.music-label { position: absolute; width: 1px; height: 1px; overflow: hidden; }
@keyframes spinNote { to { transform: rotate(360deg); } }

/* ===== Hero ===== */
.hero {
  min-height: auto;
  padding: 0;
  background: var(--paper);
}
.hero-card {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--paper);
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.hero-slideshow {
  position: relative;
  width: min(100%, 560px, calc(88svh * 3 / 4));
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  max-height: 88svh;
  overflow: hidden;
  background: #d9d0c4;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  z-index: 0;
  overflow: hidden;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  /* Giữ tỉ lệ gốc — không kéo giãn */
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.hero-slideshow-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(20, 14, 10, .3) 0%,
    rgba(20, 14, 10, .06) 26%,
    rgba(20, 14, 10, 0) 48%,
    rgba(20, 14, 10, .04) 100%
  );
}
.hero-wedding-label {
  position: absolute;
  top: clamp(20px, 4.5vw, 36px);
  left: 0;
  right: 0;
  z-index: 3;
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(30px, 7.5vw, 48px);
  font-weight: 600;
  letter-spacing: .28em;
  text-indent: .28em;
  color: #d4b483;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
  pointer-events: none;
}
.hero-torn {
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  z-index: 4;
  width: calc(100% + 2px);
  height: clamp(58px, 13vw, 96px);
  object-fit: fill;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
  display: block;
}
.hero-copy {
  position: relative;
  z-index: 5;
  margin-top: -36px;
  padding: 4px clamp(20px, 5vw, 40px) 48px;
  color: var(--ink);
  text-align: center;
  background: var(--paper);
}
.hero-copy .script {
  font-family: var(--script);
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  margin: 0;
  color: #6f5a45;
}
.hero-copy h2 {
  font-family: var(--script);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(48px, 13vw, 72px);
  line-height: 1.15;
  margin: 4px 0 14px;
  color: #3f534f;
}
.hero-copy h2 .hero-name {
  display: block;
  line-height: 1.2;
  padding: .04em 0;
}
.hero-copy h2 .hero-amp {
  display: block;
  color: #9a7c53;
  font-size: .62em;
  font-style: normal;
  line-height: .85;
  margin: .08em 0;
}
.hero-copy > p:not(.script) {
  font-family: var(--sans);
  letter-spacing: .2em;
  font-size: 11px;
  color: var(--muted);
}
.hero-copy strong {
  display: block;
  margin-top: 10px;
  font-size: 20px;
  letter-spacing: .08em;
  color: var(--ink);
}

@media (min-width: 760px) {
  .hero-slideshow {
    width: min(100%, 600px, calc(88svh * 3 / 4));
  }
  .hero-torn {
    height: clamp(64px, 8vw, 96px);
  }
}

/* Hero không dùng filter blur — tránh ảnh bị rasterize/nhoè */
.hero-card[data-reveal] {
  filter: none;
  transform: translate3d(0, 28px, 0);
}
.hero-card[data-reveal].visible {
  filter: none;
  transform: none;
}

/* ===== Invitation ===== */
.paper-bg {
  background:
    linear-gradient(rgba(255,255,255,.56), rgba(255,255,255,.56)),
    radial-gradient(circle at 15% 20%, rgba(176,146,109,.09), transparent 30%),
    radial-gradient(circle at 90% 85%, rgba(176,146,109,.08), transparent 26%),
    var(--paper);
}
.invitation { text-align: center; color: #3f534f; }
.invitation .section-inner { width: min(100% - 36px, 460px); }
.crest {
  width: min(240px, 68vw);
  max-height: 200px;
  margin: 0 auto 6px;
}
.crest-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  margin: 0 auto;
  object-fit: contain;
}
.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0 36px;
}
.family-grid h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: .02em;
}
.family-grid p {
  font-size: 17px;
  line-height: 1.45;
  margin: 10px 0 6px;
  letter-spacing: .03em;
}
.family-grid small {
  color: #6d807c;
  letter-spacing: .04em;
  font-size: 16px;
}
.invite-kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.invite-kicker.sub {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: .14em;
}
.names-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 26px 0 18px;
}
.names-large > span {
  display: block;
  font-family: var(--script);
  font-size: clamp(44px, 10.8vw, 62px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.28;
  padding: 8px 12px 12px;
  color: #3f534f;
  white-space: nowrap;
}
.names-large .vn-accent,
.names-large .vn-l {
  display: inline !important;
  padding: 0;
  white-space: nowrap;
}
.names-large b {
  display: block;
  margin: 6px 0 8px;
  font-family: var(--script);
  font-size: 30px;
  font-weight: 400;
  font-style: normal;
  color: #6d857f;
  line-height: 1.2;
}
.invite-please {
  margin: 8px 0 0;
  font-size: clamp(44px, 11vw, 56px);
  color: #3f534f;
}
.invite-lead {
  margin: 4px auto 0;
  max-width: 340px;
  font-size: 19px;
  font-style: italic;
  color: #5c706c;
}
.venue-name {
  margin: 22px 0 6px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.venue-address {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: #5c706c;
}
.map-directions {
  display: inline-block;
  margin: 16px 0 0;
  padding: 12px 28px;
  border: 1px solid #8a7355;
  background: #937a55;
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s ease, border-color .25s ease;
}
.map-directions:hover {
  background: #7d6849;
  border-color: #7d6849;
}
.date-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums tabular-nums;
}
.date-row i {
  width: 1px;
  height: 18px;
  background: currentColor;
  opacity: .45;
}
.lunar {
  margin: 10px 0 0;
  font-size: 17px;
  font-style: italic;
  color: #6d807c;
}
.blessing {
  margin: 28px 0 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.presence {
  margin: 0 auto;
  max-width: 320px;
  font-size: 16px;
  line-height: 1.55;
  color: #6d807c;
}

/* ===== Countdown ===== */
.countdown-section {
  background: #f6f1ea;
  text-align: center;
}
.countdown-section .section-inner { width: min(100% - 28px, 460px); }
.countdown-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 6.05vw, 33px);
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.35;
  text-transform: uppercase;
  color: #3a332c;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 28px auto 46px;
}
.countdown > div { color: #3a332c; }
.countdown strong {
  display: grid;
  place-items: center;
  min-height: 68px;
  background: #3c342e;
  color: #fff;
  border-radius: 4px;
  font-family: var(--serif);
  font-size: clamp(31px, 8.64vw, 44px);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.countdown span {
  display: block;
  margin-top: 8px;
  color: #8a8178;
  font-size: 16px;
}
.calendar-card {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 8px 8px 0;
}
.calendar-card h3 {
  font-size: clamp(62px, 15.12vw, 80px);
  margin: 0 0 18px;
  color: #3a332c;
  font-weight: 400;
}
.calendar-weekdays, .calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px 4px;
  align-items: center;
}
.calendar-weekdays {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: #6e655d;
}
.calendar-days { min-height: 220px; }
.calendar-days span {
  height: 36px;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: #3a332c;
  font-variant-numeric: lining-nums tabular-nums;
}
.calendar-days .active {
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 50%;
  background: #2c2622;
  color: #fff;
}

/* ===== Album ===== */
.album { background: #f7f4ef; }
.album .section-inner { width: min(100% - 28px, 460px); padding-top: 72px; }
.album-collage {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 10px 8px;
  align-items: center;
}
.collage-photo {
  margin: 0;
  background: #fff;
  padding: 8px 8px 22px;
  box-shadow: 0 14px 28px rgba(50, 40, 30, .12);
}
.collage-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.collage-a { transform: rotate(-3.5deg); }
.collage-b { transform: rotate(2.5deg); }
.collage-title { text-align: right; padding: 8px 6px 0 0; color: #3a332c; }
.collage-title .script {
  display: block;
  font-size: clamp(62px, 15.12vw, 82px);
  line-height: .75;
}
.collage-title strong {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .22em;
  font-size: clamp(18px, 4.32vw, 22px);
}
.collage-of {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .28em;
  font-size: clamp(18px, 4.54vw, 22px);
  line-height: 1.45;
  color: #3a332c;
}
.collage-wide {
  grid-column: 1 / -1;
  margin: 12px 4px 0;
  transform: rotate(-1deg);
}
.collage-wide img { aspect-ratio: 16 / 10; }

.album-slider {
  position: relative;
  margin-top: 36px;
}
.slider-viewport {
  position: relative;
  overflow: hidden;
  background: #efeae3;
}
.slider-track {
  display: flex;
  transition: transform .55s ease;
}
.slide { margin: 0; min-width: 100%; }
.slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  cursor: zoom-in;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(10, 8, 6, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open[hidden] { display: flex; }
.lightbox-image {
  max-width: min(100%, 920px);
  max-height: min(88svh, 100%);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  transform: scale(.96);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.lightbox.is-open .lightbox-image {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
}
.lightbox-nav svg {
  width: 22px;
  height: 22px;
}
.lightbox-nav.prev { left: max(10px, env(safe-area-inset-left)); }
.lightbox-nav.next { right: max(10px, env(safe-area-inset-right)); }
body.lightbox-open { overflow: hidden; }
.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  color: #3a332c;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(40, 30, 20, .16);
  display: grid;
  place-items: center;
  transform: translateY(-50%);
}
.slider-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
}
.slider-dots button.is-active {
  background: #fff;
  transform: scale(1.15);
}

/* ===== The Story of Love ===== */
.love-story { overflow: hidden; }
.love-story .section-inner { width: min(100% - 28px, 460px); }
.love-heading {
  margin: 0 0 36px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(29px, 6.7vw, 40px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #3a332c;
}
.love-heading em {
  font-family: var(--script);
  font-style: normal;
  font-size: 1.45em;
  letter-spacing: 0;
  text-transform: none;
  padding: 0 4px;
}
.love-board { position: relative; }
.love-groom,
.love-bride {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6px;
}
.love-bride { margin-top: 18px; }
.shot {
  margin: 0;
  background: #fff;
  padding: 8px 8px 26px;
  box-shadow: 0 16px 32px rgba(40, 32, 24, .13);
}
.shot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.shot-groom { width: 86%; transform: rotate(-7deg); }
.shot-bride { width: 88%; justify-self: end; transform: rotate(6deg); }
.role { text-align: center; color: #3a332c; }
.role span {
  display: block;
  font-family: var(--script);
  font-size: clamp(35px, 8.64vw, 46px);
  line-height: 1;
}
.role strong {
  display: block;
  margin-top: 6px;
  font-family: var(--script);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(28px, 6.5vw, 36px);
  letter-spacing: .02em;
  text-transform: none;
  line-height: 1.25;
}
.role-groom { padding-top: 18px; }
.role-bride { padding-bottom: 12px; }
.love-seal {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 3;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #5c3d28;
  font-family: var(--script);
  font-size: 40px;
  background:
    radial-gradient(circle at 36% 30%, #e7c48a 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, #c4894a 0 46%, #8d5a2c 47% 58%, #c4894a 59%);
  box-shadow:
    0 10px 18px rgba(80, 48, 22, .28),
    inset 0 2px 3px rgba(255, 255, 255, .35);
}
.love-seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(92, 52, 28, .45);
  border-radius: 50%;
}

.love-timeline {
  --love-rail: 32px;
  position: relative;
  margin: 52px 0 8px;
  padding-left: 0;
}
.love-timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--love-rail) / 2 - 1px);
  top: 8px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, rgba(184, 149, 106, .15), rgba(184, 149, 106, .75) 18%, rgba(184, 149, 106, .75) 82%, rgba(184, 149, 106, .12));
  border-radius: 2px;
  transform-origin: top center;
  transform: scaleY(0);
  animation: loveLineGrow 1.2s .25s ease forwards;
  pointer-events: none;
}
.love-chapter {
  display: grid;
  grid-template-columns: var(--love-rail) minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  margin: 0 0 34px;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .85s cubic-bezier(.2, .8, .2, 1),
    transform .85s cubic-bezier(.2, .8, .2, 1);
}
.love-chapter.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.love-chapter:nth-child(2).is-visible { transition-delay: .12s; }
.love-chapter:nth-child(3).is-visible { transition-delay: .24s; }
.love-chapter:not(.is-visible) { transition-delay: 0s; }
.love-heart {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: start;
  width: var(--love-rail);
  height: 26px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  z-index: 1;
}
.love-chapter.is-visible .love-heart svg {
  animation: loveHeartPop .55s cubic-bezier(.34, 1.4, .64, 1) both;
}
.love-heart svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: #c4a574;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 2px 4px rgba(120, 90, 50, .18));
}
.love-chapter h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(19px, 4.8vw, 23px);
  font-weight: 600;
  letter-spacing: .02em;
  color: #b8956a;
  line-height: 1.35;
}
.love-chapter p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: clamp(17px, 4.1vw, 19px);
  line-height: 1.72;
  color: #5c534c;
  text-align: justify;
  hyphens: auto;
}
.love-memory {
  margin: 28px auto 0;
  max-width: 78%;
  text-align: center;
  opacity: 0;
  transform: translateY(28px) rotate(-2deg);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}
.love-memory.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(-4deg);
  animation: loveMemoryFloat 5s ease-in-out 1s infinite;
}
.love-memory-frame {
  margin: 0;
  padding: 10px 10px 28px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(49, 39, 30, .14);
}
.love-memory-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: linear-gradient(135deg, #f3ece3, #e8dfd3);
}
.love-memory-frame:empty,
.love-memory-frame:not(:has(img)) {
  min-height: 220px;
}
.love-memory-caption,
.love-memory figcaption {
  margin-top: 14px;
  font-size: clamp(34px, 9vw, 46px);
  color: #6d807c;
  line-height: 1;
}
@keyframes loveLineGrow {
  to { transform: scaleY(1); }
}
@keyframes loveHeartPop {
  from { transform: scale(.65); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes loveMemoryFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-6px) rotate(-2.5deg); }
}

/* ===== Timeline (wedding day) ===== */
.timeline-section {
  min-height: min(92svh, 860px);
  color: #fff;
  background: #1f1916;
  overflow: hidden;
}
.timeline-bg {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1529636798458-92182e662485?auto=format&fit=crop&w=1500&q=88") center/cover;
  filter: saturate(.82) brightness(.88);
  transform: scale(1.04);
  animation: timelineBgDrift 18s ease-in-out infinite alternate;
}
.timeline-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(18, 14, 12, .72) 0%, rgba(18, 14, 12, .45) 42%, rgba(18, 14, 12, .78) 100%),
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .08), transparent 42%);
}
.timeline-content {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 88px;
}
.heading-script.light { color: #fff; }
.timeline-header {
  text-align: left;
  max-width: 520px;
  margin: 0 auto 36px;
}
.timeline-kicker {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.timeline-date {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .78);
}
.wedding-timeline {
  list-style: none;
  margin: 0 auto;
  padding: 8px 0 0 0;
  width: min(100%, 520px);
  position: relative;
}
.wedding-timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(228, 201, 160, .85) 12%, rgba(228, 201, 160, .85) 88%, transparent);
  transform-origin: top;
  transform: scaleY(0);
  animation: weddingTimelineLine 1.1s .35s ease forwards;
}
.wedding-timeline-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 10px 0 28px;
  opacity: 0;
  transform: translateX(-18px);
  transition:
    opacity .75s cubic-bezier(.2, .8, .2, 1),
    transform .75s cubic-bezier(.2, .8, .2, 1);
}
.wedding-timeline-step.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.wedding-timeline-step:nth-child(2).is-visible { transition-delay: .1s; }
.wedding-timeline-step:nth-child(3).is-visible { transition-delay: .2s; }
.wedding-timeline-marker {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}
.wedding-timeline-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e4c9a0;
  box-shadow: 0 0 0 4px rgba(228, 201, 160, .22);
  transform: scale(0);
  transition: transform .45s cubic-bezier(.34, 1.45, .64, 1) .15s;
}
.wedding-timeline-step.is-visible .wedding-timeline-dot {
  transform: scale(1);
}
.wedding-timeline-dot-glow {
  animation: weddingDotPulse 2.4s ease-in-out infinite;
}
.wedding-timeline-icon {
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, .92);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .5s ease .2s, transform .5s cubic-bezier(.34, 1.35, .64, 1) .2s;
}
.wedding-timeline-step.is-visible .wedding-timeline-icon {
  opacity: 1;
  transform: scale(1);
}
.wedding-timeline-body time {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 36px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .04em;
  font-variant-numeric: lining-nums tabular-nums;
}
.wedding-timeline-body h3 {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}
.wedding-timeline-rule {
  display: block;
  height: 1px;
  margin-top: 16px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1) .25s;
}
.wedding-timeline-step.is-visible .wedding-timeline-rule {
  transform: scaleX(1);
}
@keyframes timelineBgDrift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.07) translateY(-8px); }
}
@keyframes weddingTimelineLine {
  to { transform: scaleY(1); }
}
@keyframes weddingDotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(228, 201, 160, .22); }
  50% { box-shadow: 0 0 0 9px rgba(228, 201, 160, .08); }
}

/* ===== Forms ===== */
.rsvp, .wishes { text-align: center; }
.wishes { background: #efe9e0; }
.form-card {
  display: grid;
  gap: 18px;
  margin-top: 40px;
  text-align: left;
}
.form-card label > span {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
  color: var(--muted);
}
input, textarea, select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(64,50,39,.28);
  background: rgba(255,255,255,.34);
  border-radius: 0;
  padding: 13px 10px;
  color: var(--ink);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); }
.radio-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 17px;
}
.radio-row label { display: flex; align-items: center; gap: 7px; }
.radio-row input { width: auto; }
.btn-primary {
  margin-top: 8px;
  width: 100%;
  border: 0;
  border-radius: 3px;
  padding: 15px 18px;
  background: #937a55;
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: .08em;
  cursor: pointer;
}
.btn-primary:hover { background: #7d6849; }
.form-message { text-align: center; min-height: 24px; color: var(--gold-dark); }

/* ===== Toast ===== */
.toast-host {
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(92vw, 420px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  color: #3a332c;
  box-shadow:
    0 18px 40px rgba(49, 39, 30, .18),
    0 0 0 1px rgba(154, 124, 83, .12);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.toast-success .toast-icon {
  background: linear-gradient(135deg, #8fb89a, #5f8f6d);
  color: #fff;
}
.toast-error .toast-icon {
  background: linear-gradient(135deg, #e8a09a, #c86b62);
  color: #fff;
}
.toast-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}
.toast-text {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.35;
}
.wish-list { display: grid; gap: 12px; margin-top: 34px; text-align: left; }
.wish-card {
  padding: 18px;
  border: 1px solid rgba(86,67,51,.14);
  background: rgba(255,255,255,.42);
}
.wish-card strong { display: block; margin-bottom: 7px; }
.wish-card p { margin: 0; line-height: 1.55; color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); }

/* ===== Thank you ===== */
.thankyou {
  min-height: 88svh;
  overflow: hidden;
}
.thankyou > img {
  position: absolute; inset: 0;
  height: 100%;
  object-fit: cover;
}
.thankyou-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 12, 11, .35) 0%,
    rgba(14, 12, 11, .55) 45%,
    rgba(14, 12, 11, .62) 100%
  );
}
.thankyou-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #fff;
}
.thankyou-copy p { font-size: 20px; }
.thankyou-copy h2 { font-size: clamp(74px, 19.44vw, 125px); line-height: .8; margin: 12px 0 26px; }
.thankyou-copy span {
  font-family: var(--sans);
  letter-spacing: .1em;
  font-size: 12px;
}

/* ===== Desktop enhancement ===== */
@media (min-width: 760px) {
  .section-inner { padding: 120px 0; }
  .family-grid { gap: 22px; }
  .invitation .section-inner,
  .countdown-section .section-inner,
  .album .section-inner,
  .love-story .section-inner { width: min(100% - 48px, 480px); }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal],
  [data-reveal-stagger] > *,
  [data-reveal-text] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .love-timeline::before { transform: scaleY(1); animation: none; }
  .love-chapter { opacity: 1; transform: none; }
  .love-chapter .love-heart svg { animation: none; opacity: 1; transform: none; }
  .gate-tap-hand-inner { animation: none; }
  .gate-tap-hand .tap-ray { opacity: .9; animation: none; }
  .wax-seal-pulse { animation: none; opacity: 0; }
  .love-memory { opacity: 1; transform: none; }
  .love-memory.is-visible { animation: none; }
  .timeline-bg { animation: none; transform: scale(1.04); }
  .wedding-timeline::before { transform: scaleY(1); animation: none; }
  .wedding-timeline-step { opacity: 1; transform: none; }
  .wedding-timeline-dot { transform: scale(1); }
  .wedding-timeline-icon { opacity: 1; transform: none; }
  .wedding-timeline-rule { transform: scaleX(1); }
  .wedding-timeline-dot-glow { animation: none; }
}


