/* Depth enhancement: native CSS/JS, with no external runtime. */
.depth-card { --tilt-x:0deg; --tilt-y:0deg; }
.service-card.depth-card { transform:perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transition:transform .18s ease-out,box-shadow .25s; }
.journey-animated .journey-card.depth-card { transform:perspective(900px) translateY(calc((1 - var(--journey-entry,1))*16px)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transition:box-shadow .25s; }
.integration-board.depth-card { transform:perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transition:transform .18s ease-out; }
.depth-card::after { content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none; opacity:0; background:radial-gradient(350px circle at var(--light-x,50%) var(--light-y,50%),#b084ff22,transparent 70%); transition:opacity .25s; }
.journey-card.depth-card { position:relative; }
.depth-card.lit::after { opacity:1; }
.light-section .service-card.lit { box-shadow:0 22px 40px #4e287820; }
.journey-card.lit { box-shadow:0 14px 40px #8b5cf62b; }
.automation-stage::before { content:''; position:absolute; inset:-30%; pointer-events:none; background:conic-gradient(from 40deg,transparent 30%,#8651d920,transparent 65%); animation:ambient-turn 22s linear infinite; }
@keyframes ambient-turn { to { transform:rotate(360deg); } }
.stage-orbit.orbit-a { transform:rotateX(62deg) rotateZ(-24deg); }
.stage-orbit.orbit-b { transform:rotateY(58deg) rotateZ(26deg); }
/* Older engines without individual transform properties still animate. */
@supports not (translate:0 1px) {
 .page-motion .hero-copy { transform:translateY(var(--hero-copy-y,0px)); }
 .page-motion .automation-stage { transform:translateY(var(--hero-scene-y,0px)) rotate(var(--hero-angle,0deg)); }
 .page-motion .card-visual { transform:translateY(var(--visual-y,0px)) rotate(var(--visual-angle,0deg)); }
 .page-motion .section-heading { transform:translateY(var(--heading-y,0px)); }
 .page-motion .contact-copy { transform:translateY(var(--contact-copy-y,0px)); }
 .page-motion .contact-builder { transform:translateY(var(--contact-form-y,0px)); }
}
@media(prefers-reduced-motion:reduce) {
 .automation-stage::before { animation:none; }
 .depth-card,.journey-animated .journey-card.depth-card { transform:none!important; transition:none; }
 .depth-card::after { display:none; }
 .page-motion .hero-copy,.page-motion .automation-stage,.page-motion .card-visual,
 .page-motion .section-heading,.page-motion .contact-copy,.page-motion .contact-builder { transform:none; }
}
