/* ============================================================
   SINH NHẬT — LAN ANH — Luxury Champagne Gold & Warm Ivory
   ============================================================ */
:root {
  --white: #ffffff;
  --pearl: #fdfdfc;
  --ink: #322d2a;
  --ink-soft: #6d6560;
  --gold: #b39968;
  --gold-deep: #7a6645;
  --gold-light: #eddcc2;
  --gold-pale: #faf7f2;
  --navy: #7a6645;
  --navy-deep: #7a6645;
  --blue: #b39968;
  --blue-soft: #eddcc2;
  --blue-pale: #faf7f2;
  --rose: #b39968;
  --rose-deep: #7a6645;
  --rose-soft: #eddcc2;
  --rose-pale: #faf7f2;
  --line: rgba(179, 153, 104, 0.18);

  --font-serif: 'Cormorant Garamond', serif;
  --font-letter: 'Lora', 'Cormorant Garamond', serif;
  --font-script: 'Alex Brush', cursive;
  --font-script2: 'Great Vibes', cursive;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Cinzel', var(--font-serif), serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --reveal-dur: 1.4s;

  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: "lnum" 1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: linear-gradient(180deg,
    #ffffff 0%,
    #fdfdfb 15%,
    #faf8f5 32%,
    #fcfbf9 50%,
    #faf8f5 68%,
    #fdfdfc 85%,
    #ffffff 100%);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.script { font-family: var(--font-script2); font-weight: 400; }

/* ============ REVEAL ON SCROLL — VARIED LUXURIOUS SLOW ANIMATIONS ============ */
.reveal,
.reveal-fade,
.reveal-fade-down,
.reveal-zoom,
.reveal-left,
.reveal-right,
.reveal-flip {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 2.1s cubic-bezier(0.12, 1, 0.28, 1), transform 2.1s cubic-bezier(0.12, 1, 0.28, 1);
}
.reveal-left { transform: translate3d(-40px, 0, 0); }
.reveal-right { transform: translate3d(40px, 0, 0); }
.reveal-fade-down { transform: translate3d(0, -32px, 0); }
.reveal-zoom { transform: scale(0.92) translateZ(0); }
.reveal-flip { transform: perspective(800px) rotateX(16deg) translateY(24px); }
.reveal { transform: translate3d(0, 36px, 0); }
.reveal-fade { transform: none; }

.reveal.is-visible,
.reveal-fade.is-visible,
.reveal-fade-down.is-visible,
.reveal-zoom.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-flip.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
}

.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .3s; }
.delay-3 { transition-delay: .45s; }
.delay-4 { transition-delay: .6s; }

/* ============ PARALLAX FLOATING CARDS ============ */
.parallax-float {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ============ DYNAMIC INTERACTION: 3D TILT EFFECT ============ */
.tilt-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.4, 1), box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.4, 1);
  will-change: transform;
}
.tilt-card:hover {
  z-index: 10;
}

/* ============ RIPPLE / TAP GLOW EFFECT ============ */
.tap-glow {
  position: relative;
  overflow: hidden;
}
.tap-glow::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
.tap-glow:active::after {
  width: 250px; height: 250px;
  opacity: 1;
  transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.6s ease-out;
}

/* ============ GLOWING PULSE ============ */
@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 rgba(179, 153, 104, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(179, 153, 104, 0); }
  100% { box-shadow: 0 0 0 0 rgba(179, 153, 104, 0); }
}
.pulse-gold {
  animation: goldPulse 2.5s infinite;
}

/* ============ SMOOTH SECTION SEPARATORS ============ */
.section-wave {
  position: relative;
  width: 100%;
  height: 48px;
  margin-top: -24px;
  margin-bottom: -24px;
  z-index: 2;
  pointer-events: none;
}
.section-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============ MAIN WRAPPER (Chứa nội dung trang, chạy trên ambient-layer) ============ */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ============ AMBIENT LAYER — BONG BÓNG XÀ PHÒNG ÁNH VÀNG CHAMPAGNE & TRẮNG NGỌC TRAI ============ */
.ambient-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.ambient-star {
  position: absolute;
  bottom: -14vh;
  border-radius: 50%;
  border: none;
  /* Hiệu ứng bong bóng khúc xạ ánh sáng vàng champagne dịu nhẹ, êm ái */
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.5) 14%, rgba(255, 255, 255, 0) 28%),
    radial-gradient(circle at 74% 76%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 18%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 50%, rgba(250, 243, 226, 0.3) 75%, rgba(214, 187, 136, 0.48) 94%, rgba(255, 255, 255, 0.82) 100%);
  box-shadow:
    inset 0 0 4px 1px rgba(255, 255, 255, 0.75),
    inset 0 -2px 6px rgba(185, 150, 90, 0.2),
    0 3px 10px rgba(170, 140, 80, 0.09);
  animation: bubbleFloat linear infinite;
  pointer-events: none;
}
@keyframes bubbleFloat {
  0%   { transform: translateY(0)      translateX(0px);  opacity: 0;   }
  4%   { opacity: 0.88; }
  20%  { transform: translateY(-20vh)  translateX(14px); opacity: 0.88; }
  38%  { transform: translateY(-38vh)  translateX(-8px); opacity: 0.85; }
  55%  { transform: translateY(-55vh)  translateX(16px); opacity: 0.88; }
  70%  { transform: translateY(-70vh)  translateX(-4px); opacity: 0.82; }
  84%  { transform: translateY(-84vh)  translateX(10px); opacity: 0.78; }
  95%  { opacity: 0.28; }
  100% { transform: translateY(-112vh) translateX(0px);  opacity: 0;   }
}

