/* ==========================================================================
   Plantae World — Luxury Hybrid Hero Slider (Rosebank Style)
   Seamless Overlapping Cross-Dissolve & Ken Burns Engine
   ========================================================================== */

/* Fixed Background Container */
.film {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #080e09;
  pointer-events: none;
  transform-origin: center;
  will-change: transform, opacity;
}

/* Slides Stack */
.hero-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  pointer-events: none;
  transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
  overflow: hidden;
}

/* Active Slide (Fading In on Top) */
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

/* Exiting Slide (Maintains 100% Opacity Underneath at z-index: 1 to Prevent Any Freeze/Flash) */
.hero-slide.is-exiting,
.hero-slide.is-active.is-exiting {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
  pointer-events: none;
}

/* Video Elements */
.hero-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.06) saturate(1.1);
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* High-Res Stills with Ken Burns Camera Motion */
.hero-slide-img {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  filter: brightness(0.90) contrast(1.06) saturate(1.1);
  transform: scale(1.0) translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

/* Continuous Ken Burns Keyframes (Play both when active and while exiting without interruption) */
.hero-slide[data-motion="kb-zoom-in"].is-active .hero-slide-img,
.hero-slide[data-motion="kb-zoom-in"].is-exiting .hero-slide-img {
  animation: kbZoomIn 8.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-slide[data-motion="kb-zoom-out"].is-active .hero-slide-img,
.hero-slide[data-motion="kb-zoom-out"].is-exiting .hero-slide-img {
  animation: kbZoomOut 8.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-slide[data-motion="kb-pan-right"].is-active .hero-slide-img,
.hero-slide[data-motion="kb-pan-right"].is-exiting .hero-slide-img {
  animation: kbPanRight 8.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-slide[data-motion="kb-pan-left"].is-active .hero-slide-img,
.hero-slide[data-motion="kb-pan-left"].is-exiting .hero-slide-img {
  animation: kbPanLeft 8.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes kbZoomIn {
  0% { transform: scale(1.0) translate3d(0, 0, 0); }
  100% { transform: scale(1.09) translate3d(-1%, -0.8%, 0); }
}

@keyframes kbZoomOut {
  0% { transform: scale(1.09) translate3d(-1%, -0.8%, 0); }
  100% { transform: scale(1.0) translate3d(0, 0, 0); }
}

@keyframes kbPanRight {
  0% { transform: scale(1.06) translate3d(-2.5%, 0, 0); }
  100% { transform: scale(1.06) translate3d(1.8%, -0.6%, 0); }
}

@keyframes kbPanLeft {
  0% { transform: scale(1.06) translate3d(2.5%, 0, 0); }
  100% { transform: scale(1.06) translate3d(-1.8%, 0.6%, 0); }
}

/* Dual-Gradient Overlay (Cinematic Vignette) */
.hero-slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: 
    linear-gradient(90deg, rgba(8, 14, 9, 0.6) 0%, rgba(8, 14, 9, 0.32) 42%, rgba(8, 14, 9, 0.05) 75%, transparent 100%),
    linear-gradient(180deg, rgba(8, 14, 9, 0.65) 0%, rgba(8, 14, 9, 0.15) 28%, transparent 50%),
    linear-gradient(0deg, rgba(8, 14, 9, 0.75) 0%, rgba(8, 14, 9, 0.25) 35%, transparent 65%);
}

/* ==========================================================================
   Hero Copy (Unobstructed Transparent Styling directly over Media)
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px clamp(24px, 8vw, 144px) 100px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 680px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-align: left;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: #ffffff !important;
  font-family: var(--sans);
  font-size: clamp(0.72rem, 1vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.45;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.95);
}

.hero-copy .eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: #ffffff;
  flex: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 4px 22px rgba(0, 0, 0, 0.9);
}

.hero-copy h1 em {
  color: #ffffff;
  font-weight: 500;
  font-style: normal;
}

.hero-copy p:not(.eyebrow),
.hero-copy .hero-subhead {
  max-width: 580px;
  margin: 0 0 32px;
  color: #ffffff !important;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.95), 0 2px 14px rgba(0, 0, 0, 0.9);
}

.hero-copy .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-copy .button.fill {
  background: #ffffff;
  color: var(--leaf-deep, #162619);
  border: 1px solid #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  font-weight: 600;
}

.hero-copy .button.fill:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--leaf-deep, #162619);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.hero-copy .button.glass {
  background: rgba(14, 26, 17, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-copy .button.glass:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--leaf-deep, #162619);
  text-shadow: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Scroll note position coordination */
.scroll-note {
  position: absolute;
  right: clamp(24px, 8vw, 144px);
  bottom: 7vh;
  z-index: 4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 110px 20px 80px;
  }
  .hero-copy h1 {
    font-size: clamp(2rem, 7.5vw, 2.7rem);
    line-height: 1.1;
  }
}

@media (max-width: 560px) {
  .hero-copy .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    display: block;
    line-height: 1.45;
    max-width: 330px;
    margin-bottom: 14px;
  }
  .hero-copy .eyebrow::before {
    display: none;
  }
  .hero-copy h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem);
    line-height: 1.12;
    margin-bottom: 18px;
  }
  .hero-copy .hero-subhead,
  .hero-copy p:not(.eyebrow) {
    display: none; /* drops supporting line on mobile so it doesn't look too busy and blocks video */
  }
}
