/* ============================================================
   SINH NHẬT TUỔI 18 — ANHH THƯ — Modern Green & Brown Luxury
   (Biến --navy/--blue/--gold vẫn giữ tên cũ để không phải sửa
   toàn bộ file, nhưng giá trị màu đã đổi sang tông xanh lá cây
   đậm, trắng ngà và nâu đồng — khớp với ảnh nền cây xanh và
   váy ren trắng ngà của khách)
   ============================================================ */
:root {
  --white: #ffffff;
  --pearl: #eff6ea;
  --pastel-green-light: #f4f9f2;
  --pastel-green-mid: #d2e7cb;
  --pastel-green-deep: #b3d7a6;
  --ink: #2b2a20;
  --ink-soft: #525a4d;
  --navy: #3f5c3a;
  --navy-deep: #223a20;
  --blue: #5b8252;
  --blue-soft: #91ce86;
  --blue-pale: #deead7;
  --gold: #a98251;
  --gold-light: #d9c39c;
  --line: rgba(63, 92, 58, 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', 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);
  /* Nền tĩnh nhạt làm base, gradient chính chạy trên từng section */
  background: #f4f9f2;
  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-down,
.reveal-zoom,
.reveal-left,
.reveal-right,
.reveal-flip {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

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

/* 5. Trượt từ bên phải sang (Slide Right) */
.reveal-right {
  transform: translateX(36px) translateY(12px);
}
.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(32px);
  }
}

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

/* Các khoảng hoãn nhịp nhàng cho các phần tử con */
.delay-1 { transition-delay: 0.18s; }
.delay-2 { transition-delay: 0.36s; }
.delay-3 { transition-delay: 0.54s; }
.delay-4 { transition-delay: 0.72s; }

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

/* ============ AMBIENT LAYER — CÁNH HOA ĐÀO HỒNG BAY RƠI (Chạy ở nền dưới) ============ */
.ambient-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.ambient-star {
  position: absolute; top: -6vh;
  background: linear-gradient(135deg, #e6ead9 0%, #a7bd94 55%, #6f8f5f 100%);
  border-radius: 100% 0 100% 0;
  opacity: .85;
  box-shadow: 0 0 6px 1px rgba(167, 189, 148, .5);
  animation: starFall linear infinite, starTwinkle ease-in-out infinite;
}
@keyframes starFall {
  0% { transform: translateY(-6vh) translateX(0) rotate(0deg); }
  100% { transform: translateY(108vh) translateX(var(--drift, 20px)) rotate(var(--spin, 320deg)); }
}
@keyframes starTwinkle {
  0%, 100% { opacity: .55; }
  50% { opacity: .95; }
}

/* ============ 1. INTRO — LUXURY ENVELOPE OPENING ============ */
.intro-envelope {
  position: fixed; inset: 0; z-index: 1000;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #ffffff 0%, #eff6eb 50%, #d8e9d1 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: #5c7a52;
  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: #223a20;
  line-height: 1.1;
  filter: drop-shadow(0 2px 8px rgba(111, 143, 95, 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(111, 143, 95, 0.28));
}

/* 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, #f8f6ef 0%, #e6ead9 100%);
  border: 1.5px solid rgba(111, 143, 95, 0.4);
  box-shadow: 0 14px 35px rgba(63, 92, 58, 0.18);
  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(111, 143, 95, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 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: #5c7a52;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.envelope-card__name {
  font-family: var(--font-script2);
  font-size: 2.3rem;
  color: #223a20;
  line-height: 1.1;
  font-weight: 400;
}
.envelope-card__line {
  width: 45px; height: 1px;
  background: linear-gradient(90deg, transparent, #6f8f5f, transparent);
  margin: 6px 0;
}
.envelope-card__date {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: #635f4d;
  letter-spacing: 1px;
}

/* Flap (Nắp phong thư) */
.envelope-flap {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, #e6ead9 0%, #c9d4b8 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  z-index: 5;
  filter: drop-shadow(0 3px 6px rgba(63, 92, 58, 0.2));
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.01s linear 0.35s;
}

/* Envelope Front Pocket (Lower part) */
.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, #eef1e4 0%, #cdd8bd 100%);
  clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%);
  border-bottom: 1.5px solid rgba(111, 143, 95, 0.4);
}

/* 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: #223a20;
  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: #5c7a52;
  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: #3f5c3a;
  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 (Keeps z-index: 2 behind front pocket z-index: 4, so it physically slides OUT from inside the pocket!) */
.intro-envelope.is-sliding-up .envelope-card {
  transform: translateY(-120%) scale(0.96);
  z-index: 2;
  box-shadow: 0 14px 30px rgba(63, 92, 58, 0.25);
}

/* STAGE 3: CARD FALLS TO CENTER RESTING IN FULL VIEW (z-index pops to 100 in front of envelope) */
.intro-envelope.is-card-center .envelope-card {
  transform: translateY(-12px) scale(0.98);
  z-index: 100;
  box-shadow: 0 16px 36px rgba(63, 92, 58, 0.3);
}

@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(63, 92, 58, 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(63, 92, 58, 0.18);
  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(63, 92, 58, 0.28);
}

.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: Nút đổi tông hồng navy đậm + icon xoay mượt + vòng sóng âm box-shadow không bị tràn màn hình */
.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(63, 92, 58, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(63, 92, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 92, 58, 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(63, 92, 58,.28); }
.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(28, 36, 20, 0.08) 0%, rgba(28, 36, 20, 0.22) 55%, rgba(20, 28, 16, 0.72) 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(231, 215, 173, 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(231, 215, 173, 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 {
  width: 100%;
  max-width: 100%;
  padding: 60px 20px;
  /* Nhạt đầu trang, dần dần sáng lên nhẹ */
  background: linear-gradient(180deg, #f4f9f2 0%, #edf7e7 100%);
}
.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(63, 92, 58, .1);
  max-width: 640px;
  margin: 0 auto;
}
.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 {
  /* Dùng Be Vietnam Pro — font sans-serif hỗ trợ tiếng Việt, số đều nét, không lên xuống */
  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 {
  /* Be Vietnam Pro: font sans hỗ trợ tiếng Việt, không lỗi nét đậm nhạt */
  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(63, 92, 58, 0.2);
  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(185, 151, 77, 0.08);
  border: 1px solid rgba(185, 151, 77, 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(30, 38, 22, 0.52) 0%, rgba(30, 38, 22, 0.78) 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);
}

/* Câu Quote được phóng to rõ nét trên mobile */
.standing-photo__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(21px, 5.6vw, 30px);
  color: var(--white);
  max-width: 580px;
  line-height: 1.58;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.countdown-luxury {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(10px, 3.5vw, 24px);
  margin-bottom: 16px;
}
.countdown-luxury__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.countdown-luxury__num {
  font-family: var(--font-sans);
  font-size: clamp(24px, 6vw, 38px);
  font-weight: 500;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.countdown-luxury__label {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  margin-top: 6px;
  font-weight: 600;
}
.countdown-luxury__sep {
  font-family: var(--font-serif);
  font-size: clamp(18px, 4.5vw, 28px);
  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 (Giữ tông màu gốc hồng pastel, hẹp chiều dọc, 2026 to, khoanh trái tim) ============ */
section.calendar-timeline-section {
  padding: 0 !important;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
}
.calendar-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 44px 20px 36px;
  text-align: center;
  /* Tiếp nối mượt mà từ đáy savedate (#f6faf5) → dịu dàng sang xanh pastel (#e0f2dc) */
  background: linear-gradient(180deg, #f6faf5 0%, #ebf5e9 45%, #e0f2dc 100%);
}

.calendar__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.calendar__title-line {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--navy), transparent);
  opacity: 0.35;
}
.calendar__month-year {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-script2);
  font-size: clamp(34px, 8.5vw, 46px);
  color: var(--navy);
  font-weight: 400;
  line-height: 1.1;
}
.calendar__month,
.calendar__year {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.calendar__dot {
  font-size: 22px;
  color: var(--gold);
}

/* Card lịch: không background, viền mỏng nhẹ luxury */
.calendar__card {
  position: relative;
  background: transparent;
  backdrop-filter: none;
  border: 1px solid rgba(63, 92, 58, 0.22);
  border-radius: 8px;
  padding: 20px 14px 18px;
  max-width: 390px;
  margin: 0 auto;
  box-shadow: none;
}
.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 12px;
  text-align: center;
  border-bottom: 1px dashed rgba(63, 92, 58, 0.18);
  padding-bottom: 8px;
}
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 10px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--ink);
  text-align: center;
}
.calendar__grid span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  font-weight: 400;
}
.calendar__grid .is-empty {
  height: 34px;
}
.calendar__grid .is-target {
  position: relative;
  font-weight: 700;
  color: var(--navy);
}
.calendar__grid .heart-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: 44px;
  height: 40px;
  color: var(--navy);
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(63, 92, 58, 0.3));
}
.calendar__grid .num-text {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

/* Timeline dạng đường dọc ở Center đan xen */
.timeline-center {
  position: relative;
  margin: 36px 0 60px;
  padding: 20px 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: 44px;
  position: relative;
}
.timeline-center__side {
  width: 50%;
  padding: 0 36px;
}
.timeline-center__side--left { text-align: right; }
.timeline-center__side--right { text-align: left; }

.timeline-center__node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  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 0 12px rgba(185, 151, 77, 0.2);
}
/* Ẩn dot cũ khi dùng icon */
.timeline-center__dot { display: none; }
.timeline-center__time {
  font-family: var(--font-head);
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.timeline-center__title {
  font-family: var(--font-serif);
  font-size: clamp(16px, 4.2vw, 19px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}
.timeline-center__desc {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ============ 6. LETTER — Luxury Frame ============ */
.letter {
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  padding: 60px 20px;
  /* Tiếp nối sau parallax, chuyển màu xanh pastel mềm mại → dẫn vào savedate (#bde1b5) */
  background: linear-gradient(180deg, #edf7e8 0%, #d6edd0 50%, #bde1b5 100%);
}
.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(63, 92, 58,.12), 0 2px 8px rgba(63, 92, 58,.06);
  border: 1px solid rgba(63, 92, 58,0.08);
  max-width: 680px;
  margin: 0 auto;
}
/* Đường viền trong có hiệu ứng nhiều lớp */
.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(185, 151, 77, 0.25);
  pointer-events: none;
  border-radius: 1px;
}
/* SVG nét vẽ góc trang trí */
.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); }

