/* ================================
   Header
   ================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 301;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px 20px 0 20px;
  background: var(--gray);
  transition: background-color 0.25s ease;
}

.header.header--over-about {
  background-color: transparent;
}

a.header__logo-home {
  display: inline-flex;
  line-height: 0;
  color: inherit;
  text-decoration: none;
}

.header__logo {
  --fill-0: black;
  height: 20px;
  width: auto;
}

.header__subtitle { display: none; }

#logo-wrap {
  position: sticky;
  top: 0;
  z-index: 0;
  padding: 44px 20px 50px;
}

#logo-link {
  max-width: 1850px;
  width: 100%;
}

.header__cta,
.contact__submit {
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  padding-bottom: 2px;
  border: none;
  background: transparent;
}

.contact__submit {
  align-self: flex-start;
  cursor: pointer;
  font-family: var(--font);
}

.header__cta::after,
.contact__submit::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--orange);
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

.header__cta:hover::after,
.contact__submit:hover::after {
  transform: scaleX(0);
}

/* ================================
   Header desktop
   ================================ */
@media (min-width: 1024px) {
  #logo-wrap {
    display: block;
    position: fixed;
    top: 120px;
    left: max(34px, calc((100vw - 1920px) / 2 + 34px));
    width: calc(100vw - 64px);
    padding: 0;
    z-index: 100;
    mix-blend-mode: exclusion;
    pointer-events: none;
    transition: top 0.6s ease, left 0.6s ease, width 0.6s ease, opacity 0.4s ease;
  }

  #logo-wrap.is-hidden {
    opacity: 0;
  }

  #logo-float {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 192 / 26.14;
    filter: invert(1);
  }

  .header {
    height: 360px;
    background: transparent;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    pointer-events: none;
  }

.header__subtitle,
  .header__cta,
  .header__logo-home {
    pointer-events: auto;
  }

  .header__logo {
    display: none;
  }

  .header__subtitle {
    display: block;
    position: fixed;
    top: 50px;
    left: max(30px, calc((100vw - 1920px) / 2 + 30px));
    z-index: 50;
    pointer-events: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    color: var(--black);
    transition: color 0.2s ease, opacity 0.4s ease;
  }

  .header__cta {
    position: absolute;
    top: 50px;
    right: 30px;
    transition: color 0.2s ease;
  }

  .header__cta.header__text--on-dark,
  .header__subtitle.header__text--on-dark {
    color: #fff;
  }

  .header__cta.header__text--on-dark::after {
    background-color: var(--blue);
  }

  #logo-wrap.logo-wrap--on-dark #logo-float {
    filter: invert(1);
  }

  #logo-wrap.logo-wrap--footer {
    mix-blend-mode: normal;
  }

  #logo-wrap.logo-wrap--footer #logo-float {
    filter: brightness(0);
  }
}
