/*
  Entopy Product Scroll Header v2.0.6
  Rebuilt as a layout-driven system component.
*/

.entopy-product-scroll-header{
  --section-height: 1400vh;

  --content-padding-top: 80px;
  --content-padding-right: 80px;
  --content-padding-bottom: 72px;
  --content-padding-left: 80px;

  --video-scale: 0.96;

  --scene1-background-colour: #000000;
  --scene2-background-colour: #000000;
  --scene2-body-colour: rgba(255,255,255,0.82);

  --scene1-title-offset-x: 0px;
  --scene1-title-offset-y: -300px;
  --scene1-title-max-width: 1120px;
  --scene1-title-size: clamp(48px, 8vw, 110px);
  --scene1-title-margin-bottom: 32px;

  --scene1-subtitle-offset-x: 0px;
  --scene1-subtitle-offset-y: -300px;
  --scene1-subtitle-max-width: 420px;
  --scene1-subtitle-size: clamp(15px, 1.1vw, 18px);

  --scene2-left-column: 1.08fr;
  --scene2-right-column: 0.92fr;
  --scene2-grid-gap: 80px;

  --scene2-graphic-offset-x: 0px;
  --scene2-graphic-offset-y: 0px;
  --scene2-graphic-height: 520px;

  --scene2-text-offset-x: 0px;
  --scene2-text-offset-y: 0px;
  --scene2-text-max-width: 620px;
  --scene2-text-size: clamp(15px, 1.1vw, 18px);

  --scene1-title-delay: 0.10s;
  --scene1-subtitle-delay: 0.22s;
  --scene2-graphic-delay: 0.05s;
  --scene2-text-delay: 0.18s;
  --scene1-reveal-duration: 0.90s;
  --scene2-reveal-duration: 0.95s;

  position: relative;
  width: 100%;
  max-width: 100%;
  height: var(--section-height);
  margin-left: 0;
  overflow: visible;
  background: var(--scene1-background-colour);
  font-family: Montserrat, Arial, sans-serif;
  color: #fff;
}

.entopy-product-scroll-header *,
.entopy-product-scroll-header *::before,
.entopy-product-scroll-header *::after{
  box-sizing: border-box;
}

.product-scroll-sticky{
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--scene1-background-colour);
}

.product-scroll-header-video,
.product-scroll-fallback-video,
.product-scroll-fallback-image{
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-scroll-header-video{
  transform: scale(var(--video-scale));
  will-change: opacity, transform;
}

.product-scroll-fallback-video,
.product-scroll-fallback-image{
  display: none;
}

.product-scroll-fallback-image{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.product-scroll-header-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.08);
  pointer-events: none;
}

/*
  Scene 1
*/
.product-scroll-scene-one{
  position: relative;
  z-index: 2;
  height: 100%;
  padding:
    var(--content-padding-top)
    var(--content-padding-right)
    var(--content-padding-bottom)
    var(--content-padding-left);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  will-change: opacity, transform;
}

.product-scroll-header-title{
  margin: 0 0 var(--scene1-title-margin-bottom);
  max-width: var(--scene1-title-max-width);
  font-size: var(--scene1-title-size);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 500;
  color: #fff;
  transform: translate(var(--scene1-title-offset-x), var(--scene1-title-offset-y));
}

.product-scroll-header-desc{
  max-width: var(--scene1-subtitle-max-width);
  font-size: var(--scene1-subtitle-size);
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  transform: translate(var(--scene1-subtitle-offset-x), var(--scene1-subtitle-offset-y));
}

/*
  Reveal
*/
.product-scroll-reveal{
  opacity: 0;
  will-change: opacity;
}

.entopy-product-scroll-header.is-visible .product-scroll-reveal{
  animation: productScrollFadeUp var(--scene1-reveal-duration) cubic-bezier(0.22,1,0.36,1) forwards;
}

.entopy-product-scroll-header.is-visible .product-scroll-delay-1{
  animation-delay: var(--scene1-title-delay);
}

.entopy-product-scroll-header.is-visible .product-scroll-delay-2{
  animation-delay: var(--scene1-subtitle-delay);
}

