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

:root {
  --pink: #e8a0bf;
  --pink-light: #f5d5e0;
  --pink-dark: #c76b9b;
  --gold: #d4a574;
  --gold-light: #e8c9a0;
  --cream: #faf5f0;
  --text: #3d2c2c;
  --text-light: #7a6565;
  --blush: #fff0f5;
  --rose: #b76e79;
  --lavender: #f0e6f6;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-soft: 0 4px 24px rgba(61, 44, 44, 0.06);
  --shadow-medium: 0 12px 40px rgba(61, 44, 44, 0.08);
  --shadow-elevated: 0 24px 60px rgba(61, 44, 44, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245, 213, 224, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 165, 116, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(240, 230, 246, 0.1) 0%, transparent 50%),
    var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ====== GATE ====== */
.gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  overflow: hidden;
}

.gate-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gate.unlocking {
  animation: gateUnlock 1.2s ease-in-out forwards;
}

@keyframes gateUnlock {
  0% { opacity: 1; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.1); pointer-events: none; }
}

.gate-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 420px;
  padding: 2.5rem;
  animation: fadeInUp 1s ease 0.3s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.gate-icon {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.05) translateY(-8px); }
}

.gate h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.gate p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-size: 1.05rem;
}

.gate form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gate input {
  padding: 1rem 1.4rem;
  border: 2px solid var(--pink-light);
  border-radius: 50px;
  font-size: 1.05rem;
  font-family: inherit;
  text-align: center;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.gate input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(232, 160, 191, 0.15);
}

.gate button {
  padding: 1rem;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.05rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(199, 107, 155, 0.3);
}

.gate button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199, 107, 155, 0.4);
}

.gate button:active {
  transform: translateY(0) scale(0.98);
}

.gate-error {
  color: var(--pink-dark);
  font-size: 0.9rem;
  min-height: 1.4em;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.shake {
  animation: shake 0.4s ease;
}

/* ====== THREE.JS CANVAS ====== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ====== PROGRESS BAR ====== */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--pink-light), var(--pink), var(--gold), var(--pink-dark), var(--pink-light));
  background-size: 300% 100%;
  animation: shimmer 4s linear infinite;
  z-index: 100;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 12px rgba(232, 160, 191, 0.4), 0 0 24px rgba(232, 160, 191, 0.15);
}

@keyframes shimmer {
  0% { background-position: 300% 0; }
  100% { background-position: -300% 0; }
}

/* ====== CURSOR GLOW ====== */
.cursor-glow {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 160, 191, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: left, top;
  mix-blend-mode: normal;
}

/* ====== NOISE OVERLAY ====== */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ====== CONTENT ====== */
.content {
  position: relative;
  z-index: 1;
}

.content.hidden {
  display: none;
}

/* ====== SECTIONS ====== */
.section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.section:nth-child(6n+1) { background: transparent; }
.section:nth-child(6n+3) { background: linear-gradient(180deg, transparent, rgba(245, 213, 224, 0.07) 50%, transparent); }
.section:nth-child(6n+5) { background: linear-gradient(180deg, transparent, rgba(212, 165, 116, 0.05) 50%, transparent); }
.section:nth-child(6n+7) { background: linear-gradient(180deg, transparent, rgba(240, 230, 246, 0.06) 50%, transparent); }
.section:nth-child(6n+9) { background: linear-gradient(180deg, transparent, rgba(232, 160, 191, 0.05) 50%, transparent); }
.section:nth-child(6n+11) { background: linear-gradient(180deg, transparent, rgba(247, 231, 206, 0.06) 50%, transparent); }

.section-inner {
  opacity: 0;
  transform: translateY(80px) scale(0.97);
  filter: blur(6px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 1100px;
}

.section.visible .section-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

.section-inner > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible .section-inner > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.section.visible .section-inner > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.section.visible .section-inner > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.section.visible .section-inner > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.section.visible .section-inner > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.section.visible .section-inner > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

/* ====== WORD-BY-WORD REVEAL ====== */
.word-reveal .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  transition-delay: calc(var(--word-index, 0) * 0.035s);
}

.section.visible .word-reveal .word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

/* ====== GRADIENT TEXT ====== */
.gradient-text {
  background: linear-gradient(135deg, var(--text) 0%, var(--pink-dark) 50%, var(--text) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientTextShift 8s ease-in-out infinite;
}

@keyframes gradientTextShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* ====== PARALLAX ELEMENTS ====== */
[data-parallax] {
  will-change: transform;
}

/* ====== ANIMATED DIVIDERS ====== */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.7);
  filter: blur(4px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.section-divider.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

.divider-line {
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--pink-light), transparent);
}

