/* Carvexa motion layer: intentional scroll choreography, no screenshot edits. */
:root{--cv-motion-ease:cubic-bezier(.19,.75,.2,1)}
.motion-progress{position:fixed;top:0;left:0;width:100%;height:3px;z-index:100;pointer-events:none;transform-origin:left center;transform:scaleX(0);background:linear-gradient(90deg,#1550b7,#2685f5 60%,#86baff);box-shadow:0 1px 7px rgba(36,112,219,.20)}
header{transition:top .32s ease,width .32s ease,background .32s ease,box-shadow .32s ease}
header .nav{transition:height .32s ease}
header.motion-compact{top:7px;width:min(1100px,calc(100% - 28px));background:rgba(255,255,255,.98);box-shadow:0 12px 35px rgba(23,42,67,.12)}
header.motion-compact .nav{height:58px}
/* The hero enters as a composed scene. Existing dark/graphite frame swaps remain untouched. */
html.motion-on .hero-copy .hero-enter{animation:cv-rise .82s var(--cv-motion-ease) both;animation-delay:var(--hero-delay,0ms)}
html.motion-on .hero-show{animation:cv-stage-in 1.06s var(--cv-motion-ease) .28s both;transform:translate3d(0,var(--stage-shift,0px),0)}
@keyframes cv-rise{from{opacity:0;transform:translate3d(0,24px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
@keyframes cv-stage-in{from{opacity:0}to{opacity:1}}
/* Reveal is progressively enabled only when an observer is available.
   Without JavaScript, or with reduced motion, every element stays fully visible. */
html.motion-on .motion-reveal{opacity:0;transform:translate3d(var(--reveal-x,0px),var(--reveal-y,38px),0) rotate(var(--reveal-angle,0deg)) scale(.977);transition:opacity .78s ease,transform .94s var(--cv-motion-ease),box-shadow .3s ease;transition-delay:var(--motion-delay,0ms)}
html.motion-on .motion-reveal.is-visible{opacity:1;transform:translate3d(0,0,0) rotate(0deg) scale(1)}
html.motion-on .motion-reveal.motion-left{--reveal-x:-34px;--reveal-y:13px;--reveal-angle:-.55deg}
html.motion-on .motion-reveal.motion-right{--reveal-x:34px;--reveal-y:13px;--reveal-angle:.55deg}
html.motion-on .motion-reveal.motion-close{--reveal-x:0px;--reveal-y:22px;--reveal-angle:0deg}
html.motion-on .bento-card.motion-reveal.is-visible:hover{transform:translate3d(0,-5px,0)}
html.motion-on .program-card.motion-reveal.is-visible:hover{transform:translate3d(0,-5px,0);box-shadow:0 25px 48px rgba(24,55,103,.13)}
html.motion-on .price.popular.motion-reveal.is-visible{transform:translate3d(0,-13px,0)}
html.motion-on .price.popular.motion-reveal.is-visible:hover{transform:translate3d(0,-17px,0)}
/* Automotive-inspired fine lines travel slowly underneath the content. */
#programs,#features,#prices{isolation:isolate}
#programs:before{content:"";position:absolute;pointer-events:none;z-index:-1;left:-17%;top:19%;width:69%;height:85px;border-top:1px solid rgba(39,100,185,.15);border-bottom:1px solid rgba(39,100,185,.08);transform:rotate(-8deg) translate3d(var(--program-rail-shift,0px),0,0)}
#features{position:relative;overflow:hidden}
#features:before{content:"";position:absolute;pointer-events:none;z-index:0;right:-22%;top:29%;width:72%;height:92px;border-top:1px solid rgba(39,100,185,.13);border-bottom:1px solid rgba(39,100,185,.07);transform:rotate(8deg) translate3d(var(--feature-rail-shift,0px),0,0)}
#features>.wrap{position:relative;z-index:1}
/* Minimal reveals within cards give the page depth without moving the actual screenshots. */
.story-head:after,.bento-head:after,.price-head:after{content:"";display:block;height:3px;width:0;margin:26px auto 0;border-radius:99px;background:#2a6dd8;transition:width .9s var(--cv-motion-ease) .25s}
.story-head.is-visible:after,.bento-head.is-visible:after,.price-head.is-visible:after{width:54px}
html.motion-on .program-card .program-visual i{transform:translate3d(0,14px,0);opacity:.52;transition:transform .63s var(--cv-motion-ease),opacity .63s ease}
html.motion-on .program-card.is-visible .program-visual i{transform:translate3d(0,0,0);opacity:1}
html.motion-on .program-card.is-visible .program-visual i:nth-child(2){transition-delay:150ms}
.bento-card:before{content:"";position:absolute;z-index:1;left:26px;top:0;width:44px;height:3px;background:#2a70d8;border-radius:0 0 4px 4px;transform:scaleX(0);transform-origin:left;transition:transform .8s var(--cv-motion-ease) .18s}
.bento-card.is-visible:before{transform:scaleX(1)}
.bento-card .bento-icon{transform:translate3d(0,var(--feature-icon-shift,0px),0);transition:transform .35s ease}
.bento-card:hover .bento-icon{transform:translate3d(-4px,calc(var(--feature-icon-shift,0px) - 7px),0)}
.faq details[open] p{animation:cv-answer .32s ease both}
@keyframes cv-answer{from{opacity:0;transform:translate3d(0,-6px,0)}to{opacity:1;transform:none}}
.faq details[open]{border-color:rgba(39,105,212,.18)}
.faq details[open] summary:after{color:#2466ca}
@media(max-width:980px){
 header.motion-compact .nav{height:54px}
 html.motion-on .price.popular.motion-reveal.is-visible{transform:none}
 html.motion-on .price.popular.motion-reveal.is-visible:hover{transform:translateY(-4px)}
}
@media(max-width:640px){
 .motion-progress{height:2px}
 html.motion-on .motion-reveal.motion-left,html.motion-on .motion-reveal.motion-right{--reveal-x:0px;--reveal-y:24px;--reveal-angle:0deg}
 html.motion-on .hero-copy .hero-enter{animation-duration:.65s}
 #programs:before,#features:before{opacity:.45}
 .bento-card:before{left:22px}
}
@media(prefers-reduced-motion:reduce){
 .motion-progress{display:none!important}
 header,header .nav{transition:none!important}
 html.motion-on .motion-reveal{opacity:1!important;transform:none!important;transition:none!important}
 html.motion-on .price.popular.motion-reveal.is-visible{transform:none!important}
 html.motion-on .hero-copy .hero-enter,html.motion-on .hero-show,.faq details[open] p{animation:none!important}
 .program-card .program-visual i{opacity:1!important;transform:none!important;transition:none!important}
 .bento-card .bento-icon{transform:none!important;transition:none!important}
}
