/* Kept outside the scaled page canvas so the drawer fills the viewport. */
.mobile-menu {
  position: fixed; inset: 0; width: 100%; max-width: none;
  height: 100%; height: 100dvh; max-height: none; margin: 0; border: 0;
  padding: max(40px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.04)), rgba(8,21,56,.18);
  color: var(--white); text-shadow: 0 1px 12px rgba(8,21,56,.3);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), inset 0 1px 0 rgba(255,255,255,.45);
}
.mobile-menu::backdrop { background: transparent; }
.mobile-menu[open] { display: flex; flex-direction: column; animation: mobile-menu-enter 320ms var(--ease-out) both; }
.mobile-menu[open].is-closing { animation: mobile-menu-leave 240ms var(--ease) both; }
.mobile-menu__header { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 20px; flex: none; }
.mobile-menu__icon {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.36); border-radius: 50%; background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.mobile-menu__logo { justify-self: center; max-width: 174px; width: 100%; }
.mobile-menu__logo img { width: 100%; height: auto; }
.mobile-menu__navigation { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: auto 0; padding: 48px 8px; }
.mobile-menu__navigation a {
  display: block; max-width: 100%; min-height: 48px; padding: 12px 0;
  font-size: clamp(28px, 6vw, 44px); line-height: 1.2; font-weight: 500;
  overflow-wrap: anywhere; transition: color 180ms ease, translate 180ms ease;
}
.mobile-menu__navigation a:hover { translate: 6px 0; }
.mobile-menu__navigation a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.mobile-menu a:focus-visible, .mobile-menu button:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
body:has(.nav-m--dark) .mobile-menu {
  background: linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,.06)), rgba(255,255,255,.12);
  color: var(--navy); text-shadow: none;
}
body:has(.nav-m--dark) .mobile-menu__icon { border-color: rgba(8,21,56,.2); }
body:has(.nav-m--dark) .mobile-menu__logo img,
body:has(.nav-m--dark) .mobile-menu__contact img { filter: brightness(0); }
html.mobile-menu-open, html.mobile-menu-open body { overflow: hidden; }
@keyframes mobile-menu-enter { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes mobile-menu-leave { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (min-width: 900px) { .mobile-menu[open] { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu[open], .mobile-menu[open].is-closing { animation: none; }
  .mobile-menu__navigation a { transition: none; }
}
