/* Shared interior page motion.
   Loaded after site-motion.css. It does not flatten per-element reveal timing.
   Every value below is a token. A design-system token pass can change them here.
   Colors and rules come from existing tokens (--mint, --service-line, --ease-out). */
:root {
  /* Reveal durations live on each element. These remain the medium defaults. */
  --t-rise: 400ms;
  --t-step: 70ms;
  /* Magnetic pull on primary mint buttons, in px. Desktop pointer only. */
  --flow-magnet-max: 8px;
}

@media (prefers-reduced-motion: no-preference) {
  /* Fade with the rise. Paragraph masks stay put and fade on their own. */
  html.js-reveal [data-reveal]:not([data-reveal-auto]):not(.is-inview) > .reveal-mask:not(:has(p)):not(p),
  html.js-reveal [data-reveal-auto]:not(.is-revealed) > .reveal-mask:not(:has(p)):not(p) { opacity: 0; }
  /* The pricing link keeps the box it has from the first paint. */
  html.js-reveal .value-discuss.reveal-mask { opacity: 1 !important; transform: none !important; transition: none !important; }
  /* Service pages already rise each card on its own (editorial-reveal.js). Stop the section mask
     from stacking a second rise on the same blocks. The section keeps its own clip, as before. */
  html.js-reveal .service-page [data-reveal-auto]:is([data-editorial-reveal], :has([data-editorial-reveal])) > .reveal-mask {
    transform: none; opacity: 1; transition: none;
  }
  /* Cards use the shared medium duration. Their own delay stays on --reveal-delay. */
  .motion-ready [data-editorial-reveal].is-visible:not(.editorial-film-band):not(:has(.motion-mask)) {
    animation-duration: var(--t-rise);
  }
}
html.reveal-still [data-reveal] > .reveal-mask,
html.reveal-still [data-reveal-auto] > .reveal-mask { opacity: 1 !important; }

/* Magnetic pull moves only the translate property. Layout never changes. */
[data-magnet] { will-change: translate; }

/* Mobile and tablet stack: the mint rail runs the full height of the list. It used to fill with
   scroll and stop partway down a step. Reduced motion already showed it full. */
@media (max-width: 700px) {
  .service-page section[aria-labelledby="service-process"] .motion-track > li::after { transform: scaleY(1); }
}


body[data-route="product-studio"] section[aria-labelledby="service-process"] .service-process { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: no-preference) {
  [data-flow-depth] { transform: perspective(900px) rotateX(var(--flow-pitch, 0deg)) rotateY(var(--flow-yaw, 0deg)); }
}

/* Covered plan details only dim while their sticky stack is on screen. */
#plans.is-stacking:not(.is-active) .plan-stack-inner > :not(h2,.plan-price),
#plans.is-stacking:not(.is-active) .plan-stack-inner > .plan-price > :not(.tier-amount){
  opacity:1 !important;
}