/* Nét vẽ trang trí đầu thư */
.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; 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 (Phong cách Luxury đè trùm khung mẫu) ============ */
.dual-photos-section {
  padding: 40px 0 32px;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  /* Tiếp sau invite, đậm dần → khớp với letter đầu */
  background: linear-gradient(180deg, #edf7e7 0%, #d0e9c8 50%, #e8f5e2 100%);
}
.dual-photos {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Khung viền vàng phía sau với góc bo tròn */
.dual-photos__decor-frame {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 20px;
  right: 20px;
  border: 1.2px solid rgba(231, 215, 173, 0.85);
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
}

/* 2 Góc L vàng ở ngoài khung viền */
.dual-photos__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(185, 151, 77, 0.9);
  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;
}

/* Đốm mờ trang trí xung quanh */
.dual-photos__bokeh {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(3px);
}
.dual-photos__bokeh--1 {
  top: 4px; right: 12%;
  width: 14px; height: 14px;
  background: var(--blue-soft);
  opacity: 0.6;
}
.dual-photos__bokeh--2 {
  bottom: 10px; right: 2%;
  width: 16px; height: 16px;
  background: var(--navy);
  opacity: 0.3;
}

/* Bố cục 2 ảnh đè tràn ra ngoài khung viền */
.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: 4px;
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.4s var(--ease), z-index 0.3s;
  cursor: zoom-in;
}
.dual-photos__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

