/* ══════════════════════════════════════════════
   Max & Vanessa
   ══════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&family=Quicksand:wght@400;500;600;700&display=swap");

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

:root {
  --bg: #1a1118;
  --bg2: #231920;
  --card: rgba(255, 200, 210, 0.04);
  --card-border: rgba(255, 180, 200, 0.12);
  --card-hover: rgba(255, 180, 200, 0.08);
  --text: #f5e8ee;
  --text-dim: #b89da8;
  --text-muted: #8a6d78;
  --blush: #e8839e;
  --rose: #d4607e;
  --gold: #e8c170;
  --lavender: #c4a0d4;
  --peach: #f0b89a;
  --cream: #f5e6d8;
  --font-display: "Nunito", -apple-system, sans-serif;
  --font-body: "Nunito", -apple-system, sans-serif;
  --font-script: "Quicksand", "Nunito", -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══ AMBIENT ══ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 20% 15%,
      rgba(232, 131, 158, 0.07) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 60%,
      rgba(196, 160, 212, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 90%,
      rgba(232, 193, 112, 0.04) 0%,
      transparent 40%
    );
}

/* ══ PETALS ══ */
.floating-petals {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.petal {
  position: absolute;
  width: var(--size, 12px);
  height: var(--size, 12px);
  background: var(--color, rgba(232, 131, 158, 0.3));
  border-radius: 50% 0 50% 50%;
  animation: petalFall var(--dur, 12s) linear infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
  filter: blur(0.5px);
}
@keyframes petalFall {
  0% {
    transform: translate(0, -20px) rotate(0deg) scale(1);
    opacity: 0;
  }
  8% {
    opacity: var(--opacity, 0.4);
  }
  88% {
    opacity: var(--opacity, 0.4);
  }
  100% {
    transform: translate(var(--drift, 80px), calc(100vh + 40px))
      rotate(var(--spin, 360deg)) scale(0.5);
    opacity: 0;
  }
}

/* ══ SPARKLES ══ */
.sparkle-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.sparkle {
  position: absolute;
  width: var(--size, 3px);
  height: var(--size, 3px);
  background: var(--color, #fff);
  border-radius: 50%;
  animation: sparkleGlow var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}
@keyframes sparkleGlow {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: var(--bright, 0.6);
    transform: scale(1.3);
  }
}

/* ══ NAV ══ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  z-index: 100;
  transition: all 0.4s;
}
.nav.scrolled {
  background: rgba(26, 17, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232, 131, 158, 0.08);
}
.nav-logo {
  font-family: var(--font-script);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-heart {
  color: var(--blush);
  font-size: 0.9em;
  display: inline-block;
  animation: starPulse 2s ease-in-out infinite;
}
@keyframes starPulse {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.2);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.12);
  }
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blush);
  transition: width 0.3s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  width: 100%;
}

/* ══ HERO ══ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(232, 131, 158, 0.08) 0%,
    rgba(196, 160, 212, 0.04) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}
.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease-out;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--blush);
  margin-bottom: 20px;
  opacity: 0.85;
  animation: fadeUp 1s ease-out 0.15s both;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeUp 1s ease-out 0.3s both;
}
.hero-name {
  display: inline-block;
}
.hero-and {
  color: var(--blush);
  margin: 0 12px;
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 0.65em;
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s;
}
.hero-and:hover {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(232, 193, 112, 0.5);
  transform: scale(1.15);
}
.hero-tagline {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--lavender);
  opacity: 0.8;
  margin-bottom: 18px;
  animation: fadeUp 1s ease-out 0.5s both;
}
.hero-desc {
  max-width: 460px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.8;
  animation: fadeUp 1s ease-out 0.65s both;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid var(--card-border);
  border-radius: 50px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.4s;
  background: rgba(232, 131, 158, 0.06);
  animation: fadeUp 1s ease-out 0.8s both;
}
.hero-btn:hover {
  background: rgba(232, 131, 158, 0.15);
  border-color: rgba(232, 131, 158, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 131, 158, 0.12);
}
.hero-btn svg {
  transition: transform 0.3s;
}
.hero-btn:hover svg {
  transform: translateY(3px);
}

/* Scroll indicator — centered on all sizes */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeIn 1s ease-out 1.2s both;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.scroll-indicator span {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blush), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

/* ══ SECTION COMMONS ══ */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 12px;
  text-align: center;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 500px;
  margin: 0 auto 44px;
  line-height: 1.7;
}
.section-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══ PHOTO GALLERY — desktop: masonry, mobile: slider ══ */
.showcase {
  position: relative;
  z-index: 2;
  padding: 100px 24px 60px;
}
.photo-grid {
  columns: 3;
  column-gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}