/* ============ 1. INTRO — LUXURY ENVELOPE OPENING ============ */
.intro-envelope {
  position: fixed; inset: 0; z-index: 1000;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #fdfcfa 50%, #f6f2ea 100%);
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
  padding: 24px 16px;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), filter 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.9s ease;
  pointer-events: auto;
}
.intro-envelope.is-hidden {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(10px);
  visibility: hidden;
  pointer-events: none;
}

.intro-envelope__container {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  width: 100%; max-width: 440px; height: auto; max-height: 90vh;
  position: relative; z-index: 2;
}

/* Header Text (You are invited to / Happy Birthday) */
.envelope-header {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2px;
}
.envelope-header__eyebrow {
  font-family: var(--font-head);
  font-size: clamp(0.72rem, 2.5vw, 0.85rem);
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 10px;
}
.envelope-header__title {
  font-family: var(--font-script2);
  font-size: clamp(2.8rem, 9vw, 3.8rem);
  font-weight: 400;
  color: var(--gold-deep);
  line-height: 1.1;
  filter: drop-shadow(0 2px 8px rgba(179, 153, 104, 0.2));
}

/* Envelope Main Box */
.envelope-box {
  position: relative;
  width: min(88vw, 340px);
  height: 215px;
  margin: 0;
  cursor: pointer;
  user-select: none;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.envelope-box:hover {
  transform: translateY(-3px) scale(1.015);
  filter: drop-shadow(0 12px 25px rgba(179, 153, 104, 0.2));
}

/* SVG Decorative Borders */
.envelope-svg-border {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

/* Envelope Inner Cavity Background */
.envelope-bg {
  position: absolute; inset: 0;
  border-radius: 12px;
  background: linear-gradient(165deg, #fdfcfa 0%, #f7f3ec 100%);
  border: 1.5px solid rgba(179, 153, 104, 0.3);
  box-shadow: 0 14px 35px rgba(179, 153, 104, 0.1);
  overflow: hidden;
  z-index: 1;
}

/* The Letter / Card Inside (BEHIND envelope-front pocket!) */
.envelope-card {
  position: absolute;
  top: 10px; left: 14px; right: 14px; bottom: 10px;
  background: #ffffff;
  border-radius: 8px;
  border: 1.5px solid rgba(220, 205, 175, 0.6);
  box-shadow: 0 4px 15px rgba(179, 153, 104, 0.06);
  padding: 16px 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  z-index: 2;
  transform-origin: center center;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.85s ease, z-index 0.01s;
}
.envelope-card__icon {
  color: var(--rose);
  margin-bottom: 4px;
}
.envelope-card__tag {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  color: var(--rose);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.envelope-card__name {
  font-family: var(--font-script2);
  font-size: 2.3rem;
  color: var(--gold-deep);
  line-height: 1.1;
  font-weight: 400;
}
.envelope-card__line {
  width: 45px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose-soft), transparent);
  margin: 6px 0;
}
.envelope-card__date {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 1px;
}

/* Flap (Nắp phong thư — Be ngà mềm mại) */
.envelope-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, #faf7f1 0%, #f1e9dd 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  z-index: 5;
  filter: drop-shadow(0 3px 6px rgba(179, 153, 104, 0.16));
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.01s linear 0.35s;
}

/* Envelope Front Pocket (Mặt túi trước — Trắng ngà thanh nhã) */
.envelope-front {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(145deg, #fdfbfa 0%, #f6f1e8 55%, #eee5d6 100%);
  clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%);
  border-bottom: 1.5px solid rgba(179, 153, 104, 0.35);
}

/* Envelope Guest Text */
.envelope-guest {
  position: absolute;
  right: 22px; bottom: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 2.8vw, 1.08rem);
  color: var(--gold-deep);
  z-index: 6;
  pointer-events: none;
}
.envelope-guest span {
  font-family: var(--font-script2);
  font-style: normal;
  font-size: 1.35em;
  font-weight: 600;
  color: var(--rose);
  padding-left: 4px;
}