/* Card bên trái: nghiêng âm (-5deg), đè tràn vượt khung viền bên trái */
.dual-photos__card--left {
  width: 52%;
  aspect-ratio: 3 / 4;
  transform: rotate(-5deg) translateY(-4px);
  z-index: 1;
}

/* Card bên phải: nghiêng dương (5deg), đè tràn vượt khung viền bên phải & đè lên card trái */
.dual-photos__card--right {
  width: 52%;
  aspect-ratio: 3 / 4;
  margin-left: -14%;
  transform: rotate(5deg) translateY(8px);
  z-index: 2;
}

.dual-photos__card:hover {
  z-index: 10;
  transform: scale(1.04) rotate(0deg);
  box-shadow: none;
}

/* ============ 6.5 SAVE THE DATE — Ảnh ngang 4:3 với text nghệ thuật ============ */
.savedate-section {
  padding: 48px 0 64px;
  width: 100%;
  max-width: 100%;
  /* Nhạt mượt ở top (#bde1b5), dải chuyển màu dịu êm dưới ảnh lan tỏa mượt mà xuống calendar (#f6faf5) */
  background: linear-gradient(180deg, #bde1b5 0%, #cae7c4 20%, #d8efd5 50%, #e7f5e5 80%, #f6faf5 100%);
}
.savedate-frame {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(63, 92, 58, 0.18);
}
.savedate-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 8s var(--ease);
}
.savedate-frame:hover img,
.savedate-frame.is-visible img {
  transform: scale(1.06);
}
.savedate-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 28, 16, 0) 30%, rgba(18, 24, 14, 0.65) 100%);
}
.savedate-text {
  position: absolute;
  left: 0; right: 0; bottom: 10%;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}