/* Hide 10th photo on desktop (3-col = 9 photos, 3x3 perfect) */
.photo-card:last-child {
  display: none;
}
.photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--card-border);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  break-inside: avoid;
  margin-bottom: 14px;
}
.photo-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 131, 158, 0.25);
  box-shadow: 0 16px 50px rgba(232, 131, 158, 0.1);
}
.photo-frame {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.photo-card:hover .photo-frame img {
  transform: scale(1.04);
}
.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(
    to top,
    rgba(26, 17, 24, 0.9) 0%,
    transparent 100%
  );
  font-family: var(--font-script);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--cream);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s;
}
.photo-card:hover .photo-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Slider nav - hidden on desktop */
.slider-nav {
  display: none;
}
.slider-nav {
  text-align: center;
  margin-top: 20px;
}
.slider-counter {
  font-family: var(--font-script);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blush);
  margin-bottom: 10px;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(232, 131, 158, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.slider-dot.active {
  background: var(--blush);
  width: 24px;
  border-radius: 4px;
}
.slider-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

@media (hover: none) {
  .photo-caption {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══ ABOUT ══ */
.about {
  position: relative;
  z-index: 2;
  padding: 80px 24px 60px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto 50px;
}
.about-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  transition: all 0.4s;
}
.about-card:hover {
  background: var(--card-hover);
  border-color: rgba(232, 131, 158, 0.22);
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(232, 131, 158, 0.07);
}
.card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.about-card p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* Secret word — looks like regular styled text, no obvious hint */
.secret-word {
  color: var(--blush);
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}
.secret-word:hover {
  text-shadow: 0 0 12px rgba(232, 131, 158, 0.25);
}

/* Stats */
.stats-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto 50px;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
}
.stat {
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blush);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--card-border);
}

/* Quote — clickable but looks normal */
.quote-block {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  padding: 0 20px;
}
.quote-block blockquote {
  font-family: var(--font-script);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 12px;
  cursor: pointer;
  transition: opacity 0.3s;
}
.quote-block blockquote:hover {
  opacity: 1;
}
.quote-block cite {
  font-family: var(--font-script);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--blush);
  font-style: normal;
}

/* ══ TIMELINE ══ */
.timeline-section {
  position: relative;
  z-index: 2;
  padding: 80px 24px 60px;
}
.timeline {
  max-width: 600px;
  margin: 40px auto 0;
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--blush),
    var(--lavender),
    var(--gold)
  );
  opacity: 0.3;
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blush);
  box-shadow: 0 0 12px rgba(232, 131, 158, 0.4);
}
.timeline-item:nth-child(2) .timeline-dot {
  background: var(--lavender);
  box-shadow: 0 0 12px rgba(196, 160, 212, 0.4);
}
.timeline-item:nth-child(3) .timeline-dot {
  background: var(--peach);
  box-shadow: 0 0 12px rgba(240, 184, 154, 0.4);
}
.timeline-item:nth-child(4) .timeline-dot {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(232, 193, 112, 0.4);
}
.timeline-content {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s;
}
.timeline-content:hover {
  border-color: rgba(232, 131, 158, 0.18);
  box-shadow: 0 4px 20px rgba(232, 131, 158, 0.05);
}
.timeline-tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 8px;
}
.timeline-tag--secret {
  cursor: pointer;
  transition: all 0.3s;
}
.timeline-tag--secret:hover {
  color: var(--gold);
}
.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.timeline-content p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.75;
}