/* Prompt Below Envelope */
.envelope-prompt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.88rem, 2.5vw, 0.98rem);
  color: var(--gold);
  text-align: center;
  margin-top: 4px;
  animation: promptPulse 2s ease-in-out infinite;
}
@keyframes promptPulse {
  0%, 100% { opacity: 0.65; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

/* STAGE 1: OPEN FLAP */
.intro-envelope.is-opening .envelope-prompt {
  opacity: 0;
  animation: none;
  transition: opacity 0.3s ease;
}
.intro-envelope.is-opening .envelope-flap {
  transform: rotateX(180deg);
  z-index: 0;
}

/* STAGE 2: CARD SLIDES UP */
.intro-envelope.is-sliding-up .envelope-card {
  transform: translateY(-120%) scale(0.96);
  z-index: 2;
  box-shadow: 0 14px 30px rgba(179, 153, 104, 0.16);
}

/* STAGE 3: CARD FALLS TO CENTER RESTING IN FULL VIEW */
.intro-envelope.is-card-center .envelope-card {
  transform: translateY(-12px) scale(0.98);
  z-index: 100;
  box-shadow: 0 16px 36px rgba(179, 153, 104, 0.18);
}

@media (max-width: 480px) {
  .intro-envelope.is-card-center .envelope-card {
    transform: translateY(-6px) scale(0.95);
  }
}
/* ============ MUSIC TOGGLE ============ */
.music-toggle {
  position: fixed;
  bottom: clamp(16px, 4vw, 24px);
  right: clamp(16px, 4vw, 24px);
  z-index: 990;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.2px solid rgba(179, 153, 104, 0.3);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(191, 161, 95, 0.16);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.music-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 26px rgba(191, 161, 95, 0.26);
}

.music-toggle:active {
  transform: scale(0.95);
}

.music-toggle__icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease);
}

/* Khi đang phát nhạc */
.music-toggle.is-playing {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  animation: musicPulseGlow 2.2s ease-in-out infinite;
}

.music-toggle.is-playing .music-toggle__icon {
  animation: musicIconSpin 4.5s linear infinite;
}

@keyframes musicIconSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes musicPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(191, 161, 95, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(191, 161, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(191, 161, 95, 0); }
}

/* ============ SHARED ============ */
.section-eyebrow { font-size: 11px; letter-spacing: .32em; color: var(--rose); text-align: center; font-weight: 600; }
.section-title { font-size: clamp(34px, 8vw, 52px); text-align: center; color: var(--gold-deep); margin: 6px 0 22px; }
.hr-line { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 18px auto; opacity: 0.6; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.2px solid rgba(179, 153, 104, 0.45); color: var(--gold-deep); font-size: 12px; letter-spacing: .12em;
  padding: 11px 22px; border-radius: 30px; margin-top: 20px;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.btn-outline:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }
.btn-fill {
  width: 100%; padding: 14px; border: none; border-radius: 30px; cursor: pointer;
  background: linear-gradient(135deg, #b39968 0%, #cfb889 100%); color: var(--white);
  font-size: 13px; letter-spacing: .1em; font-weight: 600;
  box-shadow: 0 8px 22px rgba(179, 153, 104, .25);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-fill:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(179, 153, 104, .35); }
.btn-fill:disabled { opacity: .6; cursor: not-allowed; }

section { position: relative; padding: 60px 20px; max-width: 720px; margin: 0 auto; }

/* ============ 2. HERO (Phong cách thiết kế Ảnh 1) ============ */
.hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  padding: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.hero__img-wrap { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 15, 10, 0.02) 0%, rgba(20, 15, 10, 0.12) 50%, rgba(18, 13, 8, 0.62) 100%);
}
.hero__sparks { position: absolute; inset: 0; pointer-events: none; }

