/* Habitat shared subpage hero, Motion 03. Scoped to subpage shortcode only.
   0.2.25: Rotate subpage VIDEO and reduced-motion POSTER 90 degrees counterclockwise.
   Unchanged dimensions, layer positions, hero heights and homepage animation.
   Homepage editorial hero and content sections stay unchanged. */
.hb-motion-subhero {
  --hb-subhero-accent: var(--e-global-color-primary,#a0f7ef);
  --hb-motion-mouse-x: 0px;
  --hb-motion-mouse-y: 0px;
  isolation:isolate;
  position:relative;
  box-sizing:border-box;
  display:block;
  overflow:visible;
  width:100%;
  height:clamp(435px,44vw,585px);
  background:#000;
  color:#fff;
  font-family:"Habitat",Impact,"Arial Narrow",sans-serif;
}
.hb-motion-subhero *, .hb-motion-subhero *::before, .hb-motion-subhero *::after {box-sizing:border-box}
.hb-motion-subhero-media {position:absolute;inset:0;z-index:0;pointer-events:none;overflow:visible}
.hb-motion-subhero-video, .hb-motion-subhero-poster {
  position:absolute;
  display:block;
  top:50%;
  right:-1vw;
  width:min(70vw,980px);
  height:min(70vw,980px);
  max-width:none;
  object-fit:contain;
  opacity:1;
  mix-blend-mode:screen;
  transform:translate3d(var(--hb-motion-mouse-x),calc(-50% + var(--hb-motion-mouse-y)),0) rotate(var(--hb-subhero-rotate,-90deg));
  transition:transform .45s ease-out;
}
.hb-motion-subhero-poster {display:none}
.hb-motion-subhero-overlay {
  position:absolute;
  inset:0 0 -185px 0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(90deg,#000 0%,rgba(0,0,0,.96) 15%,rgba(0,0,0,.76) 35%,rgba(0,0,0,.24) 72%,rgba(0,0,0,.02) 100%);
}
.hb-motion-subhero-copy {
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:50px clamp(24px,5vw,84px);
  text-align:center;
  pointer-events:none;
}
.hb-motion-subhero .hb-motion-subhero-title {
  display:block;
  margin:0 !important;
  padding:0 !important;
  max-width:100%;
  color:var(--hb-subhero-accent) !important;
  font-family:"Habitat",Impact,"Arial Narrow",sans-serif !important;
  font-size:clamp(88px,11vw,164px) !important;
  font-weight:normal !important;
  line-height:.81 !important;
  letter-spacing:-.04em;
  text-transform:uppercase;
  overflow-wrap:normal;
  text-align:center;
  text-shadow:0 3px 16px rgba(0,0,0,.95),0 0 45px rgba(0,0,0,.65);
}
.hb-motion-subhero--long .hb-motion-subhero-title {
  max-width:100%;
  font-size:clamp(67px,8.1vw,128px) !important;
  line-height:.87 !important;
}
/* Existing Elementor hero containers have 80px bottom padding; old artwork had
   its own margins. Keep content close to the redesigned hero on ALL five pages. */
body.page-id-157 .elementor-157 .elementor-element-122fe24,
body.page-id-232 .elementor-232 .elementor-element-de61b13,
body.page-id-253 .elementor-253 .elementor-element-d28e923,
body.page-id-258 .elementor-258 .elementor-element-ae895de,
body.page-id-952 .elementor-952 .elementor-element-cc5502c {
  padding-bottom:0 !important;
  padding-top:0 !important;
  --padding-bottom:0px;
  --padding-top:0px;
}
body.page-id-157 .elementor-element-3567170,
body.page-id-232 .elementor-element-054f1a7,
body.page-id-253 .elementor-element-02077ef,
body.page-id-258 .elementor-element-63461d9,
body.page-id-952 .elementor-element-3019aa0 {
  margin:0 !important;
  padding:0 !important;
}
@media(max-width:900px) and (min-width:701px) {
  .hb-motion-subhero {height:480px}
  .hb-motion-subhero-title {font-size:clamp(78px,10vw,110px) !important}
  .hb-motion-subhero-video,.hb-motion-subhero-poster {width:86vw;height:86vw;right:-15vw}
}
@media(max-width:700px) {
  /* Tighten mobile space below the subpage title while keeping the motion visible. */
  .hb-motion-subhero {
    height:var(--hb-subhero-mobile-height,clamp(350px,52svh,420px));
    min-height:350px;
  }
  /* Elementor's original first content sections still carry 80px top padding.
     On mobile only, bring their actual text closer to the redesigned hero. */
  body.page-id-232 .elementor-232 .elementor-element-2bdb831,
  body.page-id-253 .elementor-253 .elementor-element-a28ee5f,
  body.page-id-258 .elementor-258 .elementor-element-1af0aff {
    padding-top:20px !important;
    --padding-top:20px;
  }
  .hb-motion-subhero-video,.hb-motion-subhero-poster {
    width:150vw;
    height:150vw;
    /* Keep the same video dimensions; a slight Y shift lets the sculpture
       continue visibly into the following section on phones. */
    top:calc(45% + 38px);
    left:50%;
    right:auto;
    transform:translate3d(-50%,-50%,0) rotate(var(--hb-subhero-rotate,-90deg));
    opacity:1;
  }
  .hb-motion-subhero-overlay {
    /* Continue the shading BELOW the hero as well, to avoid a harsh seam. */
    inset:0 0 -120px 0;
    background:
      radial-gradient(ellipse 95% 55% at 50% 38%,rgba(0,0,0,.48),rgba(0,0,0,.2) 62%,transparent),
      linear-gradient(180deg,rgba(0,0,0,.30) 0%,transparent 22%,rgba(0,0,0,.06) 55%,rgba(0,0,0,.24) 78%,transparent 100%);
  }
  .hb-motion-subhero-copy {
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:24px 16px;
  }
  .hb-motion-subhero .hb-motion-subhero-title {
    max-width:100%;
    font-size:clamp(62px,16vw,100px) !important;
    line-height:.79 !important;
    text-align:center;
    text-shadow:0 3px 16px #000,0 0 45px rgba(0,0,0,.75);
  }
  .hb-motion-subhero--long .hb-motion-subhero-title {
    max-width:100%;
    font-size:clamp(38px,10.2vw,60px) !important;
    line-height:.94 !important;
  }
}
@media(max-width:380px) {
  .hb-motion-subhero .hb-motion-subhero-title {font-size:15.5vw !important}
  .hb-motion-subhero--long .hb-motion-subhero-title {font-size:9.8vw !important}
}
@media(prefers-reduced-motion:reduce) {
  .hb-motion-subhero-video {display:none !important}
  .hb-motion-subhero-poster {display:block !important;transition:none !important}
}


/* 0.2.22: let Motion 03 overflow its visual hero box, unchanged dimensions.
   The absolutely-positioned sculpture bleeds into following black sections;
   each following section paints its copy above the video. */
body.page-id-157 .elementor-157 .elementor-element-122fe24,
body.page-id-232 .elementor-232 .elementor-element-de61b13,
body.page-id-253 .elementor-253 .elementor-element-d28e923,
body.page-id-258 .elementor-258 .elementor-element-ae895de,
body.page-id-952 .elementor-952 .elementor-element-cc5502c {
  position:relative;
  z-index:1;
  overflow:visible !important;
}
body.page-id-157 .elementor-157 .elementor-element-3567170,
body.page-id-232 .elementor-232 .elementor-element-054f1a7,
body.page-id-253 .elementor-253 .elementor-element-02077ef,
body.page-id-258 .elementor-258 .elementor-element-63461d9,
body.page-id-952 .elementor-952 .elementor-element-3019aa0,
body.page-id-157 .elementor-element-3567170 > .elementor-widget-container,
body.page-id-232 .elementor-element-054f1a7 > .elementor-widget-container,
body.page-id-253 .elementor-element-02077ef > .elementor-widget-container,
body.page-id-258 .elementor-element-63461d9 > .elementor-widget-container,
body.page-id-952 .elementor-element-3019aa0 > .elementor-widget-container {
  overflow:visible !important;
}
body.page-id-157 .elementor-157 .elementor-element-c07de16,
body.page-id-232 .elementor-232 .elementor-element-2bdb831,
body.page-id-253 .elementor-253 .elementor-element-a28ee5f,
body.page-id-258 .elementor-258 .elementor-element-1af0aff,
body.page-id-952 .elementor-952 .elementor-element-498ff6e {
  position:relative;
  z-index:2;
}
/* X-only clip on the page root avoids a horizontal document scroll range while
   preserving visible overflow at the top/bottom of the hero. */
body.page-id-157 .elementor-157,
body.page-id-232 .elementor-232,
body.page-id-253 .elementor-253,
body.page-id-258 .elementor-258,
body.page-id-952 .elementor-952 {
  overflow-x:clip;
  overflow-y:visible;
}
/* Clip horizontal excess only, not the requested vertical overlap. */
body.page-id-157, body.page-id-232, body.page-id-253,
body.page-id-258, body.page-id-952 {
  overflow-x:clip;
}

/* Keep the opaque header/nav above artwork that reaches upward. */
body.page-id-157 .elementor-location-header .elementor-element-16a3be8,
body.page-id-232 .elementor-location-header .elementor-element-16a3be8,
body.page-id-253 .elementor-location-header .elementor-element-16a3be8,
body.page-id-258 .elementor-location-header .elementor-element-16a3be8,
body.page-id-952 .elementor-location-header .elementor-element-16a3be8 {
  position:relative;
  z-index:10;
}
