/* ============================================================
   DESIGN TOKENS — LUXURY DEEP BURGUNDY (ĐỎ ĐÔ) & ROYAL NAVY THEME
============================================================ */
:root {
  --white: #ffffff;
  --bg-base: #fbf9f6;

  /* Primary Deep Burgundy (Đỏ Đô) palette */
  --burgundy-950: #2d0307;
  --burgundy-900: #3e050b;
  --burgundy-800: #570712;
  --burgundy-700: #720c1a;
  --burgundy-600: #8d1323;
  --burgundy-500: #a81c31;
  --burgundy-400: #c62d45;
  --burgundy-200: #f4d3d8;
  --burgundy-100: #faedf0;

  /* Secondary Royal Navy palette */
  --navy-900: #0a1422;
  --navy-800: #102035;
  --navy-700: #172c48;
  --navy-600: #223e63;
  --navy-500: #305484;
  --navy-400: #4670a8;
  --navy-100: #ebf1f8;

  /* Luxury Warm Metallic Gold & Champagne palette */
  --gold-500: #c59b27;
  --gold-600: #b58d3d;
  --gold-700: #9e792e;
  --gold-400: #d4af37;
  --gold-300: #e3cc88;
  --gold-200: #f2e6bd;
  --gold-100: #fbf5e4;

  /* Ink / Text contrast */
  --ink: #220508;
  --ink-soft: #4a151e;
  --ink-muted: #6f3b44;
  --ink-navy: #102035;

  /* Lines & Borders */
  --line-gold: rgba(197, 155, 39, 0.35);
  --line-burgundy: rgba(114, 12, 26, 0.22);
  --line-navy: rgba(23, 44, 72, 0.18);

  /* Primary aliases */
  --primary: var(--burgundy-700);
  --primary-deep: var(--burgundy-900);
  --primary-soft: var(--burgundy-500);

  --red: var(--burgundy-700);
  --red-deep: var(--burgundy-900);
  --red-soft: var(--burgundy-500);

  --blue-100: var(--navy-100);
  --blue-200: #d6e2ef;
  --blue-300: var(--gold-300);
  --blue-400: var(--gold-500);
  --blue-500: var(--navy-600);
  --blue-600: var(--navy-800);
  --blue-700: var(--navy-900);
  --blue-deep: var(--navy-900);

  --gold: var(--gold-500);
  --gold-light: var(--gold-200);
  --gold-pale: var(--gold-100);
  --cream: var(--bg-base);
  --line: var(--line-gold);

  --font-serif: 'Cormorant Garamond', serif;
  --font-script: 'Alex Brush', cursive;
  --font-sans: 'Be Vietnam Pro', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dur: 1.5s;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: linear-gradient(180deg,
    #f7f4ed 0%,
    #faf8f3 8%,
    #f5f1e8 18%,
    #fcfbfa 28%,
    #ffffff 40%,
    #fcfbfa 52%,
    #f5f1e8 64%,
    #faf8f3 76%,
    #f7f4ed 88%,
    #f2ecdc 100%);
  min-height: 100vh;
  width: 100%;
  overflow-x: clip;
  position: relative;
}

.main-content {
  width: 100%;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
}

/* ============================================================
   REVEAL ON SCROLL (LUXURY SLOW & ULTRA SMOOTH TRANSITIONS)
============================================================ */
/* Mặc định: Fade-up (Trượt nhẹ từ dưới lên) */
.reveal,
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible,
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade-right: Trượt mượt mà từ trái qua phải vào vị trí gốc */
.reveal-right {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease);
  will-change: opacity, transform;
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade-left: Trượt mượt mà từ phải qua trái vào vị trí gốc */
.reveal-left {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease);
  will-change: opacity, transform;
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade đơn thuần không dịch chuyển */
.reveal-fade {
  opacity: 0;
  transition: opacity var(--reveal-dur) var(--ease);
  will-change: opacity;
}

.reveal-fade.is-visible {
  opacity: 1;
}

.invite__swirl.reveal {
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease);
}

.invite__swirl.reveal.is-visible {
  opacity: 0.75;
  transform: translate(-50%, 0);
}

.letter__swirl.reveal {
  opacity: 0;
  transform: translate(-50%, 20px) scaleX(-1);
  transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease);
}

.letter__swirl.reveal.is-visible {
  opacity: 0.85;
  transform: translate(-50%, 0) scaleX(-1);
}

/* ============================================================
   AMBIENT PARTICLES
============================================================ */
.ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.ambient-particle {
  position: absolute;
  top: -5%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.7) 0%, transparent 70%);
  opacity: .6;
  animation: fall linear infinite;
}

.ambient-particle.spark {
  width: 4px;
  height: 4px;
  background: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.85);
}

.ambient-particle.petal {
  width: 13px;
  height: 10px;
  background: radial-gradient(circle, #f2e6bd 0%, #c59b27 100%);
  box-shadow: 0 0 10px rgba(197, 155, 39, 0.4);
  border-radius: 50% 0 50% 50%;
  opacity: .6;
}

@keyframes fall {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: .8;
  }

  90% {
    opacity: .6;
  }

  100% {
    transform: translateY(110vh) translateX(30px) rotate(220deg);
    opacity: 0;
  }
}

