/* Additive effects only. All selectors are scoped to runtime opt-in; no tracking/form rules. */
body.jnm-active:not(.jnm-contact) main .reveal:not([data-tilt]):not(.magnetic){transition:opacity .95s cubic-bezier(.2,.7,.2,1),transform .95s cubic-bezier(.2,.7,.2,1)}
body.jnm-active:not(.jnm-contact) main .reveal:not(.is-visible):not([data-tilt]):not(.magnetic):not(form){opacity:0;transform:translateY(46px)}
body.jnm-active #diagnosis .diagnosis-app.reveal{transition-delay:140ms}
body.jnm-active #diagnosis .diagnosis-intro.reveal{transition-duration:1.05s}
body.jnm-installed .jnm-diagnosis-art{margin:34px 0 0;position:relative;overflow:hidden;aspect-ratio:1.25;background:#eee7dc}
body.jnm-installed .jnm-diagnosis-art img{display:block;width:100%;height:100%;object-fit:cover}
body.jnm-installed .jnm-diagnosis-art figcaption{position:absolute;left:12px;right:12px;bottom:12px;background:#f7f3ecde;color:#61564e;padding:7px 10px;font-size:11px;line-height:1.6}
body.jnm-installed #jaynes-services.jnm-service-depth{position:relative;isolation:isolate;overflow:hidden;background:#181515;color:#fff8ed;padding-top:100px;padding-bottom:100px}
body.jnm-installed .jnm-service-backdrop{position:absolute;inset:0;z-index:-2;background-image:url('/wp-content/themes/jaynes-cinematic-v3/assets/media/lens-fallback.webp');background-size:cover;background-position:center;background-attachment:fixed;pointer-events:none}
body.jnm-installed .jnm-service-backdrop img{display:none}
body.jnm-installed #jaynes-services.jnm-service-depth:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(110deg,#111111cf,#180d0dc2 56%,#160809b8);pointer-events:none}
body.jnm-installed #jaynes-services .jaynes-section-heading{position:relative;z-index:1;margin-bottom:70px}
body.jnm-installed #jaynes-services .jaynes-section-heading>span{color:#ffa4af}
body.jnm-installed #jaynes-services .jaynes-section-heading h2{color:#fff8ed;text-wrap:balance}
body.jnm-installed #jaynes-services .jaynes-section-heading p{color:#e4d9cf}
body.jnm-installed #jaynes-services .jaynes-service-grid{position:relative;z-index:1;gap:24px;border:0;align-items:stretch}
body.jnm-installed #jaynes-services .jaynes-service-card{display:flex;flex-direction:column;align-items:flex-start;background:#f5f1e9f5;color:#181615;border:1px solid #ffffff22;box-shadow:none;border-radius:0;padding:34px 28px}
body.jnm-installed #jaynes-services .jaynes-service-card:nth-child(2n){background:#ebe4daf5}
body.jnm-installed #jaynes-services .jaynes-service-card:hover{background:#fffaf2}
body.jnm-installed #jaynes-services .jaynes-service-card h3{color:#181615;text-wrap:balance}
body.jnm-installed #jaynes-services .jaynes-service-card p{color:#655e57;text-wrap:balance}
body.jnm-installed #jaynes-services .jaynes-service-card small{color:#8b302f}
body.jnm-installed #jaynes-services .jaynes-service-card>b{color:#211d19;margin-top:auto;padding-top:26px}
body.jnm-active #jaynes-services .jaynes-service-card.jns-reveal{transition:opacity 1.05s cubic-bezier(.2,.7,.2,1),transform 1.05s cubic-bezier(.2,.7,.2,1),background .25s}
body.jnm-active #jaynes-services .jaynes-service-card.jns-reveal:not(.is-visible){opacity:0;transform:translateY(72px)}
body.jnm-active #jaynes-services .jaynes-service-card:nth-child(3n+2){transition-delay:150ms}
body.jnm-active #jaynes-services .jaynes-service-card:nth-child(3n+3){transition-delay:300ms}
body.jnm-active .jnm-depth{background-attachment:fixed!important}
@media(max-width:900px){body.jnm-installed .jnm-service-backdrop{background:none}body.jnm-installed .jnm-service-backdrop img{display:block;position:absolute;top:-60px;left:0;width:100%;height:calc(100svh + 120px);object-fit:cover;object-position:52% 50%;transform:translateY(var(--jnm-bg-y,0px));will-change:transform}body.jnm-active .jnm-depth{background-attachment:scroll!important}body.jnm-installed #jaynes-services .jaynes-service-grid{gap:20px}}
@media(max-width:600px){body.jnm-active:not(.jnm-contact) main .reveal:not(.is-visible):not([data-tilt]):not(.magnetic):not(form){transform:translateY(32px)}body.jnm-installed #jaynes-services.jnm-service-depth{padding-top:80px;padding-bottom:80px}body.jnm-installed #jaynes-services .jaynes-section-heading{margin-bottom:50px}body.jnm-installed #jaynes-services .jaynes-service-grid{gap:22px}body.jnm-installed #jaynes-services .jaynes-service-card{padding:28px 24px}body.jnm-installed #jaynes-services .jaynes-service-card p,body.jnm-installed #jaynes-services .jaynes-section-heading p{font-size:16px;line-height:1.8}body.jnm-active #jaynes-services .jaynes-service-card:nth-child(n){transition-delay:0ms}body.jnm-active #jaynes-services .jaynes-service-card.jns-reveal:not(.is-visible){transform:translateY(44px)}body.jnm-installed .jnm-diagnosis-art{margin-top:28px}}
@media(prefers-reduced-motion:reduce){body.jnm-installed main .reveal,body.jnm-installed main .jns-reveal{opacity:1!important;transform:none!important;transition:none!important}body.jnm-installed .jnm-service-backdrop,body.jnm-installed .jnm-depth{background-attachment:scroll!important}body.jnm-installed .jnm-service-backdrop img{transform:none!important;will-change:auto!important}body.jnm-installed [data-jnm-reveal]{animation:none!important;transform:none!important;opacity:1!important}}
@media print{body.jnm-installed main .reveal,body.jnm-installed main .jns-reveal,body.jnm-installed [data-jnm-reveal]{opacity:1!important;transform:none!important;animation:none!important;transition:none!important}body.jnm-installed .jnm-service-backdrop{display:none}body.jnm-installed #jaynes-services.jnm-service-depth{background:white;color:black}body.jnm-installed #jaynes-services .jaynes-section-heading h2,body.jnm-installed #jaynes-services .jaynes-section-heading p{color:black}}

html.jaynes-motion-paused body.jnm-installed main .reveal,html.jaynes-motion-paused body.jnm-installed main .jns-reveal,html.jaynes-motion-paused body.jnm-installed [data-jnm-reveal]{opacity:1!important;transform:none!important;animation:none!important;transition:none!important}html.jaynes-motion-paused body.jnm-installed .jnm-service-backdrop,html.jaynes-motion-paused body.jnm-installed .jnm-depth{background-attachment:scroll!important}html.jaynes-motion-paused body.jnm-installed .jnm-service-backdrop img{transform:none!important;will-change:auto!important}

/* Fast mobile scrolling must never arrive at a transparent content panel.
   Retain a short slide while keeping text/cards readable from the first frame. */
@media(max-width:900px){
 body.jnm-active:not(.jnm-contact) main .reveal:not([data-tilt]):not(.magnetic){transition-duration:650ms;transition-delay:0ms}
 body.jnm-active:not(.jnm-contact) main .reveal:not(.is-visible):not([data-tilt]):not(.magnetic):not(form){opacity:1}
 body.jnm-active #diagnosis .diagnosis-app.reveal,body.jnm-active #diagnosis .diagnosis-intro.reveal{transition-duration:650ms;transition-delay:0ms}
 body.jnm-active #jaynes-services .jaynes-service-card.jns-reveal{transition-duration:650ms;transition-delay:0ms}
 body.jnm-active #jaynes-services .jaynes-service-card.jns-reveal:not(.is-visible){opacity:1}
}

/* Bound the new mobile backdrop layer to its visible neighborhood.
   Do not keep an offscreen full-viewport texture promoted during AI-section paint. */
@media(max-width:900px){
 body.jnm-installed #jaynes-services.jnm-service-depth{contain:paint}
 body.jnm-installed .jnm-service-backdrop img{transform:none;will-change:auto}
 body.jnm-active #jaynes-services.jnm-depth-near .jnm-service-backdrop img{transform:translateY(var(--jnm-bg-y,0px));will-change:transform}
}