/* ══ ENVELOPE ══ */
.envelope-section {
  position: relative;
  z-index: 2;
  padding: 80px 24px 100px;
  text-align: center;
}
.env-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 30px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
.envelope-wrapper {
  display: inline-block;
  cursor: pointer;
  perspective: 800px;
  transition: transform 0.3s;
}
.envelope-wrapper:hover {
  transform: translateY(-4px);
}
.envelope {
  position: relative;
  width: 320px;
  height: 220px;
  margin: 0 auto;
}
.env-shadow {
  position: absolute;
  bottom: -12px;
  left: 10%;
  right: 10%;
  height: 30px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
}
.env-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #f5e6d8 0%, #efe0d0 40%, #e8d5c4 100%);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.env-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.env-fold-left,
.env-fold-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
}
.env-fold-left {
  left: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.02) 50%);
}
.env-fold-right {
  right: 0;
  background: linear-gradient(225deg, transparent 50%, rgba(0, 0, 0, 0.02) 50%);
}
.env-address {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.env-to {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 600;
  color: #6b4c5a;
  margin-bottom: 8px;
}
.env-line {
  width: 100px;
  height: 1px;
  background: rgba(107, 76, 90, 0.2);
  margin: 6px auto;
}
.env-line--short {
  width: 65px;
}
.env-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
}
.env-stamp-border {
  width: 40px;
  height: 48px;
  border: 2px dashed rgba(107, 76, 90, 0.3);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.3);
}
.env-stamp-inner {
  text-align: center;
  line-height: 1;
}
.env-stamp-inner span {
  font-size: 1.1rem;
  color: var(--rose);
}
.env-stamp-text {
  font-size: 0.45rem;
  letter-spacing: 0.1em;
  color: rgba(107, 76, 90, 0.5);
  margin-top: 2px;
  font-weight: 700;
}
.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(160deg, #f0ddd0, #e8d0c0);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  transform-origin: top center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  overflow: hidden;
}
.env-flap.open {
  transform: rotateX(180deg);
}
.env-grain--flap {
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}
.env-flap-shadow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.08), transparent);
}
.env-seal {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  transition: all 0.4s;
}
.env-seal-outer {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d4607e, #a84060);
  box-shadow: 0 2px 10px rgba(168, 64, 96, 0.4);
}
.env-seal-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.env-seal.broken {
  animation: sealBreak 0.4s ease-out forwards;
}
@keyframes sealBreak {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -80%) scale(0.4);
    opacity: 0;
  }
}

/* ══ LETTER OVERLAY ══ */
.letter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 17, 24, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  padding: 20px;
}
.letter-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.letter-paper {
  background: linear-gradient(160deg, #faf5f0, #f5ede4);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  position: relative;
  color: #4a3540;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.letter-overlay.show .letter-paper {
  transform: scale(1) translateY(0);
}
.letter-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(107, 76, 90, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  color: #6b4c5a;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.letter-close:hover {
  background: rgba(232, 131, 158, 0.15);
  border-color: rgba(232, 131, 158, 0.3);
}
.letter-from-tag {
  font-family: var(--font-script);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rose);
  margin-bottom: 16px;
}
.letter-paper h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #3a2530;
  margin-bottom: 18px;
}
.letter-paper p {
  font-size: 0.9rem;
  line-height: 1.85;
  margin-bottom: 16px;
  color: #5a4550;
}
.letter-sign {
  font-family: var(--font-script);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--rose);
  margin-top: 24px;
}
.letter-sign-sub {
  font-size: 0.8rem;
  color: #8a6d78;
  font-style: italic;
  margin-top: 4px;
}

/* ══ CONFETTI ══ */
#confetti {
  position: fixed;
  inset: 0;
  z-index: 210;
  pointer-events: none;
}

/* ══ EGG POPUPS ══ */
.egg-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 17, 24, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 180;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.egg-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.egg-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  background: linear-gradient(160deg, #2e2128, #211a22);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 36px 28px;
  max-width: 420px;
  width: calc(100% - 40px);
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}
.egg-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.egg-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(46, 33, 40, 0.9);
  color: var(--text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.egg-close:hover {
  color: var(--text);
  border-color: rgba(232, 131, 158, 0.3);
}
.egg-tag-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.egg-popup h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.egg-popup p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 18px;
}
.egg-signed {
  font-family: var(--font-script);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blush);
}

