body.nav-open {
  overflow: hidden;
}

.site-header .brand {
  position: relative;
  z-index: 2;
}

.site-header nav {
  gap: clamp(14px, 1.55vw, 26px);
  font-size: 14px;
  font-weight: 500;
}

.site-header nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s var(--ease);
}

.site-header nav a:hover {
  color: #fff;
}

.site-header nav a:hover:after,
.site-header nav a.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 2px;
  background: var(--coral);
}

.site-header nav a.active {
  color: #fff;
}

.site-header.open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.48);
  backdrop-filter: blur(8px);
  z-index: 0;
}

@media (max-width: 1120px) {
  .site-header nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: block;
    position: relative;
    z-index: 2;
  }

  .site-header.open nav {
    display: flex;
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: auto;
    width: min(360px, 100%);
    background: var(--ink);
    padding: var(--space-lg);
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 2;
    box-shadow: -16px 24px 48px rgba(0, 0, 0, 0.28);
    animation: nav-slide 0.28s var(--ease);
  }

  .site-header.open .header-cta {
    display: none;
  }

  .site-header.open nav a {
    min-height: 44px;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
  }

  .site-header.open nav a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .site-header.open nav a:hover:after,
  .site-header.open nav a.active:after {
    display: none;
  }
}

@keyframes nav-slide {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header.open nav {
    animation: none;
  }
}
