/* Slide 6 — Sangeet & Ring Ceremony (unified group reveal) */

.slide[data-slide="6"] {
  overflow: hidden;
  perspective: 1400px;
}

.slide[data-slide="6"] .s6-bg {
  opacity: 0;
  filter: blur(8px);
}

.slide[data-slide="6"] .s6-scene-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transform: translateX(-160px);
  will-change: transform, opacity;
  pointer-events: none;
}

.slide[data-slide="6"] .s6-gramophone-group,
.slide[data-slide="6"] .s6-disco-wrap,
.slide[data-slide="6"] .s6-music-wrap {
  position: absolute;
  z-index: 13;
}

.slide[data-slide="6"] .s6-gramophone,
.slide[data-slide="6"] .s6-vinyl {
  position: absolute;
  display: block;
}

.slide[data-slide="6"] .s6-vinyl {
  z-index: 1;
  transform-origin: 50% 50%;
}

.slide[data-slide="6"] .s6-gramophone {
  z-index: 2;
}

.slide[data-slide="6"] .s6-gramophone-tones-wrap {
  position: absolute;
  left: -118px;
  top: 8px;
  width: 180px;
  height: 92px;
  z-index: 3;
  pointer-events: none;
}

.slide[data-slide="6"] .s6-gramophone-tones {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleX(-1);
}

.slide[data-slide="6"] .s6-disco-wrap {
  transform-origin: 50% 100%;
}

.slide[data-slide="6"] .s6-disco-balls {
  display: block;
  width: 100%;
  height: 100%;
}

.slide[data-slide="6"] .s6-music-wrap {
  overflow: hidden;
  transform-origin: 50% 100%;
}

.slide[data-slide="6"] .s6-music-wrap,
.slide[data-slide="6"] .s6-gramophone-tones-wrap {
  clip-path: inset(0 100% 0 0);
}

.slide[data-slide="6"] .s6-music-tones {
  display: block;
  width: 100%;
  height: 100%;
}

.slide[data-slide="6"] .s6-couple {
  z-index: 14;
  transform-origin: 50% 50%;
  opacity: 0;
  transform: rotateY(-82deg);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.slide[data-slide="6"] .s6-frame {
  z-index: 12;
}

.slide[data-slide="6"] .s6-curtain {
  z-index: 2;
}

.slide[data-slide="6"] .s6-title {
  z-index: 11;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  will-change: clip-path;
}

.slide[data-slide="6"] .s6-sparkle-bottom,
.slide[data-slide="6"] .s6-sparkle-top {
  z-index: 3;
}

.slide[data-slide="6"] .s6-copy {
  position: absolute;
  left: 126px;
  top: 1282px;
  width: 829px;
  max-width: 92%;
  z-index: 13;
  pointer-events: none;
}

.slide[data-slide="6"] .s6-content-reveal {
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  will-change: clip-path;
}

.slide[data-slide="6"] .s6-content-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.slide[data-slide="6"].s6-play .s6-bg {
  animation: s6BgIn 1.1s ease-out forwards;
}

.slide[data-slide="6"].s6-play .s6-scene-wrap {
  animation: s6GroupSlideIn 1.55s ease-out 0.45s forwards;
}

.slide[data-slide="6"].s6-play .s6-couple {
  animation:
    s6CoupleSpinReveal 1.15s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards,
    s6CoupleSwayLR 2.8s ease-in-out 2.25s infinite;
}

.slide[data-slide="6"].s6-play .s6-title,
.slide[data-slide="6"].s6-play .s6-content-reveal {
  animation: s6RevealDown 1.55s ease-out 0.45s forwards;
}

.slide[data-slide="6"].s6-play .s6-vinyl {
  animation: s6VinylSpin 3.2s linear 2.35s infinite;
}

.slide[data-slide="6"].s6-play .s6-disco-balls {
  animation: s6SwayLR 2.8s ease-in-out 2.55s infinite;
}

.slide[data-slide="6"].s6-play .s6-gramophone-tones-wrap {
  animation: s6RevealSwipe 2.4s ease-in-out 2.45s infinite;
}

.slide[data-slide="6"].s6-play .s6-music-wrap {
  animation: s6RevealSwipe 2.4s ease-in-out 2.65s infinite;
}

@keyframes s6BgIn {
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes s6GroupSlideIn {
  from {
    opacity: 0;
    transform: translateX(-160px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes s6CoupleSpinReveal {
  from {
    opacity: 0;
    transform: rotateY(-82deg);
  }

  to {
    opacity: 1;
    transform: rotateY(0);
  }
}

@keyframes s6CoupleSwayLR {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-12px);
  }

  75% {
    transform: translateX(12px);
  }
}

@keyframes s6RevealDown {
  to { clip-path: inset(0 0 0 0); }
}

@keyframes s6RevealSwipe {
  0%, 100% { clip-path: inset(0 100% 0 0); }
  50% { clip-path: inset(0 0 0 0); }
}

@keyframes s6SwayLR {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(0) translateX(14px); }
}

@keyframes s6VinylSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .slide[data-slide="6"] .s6-bg,
  .slide[data-slide="6"] .s6-scene-wrap,
  .slide[data-slide="6"] .s6-couple {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .slide[data-slide="6"] .s6-music-wrap,
  .slide[data-slide="6"] .s6-gramophone-tones-wrap,
  .slide[data-slide="6"] .s6-title,
  .slide[data-slide="6"] .s6-content-reveal {
    clip-path: none !important;
  }

  .slide[data-slide="6"].s6-play .s6-bg,
  .slide[data-slide="6"].s6-play .s6-scene-wrap,
  .slide[data-slide="6"].s6-play .s6-couple,
  .slide[data-slide="6"].s6-play .s6-title,
  .slide[data-slide="6"].s6-play .s6-content-reveal,
  .slide[data-slide="6"].s6-play .s6-vinyl,
  .slide[data-slide="6"].s6-play .s6-disco-balls,
  .slide[data-slide="6"].s6-play .s6-gramophone-tones-wrap,
  .slide[data-slide="6"].s6-play .s6-music-wrap {
    animation: none !important;
  }

  .slide[data-slide="6"] .s6-gramophone-tones {
    transform: scaleX(-1);
  }
}
