.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--muted);
  background: rgba(8, 8, 8, .78);
  color: var(--neon);
  cursor: pointer;
  position: relative;
  z-index: 710;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:focus-visible,
nav ul.nav-links a:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.mobile-menu-toggle span,
.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
  position: absolute;
  transition: transform .22s ease, opacity .22s ease;
}

.mobile-menu-toggle::before { transform: translateY(-7px); }
.mobile-menu-toggle::after { transform: translateY(7px); }

@media (max-width: 900px) {
  body.nav-open { overflow: hidden; }

  nav {
    padding: 1rem 1.25rem !important;
  }

  nav .mobile-menu-toggle {
    display: flex;
  }

  nav ul.nav-links {
    display: flex !important;
    position: fixed;
    top: 72px;
    left: 1rem;
    right: 1rem;
    z-index: 700;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .6rem;
    background: rgba(8, 8, 8, .97);
    border: 1px solid var(--muted);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease;
    max-height: calc(100vh - 92px);
    overflow: auto;
  }

  body.nav-open nav ul.nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  nav ul.nav-links li {
    width: 100%;
  }

  nav ul.nav-links a {
    display: flex;
    min-height: 50px;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: .86rem;
    letter-spacing: .12em;
    touch-action: manipulation;
  }

  nav ul.nav-links li:last-child a {
    border-bottom: 0;
  }

  nav ul.nav-links .nav-cta {
    min-height: 52px;
    justify-content: center;
    margin-top: .45rem;
    background: var(--neon);
    border-color: var(--neon);
    color: var(--black) !important;
  }

  body.nav-open .mobile-menu-toggle span {
    opacity: 0;
  }

  body.nav-open .mobile-menu-toggle::before {
    transform: rotate(45deg);
  }

  body.nav-open .mobile-menu-toggle::after {
    transform: rotate(-45deg);
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem 1rem;
  }

  .footer-links a,
  .fr a,
  .ci-value a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    touch-action: manipulation;
  }
}

@media (max-width: 420px) {
  nav {
    padding: .9rem 1rem !important;
  }

  nav ul.nav-links {
    top: 68px;
    left: .75rem;
    right: .75rem;
  }
}
