/* MANTRA V724 • cinematic motion layer (public-facing pages only)
   Original motion system, no backend or ERP dependencies. */
:root{--mpc-copper:#f59b3b;--mpc-ink:#071321;--mpc-ease:cubic-bezier(.18,.72,.24,1)}
html{scroll-behavior:smooth;scroll-padding-top:92px}
body.mpc-public-motion{overflow-x:clip}
.mpc-scroll-track{position:fixed;top:0;left:0;right:0;height:3px;pointer-events:none;z-index:2147482000;background:transparent}
.mpc-scroll-progress{height:100%;width:100%;transform:scaleX(0);transform-origin:left;background:linear-gradient(90deg,#f48923,#ffc770,#f48923);box-shadow:0 0 15px rgba(244,137,35,.45);will-change:transform}
/* Motion is opt-in only after JS has successfully mounted. */
.mpc-motion-ready .mpc-reveal{opacity:0;transform:translate3d(0,48px,0);filter:blur(5px);transition:opacity .85s var(--mpc-ease),transform .9s var(--mpc-ease),filter .9s var(--mpc-ease);transition-delay:var(--mpc-delay,0ms)}
.mpc-motion-ready .mpc-reveal.mpc-visible{opacity:1;transform:translate3d(0,0,0);filter:blur(0)}
.mpc-motion-ready .mpc-reveal.mpc-reveal-left{transform:translate3d(-50px,18px,0)}
.mpc-motion-ready .mpc-reveal.mpc-reveal-right{transform:translate3d(50px,18px,0)}
.mpc-motion-ready .mpc-reveal.mpc-reveal-left.mpc-visible,.mpc-motion-ready .mpc-reveal.mpc-reveal-right.mpc-visible{transform:translate3d(0,0,0)}
/* Hero keeps the existing V723 artwork, slide logic, links and content. */
.hero.v456-hero{background-color:#070b12!important}
.hero.v456-hero .v455-hero-slide{overflow:hidden}
.hero.v456-hero .v455-hero-slide.active{animation:mpc-slide-breathe 8s ease-out both}
@keyframes mpc-slide-breathe{from{background-size:103% auto}to{background-size:110% auto}}
/* Use stable cover on compact viewports: background-size interpolation can crop mobile images. */
@media(max-width:900px){.hero.v456-hero .v455-hero-slide.active{animation:none}}
.v460-hero-tagline{animation:mpc-hero-arrive 1.15s .15s var(--mpc-ease) both}
.v460-side-panel{animation:mpc-hero-arrive 1.15s .3s var(--mpc-ease) both}
@keyframes mpc-hero-arrive{from{opacity:0;translate:0 35px;filter:blur(8px)}to{opacity:1;translate:0 0;filter:blur(0)}}
/* Editorial headings, fine underline accents. */
#services .title,#gallery .title,#about .title{position:relative}
#services .title h2,#gallery .title h2,#about .title h2,#infrastructure h2,#profile h2{letter-spacing:-.035em;text-wrap:balance}
#services .title .k,#gallery .title .k,#about .title .k,#infrastructure .eyebrow,#profile .eyebrow{letter-spacing:.16em}
#services .title::after,#gallery .title::after,#about .title::after{content:"";display:block;width:0;height:3px;margin-top:17px;background:linear-gradient(90deg,#f18d29,#ffbf67);border-radius:99px;transition:width 1.1s .2s var(--mpc-ease)}
#services .title.mpc-visible::after,#gallery .title.mpc-visible::after,#about .title.mpc-visible::after{width:min(92px,24vw)}
/* Carefully scoped imagery and cards, so CMS and the order portal are unaffected. */
#services .v279-service{position:relative;transform-style:preserve-3d;transition:transform .52s var(--mpc-ease),box-shadow .52s var(--mpc-ease),border-color .3s!important}
#services .v279-service::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(120deg,transparent 25%,rgba(255,255,255,.22) 47%,transparent 69%);transform:translateX(-125%);transition:transform .8s ease;z-index:3}
#services .v279-service:hover::after{transform:translateX(125%)}
#services .v279-service:hover{transform:translate3d(0,-9px,0);box-shadow:0 24px 48px rgba(10,28,48,.17)!important}
#services .v279-service .v279-service-photo{overflow:hidden}
#services .v279-service .v279-service-photo img{transition:transform .9s var(--mpc-ease)}
#services .v279-service:hover .v279-service-photo img{transform:scale(1.07)}
#infrastructure .infraImg,#profile .aboutImg{position:relative;overflow:hidden;transition:box-shadow .8s var(--mpc-ease),transform .8s var(--mpc-ease)}
#infrastructure .infraImg:hover,#profile .aboutImg:hover{transform:scale(1.012);box-shadow:0 35px 65px rgba(16,35,58,.18)}
#infrastructure .feature,#profile .check{transition:transform .35s var(--mpc-ease),background-color .35s,border-color .35s}
#infrastructure .feature:hover,#profile .check:hover{transform:translateX(5px)}
#gallery .gal{isolation:isolate;transition:box-shadow .65s var(--mpc-ease),transform .65s var(--mpc-ease),filter .65s var(--mpc-ease);will-change:auto}
#gallery .gal:hover{transform:translateY(-7px) scale(1.016);box-shadow:0 25px 55px rgba(8,26,48,.25)!important;z-index:2;filter:saturate(1.12)}
#gallery .gal span{transition:transform .5s var(--mpc-ease)}
#gallery .gal:hover span{transform:translateY(-7px)}
#about .whyCard{transition:transform .52s var(--mpc-ease),box-shadow .52s var(--mpc-ease),border-color .52s!important}
#about .whyCard:hover{transform:translate3d(0,-8px,0);box-shadow:0 24px 50px rgba(13,37,63,.13)!important}
.branchBand .branchPills>*{transition:transform .35s var(--mpc-ease),background-color .35s,color .35s}
.branchBand .branchPills>*:hover{transform:translateY(-4px)}
/* Links and buttons remain clickable, and keyboard focus remains visible. */
#home a:focus-visible,#services a:focus-visible,#gallery a:focus-visible,#about a:focus-visible{outline:3px solid var(--mpc-copper);outline-offset:4px}
#home .btn,#contact a,.branchBand a{transition:transform .3s var(--mpc-ease),box-shadow .3s var(--mpc-ease),background-color .3s}
#home .btn:hover,#contact a:hover,.branchBand a:hover{transform:translateY(-3px)}
/* Service detail page subtly inherits the visual language. */
body.mpc-public-motion .service-hero img{transition:transform .9s var(--mpc-ease)}
body.mpc-public-motion .service-hero:hover img{transform:scale(1.035)}
@media(max-width:760px){
 .mpc-motion-ready .mpc-reveal{transform:translate3d(0,24px,0);filter:none;transition-duration:.65s}
 .mpc-motion-ready .mpc-reveal.mpc-reveal-left,.mpc-motion-ready .mpc-reveal.mpc-reveal-right{transform:translate3d(0,24px,0)}
 #gallery .gal:hover,#services .v279-service:hover,#about .whyCard:hover{transform:none}
 .v460-side-panel{animation-duration:.7s}
 html{scroll-padding-top:72px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto!important}
 .mpc-motion-ready .mpc-reveal,.mpc-motion-ready .mpc-reveal.mpc-reveal-left,.mpc-motion-ready .mpc-reveal.mpc-reveal-right{opacity:1!important;filter:none!important;transform:none!important;transition:none!important}
 .hero.v456-hero .v455-hero-slide.active,.v460-hero-tagline,.v460-side-panel{animation:none!important}
 #services .v279-service,#gallery .gal,#about .whyCard,#infrastructure .feature,#profile .check{transition:none!important}
 #services .v279-service:hover,#gallery .gal:hover,#about .whyCard:hover{transform:none!important}
}
