@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@400;500;600&display=swap');

:root {
  --bg: #09050a;
  --rose: #f3b4c9;
  --soft: #f9dce6;
  --gold: #e8c58d;
  --text: #fff7fa;
  --muted: #d8c8cf;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, sans-serif;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(122, 28, 72, .45), transparent 38%),
    radial-gradient(circle at 20% 80%, rgba(77, 20, 57, .25), transparent 35%),
    #09050a;
  transition: opacity 1s ease, visibility 1s ease;
  cursor: pointer;
}

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

.intro-content { width: min(900px, 90vw); position: relative; z-index: 2; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.intro-content h1, .hero h2, .final h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.intro-content h1 {
  font-size: clamp(75px, 18vw, 170px);
  line-height: .75;
  color: var(--rose);
  text-shadow: 0 0 45px rgba(243,180,201,.25);
}

.intro-subtitle { margin-top: 32px; color: var(--muted); font-size: 16px; }

.floating-heart, .big-heart {
  color: var(--rose);
  text-shadow: 0 0 35px rgba(243,180,201,.5);
}

.floating-heart {
  font-size: 54px;
  margin-bottom: 22px;
  animation: heartbeat 1.4s infinite;
}

.tap-hint {
  display: inline-block;
  margin-top: 48px;
  padding: 15px 26px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: white;
  background: rgba(255,255,255,.06);
  animation: breathe 2s infinite;
}

.site { opacity: 0; transition: opacity 1.2s ease; }
.site.visible { opacity: 1; }

section {
  min-height: 100vh;
  padding: 90px 24px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.hero {
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(124, 25, 72, .45), transparent 35%),
    linear-gradient(180deg, #130712, #09050a);
}

.hero h2 {
  font-size: clamp(58px, 11vw, 125px);
  line-height: .86;
}

.hero h2 span, .final h3 span { color: var(--rose); }

.hero-text {
  max-width: 680px;
  margin: 35px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.scroll-note {
  position: absolute;
  bottom: 28px;
  color: #a997a0;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.memories { background: #0d070c; text-align: center; }

.memories h3, .letter h3, .future h3 {
  font: 600 clamp(45px, 7vw, 75px)/.95 "Cormorant Garamond", serif;
  margin-bottom: 42px;
}

.gallery {
  width: min(1050px, 100%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.gallery figure {
  background: rgba(255,255,255,.04);
  padding: 9px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 14px;
}

.gallery figcaption {
  padding: 15px 8px 10px;
  color: var(--muted);
  font: 500 19px "Cormorant Garamond", serif;
}

.photo-note {
  margin-top: 25px;
  color: #8f7f87;
  font-size: 11px;
}

.letter {
  background:
    radial-gradient(circle at 50% 50%, rgba(91, 24, 57, .3), transparent 45%),
    #0a0609;
}

.letter-card {
  width: min(760px, 100%);
  padding: clamp(30px, 6vw, 70px);
  border: 1px solid rgba(232,197,141,.2);
  background: rgba(255,255,255,.035);
  box-shadow: 0 30px 90px rgba(0,0,0,.4);
}

.letter-card h3 { margin-bottom: 30px; }

.letter-card p {
  color: var(--muted);
  font: 400 21px/1.8 "Cormorant Garamond", serif;
  margin: 15px 0;
}

.letter-card .signature {
  color: var(--rose);
  font-size: 32px;
  margin-top: 35px;
}

.future {
  text-align: center;
  background: linear-gradient(160deg, #160912, #080408);
}

.future-inner { width: min(720px, 100%); }

.future-inner > p:not(.eyebrow):not(.small) {
  color: var(--muted);
  font: 400 23px/1.7 "Cormorant Garamond", serif;
}

.rings {
  font: 100px "Cormorant Garamond", serif;
  color: var(--gold);
  margin: 35px 0;
}

.small { color: #a998a1; font-size: 13px; }

.final {
  min-height: 100svh;
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(126, 27, 74, .5), transparent 38%),
    #080408;
}

.final h3 {
  font-size: clamp(60px, 12vw, 135px);
  line-height: .85;
}

.final > p:not(.eyebrow):not(.final-note) {
  max-width: 600px;
  margin-top: 35px;
  color: var(--muted);
  line-height: 1.8;
}

.big-heart {
  font-size: 95px;
  margin-top: 45px;
  animation: heartbeat 1.5s infinite;
}

.final-note {
  position: absolute;
  bottom: 25px;
  color: #806f78;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.music-badge {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  opacity: 0;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  color: #d8c8cf;
  font-size: 10px;
  transition: opacity .5s ease;
}

.music-badge.show { opacity: 1; }

#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 13px;
  animation: fall linear forwards;
}

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

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .75; }
  50% { transform: scale(1.05); opacity: 1; }
}

@media (max-width: 650px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery figure:nth-child(n+4) { display: none; }
  .letter-card p { font-size: 20px; }
}
