/* Chapter-specific entry motion. Independent transforms preserve image parallax. */
html.motion-ready body.premium-site .reveal-on-scroll[data-motion] {
 --entry-x:0px; --entry-y:0px; --entry-scale:1;
 --entry-clip:inset(0 0 0 0);
 transform:none!important;
 translate:0 0!important;
 scale:1;
 opacity:1!important;
 clip-path:inset(0 0 0 0);
 transition:opacity .8s ease,translate .95s cubic-bezier(.16,1,.3,1),scale 1.1s cubic-bezier(.16,1,.3,1),clip-path 1.2s cubic-bezier(.16,1,.3,1)!important;
 transition-delay:var(--reveal-delay,0ms)!important;
}
html.motion-ready body.premium-site [data-motion="left"] {--entry-x:-38px}
html.motion-ready body.premium-site [data-motion="right"] {--entry-x:38px}
html.motion-ready body.premium-site [data-motion="rise"] {--entry-y:20px}
html.motion-ready body.premium-site [data-motion="focus"] {--entry-scale:.94}
html.motion-ready body.premium-site [data-motion="curtain"] {--entry-clip:inset(0 0 100% 0)}
html.motion-ready body.premium-site .reveal-on-scroll[data-motion]:not(.is-visible) {
 translate:var(--entry-x) var(--entry-y)!important;
 scale:var(--entry-scale);
 clip-path:var(--entry-clip);
 opacity:0!important;
}
/* Containers remain stationary so nested text never receives two entrances. */
html.motion-ready body.premium-site .reveal-on-scroll[data-motion="container"] {
 translate:0 0!important;transform:none!important;scale:1;opacity:1!important;
 clip-path:none;transition:none!important;
}
@media(max-width:1023px), (pointer:coarse) {
 html.motion-ready body.premium-site [data-motion="left"] {--entry-x:-24px}
 html.motion-ready body.premium-site [data-motion="right"] {--entry-x:24px}
 html.motion-ready body.premium-site [data-motion="focus"] {--entry-scale:.96}
}
/* Keep the existing desktop reduced-motion behavior. */
@media(min-width:1024px) and (pointer:fine) and (prefers-reduced-motion:reduce) {
 html.motion-ready body.premium-site .reveal-on-scroll[data-motion] {
  translate:none!important;scale:1;opacity:1!important;clip-path:none;transition:none!important;
 }
}
