/* mystack-motion/MECHANIC.md: reference movement, project typography and controls. */
:root{
  --motion-heading-duration:.95s;
  --motion-card-duration:.7s;
  --motion-card-step:.05s;
}
@media(prefers-reduced-motion:no-preference){
  html[data-heading-motion="pending"] .hero .actions{opacity:0;visibility:hidden}
}
@media(prefers-reduced-motion:no-preference){
  html[data-heading-motion="pending"] :is(h1,h2,.hero-copy>p){opacity:0;transform:translateY(32px)}
}
.motion-running .hero{isolation:isolate}
/* Lenis owns smooth scrolling. Native smooth scroll (including focus/hover
   scroll-into-view) must not race its animation and shift anchor destinations. */
html.lenis{scroll-behavior:auto!important}
.motion-running main{position:relative;z-index:1;background:var(--color-bg)}
.motion-running .header{position:relative;z-index:2}
.motion-running .footer{position:sticky;bottom:0;z-index:0}
.motion-running .benefits{transform-origin:50% 0%}
.motion-running .faq-panel{isolation:isolate}
.motion-running .answer{overflow:hidden}
.answer-inner{display:flow-root}
body .button:focus-visible{
  background:var(--color-accent-hover);
  box-shadow:var(--shadow-control);
}
body .button.secondary:focus-visible{background:var(--color-secondary-hover)}
.motion-running .nav a{position:relative;text-decoration:none}
.motion-running .nav a:after{
  content:'';position:absolute;bottom:6px;left:0;right:0;height:2px;
  background:currentColor;transform:scaleX(0);transform-origin:left;
  transition:transform var(--duration-button) var(--ease-faq);
}
.motion-running .nav a:hover:after,.motion-running .nav a:focus-visible:after{transform:scaleX(1)}
summary:after{transition:transform var(--duration-button) var(--ease-faq)}
details[open] summary:after{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  .motion-running .footer{position:relative}
  .motion-running .sheet{transform:none!important;will-change:auto}
  summary:after,.motion-running .nav a:after{transition:none}
}
