#navigation {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0vw;
  right: 0vw;
  z-index: 9999;
  overflow: auto;
  display: block;
  pointer-events: none;
  clip-path: polygon(0vw 0vw, 100% 0vw, 100% 0vw, 0vw 0vw);
  background-color: #fcfcfc;
  visibility: hidden;

  @media screen and (max-width: 639px) {
    clip-path: polygon(100% 0vw, 100% 0vw, 100% 100%, 100% 100%);
  }

  .site-nav__inner {
    height: auto;
    display: flex;
    flex-flow: row-reverse;
    align-items: flex-end;
    justify-content: flex-end;
    padding-top: 0vw;
    padding-bottom: 0vw;
    gap: 11.98vw;

    @media screen and (max-width: 639px) {
      min-height: 100vh;
      flex-flow: column;
      align-items: flex-start;
      justify-content: flex-start;
      padding-top: 30vw;
      padding-bottom: 20vw;
      gap: 15vw;
    }
  }

  nav {
    @media screen and (min-width: 640px) {
      max-height: calc(100vh - 5vw);
      overflow-y: auto;
      overflow-x: hidden;
      padding-top: 1.2vw;
      padding-right: 1.2vw;
      box-sizing: border-box;
    }

    @media screen and (max-width: 639px) {
      order: -1;
    }

    ul {
      display: flex;
      flex-flow: column;
      width: fit-content;
      gap: 1vw;
      list-style: none;
      margin: 0;
      padding: 0;

      @media screen and (max-width: 639px) {
        gap: 6vw;
      }

      li {
        width: fit-content;
        overflow: hidden;
        margin: 0;
        padding: 0;

        a {
          font-size: 3vw;
          font-weight: 700;
          line-height: 1;
          color: var(--color-dark);
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          text-decoration: none;
          transform: translateY(105%);

          @media screen and (max-width: 639px) {
            font-size: 9.5vw;
          }
        }
      }
    }
  }

  .site-nav__infos {
    display: flex;
    flex-flow: column;
    gap: 1vw;
    position: relative;
    width: fit-content;
    padding-top: 0.627vw;

    @media screen and (max-width: 639px) {
      gap: 10vw;
      padding-top: 5vw;
    }

  }

  .site-nav__socials {
    display: flex;
    flex-flow: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.627vw;

    @media screen and (max-width: 639px) {
      gap: 4vw;
    }
  }

  .site-nav__social-wrapper {
    overflow: hidden;

    .site-nav__social {
      transform: translateY(105%);

      > a:not(.site-nav__about-button) {
        width: 2.67vw;
        height: 2.67vw;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1;
        background-color: rgb(204, 204, 204);
        border-radius: 100%;
        text-decoration: none !important;
        transition: 0.6s cubic-bezier(0, 0, 0, 1);

        @media screen and (max-width: 639px) {
          width: 14vw;
          height: 14vw;
        }

        &::before {
          content: "";
          position: absolute;
          top: 0vw;
          left: 0vw;
          width: 100%;
          height: 100%;
          background-color: var(--color-dark);
          border-radius: 100%;
          z-index: -1;
          transform: scale(0);
          visibility: hidden;
          transition: 0.6s cubic-bezier(0, 0, 0, 1);
        }

        &:hover,
        &:focus {
          &::before {
            transform: scale(1.1);
            visibility: visible;

            @media (max-width: 639px) {
              transform: scale(0);
              visibility: hidden;
            }
          }

          svg {
            color: var(--color-white);

            @media (max-width: 639px) {
              color: var(--color-dark);
            }
          }
        }

        svg {
          color: var(--color-dark);
          transition: 0.6s cubic-bezier(0, 0, 0, 1);
        }
      }

      .site-nav__about-button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 .5vw;
        border: 5px solid var(--color-dark);
        color: var(--color-dark);
        font-size: 1.5vw;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        text-decoration: none;
        height: 2.67vw;
        box-sizing: border-box;
        transition: all 0.4s cubic-bezier(0, 0, 0.2, 1);
        white-space: nowrap;

        &:hover {
          background-color: var(--color-dark);
          color: var(--color-white);
        }

        @media screen and (max-width: 639px) {
          height: 14vw;
          font-size: 3.5vw;
          padding: 0 5vw;
          border-width: 0.5vw;
        }
      }
    }
  }

  .site-nav__contact-infos {
    display: flex;
    flex-flow: column;

    .site-nav__contact-wrapper {
      overflow: hidden;

      > div {
        transform: translateY(105%);
      }
    }

    .site-nav__contact-type {
      display: block;
      padding-top: 0.627vw;
      color: rgb(157, 157, 157);
      font-weight: 500;
      line-height: 1;
      font-size: 1vw;

      @media screen and (max-width: 639px) {
        padding-top: 5vw;
        font-size: 4vw;
      }
    }

    .site-nav__contact-value {
      color: var(--color-dark);
      line-height: 1;
      margin-top: 0.3vw;
      font-size: 1vw;

      @media screen and (max-width: 639px) {
        font-size: 4.5vw;
        line-height: 1.2;
      }

      a {
        font-weight: 500;
        color: var(--color-dark) !important;
        text-decoration: none !important;
        line-height: 1;
      }
    }
  }
}

