/* Camera V6.1: foreground camera only on the homepage hero. */
.site-header{z-index:100!important}
.site-footer{position:relative;z-index:4!important}

/* Safe default on every route: 3D stays behind the entire page content. */
.scene-stage.camera-v5{z-index:1!important}
main{position:relative;z-index:2!important}
.page-hero,.service-hero,.contact-hero,.service-intro,.service-benefits,.package-section,.inquiry-section{position:relative;z-index:2!important}

/* Foreground composition is allowed only on the homepage hero. */
.route-home[data-active-scene="hero"] main{position:relative;z-index:auto!important}
.route-home[data-active-scene="hero"] .scene-stage.camera-v5{
  z-index:3!important;
  transform:translate3d(-1.5vw,0,0) scale(1.26)!important;
  transform-origin:76% 50%!important;
  filter:saturate(1.12) contrast(1.07) brightness(1.08)!important;
}

.route-home .hero-3d{
  isolation:auto!important;
  z-index:auto!important;
}
.route-home .hero-3d::before,.route-home .hero-3d::after{z-index:0!important}
.route-home .hero-vignette{z-index:4!important;pointer-events:none}
.route-home .hero-3d-grid,.route-home .hero-copy,.route-home .hero-object-label,.route-home .scroll-cue{position:relative;z-index:6!important}

/* All non-homepage routes always keep their camera muted behind content. */
body:not(.route-home) .scene-stage.camera-v5{
  z-index:1!important;
  opacity:.46!important;
  filter:saturate(.78) contrast(1.02) brightness(.72)!important;
}
body:not(.route-home) main,
body:not(.route-home) .page-hero-content,
body:not(.route-home) .service-hero .page-hero-content,
body:not(.route-home) .inquiry-layout{
  position:relative!important;
  z-index:3!important;
}
body:not(.route-home) .scene-overlay{
  background:linear-gradient(90deg,rgba(3,4,5,.9),rgba(3,4,5,.7) 48%,rgba(3,4,5,.5))!important;
}

/* Reveal more of the body and gold edges only on the homepage. */
.route-home[data-active-scene="hero"] .camera-v5 .scene-overlay{
  background:linear-gradient(90deg,rgba(3,4,5,.96) 0%,rgba(3,4,5,.72) 39%,rgba(3,4,5,.015) 61%,rgba(3,4,5,.12) 100%)!important;
}
.route-home[data-active-scene="hero"] .camera-v5::after{
  background:radial-gradient(circle at 73% 49%,rgba(250,216,110,.18),transparent 27%)!important;
}

.route-home .hero-object-label{
  right:clamp(18px,3.8vw,72px)!important;
  bottom:clamp(42px,7vh,76px)!important;
  max-width:190px!important;
}

@media(max-width:1280px){
  .route-home[data-active-scene="hero"] .scene-stage.camera-v5{
    transform:translate3d(5vw,1vh,0) scale(1.13)!important;
    transform-origin:82% 50%!important;
  }
  .route-home .hero-object-label{display:none!important}
}

@media(max-width:900px){
  .route-home[data-active-scene="hero"] .scene-stage.camera-v5{
    transform:translate3d(13vw,2vh,0) scale(1.02)!important;
    opacity:.78!important;
  }
  body:not(.route-home) .scene-stage.camera-v5{opacity:.28!important}
}

@media(max-width:760px){.scene-stage.camera-v5{display:none!important}}
@media(prefers-reduced-motion:reduce){
  .route-home[data-active-scene="hero"] .scene-stage.camera-v5{transform:none!important}
}