/* ============================================================
   INTRO — ENVELOPE (LIGHT PAPER BACKDROP & BURGUNDY ENVELOPE)
============================================================ */
.intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f7f3ea;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(246, 239, 226, 0.5) 100%),
    url('../assets/images/paper-texture.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: opacity 1s var(--ease), visibility 1s var(--ease);
}

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

.intro__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--burgundy-700);
  z-index: 2;
}

.intro__cap {
  position: absolute;
  opacity: .28;
  filter: drop-shadow(0 2px 6px rgba(114, 18, 30, 0.15));
}

.intro__cap--1 {
  top: 10%;
  left: 8%;
  transform: rotate(-12deg);
}

.intro__cap--2 {
  bottom: 12%;
  right: 10%;
  transform: rotate(16deg);
}

.intro__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  padding: 0 16px;
  text-align: center;
}

.intro__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
}

.intro__header-sub {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: #7a1523;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.intro__header-title {
  margin: 2px 0;
  font-family: 'Great Vibes', 'Alex Brush', cursive;
  font-size: 58px;
  color: #5c0a15;
  font-weight: 400;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(92, 10, 21, 0.15);
}

.intro__header-tag {
  margin: 0;
  font-family: 'Cinzel', var(--font-serif), serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: #8c7349;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* ============================================================
   ENVELOPE (PHONG THƯ ĐỎ ĐÔ NHUNG THEO NỀN INTRO-BG)
============================================================ */
.envelope {
  position: relative;
  cursor: pointer;
  user-select: none;
  width: min(88vw, 345px);
  aspect-ratio: 3/2;
  perspective: 1000px;
  filter: drop-shadow(0 22px 48px rgba(35, 4, 8, 0.32));
  transition: transform 0.35s var(--ease);
}

.envelope:hover {
  transform: translateY(-3px) scale(1.015);
}

.envelope__back {
  position: absolute;
  inset: 0;
  background-color: #38050c;
  background-image:
    linear-gradient(145deg, rgba(65, 8, 16, 0.8) 0%, rgba(30, 2, 6, 0.92) 100%),
    url('../assets/images/intro-bg.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.85);
  z-index: 1;
}

.envelope__pocket {
  position: absolute;
  inset: 0;
  background-color: #590914;
  background-image:
    linear-gradient(155deg, rgba(120, 15, 30, 0.45) 0%, rgba(45, 4, 10, 0.85) 100%),
    url('../assets/images/intro-bg.jpg');
  background-size: cover;
  background-position: center;
  border: 1.2px solid rgba(212, 175, 55, 0.65);
  border-radius: 8px;
  box-shadow: 0 20px 45px -10px rgba(15, 2, 4, 0.55),
              inset 0 0 0 1px rgba(255, 235, 170, 0.18),
              inset 0 4px 25px rgba(0, 0, 0, 0.45);
  z-index: 4;
  overflow: hidden;
}

.envelope__pocket-stitch {
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(229, 193, 88, 0.55);
  border-radius: 5px;
  pointer-events: none;
  z-index: 4;
}

.envelope__guest {
  position: absolute;
  bottom: 14px;
  right: 18px;
  max-width: calc(100% - 36px);
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: #dfcaa2;
  font-size: 13px;
  letter-spacing: 0.03em;
  z-index: 5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

/* Tên ngắn: font Alex Brush cổ điển, thu nhỏ kích thước và giảm sáng bớt gắt */
.envelope__guest span {
  font-weight: 500;
  font-style: normal;
  font-family: 'Alex Brush', 'Great Vibes', var(--font-script);
  color: #faebd7;
  font-size: 21px;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 0 6px rgba(212, 175, 55, 0.2);
  letter-spacing: 0.01em;
  display: inline-block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: baseline;
}

/* Tên dài: chuyển sang font Serif thanh lịch, kích thước vừa vặn, không bị rối nét */
.envelope__guest.is-long-name {
  gap: 5px;
}

.envelope__guest.is-long-name span,
.envelope__guest span.is-long {
  font-family: 'Cormorant Garamond', 'Playfair Display', var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 14.5px;
  color: #f7eedb;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  max-width: 200px;
}

.envelope__flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56%;
  background-color: #6e0d1b;
  background-image:
    linear-gradient(180deg, rgba(140, 18, 36, 0.45) 0%, rgba(70, 7, 15, 0.88) 100%),
    url('../assets/images/intro-bg.jpg');
  background-size: cover;
  background-position: top center;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform 0.75s var(--ease), z-index 0.75s var(--ease);
  z-index: 5;
  border-radius: 8px 8px 0 0;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

.envelope__flap-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.envelope.is-open .envelope__flap {
  transform: rotateX(180deg);
  z-index: 1;
}

/* ============================================================
   INNER LETTER (LÁ THƯ PHONG CÁCH CỔ ĐIỂN TỐI GIẢN)
============================================================ */
.envelope__letter {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 8%;
  bottom: 8%;
  background-color: #faf7f0;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(247, 241, 230, 0.4) 100%),
    url('../assets/images/paper-texture.jpg');
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(197, 155, 39, 0.5);
  border-radius: 4px;
  padding: 10px;
  text-align: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  box-shadow: 0 12px 30px rgba(10, 2, 4, 0.25), inset 0 0 20px rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.envelope.is-open .envelope__letter {
  animation: letterBounceDrop 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

@keyframes letterBounceDrop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    z-index: 2;
  }
  25% {
    opacity: 1;
    z-index: 10;
  }
  58% {
    transform: translateY(-112%) scale(1.04);
    z-index: 10;
    box-shadow: 0 25px 45px -10px rgba(0, 0, 0, 0.45);
  }
  82% {
    transform: translateY(-36%) scale(0.99);
    z-index: 10;
  }
  100% {
    transform: translateY(-42%) scale(1);
    z-index: 10;
    opacity: 1;
    box-shadow: 0 18px 36px -8px rgba(10, 22, 38, 0.3);
  }
}

.envelope__letter-inner {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(197, 155, 39, 0.4);
  outline: 2px solid transparent;
  outline-offset: -4px;
  padding: 16px 12px;
  border-radius: 2px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 15px rgba(197, 155, 39, 0.05);
}

.envelope__letter-inner::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(197, 155, 39, 0.22);
  pointer-events: none;
}

.envelope__letter-decor-top {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
}

.envelope__letter-cap {
  color: #7a1523;
  opacity: 0.85;
}

.envelope__letter-prefix {
  margin: 3px 0 2px;
  font-family: 'Cinzel', var(--font-serif), serif;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: #72121e;
  font-weight: 700;
  text-transform: uppercase;
}

.envelope__letter-name {
  margin: 2px 0 4px;
  font-family: 'Great Vibes', var(--font-script);
  font-size: 34px;
  color: #4a0610;
  line-height: 1.15;
  font-weight: 400;
}

.envelope__letter-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65%;
  margin: 3px 0;
  color: rgba(197, 155, 39, 0.6);
  font-size: 9px;
  position: relative;
}

.envelope__letter-divider::before,
.envelope__letter-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 155, 39, 0.5), transparent);
}

