/* ============================================================
   SINH NHẬT — KHÁNH QUỲNH — Modern Beige & Pastel Aqua Luxury
   ============================================================ */
:root {
  --white: #ffffff;
  --pearl: #fbf9f4;
  --ink: #1f333c;
  --ink-soft: #546e79;
  --navy: #2d6f7f;
  --navy-deep: #194653;
  --blue: #4f9db0;
  --blue-soft: #9fd1de;
  --blue-pale: #e4f3f7;
  --beige: #f3ece1;
  --beige-subtle: #fbf8f2;
  --sage: #7ca58c;
  --sage-soft: #b8d6c3;
  --sage-pale: #eaf4ee;
  --gold: #b89550;
  --gold-light: #eadeba;
  --line: rgba(45, 111, 127, 0.16);

  --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', 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,
    #f0f9fc 0%,
    #e6f5f9 18%,
    #dff0f5 36%,
    #e8f6f9 54%,
    #f1fafc 72%,
    #e4f3f7 88%,
    #f5fbfd 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);
}

/* 1. Trượt nhẹ từ dưới lên (Fade Up) */
.reveal {
  transform: translateY(38px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 2. Fade in đơn thuần nhẹ nhàng (Pure Fade) */
.reveal-fade {
  transform: none;
}
.reveal-fade.is-visible {
  opacity: 1;
}

/* 3. Nhẹ nhàng hạ từ trên xuống (Fade Down) */
.reveal-fade-down {
  transform: translateY(-28px);
}
.reveal-fade-down.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 4. Phóng to mượt mà (Zoom In) */
.reveal-zoom {
  transform: scale(0.93) translateY(20px);
}
.reveal-zoom.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* 5. Trượt nhẹ từ bên trái sang (Slide Left) */
.reveal-left {
  transform: translateX(-32px) translateY(8px);
}
.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* 6. Trượt nhẹ từ bên phải sang (Slide Right) */
.reveal-right {
  transform: translateX(32px) translateY(8px);
}
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* On mobile screens: use vertical-only translations for reveal-left/right to prevent horizontal scrollbar vectors */
@media (max-width: 640px) {
  .reveal-left,
  .reveal-right {
    transform: translateY(28px);
  }
}

/* 7. Lật nhẹ 3D Hoàng Gia (Soft 3D Tilt) */
.reveal-flip {
  transform: perspective(800px) rotateX(12deg) translateY(28px);
}
.reveal-flip.is-visible {
  opacity: 1;
  transform: perspective(800px) rotateX(0deg) translateY(0);
}

/* Các khoảng hoãn nhịp nhàng cho các phần tử con (chậm rãi, êm ái, nối đuôi nhau) */
.delay-1 { transition-delay: 0.32s; }
.delay-2 { transition-delay: 0.64s; }
.delay-3 { transition-delay: 0.96s; }
.delay-4 { transition-delay: 1.28s; }
.delay-5 { transition-delay: 1.60s; }
.delay-6 { transition-delay: 1.92s; }
.delay-7 { transition-delay: 2.24s; }

main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ============ AMBIENT LAYER — BONG BÓNG XÀ PHÒNG PASTEL (Chạy ở nền dưới) ============ */
.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 màng nước trong suốt khúc xạ ánh sáng dịu nhẹ, không bị chói */
  background:
    /* Điểm lóa sáng trắng êm dịu góc trên trái */
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.6) 10%, rgba(255, 255, 255, 0) 26%),
    /* Vệt sáng phản quang góc dưới phải */
    radial-gradient(circle at 74% 76%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 16%, rgba(255, 255, 255, 0) 38%),
    /* Mép viền cầu vồng khúc xạ pastel nhẹ nhàng */
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 60%, rgba(215, 245, 255, 0.4) 82%, rgba(145, 215, 235, 0.65) 96%, rgba(255, 255, 255, 0.8) 100%);
  box-shadow:
    inset 0 0 4px 1px rgba(255, 255, 255, 0.75),
    inset 0 -2px 8px rgba(110, 195, 220, 0.3),
    0 3px 14px rgba(70, 150, 175, 0.12);
  animation: bubbleFloat linear infinite;
  pointer-events: none;
}
@keyframes bubbleFloat {
  0%   { transform: translateY(0)      translateX(0px);  opacity: 0;   }
  4%   { opacity: 0.9; }
  20%  { transform: translateY(-20vh)  translateX(14px); opacity: 0.9; }
  38%  { transform: translateY(-38vh)  translateX(-8px); opacity: 0.88; }
  55%  { transform: translateY(-55vh)  translateX(16px); opacity: 0.9; }
  70%  { transform: translateY(-70vh)  translateX(-4px); opacity: 0.85; }
  84%  { transform: translateY(-84vh)  translateX(10px); opacity: 0.78; }
  95%  { opacity: 0.25; }
  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%, #f2fafe 0%, #e2f4f8 50%, #cbebf3 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: #2d6f7f;
  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: #194653;
  line-height: 1.1;
  filter: drop-shadow(0 2px 8px rgba(79, 157, 176, 0.25));
}

