/* ENV-I homepage: transparent floating header + cinematic, layered hero.
   Load AFTER main.css. Scope all changes to the homepage. */
#hero.env-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #0b1720;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 0 clamp(42px, 6vw, 110px);
  font-family: var(--default-font);
}

#hero .env-hero__backdrops,
#hero .env-hero__backdrop,
#hero .env-hero__shade {
  position: absolute;
  inset: 0
}

#hero .env-hero__backdrops {
  z-index: -3;
  bottom: clamp(180px, 24vw, 330px)
}

#hero .env-hero__backdrop {
  opacity: 0;
  transition: opacity 1s ease;
  overflow: hidden
}

#hero .env-hero__backdrop.is-active {
  opacity: 1;
  z-index: 1
}

#hero .env-hero__backdrop img,
#hero .env-hero__backdrop video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center
}

#hero .env-hero__backdrop video {
  opacity: 0;
  transition: opacity .6s ease
}

#hero .env-hero__backdrop.is-video-ready video {
  opacity: 1
}

#hero .env-hero__shade {
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 15, 25, .44), rgba(4, 15, 25, .1) 30%, rgba(4, 15, 25, .36) 72%, #0b1720 91%)
}

#hero .env-hero__inner {
  min-height: 0 !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: clamp(132px, 17vh, 210px);
  padding-bottom: 0;
  max-width: none !important;
  padding-left: 0;
  padding-right: 0
}

#hero .env-hero__inner>.row {
  margin: 0;
  justify-content: center;
  text-align: center;
  padding: 0 20px
}

#hero .env-hero__inner>.row>div {
  width: 100%;
  max-width: 1200px
}

#hero .env-hero__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vh, 32px);
  margin: 0 auto
}

#hero .env-hero__headline {
  width: min(92%, 980px);
  margin: 0;
  line-height: 1
}

#hero .env-hero__headline-art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 15px rgba(0, 0, 0, .28))
}

#hero .env-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px 27px;
  background: #fff;
  color: #0d2430;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  transition: background .25s ease, transform .25s ease
}

#hero .env-hero__cta:hover {
  background: #b9f0e5;
  color: #0d2430;
  transform: translateY(-2px)
}

#hero .env-hero__showcase {
  position: relative;
  z-index: 2;
  height: clamp(330px, 38vw, 590px);
  margin-top: clamp(125px, 18vh, 235px);
  perspective: 1100px;
  outline-offset: -4px
}

#hero .env-hero__showcase-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center
}

#hero .env-hero__showcase-card {
  --card-offset: 2;
  position: absolute;
  display: block;
  width: min(66vw, 990px);
  height: 100%;
  overflow: hidden;
  background: #10202a;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(var(--card-offset) * 83%)) scale(.88);
  transition: transform .85s cubic-bezier(.2, .8, .2, 1), opacity .65s ease;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .25);
}

#hero .env-hero__showcase-card.is-adjacent {
  opacity: 1;
  z-index: 1;
  pointer-events: auto
}

#hero .env-hero__showcase-card.is-active {
  opacity: 1;
  z-index: 3;
  transform: translateX(0) scale(1);
  pointer-events: auto
}

#hero .env-hero__showcase-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease
}

#hero .env-hero__showcase-card.is-active img {
  transform: scale(1.035)
}

#hero .env-hero__showcase-card::after {
  content: "";
  position: absolute;
  inset: 15% 0 0;
  background: linear-gradient(transparent 0%, rgba(4, 15, 25, .22) 32%, rgba(4, 15, 25, .96) 100%);
  pointer-events: none
}

#hero .env-hero__showcase-caption {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 4vw, 58px);
  right: clamp(22px, 4vw, 58px);
  bottom: clamp(24px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 10px
}

#hero .env-hero__showcase-caption small {
  color: #a1f0e2;
  font-weight: 700;
  letter-spacing: .15em;
  font-size: .7rem
}

#hero .env-hero__showcase-caption strong {
  font-size: clamp(2.2rem, 3.6vw, 4rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.04em;
  max-width: 90%
}

#hero .env-hero__showcase-description {
  font-size: clamp(.85rem, 1.1vw, 1.1rem);
  line-height: 1.45;
  max-width: 590px;
  color: #f5f8f9
}

#hero .env-hero__showcase-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: .9rem
}

#hero .env-hero__showcase-card.is-adjacent .env-hero__showcase-caption {
  visibility: hidden
}

#hero .env-hero__showcase-card.is-adjacent::after {
  background: linear-gradient(180deg, transparent 20%, rgba(4, 15, 25, .38) 100%)
}