.envelope__letter-divider span {
  padding: 0 6px;
  font-size: 7px;
  color: rgba(197, 155, 39, 0.7);
}

.envelope__letter-date {
  margin: 2px 0 0;
  font-family: 'Cinzel', var(--font-serif), serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: #631922;
  font-weight: 600;
}

.intro__hint {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: #72121e;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

.burst-particle {
  position: fixed;
  z-index: 150;
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================================
   MUSIC TOGGLE
============================================================ */
.music-toggle {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy-800);
  box-shadow: 0 6px 20px -4px rgba(197, 155, 39, 0.35);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0;
  outline: none;
}

.music-toggle:hover {
  transform: scale(1.08);
  border-color: var(--gold-600);
  background: var(--gold-500);
  color: var(--white);
  box-shadow: 0 8px 24px -4px rgba(197, 155, 39, 0.5);
}

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

.music-toggle.is-playing .music-toggle__icon {
  animation: spinSlow 5s linear infinite;
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   SHARED
============================================================ */
.eyebrow {
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--gold-600);
  font-weight: 700;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.section-eyebrow {
  text-align: center;
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--gold-600);
  font-weight: 700;
  text-transform: uppercase;
}

.section-title {
  text-align: center;
  font-size: 44px;
  color: var(--burgundy-900);
  margin: 0 0 20px;
}

.hr-line {
  width: 64px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  margin: 18px auto;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gold-500);
  margin: 14px 0;
}

.divider span {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--gold-500);
  color: var(--burgundy-900);
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .12em;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
  transition: all .35s var(--ease);
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: var(--gold-500);
  color: var(--white);
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(197, 155, 39, .65);
}

.btn-outline--small {
  padding: 9px 20px;
  font-size: 12px;
}

.btn-fill {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #780d1c 0%, #4a0610 100%);
  color: #f2e6bd;
  padding: 15px 24px;
  font-size: 14px;
  letter-spacing: .1em;
  font-weight: 600;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 10px 26px -12px rgba(87, 7, 18, .55);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.btn-fill:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -12px rgba(87, 7, 18, .7);
  background: linear-gradient(135deg, #8d1323 0%, #570712 100%);
}

.btn-fill:active {
  transform: translateY(0);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero__img-wrap {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 20, 34, 0.58) 0%,
      rgba(10, 20, 34, 0.08) 25%,
      rgba(10, 20, 34, 0.1) 65%,
      rgba(45, 4, 9, 0.88) 100%);
}

.hero__sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero__top-left {
  position: absolute;
  top: max(24px, 4.5vh);
  left: max(18px, 4.5vw);
  z-index: 3;
  pointer-events: none;
  max-width: 88vw;
}

.hero__name-art {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__name-sub {
  font-family: 'Be Vietnam Pro', var(--font-sans);
  font-size: clamp(8px, 1.85vw, 11px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f2e6bd;
  margin-bottom: 4px;
  margin-top: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
  opacity: 0.92;
  line-height: 1.35;
  display: inline-block;
  max-width: 90vw;
}

.hero__name-first {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(24px, 5.5vw, 44px);
  line-height: 1.05;
  color: #fbf5e4;
  font-weight: 500;
  letter-spacing: .06em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .85);
  display: inline-block;
}

.hero__name-last {
  font-family: 'Great Vibes', 'Parisienne', 'Alex Brush', cursive;
  font-size: clamp(52px, 12vw, 86px);
  line-height: 1.02;
  color: #e8d8ae;
  font-weight: 400;
  letter-spacing: .02em;
  margin-top: -2px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .92), 0 0 25px rgba(201, 162, 75, 0.45);
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
}

.hero__bottom {
  position: absolute;
  bottom: max(24px, 4vh);
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 3;
  width: 96vw;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__ceremony-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 620px;
  margin-bottom: 8px;
}

