/* Shared motion language: gentle entrances, deliberate easing, natural scrolling. */
:root { --motion-ease: cubic-bezier(.16, 1, .3, 1); }
.motion-word-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .13em; margin-bottom: -.13em; }
.motion-word { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .nav-links a:not(.btn) { position: relative; }
  .nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--motion-ease); }
  .nav-links a:not(.btn):hover::after, .nav-links a:not(.btn):focus-visible::after { transform: scaleX(1); transform-origin: left; }
  .btn { transition: transform .5s var(--motion-ease), background .25s, color .25s, border-color .25s; }
  .btn:active { transform: scale(.97); }
  .case .cover-in { transition: transform 1.1s var(--motion-ease); }
  .case .swap { transition: opacity .7s var(--motion-ease); }
  .nextp .arr { display: inline-block; transition: transform .65s var(--motion-ease); }
  .nextp a:hover .arr, .nextp a:focus-visible .arr { transform: translateX(10px); }
  @media (hover: hover) and (pointer: fine) {
    .case:hover .cover-in, .case:focus-visible .cover-in { transform: scale(1.035); }
    .btn:hover { transform: translateY(-3px); }
    .btn:active { transform: translateY(0) scale(.97); }
  }
  /* Native scroll timelines avoid a JavaScript scroll loop. */
  @supports (animation-timeline: view()) {
    .case .cover-in > img:first-child:not(.swap) {
      animation: aslo-image-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}
@keyframes aslo-image-drift {
  from { transform: translateY(-2%) scale(1.06); }
  to { transform: translateY(2%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .motion-word, .motion-word-mask { display: inline; }
  .btn, .case .cover-in, .case .swap, .nextp .arr { animation: none !important; transition: none !important; }
}
