:root {
  --wine: #7f1734;
  --wine-dark: #4b0d21;
  --rose: #f9dbe2;
  --rose-soft: #fff1f4;
  --cream: #fffaf2;
  --beige: #ead8c0;
  --gold: #c59b4a;
  --ink: #361421;
  --muted: #765968;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(83, 18, 39, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #fff8f3 0%, #fff2f5 44%, #fffaf2 100%);
  font-family: "Inter", Arial, sans-serif;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button {
  font: inherit;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 72px 20px 58px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.95) 0 9%, transparent 22%),
    radial-gradient(circle at 74% 18%, rgba(197, 155, 74, 0.22) 0 12%, transparent 28%),
    linear-gradient(135deg, #fff8ef 0%, #f8ccd7 42%, #8a1e3b 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  width: 45vmax;
  height: 45vmax;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  animation: float 12s ease-in-out infinite;
}

.hero::before {
  top: -18vmax;
  right: -16vmax;
}

.hero::after {
  bottom: -22vmax;
  left: -16vmax;
  animation-delay: -5s;
}

.hero-glow {
  position: absolute;
  inset: 9%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.74), transparent 60%);
  filter: blur(10px);
  opacity: 0.9;
}

.hero-content,
.final-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.02;
}

h1 {
  color: var(--wine-dark);
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 700;
}

.hero-subtitle,
.section-copy {
  color: #5c2235;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  line-height: 1.7;
}

.hero-subtitle {
  max-width: 560px;
  margin: 22px auto 34px;
}

.section-copy {
  width: min(650px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  padding: 0 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--wine), #b93656);
  box-shadow: 0 16px 34px rgba(127, 23, 52, 0.28);
}

.secondary-button {
  margin: 30px auto 0;
  padding: 0 24px;
  color: var(--wine);
  background: var(--white);
  border: 1px solid rgba(127, 23, 52, 0.14);
  box-shadow: 0 16px 34px rgba(127, 23, 52, 0.1);
}

.primary-button:hover,
.secondary-button:hover,
.music-toggle:hover,
.carousel-arrow:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(127, 23, 52, 0.24);
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 24px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-hint::after {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}

.section {
  padding: clamp(72px, 10vw, 120px) 20px;
}

.section-heading {
  width: min(860px, 100%);
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2 {
  color: var(--wine-dark);
  font-size: clamp(2.25rem, 6vw, 4.2rem);
}

.counter-grid,
.reasons-board,
.carousel-shell,
.video-frame {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.counter-card,
.timeline-card,
.reason-card,
.letter-paper,
.video-frame {
  border: 1px solid rgba(127, 23, 52, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.counter-card {
  min-height: 142px;
  padding: 26px 14px;
  text-align: center;
}

.counter-card strong {
  display: block;
  color: var(--wine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 0.9;
}

.counter-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.story-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(249, 219, 226, 0.42));
}

.timeline {
  position: relative;
  display: grid;
  width: min(980px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--gold), rgba(127, 23, 52, 0.18));
}

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 270px) 1fr;
  gap: 22px;
  align-items: center;
  margin-left: 64px;
  padding: 18px;
}

.timeline-number {
  position: absolute;
  top: 22px;
  left: -64px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: var(--wine);
  border: 4px solid var(--cream);
  border-radius: 50%;
  font-weight: 800;
}

.timeline-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 18px 38px rgba(83, 18, 39, 0.14);
}

.timeline-card h3 {
  color: var(--wine);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.timeline-card p,
.letter-paper p {
  color: var(--muted);
  line-height: 1.8;
}

.gallery-section {
  overflow: hidden;
}

.carousel-shell {
  position: relative;
}

.photo-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 4px 28px;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 23, 52, 0.35) transparent;
  user-select: none;
}

.photo-carousel.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.photo-carousel::-webkit-scrollbar {
  height: 8px;
}

.photo-carousel::-webkit-scrollbar-thumb {
  background: rgba(127, 23, 52, 0.35);
  border-radius: 999px;
}

.photo-card {
  position: relative;
  flex: 0 0 min(330px, 82vw);
  min-height: 430px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--rose-soft);
  box-shadow: var(--shadow);
  scroll-snap-align: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.photo-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.photo-card:hover {
  transform: translateY(-5px);
}

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