.hero__ceremony-line1 {
  font-family: 'Monsieur La Doulaise', 'Herr Von Muellerhoff', 'Pinyon Script', cursive;
  font-size: clamp(74px, 20vw, 132px);
  font-weight: 400;
  color: #e8d8ae;
  line-height: 0.85;
  letter-spacing: 0.06em;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .92), 0 0 30px rgba(201, 162, 75, .45);
  align-self: flex-start;
  padding-left: clamp(10px, 4vw, 40px);
}

.hero__ceremony-line2 {
  font-family: 'Monsieur La Doulaise', 'Herr Von Muellerhoff', 'Pinyon Script', cursive;
  font-size: clamp(68px, 18vw, 122px);
  font-weight: 400;
  color: #e8d8ae;
  line-height: 0.85;
  letter-spacing: 0.06em;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .92), 0 0 30px rgba(201, 162, 75, .45);
  align-self: flex-end;
  padding-right: clamp(12px, 5vw, 50px);
  margin-top: -22px;
}

.hero__date {
  font-family: 'Cinzel', 'Playfair Display', 'Cormorant Garamond', serif;
  font-size: clamp(22px, 6vw, 36px);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #f6ecd2;
  margin: 8px 0 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .95), 0 0 12px rgba(201, 162, 75, .35);
  text-align: center;
}

.scroll-cue {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 24px;
  background: #e8d8ae;
  animation: scrollcue 1.8s ease-in-out infinite;
}

@keyframes scrollcue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ============================================================
   3. THAN MOI
============================================================ */
.invite {
  position: relative;
  text-align: center;
  padding: 45px 20px 35px;
  max-width: 560px;
  margin: 0 auto;
}

.invite__swirl {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-500);
  opacity: .75;
}

.invite__cap {
  color: var(--burgundy-700);
  margin-top: 26px;
}

.invite__label {
  font-family: var(--font-serif);
  letter-spacing: .3em;
  font-size: 20px;
  color: var(--burgundy-900);
  margin: 18px 0 6px;
  font-weight: 600;
}

.invite__to-name {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(30px, 7.5vw, 42px);
  color: var(--gold-600);
  margin: 8px 0 2px;
  line-height: 1.2;
  font-weight: 400;
}

.invite .hr-line {
  width: 140px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  margin: 4px auto 22px;
}

.invite__sub {
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0 0 6px;
}

.invite__grad-name {
  font-family: 'Great Vibes', 'Parisienne', 'Alex Brush', cursive;
  font-size: clamp(46px, 12vw, 68px);
  color: var(--burgundy-800);
  margin: 4px 0 22px;
  line-height: 1.1;
  font-weight: 400;
  text-shadow: 0 2px 18px rgba(114, 12, 26, 0.18);
}

.invite__sub2 {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--ink-soft);
  line-height: 1.9;
  margin: 0 0 26px;
}

.date-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 30px;
}

.date-block__side {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ink-soft);
  font-weight: 600;
  border-top: 1.8px solid var(--line-gold);
  border-bottom: 1.8px solid var(--line-gold);
  padding: 16px 10px;
  width: min(108px, 30vw);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.date-block__num {
  font-family: var(--font-sans);
  font-size: 48px;
  color: var(--burgundy-900);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.invite__venue-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.invite__venue {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--burgundy-900);
  margin: 6px 0 10px;
  line-height: 1.35;
}

.invite__address {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 18px;
}

.invite__map-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px -6px rgba(114, 12, 26, 0.18), 0 0 0 1px rgba(197, 155, 39, 0.35);
  background: #fbf9f6;
}

.invite__map-iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: none;
}

/* ============================================================
   4. CROSS PHOTOS + TIMELINE
============================================================ */
.timeline-section {
  position: relative;
  padding: 38px 20px 42px;
  max-width: 640px;
  margin: 0 auto;
}

.cross-photos {
  position: relative;
  z-index: 10;
  height: 270px;
  margin: 0 auto 32px;
  max-width: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cross-photos__frame {
  position: absolute;
  inset: -4px;
  pointer-events: none;
  z-index: 0;
}

.cross-photos__svg-frame {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cross-photos__line {
  stroke: var(--gold-500);
  stroke-width: 1.5;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.4s cubic-bezier(.22, .61, .36, 1) 0.15s;
  opacity: 0.85;
}

.cross-photos.is-visible .cross-photos__line {
  stroke-dashoffset: 0;
}

.cross-photos__frame::before,
.cross-photos__frame::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.8px solid var(--gold-500);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s 0.9s var(--ease);
}

.cross-photos__frame::before {
  top: 4px;
  left: 4px;
  border-right: none;
  border-bottom: none;
}

.cross-photos__frame::after {
  bottom: 4px;
  right: 4px;
  border-left: none;
  border-top: none;
}

.cross-photos.is-visible .cross-photos__frame::before,
.cross-photos.is-visible .cross-photos__frame::after {
  opacity: 0.95;
}

.cross-photos__item {
  position: absolute;
  width: 58%;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: 0 0 0 1px rgba(197, 155, 39, 0.4), 0 20px 45px -16px rgba(87, 7, 18, .35);
  margin: 0;
  transition: transform 1s var(--ease), box-shadow 0.5s var(--ease);
  z-index: 10;
}

.cross-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.cross-photos__item:hover img {
  transform: scale(1.07);
}

.cross-photos__item--a {
  top: 4px;
  left: 2%;
  transform: rotate(-8deg);
  z-index: 11;
}

.cross-photos__item--b {
  top: 18px;
  right: 2%;
  transform: rotate(9deg);
  z-index: 10;
}

.cross-photos.is-visible .cross-photos__item--a {
  transform: rotate(-6deg) translateY(-2px);
}

.cross-photos.is-visible .cross-photos__item--b {
  transform: rotate(7deg) translateY(2px);
}

/* ============================================================
   TIMELINE (ZIGZAG CENTER AXIS)
============================================================ */
.timeline-section {
  padding: 36px 18px 44px;
  max-width: 620px;
  margin: 0 auto;
}

.timeline-section .section-title {
  margin-top: 12px;
  margin-bottom: 22px;
}

.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  width: 100%;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -4px;
  bottom: -8px;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, 
    rgba(212, 175, 55, 0) 0%, 
    rgba(212, 175, 55, 0.45) 8%, 
    rgba(212, 175, 55, 0.85) 50%, 
    rgba(212, 175, 55, 0.45) 92%, 
    rgba(212, 175, 55, 0) 100%);
  z-index: 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  position: relative;
  width: 100%;
}

