/* Habitat Motion 01 / 03: dark scrim BETWEEN the moving 3D objects and
 * the navigational elements. Active only on motion-hero pages via enqueue.
 * The previous gradient on the inner nav became virtually transparent at
 * its bottom edge and did not provide a reliably visible dark overlay.
 * Use a dedicated header ::before layer, above the hero but below all links.
 */
html body .elementor-location-header {
  position: relative;
  z-index: 50 !important;
  isolation: isolate;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  overflow: visible !important;
}
/* One continuous scrim. Extend 48px BELOW the header to avoid a hard edge.
   The 3D object stays visible through the dark translucent overlay. */
html body .elementor-location-header::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: 0 0 -48px 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.95) 0%,
    rgba(0,0,0,.87) 34%,
    rgba(0,0,0,.75) 65%,
    rgba(0,0,0,.57) 77%,
    rgba(0,0,0,.26) 90%,
    rgba(0,0,0,0) 100%);
}
/* The header's Elementor layout must be above the scrim, not behind it.
   The template has two nested opaque black backgrounds: disable both. */
html body .elementor-location-header > .elementor {
  position: relative;
  z-index: 1;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  overflow: visible !important;
}
html body .elementor-location-header .elementor-element-16a3be8,
html body .elementor-location-header .elementor-element-835259e {
  position: relative;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  overflow: visible !important;
}
html body .elementor-location-header .elementor-element-16a3be8 {
  z-index: 2;
}
html body .elementor-location-header .elementor-element-835259e {
  z-index: 3;
}
html body .elementor-location-header .elementor-element-16a3be8 > .elementor-background-overlay,
html body .elementor-location-header .elementor-element-835259e > .elementor-background-overlay {
  background: transparent !important;
  opacity: 0 !important;
}
/* Keep navigation, ticket button and mobile dropdown interactive and legible. */
html body .elementor-location-header .elementor-widget-theme-site-logo,
html body .elementor-location-header .elementor-widget-button,
html body .elementor-location-header .elementor-widget-nav-menu {
  position: relative;
  z-index: 4;
}
html body .elementor-location-header .elementor-nav-menu--dropdown,
html body .elementor-location-header .elementor-nav-menu--dropdown .elementor-nav-menu {
  background: #000 !important;
}
html body .hb-motion-hero-v2-media,
html body .hb-motion-subhero-media {
  pointer-events: none !important;
}
@media (max-width:700px) {
  html body .elementor-location-header::before {
    inset: 0 0 -34px 0;
    background: linear-gradient(180deg,
      rgba(0,0,0,.96) 0%,
      rgba(0,0,0,.90) 32%,
      rgba(0,0,0,.80) 63%,
      rgba(0,0,0,.62) 80%,
      rgba(0,0,0,0) 100%);
  }
}
/* Mobile artwork needs a small upward shift to show actual chrome geometry
 * (not merely black pixels) in the header. Dimensions remain unchanged.
 * Motion 03 still extends below the hero, as on the previous version. */
@media (max-width:700px) {
  html body.home .hb-motion-hero-v2-video,
  html body.home .hb-motion-hero-v2-poster {
    /* Keep the artwork in the same viewport position even though the hero
       has become content-height. On 390px screens this is ~109px from the
       hero top, matching the previous 425px hero positioning. */
    top:clamp(95px,28vw,115px);
  }
  html body .hb-motion-subhero-video,
  html body .hb-motion-subhero-poster {
    top: calc(45% - 7px);
  }
}
