/* Compact navigation using the homepage's type, colour and spacing. */
#nav .mobile-menu-toggle { display:none; }
@media (min-width:700px) { #site .home-mobile-menu { display:none; } }
@media (max-width: 699px) {
  /* The locked page retains its native scrollbar gutter below the header. */
  #site.mobile-menu-open::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 72px;
    background: #18191b;
    z-index: 98;
    pointer-events: none;
  }
  #site.mobile-menu-open #nav { width: 100vw; background: #18191b; }

  #nav .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 78px;
    min-height: 44px;
    gap: 12px;
    padding: 8px 0 8px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #eceae3;
    font: 500 13px/1 'Hanken Grotesk', sans-serif;
    letter-spacing: 0;
  }

  #nav .mobile-menu-toggle span {
    width: 20px;
    font-size: 25px;
    font-weight: 300;
    line-height: 20px;
    text-align: center;
    transform: none;
    transition: rotate 180ms ease;
  }

  #nav .mobile-menu-toggle[aria-expanded='true'] span { rotate: 45deg; }

  #site .home-mobile-menu {
    position: absolute;
    z-index: 99;
    inset: 72px 0 0;
    display: block;
    padding: 27px 24px max(25px, env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior: contain;
    background: #18191b;
    color: #eceae3;
    font-family: 'Hanken Grotesk', sans-serif;
    -webkit-overflow-scrolling: touch;
  }

  #site .home-mobile-menu[hidden] { display: none; }

  .mobile-menu-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 712px;
    min-height: 100%;
    margin-inline: auto;
  }

  .home-mobile-menu .mobile-menu-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: #9e9e96;
    font: 10px/1.4 'JetBrains Mono', monospace;
    letter-spacing: .07em;
    text-transform: uppercase;
  }

  .mobile-menu-eyebrow::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fe5b2a;
  }

  .home-mobile-menu a { text-decoration: none; }

  .home-mobile-menu .mobile-menu-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 55px;
    padding: 12px 0;
    color: #eceae3;
    font-size: 27px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.035em;
  }

  .mobile-menu-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
  }

  .mobile-menu-arrow svg { display: block; width: 20px; height: 20px; }
  .mobile-menu-section .mobile-menu-arrow { color: #82847c; }

  .mobile-menu-industry-links {
    display: grid;
    gap: 1px;
    margin: 5px 0 22px 1px;
    padding-left: 17px;
    border-left: 1px solid #fe5b2a66;
  }

  .mobile-menu-industry-links a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 63px;
    padding: 9px 0;
    color: #eceae3;
  }

  .mobile-menu-industry-links strong {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -.015em;
  }

  .mobile-menu-industry-links a > span {
    color: #95978f;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
  }

  .mobile-menu-primary { border-top: 1px solid #eceae31f; }
  .mobile-menu-primary .mobile-menu-section {
    min-height: 64px;
    border-bottom: 1px solid #eceae31f;
  }

  .mobile-menu-footer { margin-top: auto; padding-top: 30px; }
  .mobile-menu-footer p {
    margin: 0 0 12px;
    color: #95978f;
    font-size: 13px;
    line-height: 1.5;
  }

  .home-mobile-menu .mobile-menu-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    padding: 14px 17px;
    border: 1px solid #fe5b2a;
    border-radius: 2px;
    background: #fe5b2a;
    color: #18191b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.01em;
  }

  .home-mobile-menu a:focus-visible,
  #nav .mobile-menu-toggle:focus-visible {
    outline: 2px solid #fe5b2a;
    outline-offset: 5px;
  }
  .home-mobile-menu .mobile-menu-contact:focus-visible { outline-color: #eceae3; }
  .mobile-menu-section:hover,
  .mobile-menu-industry-links a:hover strong { color: #fe5b2a; }
  .home-mobile-menu .mobile-menu-contact:hover { background: #ff7249; }
}

@media (max-width: 699px) and (max-height: 740px) {
  #site .home-mobile-menu { padding-top: 20px; padding-bottom: 20px; }
  .home-mobile-menu .mobile-menu-eyebrow { margin-bottom: 14px; }
  .home-mobile-menu .mobile-menu-section { min-height: 50px; font-size: 25px; }
  .mobile-menu-industry-links { margin-bottom: 18px; }
  .mobile-menu-industry-links a { min-height: 55px; }
  .mobile-menu-primary .mobile-menu-section { min-height: 56px; }
  .mobile-menu-footer { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  #nav .mobile-menu-toggle span { transition: none; }
}