.savedate-text__title {
  font-family: var(--font-script2);
  font-size: clamp(42px, 11vw, 76px);
  line-height: 1;
  color: var(--white);
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.6);
  margin: 0;
}

/* ============ 7.5 ALBUM 5 ẢNH ============ */
.album-section {
  padding: 36px 20px 44px;
  width: 100%;
  max-width: 100%;
  /* Khớp calendar cuối (#e0f2dc) → chuyển mượt sang xanh pastel dịu mát → hoà sang rsvp (#e5f4e2) */
  background: linear-gradient(180deg, #e0f2dc 0%, #c4e4be 35%, #a8d5a1 55%, #c8e7c2 80%, #e5f4e2 100%);
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, minmax(110px, auto));
  gap: 10px;
  max-width: 640px;
  margin: 24px auto 0;
}
.album-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: zoom-in;
  box-shadow: 0 8px 22px rgba(63, 92, 58, 0.12);
}
.album-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.album-item:hover img { transform: scale(1.08); }
.album-item::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.35);
  pointer-events: none;
}
.album-item--1 { grid-column: 1 / 4; grid-row: 1 / 3; }
.album-item--2 { grid-column: 4 / 7; grid-row: 1 / 2; }
.album-item--3 { grid-column: 4 / 6; grid-row: 2 / 3; }
.album-item--4 { grid-column: 6 / 7; grid-row: 2 / 3; }
.album-item--5 { grid-column: 1 / 7; grid-row: 3 / 4; aspect-ratio: 16/6; }

@media (max-width: 640px) {
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, minmax(90px, auto));
  }
  .album-item--1 { grid-column: 1 / 3; grid-row: 1 / 2; aspect-ratio: 16/10; }
  .album-item--2 { grid-column: 1 / 2; grid-row: 2 / 3; aspect-ratio: 3/4; }
  .album-item--3 { grid-column: 2 / 3; grid-row: 2 / 3; aspect-ratio: 3/4; }
  .album-item--4 { grid-column: 1 / 2; grid-row: 3 / 4; aspect-ratio: 3/4; }
  .album-item--5 { grid-column: 2 / 3; grid-row: 3 / 4; aspect-ratio: 3/4; }
}

