/* Project navigation shares the existing header glass and content bounds. */
header > .brand { flex-shrink: 0; }
header .project-navigation {
  position: relative;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 16px;
}
.project-navigation ul { list-style: none; padding: 0; margin: 0; }
.project-navigation li { margin: 0; }
.project-navigation .project-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-inline: auto;
}
.project-navigation a,
.project-navigation summary { white-space: nowrap; }
.project-navigation a[data-project] {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  font-size: .9375rem;
}
.project-navigation a[data-project]::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity .18s ease;
}
.project-navigation a[data-project][aria-current]::after { opacity: .8; }
.project-navigation .nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 104px;
  padding: 10px 22px;
  border: 1px solid #ffffffb8;
  border-radius: 16px;
  background: var(--ink);
  color: #0b2532;
  font-size: .9375rem;
  font-weight: 500;
  text-shadow: none;
}
.project-navigation .nav-contact:hover { background: #fff; text-decoration: none; }
.project-navigation .project-menu { display: none; }
.project-navigation summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 14px;
  font-size: .9375rem;
  list-style: none;
}
.project-navigation summary::-webkit-details-marker { display: none; }
.project-navigation summary:hover { background: #ffffff18; }
.project-navigation summary svg { width: 14px; height: 14px; transition: transform .18s ease; }
.project-navigation details[open] summary svg { transform: rotate(180deg); }
.project-navigation .project-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 20px);
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100svh - 128px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: linear-gradient(#081119eb, #081119eb) padding-box,
    linear-gradient(135deg, #ffffff9c, #ffffff25 48%, #8d9ca94d) border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px #0005;
}
.project-menu-list a[data-project] { min-height: 48px; border-radius: 12px; }
footer .footer-links { margin-bottom: 12px; }
footer .footer-links a { display: inline-flex; align-items: center; padding: 8px 0; }
@media (max-width: 1179px) {
  header .project-navigation { justify-content: flex-end; gap: 12px; }
  .project-navigation .project-links { display: none; }
  .project-navigation .project-menu { display: block; }
}
@media (max-width: 600px) {
  header .project-navigation { gap: 6px; }
  .project-navigation summary { padding: 10px 8px; gap: 5px; font-size: .8125rem; }
  .project-navigation .nav-contact { min-width: 76px; padding: 10px 12px; font-size: .8125rem; border-radius: 14px; }
  .project-navigation .project-menu-list { top: calc(100% + 18px); }
}
@media (prefers-reduced-motion: reduce) {
  .project-navigation a[data-project]::after,
  .project-navigation summary svg { transition: none; }
}