/* Sparkles trang trí góc trên theo Ảnh 1 */
.hero__sparkle {
  position: absolute;
  z-index: 2;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(20px, 5vw, 28px);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  animation: sparkleTwinkle 2.8s ease-in-out infinite alternate;
}
.hero__sparkle--tl { top: 25%; left: 8%; }
.hero__sparkle--tr { top: 12%; right: 10%; }
@keyframes sparkleTwinkle {
  0% { opacity: 0.35; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

.hero__bottom {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 20px 48px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(10.5px, 2.8vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  margin-bottom: 4px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.hero__name {
  font-family: var(--font-script2);
  font-size: clamp(48px, 14vw, 84px);
  color: #ffffff;
  line-height: 1.05;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
  margin-bottom: 8px;
}

.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 180px;
  margin: 2px 0 10px;
}
.hero__divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 234, 207, 0.75), transparent);
}
.hero__divider-diamond {
  font-size: 8px;
  color: var(--gold-light);
  opacity: 0.9;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(15px, 4vw, 20px);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero__date-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
  width: 100%;
}
.hero__date-line {
  width: 36px;
  height: 1px;
  background: rgba(245, 234, 207, 0.75);
}
.hero__date-text {
  font-family: var(--font-sans);
  font-size: clamp(13px, 3.5vw, 15px);
  letter-spacing: 0.38em;
  color: var(--gold-light);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero__scroll-arrow {
  color: rgba(255, 255, 255, 0.8);
  animation: bounceDown 2s ease-in-out infinite;
  cursor: pointer;
  margin-top: 4px;
}
@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* ============ 3. INVITE — Phong cách Thiệp Mời Liền Mạch (Không Card Nền) ============ */
/* ============ 3. INVITE — High-End Airy Invitation Card ============ */
.invite {
  max-width: 560px;
  padding-top: 36px;
  padding-bottom: 48px;
}
.invite__card {
  position: relative;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 16px;
  text-align: center;
}

/* Top Decoration */
.invite__flourish-top {
  color: #B99A5F;
  margin: 0 auto 18px;
  display: flex;
  justify-content: center;
  opacity: 0.85;
}
.invite__flourish-top svg {
  max-width: 100%;
  height: auto;
}

/* Cake Icon */
.invite__cake-icon {
  color: #B99A5F;
  margin: 0 auto 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.9;
}

/* Greeting: THÂN MỜI & Tên Khách */
.invite__greeting-group {
  margin-bottom: 30px;
}
.invite__label {
  font-family: var(--font-sans);
  font-size: clamp(11.5px, 2.8vw, 13px);
  letter-spacing: 0.38em;
  font-weight: 600;
  color: #252A32;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.invite__guest-wrap {
  display: inline-block;
}
.invite__to-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(34px, 8.5vw, 48px);
  color: #B99A5F;
  line-height: 1.15;
  font-weight: 600;
}

/* Invitation Text & Main Focal Point */
.invite__celebrant-group {
  margin-bottom: 32px;
}
.invite__sub-eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(10.5px, 2.6vw, 12px);
  letter-spacing: 0.24em;
  font-weight: 600;
  text-transform: uppercase;
  color: #77736D;
  margin-bottom: 10px;
}
.invite__celebrant-name {
  font-family: var(--font-script2), var(--font-serif);
  font-style: italic;
  font-size: clamp(52px, 14vw, 76px);
  color: #252A32;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}

/* Birthday Information */
.invite__event-time {
  font-family: var(--font-sans);
  font-size: clamp(11.5px, 2.8vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #77736D;
  margin-bottom: 34px;
}
.invite__event-time strong {
  color: #252A32;
  font-weight: 700;
}

/* 3-Column Date Block (THÁNG 08 | 30 | NĂM 2026) */
.invite__date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3.8vw, 24px);
  margin: 0 auto 36px;
  max-width: 380px;
}
.invite__date-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(98px, 26vw, 126px);
  border-top: 1px solid #B99A5F;
  border-bottom: 1px solid #B99A5F;
  padding: 8px 0;
  box-sizing: border-box;
}
.invite__date-text {
  font-family: var(--font-sans);
  font-size: clamp(10.5px, 2.6vw, 12px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #252A32;
  white-space: nowrap;
  display: block;
  text-align: center;
  width: 100%;
  line-height: 1.2;
}
.invite__date-day {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
}
.invite__day-num {
  font-family: var(--font-serif);
  font-size: clamp(48px, 12vw, 68px);
  font-weight: 600;
  color: #252A32;
  line-height: 1;
}

/* Venue Block */
.invite__venue-block {
  margin-bottom: 30px;
}
.invite__venue-intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13.5px;
  color: #77736D;
  margin-bottom: 6px;
}
.invite__venue-name {
  font-family: var(--font-sans);
  font-size: clamp(15px, 4vw, 18.5px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #252A32;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.invite__venue-address {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #77736D;
  line-height: 1.5;
}

/* Action Button: CHỈ ĐƯỜNG */
.invite__btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}
.invite__btn-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 30px;
  border: 1.2px solid #B99A5F;
  border-radius: 30px;
  background: #FDFBF7;
  color: #252A32;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  box-shadow: 0 2px 10px rgba(185, 154, 95, 0.1);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.invite__btn-directions:hover {
  background: #B99A5F;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(185, 154, 95, 0.22);
}

