/* Case-study back-bar and the shared pill button. */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.875rem, 2vw, 1.25rem) var(--gutter);
  background: rgba(13, 12, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--border);
}

.nav__back {
  color: var(--text-3);
  font-size: var(--fs-sm);
  font-weight: 500;
}

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

.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.btn-pill {
  display: inline-block;
  background: #fff;
  color: var(--bg);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-pill:hover {
  background: #e8e8e8;
  color: var(--bg);
  transform: translateY(-1px);
}
