/* Shared primary nav for pages that don't carry the home page's inline styles.
   Mirrors the .site-nav block in /index.html — keep the two in sync. Every rule
   is scoped under .site-nav so it can't collide with page-level classes. */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  box-sizing: border-box;
}
/* The frosted background lives on ::before. backdrop-filter on .site-nav itself
   would make the nav the containing block for the fixed mobile drawer, which
   then collapses to 48px and widens the page while closed. */
.site-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 12, 16, 0.78);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.site-nav *, .site-nav *::before, .site-nav *::after { box-sizing: border-box; margin: 0; }
.site-nav .site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.site-nav .brand img { width: 34px; height: 34px; }

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav .nav-links a {
  color: rgba(232, 230, 227, 0.62);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.site-nav .nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.site-nav .nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}
.site-nav .nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #e8e6e3;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.site-nav .nav-toggle span + span { margin-top: 6px; }
.site-nav .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-nav .nav-toggle.active span:nth-child(2) { opacity: 0; }
.site-nav .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 680px) {
  .site-nav .nav-toggle { display: block; }
  .site-nav .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    background: #0a0c10;
    padding: 1.5rem;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .site-nav .nav-links.open { transform: translateX(0); }
  .site-nav .nav-links a {
    font-size: 1.1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
  }
  .site-nav .nav-links a:hover { background: rgba(255, 255, 255, 0.08); }
}
