:root {
  --bg: #fff8f8;
  --bg-soft: #fff1f4;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #4f2c39;
  --text-soft: #7f6270;
  --primary: #d35d7f;
  --primary-dark: #a93f61;
  --accent: #ffd5e1;
  --gold: #f0c36a;
  --shadow: 0 20px 60px rgba(187, 83, 120, 0.16);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 218, 228, 0.72), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 241, 224, 0.9), transparent 26%),
    linear-gradient(180deg, #fff8f8 0%, #fffdfc 55%, #fff4f7 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

body.lightbox-open,
body.modal-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 88px 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(77, 44, 57, 0.32), rgba(77, 44, 57, 0.36)),
    url('https://images.unsplash.com/photo-1518709779341-56cf4535e94b?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,0.22), transparent 25%),
    linear-gradient(180deg, rgba(255, 245, 244, 0.08) 0%, rgba(211, 93, 127, 0.18) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 48px 0;
  color: #fffaf8;
}

.hero__eyebrow,
.section-heading__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.highlight__content h2,
.final__box h2,
.letter__header h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  max-width: 860px;
}

.hero__lead {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: 1.05rem;
  color: rgba(255, 250, 248, 0.94);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero__badge {
  margin-top: 28px;
  color: rgba(255,255,255,0.88);
}

.hero__badge span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), #e289a3);
  color: #fff;
  box-shadow: 0 16px 32px rgba(211, 93, 127, 0.28);
}

.btn--ghost {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.intro-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.intro-modal[hidden] {
  display: none;
}

.intro-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(56, 33, 43, 0.72);
  backdrop-filter: blur(8px);
}

.intro-modal__card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
}

.intro-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-modal__content {
  padding: 36px;
  background: var(--surface-strong);
}

.intro-modal__content h2 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
}

.intro-modal__content p {
  margin: 18px 0 26px;
  color: var(--text-soft);
}

.intro-modal__close,
.music-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
}

.intro-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: rgba(77, 44, 57, 0.36);
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary-dark);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.music-toggle.is-muted {
  color: var(--text-soft);
  opacity: 0.82;
}

.glass {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 38px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading__tag {
  color: var(--primary-dark);
  background: rgba(211, 93, 127, 0.1);
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading p {
  color: var(--text-soft);
}

.intro__grid,
.reasons__grid,
.memory-strip__grid {
  display: grid;
  gap: 24px;
}

.intro__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intro__card,
.reason,
.memory-card,
.letter__wrap,
.final__box,
.highlight__wrap {
  border-radius: var(--radius-lg);
}

.intro__card {
  padding: 28px;
}

.intro__card i {
  font-size: 1.2rem;
  color: var(--primary);
}

.intro__card h3,
.reason h3 {
  margin-bottom: 10px;
}

.highlight__wrap {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  overflow: hidden;
}

.highlight__image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.highlight__content {
  padding: 42px;
}

.highlight__content p {
  color: var(--text-soft);
}

.highlight__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.highlight__stats div {
  min-width: 118px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.65);
}

.highlight__stats strong {
  display: block;
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.highlight__stats span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.photo-card {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  background: #fdf0f4;
  min-height: 280px;
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.photo-card span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(77, 44, 57, 0.54);
  color: #fff;
  text-align: left;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.photo-card:hover img {
  transform: scale(1.05);
}

.photo-card--tall {
  grid-row: span 2;
  min-height: 578px;
}

.reasons__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reason {
  padding: 28px;
}

.reason span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(215, 38, 78, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
}

.memory-strip__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.memory-card {
  padding: 14px;
}

.memory-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
}

.memory-card figcaption {
  padding: 14px 6px 6px;
  color: var(--text-soft);
}

.rotate-left {
  transform: rotate(-2deg);
}

.rotate-right {
  transform: rotate(2deg);
}

.letter__wrap,
.final__box {
  padding: 38px;
}

.typewriter {
  min-height: 230px;
  font-size: 1.08rem;
  color: var(--text);
  white-space: pre-line;
  margin: 18px 0 26px;
}

.typewriter::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  color: var(--primary);
  animation: blink 0.9s infinite;
}

.typewriter.done::after {
  display: none;
}

.final {
  padding-top: 0;
}

.final__box {
  text-align: center;
}

.final__box p {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--text-soft);
}

.surprise-message {
  margin-top: 24px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(211, 93, 127, 0.12), rgba(255, 213, 225, 0.28));
}

.surprise-message i {
  color: var(--primary);
  font-size: 1.35rem;
}

.surprise-message img {
  width: min(100%, 560px);
  margin: 18px auto 8px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(77, 44, 57, 0.18);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(39, 23, 31, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 100;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__content {
  max-width: min(920px, 100%);
  max-height: 100%;
  text-align: center;
}

.lightbox__content img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.lightbox__content p {
  margin-top: 16px;
  color: #fffaf8;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.14);
  color: #fff;
  cursor: pointer;
}

.petal-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.petal {
  position: absolute;
  top: -40px;
  width: 14px;
  height: 18px;
  background: linear-gradient(180deg, #ffd8e5 0%, #f19ab8 100%);
  border-radius: 70% 30% 60% 40%;
  opacity: 0.72;
  animation: fall linear forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fall {
  to {
    transform: translate3d(var(--drift), 110vh, 0) rotate(360deg);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .intro__grid,
  .reasons__grid,
  .memory-strip__grid,
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-card--tall {
    grid-row: span 1;
    min-height: 320px;
  }

  .highlight__wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: 92vh;
    background-position: 56% center;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .intro__grid,
  .reasons__grid,
  .memory-strip__grid,
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .highlight__content,
  .letter__wrap,
  .final__box,
  .intro__card,
  .reason,
  .intro-modal__content {
    padding: 24px;
  }

  .intro-modal__card {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 40px);
    overflow: auto;
  }

  .intro-modal__media {
    max-height: 280px;
  }

  .music-toggle {
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 9vw, 3.7rem);
  }

  .typewriter {
    min-height: 290px;
  }
}