/* ============ 4. STANDING PHOTO PARALLAX + COUNTDOWN ============ */
.standing-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  min-height: 420px;
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
}
@media (min-width: 641px) {
  .standing-section {
    min-height: 460px;
    max-height: 520px;
  }
}

/* Ảnh đứng yên 100% full màn hình (Fixed viewport pinning) */
.standing-section__bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  pointer-events: none;
  will-change: transform;
}

.standing-section__overlay {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 32px 20px;
  min-height: 420px;
  background: linear-gradient(180deg, rgba(35, 26, 18, 0.55) 0%, rgba(22, 16, 10, 0.82) 100%);
}
@media (min-width: 641px) {
  .standing-section__overlay {
    min-height: 460px;
  }
}

.standing-photo__quote-decor {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-light);
  margin-bottom: 16px;
  opacity: 0.9;
}
.standing-photo__line {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.standing-photo__diamond {
  font-size: 10px;
  color: var(--gold-light);
}

.standing-photo__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(23px, 6vw, 32px);
  color: var(--white);
  max-width: 580px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

.countdown-luxury {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(4px, 1.6vw, 10px);
  max-width: 260px;
  margin: 0 auto 16px;
}
.countdown-luxury__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 38px;
}
.countdown-luxury__num {
  font-family: var(--font-sans);
  font-size: clamp(19px, 4.4vw, 26px);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.countdown-luxury__label {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  margin-top: 4px;
  font-weight: 600;
}
.countdown-luxury__sep {
  font-family: var(--font-serif);
  font-size: clamp(13px, 3vw, 18px);
  color: var(--gold-light);
  margin-top: 1px;
  opacity: 0.85;
}

.standing-photo__sub {
  font-size: clamp(11.5px, 2.8vw, 13px);
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.88);
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  margin-top: 4px;
}

/* ============ 5. CALENDAR (Transparent Floating Minimalist Design) ============ */
.calendar-timeline-section {
  padding-top: 30px;
  padding-bottom: 40px;
}
.calendar-wrap {
  margin-bottom: 30px;
  text-align: center;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.calendar__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 22px;
}
.calendar__single-title {
  font-family: var(--font-script2);
  font-size: clamp(38px, 9.5vw, 52px);
  color: var(--gold-deep);
  line-height: 1.1;
  font-weight: 400;
  filter: drop-shadow(0 2px 8px rgba(191, 161, 95, 0.22));
}
.calendar__title-line {
  width: 32px;
  height: 2px;
  background: var(--rose-soft);
  margin-top: 6px;
  border-radius: 2px;
  opacity: 0.8;
}

/* Card lịch: Hoàn toàn trong suốt không background, không border, không shadow */
.calendar__card {
  position: relative;
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 8px;
  max-width: 380px;
  margin: 0 auto;
}
.calendar__card::before {
  display: none !important;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-family: var(--font-sans);
  font-size: clamp(11.5px, 2.9vw, 13px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  opacity: 0.9;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 8px;
  font-size: clamp(14px, 3.8vw, 15.5px);
  font-family: var(--font-sans);
  color: var(--ink);
  text-align: center;
}
.calendar__grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  font-weight: 500;
  opacity: 0.9;
}
.calendar__grid .is-empty {
  height: 38px;
}

/* Highlight ngày 30: Khoanh trái tim vàng champagne nổi bật */
.calendar__grid .is-target {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar__heart-wrap {
  position: relative;
  width: 50px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar__heart-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: 48px;
  height: 44px;
  color: var(--gold);
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(179, 153, 104, 0.45));
  animation: heartPulse 1.8s ease-in-out infinite;
}
.calendar__target-num {
  position: relative;
  z-index: 2;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--gold-deep);
  line-height: 1;
}
@keyframes heartPulse {
  0%, 100% { transform: translate(-50%, -46%) scale(1); }
  50% { transform: translate(-50%, -46%) scale(1.16); }
}

/* Dresscode */
.dresscode { text-align: center; }

/* ============ 6. LETTER — Luxury Frame ============ */
.letter { position: relative; overflow: visible; }
.letter__swirl { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); color: var(--gold-light); opacity: .75; }

