/* The mobile menu keeps the reference header alignment and unframed layout. */
.hx-menu {
  padding: 152px 16px 32px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: hx-mobile-menu-in .45s cubic-bezier(.22, 1, .36, 1) both;
}
.hx-menu::backdrop { animation: hx-mobile-backdrop-in .3s ease both; }
.hx-menu-header {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.hx-menu-identity {
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
  text-decoration: none;
}
.hx-menu .hx-menu-close {
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
}
.hx-menu nav a {
  display: block;
  min-height: 44px;
  font-size: 56px;
  line-height: 1.1;
  animation: hx-mobile-link-in .6s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--word) * .055s);
}
.hx-menu[data-exiting='true'] { animation: hx-mobile-menu-out .24s ease both; }
.hx-menu[data-exiting='true']::backdrop { animation: hx-mobile-backdrop-out .24s ease both; }
.hx-menu-identity:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
@keyframes hx-mobile-menu-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hx-mobile-menu-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}
@keyframes hx-mobile-link-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hx-mobile-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hx-mobile-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
.hx-motion-off .hx-menu,
.hx-motion-off .hx-menu::backdrop,
.hx-motion-off .hx-menu nav a { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hx-menu, .hx-menu::backdrop, .hx-menu nav a { animation: none !important; }
}