.timeline__node {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background-color: #faf7f2;
  border-radius: 50%;
  padding: 2px;
}

.timeline__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #faf7f2;
  border: 1.6px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy-700);
  box-shadow: 0 4px 16px -4px rgba(114, 12, 26, 0.25), inset 0 0 8px rgba(212, 175, 55, 0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  z-index: 10;
}

.timeline__icon svg {
  position: relative;
  z-index: 11;
}

.timeline__item:hover .timeline__icon {
  transform: scale(1.1);
  border-color: var(--burgundy-700);
  box-shadow: 0 6px 20px -4px rgba(114, 12, 26, 0.35);
}

.timeline__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.timeline__side--left {
  text-align: right;
  align-items: flex-end;
  padding-right: 4px;
}

.timeline__side--right {
  text-align: left;
  align-items: flex-start;
  padding-left: 4px;
}

.timeline__time {
  font-family: 'Cinzel', 'Playfair Display', var(--font-serif), serif;
  font-size: clamp(21px, 5.2vw, 26px);
  color: var(--burgundy-800);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.timeline__title {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--navy-900);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.25;
}

.timeline__desc {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin: 0;
  font-style: italic;
}

/* ============================================================
   5. PARALLAX QUOTE (ẢNH ĐỨNG YÊN DƯỚI NỀN KHI CUỘN TRANG)
============================================================ */
.parallax {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 22px 0 30px;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  box-shadow: 0 14px 36px -12px rgba(45, 4, 9, 0.35);
}

.parallax::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/photo1.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 0;
  pointer-events: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.parallax__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 32, 53, 0.65) 0%, rgba(62, 5, 11, 0.78) 100%);
  z-index: 1;
}

.parallax__text-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  z-index: 2;
}

.parallax__text {
  text-align: center;
  color: var(--white);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  max-width: 540px;
}

.parallax__line1 {
  font-family: 'Cinzel', 'Playfair Display', var(--font-serif), serif;
  font-size: clamp(13px, 2.9vw, 17px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f7eed8;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 15px rgba(212, 175, 55, 0.3);
  line-height: 1.5;
  opacity: 0.92;
}

.parallax__line2 {
  font-family: 'Parisienne', 'Great Vibes', 'Alex Brush', cursive;
  font-size: clamp(26px, 6.2vw, 40px);
  font-weight: 400;
  color: #fae8be;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95), 0 0 22px rgba(212, 175, 55, 0.55);
  line-height: 1.25;
  margin-top: 2px;
}

/* ============================================================
   6. COUNTDOWN + CALENDAR
============================================================ */
.countdown-section {
  padding: 36px 20px 36px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.section-eyebrow {
  font-size: 14px;
  letter-spacing: .26em;
  color: var(--gold-600);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0 46px;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 6px;
  min-width: 54px;
  box-shadow: none;
}

.countdown__num {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: clamp(32px, 8vw, 42px);
  color: var(--burgundy-900);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
}

.countdown__label {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.countdown__sep {
  font-size: 26px;
  color: var(--gold-500);
  font-weight: 300;
  margin-top: -14px;
}

.calendar-wrap {
  max-width: 380px;
  margin: 24px auto 0;
  text-align: center;
}

.calendar__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--burgundy-900);
  padding: 0 6px;
}

.calendar__month {
  font-family: 'Cinzel', var(--font-serif), serif;
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--burgundy-800);
}

.calendar__year {
  font-family: 'Cinzel', var(--font-serif), serif;
  font-size: clamp(34px, 8.5vw, 44px);
  font-weight: 600;
  font-style: normal;
  color: #63101c;
  line-height: 1;
}

.calendar__card {
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 20px;
  padding: 20px 16px 20px;
  box-shadow: 0 6px 20px -10px rgba(114, 12, 26, 0.06);
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: #70444b;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 0.04em;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 6px;
  text-align: center;
}

.calendar__grid span {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 15px;
  font-weight: 500;
  color: #381a1f;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.calendar__grid span.is-empty {
  visibility: hidden;
}

.calendar__grid span.is-target {
  color: #ffffff;
  font-weight: 700;
}

