:root {
}

#menu {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 900;
  font-size: 1.875rem;
  color: #e6e6e6;
  align-items: center;
  grid-column: 3 / -1;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
  margin: 0;
  padding: 4px 0 0 0;
}

.menu-items li {
}

.menu-items li:nth-child(1) {
  justify-self: start;
  grid-column: 1 / span 2;
}

.menu-items li:nth-child(2) {
  justify-self: start;
  grid-column: 4;
}

.menu-items li:last-child {
  justify-self: start;
  grid-column: 6;
}

.menu-items a {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 900;
}

.mob-video,
.resp-video {
  display: none;
}
.mob-video,
.resp-video,
.home-video {
  /* background-color: #757171; */
  overflow: hidden;
}

.home-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #757171;
  z-index: -1;
}

.video-overlay {
  display: none;
}

@media screen and (max-width: 1260px) {
  #menu {
    font-size: 1.675rem;
  }
}

@media screen and (max-width: 1024px) {
  #menu {
    grid-column: 3 / -1;
    font-size: 1.575rem;
  }
}

@media screen and (max-width: 820px) {
  :root {
    --margin-top: 20px;
  }

  #menu {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: start;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    grid-column: 1;
    height: 100vh;
    inset: 0;
    z-index: 5;
  }

  #menu.opened {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: start;
    margin-top: 12rem;
    width: 86vw;
  }
  .menu-items li a {
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.77, 1, 0.175, 1) 0.1s;
    font-size: 2rem;
    line-height: 1.2;
    font-family: "Hanken Grotesk";
    font-style: normal;
    font-weight: 700;
  }

  #menu.opened .menu-items li a {
    opacity: 1;
  }

  .togglemenu {
    position: absolute;
    top: 38px;
    right: 0.6rem;
    width: 29px;
    height: 22px;
    cursor: pointer;
    z-index: 100;
  }

  .togglemenu span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 0.2rem;
    background-color: #e6e6e6;
    transition:
      transform 0.3s ease,
      opacity 0.1s ease;
    transform-origin: center;
  }

  .togglemenu span:nth-child(1) {
    top: 0;
  }

  .togglemenu span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .togglemenu span:nth-child(3) {
    bottom: 0;
  }

  .togglemenu.open span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  .togglemenu.open span:nth-child(2) {
    opacity: 0;
  }

  .togglemenu.open span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
  }

  body.menu-opened .mob-video.resp-video,
  body.menu-opened .video-overlay {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
  }

  body.menu-opened .video-overlay {
    z-index: 5;
  }

  .img-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100svh;
    min-height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
  }

  .img-nav img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}