.site-nav__container {
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  position: relative;
  max-width: calc(-1.253vw + 100vw);
  padding-left: 0.627vw;
  padding-right: 0.627vw;
  padding-block: 2.5vw;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;

  @media screen and (max-width: 639px) {
    max-width: calc(-13.333vw + 100vw);
    padding-left: 6.667vw;
    padding-right: 6.667vw;
    padding-block: 0;
    display: block;
  }
}

.site-nav__profile {
  overflow: hidden;
  width: 15vw;

  @media screen and (max-width: 639px) {
    width: 40vw;
  }
}

.site-nav__profile-container {
  width: 100%;
  height: auto;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}

.site-nav__profile-link {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1/1.15;
  text-decoration: none;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0, 0, 0.2, 1);
  }

  &:hover {
    img {
      transform: scale(1.05);
    }
  }
}

.site-nav__project-desc {
  font-size: 1vw;
  font-weight: 500;
  line-height: 1em;
  opacity: 0.8;
  margin-top: 0.333vw;

  @media screen and (max-width: 639px) {
    font-size: 4vw;
    margin-top: 2vw;
  }
}

.site-nav__link {
  position: relative;
  width: fit-content;
  display: inline-block;

  &:has(.site-nav__project-title)::before {
    display: none !important;
  }

  &::before {
    content: "";
    position: absolute;
    bottom: 0vw;
    left: auto;
    right: 0vw;
    width: 0%;
    height: 0.3vw;
    background-color: currentcolor;
    transition: 0.7s cubic-bezier(0, 0, 0.2, 1);

    @media screen and (max-width: 639px) {
      height: 2.8vw;
    }
  }

  .site-nav__contact-value &::before {
    height: 0.067vw !important;
  }

  &:hover::before,
  &:focus::before,
  &:hover .site-nav__project-title::before,
  &:focus .site-nav__project-title::before {
    right: auto;
    left: 0vw;
    width: 100%;

    @media (max-width: 639px) {
      width: 0%;
    }
  }

  &.shown {
    &::before,
    .site-nav__project-title::before {
      width: 100%;
      right: auto;
      left: 0vw;
    }

    &:hover::before,
    &:focus::before,
    &:hover .site-nav__project-title::before,
    &:focus .site-nav__project-title::before {
      left: auto;
      right: 0vw;
      width: 0%;

      @media (max-width: 639px) {
        left: 0vw;
        width: 100%;
      }
    }
  }
}

.site-nav__project-title {
  position: relative;
  display: inline-block;
  width: fit-content;

  &::before {
    content: "";
    position: absolute;
    bottom: 0vw;
    left: auto;
    right: 0vw;
    width: 0%;
    height: 0.3vw;
    background-color: currentcolor;
    transition: 0.7s cubic-bezier(0, 0, 0.2, 1);

    @media screen and (max-width: 639px) {
      height: 2.8vw;
    }
  }
}

.site-header {
  position: fixed;
  top: 0vw;
  left: 0vw;
  width: 100%;
  z-index: 10000;
  mix-blend-mode: difference;
  pointer-events: none;

  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.253vw 2.333vw;
  }

  .site-header__branding {
    width: 2.8vw;
    height: 2.8vw;
    display: block;
    color: var(--color-white);
    text-decoration: none !important;
    pointer-events: auto;

    @media screen and (max-width: 639px) {
      width: 10vw;
      height: 10vw;
    }

    svg {
      width: 100%;
      height: 100%;
    }
  }

  .site-header__menu {
    width: 3.193vw;
    height: 1.113vw;
    background: transparent;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    padding: 0;

    @media screen and (max-width: 639px) {
      width: 10vw;
      height: 4vw;
    }

    .site-header__hamburger {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      .site-header__line {
        width: 100%;
        height: 0.133vw;
        background-color: var(--color-white);
        overflow: hidden;

        @media screen and (max-width: 639px) {
          height: 0.5vw;
        }

        .site-header__hamburger-line-inner {
          width: 100%;
          height: 100%;
          background-color: var(--color-white);
        }
      }
    }

    .site-header__close {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;

      .site-header__circle {
        width: 3.193vw;
        height: 3.193vw;
        background-color: #e2e2e2;
        border-radius: 50%;
        position: absolute;
        transform: scale(0);

        @media screen and (max-width: 639px) {
          width: 12vw;
          height: 12vw;
        }
      }

      .site-header__line {
        width: 1vw;
        height: 0.133vw;
        background-color: var(--color-dark);
        position: absolute;
        transform: rotate(45deg) scaleX(0);

        @media screen and (max-width: 639px) {
          width: 5vw;
          height: 0.5vw;
        }

        &:nth-of-type(3) {
          transform: rotate(-45deg) scaleX(0);
        }
      }
    }
  }
}
