/* Navigatie en mobiel menu */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 70;
  transition:
    background 0.3s,
    border-color 0.3s;
  border-bottom: 1px solid transparent;
}
header.solid {
  background: rgba(7, 9, 11, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--edge);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}
.links {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--edge);
}
.links a {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition:
    color 0.2s,
    background 0.2s;
}
.links a:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}
.nav .btn {
  padding: 11px 18px;
  font-size: 0.92rem;
}
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--edge-2);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--fg);
  position: relative;
  transition:
    transform 0.25s,
    background 0.25s;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger span::before {
  top: -6px;
}
.burger span::after {
  top: 6px;
}
.burger[aria-expanded="true"] span {
  background: transparent;
}
.burger[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}
.burger[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}
.sheet {
  display: none;
}

@media (max-width: 980px) {
  .links,
  .nav .btn {
    display: none;
  }
  .burger {
    display: inline-flex;
  }
  .sheet {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .sheet.open {
    max-height: 440px;
  }
  .sheet a {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    text-decoration: none;
    padding-block: 10px;
    border-top: 1px solid var(--edge);
  }
  .sheet .btn {
    font-size: 1rem;
    letter-spacing: 0;
    margin-block: 14px 22px;
    align-self: flex-start;
    border: 0;
  }
  header.open {
    background: rgba(7, 9, 11, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}