.divider-icon {
  font-size: 1.4rem;
  color: var(--pink);
  animation: dividerPulse 3s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes dividerPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0.9; }
}

.divider-hearts {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-hearts .floating-heart {
  position: absolute;
  color: var(--pink-light);
  animation: floatUp 4s ease-in-out infinite;
  opacity: 0;
}

.divider-hearts .floating-heart:nth-child(1) { left: 30%; animation-delay: 0s; font-size: 0.8rem; }
.divider-hearts .floating-heart:nth-child(2) { left: 45%; animation-delay: 0.8s; font-size: 1rem; }
.divider-hearts .floating-heart:nth-child(3) { left: 55%; animation-delay: 1.6s; font-size: 0.7rem; }
.divider-hearts .floating-heart:nth-child(4) { left: 65%; animation-delay: 2.4s; font-size: 0.9rem; }
.divider-hearts .floating-heart:nth-child(5) { left: 40%; animation-delay: 3.2s; font-size: 0.6rem; }

@keyframes floatUp {
  0% { transform: translateY(20px) scale(0); opacity: 0; }
  20% { opacity: 0.8; transform: translateY(0) scale(1); }
  80% { opacity: 0.6; }
  100% { transform: translateY(-40px) scale(0.5); opacity: 0; }
}

.divider-sparkle {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.divider-sparkle .spark {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pink);
  animation: sparkPop 2s ease-in-out infinite;
}

.divider-sparkle .spark:nth-child(1) { animation-delay: 0s; }
.divider-sparkle .spark:nth-child(2) { animation-delay: 0.15s; }
.divider-sparkle .spark:nth-child(3) { animation-delay: 0.3s; }
.divider-sparkle .spark:nth-child(4) { animation-delay: 0.45s; width: 6px; height: 6px; }
.divider-sparkle .spark:nth-child(5) { animation-delay: 0.6s; }
.divider-sparkle .spark:nth-child(6) { animation-delay: 0.75s; }
.divider-sparkle .spark:nth-child(7) { animation-delay: 0.9s; }

@keyframes sparkPop {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(2.5); opacity: 1; }
}

.divider-wave {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.divider-wave svg {
  width: 100%;
  height: 40px;
}

/* ====== SECTION ORNAMENT ====== */
.section-ornament {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.3rem;
  color: var(--pink-light);
}

/* ====== HERO SECTION ====== */
.section-hero {
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
}

.section-hero .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-heart {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 20px rgba(232, 160, 191, 0.5));
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

.section-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 12vw, 7rem);
  margin-bottom: 0.75rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-hero .subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--text-light);
  font-weight: 300;
  max-width: 520px;
  line-height: 1.7;
}

.scroll-hint {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--pink);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--pink);
  border-bottom: 2px solid var(--pink);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
  50% { transform: rotate(45deg) translate(5px, 5px); opacity: 0.5; }
}

/* ====== GALLERY SECTION ====== */
.section-gallery .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 0.6rem;
  text-align: center;
  line-height: 1.15;
}

.section-text {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.9;
  max-width: 620px;
}

/* ====== MEDIA GRID ====== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.section.visible .media-item { opacity: 1; transform: translateY(0) scale(1); }
.section.visible .media-item:nth-child(1) { transition-delay: 0.2s; }
.section.visible .media-item:nth-child(2) { transition-delay: 0.35s; }
.section.visible .media-item:nth-child(3) { transition-delay: 0.5s; }
.section.visible .media-item:nth-child(4) { transition-delay: 0.65s; }
.section.visible .media-item:nth-child(5) { transition-delay: 0.8s; }
.section.visible .media-item:nth-child(6) { transition-delay: 0.95s; }

.media-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              opacity 0.8s ease;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  position: relative;
}

.media-item.tilt-card {
  transform-style: preserve-3d;
}

.media-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.media-item:hover {
  box-shadow: var(--shadow-elevated);
}

.media-item img,
.media-item video {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-item:hover img,
.media-item:hover video {
  transform: scale(1.06);
}

.media-item .caption {
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
  font-weight: 300;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* ====== PHOTO PLACEHOLDER ====== */