/* Letter card với đường viền nét vẽ luxury */
.letter__card {
  position: relative;
  background: var(--white);
  border-radius: 2px;
  padding: 52px 36px 44px;
  box-shadow: 0 20px 60px rgba(179, 153, 104, .09), 0 2px 8px rgba(179, 153, 104, .04);
  border: 1px solid rgba(179, 153, 104, 0.2);
}
.letter__card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold-light);
  pointer-events: none;
  border-radius: 1px;
}
.letter__card::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(179, 153, 104, 0.3);
  pointer-events: none;
  border-radius: 1px;
}
.letter__corner {
  position: absolute;
  color: var(--gold);
  opacity: 0.65;
  width: 28px; height: 28px;
}
.letter__corner--tl { top: 20px; left: 20px; }
.letter__corner--tr { top: 20px; right: 20px; transform: scaleX(-1); }
.letter__corner--bl { bottom: 20px; left: 20px; transform: scaleY(-1); }
.letter__corner--br { bottom: 20px; right: 20px; transform: scale(-1); }

.letter__header-decor {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 24px; color: var(--gold-light); opacity: 0.8;
}
.letter__header-line { flex: 1; max-width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light)); }
.letter__header-line:last-child { background: linear-gradient(90deg, var(--gold-light), transparent); }
.letter__header-icon { font-size: 14px; color: var(--gold); }

.letter__paragraph {
  font-family: var(--font-letter);
  font-size: 15.5px;
  line-height: 1.88;
  text-align: justify;
  text-align-last: left;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-variant-numeric: lining-nums proportional-nums;
  font-feature-settings: "lnum" 1;
}
.letter__sign {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 28px;
  padding-top: 18px;
  padding-right: 18px;
  border-top: 1px solid var(--line);
}
.letter__closing { font-size: 13px; letter-spacing: .08em; color: var(--ink-soft); }
.letter__author { font-size: 32px; color: var(--gold-deep); margin-top: 2px; }

/* ============ 7. BỘ ĐÔI ẢNH KỶ NIỆM (Artistic, Doodles & Dynamic Floating) ============ */
.dual-photos-section {
  padding: 30px 0 0;
  max-width: 560px;
  margin: 0 auto;
  overflow: visible;
}
.dual-photos {
  position: relative;
  width: 100%;
  padding: 30px 16px 26px;
  box-sizing: border-box;
  overflow: visible;
}

.dual-photos__decor-frame {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 18px;
  right: 18px;
  border: 1.2px solid rgba(179, 153, 104, 0.45);
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
}

.dual-photos__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(179, 153, 104, 0.85);
  border-style: solid;
}
.dual-photos__corner--tl {
  top: -7px; left: -7px;
  border-width: 1.8px 0 0 1.8px;
}
.dual-photos__corner--br {
  bottom: -7px; right: -7px;
  border-width: 0 1.8px 1.8px 0;
}

/* Nét vẽ nghệ thuật & lấp lánh xung quanh ảnh */
.dual-photos__sparkle {
  position: absolute;
  color: var(--gold);
  pointer-events: none;
  z-index: 3;
  animation: sparkleTwinkle 2.6s ease-in-out infinite alternate;
}
.dual-photos__sparkle--1 {
  top: 8px; left: 8%;
  font-size: 18px;
  animation-delay: 0.2s;
}
.dual-photos__sparkle--2 {
  bottom: 12px; left: 6%;
  font-size: 15px;
  animation-delay: 1.1s;
}
.dual-photos__sparkle--3 {
  top: 10px; right: 8%;
  font-size: 16px;
  animation-delay: 0.6s;
}

.dual-photos__doodle-heart {
  position: absolute;
  bottom: 8px;
  right: 10%;
  color: var(--gold);
  opacity: 0.85;
  pointer-events: none;
  z-index: 3;
  animation: doodleFloat 3.5s ease-in-out infinite alternate;
}
@keyframes doodleFloat {
  0% { transform: translateY(0) rotate(-8deg); }
  100% { transform: translateY(-6px) rotate(6deg); }
}

.dual-photos__badge {
  position: absolute;
  top: 4px;
  right: 14%;
  z-index: 4;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(179, 153, 104, 0.45);
  padding: 4px 11px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(179, 153, 104, 0.12);
  pointer-events: none;
  animation: badgeSway 4s ease-in-out infinite alternate;
}
@keyframes badgeSway {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg) translateY(-3px); }
}

.dual-photos__bokeh {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
}
.dual-photos__bokeh--1 {
  top: 4px; right: 12%;
  width: 20px; height: 20px;
  background: var(--gold-light);
  opacity: 0.55;
}
.dual-photos__bokeh--2 {
  bottom: 10px; left: 4%;
  width: 22px; height: 22px;
  background: #fdf6e9;
  opacity: 0.65;
}

