@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: bold;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: #D7D8E0;
  color: #16171D;
  font-family: "Montserrat", sans-serif;
  overflow: hidden;

}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

p,
a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: medium;
  color: #111;
}

.container {
  width: 100vw;
  height: 100%;
}

.counter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 20px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100%, 100%, 0% 100%);
  z-index: 0;
}

.counter p {
  position: relative;
  display: block;
  font-size: 1rem;
  transform: translateY(20px);
}

.hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 100vw;
  height: 100%;
  clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
  will-change: transform;
  z-index: 1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111;
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0);
  z-index: 2;
}

nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1em;
  display: flex;
  z-index: 3;
}

.nav-col {
  flex: 1;
  display: flex;
}

.nav-items {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav-col:nth-child(2) .nav-items:last-child p {
  text-align: right;
}

.header {
  width: 100%;
  margin-block: 2rem;
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0);
  z-index: 1;
}

.header h1 {
  font-size: 38.5vw;
  font-weight: bold;
  text-align: center;
  margin: 0;
  padding: 0;
  line-height: 100%;
}

.header h1 span {
  position: relative;
  display: inline-block;
  transform: translateY(500px);
}

.hero-img {
  position: relative;
  bottom: 0;
  width: 100%;
  height: 40vh;
  overflow: hidden;
  z-index: 0;
  user-select: none;
}

.hero-img img {
  transform: scale(2);
  user-select: none;
}

@media screen and (max-width: 900px) {
  .nav-col:nth-child(1) .nav-items:nth-child(2) p {
    text-align: right;
  }

  p, a {
    font-size: .7rem;
  }

  .nav-col:nth-child(2) {
    display: none;
  }

  .header {
    top: 30%;
  }

  .hero-img {
    height: 100vh;
  }
}