#hero a:focus-visible,
#hero .env-hero__showcase:focus-visible {
  outline: 2px solid #a1f0e2;
  outline-offset: 4px
}

@media(max-width:767.98px) {
  #hero.env-hero {
    padding-bottom: 45px
  }

  #hero .env-hero__backdrops {
    bottom: 170px
  }

  #hero .env-hero__inner {
    padding-top: clamp(128px, 18vh, 180px)
  }

  #hero .env-hero__headline {
    width: min(94%, 620px)
  }

  #hero .env-hero__cta {
    padding: 13px 22px;
    font-size: .9rem
  }

  #hero .env-hero__showcase {
    height: clamp(240px, 65vw, 370px);
    margin-top: clamp(160px, 25vh, 260px)
  }

  #hero .env-hero__showcase-card {
    width: 84vw;
    transform: translateX(calc(var(--card-offset) * 91%)) scale(.9)
  }

  #hero .env-hero__showcase-caption {
    left: 17px;
    right: 17px;
    bottom: 17px;
    gap: 5px
  }

  #hero .env-hero__showcase-caption small {
    font-size: .58rem
  }

  #hero .env-hero__showcase-caption strong {
    font-size: clamp(1.5rem, 6.2vw, 2.6rem);
    max-width: 100%
  }

  #hero .env-hero__showcase-description {
    font-size: .72rem;
    line-height: 1.35;
    display: block;
    overflow: visible
  }

  #hero .env-hero__showcase-link {
    font-size: .75rem
  }
}

@media(prefers-reduced-motion:reduce) {

  #hero .env-hero__backdrop,
  #hero .env-hero__showcase-card,
  #hero .env-hero__showcase-card img {
    transition: none !important
  }

  #hero .env-hero__showcase-card.is-active img {
    transform: none
  }
}

/* Revision: remove inherited 140px header reservation in main.css. */
body.home-page:has(#hero.env-hero)>main.main {
  padding-top: 0 !important;
  margin-top: 0 !important
}

body.home-page:has(#hero.env-hero) {
  margin-top: 0 !important
}

/* Give the photograph room; captions belong at the top of each foreground preview. */
#hero .env-hero__showcase-caption {
  top: clamp(20px, 2.6vw, 42px);
  bottom: auto;
  gap: 9px
}

#hero .env-hero__showcase-card::after {
  inset: 0 0 38%;
  background: linear-gradient(180deg, rgba(4, 15, 25, .85) 0%, rgba(4, 15, 25, .56) 48%, transparent 100%)
}

#hero .env-hero__showcase-card.is-adjacent::after {
  background: linear-gradient(180deg, rgba(4, 15, 25, .35), transparent 65%)
}

/* Single unobtrusive autoplay toggle, fixed above the moving carousel. */






@media(max-width:767.98px) {
  #hero .env-hero__showcase-caption {
    top: 18px;
    bottom: auto;
    gap: 6px
  }

  #hero .env-hero__showcase-card::after {
    inset: 0 0 25%;
    background: linear-gradient(180deg, rgba(4, 15, 25, .9), rgba(4, 15, 25, .48) 57%, transparent)
  }

  
}

/* Final branding and composition adjustments */
#hero.env-hero {
  padding-bottom: 0 !important;
  background: transparent !important
}

#hero .env-hero__backdrops {
  bottom: 0 !important
}

#hero .env-hero__shade {
  background: linear-gradient(180deg, rgba(3, 13, 22, .4), rgba(3, 13, 22, .10) 45%, rgba(3, 13, 22, .22) 100%)
}

#hero .env-hero__inner {
  padding-top: clamp(245px, 34vh, 430px) !important
}

#hero .env-hero__intro {
  gap: clamp(22px, 3vh, 38px)
}

#hero .env-hero__cta {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid #fff !important;
  padding: 14px 28px
}

#hero .env-hero__cta:hover {
  background: #fff !important;
  color: #10212a !important
}

#hero .env-hero__showcase {
  margin-top: clamp(100px, 14vh, 200px);
  margin-bottom: 0 !important
}



@media(max-width:767.98px) {
  #hero .env-hero__inner {
    padding-top: clamp(280px, 39vh, 510px) !important
  }

  #hero .env-hero__headline {
    width: min(92%, 640px)
  }

  #hero .env-hero__showcase {
    margin-top: clamp(135px, 18vh, 240px);
    height: clamp(280px, 79vw, 470px)
  }

  #hero .env-hero__cta {
    padding: 12px 22px
  }
}
/* A visible invitation to discover the foreground showcase. */