/* ══ FOOTER ══ */
footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 50px 24px 40px;
  border-top: 1px solid var(--card-border);
}
.footer-hearts {
  color: var(--blush);
  font-size: 0.9rem;
  letter-spacing: 8px;
  margin-bottom: 12px;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s;
}
.footer-hearts:hover {
  opacity: 1;
}
.footer-names {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-made {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-script);
  font-weight: 500;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ══════════════════════════════════════════════ */

/* Tablet - keep masonry 2-col */
@media (max-width: 768px) {
  .nav {
    padding: 14px 18px;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 0.78rem;
  }

  .hero {
    padding: 0 20px;
  }
  .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }
  .hero-glow {
    width: 350px;
    height: 350px;
  }

  .photo-grid {
    columns: 2;
    column-gap: 10px;
  }
  .photo-card {
    margin-bottom: 10px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stats-ribbon {
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
  }
  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .timeline {
    padding-left: 32px;
  }
  .timeline-dot {
    left: -28px;
  }

  .envelope {
    width: 280px;
    height: 192px;
  }
  .env-to {
    font-size: 1.3rem;
  }

  .letter-paper {
    padding: 30px 24px;
  }
}

/* Phone */
@media (max-width: 480px) {
  .nav {
    padding: 10px 14px;
  }
  .nav-logo {
    font-size: 1.2rem;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 0.72rem;
  }

  .hero {
    min-height: 100svh;
    padding: 0 16px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-and {
    margin: 0 8px;
  }
  .hero-tagline {
    font-size: 0.92rem;
  }
  .hero-desc {
    font-size: 0.88rem;
  }
  .hero-btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }
  .hero-badge {
    font-size: 0.95rem;
  }
  .hero-glow {
    width: 280px;
    height: 280px;
  }

  .section-title {
    font-size: 1.6rem;
  }
  .section-sub {
    font-size: 0.85rem;
  }
  .showcase {
    padding: 80px 0 50px;
    overflow: hidden;
  }

  /* Mobile slider mode */
  .photo-grid {
    columns: unset;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 0 20px;
    scrollbar-width: none;
  }
  .photo-grid::-webkit-scrollbar {
    display: none;
  }
  .photo-card {
    flex: 0 0 85%;
    max-width: 85%;
    margin-bottom: 0;
    margin-right: 12px;
    border-radius: 16px;
    scroll-snap-align: center;
    break-inside: unset;
  }
  .photo-card:last-child {
    margin-right: 20px;
    display: block;
  }
  .photo-frame img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    object-position: top center;
    aspect-ratio: 3 / 4;
  }
  .photo-caption {
    opacity: 1;
    transform: translateY(0);
    font-size: 0.9rem;
    padding: 24px 14px 12px;
  }
  .slider-nav {
    display: block;
    padding: 0 20px;
  }

  .about {
    padding: 60px 14px 50px;
  }
  .about-card {
    padding: 22px 18px;
  }
  .card-icon {
    font-size: 1.5rem;
  }
  .about-card h3 {
    font-size: 1.05rem;
  }
  .about-card p {
    font-size: 0.82rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }
  .stat-label {
    font-size: 0.68rem;
  }

  .timeline-section {
    padding: 60px 14px 50px;
  }
  .timeline {
    padding-left: 28px;
  }
  .timeline-content {
    padding: 20px;
  }
  .timeline-content h3 {
    font-size: 1.1rem;
  }
  .timeline-content p {
    font-size: 0.84rem;
  }

  .envelope-section {
    padding: 60px 14px 80px;
  }
  .envelope {
    width: 250px;
    height: 172px;
  }
  .env-to {
    font-size: 1.15rem;
  }
  .env-seal-outer {
    width: 42px;
    height: 42px;
  }
  .env-seal-inner {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .letter-paper {
    padding: 26px 20px;
    border-radius: 14px;
    max-height: 80vh;
    max-height: 80dvh;
  }
  .letter-paper h3 {
    font-size: 1.25rem;
  }
  .letter-paper p {
    font-size: 0.85rem;
    line-height: 1.75;
  }

  .egg-popup {
    padding: 28px 22px;
    width: calc(100% - 32px);
    border-radius: 16px;
  }
  .egg-popup h4 {
    font-size: 1.15rem;
  }
  .egg-popup p {
    font-size: 0.84rem;
  }

  .scroll-indicator {
    bottom: 24px;
  }
  .quote-block blockquote {
    font-size: 1rem;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero-title {
    font-size: 2rem;
  }
  .nav-logo {
    font-size: 1.05rem;
  }
  .nav-links a {
    font-size: 0.68rem;
  }
  .nav-links {
    gap: 8px;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .about-card {
    padding: 18px 16px;
  }
  .timeline-content {
    padding: 18px;
  }
  .envelope {
    width: 220px;
    height: 152px;
  }
  .letter-paper {
    padding: 22px 18px;
  }
  .letter-paper p {
    font-size: 0.82rem;
  }
  .egg-popup {
    padding: 24px 18px;
    width: calc(100% - 24px);
  }
}

/* Safe area */
@supports (padding: max(0px)) {
  .nav {
    padding-top: max(14px, env(safe-area-inset-top));
  }
  footer {
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 24px 40px;
  }
  .scroll-indicator {
    display: none;
  }
  .photo-grid {
    columns: 3;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(232, 131, 158, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 131, 158, 0.35);
}
::selection {
  background: rgba(232, 131, 158, 0.3);
  color: #fff;
}
