*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --cream: #f5f0e8;
  --dark: #100d0a;
  --rose: #c9736a;
  --gold: #c8a96e;
}
html,
body {
  height: 100%;
  background: var(--dark);
  color: var(--cream);
  font-family: "Cormorant Garamond", serif;
  overscroll-behavior: none;
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#love-screen {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  overscroll-behavior: none;
}
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(to right, var(--rose), var(--gold));
  z-index: 1000;
  width: 0%;
  transition: width 0.12s linear;
  pointer-events: none;
}
#slide-dots {
  position: fixed;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: all 0.3s ease;
  cursor: pointer;
}
.dot.active {
  background: var(--gold);
  transform: scale(1.5);
}
.slide {
  background: black;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#slide-intro {
  background: var(--dark);
}
#slide-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 30% 40%,
      rgba(201, 115, 106, 0.13) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 50% 60% at 75% 65%,
      rgba(200, 169, 110, 0.08) 0%,
      transparent 65%
    );
}
.intro-content {
  text-align: center;
  z-index: 2;
}
.intro-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 1.5rem;
  animation: fadeUp 1.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.intro-big {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(4rem, 14vw, 10rem);
  line-height: 0.88;
  color: var(--cream);
  animation: fadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.intro-big .accent {
  color: var(--rose);
}
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.35;
  animation: fadeUp 2s 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--cream), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.photo-slide-bg {
  position: absolute;
  inset: 0;

  /* UNIFORMISATION + FOCAL */
  --x: 50%;
  --y: 50%;
  background-position: var(--x) var(--y);
  background-size: cover;
  background-repeat: no-repeat;

  /* STYLE PRO */
  filter: brightness(0.48) saturate(0.8);
  transform: scale(1.1);
}
.photo-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(16, 13, 10, 0.78) 100%
  );
}
.photo-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.85s ease,
    transform 0.85s ease;
}
.photo-slide-content.visible {
  opacity: 1;
  transform: translateY(0);
}
.slide-num {
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: 1rem;
}
.slide-quote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  line-height: 1.35;
  color: var(--cream);
  max-width: 680px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
}
#slide-finale {
  background: var(--dark);
}
#slide-finale::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 50%,
    rgba(201, 115, 106, 0.18) 0%,
    transparent 65%
  );
}
.finale-content {
  text-align: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}
.finale-content.visible {
  opacity: 1;
  transform: translateY(0);
}
.finale-label {
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: 1.8rem;
}
.finale-text {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 1;
  color: var(--cream);
}
.finale-heart {
  display: block;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--rose);
  margin-top: 1.5rem;
  animation: heartbeat 2s ease-in-out infinite;
}
#music-indicator {
  position: fixed;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 13, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: opacity 0.3s;
}
#music-indicator:hover {
  opacity: 0.75;
}
.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.music-bar {
  width: 3px;
  background: var(--rose);
  border-radius: 2px;
  animation: musicBar 0.8s ease-in-out infinite;
}
.music-bar:nth-child(2) {
  animation-delay: 0.15s;
}
.music-bar:nth-child(3) {
  animation-delay: 0.3s;
}
.music-bar:nth-child(4) {
  animation-delay: 0.1s;
}
.music-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.6;
}
#music-indicator.paused .music-bar {
  animation-play-state: paused;
  opacity: 0.35;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.8;
    transform: scaleY(1.4);
  }
}
@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.18);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.12);
  }
  70% {
    transform: scale(1);
  }
}
@keyframes musicBar {
  0%,
  100% {
    height: 4px;
  }
  50% {
    height: 14px;
  }
}
