body {
  margin-top: 200px;
  background-color: black;
  font-family: 'Open Sans', sans-serif;
}

.parent-el {
  max-width: 1400px;
  margin: auto;
}

.box {
  width: 100%;
  background: #EEE;
  height: 250px;
  position: relative;
  overflow: hidden;
  margin: 0em 1em;
}
.box:hover span {
  transition: all 200ms ease;
}
.box:hover .bg {
  transform: scale(1);
  transition: all 600ms ease;
  filter: blur(6px);
}
.box:hover .top {
  width: 100%;
}
.box:hover .right {
  height: 100%;
  transition-delay: 200ms;
}
.box:hover .bottom {
  width: 100%;
  transition-delay: 400ms;
}
.box:hover .left {
  height: 100%;
  transition-delay: 600ms;
}
.box:hover .btn {
  transform: translate(-50%, -50%);
  transition-delay: 800ms;
  opacity: 1;
}

.bg {
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: all 400ms ease;
}

.inner-box {
  height: 70%;
  width: 70%;
  position: relative;
  left: 15%;
  top: 15%;
}
.inner-box span {
  position: absolute;
  background: white;
  transition: all 0ms ease;
}

.top {
  height: 2px;
  width: 0%;
  top: 0;
  left: 0;
}

.right {
  top: 0;
  height: 0%;
  width: 2px;
  right: 0;
}

.bottom {
  height: 2px;
  width: 0%;
  bottom: 0;
  right: 0;
}

.left {
  bottom: 0;
  width: 2px;
  height: 0%;
}

.btn {
  background: #d8f4fd;
  padding: 0.8em 1.4em;
  text-decoration: none;
  font-family: helvetica;
  color: black;
  position: absolute;
  top: 20%;
  left: 30%;
  transform: translate(-50%, 0%);
  transition: all 400ms ease;
  opacity: 0;
}

@media (min-width: 700px) {
  .parent-el {
    display: flex;
  }

  .box {
    width: 33%;
  }
}

/* nav */
a {
  color: inherit;
  text-decoration: inherit;
}
::selection {
  background-color: #f7ca18;
  color: #1b1b1b;
}
nav {
  width: 200%;
  background-color: #0b0b0b;
  position: fixed;
  top: 0;
  height: 100px;
  overflow: hidden;
}
nav ul {
  position: fixed;
  top: 0;
  left: 0;
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 140vw;
}
nav li {
  margin: 0;
  display: inline-block;
  height: 98px;
  margin-bottom: 2px;
  line-height: 100px;
  width: 20vw;
  text-align: center;
  color: #555;
  transition: background-color 0.5s 0.2s ease, color 0.3s ease;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 800;
  transform: translateY(100%);
}
nav li.active {
  background-color: #151515;
  color: #efefef;
}
nav li.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #f7ca18;
}
nav li:nth-child(1) {
  animation: pop 0.5s 0.15s 1 forwards;
}
nav li:nth-child(2) {
  animation: pop 0.5s 0.3s 1 forwards;
}
nav li:nth-child(3) {
  animation: pop 0.5s 0.45s 1 forwards;
}
nav li:nth-child(4) {
  animation: pop 0.5s 0.6s 1 forwards;
}
nav li:nth-child(5) {
  animation: pop 0.5s 0.75s 1 forwards;
}
nav li:nth-child(6) {
  animation: pop 0.5s 0.9s 1 forwards;
}
nav li:nth-child(7) {
  animation: pop 0.5s 1.05s 1 forwards;
}
nav li:hover {
  color: #ececec;
}
nav li:active {
  background-color: #222;
}
nav li:nth-child(1):hover ~ .slide {
  left: 0;
}
nav li:nth-child(2):hover ~ .slide {
  left: 20vw;
}
nav li:nth-child(3):hover ~ .slide {
  left: 40vw;
}
nav li:nth-child(4):hover ~ .slide {
  left: 60vw;
}
nav li:nth-child(5):hover ~ .slide {
  left: 80vw;
}
nav li:nth-child(6):hover ~ .slide {
  left: 100vw;
}
nav li:nth-child(7):hover ~ .slide {
  left: 120vw;
}
nav li.slide {
  position: absolute;
  left: -20vw;
  top: 0;
  background-color: #fff;
  z-index: -1;
  height: 2px;
  margin-top: 98px;
  transition: left 0.3s ease;
  transform: translateY(0);
}
section {
  background-color: #1b1b1b;
  height: 125vh;
  display: flex;
}
section .title {
  max-width: 60%;
  width: 100%;
  align-self: center;
  transform: translateY(-50px);
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: 10px;
}
section .title span {
  display: inline-block;
  font-size: 5vw;
  color: #efefef;
  width: 100%;
  text-transform: uppercase;
  transform: translateX(-100%);
  animation: byBottom 1s ease both;
  font-weight: 600;
  letter-spacing: 0.25vw;
}
section .title span:last-child {
  font-size: 1rem;
  animation: byBottom 1s 0.25s ease both;
}
section .title span a {
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
  text-decoration: none;
  color: #f7ca18;
}
section .title span a::after {
  content: "";
  height: 2px;
  background-color: #f7ca18;
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  animation: linkAfter 0.5s 1s ease both;
}
@-moz-keyframes pop {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}
@-webkit-keyframes pop {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}
@-o-keyframes pop {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes pop {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}
@-moz-keyframes byBottom {
  0% {
    transform: translateY(150%);
  }
  100% {
    transform: translateY(0);
  }
}
@-webkit-keyframes byBottom {
  0% {
    transform: translateY(150%);
  }
  100% {
    transform: translateY(0);
  }
}
@-o-keyframes byBottom {
  0% {
    transform: translateY(150%);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes byBottom {
  0% {
    transform: translateY(150%);
  }
  100% {
    transform: translateY(0);
  }
}

