/* The earlier approved v1.7 hero restored for the Cloudflare shell.
   ONE unmodified WebP is used for a sharp illustration and blurred fill.
   No slideshow, no ember layers, no zoom, no JS, no extra image requests. */
.hero-page .hero {
  isolation:isolate;
  position:relative;
  overflow:hidden;
  background-color:#0c1820 !important;
  min-height:clamp(620px,calc(100svh - 78px),900px);
}
.hero-page .hero .ks-hero-gallery {
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
  isolation:isolate;
}
.hero-page .hero .ks-hero-backdrop {
  position:absolute;
  inset:-25px;
  z-index:0;
  background-position:50% 40%;
  background-size:cover;
  background-repeat:no-repeat;
  filter:blur(23px) brightness(.58) saturate(.86);
  opacity:.95;
  pointer-events:none;
}
.hero-page .hero .ks-hero-main {
  position:absolute;
  z-index:1;
  top:1%;
  right:1%;
  width:74%;
  height:98%;
  max-width:none;
  object-fit:contain;
  object-position:100% 50%;
  opacity:1;
  transform:none;
  filter:none;
  -webkit-mask-image:radial-gradient(ellipse 76% 68% at 62% 50%,
    #000 41%,rgba(0,0,0,.99) 55%,rgba(0,0,0,.80) 73%,transparent 100%);
  mask-image:radial-gradient(ellipse 76% 68% at 62% 50%,
    #000 41%,rgba(0,0,0,.99) 55%,rgba(0,0,0,.80) 73%,transparent 100%);
}
.hero-page .hero::before {
  position:absolute;
  z-index:2 !important;
  inset:0;
  background:
    linear-gradient(90deg,rgba(7,15,21,.98) 0%,
      rgba(8,17,24,.95) 19%,rgba(8,17,24,.76) 38%,
      rgba(8,17,24,.22) 63%,rgba(8,17,24,.10) 84%,
      rgba(8,17,24,.30) 100%),
    linear-gradient(0deg,rgba(8,17,24,.67),transparent 31%) !important;
  pointer-events:none;
}
.hero-page .hero::after {
  z-index:3 !important;
  pointer-events:none;
  border:1px solid rgba(225,192,137,.24);
}
.hero-page .hero-inner {
  position:relative;
  z-index:4 !important;
}
.hero-page .hero-inner .hero-actions,
.hero-page .hero-inner a,
.hero-page .hero-inner button {
  pointer-events:auto;
}
/* Keep the original typography and image crisp: no timed entrance hiding CTAs. */
.hero-page .hero-inner .overline,
.hero-page .hero-inner h1,
.hero-page .hero-inner .hero-lead,
.hero-page .hero-inner .hero-copy,
.hero-page .hero-inner .hero-actions {
  opacity:1;
  transform:none;
  filter:none;
  animation:none !important;
}
/* Retire remnants of the old gallery/slider; do not download their frames. */
.hero-page .ks-gallery-layer,
.hero-page .ks-cinema-layer,
.hero-page .ks-hero-image,
.hero-page .ks-gallery-caption,
.hero-page .ks-gallery-controls,
.hero-page .ks-frame-archive {
  display:none !important;
}
.hero-page .portal-hero-orbit {
  opacity:.07 !important;
}
@media(max-width:900px) {
  .hero-page .hero .ks-hero-main {
    right:-3%;
    width:84%;
    height:92%;
    top:4%;
  }
  .hero-page .hero::before {
    background:linear-gradient(90deg,rgba(7,15,21,.97),rgba(8,17,24,.83) 35%,
      rgba(8,17,24,.25) 80%) !important;
  }
}
@media(max-width:700px) {
  .hero-page .hero {min-height:590px}
  .hero-page .hero .ks-hero-backdrop {
    inset:-14px;
    filter:blur(13px) brightness(.48);
  }
  .hero-page .hero .ks-hero-main {
    width:100%;
    right:-13%;
    height:81%;
    top:9%;
    opacity:.65;
  }
  .hero-page .hero::before {
    background:linear-gradient(90deg,rgba(7,15,21,.93) 0%,
      rgba(7,15,21,.77) 48%,rgba(8,17,24,.44)),
      linear-gradient(0deg,rgba(7,15,21,.76),transparent 54%) !important;
  }
}
/* The page remains completely static when motion reduction is requested. */
@media(prefers-reduced-motion:reduce) {
  .hero-page .hero,
  .hero-page .hero * {animation:none !important;transition:none !important}
}
/* Defer rendering of genuinely offscreen content, never the hero or nav. */
@supports (content-visibility:auto) {
  .portal-home .below-hero > .portal-book-feature,
  .portal-home .below-hero > .portal-feature-grid,
  .portal-home .below-hero > .portal-atlas-teaser {
    content-visibility:auto;
    contain-intrinsic-size:auto 490px;
  }
}