.dual-photos__container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.dual-photos__card {
  position: relative;
  background: var(--white);
  padding: 5px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(191, 161, 95, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.95);
  overflow: visible;
  transition: transform 0.4s var(--ease), box-shadow 0.3s var(--ease);
  cursor: zoom-in;
}
.dual-photos__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Hiệu ứng chuyển động động nhẹ liên tục của 2 ảnh */
.dual-photos__card--left {
  width: 53%;
  aspect-ratio: 3 / 4;
  z-index: 1;
  animation: floatLeftCard 6s ease-in-out infinite alternate;
}
.dual-photos__card--right {
  width: 53%;
  aspect-ratio: 3 / 4;
  margin-left: -14%;
  z-index: 2;
  animation: floatRightCard 6.8s ease-in-out infinite alternate;
}

@keyframes floatLeftCard {
  0%   { transform: rotate(-5deg) translateY(-4px); }
  100% { transform: rotate(-2.5deg) translateY(3px); }
}
@keyframes floatRightCard {
  0%   { transform: rotate(5deg) translateY(7px); }
  100% { transform: rotate(2.5deg) translateY(-2px); }
}

.dual-photos__card:hover {
  z-index: 10 !important;
  transform: scale(1.05) rotate(0deg) !important;
  box-shadow: 0 16px 36px rgba(191, 161, 95, 0.24);
}

/* ============ 8. ĐƯỜNG ĐẾN BỮA TIỆC (Không nền, hài hoà liền mượt) ============ */
.location-section {
  padding: 30px 16px 50px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.location-map-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(179, 153, 104, 0.22);
  box-shadow: 0 10px 30px rgba(179, 153, 104, 0.08), inset 0 0 0 3px rgba(255, 255, 255, 0.6);
  margin: 18px 0 24px;
}
.location-map-iframe {
  display: block;
  width: 100%;
  height: 280px;
}

.location-actions {
  display: flex;
  justify-content: center;
}
.btn-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #b39968 0%, #cfb889 100%);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 13px 26px;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(179, 153, 104, 0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-location:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(179, 153, 104, 0.35);
}

/* ============ 8. RSVP ============ */
.rsvp { text-align: center; }
.rsvp__cap { color: var(--gold); margin-bottom: 10px; }
.rsvp__form { text-align: left; margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-size: 11px; letter-spacing: .12em; color: var(--gold-deep); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea, .select-field {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); font-family: var(--font-sans); font-size: 14px; color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field textarea:focus, .select-field:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-pale); }
.rsvp__status { text-align: center; font-size: 13px; color: var(--gold-deep); min-height: 18px; margin-top: 4px; }

/* ============ 9. GUESTBOOK (Vertical Auto-Scroll Box) ============ */
section.guestbook {
  text-align: center;
  padding-left: 16px;
  padding-right: 16px;
  max-width: 620px;
  margin: 0 auto;
}
.guestbook__box {
  position: relative;
  margin: 22px auto 0;
  max-width: 500px;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(179, 153, 104, 0.28);
  box-shadow: 0 10px 32px rgba(179, 153, 104, 0.08);
  overflow: hidden;
}
.guestbook__box::before,
.guestbook__box::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
  z-index: 2;
  pointer-events: none;
}
.guestbook__box::before {
  top: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
}
.guestbook__box::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
}
.guestbook__box-inner {
  position: relative;
  height: 330px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.guestbook__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  overflow-y: auto;
  padding: 18px 14px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-light) transparent;
  -webkit-overflow-scrolling: touch;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: scroll-position;
}
.guestbook__list::-webkit-scrollbar {
  width: 4px;
}
.guestbook__list::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 4px;
}
.guestbook__entry {
  width: 100%;
  background: var(--pearl);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid rgba(179, 153, 104, 0.18);
  box-sizing: border-box;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  contain: content;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.guestbook__entry:hover {
  border-color: var(--gold);
}
.guestbook__entry-name {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--gold-deep);
  font-size: 15px;
  line-height: 1.25;
}
.guestbook__entry-msg {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 5px;
  line-height: 1.5;
  word-break: break-word;
}
.guestbook__entry-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.gb-badge {
  font-size: 9.5px;
  padding: 2.5px 8px;
  border-radius: 20px;
  font-weight: 500;
}
.gb-badge--yes {
  background: #e4f4e8;
  color: #238045;
}
.gb-badge--no {
  background: #fae8ee;
  color: #a84252;
}
.guestbook__entry-time {
  font-size: 10px;
  color: var(--ink-soft);
  opacity: 0.75;
}
.guestbook__empty {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 50px 16px;
  font-style: italic;
}

