.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--black);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 400ms ease, color 400ms ease, opacity 900ms ease;
  view-transition-name: site-header;
}

.site-header.is-over-dark {
  color: var(--offwhite);
}

.site-header.is-scrolled {
  background-color: var(--offwhite);
  color: var(--black);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-open {
  background-color: transparent;
  color: var(--offwhite);
}

.is-intro .site-header {
  opacity: 0;
}

.is-intro-flying .site-header {
  opacity: 1;
  transition-delay: 0ms, 0ms, 0ms, 1300ms;
}

/* ============================================ */
/* BAR */
/* ============================================ */

.site-header__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 64px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .site-header__bar {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .site-header__bar {
    height: 84px;
    padding-left: 40px;
    padding-right: 40px;
  }
}

.site-header__logo {
  display: block;
  flex-shrink: 0;
}

.site-header__logo img {
  display: block;
  width: auto;
  height: 24px;
  transition: filter 400ms ease;
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .site-header__logo img {
    height: 28px;
  }
}

.site-header.is-over-dark .site-header__logo img {
  filter: brightness(0) invert(1);
}

.site-header.is-scrolled .site-header__logo img {
  filter: none;
}

.site-header.is-open .site-header__logo img {
  filter: brightness(0) invert(1);
}

/* ============================================ */
/* NAVIGATION */
/* ============================================ */

.site-header__nav {
  display: none;
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .site-header__nav {
    display: block;
    margin-left: auto;
  }
}

.site-header__nav ul {
  display: flex;
  gap: 2.25rem;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.site-header__nav a {
  position: relative;
  display: block;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 15px;
  font-weight: 450;
  line-height: 1;
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 300ms ease;
}

.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] {
  opacity: 1;
}

.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background-color: currentColor;
  transform: scale(0);
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-header__nav a[aria-current="page"]::after {
  transform: scale(1);
}

.site-header__action {
  display: none;
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .site-header__action {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background-color 400ms ease, color 400ms ease;
  }
}

.site-header__action:hover {
  background-color: var(--black);
  color: var(--offwhite);
}

.site-header.is-over-dark .site-header__action:hover {
  background-color: var(--offwhite);
  color: var(--black);
}

.site-header.is-scrolled .site-header__action:hover {
  background-color: var(--black);
  color: var(--offwhite);
}

/* ============================================ */
/* MENU TOGGLE */
/* ============================================ */

.site-header__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding-left: 0;
  padding-right: 0;
  border: 0;
  background-color: transparent;
  color: inherit;
  font-family: var(--body-font-family);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .site-header__toggle {
    display: none;
  }
}

.site-header__toggle-icon {
  position: relative;
  width: 22px;
  height: 8px;
}

.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background-color: currentColor;
  transition: transform 500ms cubic-bezier(0.65, 0, 0.35, 1), top 500ms cubic-bezier(0.65, 0, 0.35, 1);
}

.site-header__toggle-icon::before {
  top: 0;
}

.site-header__toggle-icon::after {
  top: 6.5px;
}

.site-header.is-open .site-header__toggle-icon::before {
  top: 3.25px;
  transform: rotate(45deg);
}

.site-header.is-open .site-header__toggle-icon::after {
  top: 3.25px;
  transform: rotate(-45deg);
}

/* ============================================ */
/* FULL-SCREEN MENU */
/* ============================================ */

.site-header__menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 112px;
  padding-bottom: 2.5rem;
  padding-left: 20px;
  padding-right: 20px;
  overflow-y: auto;
  background-color: var(--night);
  color: var(--offwhite);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 700ms cubic-bezier(0.76, 0, 0.24, 1);
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .site-header__menu {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.site-header__menu.is-active {
  clip-path: inset(0 0 0 0);
}

/* Closed means gone: out of the layout, the tab order and the accessibility tree */
.site-header__menu[hidden] {
  display: none;
}

.site-header__menu-nav ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.site-header__menu-nav li {
  overflow: hidden;
}

.site-header__menu-nav a {
  display: block;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  font-size: 44px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-decoration: none;
  transform: translateY(110%);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--item) * 50ms + 200ms);
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .site-header__menu-nav a {
    font-size: 64px;
  }
}

/* Tablet Landscape Only - 900px to 1199px */
@media (min-width: 900px) and (max-width: 1199px) {
  .site-header__menu-nav a {
    /* Landscape tablets are short: seven links and the button fit 768px with room for browser bars */
    font-size: 52px;
  }
}

.site-header__menu.is-active .site-header__menu-nav a {
  transform: translateY(0);
}

/* Become a customer, then the way in for existing customers (Dynalink) */
.site-header__menu-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 2.5rem;
}