@keyframes productScrollFadeUp{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

/*
  Scene 2, layout-driven
*/
.product-scroll-scene-two{
  position: absolute;
  inset: 0;
  z-index: 4;
  background: var(--scene2-background-colour);
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
  will-change: opacity, transform;
}

.product-scroll-scene-two-grid{
  height: 100%;
  padding:
    var(--content-padding-top)
    var(--content-padding-right)
    var(--content-padding-bottom)
    var(--content-padding-left);
  display: grid;
  grid-template-columns:
    var(--scene2-left-column)
    var(--scene2-right-column);
  gap: var(--scene2-grid-gap);
  align-items: center;
}

.product-scroll-scene-two-graphic{
  width: 100%;
  min-width: 0;
  transform: translate(var(--scene2-graphic-offset-x), var(--scene2-graphic-offset-y));
}

.product-scroll-scene-two-graphic lottie-player,
.product-scroll-scene-two-graphic img{
  display: block;
  width: 100%;
  height: var(--scene2-graphic-height);
  object-fit: contain;
}

.product-scroll-scene-two-copy{
  width: 100%;
  min-width: 0;
  max-width: var(--scene2-text-max-width);
  transform: translate(var(--scene2-text-offset-x), var(--scene2-text-offset-y));
}

.product-scene-two-text{
  margin: 0;
  max-width: var(--scene2-text-max-width);
  font-size: var(--scene2-text-size);
  line-height: 1.45;
  font-weight: 400;
  color: var(--scene2-body-colour);
}

.product-scene-two-reveal{
  opacity: 0;
  will-change: opacity;
}

.product-scroll-scene-two.is-active .product-scene-two-reveal{
  animation: productSceneTwoFadeUp var(--scene2-reveal-duration) cubic-bezier(0.22,1,0.36,1) forwards;
}

.product-scroll-scene-two.is-active .delay-1{
  animation-delay: var(--scene2-graphic-delay);
}

.product-scroll-scene-two.is-active .delay-2{
  animation-delay: var(--scene2-text-delay);
}

@keyframes productSceneTwoFadeUp{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

/*
  Editor preview
*/
.product-scroll-editor-static{
  height: 100vh;
  overflow: hidden;
}

.product-scroll-editor-static .product-scroll-sticky{
  position: relative;
}

.product-scroll-editor-static .product-scroll-reveal,
.product-scroll-editor-static .product-scene-two-reveal,
.elementor-editor-active .product-scroll-reveal,
.elementor-editor-active .product-scene-two-reveal{
  opacity: 1 !important;
  animation: none !important;
}

.product-scroll-editor-static.product-scroll-editor-scene-one .product-scroll-scene-one{
  display: flex !important;
  opacity: 1 !important;
  transform: none !important;
}

.product-scroll-editor-static.product-scroll-editor-scene-one .product-scroll-scene-two{
  display: none !important;
}

.product-scroll-editor-static.product-scroll-editor-scene-two .product-scroll-scene-one{
  display: none !important;
}

.product-scroll-editor-static.product-scroll-editor-scene-two .product-scroll-header-video{
  opacity: 0 !important;
}

.product-scroll-editor-static.product-scroll-editor-scene-two .product-scroll-scene-two{
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
}

.product-scroll-editor-static.product-scroll-editor-scene-two .product-scene-two-reveal{
  opacity: 1 !important;
}

/*
  Tablet / mobile fallback
*/
@media (max-width: 1024px){
  .entopy-product-scroll-header{
    height: var(--section-height);
  }

  .product-scroll-sticky{
    position: relative;
    height: 100vh;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active{
    height: var(--section-height);
    overflow: hidden;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-header-video,
  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two{
    display: none;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-reveal{
    opacity: 1;
    animation: none;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-one{
    opacity: 1 !important;
    transform: none !important;
  }

  .entopy-product-scroll-header.product-scroll-fallback-tablet-video .product-scroll-fallback-tablet{
    display: block;
  }

  .entopy-product-scroll-header.product-scroll-fallback-tablet-image .product-scroll-fallback-image-tablet{
    display: block;
  }
}

@media (max-width: 768px){
  .entopy-product-scroll-header.product-scroll-fallback-mobile-video .product-scroll-fallback-mobile{
    display: block;
  }

  .entopy-product-scroll-header.product-scroll-fallback-mobile-image .product-scroll-fallback-image-mobile{
    display: block;
  }

  .entopy-product-scroll-header.product-scroll-fallback-mobile-video .product-scroll-fallback-tablet,
  .entopy-product-scroll-header.product-scroll-fallback-mobile-image .product-scroll-fallback-tablet,
  .entopy-product-scroll-header.product-scroll-fallback-mobile-video .product-scroll-fallback-image-tablet,
  .entopy-product-scroll-header.product-scroll-fallback-mobile-image .product-scroll-fallback-image-tablet{
    display: none;
  }

  .product-scroll-scene-two-grid{
    grid-template-columns: 1fr;
    align-content: center;
  }
}

@media (prefers-reduced-motion: reduce){
  .product-scroll-reveal,
  .product-scene-two-reveal{
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}


/*
  v2.0.1 Responsive Scene 2 reveal
  Keeps the existing tablet/mobile Scene 1 exactly as it is.
  Only makes Scene 2 visible underneath Scene 1 on tablet/mobile.
*/
@media (max-width: 1024px){
  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-sticky{
    height: auto !important;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two{
    position: relative !important;
    inset: auto !important;
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    background: var(--scene2-background-colour) !important;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two-grid{
    height: auto !important;
    min-height: 100vh;
    padding:
      var(--content-padding-top)
      var(--content-padding-right)
      var(--content-padding-bottom)
      var(--content-padding-left) !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: var(--scene2-grid-gap);
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two-graphic{
    order: 1;
    width: 100%;
    opacity: 1 !important;
    animation: none !important;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two-copy{
    order: 2;
    width: 100%;
    max-width: var(--scene2-text-max-width);
    opacity: 1 !important;
    animation: none !important;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scene-two-reveal{
    opacity: 1 !important;
    animation: none !important;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two-graphic lottie-player,
  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two-graphic img{
    width: 100%;
    height: var(--scene2-graphic-height);
  }
}

@media (max-width: 768px){
  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two-grid{
    min-height: 100vh;
  }
}


/*
  v2.0.2 Responsive spacing fix
  Fixes incomplete Scene 1 and removes the large gap before Scene 2.
  Desktop remains unchanged.
*/
@media (max-width: 1024px){
  .entopy-product-scroll-header.product-scroll-fallback-active{
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-sticky{
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: block !important;
    background: #000;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-one{
    position: relative !important;
    z-index: 2;
    min-height: 100vh;
    height: auto !important;
    padding:
      var(--content-padding-top)
      var(--content-padding-right)
      var(--content-padding-bottom)
      var(--content-padding-left) !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 1 !important;
    transform: none !important;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-one .product-scroll-header-title,
  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-one .product-scroll-header-desc{
    opacity: 1 !important;
    animation: none !important;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two{
    position: relative !important;
    inset: auto !important;
    z-index: 3;
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    background: var(--scene2-background-colour) !important;
    margin: 0 !important;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two-grid{
    min-height: 0 !important;
    height: auto !important;
    padding:
      var(--content-padding-top)
      var(--content-padding-right)
      var(--content-padding-bottom)
      var(--content-padding-left) !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: stretch;
    gap: var(--scene2-grid-gap);
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two-graphic{
    order: 1;
    width: 100%;
    opacity: 1 !important;
    animation: none !important;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two-copy{
    order: 2;
    width: 100%;
    max-width: var(--scene2-text-max-width);
    opacity: 1 !important;
    animation: none !important;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scene-two-reveal{
    opacity: 1 !important;
    animation: none !important;
  }
}

@media (max-width: 768px){
  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-one{
    min-height: 100vh;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two-grid{
    padding-top: 40px !important;
  }
}


/*
  v2.0.3 Responsive height, background scale and offset controls
*/
.entopy-product-scroll-header{
  --responsive-scene1-height: 100vh;
  --responsive-scene2-height: 640px;
  --responsive-scene1-bg-scale: 1;
  --responsive-scene1-bg-offset-x: 0px;
  --responsive-scene1-bg-offset-y: 0px;
  --responsive-scene2-visual-offset-x: 0px;
  --responsive-scene2-visual-offset-y: 0px;
}

@media (max-width: 1024px){
  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-one{
    min-height: var(--responsive-scene1-height) !important;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-fallback-video,
  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-fallback-image{
    transform:
      translate(
        var(--responsive-scene1-bg-offset-x),
        var(--responsive-scene1-bg-offset-y)
      )
      scale(var(--responsive-scene1-bg-scale)) !important;
    transform-origin: center center;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two{
    min-height: var(--responsive-scene2-height) !important;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two-grid{
    min-height: var(--responsive-scene2-height) !important;
  }

  .entopy-product-scroll-header.product-scroll-fallback-active .product-scroll-scene-two-graphic{
    transform:
      translate(
        var(--responsive-scene2-visual-offset-x),
        var(--responsive-scene2-visual-offset-y)
      ) !important;
  }
}

@media (max-width: 768px){
  .entopy-product-scroll-header{
    --responsive-scene2-height: 520px;
  }
}


/*
  v2.0.6 Container width fix
  The section now follows the Elementor container width.
  Video remains responsive through width/height 100% and object-fit: cover.
*/
