/* Site header. Scoped to #nav (not the bare `nav` element) so other <nav> elements on a page
   never inherit its fixed positioning. */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 40px;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity 0.8s var(--ease) 0.2s,
    transform 0.8s var(--ease) 0.2s;
}

#nav.in {
  opacity: 1;
  transform: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .mark {
  width: 34px;
  height: 34px;
}

.brand .t1 {
  text-transform: uppercase;
  font-family: var(--ui);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.brand .t2 {
  opacity: 0.85;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent-pale);
}

.pill {
  justify-self: center;
  display: flex;
  gap: 2px;
  padding: 6px;
  border-radius: 100px;
  background: var(--w05);
  border: 1px solid var(--w10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 0.6s var(--ease),
    background 0.6s;
}

.pill a {
  padding: 10px 18px;
  border-radius: 100px;
  text-transform: uppercase;
  transition:
    color 0.4s,
    background 0.4s;
  color: rgba(242, 239, 233, 0.82);
  font-family: var(--ui);
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 12.5px;
}

.pill a:hover,
.pill a.active {
  color: #fff;
  background: var(--w10);
}

.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.psit-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  color: var(--text-2);
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.psit-nav img {
  height: 30px;
  width: auto;
  opacity: 0.9;
}

.psit-nav span {
  line-height: 1.5;
  text-align: right;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 22px;
  border-radius: 100px;
  border: 1px solid var(--w18);
  background: rgba(5, 5, 5, 0.3);
  backdrop-filter: blur(18px);
  transition:
    border-color 0.4s,
    transform 0.5s var(--ease);
  font-family: var(--ui);
  text-transform: none;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.nav-cta i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #050505;
  transition: transform 0.5s var(--ease);
}

.nav-cta:hover {
  border-color: var(--accent-50);
  transform: translateY(-2px);
}

.nav-cta:hover i {
  transform: rotate(45deg);
  background: var(--accent);
}

@media (max-width: 900px) {
  .psit-nav span,
  .pill {
    display: none;
  }

  #nav {
    padding: 14px 18px;
    grid-template-columns: 1fr auto;
  }

  .brand .mark {
    width: 30px;
    height: 30px;
  }

  .brand .t1 {
    font-size: 12px;
  }

  .brand .t2 {
    font-size: 9px;
  }

  .nav-right {
    gap: 12px;
  }

  .psit-nav img {
    height: 26px;
  }

  .nav-cta {
    padding: 5px 5px 5px 16px;
    font-size: 12px;
  }

  .nav-cta i {
    width: 28px;
    height: 28px;
  }

  .nav-right .nav-cta {
    display: none;
  }
}

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