/* Mobile / tablet menu entrance (<=991px).
   Every item in the open overlay (Work, Notes, About, Let's chat, then the
   social row) steps in the same way: 8px rise + fade in 4 whole frames
   (50ms each), 40ms apart, starting the moment the menu opens. Last item
   lands at 360ms. Uses `translate`, not `transform`, so it never fights
   other transforms. Replaces the old Webflow IX entrance, which only knew
   about Work, About and the socials and waited ~750ms before starting. */
@media (max-width: 991px) {
  .nav-menu-2[data-nav-menu-open] .xs-inner-wrapper > .nav-link,
  .nav-menu-2[data-nav-menu-open] .xs-inner-wrapper > .social-icons {
    animation: menu-reveal 200ms steps(4, end) both;
  }

  .nav-menu-2[data-nav-menu-open] .xs-inner-wrapper > .nav-link:nth-child(2) {
    animation-delay: 40ms;
  }

  .nav-menu-2[data-nav-menu-open] .xs-inner-wrapper > .nav-link:nth-child(3) {
    animation-delay: 80ms;
  }

  .nav-menu-2[data-nav-menu-open] .xs-inner-wrapper > .nav-link:nth-child(4) {
    animation-delay: 120ms;
  }

  .nav-menu-2[data-nav-menu-open] .xs-inner-wrapper > .social-icons {
    animation-delay: 160ms;
  }
}

@keyframes menu-reveal {
  from {
    opacity: 0;
    translate: 0 8px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu-2[data-nav-menu-open] .xs-inner-wrapper > .nav-link,
  .nav-menu-2[data-nav-menu-open] .xs-inner-wrapper > .social-icons {
    animation: none;
  }
}
