/* Subtle motion for the visitor home and the sign-up / sign-in pages (owner list item 13, 22 Oct 2026).
   Calm and fast: opacity and a few pixels of movement only, so nothing shifts the layout. Loaded only when ARTHVYUH_MOTION=on
   (pages carry the class .mo). Nothing here runs for people who ask their device for reduced motion. No scripts, no libraries. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes mo-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes mo-fade { from { opacity: 0; } to { opacity: 1; } }

  /* load: the first screen arrives in order, headline first (about 0.6 s in all) */
  .mo.landing .lp-hero h1 { animation: mo-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
  .mo.landing .lp-hero .lp-lead { animation: mo-rise .5s .06s cubic-bezier(.2, .7, .2, 1) both; }
  .mo.landing .lp-hero .lp-free-sample { animation: mo-rise .5s .12s cubic-bezier(.2, .7, .2, 1) both; }
  .mo.landing .lp-door { animation: mo-rise .5s .16s cubic-bezier(.2, .7, .2, 1) both; }
  .mo.landing .lp-door:nth-child(2) { animation-delay: .22s; }
  .mo.landing .lp-door:nth-child(3) { animation-delay: .28s; }
  .mo.landing .lp-guard { animation: mo-fade .5s .34s ease-out both; }

  .mo.login-page .login-art h2 { animation: mo-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
  .mo.login-page .login-what li { animation: mo-rise .5s .1s cubic-bezier(.2, .7, .2, 1) both; }
  .mo.login-page .login-what li:nth-child(2) { animation-delay: .16s; }
  .mo.login-page .login-what li:nth-child(3) { animation-delay: .22s; }
  .mo.login-page .auth-card .stack > * { animation: mo-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
  .mo.login-page .auth-card .stack > :nth-child(2) { animation-delay: .05s; }
  .mo.login-page .auth-card .stack > :nth-child(3) { animation-delay: .1s; }
  .mo.login-page .auth-card .stack > :nth-child(4) { animation-delay: .15s; }
  .mo.login-page .auth-card .stack > :nth-child(5) { animation-delay: .2s; }
  .mo.login-page .auth-card .stack > :nth-child(n+6) { animation-delay: .25s; }

  /* scroll: each section settles in as it comes into view (browsers without scroll timelines simply show it) */
  @supports (animation-timeline: view()) {
    .mo.landing .lp-section .v-wrap > *, .mo.landing .lp-final .v-wrap > * {
      animation: mo-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }

  /* touch: soft hover and press */
  .mo .button { transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
  .mo .button:hover:not(:disabled) { transform: translateY(-1px); }
  .mo .button:active:not(:disabled) { transform: scale(.98); transition-duration: .06s; }
  .mo.landing .lp-door { transition: background-color .2s ease; }
  .mo.landing .lp-door:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
  .mo.login-page .auth-card input { transition: border-color .15s ease, box-shadow .15s ease; }
}
