/* HUMANS PROJECT — V43 fixed header
   Fixed navigation over the hero, then white once the page starts scrolling. */

.site-header {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  height: clamp(74px, 8svh, 92px);
  min-height: 0;
  padding: 0 3.2vw;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
  color: #fff;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    height .35s var(--ease-out),
    background-color .35s var(--ease-out),
    color .35s var(--ease-out),
    border-color .35s var(--ease-out),
    box-shadow .35s var(--ease-out),
    backdrop-filter .35s var(--ease-out);
}

.site-header__brand {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  align-self: center;
  color: currentColor;
  margin: 0;
}

.site-header__brand:hover {
  transform: translateX(2px);
}

.site-header__nav {
  justify-self: end;
  width: auto;
  max-width: none;
  margin: 0 1.1vw 0 0;
  transform: translateX(1.6vw);
  gap: clamp(34px, 3.4vw, 64px);
  color: currentColor;
}

.site-header__nav a {
  color: currentColor;
}

.site-header.site-header--fixed {
  height: clamp(66px, 6.8svh, 78px);
  color: #111;
  background: rgba(255, 255, 255, .0);
  border-bottom-color: rgba(17, 17, 17, .08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

@media (min-width: 1280px) {
  .site-header__nav {
    width: auto;
    max-width: none;
    margin-right: .6vw;
    transform: translateX(2.2vw);
  }
}

@media (max-width: 1279px) {
  .site-header {
    padding: 0 24px;
  }

  .site-header__nav {
    width: auto;
    margin: 0;
    transform: translateX(6px);
    gap: 26px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-header.site-header--fixed {
    height: 66px;
    padding: 0 18px;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .site-header__brand {
    position: static;
    top: auto;
    left: auto;
    font-size: 14px;
  }

  .site-header__nav {
    justify-self: stretch;
    width: auto;
    min-width: 0;
    margin-left: 18px;
    transform: none;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding: 8px 0;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}