/* ============ 8. RSVP ============ */
.rsvp {
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding: 60px 20px;
  /* Khớp album cuối (#e5f4e2) → sáng dần đều xuống rsvp (#f7fbf6) */
  background: linear-gradient(180deg, #e5f4e2 0%, #eff7ec 40%, #f7fbf6 100%);
}
.rsvp__cap { color: var(--gold); margin-bottom: 10px; }
.rsvp__form {
  text-align: left;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.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 + FOOTER (gradient đậm->nhạt) ============ */
section.guestbook {
  text-align: center;
  padding: 50px 20px 60px;
  width: 100%;
  max-width: 100%;
  /* Khớp rsvp cuối (#f7fbf6) → trắng ngà tinh khôi đến footer */
  background: linear-gradient(180deg, #f7fbf6 0%, #fbfdfa 50%, #ffffff 100%);
}
.guestbook__carousel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0 6px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.guestbook__list { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px; cursor: grab; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.guestbook__list::-webkit-scrollbar { display: none; }
.guestbook__entry { flex: 0 0 220px; background: var(--white); border-radius: 14px; padding: 16px; text-align: left; box-shadow: none; border: 1px solid var(--line); }
.guestbook__entry-name { font-family: var(--font-serif); font-weight: 600; color: var(--navy); font-size: 15px; }
.guestbook__entry-msg { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; }
.guestbook__entry-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.gb-badge { font-size: 10px; padding: 3px 8px; border-radius: 20px; }
.gb-badge--yes { background: #e3f2e6; color: #1d7a3a; }
.gb-badge--no { background: #f5ece0; color: #8a4b32; }
.guestbook__entry-time { font-size: 10px; color: var(--ink-soft); opacity: .7; }
.guestbook__empty { font-size: 13px; color: var(--ink-soft); padding: 20px; }
.guestbook__nav { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; flex-shrink: 0; }
.guestbook__nav:hover { background: var(--navy); color: var(--white); }

.footer-wrap {
  position: relative;
  background-image: url('../assets/images/photo4.jpg');
  background-size: cover;
  background-position: center 15%;
  border-top: 1px solid rgba(185, 151, 77, 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(18, 24, 14, 0.05) 0%, rgba(18, 24, 14, 0.35) 50%, rgba(14, 18, 10, 0.88) 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-size: clamp(14px, 3.8vw, 17px);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  max-width: 480px;
  line-height: 1.5;
}

/* Thẻ Designed riêng biệt màu trắng */
.designed-bar {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-top: 1px solid rgba(63, 92, 58, 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 ============ */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__overlay { position: absolute; inset: 0; background: rgba(34, 58, 32,.85); }
.lightbox__content { position: relative; z-index: 1; max-width: 90vw; max-height: 86vh; text-align: center; }
.lightbox__img { max-width: 90vw; max-height: 78vh; border-radius: 8px; }
.lightbox__caption { color: var(--white); font-size: 13px; margin-top: 10px; }
.lightbox__close { position: absolute; top: -40px; right: 0; background: none; border: none; color: var(--white); font-size: 30px; cursor: pointer; }

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  section.invite {
    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;
  }
  section.calendar-timeline-section {
    padding: 0 !important;
  }
  .calendar__card {
    max-width: calc(100vw - 28px);
    margin: 0 auto;
    padding: 16px 10px;
    box-sizing: border-box;
  }

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

  /* ===== Save the Date mobile: tràn 100% full chiều ngang, dải màu chuyển nhẹ dịu dưới ảnh ===== */
  .savedate-section {
    padding: 32px 0 52px;
  }
  .savedate-frame {
    border-radius: 0;
    box-shadow: none;
  }

  /* ===== Letter mobile: giảm padding 2 bên, mở rộng không gian đọc không chạm viền ===== */
  section.letter {
    padding-left: 10px;
    padding-right: 10px;
  }
  .letter__card {
    padding: 38px 14px 28px;
  }
  .letter__card::before {
    inset: 5px;
  }
  .letter__card::after {
    inset: 9px;
  }
  .letter__corner--tl { top: 11px; left: 11px; }
  .letter__corner--tr { top: 11px; right: 11px; }
  .letter__corner--bl { bottom: 11px; left: 11px; }
  .letter__corner--br { bottom: 11px; right: 11px; }

  /* ===== Timeline mobile: layout 1 cột, đường thẳng bên trái ===== */
  .timeline-center {
    padding: 10px 0;
  }
  /* Đường dọc dịch sang trái */
  .timeline-center__line {
    left: 17px;
    transform: translateX(-50%);
  }
  /* Mỗi item dùng grid: cột 1 = node (34px), cột 2 = nội dung */
  .timeline-center__item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 2px 14px;
    align-items: start;
    margin-bottom: 32px;
    min-height: unset;
    position: relative;
  }
  /* Node vào cột 1 */
  .timeline-center__node {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: relative;
    left: 0;
    top: 2px;
    transform: none;
    width: 34px;
    height: 34px;
    margin: 0;
  }
  /* Ẩn toàn bộ side mặc định */
  .timeline-center__side { display: none !important; }
  /* Hiện block nội dung (title + desc) ở cột 2, bên phải node */
  .timeline-center__item--left-time .timeline-center__side--right,
  .timeline-center__item--right-time .timeline-center__side--left {
    display: flex !important;
    flex-direction: column;
    text-align: left !important;
    padding: 0;
    width: 100%;
    grid-column: 2;
    grid-row: 2;
  }
  /* Ẩn span giờ bên trong */
  .timeline-center__time { display: none !important; }
  /* Giờ xuất hiện ở hàng 1 trên data-time */
  .timeline-center__item::before {
    content: attr(data-time);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.08em;
    grid-column: 2;
    grid-row: 1;
    display: block;
    line-height: 1.2;
    margin: 0;
    padding: 0;
  }
  .timeline-center__title { font-size: 13.5px; margin-bottom: 2px; }
  .timeline-center__desc { font-size: 11.5px; }

  /* 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; }
  section.calendar-timeline-section {
    padding: 0 !important;
  }
  .hero { min-height: 100vh; }
}
