/* CHIEL HOME EFFECTS V2 ? quiet spatial depth, all-native, mobile-safe. */
.depth-stage{--spot-x:50%;--spot-y:50%}
.depth-stage>.depth-spotlight{
 position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.28;
 background:radial-gradient(580px circle at var(--spot-x) var(--spot-y),
 rgba(120,224,255,.22) 0%,rgba(91,170,238,.09) 32%,transparent 68%);
 transition:opacity .28s ease;mix-blend-mode:screen
}
.depth-stage:hover>.depth-spotlight{opacity:.8}
.hero .hero-content{z-index:2}
.hero .hero-console{z-index:3}
.home3d-feature>.home3d-story,.home3d-feature>.home3d-demo{z-index:2}

/* Glass surfaces that remain legible and preserve existing controls. */
.hero-console,.module-tools,.pulse-cell{
 border-color:rgba(153,218,241,.29);
 box-shadow:0 22px 62px rgba(0,4,18,.34),inset 0 1px rgba(255,255,255,.13);
 -webkit-backdrop-filter:blur(17px);backdrop-filter:blur(17px)
}
.module-tools{background:linear-gradient(135deg,rgba(24,52,76,.78),rgba(7,20,36,.86))}
.pulse-cell{background:linear-gradient(155deg,rgba(19,44,65,.82),rgba(7,20,34,.9))}
.portal-group{box-shadow:0 23px 65px rgba(0,5,22,.3),inset 0 1px rgba(255,255,255,.09)}
.portal-group:hover{border-color:rgba(137,207,245,.36);box-shadow:0 25px 70px rgba(0,6,25,.38),inset 0 1px rgba(255,255,255,.10)}

/* The existing home-interactions.js drives --mx/--my and --tilt-* with one delegated RAF. */
.tile-shell>.card>.spotlight{
 position:absolute;inset:0;z-index:0;pointer-events:none;opacity:0;
 background:radial-gradient(340px circle at var(--mx,50%) var(--my,50%),
 rgba(144,234,255,.24),rgba(122,190,246,.08) 33%,transparent 70%);
 transition:opacity .2s ease;transform:none
}
.tile-shell>.card:hover>.spotlight,.tile-shell>.card:focus-visible>.spotlight{opacity:1}
.tile-shell>.card>h3,.tile-shell>.card>p,.tile-shell>.card>.domain{position:relative;z-index:1}
.tile-shell>.card>.icon{position:relative;z-index:1}
.tile-shell>.card .icon{transform:translateZ(27px)}
.tile-shell>.card h3{transform:translateZ(21px)}
.tile-shell>.card p{transform:translateZ(13px)}
.tile-shell>.card .domain{transform:translateZ(10px)}
.tile-shell>.card .status{transform:translateZ(19px)}
.tile-shell>.card .go{transform:translateZ(22px)}
.tile-shell>.card:hover,.tile-shell>.card:focus-visible{box-shadow:0 30px 68px rgba(0,4,20,.57),0 0 27px rgba(77,173,235,.09),inset 0 1px rgba(255,255,255,.14)}

/* Tiny push-button response, without reflow or JavaScript. */
.hero-actions,.home3d-links{perspective:900px}
.hero-action,.home3d-links a,.module-filter{
 transform:translateZ(0);transition:transform .2s cubic-bezier(.2,.85,.2,1),box-shadow .2s ease,background-color .2s ease,border-color .2s ease
}
.hero-action:active,.home3d-links a:active,.module-filter:active{transform:translateY(2px) scale(.98);box-shadow:inset 0 3px 12px rgba(0,0,0,.22)}

/* Dynamic groups only get hidden if script adds the ready class and observes them. */
@media(prefers-reduced-motion:no-preference){
 html.chiel-effects-ready .depth-reveal{
  opacity:0;transform:translate3d(0,22px,0) rotateX(2deg);
  transition:opacity .65s ease,transform .72s cubic-bezier(.18,.84,.22,1)
 }
 html.chiel-effects-ready .depth-reveal.depth-visible{
  opacity:1;transform:none
 }
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .depth-stage [data-depth]{
  transform:translate3d(var(--depth-x,0px),var(--depth-y,0px),0);
  transition:transform .2s cubic-bezier(.2,.75,.2,1)
 }
 .tile-shell>.card:not(.disabled):hover{
  transform:perspective(950px) translateY(-8px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg))
 }
 .hero-action:hover,.home3d-links a:hover{transform:translateY(-4px) translateZ(4px)}
}
@media(max-width:760px){
 .depth-stage>.depth-spotlight{opacity:.19}
 .tile-shell>.card>.spotlight{display:none}
 .tile-shell>.card .icon,.tile-shell>.card h3,.tile-shell>.card p,.tile-shell>.card .domain,.tile-shell>.card .status,.tile-shell>.card .go{transform:none}
 .portal-group:hover{box-shadow:0 22px 60px rgba(0,5,22,.27)}
}
@media(prefers-reduced-motion:reduce){
 .depth-stage>.depth-spotlight{display:none}
 .depth-stage [data-depth],.hero-action,.home3d-links a,.module-filter{transition:none!important;transform:none!important}
 .tile-shell>.card>.spotlight{display:none}
 html.chiel-effects-ready .depth-reveal{opacity:1!important;transform:none!important;transition:none!important}
}