/* 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(45, 111, 127, 0.24));
}

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

/* Envelope Inner Cavity Background — Xanh pastel thuần */
.envelope-bg {
  position: absolute; inset: 0;
  border-radius: 12px;
  background: linear-gradient(165deg, #eaf6f9 0%, #cae8f2 100%);
  border: 1.5px solid rgba(79, 157, 176, 0.4);
  box-shadow: 0 14px 35px rgba(45, 111, 127, 0.15);
  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: linear-gradient(180deg, #ffffff 0%, #f4fbfd 100%);
  border-radius: 8px;
  border: 1.5px solid rgba(135, 205, 222, 0.5);
  box-shadow: 0 4px 15px rgba(45, 111, 127, 0.08);
  padding: 16px 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  z-index: 2; /* Starts behind front pocket (z-index: 4) */
  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(--navy);
  margin-bottom: 4px;
}
.envelope-card__tag {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  color: #2d6f7f;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.envelope-card__name {
  font-family: var(--font-script2);
  font-size: 2.3rem;
  color: #194653;
  line-height: 1.1;
  font-weight: 400;
}
.envelope-card__line {
  width: 45px; height: 1px;
  background: linear-gradient(90deg, transparent, #4f9db0, transparent);
  margin: 6px 0;
}
.envelope-card__date {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: #546e79;
  letter-spacing: 1px;
}

/* Flap (Nắp phong thư — Xanh pastel dịu mát) */
.envelope-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, #d3eff6 0%, #b2e2ee 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  z-index: 5;
  filter: drop-shadow(0 3px 6px rgba(45, 111, 127, 0.18));
  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 — Xanh pastel hài hoà) */
.envelope-front {
  position: absolute;
  inset: 0;
  z-index: 4; /* Pocket covers the card while it is inside! */
  pointer-events: none;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(145deg, #e3f5f9 0%, #c4e9f3 55%, #b1e0ed 100%);
  clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%);
  border-bottom: 1.5px solid rgba(79, 157, 176, 0.45);
}

/* 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: #194653;
  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: #2d6f7f;
  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: #2d6f7f;
  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(45, 111, 127, 0.22);
}

/* 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(45, 111, 127, 0.25);
}

@media (max-width: 480px) {
  .intro-envelope.is-card-center .envelope-card {
    transform: translateY(-6px) scale(0.95);
  }
}
/* ============ MUSIC TOGGLE (Luxury Sound Wave Pulse) ============ */
.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(45, 111, 127, 0.25);
  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(--navy);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(45, 111, 127, 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(45, 111, 127, 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(--navy);
  color: var(--white);
  border-color: var(--navy);
  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(45, 111, 127, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(45, 111, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 111, 127, 0); }
}

/* ============ SHARED ============ */
.section-eyebrow { font-size: 11px; letter-spacing: .32em; color: var(--blue); text-align: center; }
.section-title { font-size: clamp(34px, 8vw, 52px); text-align: center; color: var(--navy); margin: 6px 0 22px; }
.hr-line { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 18px auto; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.2px solid var(--gold); color: var(--navy); 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(--navy); color: var(--white); transform: translateY(-2px); }
.btn-fill {
  width: 100%; padding: 14px; border: none; border-radius: 30px; cursor: pointer;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: var(--white);
  font-size: 13px; letter-spacing: .1em; font-weight: 600;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-fill:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(45, 111, 127, .25); }
.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(16, 32, 40, 0.08) 0%, rgba(16, 32, 40, 0.25) 55%, rgba(12, 24, 30, 0.74) 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.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  margin-bottom: 4px;
}

.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(234, 222, 186, 0.65), 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(234, 222, 186, 0.65);
}
.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 — theo phong cách ảnh mẫu 1 ============ */
.invite {
  max-width: 640px;
}
.invite__card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 44px 28px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(45, 111, 127, .08);
}
.invite__card::before {
  content: ''; position: absolute; inset: 10px;
  border: 1px solid var(--gold-light);
  pointer-events: none;
}
.invite__swirl { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); color: var(--blue-soft); opacity: .55; }
.invite__cap { color: var(--gold); margin-top: 6px; }
.invite__label { font-size: 12px; letter-spacing: .32em; color: var(--navy); margin-top: 16px; font-weight: 600; }

