/* Hero motion, front end only: the letter lands, the list is written, the stamp is pressed. Plays once, about four seconds.
   Opt-in: visitors who ask for reduced motion get the finished letter with no animation. */
@keyframes mslink-sheet-land { from { opacity: 0; transform: translate(48px, -28px) rotate(7deg); } 70% { opacity: 1; } to { opacity: 1; transform: rotate(1.5deg); } }
@keyframes mslink-write-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes mslink-rule-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mslink-stamp-press { 0% { opacity: 0; transform: scale(1.8) rotate(-16deg); } 60% { opacity: 0.95; transform: scale(0.94) rotate(-5deg); } 100% { opacity: 0.88; transform: scale(1) rotate(-6deg); } }
@keyframes mslink-thump { 0%, 100% { transform: none; } 40% { transform: translateY(3px); } }
@keyframes mslink-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero .actions { animation: mslink-rise 700ms var(--ease-out) both; }
  .hero .lead { animation-delay: 120ms; }
  .hero .actions { animation-delay: 240ms; }
  .desk-stack { animation: mslink-thump 260ms var(--ease-out) 3.1s 1 both; }
  .sheet { animation: mslink-sheet-land 1100ms var(--ease-out) 200ms both; }
  .sheet-body::before { animation: mslink-rule-draw 700ms var(--ease-out) 1.1s both; }
  .sheet-subject { animation: mslink-write-in 500ms var(--ease-out) 1.5s both; }
  .sheet-list li { animation: mslink-write-in 500ms var(--ease-out) both; animation-delay: calc(1.55s + 0.25s * var(--i, 1)); }
  .sheet-list li:nth-child(1) { --i: 1; }
  .sheet-list li:nth-child(2) { --i: 2; }
  .sheet-list li:nth-child(3) { --i: 3; }
  .sheet-list li:nth-child(4) { --i: 4; }
  .sheet-list li:nth-child(5) { --i: 5; }
  .sheet-list li:nth-child(6) { --i: 6; }
  .pressed { animation: mslink-stamp-press 420ms var(--ease-out) 3s both; }
  .sheet-addr { animation: mslink-write-in 500ms var(--ease-out) 3.4s both; }
}
@media (max-width: 40rem) and (prefers-reduced-motion: no-preference) {
  .sheet { animation-name: mslink-rise; animation-duration: 700ms; }
}
