/* Shared site header — keep in sync with homepage; edit partials/topbar.template.html + run npm run sync:header */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
}

.topbar.scrolled {
  position: fixed;
  background: rgba(17, 19, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.topbar,
.topbar.scrolled {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand img {
  /* width: 41px; */
  height: 42px;
  display: block;
}

.menu {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 0.93rem;
}

.menu a {
  transition: color 0.2s;
}

.menu a:hover {
  color: var(--text);
}

/* Subpages: absolute nav sits over content */
body.site-page .project-header {
  padding-top: 88px;
}

@media (max-width: 600px) {
  .menu {
    display: none;
  }
}

/* Project pages: keep gallery placeholders off until ready ([hidden] vs display:grid) */
.project-gallery[hidden] {
  display: none !important;
}