.calendar__grid span.is-target .circle-svg {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  fill: #7c0e1e;
  color: #d4af37;
  stroke: #e5c158;
  stroke-width: 1px;
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(124, 14, 30, 0.35);
}

.calendar__grid span.is-target .heart-svg {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  fill: #7c0e1e;
  color: #d4af37;
  stroke: #e5c158;
  stroke-width: 1.6px;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 3px 10px rgba(124, 14, 30, 0.45));
  animation: heartPulse 1.8s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes heartPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 3px 8px rgba(124, 14, 30, 0.45));
  }
  14% {
    transform: translate(-50%, -50%) scale(1.15);
    filter: drop-shadow(0 5px 16px rgba(212, 175, 55, 0.7));
  }
  28% {
    transform: translate(-50%, -50%) scale(1.02);
    filter: drop-shadow(0 3px 10px rgba(124, 14, 30, 0.5));
  }
  42% {
    transform: translate(-50%, -50%) scale(1.18);
    filter: drop-shadow(0 6px 18px rgba(212, 175, 55, 0.8));
  }
  70% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 3px 8px rgba(124, 14, 30, 0.45));
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 3px 8px rgba(124, 14, 30, 0.45));
  }
}

.calendar__grid span.is-target .num-text {
  position: relative;
  z-index: 2;
  line-height: 1;
  color: #ffffff;
  font-weight: 700;
  font-size: 15.5px;
  transform: translateY(-1px);
}

/* ============================================================
   7. LETTER — LUXURY BURGUNDY BACKDROP & PAPER SHEET WITH BOW
============================================================ */
.letter-wrapper {
  position: relative;
  padding: 58px 16px 64px;
  background-color: #3b050c;
  background-image:
    radial-gradient(circle at 50% 40%, rgba(138, 19, 35, 0.45) 0%, rgba(20, 2, 5, 0.9) 100%),
    url('../assets/images/intro-bg.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  margin: 28px 0;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.75), 0 10px 30px rgba(45, 3, 7, 0.25);
  width: 100%;
  max-width: 100%;
}

.letter {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  z-index: 2;
  text-align: center;
}

.letter__swirl {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%) scaleX(-1);
  color: var(--gold-400);
  opacity: .85;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.letter__title {
  color: #ffffff;
  font-size: 48px;
  margin: 0 0 24px;
  text-shadow: 0 3px 14px rgba(212, 175, 55, 0.45), 0 2px 8px rgba(0, 0, 0, 0.9);
}

.letter__card {
  background-color: #fbf9f4;
  background-image: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(251, 247, 238, 0.3) 100%),
    url('../assets/images/paper-texture.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 3px;
  padding: clamp(36px, 7.5vw, 60px) clamp(24px, 6vw, 48px);
  position: relative;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.82),
              0 6px 20px rgba(0, 0, 0, 0.48),
              inset 0 0 20px rgba(255, 255, 255, 0.9),
              inset 0 0 45px rgba(197, 155, 39, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.85);
  text-align: left;
}

.letter__card::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: 18px;
  font-family: var(--font-serif);
  font-size: 84px;
  color: var(--gold-300);
  line-height: 1;
  opacity: 0.85;
}

.letter__paragraph {
  font-size: 15.5px;
  line-height: 1.95;
  color: #2b0b10;
  margin: 0 0 18px;
  text-align: left;
  font-weight: 400;
  position: relative;
  z-index: 2;
}

.letter__sign {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-top: 24px;
  text-align: right;
  position: relative;
  z-index: 2;
}

.letter__closing {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: #57161f;
  letter-spacing: 0.02em;
}

.letter__author {
  font-family: var(--font-script);
  font-size: 36px;
  color: var(--burgundy-800);
  line-height: 1.2;
}

/* Nơ lụa satin đỏ đô ở góc dưới bên trái */
.letter__bow {
  position: absolute;
  bottom: -28px;
  left: -24px;
  width: clamp(75px, 20vw, 105px);
  height: auto;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.75));
  transform: rotate(-6deg);
  transition: transform 0.4s var(--ease);
}

.letter__card:hover .letter__bow {
  transform: rotate(-2deg) scale(1.04);
}