.photo-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 52px 18px 18px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(180deg, transparent, rgba(51, 9, 25, 0.8));
  text-align: left;
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 18px);
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--wine);
  border: 1px solid rgba(127, 23, 52, 0.12);
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 34px rgba(83, 18, 39, 0.16);
  font-size: 2rem;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.carousel-arrow-left {
  left: -18px;
}

.carousel-arrow-right {
  right: -18px;
}

.video-section {
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.35), rgba(249, 219, 226, 0.28));
}

.video-frame {
  width: min(900px, 100%);
  padding: 12px;
  overflow: hidden;
}

.video-frame video {
  display: block;
  width: 100%;
  max-height: 78svh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--wine-dark);
}

.reasons-section {
  text-align: center;
}

.reasons-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  text-align: left;
}

.reason-card {
  min-height: 132px;
  padding: 20px;
  animation: cardIn 420ms ease both;
}

.reason-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
}

.reason-card p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
}

.letter-section {
  display: grid;
  justify-items: center;
  background: linear-gradient(180deg, rgba(249, 219, 226, 0.2), rgba(255, 250, 242, 0.95));
}

.letter-paper {
  width: min(820px, 100%);
  max-height: 0;
  margin-top: 24px;
  padding: 0 30px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: max-height 700ms ease, padding 700ms ease, opacity 500ms ease, transform 500ms ease;
}

.letter-paper.open {
  max-height: 620px;
  padding: 34px 30px;
  opacity: 1;
  transform: translateY(0);
}

.letter-paper p {
  margin: 0;
  color: #553241;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.final-section {
  display: grid;
  min-height: 74svh;
  place-items: center;
  padding: 80px 20px;
  background:
    linear-gradient(rgba(75, 13, 33, 0.28), rgba(75, 13, 33, 0.48)),
    linear-gradient(135deg, #9b2748, #f2b6c4 50%, #fff2dc);
}

.final-content p {
  margin: 0 0 18px;
  color: var(--white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 9vw, 6.6rem);
  font-weight: 700;
  line-height: 1.02;
  text-shadow: 0 14px 38px rgba(58, 8, 27, 0.28);
}

.signature {
  display: block;
  margin: 0 0 34px;
  color: #fff8e8;
  font-family: "Dancing Script", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 7vw, 3.8rem);
  text-shadow: 0 10px 30px rgba(58, 8, 27, 0.22);
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--wine);
  border: 1px solid rgba(127, 23, 52, 0.14);
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 30px rgba(83, 18, 39, 0.18);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.music-toggle.playing {
  color: var(--white);
  background: var(--wine);
}

.music-icon {
  font-size: 1.4rem;
  font-weight: 800;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(37, 7, 18, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.photo-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.photo-modal figure {
  width: min(920px, 100%);
  margin: 0;
}

.photo-modal img {
  display: block;
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

.photo-modal figcaption {
  margin-top: 14px;
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  font-size: 2rem;
  line-height: 1;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 30;
  max-width: min(320px, calc(100vw - 36px));
  padding: 14px 16px;
  color: var(--white);
  background: var(--wine-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 720ms ease, transform 720ms ease;
}

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

@keyframes float {
  50% {
    transform: translate3d(0, 18px, 0) scale(1.03);
  }
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .counter-grid,
  .reasons-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-card {
    grid-template-columns: 220px 1fr;
  }

  .carousel-arrow {
    display: none;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 100svh;
    padding: 64px 18px 54px;
  }

  .section {
    padding: 70px 16px;
  }

  .counter-grid,
  .reasons-board {
    grid-template-columns: 1fr;
  }

  .counter-grid {
    gap: 12px;
  }

  .counter-card {
    min-height: 110px;
    padding: 22px 12px;
  }

  .timeline::before {
    left: 22px;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-left: 50px;
    padding: 16px;
  }

  .timeline-number {
    left: -50px;
    width: 38px;
    height: 38px;
    border-width: 3px;
    font-size: 0.82rem;
  }

  .timeline-photo {
    aspect-ratio: 1 / 1;
  }

  .photo-carousel {
    margin-right: -16px;
    padding-right: 16px;
  }

  .photo-card {
    flex-basis: 82vw;
    min-height: 390px;
  }

  .photo-card img {
    min-height: 390px;
  }

  .video-frame {
    padding: 8px;
  }

  .letter-paper.open {
    padding: 28px 22px;
  }

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