@media (max-width: 800px) {
  html body nav {
    min-height: 75px;
    height: 75px;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 16px;
  }

  html body nav .brand img { width: 132px; }

  html body nav .menu-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: grid !important;
    place-items: center;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    cursor: pointer;
  }

  html body nav .menu-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }

  html body nav .menu-toggle span,
  html body nav .menu-toggle span::before,
  html body nav .menu-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0;
    background: currentColor;
    transition: transform .25s ease, background .25s ease;
  }

  html body nav .menu-toggle span { position: relative; }
  html body nav .menu-toggle span::before,
  html body nav .menu-toggle span::after {
    content: "";
    position: absolute;
    inset: 0;
    transform-origin: center;
  }
  html body nav .menu-toggle span::before { transform: translateY(-5px); }
  html body nav .menu-toggle span::after { transform: translateY(5px); }
  html body nav.open .menu-toggle span { background: transparent; }
  html body nav.open .menu-toggle span::before { transform: rotate(45deg); }
  html body nav.open .menu-toggle span::after { transform: rotate(-45deg); }

  html body nav .nav-links {
    display: flex !important;
    position: absolute;
    top: 100% !important;
    left: 16px !important;
    right: 16px !important;
    /* Reset desktop grid centering, including the about page's nav overrides. */
    justify-self: stretch !important;
    box-sizing: border-box;
    width: calc(100% - 32px) !important;
    min-width: 0;
    max-width: none !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(7,8,12,.94) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-14px) scale(.98);
    transform-origin: top center;
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
    /* Keep the panel visible until the reverse transition has finished. */
    transition: opacity .3s ease,
                transform .42s cubic-bezier(.22,1,.36,1),
                clip-path .42s cubic-bezier(.22,1,.36,1),
                visibility 0s linear .42s;
  }

  html body nav.open .nav-links {
    visibility: visible;
    opacity: 1;
    transform: none;
    clip-path: inset(0);
    pointer-events: auto;
    transition-delay: 0s;
  }

  html body nav .nav-links a {
    width: 100%;
    padding: 15px 14px;
    color: #c9cbd4;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .28s ease, transform .42s cubic-bezier(.22,1,.36,1);
  }
  html body nav .nav-links a + a { border-top: 1px solid rgba(255,255,255,.12); }
  html body nav .nav-links a:hover { color: #fff; }
  html body nav.open .nav-links a { opacity: 1; transform: none; }
  html body nav.open .nav-links a:nth-child(1) { transition-delay: .06s; }
  html body nav.open .nav-links a:nth-child(2) { transition-delay: .10s; }
  html body nav.open .nav-links a:nth-child(3) { transition-delay: .14s; }
  html body nav.open .nav-links a:nth-child(4) { transition-delay: .18s; }
  html body nav.open .nav-links a:nth-child(5) { transition-delay: .22s; }
}

@media (prefers-reduced-motion: reduce) {
  html body nav .nav-links,
  html body nav .nav-links a { transition-duration: 0s; transition-delay: 0s; }
}