.photo-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(232, 160, 191, 0.08), rgba(212, 165, 116, 0.08));
  border: 2px dashed var(--pink-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--pink);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.photo-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(232, 160, 191, 0.06) 50%, transparent 60%);
  animation: placeholderShimmer 3s ease-in-out infinite;
}

@keyframes placeholderShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.photo-placeholder .placeholder-icon {
  font-size: 2rem;
  opacity: 0.5;
}

.photo-placeholder span {
  opacity: 0.5;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

/* ====== MESSAGE SECTION ====== */
.section-message {
  text-align: center;
}

.section-message .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.message-quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--pink-light);
  margin-bottom: -1rem;
  user-select: none;
}

.section-message .section-text {
  font-size: 1.25rem;
  line-height: 2;
  max-width: 650px;
  font-style: italic;
  position: relative;
}

.section-message .media-grid {
  margin-top: 2.5rem;
}

/* ====== GLASSMORPHISM CARD ====== */
.message-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  box-shadow:
    0 8px 32px rgba(199, 107, 155, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  max-width: 680px;
  position: relative;
  overflow: hidden;
}

.message-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink-light), var(--pink), var(--gold), var(--pink-light));
  background-size: 300% 100%;
  animation: gradientSlide 5s linear infinite;
}

@keyframes gradientSlide {
  0% { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

.message-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.message-card h2 {
  margin-bottom: 1rem;
  position: relative;
}

.message-card .section-text {
  margin-bottom: 0;
  position: relative;
}

/* ====== SECTION EMOJI ====== */
.section-emoji {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: gentleBob 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(3deg); }
  75% { transform: translateY(-3px) rotate(-2deg); }
}

/* ====== FINAL SECTION ====== */
.section-final {
  min-height: 80vh;
}

.section-final .message-card {
  background: linear-gradient(135deg, rgba(255, 245, 249, 0.8), rgba(255, 240, 245, 0.7), rgba(254, 241, 246, 0.8));
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  padding: 4rem 3rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.section-final .message-card::before {
  height: 0;
}

.section-final h2 {
  font-size: clamp(2.2rem, 7vw, 3.8rem);
}

.section-final .gradient-text {
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--rose) 50%, var(--pink-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientTextShift 6s ease-in-out infinite;
}

.section-final .section-text {
  font-size: 1.3rem;
}

.final-heart {
  font-size: 4rem;
  display: block;
  margin-top: 1.5rem;
  animation: heartbeat 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 20px rgba(232, 160, 191, 0.5));
  position: relative;
}

/* ====== BACKGROUND DECO ====== */
.section-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.05;
  font-size: 8rem;
  z-index: 0;
  will-change: transform;
}

.section-deco-left {
  left: -2rem;
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
}

.section-deco-right {
  right: -2rem;
  top: 50%;
  transform: translateY(-50%) rotate(15deg);
}

/* ====== LIGHTBOX ====== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px) saturate(0.8);
  -webkit-backdrop-filter: blur(16px) saturate(0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  cursor: pointer;
}

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

.lightbox img,
.lightbox video {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  animation: lightboxZoom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes lightboxZoom {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

/* ====== INTRO (Cherry Blossom) ====== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  background: #fef1f6;
}

.intro.active {
  display: block;
}

.intro.fading {
  animation: introFadeOut 1.5s ease-in-out forwards;
}

@keyframes introFadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-text {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  gap: 0.3rem;
}

.intro-line {
  font-family: 'Playfair Display', serif;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15), 0 0 60px rgba(199, 107, 155, 0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.intro-line-1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
}

.intro-line-2 {
  font-size: clamp(1.3rem, 4vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  transition-delay: 0.6s;
}

.intro-text.visible .intro-line {
  opacity: 1;
  transform: translateY(0);
}

.intro-skip {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 20;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: white;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.intro-skip:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* ====== GIFT PICKER ====== */
.gift-section {
  padding: 5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gift-section .gift-intro {
  max-width: 550px;
  margin: 0 auto 3rem;
}

.gift-section .gift-emoji {
  font-size: 3.5rem;
  display: inline-block;
  animation: gentleBob 3s ease-in-out infinite;
  margin-bottom: 1rem;
}

.gift-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.gift-section .gift-subtitle {
  color: var(--text-light);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  max-width: 960px;
  margin: 0 auto;
}

.gift-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gift-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 160, 191, 0.08), rgba(212, 165, 116, 0.08));
  opacity: 0;
  transition: opacity 0.3s;
}

.gift-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-elevated);
  border-color: var(--pink-light);
}