.invite__guest-wrap { display: inline-block; position: relative; margin-top: 6px; margin-bottom: 12px; }
.invite__to-name { font-size: clamp(28px, 7.5vw, 42px); color: var(--gold); }
.invite__guest-underline { width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin-top: -4px; }

.invite__sub { font-size: 12px; letter-spacing: .12em; color: var(--ink-soft); line-height: 1.6; margin-top: 8px; }

/* Box Ngày Giờ Địa Điểm theo Phong cách Ảnh 1 */
.invite-box {
  display: flex;
  align-items: center;
  border: none;
  margin: 30px 0;
  padding: 24px 10px;
  text-align: left;
}
.invite-box__date-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  flex-shrink: 0;
}
.invite-box__num {
  font-family: var(--font-sans);
  font-size: clamp(30px, 7vw, 42px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.invite-box__divider-v {
  width: 1.5px;
  background: var(--blue);
  align-self: stretch;
  margin: 0 18px;
  opacity: 0.5;
}
.invite-box__info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.invite-box__time-group { margin-bottom: 14px; }
.invite-box__time {
  font-family: var(--font-sans);
  font-size: clamp(16px, 4.2vw, 21px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.invite-box__lunar {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.invite-box__divider-h {
  height: 1px;
  background: rgba(45, 111, 127, 0.18);
  margin: 10px 0 14px;
}
.invite-box__venue-group { }
.invite-box__venue {
  font-family: var(--font-sans);
  font-size: clamp(15px, 4vw, 19px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.invite-box__hall {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-top: 4px;
}
.invite-box__address {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.5;
  font-style: italic;
}
.invite-box__map-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  background: rgba(184, 149, 80, 0.08);
  border: 1px solid rgba(184, 149, 80, 0.45);
  padding: 5px 14px;
  border-radius: 20px;
  margin-top: 10px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.invite-box__map-btn:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.invite__closing {
  font-family: var(--font-script2);
  font-size: clamp(20px, 5vw, 26px);
  color: var(--navy);
  margin-top: 24px;
  line-height: 1.55;
}

/* ============ 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(18, 36, 44, 0.52) 0%, rgba(12, 26, 33, 0.80) 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: #246d80;
  line-height: 1.1;
  font-weight: 400;
  filter: drop-shadow(0 2px 8px rgba(79, 157, 176, 0.25));
}
.calendar__title-line {
  width: 32px;
  height: 2px;
  background: var(--blue-soft);
  margin-top: 6px;
  border-radius: 2px;
  opacity: 0.75;
}

/* 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: #3d8194;
  margin-bottom: 12px;
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  opacity: 0.85;
}

.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: #356b7c;
  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 29: Khoanh trái tim nổi bật */
.calendar__grid .is-target {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar__heart-wrap {
  position: relative;
  width: 44px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar__heart-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: 42px;
  height: 38px;
  color: #2d7a8e;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(45, 111, 127, 0.3));
  animation: heartPulse 1.8s ease-in-out infinite;
}
.calendar__target-num {
  position: relative;
  z-index: 2;
  font-size: 15.5px;
  font-weight: 800;
  color: #194653;
  line-height: 1;
}
@keyframes heartPulse {
  0%, 100% { transform: translate(-50%, -46%) scale(1); }
  50% { transform: translate(-50%, -46%) scale(1.16); }
}

/* Timeline dạng đường dọc ở Center đan xen */
.timeline-center {
  position: relative;
  margin: 44px 0 70px;
  padding: 24px 0;
}
.timeline-center__line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--blue) 50%, var(--navy) 100%);
  transform: translateX(-50%);
  opacity: 0.7;
}
.timeline-center__item {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 76px;
  position: relative;
}
.timeline-center__item:last-child {
  margin-bottom: 10px;
}
.timeline-center__side {
  width: 50%;
  box-sizing: border-box;
}
.timeline-center__side--left {
  text-align: right;
  padding: 0 46px 0 10px;
}
.timeline-center__side--right {
  text-align: left;
  padding: 0 10px 0 46px;
}

.timeline-center__node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-pale);
  border: 2px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--navy);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(45, 111, 127, 0.18);
  transition: transform 0.3s var(--ease);
}
.timeline-center__node svg {
  width: 22px;
  height: 22px;
}
.timeline-center__dot { display: none; }
.timeline-center__time {
  font-family: var(--font-head);
  font-size: clamp(17px, 4.4vw, 21px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.timeline-center__title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 5.2vw, 25px);
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 3px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.timeline-center__desc {
  font-size: clamp(12px, 3.2vw, 13.5px);
  color: var(--ink-soft);
  line-height: 1.45;
  letter-spacing: 0.01em;
  opacity: 0.88;
}

/* Dresscode Swatches đè lên nhau */
.dresscode { text-align: center; }
.dresscode__swatches {
  display: flex; justify-content: center; align-items: center;
  margin-top: 20px; padding: 10px 0;
}
.dresscode__swatch {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: -4px 6px 16px rgba(45, 111, 127, 0.16);
  margin-left: -14px;
  transition: transform 0.3s var(--ease), z-index 0.3s;
  position: relative;
}
.dresscode__swatch:first-child { margin-left: 0; }
.dresscode__swatch:hover { transform: translateY(-6px) scale(1.1); z-index: 10; }

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

/* 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(45, 111, 127, .09), 0 2px 8px rgba(45, 111, 127, .04);
  border: 1px solid rgba(45, 111, 127, 0.1);
}
.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(184, 149, 80, 0.25);
  pointer-events: none;
  border-radius: 1px;
}
.letter__corner {
  position: absolute;
  color: var(--gold);
  opacity: 0.55;
  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(--navy); 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(184, 149, 80, 0.4);
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
}

.dual-photos__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(184, 149, 80, 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;
}
@keyframes sparkleTwinkle {
  0% { transform: scale(0.8) rotate(-6deg); opacity: 0.4; }
  100% { transform: scale(1.25) rotate(12deg); opacity: 0.95; filter: drop-shadow(0 0 6px rgba(184, 149, 80, 0.6)); }
}

.dual-photos__doodle-heart {
  position: absolute;
  bottom: 8px;
  right: 10%;
  color: #3b8ea3;
  opacity: 0.75;
  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.92);
  border: 1px solid rgba(79, 157, 176, 0.4);
  padding: 4px 11px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(45, 111, 127, 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__tape {
  position: absolute;
  width: 32px;
  height: 12px;
  background: rgba(234, 222, 186, 0.65);
  border-left: 1px dashed rgba(184, 149, 80, 0.4);
  border-right: 1px dashed rgba(184, 149, 80, 0.4);
  z-index: 4;
  pointer-events: none;
}
.dual-photos__tape--tl {
  top: -4px; left: 16px;
  transform: rotate(-18deg);
}
.dual-photos__tape--tr {
  top: -4px; right: 16px;
  transform: rotate(20deg);
}

.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(--blue-soft);
  opacity: 0.5;
}
.dual-photos__bokeh--2 {
  bottom: 10px; left: 4%;
  width: 22px; height: 22px;
  background: #c3e6f0;
  opacity: 0.55;
}

.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(45, 111, 127, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.85);
  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(45, 111, 127, 0.22);
}

/* ============ 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(45, 111, 127, 0.22);
  box-shadow: 0 10px 30px rgba(45, 111, 127, 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, var(--navy) 0%, var(--blue) 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(45, 111, 127, 0.22);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-location:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(45, 111, 127, 0.32);
}

/* ============ 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(--blue); margin-bottom: 6px; }
.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(--blue); box-shadow: 0 0 0 3px var(--blue-pale); }
.rsvp__status { text-align: center; font-size: 13px; color: var(--navy); 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(184, 149, 80, 0.35);
  box-shadow: 0 10px 32px rgba(45, 111, 127, 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(--blue-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(--blue-light);
  border-radius: 4px;
}
.guestbook__entry {
  width: 100%;
  background: var(--pearl);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  border: 1px solid rgba(159, 209, 222, 0.45);
  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(--blue);
}
.guestbook__entry-name {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  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(184, 149, 80, 0.25);
  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(16, 32, 40, 0.06) 0%, rgba(16, 32, 40, 0.38) 50%, rgba(10, 22, 28, 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(45, 111, 127, 0.12);
  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(--navy);
  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(10, 26, 33, 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,
  section.calendar-timeline-section {
    padding-left: 10px;
    padding-right: 10px;
  }
  .invite__card {
    padding: 34px 12px 28px;
  }
  .invite-box {
    padding: 16px 6px;
  }
  .invite-box__date-col {
    padding: 0 10px;
  }
  .invite-box__divider-v {
    margin: 0 8px;
  }
  .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;
  }

  /* ===== Timeline mobile: giữ bố cục đường line ở chính giữa, node to rõ, khoảng cách thoáng đãng ===== */
  .timeline-center {
    padding: 24px 0;
    margin: 32px 0 52px;
  }
  .timeline-center__line {
    left: 50%;
    transform: translateX(-50%);
  }
  .timeline-center__item {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 68px;
    position: relative;
  }
  .timeline-center__item:last-child {
    margin-bottom: 8px;
  }
  .timeline-center__side {
    width: 50%;
    box-sizing: border-box;
  }
  .timeline-center__side--left {
    text-align: right;
    padding: 0 36px 0 2px;
  }
  .timeline-center__side--right {
    text-align: left;
    padding: 0 2px 0 36px;
  }
  .timeline-center__node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 3px 12px rgba(45, 111, 127, 0.16);
  }
  .timeline-center__node svg {
    width: 20px;
    height: 20px;
  }
  .timeline-center__time {
    font-family: var(--font-head);
    font-size: clamp(14.5px, 3.9vw, 16.5px);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.06em;
  }
  .timeline-center__title {
    font-family: var(--font-serif);
    font-size: clamp(17px, 4.6vw, 20.5px);
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 2px;
    line-height: 1.22;
  }
  .timeline-center__desc {
    font-size: clamp(11px, 2.9vw, 12px);
    color: var(--ink-soft);
    line-height: 1.4;
    letter-spacing: 0.01em;
    opacity: 0.88;
    margin-top: 2px;
  }

  /* 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; }
}