#hero .env-hero__inner {padding-top:clamp(110px,25svh,340px)!important;}
#hero .env-hero__showcase {margin-top:clamp(24px,6svh,90px);scroll-margin-top:12px;}
@media(max-height:480px){#hero .env-hero__inner{padding-top:100px!important;}#hero .env-hero__intro{gap:10px;}#hero .env-hero__headline{max-width:420px;}}

/* Homepage closes directly into the black shared footer. */
body[data-env-adaptive]:has(#hero.env-hero),body[data-env-adaptive]:has(#hero.env-hero)>main {background:#000;}
#hero.env-hero {padding-bottom:clamp(36px,6vw,96px)!important;}
#hero .env-hero__shade {background:linear-gradient(180deg,rgba(3,13,22,.4),rgba(3,13,22,.1) 45%,rgba(0,0,0,.25) 70%,#000 100%);}
#hero .env-hero__showcase {margin-bottom:0!important;}

/* Homepage-only embedded navigation and carousel controls. */
body.home-page #footer.env-footer {background:#000!important;overflow:visible;z-index:2;}
body.home-page #footer .env-footer__container {overflow:visible;}
#hero.env-hero {padding-bottom:0!important;overflow:clip;}
#hero .home-journey-slot {width:100%;display:flex;justify-content:center;position:relative;z-index:5;}
#hero .home-journey-slot .env-journey {position:relative;left:auto;bottom:auto;transform:none;opacity:1;visibility:visible;pointer-events:auto;max-width:100%;text-align:left;}
#hero .home-journey-slot .env-journey__bar {background:transparent;border-color:#ffffff80;text-shadow:0 1px 5px #000;}
#hero .home-journey-slot .env-journey__bar button {color:#fff;}
#hero .env-hero__showcase-card {left:50%;margin-left:calc(-1 * min(66vw,990px) / 2);}
@media(max-width:767.98px){#hero .env-hero__showcase-card {margin-left:-42vw;}}
#hero .env-hero__showcase-caption small {font-family:var(--default-font);font-feature-settings:"zero" 0;font-variant-numeric:normal;}
/* Viewport-derived initial placement, permanently anchored to the showcase. */
#hero .env-hero__inner {position:relative;}
#hero .env-hero__showcase {
  --home-controls-inset: max(24px, env(safe-area-inset-bottom, 0px));
}
#hero .home-carousel-controls {
  position:absolute; z-index:4; left:0; right:0;
  bottom:var(--home-controls-bottom,var(--home-controls-inset));
  transition:none;
  margin:0; padding:8px max(clamp(16px,5vw,80px),env(safe-area-inset-right)) 8px max(clamp(16px,5vw,80px),env(safe-area-inset-left));
  background:transparent;
  pointer-events:none;
}
#hero .home-carousel-controls button {pointer-events:auto;}
@media(max-width:767.98px) {
  #hero .home-carousel-controls {padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right));}
  /* Reserve space below captions for the overlay on compact cards. */
  #hero .env-hero__showcase {height:clamp(320px,88vw,500px);}
}

body.home-page .home-journey-overlay {position:fixed;z-index:2200;left:50%;top:auto;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);opacity:1;visibility:visible;pointer-events:auto;display:flex;flex-direction:column;max-height:calc(100dvh - 24px);}
body.home-page .home-journey-overlay .env-journey__panel {position:static;max-height:none;min-height:0;overflow:auto;}
body.home-page .home-journey-overlay .env-journey__bar {flex:none;}
@media(orientation:landscape) and (max-height:600px){body.home-page .home-journey-overlay.is-viewport-open {top:12px;height:calc(100dvh - 24px);}}
@media(max-width:991.98px){body.home-page #footer .env-footer__invitation {row-gap:16px;}}

body.home-page .home-journey-overlay.is-viewport-open {opacity:1;visibility:visible;pointer-events:auto;--env-overlay-height:calc(100dvh - 24px);--env-overlay-top:12px;}

/* Short landscape viewports: native fixed positioning, no scroll-driven offsets. */
@media (orientation:landscape) and (max-height:600px) {
  #hero .env-hero__showcase {perspective:none;}
  #hero .env-hero__showcase-track {perspective:1100px;}
  #hero .home-carousel-controls {
    position:fixed;
    bottom:max(24px,env(safe-area-inset-bottom,0px));
    visibility:hidden;
  }
  #hero .home-carousel-controls.is-landscape-visible {visibility:visible;}
  body.mobile-nav-active #hero .home-carousel-controls,
  body:has(.env-journey.is-viewport-open) #hero .home-carousel-controls {visibility:hidden;}
}