.gift-card:hover::before {
  opacity: 1;
}

.gift-card:active {
  transform: translateY(-2px) scale(0.98);
}

.gift-card .gift-card-emoji {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 0.8rem;
  transition: transform 0.3s ease;
}

.gift-card:hover .gift-card-emoji {
  transform: scale(1.15) rotate(5deg);
}

.gift-card .gift-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  position: relative;
}

.gift-card .gift-card-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.5;
  position: relative;
}

.gift-card-niks {
  border-style: dashed;
  border-color: var(--pink-light);
}

.gift-card-niks .gift-card-emoji {
  filter: grayscale(0.3);
}

.gift-card-niks:hover {
  border-color: var(--pink);
}

.gift-card.selected {
  border-color: var(--pink);
  background: linear-gradient(135deg, rgba(255, 245, 249, 0.8), rgba(255, 240, 245, 0.8));
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 40px rgba(199, 107, 155, 0.2);
}

.gift-card.selected .gift-card-emoji {
  animation: celebrateEmoji 0.6s ease;
}

@keyframes celebrateEmoji {
  0% { transform: scale(1); }
  30% { transform: scale(1.4) rotate(-10deg); }
  60% { transform: scale(1.2) rotate(8deg); }
  100% { transform: scale(1.15) rotate(0deg); }
}

.gift-card.nope {
  animation: nuhuh 0.5s ease;
}

@keyframes nuhuh {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  15% { transform: translateX(-8px) rotate(-2deg); }
  30% { transform: translateX(8px) rotate(2deg); }
  45% { transform: translateX(-6px) rotate(-1.5deg); }
  60% { transform: translateX(6px) rotate(1.5deg); }
  75% { transform: translateX(-3px) rotate(-0.5deg); }
}

.gift-niks-reply {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--pink-dark);
  font-style: italic;
  font-weight: 400;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gift-niks-reply.visible {
  opacity: 1;
  transform: translateY(0);
}

.gift-confirmation {
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.gift-confirmation.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gift-confirmation p {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
}

.gift-confirmation .conf-emoji {
  font-size: 2rem;
  display: inline-block;
  animation: heartbeat 2s ease-in-out infinite;
  margin-top: 0.5rem;
}

.gift-hearts-burst {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}

.gift-hearts-burst span {
  position: absolute;
  font-size: 1.2rem;
  animation: burstHeart 1.2s ease-out forwards;
  opacity: 0;
}

@keyframes burstHeart {
  0% { opacity: 1; transform: translate(0, 0) scale(0.5); }
  60% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--bx), var(--by)) scale(1.2) rotate(var(--br)); }
}

/* ====== FOOTER ====== */
.footer {
  text-align: center;
  padding: 6rem 2rem 3rem;
  color: var(--text-light);
  font-weight: 300;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink-light), transparent);
}

.footer-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-heart {
  display: inline-block;
  color: var(--pink);
  animation: heartbeat 2s ease-in-out infinite;
}

.footer-by {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: var(--text-light);
}

/* ====== MOBILE ====== */
@media (max-width: 768px) {
  .cursor-glow { display: none; }

  .section {
    padding: 5rem 1.4rem;
    min-height: auto;
    min-height: 80dvh;
  }

  .section-inner {
    filter: none !important;
  }

  .section.visible .section-inner {
    filter: none !important;
  }

  .section-divider {
    filter: none !important;
  }

  .section h2 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .section-text {
    font-size: 1rem;
    line-height: 1.8;
  }

  .section-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .media-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .message-card {
    padding: 2.2rem 1.6rem;
    border-radius: var(--radius-md);
  }

  .message-quote-mark {
    font-size: 3.5rem;
  }

  .section-message .section-text {
    font-size: 1.1rem;
    line-height: 1.9;
  }

  .section-deco {
    font-size: 5rem;
    opacity: 0.03;
  }

  .gate-content {
    padding: 1.5rem;
  }

  .gate h1 {
    font-size: 1.6rem;
  }

  .gift-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .gift-card {
    padding: 1.4rem 1rem;
  }

  .gift-card .gift-card-emoji {
    font-size: 2.2rem;
  }

  .word-reveal .word {
    filter: none;
  }
}

@media (max-width: 400px) {
  .gift-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 1rem;
  }
}

/* ====== REDUCED MOTION ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
    scroll-behavior: auto !important;
  }

  .section-inner {
    filter: none !important;
  }

  .word-reveal .word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
