.topbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  z-index: 4;
  width: min(calc(100% - 2rem), 72rem);
  transform: translateX(-50%) translateY(-140%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.95rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: blur(0px) saturate(1);
  box-shadow: none;
  opacity: 0;
  animation: navDrop 0.7s var(--timing-smooth) forwards var(--nav-delay);
}

.nav {
  display: contents;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.45rem;
  justify-self: end;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  height: 3rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.nav-left {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand img {
  width: 6.1rem;
  max-width: 34vw;
  height: auto;
  display: block;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.nav-links a {
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(13, 20, 21, 0.62);
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.92);
  color: rgba(13, 20, 21, 0.84);
  transform: none;
}

.nav-cta {
  border: 0;
  border-radius: 8px;
  padding: 0 0.95rem;
  color: #ffffff;
  background: #000000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 220ms var(--timing-smooth), background-color 220ms var(--timing-smooth);
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  transform: translateY(100%);
  transition: transform 320ms var(--timing-smooth);
  z-index: 0;
}

.nav-cta span {
  position: relative;
  z-index: 1;
}

.nav-cta:hover {
  color: #000000;
  background: #ffffff;
  transition-delay: 90ms;
}

.nav-cta:hover::after {
  transform: translateY(0);
}