/* ============================================================
   LIGHTBOX MODAL (LUXURY GALLERY SLIDER)
============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  padding: 16px;
  touch-action: pan-y pinch-zoom;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 3, 6, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 15;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5eedc;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}

.lightbox__close:hover {
  background: rgba(212, 175, 55, 0.3);
  color: #ffffff;
  transform: scale(1.08);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  background: rgba(20, 5, 10, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #f7eed8;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  padding: 0;
}

.lightbox__nav:hover {
  background: rgba(114, 12, 26, 0.9);
  border-color: #d4af37;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.lightbox__nav--prev {
  left: 18px;
}

.lightbox__nav--next {
  right: 18px;
}

@media (max-width: 640px) {
  .lightbox__nav {
    width: 40px;
    height: 40px;
  }
  .lightbox__nav--prev {
    left: 8px;
  }
  .lightbox__nav--next {
    right: 8px;
  }
}

.lightbox__content {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox__img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 74vh;
}

.lightbox__img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(212, 175, 55, 0.25);
  transform: scale(0.96);
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

/* Thanh thông tin Luxury bên dưới ảnh */
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 440px;
  margin-top: 14px;
  padding: 8px 18px;
  background: rgba(26, 6, 12, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.lightbox__name {
  font-family: 'Cormorant Garamond', 'Playfair Display', var(--font-sans), serif;
  font-size: clamp(14px, 3.8vw, 17px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f7ecd2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.lightbox__counter {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: clamp(13px, 3.4vw, 15px);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #d4af37;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.hero__img,
.cross-photos__item img,
.album__item img {
  cursor: zoom-in;
}

/* ============================================================
   9. RSVP
============================================================ */
.rsvp {
  position: relative;
  padding: 40px 20px 42px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.rsvp__cap {
  color: var(--gold-600);
  margin-bottom: 14px;
}

.rsvp__sub {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 20px;
  line-height: 1.7;
}

.rsvp__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--ink);
  font-weight: 600;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="number"],
.field textarea,
.field select {
  border: 1.5px solid var(--gold-300);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  outline: none;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c59b27' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}

.field select option {
  color: var(--ink);
  background: var(--white);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, .2);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radio-pill {
  border: 1.5px solid var(--gold-200);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all .3s var(--ease);
  position: relative;
  background: rgba(255,255,255,0.7);
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill:has(input:checked) {
  background: var(--burgundy-700);
  border-color: var(--burgundy-700);
  color: var(--gold-200);
  box-shadow: 0 4px 14px -4px rgba(114, 12, 26, 0.55);
}

.rsvp__status {
  text-align: center;
  font-size: 13px;
  color: var(--gold-600);
  min-height: 18px;
  margin: 4px 0 0;
}

/* ============================================================
   10. GUESTBOOK + FOOTER
============================================================ */
/* ============================================================
   9. GUESTBOOK (VERTICAL CAROUSEL)
============================================================ */
.guestbook {
  padding: 38px 20px 38px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.guestbook__card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 22px;
  padding: 14px 12px;
  box-shadow: 0 10px 28px -12px rgba(114, 12, 26, 0.08);
  margin: 0 auto;
}

.guestbook__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.guestbook__list::-webkit-scrollbar {
  display: none;
}

.guestbook__empty {
  color: var(--ink-soft);
  font-size: 13.5px;
  font-style: italic;
  width: 100%;
  text-align: center;
  padding: 30px 0;
}

.guestbook__entry {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px 12px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  user-select: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.guestbook__entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.guestbook__entry-name {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-weight: 600;
  color: #1e293b;
  font-size: 16px;
  margin: 0 0 4px;
  line-height: 1.3;
}

.guestbook__entry-msg {
  font-family: 'Be Vietnam Pro', var(--font-sans);
  font-size: 13.5px;
  color: #334155;
  margin: 0 0 10px;
  line-height: 1.55;
  word-break: break-word;
}

.guestbook__entry-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.gb-badge {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.gb-badge--yes {
  background: #f0f7ff;
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.gb-badge--no {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.guestbook__entry-time {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
}

/* ============================================================
   10. FOOTER (POSTER STYLE PHOTO BACKGROUND)
============================================================ */
.footer {
  position: relative;
  text-align: center;
  padding: 0;
  margin-top: 40px;
  background: transparent;
  overflow: hidden;
}

.footer__poster {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-image: url('../assets/images/photo7.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 28px 16px 30px;
}

.footer__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 38, 0.25) 0%, rgba(6, 16, 32, 0.62) 45%, rgba(4, 10, 22, 0.94) 100%);
  z-index: 1;
}

.footer__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__name {
  font-family: 'Great Vibes', var(--font-script), cursive;
  font-size: clamp(48px, 13vw, 70px);
  color: #f6e3b4;
  margin: 0 0 4px;
  line-height: 1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95), 0 0 25px rgba(212, 175, 55, 0.45);
}

.footer__date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 10px;
}

.footer__date-line {
  flex: 1;
  height: 1.2px;
  background: #e8d29b;
  opacity: 0.85;
}

.footer__date-text {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: clamp(13px, 3.5vw, 16px);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #fbf5e4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.footer__quote {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(13.5px, 3.4vw, 15.5px);
  color: #f2e9dc;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.92);
  max-width: 360px;
}

.footer__bottom-bar {
  background: #fdfbf7;
  padding: 8px 16px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  position: relative;
  z-index: 2;
}

.footer__designed {
  font-size: 11px;
  color: #475569;
  margin: 0;
}

.footer__designed a {
  color: #0f172a;
  font-weight: 600;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.footer__designed a:hover {
  opacity: 0.8;
}

/* ============================================================
   RESPONSIVE TWEAKS
============================================================ */
@media (min-width:768px) {
  .hero__content {
    max-width: 720px;
  }

  .letter__card {
    padding: 60px;
  }
}

@media (max-width:380px) {
  .section-title {
    font-size: 36px;
  }

  .countdown__unit {
    min-width: 56px;
    padding: 10px 6px;
  }

  .countdown__num {
    font-size: 24px;
  }
}

/* ============================================================
   BACKGROUND DECORATIVE ELEMENTS (PNG OVERLAYS)
   - Mobile-first positioning
   - mix-blend-mode: multiply for light sections; normal for dark intro
   - opacity: high clarity
   - pointer-events: none; z-index: 0 / 1;
============================================================ */
.hero,
.invite,
.timeline-section,
.countdown-section,
.rsvp,
.guestbook,
.letter-wrapper,
.album-section,
.footer {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.bg-decor {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  mix-blend-mode: multiply;
  opacity: 0.88;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
  will-change: transform;
  max-width: 100vw;
}

/* Họa tiết ở màn hình Intro: bg6 (góc dưới trái) & bg7 (góc trên phải) hòa quyện trên nền giấy */
.intro .bg-decor {
  mix-blend-mode: multiply;
  opacity: 0.85;
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.bg-decor--intro-bl {
  bottom: -10px;
  left: -15px;
  width: clamp(120px, 34vw, 195px);
  transform: rotate(-8deg);
}

.bg-decor--intro-tr {
  top: -10px;
  right: -15px;
  width: clamp(120px, 34vw, 190px);
  transform: rotate(12deg);
}

/* Vị trí từng Section (Mobile-First) */
.bg-decor--invite-tl {
  top: -15px;
  left: -12px;
  width: clamp(100px, 28vw, 150px);
  transform: rotate(-10deg);
}

.bg-decor--invite-br {
  bottom: 0px;
  right: -15px;
  width: clamp(110px, 30vw, 165px);
  transform: rotate(15deg);
}

.bg-decor--timeline-tr {
  top: 10px;
  right: -18px;
  width: clamp(95px, 26vw, 145px);
  transform: rotate(20deg);
}

.bg-decor--timeline-bl {
  bottom: 15px;
  left: -20px;
  width: clamp(115px, 32vw, 170px);
  transform: rotate(-15deg);
}

.bg-decor--countdown-left {
  top: 30%;
  left: -22px;
  width: clamp(105px, 28vw, 155px);
  transform: rotate(-8deg);
}

.bg-decor--countdown-right {
  bottom: -25px;
  right: -15px;
  width: clamp(115px, 32vw, 175px);
  transform: rotate(10deg);
}

.bg-decor--rsvp-tl {
  top: 5px;
  left: -15px;
  width: clamp(105px, 28vw, 160px);
  transform: rotate(-10deg);
}

.bg-decor--rsvp-br {
  bottom: 5px;
  right: -16px;
  width: clamp(115px, 30vw, 170px);
  transform: rotate(14deg);
}

.bg-decor--guestbook-bl {
  bottom: -15px;
  left: -18px;
  width: clamp(120px, 32vw, 180px);
  transform: rotate(-10deg);
}

/* Responsive Desktop: Phóng to và giãn ra hai bên cạnh */
@media (min-width: 768px) {
  .bg-decor {
    opacity: 0.92;
  }

  .intro .bg-decor {
    opacity: 0.88;
  }

  .bg-decor--intro-bl {
    bottom: 10px;
    left: -35px;
    transform: rotate(-8deg) scale(1.35);
  }

  .bg-decor--intro-tr {
    top: 10px;
    right: -35px;
    transform: rotate(12deg) scale(1.35);
  }

  .bg-decor--invite-tl {
    top: -25px;
    left: -45px;
    transform: rotate(-10deg) scale(1.3);
  }

  .bg-decor--invite-br {
    bottom: -10px;
    right: -45px;
    transform: rotate(15deg) scale(1.3);
  }

  .bg-decor--timeline-tr {
    top: 20px;
    right: -50px;
    transform: rotate(20deg) scale(1.35);
  }

  .bg-decor--timeline-bl {
    bottom: 25px;
    left: -50px;
    transform: rotate(-15deg) scale(1.35);
  }

  .bg-decor--countdown-left {
    left: -55px;
    transform: rotate(-8deg) scale(1.3);
  }

  .bg-decor--countdown-right {
    bottom: -35px;
    right: -55px;
    transform: rotate(10deg) scale(1.35);
  }

  .bg-decor--rsvp-tl {
    top: 5px;
    left: -45px;
    transform: rotate(-10deg) scale(1.35);
  }

  .bg-decor--rsvp-br {
    bottom: 0px;
    right: -50px;
    transform: rotate(14deg) scale(1.35);
  }

  .bg-decor--guestbook-bl {
    bottom: -25px;
    left: -60px;
    transform: rotate(-10deg) scale(1.35);
  }
}

/* ============================================================
   ALBUM SECTION (5 ẢNH: 1 NGANG, 2 DỌC, 2 DỌC - KHÔNG BORDER, KHÔNG BO GÓC)
============================================================ */
.album-section {
  position: relative;
  padding: 24px 16px 40px;
  max-width: 520px;
  margin: 0 auto;
  background: transparent;
  text-align: center;
}

.album-section .section-eyebrow {
  margin-bottom: 2px;
}

.album-section .section-title {
  margin-bottom: 22px;
  font-family: 'Great Vibes', 'Parisienne', var(--font-script), cursive;
  font-size: clamp(40px, 9.5vw, 54px);
  color: var(--burgundy-800);
  text-shadow: 0 2px 14px rgba(114, 12, 26, 0.15);
}

.album-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.album-grid__row {
  display: grid;
  gap: 8px;
  width: 100%;
}

.album-grid__row--single {
  grid-template-columns: 1fr;
}

.album-grid__row--double {
  grid-template-columns: 1fr 1fr;
}

.album-item {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.album-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}

.album-item:hover img {
  transform: scale(1.025);
  opacity: 0.95;
}

.album-item--wide {
  aspect-ratio: 16 / 10;
  width: 100%;
}

.album-item--wide img {
  object-position: center 18%;
}

.album-item--tall {
  aspect-ratio: 3 / 4;
  width: 100%;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}