/* ==========================================================================
   Cysco Perfume — Video-Inspired Motion & Transitions
   ========================================================================== */

/* Hero Staggered Entrance */
.hero-anim {
  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-anim--delay-1 {
  animation-delay: 120ms;
}

.hero-anim--delay-2 {
  animation-delay: 240ms;
}

.hero-anim--delay-3 {
  animation-delay: 360ms;
}

.hero-anim--delay-4 {
  animation-delay: 480ms;
}

.hero-visual-anim {
  opacity: 0;
  transform: scale(1.04);
  animation: heroImageReveal 950ms cubic-bezier(0.22, 1, 0.36, 1) 160ms forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Gentle Spring Bounce (for Cut-out Bottles) */
.float-slow {
  animation: floatSlow 7s ease-in-out infinite;
}

.hero-cutout {
  animation: bottleBounce 2.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

.hero-cutout::after {
  animation: shadowBounce 2.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

.split-media--cutout {
  animation: bottleBounce 3.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

.hero-cutout img,
.split-media--cutout img {
  transition: filter 340ms var(--ease-luxury);
  cursor: pointer;
}

.hero-cutout:hover img,
.split-media--cutout:hover img {
  filter: drop-shadow(0 32px 44px rgba(45, 28, 12, 0.34)) brightness(1.03);
}

@keyframes floatSlow {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes bottleBounce {

  0%,
  100% {
    transform: translateY(0px) scaleY(0.985) scaleX(1.015);
  }

  40% {
    transform: translateY(-18px) scaleY(1.015) scaleX(0.99);
  }

  65% {
    transform: translateY(2px) scaleY(0.98) scaleX(1.02);
  }

  80% {
    transform: translateY(-6px) scaleY(1.005) scaleX(0.995);
  }
}

@keyframes shadowBounce {

  0%,
  100% {
    transform: translateX(-50%) scale(1.02);
    opacity: 0.9;
  }

  40% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0.52;
  }

  65% {
    transform: translateX(-50%) scale(1.06);
    opacity: 0.95;
  }

  80% {
    transform: translateX(-50%) scale(0.92);
    opacity: 0.75;
  }
}

/* Interactive Champagne Sheen on Product Cards */
.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 620ms var(--ease-luxury);
  pointer-events: none;
}

.product-card:hover .product-card__media::after {
  transform: translateX(120%);
}

/* 3D Perspective Stage & Scroll-Driven Product Animation (Video 00:00-00:08) */
.perspective-stage {
  perspective: 1400px;
  transform-style: preserve-3d;
  position: relative;
}

.perspective-stage::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 154, 104, 0.28) 0%, transparent 65%);
  opacity: var(--focus-glow, 0.25);
  pointer-events: none;
  z-index: 0;
  transition: opacity 250ms ease;
}

.perspective-stage>img {
  position: relative;
  z-index: 1;
}

[data-parallax-3d] {
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

/* 3D Spotlight Trio (Matches Video 00:04-00:05) */
.spotlight-trio {
  perspective: 1400px;
  transform-style: preserve-3d;
}

.spotlight-card {
  will-change: transform, opacity;
  transform-style: preserve-3d;
  transition:
    transform 650ms var(--ease-luxury),
    opacity 500ms ease,
    border-color 350ms ease,
    box-shadow 450ms ease;
}

@media (min-width: 900px) {
  .spotlight-card[data-slot="left"] {
    transform: translateX(4%) scale(0.9) rotateY(15deg);
    opacity: 0.86;
    z-index: 1;
  }

  .spotlight-card[data-slot="center"] {
    transform: translateZ(48px) scale(1.04) rotateY(0deg);
    opacity: 1;
    z-index: 3;
    border-color: var(--accent-gold);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.28);
  }

  .spotlight-card[data-slot="right"] {
    transform: translateX(-4%) scale(0.9) rotateY(-15deg);
    opacity: 0.86;
    z-index: 1;
  }

  .spotlight-card[data-slot="left"]:hover {
    transform: translateX(4%) scale(0.93) rotateY(10deg);
    opacity: 1;
  }

  .spotlight-card[data-slot="right"]:hover {
    transform: translateX(-4%) scale(0.93) rotateY(-10deg);
    opacity: 1;
  }

  .spotlight-card[data-slot="center"]:hover {
    transform: translateZ(58px) translateY(-6px) scale(1.06) rotateY(0deg);
  }
}

/* Scroll Reveal (progressive enhancement: visible if JS is disabled) */
.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 680ms var(--ease-luxury), transform 680ms var(--ease-luxury);
}

.js-enabled [data-reveal="left"] {
  transform: translateX(-28px);
}

.js-enabled [data-reveal="right"] {
  transform: translateX(28px);
}

.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Staggered reveal children */
.js-enabled [data-reveal-delay="1"] {
  transition-delay: 90ms;
}

.js-enabled [data-reveal-delay="2"] {
  transition-delay: 180ms;
}

.js-enabled [data-reveal-delay="3"] {
  transition-delay: 270ms;
}

.js-enabled [data-reveal-delay="4"] {
  transition-delay: 360ms;
}

/* Experience Carousel Crossfade */
.experience-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 620ms var(--ease-luxury), transform 750ms var(--ease-luxury);
}

.experience-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Outlined Gold Button Hover Fill + Sliding Arrow (matches video CTA) */
.btn-editorial {
  position: relative;
  overflow: hidden;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.btn-editorial .btn-arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-luxury);
}

.btn-editorial:hover .btn-arrow,
.btn-editorial:focus-visible .btn-arrow {
  transform: translateX(4px);
}

/* Product Card Image Hover Zoom */
.product-card__media img,
.spotlight-card__media img {
  transition: transform 420ms var(--ease-luxury);
}

.product-card:hover .product-card__media img,
.spotlight-card:hover .spotlight-card__media img {
  transform: scale(1.05);
}

/* FAQ Accordion Smooth Expand */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease-luxury), opacity 240ms ease;
  opacity: 0;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer__inner {
  overflow: hidden;
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Mobile View: Static Hero & Strict Zero-Drift Scroll */
@media (max-width: 768px) {

  .hero-anim,
  .hero-visual-anim {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .hero-cutout,
  .split-media--cutout {
    animation: none !important;
    transform: none !important;
  }

  .hero-cutout::after {
    animation: none !important;
    transform: translateX(-50%) !important;
    opacity: 0.7 !important;
  }

  .crest-logo {
    animation: none !important;
  }

  .perspective-stage {
    perspective: none !important;
  }
}