.footer-wrap {
  position: relative;
  background-image: url('../assets/images/photo4.jpg');
  background-size: cover;
  background-position: center 15%;
  border-top: 1px solid rgba(191, 161, 95, 0.3);
  overflow: hidden;
  min-height: 520px;
}
@media (min-width: 641px) {
  .footer-wrap {
    min-height: 580px;
    background-position: center 20%;
  }
}

.footer-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 24, 16, 0.08) 0%, rgba(32, 24, 16, 0.42) 50%, rgba(22, 14, 8, 0.90) 100%);
  z-index: 1;
}

.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  min-height: 520px;
  box-sizing: border-box;
  padding: 240px 24px 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  max-width: none;
}
@media (min-width: 641px) {
  .footer {
    min-height: 580px;
    padding: 280px 24px 54px;
  }
}

.footer__names {
  font-family: var(--font-script2);
  font-size: clamp(48px, 9vw, 68px);
  color: var(--gold-light);
  letter-spacing: 0.02em;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.6);
  margin-bottom: 6px;
}

.footer__note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(12.5px, 3.2vw, 15px);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  max-width: 440px;
  line-height: 1.6;
}

/* Thẻ Designed riêng biệt */
.designed-bar {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-top: 1px solid rgba(191, 161, 95, 0.2);
  padding: 7px 16px;
  text-align: center;
}
.footer__designed {
  font-size: 11px;
  color: var(--ink-soft);
  opacity: 0.9;
  letter-spacing: 0.04em;
  margin: 0;
}
.footer__designed a {
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.3s ease;
}
.footer__designed a:hover {
  opacity: 0.75;
}

/* ============ LIGHTBOX GALLERY ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
  user-select: none;
}
.lightbox.is-open {
  opacity: 1; visibility: visible;
}
.lightbox__overlay {
  position: absolute; inset: 0;
  background: rgba(24, 18, 12, 0.92);
  backdrop-filter: blur(8px);
}
.lightbox__content {
  position: relative; z-index: 1;
  max-width: 92vw; max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lightbox__img-container {
  position: relative;
  max-width: 90vw;
  max-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 72vh;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  transition: opacity 0.22s ease, transform 0.22s ease;
  object-fit: contain;
}
.lightbox__img.is-animating {
  opacity: 0.35;
  transform: scale(0.97);
}

.lightbox__close {
  position: absolute;
  top: -46px; right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

/* Nút Điều hướng Tiến / Lùi */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}
.lightbox__nav--prev {
  left: -56px;
}
.lightbox__nav--next {
  right: -56px;
}

.lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 420px;
  margin-top: 14px;
  padding: 0 8px;
  box-sizing: border-box;
}
.lightbox__caption {
  color: rgba(255, 255, 255, 0.95);
  font-size: 13.5px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: left;
}
.lightbox__counter {
  color: var(--gold-light);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .lightbox__nav {
    width: 38px; height: 38px;
    background: rgba(0, 0, 0, 0.5);
  }
  .lightbox__nav--prev { left: 4px; }
  .lightbox__nav--next { right: 4px; }
  .lightbox__close { top: -44px; right: 2px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  section.invite {
    padding-top: 28px;
    padding-bottom: 38px;
    padding-left: 12px;
    padding-right: 12px;
  }
  section.calendar-timeline-section {
    padding-left: 10px;
    padding-right: 10px;
  }
  .invite__card {
    padding: 0 4px;
  }
  .invite__greeting-group {
    margin-bottom: 22px;
  }
  .invite__celebrant-group {
    margin-bottom: 24px;
  }
  .invite__event-time {
    margin-bottom: 26px;
  }
  .invite__date-row {
    gap: 8px;
    margin-bottom: 28px;
  }
  .invite__date-col {
    width: 88px;
  }
  .invite__day-num {
    font-size: 44px;
  }
  .invite__venue-block {
    margin-bottom: 22px;
  }
  .invite__btn-wrap {
    margin-bottom: 20px;
  }
  .invite__btn-directions {
    padding: 9px 26px;
  }
  .calendar__card {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4px;
    box-sizing: border-box;
  }

  /* Standing photo 4:3 trên mobile */
  .standing-photo {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  /* ===== Letter mobile: tăng margin-padding viền thư ===== */
  .letter__card {
    padding: 44px 24px 34px;
  }

  /* Album mobile: portrait 3:4, landscape 16:9 */
  .parallax-album__frame {
    padding: 24px 12px 48px;
    gap: 10px;
  }
  .parallax-album__row { gap: 8px; }
  .parallax-album__item--landscape { aspect-ratio: 16 / 9; }
  .parallax-album__item--portrait { aspect-ratio: 3 / 4; }
}

@media (min-width: 760px) {
  section { padding: 90px 20px; }
  .hero { min-height: 100vh; }
}
