/* HABITAT HOMEPAGE MOTION HERO — Editorial (Variant A)
 * Assets hosted in the WordPress media library; all other Elementor pages untouched.
 */
html body.home .elementor-227 .elementor-element-e9dec0e,
html body.home .elementor-227 .elementor-element-5d4a242,
html body.home .elementor-227 .elementor-element-5d4a242 > .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
  --padding-top:0px;
  --padding-right:0px;
  --padding-bottom:0px;
  --padding-left:0px;
}
html body.home .elementor-227 .elementor-element-e9dec0e {transform:none !important}
.hb-motion-hero-v2 {
  --hb-motion-mouse-x:0px;
  --hb-motion-mouse-y:0px;
  --hb-motion-accent:var(--e-global-color-primary,#a0f7ef);
  position:relative;
  isolation:isolate;
  display:block;
  width:100%;
  height:clamp(660px,73vw,930px);
  min-height:660px;
  overflow:visible;
  background:#000 !important;
  color:#fff;
  font-family:"Habitat",sans-serif;
}
.hb-motion-hero-v2 *,
.hb-motion-hero-v2 *::before,
.hb-motion-hero-v2 *::after {box-sizing:border-box}
.hb-motion-hero-v2-media {position:absolute;inset:0;z-index:0;overflow:visible;pointer-events:none}
.hb-motion-hero-v2-video,
.hb-motion-hero-v2-poster {
  position:absolute;
  display:block;
  width:min(89vw,1270px);
  height:min(89vw,1270px);
  max-width:none;
  top:51%;
  right:-7vw;
  transform:translate3d(var(--hb-motion-mouse-x),calc(-50% + var(--hb-motion-mouse-y)),0);
  object-fit:contain;
  mix-blend-mode:screen;
  opacity:1;
  transition:transform .5s ease-out;
}
.hb-motion-hero-v2-poster {display:none}
.hb-motion-hero-v2-overlay {
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(0,0,0,1) 0%,rgba(0,0,0,.85) 19%,rgba(0,0,0,.5) 41%,rgba(0,0,0,.04) 75%);
}
.hb-motion-hero-v2-copy {
  position:absolute;
  z-index:2;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  padding:8% var(--hb-editor-desktop-side,40px);
  text-align:left;
  pointer-events:none;
}
.hb-motion-hero-v2 .hb-motion-hero-v2-kicker {
  margin:0 0 24px !important;
  padding:0;
  color:var(--hb-motion-accent) !important;
  font:700 13px/1.3 Arial,Helvetica,sans-serif !important;
  letter-spacing:.23em;
  text-transform:uppercase;
}
.hb-motion-hero-v2 .hb-motion-hero-v2-title {
  display:block;
  margin:0 !important;
  padding:0 !important;
  color:var(--hb-motion-accent) !important;
  font-family:"Habitat",Impact,"Arial Narrow",sans-serif !important;
  font-size:clamp(118px,12.5vw,228px) !important;
  font-weight:normal !important;
  line-height:.77 !important;
  letter-spacing:-.044em;
  text-transform:uppercase;
  text-shadow:0 2px 1px rgba(0,0,0,.12);
}
.hb-motion-hero-v2-title span {display:block;white-space:nowrap}
.hb-motion-hero-v2 .hb-motion-hero-v2-date {
  margin:38px 0 0 !important;
  padding:0 !important;
  color:#fff !important;
  font-family:"Habitat",Impact,"Arial Narrow",sans-serif !important;
  font-size:clamp(44px,5.1vw,86px) !important;
  font-weight:normal !important;
  line-height:.96 !important;
  letter-spacing:-.025em;
  white-space:nowrap;
}
.hb-motion-hero-v2 .hb-motion-hero-v2-location {
  margin:19px 0 0 !important;
  padding:0 !important;
  color:var(--hb-motion-accent) !important;
  font-family:"Habitat",Impact,"Arial Narrow",sans-serif !important;
  font-size:clamp(20px,2.5vw,40px) !important;
  font-weight:normal !important;
  line-height:1 !important;
  letter-spacing:.008em;
  text-transform:uppercase;
}
.hb-motion-hero-v2-footer {
  position:absolute;
  z-index:3;
  left:40px;
  right:40px;
  bottom:25px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  color:#a9a9a9;
  font:700 10px/1.4 Arial,Helvetica,sans-serif;
  letter-spacing:.16em;
  text-transform:uppercase;
  pointer-events:none;
}
.hb-motion-hero-v2-line {height:1px;flex:1;background:#343434}

/* Desktop genre links: use the existing lineup taxonomy and URL filters. */
.hb-motion-hero-v2-genre-links {
  display:flex;
  align-items:center;
  gap:8px;
  pointer-events:auto;
  white-space:nowrap;
}
.hb-motion-hero-v2-genre-links a {
  display:inline-block;
  padding:7px 3px;
  margin:-7px -3px;
  color:#a9a9a9 !important;
  font:inherit !important;
  letter-spacing:inherit;
  text-decoration:none !important;
  border-bottom:1px solid transparent;
  transition:color .16s ease, border-color .16s ease;
}
.hb-motion-hero-v2-genre-links a:hover,
.hb-motion-hero-v2-genre-links a:focus-visible {
  color:var(--hb-motion-accent) !important;
  border-color:var(--hb-motion-accent);
}
.hb-motion-hero-v2-genre-links a:focus-visible {
  outline:2px solid var(--hb-motion-accent);
  outline-offset:4px;
}
.hb-motion-hero-v2-genre-mobile {display:none}
@media(max-width:700px) {
  .hb-motion-hero-v2-genre-links {display:none}
  .hb-motion-hero-v2-genre-mobile {display:block}
}

@media(max-width:1050px){
  .hb-motion-hero-v2 {height:720px}
  .hb-motion-hero-v2 .hb-motion-hero-v2-title {font-size:clamp(100px,12.3vw,155px) !important}
  .hb-motion-hero-v2 .hb-motion-hero-v2-date {font-size:clamp(40px,5vw,60px) !important}
  .hb-motion-hero-v2-video,.hb-motion-hero-v2-poster {width:110vw;height:110vw;right:-28vw}
}
/* Mobile / Variant B: the sculpture moves BEHIND centered text.
   Desktop keeps the existing left-aligned editorial layout. */
@media(max-width:700px) {
  html body.home .elementor-227 .elementor-element-00eb5ae,
  html body.home .elementor-227 .elementor-element-e9dec0e {
    margin-top:0 !important;
    padding-top:0 !important;
    --padding-top:0px;
  }
}
@media(max-width:700px){
  .hb-motion-hero-v2 {
    /* Keep the hero and video at their existing scale, but make all mobile
       typography one continuous, compact column (no bottom-anchored genres). */
    /* Let the text determine the hero height instead of reserving a tall
       black block below the mobile festival date and location. The sculpture
       stays at exactly the same rendered dimensions and can bleed into intro. */
    height:auto;
    min-height:0;
    /* 0.2.30: Add a little breathing room below the mobile hero's location. */
    padding-bottom:var(--hb-editor-mobile-bottom,clamp(24px,calc(3vw + 10px),30px));
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
  }
  .hb-motion-hero-v2-video,
  .hb-motion-hero-v2-poster {
    width:152vw;
    height:152vw;
    max-width:none;
    top:43%;
    left:50%;
    right:auto;
    transform:translate3d(-50%,-50%,0);
    opacity:1;
  }
  /* A soft central vignette keeps both title and moving 3D legible. */
  .hb-motion-hero-v2-overlay {
    background:
      radial-gradient(ellipse 85% 52% at 50% 43%,rgba(0,0,0,.44) 0%,rgba(0,0,0,.28) 55%,rgba(0,0,0,0) 100%),
      linear-gradient(180deg,rgba(0,0,0,.27) 0%,transparent 19%,rgba(0,0,0,.10) 65%,rgba(0,0,0,.75) 92%,#000 100%);
  }
  .hb-motion-hero-v2-copy {
    /* Normal flow instead of position:absolute: footer follows the dynamically
       sized festival name/date/location instead of floating at hero bottom. */
    position:relative;
    inset:auto;
    width:100%;
    flex:0 0 auto;
    align-items:center;
    justify-content:flex-start;
    text-align:center;
    /* Subtle +10px top space, without re-introducing a fixed hero height. */
    padding:var(--hb-editor-mobile-top,clamp(30px,calc(3.8svh + 10px),45px)) 16px 0;
  }
  .hb-motion-hero-v2 .hb-motion-hero-v2-kicker {
    font-size:10px !important;
    letter-spacing:.17em;
    margin:0 0 11px !important;
    text-shadow:0 1px 12px rgba(0,0,0,.95);
  }
  .hb-motion-hero-v2 .hb-motion-hero-v2-title {
    font-size:clamp(64px,16.7vw,116px) !important;
    line-height:.78 !important;
    letter-spacing:-.044em;
    text-shadow:0 3px 16px rgba(0,0,0,.96),0 0 45px rgba(0,0,0,.76);
  }
  .hb-motion-hero-v2 .hb-motion-hero-v2-date {
    font-size:clamp(26px,6.45vw,43px) !important;
    margin:9px 0 0 !important;
    line-height:1 !important;
    white-space:nowrap;
    text-shadow:0 2px 15px rgba(0,0,0,.96),0 0 32px rgba(0,0,0,.78);
  }
  .hb-motion-hero-v2 .hb-motion-hero-v2-location {
    font-size:clamp(17px,4.4vw,25px) !important;
    margin:4px 0 0 !important;
    line-height:1.08 !important;
    text-align:center;
    max-width:100%;
    white-space:normal;
    text-shadow:0 2px 14px rgba(0,0,0,.96),0 0 30px rgba(0,0,0,.76);
  }
  .hb-motion-hero-v2-footer {display:none !important;}
  .hb-motion-hero-v2-footer {
    /* A single, balanced typographic group: only 22px below the location.
       Do not anchor to the bottom or move the genre line by arbitrary pixels. */
    position:relative;
    inset:auto;
    left:auto;
    right:auto;
    bottom:auto;
    width:100%;
    flex:0 0 auto;
    justify-content:center;
    align-items:center;
    margin:22px 0 0;
    padding:0 12px;
    gap:0;
    font-size:10px;
    line-height:1.4;
    letter-spacing:.1em;
    color:#d5d5d5;
    text-align:center;
  }
  /* The desktop year and hairline look disconnected when pulled below the
     mobile text; keep the mobile line itself clean and centered. */
  .hb-motion-hero-v2-footer > span:first-child,
  .hb-motion-hero-v2-footer > .hb-motion-hero-v2-line {display:none;}
  .hb-motion-hero-v2-genre-mobile {
    display:block;
    width:100%;
    font-size:11px;
    font-weight:700;
    line-height:1.4;
    letter-spacing:.075em;
    white-space:nowrap;
    text-shadow:0 2px 12px rgba(0,0,0,.98),0 0 22px rgba(0,0,0,.7);
  }
}
@media(max-width:380px){
  .hb-motion-hero-v2 .hb-motion-hero-v2-title {font-size:16.4vw !important}
}
@media(prefers-reduced-motion:reduce){
  .hb-motion-hero-v2-video {display:none !important}
  .hb-motion-hero-v2-poster {display:block !important;transition:none !important;transform:translate3d(0,-50%,0)}
}

/* The motion-free poster must use the same centered mobile composition. */
@media(max-width:700px) and (prefers-reduced-motion:reduce){
  .hb-motion-hero-v2-poster {transform:translate3d(-50%,-50%,0) !important}
}


/* 0.2.22: keep Motion 01 at its existing scale and let its video
   extend above/below the hero without covering the next section's copy. */
html body.home .elementor-227 .elementor-element-00eb5ae,
html body.home .elementor-227 .elementor-element-e9dec0e,
html body.home .elementor-227 .elementor-element-5d4a242,
html body.home .elementor-227 .elementor-element-5d4a242 > .elementor-widget-container {
  overflow:visible !important;
}
html body.home .elementor-227 .elementor-element-00eb5ae,
html body.home .elementor-227 .elementor-element-e9dec0e {
  position:relative;
  z-index:1;
}
html body.home .elementor-227 .elementor-element-66696a9,
html body.home .elementor-227 .elementor-element-5b75ca8,
html body.home .elementor-227 .elementor-element-29608bd {
  position:relative;
  z-index:2;
}
html body.home .elementor-227 {overflow-x:clip;overflow-y:visible;}
html body.home {overflow-x:clip;}

/* Preserve readable/clickable navigation where the sculpture extends upward. */
html body.home .elementor-location-header .elementor-element-16a3be8 {
  position:relative;
  z-index:10;
}
