.projects-list {
  &__featured-list {
    opacity: 0;
    transform: translateY(20px);
    transition: all 300ms ease-out;

    &.js-show {
      opacity: 1;
      transform: translateY(0);
    }
  }

  &__overlay-open {
    position: absolute;
    top: 10px;
    font-weight: 700;
    left: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease-out;

    .js-overlay-closed & {
      opacity: 1;
      pointer-events: all;
    }
  }

  &__overlay {
    position: absolute;
    top: 50vh;
    left: 80px;
    width: 500px;
    height: 750px;
    background-color: $white-overlay;
    padding: 0 50px;
    z-index: 0;
    opacity: 0;
    transition: transform 800ms ease-in, opacity 800ms ease-in,
      top 300ms ease-out, height 300ms ease-out;
    transform: translateY(-200%);

    .js-clear-header & {
      opacity: 1;
      transform: translateY(0);
    }

    .js-overlay-closed & {
      top: calc(100vh - 40px);
      height: 40px;
    }

    .js-filter-open & {
      height: 0;
      opacity: 0;
      pointer-events: none;
      transition: transform 800ms ease-in, opacity 300ms ease-in,
        top 300ms ease-out, height 300ms ease-out;
    }

    @include sm {
      width: 100%;
      height: 600px;
      left: 0;
      top: 55vh;
    }

    &-toggle {
      position: absolute;
      top: 15px;
      right: 15px;
      display: block;
      width: 22px;
      height: 22px;

      &:after {
        content: " ";
        position: absolute;
        top: 2px;
        left: 5px;
        width: 12px;
        height: 12px;
        display: block;
        border-right: 3px solid $primary-color;
        border-top: 3px solid $primary-color;
        border-radius: 2px;
        transform: rotate(135deg);
        transition: transform 0.25s ease-out;

        .js-overlay-closed & {
          transform: rotate(-45deg);
        }
      }
    }
  }

  &__overlay-container {
    position: relative;
    top: -85px;
    transition: all 0.3s ease-out;

    @include sm {
      top: -60px;
    }

    @include xs {
      top: -40px;
    }

    .js-overlay-closed & {
      transform: translateY(150px);
      opacity: 0;
      pointer-events: none;
    }
  }

  &__overlay-pretitle {
    font-weight: 600;
    max-width: 600px;
    margin: 0;
    font-size: 145px;
    line-height: 126px;
    color: $primary-color;
    opacity: 0;
    transition: opacity 300ms ease-in 800ms;

    .js-clear-header & {
      opacity: 1;
    }

    @include sm {
      font-size: 140px;
      line-height: 100px;
      text-align: center;
      max-width: unset;
    }

    @include xs {
      font-size: 100px;
      line-height: 60px;
    }
  }

  &__overlay-title {
    font-weight: 600;
    max-width: 600px;
    margin-bottom: 0;
    margin-top: 15px;
    font-size: 40px;
    line-height: 40px;
    opacity: 0;
    color: $primary-color;
    transition: opacity 300ms ease-in 1000ms;

    .js-clear-header & {
      opacity: 1;
    }

    @include sm {
      font-size: 30px;
      line-height: 30px;
    }
  }

  &__overlay-subtitle {
    color: $primary-color;
    font-weight: 500;
    max-width: 350px;
    font-size: 18px;
    line-height: 27px;
    opacity: 0;
    transition: opacity 300ms ease-in 1200ms;

    .js-clear-header & {
      opacity: 1;
    }

  }

  &__button-filter {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 4px;
    border: 1px solid $primary-color;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    opacity: 0;
    cursor: pointer;
    transition: opacity 300ms ease-in 1400ms, background 250ms ease-out;

    @include sm {
      display: none;
    }

    &.js-box-hover {
      background-color: $primary-color;

      .projects-list__filter-message {
        color: $white;
      }
    }

    .js-clear-header & {
      opacity: 1;

      @include sm {
        opacity: 0;
      }
    }
  }

  &__search-icon {
    width: 22px;
    height: 22px;
    pointer-events: none;

    svg path {
      fill: $primary-color;
      transition: 0.2s fill;
    }

    .js-box-hover & {
      svg path {
        fill: $white;
      }
    }
  }

  &__filter-message {
    pointer-events: none;
    color: $primary-color;
    font-size: 18px;
    line-height: 18px;
    font-weight: 700;
    transition: 0.2s color;
    margin-left: 10px;
  }

  &__background {
    background-color: $background-blue;
    position: absolute;
    width: 100%;
    height: 700px;
    top: 0;
    left: 0;
    z-index: -2;

    @include sm {
      height: 50%;
    }
  }

  &__results {
    display: none;
    margin-bottom: 80px;
  }

  .js-show-results {
    .projects-list__results {
      display: block;
    }

    .projects-list__featured-list {
      display: none;
    }

    &.js-empty-results {
      .projects-list__featured-list {
        display: block;
      }
    }
  }

  &__no-results {
    max-width: 800px;
    margin: auto;
    text-align: center;
    color: $primary-color;
    padding: 0 $gutter;
    display: none;
    font-size: 1.8rem;

    span {
      font-size: 2.2rem;
      font-weight: 700;
    }

    .js-empty-results & {
      display: block;
    }

    a {
      color: $primary-color;
    }
  }
}
