/* Musafir Cafe: motion. One page-load reveal (the hero stone rising out of the ground)
   plus hover/focus transitions. Nothing fades in on scroll. */

/* Hover / focus transitions */
.btn, .chip, a.stone, .site-nav a, .footer-stop__town, .field input, .field select, .field textarea {
  transition:
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-med) var(--ease),
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    text-decoration-color var(--t-fast) var(--ease);
}
a.stone { transition-duration: var(--t-med); }

/* The hero stone rises once, out of the ground: it slides up while its bottom stays
   clipped at the ground line, so it reads as coming up, not dropping in. Add .stone--rise. */
.stone--rise { animation: stone-rise 1100ms cubic-bezier(.16, .84, .24, 1) 200ms backwards; }
@keyframes stone-rise {
  from { transform: translateY(42%); clip-path: inset(0 0 42% 0); }
  to   { transform: translateY(0);   clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .stone--rise { animation: none; }
  a.stone:hover, .btn:hover, .btn:active { transform: none; }
}
