nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  padding: 22px clamp(16px, 4vw, 48px);
  box-sizing: border-box;
}

nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 8, 15, 0.5) 0%, transparent 100%);
  pointer-events: none;
}

.navlinks {
    grid-column: 2;
    justify-self: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--textmuted);
    white-space: nowrap;
}

.navlinks a {
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

.navlinks a:hover,
.navlinks a:focus-visible {
    color: var(--textprimary);
}

.navlinks a.active {
    color: var(--textprimary);
}

.navunderline {
    position: absolute;
    bottom: -4px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0;
    transition:
        left 0.25s ease,
        width 0.25s ease,
        opacity 0.2s ease;
}

@media (max-width: 760px) {
    .navlinks {
        display: none;
    }
}
