/* ============================================================
   THE SIGNAL — nav (partials/nav.html)
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand .mark {
  width: 26px; height: 26px;
  flex: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex: none;
}

.brand-logo-full {
  width: 52px;
  height: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink);
  opacity: .78;
  transition: opacity .2s;
}

.nav-links a.btn.btn-cta.nav-menu-cta {
  color: var(--cta-ink);
}
.nav-links a:hover { opacity: 1; }
.nav-links a.is-active { opacity: 1; font-weight: 600; }
.nav-links .nav-menu-cta { opacity: 1; }

/* hamburger (mobile only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -22px rgba(21, 20, 15, .25);
  }
  .nav.open .nav-links { display: flex; }

  .nav-links a {
    opacity: 1;
    padding: 15px 2px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links .nav-menu-cta {
    margin-top: 18px;
    padding: 14px 22px;
    justify-content: center;
    text-align: center;
    border-bottom: none;
    font-size: 15px;
  }
}
