* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: #151515;
  font-size: 1rem;
  font-family: "museo-sans", sans-serif;
}

video::-webkit-media-controls {
  display: none;
}

button {
  appearance: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-family: "museo-sans", sans-serif;
  font-size: 1rem;
  font-weight: 300;
}

body {
  overflow: hidden;
  background-color: #fcfcfc;
}

@media only screen and (max-width: 350px) {
  :root {
    font-size: 14px;
  }
}

/* MAIN TRANSPORTER (slide between all_clients and showcase) */
.main_transporter {
  width: 200%;
  display: flex;
  transform: translateX(-50%);
  transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.main_transporter.all_projects {
  transform: none;
}

main {
  width: 100vw;
  height: var(--full-vh);
  overflow: hidden;
}

#clients {
  width: 100vw;
  flex: 1;
}

#showcase {
  flex: 1;
  display: flex;
  height: var(--full-vh);
  overflow: hidden;
}

#left,
#right {
  flex: 1;
}

/* SHOWCASE LEFT_CONTAINER */
#left .transporter {
  transform: translateY(var(--trans-val));
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform var(--trans-speed) cubic-bezier(0.7, 0, 0.3, 1);
}
#left .container {
  height: var(--full-vh);
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}
#left .content {
  max-width: 50ch;
}
#left h2 {
  font-family: "Libre Baskerville", serif;
  color: #ffa816;
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}
#left h3 {
  font-family: "Libre Baskerville", serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #151515;
  line-height: 3rem;
  font-weight: 700;
}
#left p {
  font-family: "museo-sans", sans-serif;
  font-weight: 300;
  color: #151515;
  font-size: 0.9rem;
  line-height: 1.6rem;
}

#left {
  position: relative;
}

#left #bg_logo {
  position: absolute;
  bottom: 0%;
  left: 100%;
  transform: translateX(-50%) translateY(0%);
  width: 700px;
  height: 700px;
  background-image: url("../images/logo.svg");
  background-position: center;
  background-size: cover;
  opacity: 0.08;
}

/* SHOWCASE RIGHT_CONTAINER */

#right {
  height: var(--full-vh);
  width: 50vw;
  overflow: hidden;
}
#right .transporter {
  display: flex;
  width: var(--trans-width);
  height: 100%;
  transform: translateX(var(--trans-val));
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform var(--trans-speed) 0.2s cubic-bezier(0.7, 0, 0.3, 1);
}
#right .transporter div {
  flex: 1;
  height: 100%;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);

  overflow: hidden;
}

#right img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

#right video {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

@media only screen and (max-width: 990px) {
  #showcase {
    flex-direction: column;
  }

  #left {
    flex: 0.4;
    height: calc(var(--single-vh) * 40);
  }
  #left .container {
    height: calc(var(--single-vh) * 40);
  }
  #left p {
    display: none;
  }

  #left h2 {
    font-size: 1.2rem;
  }

  #left h3 {
    font-size: 2.3rem;
    margin-bottom: 0;
  }

  #left .content {
    max-width: 38ch;
  }

  #right {
    flex: 0.6;
    height: calc(var(--single-vh) * 60);
    width: 100vw;
  }

  #left #bg_logo {
    width: 90vw;
    height: 90vw;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-10%);
    background-size: contain;
  }
}
@media only screen and (min-width: 1600px) {
  #left .content {
    max-width: 25vw;
  }
  #left h2 {
    font-size: 1.25vw;
    margin-bottom: 0.3vw;
  }
  #left h3 {
    font-size: 3vw;
    margin-bottom: 1vw;
    line-height: 3vw;
  }
  #left p {
    font-size: 0.9vw;
    line-height: 1.6vw;
  }
}

/* HEADER */
header {
  z-index: 1;
  position: fixed;
  top: 0;
  left: 0;
  width: 50%;
  background-color: #fcfcfc;
  transition: width 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

header.on_clients {
  width: 95%;
}

header ul {
  display: flex;
  margin: 1.3rem 2rem;
  height: 18px;
  width: 100%;
  position: relative;
}

header li {
  display: flex;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform-origin: bottom center;
  transition: all 0.4s cubic-bezier(0.89, 0.03, 0.27, 0.94);
}

header li.hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
}

header .arrow {
  position: relative;
  display: block;
  width: 0px;
  height: 1px;
  background-color: #151515;
  margin-left: calc(1rem + 6px);
  transition: width 0.2s 0.2s;
}

header .arrow.right {
  margin-left: 1rem;
}

header .arrow::after,
header .arrow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -6px;
  width: 0px;
  height: inherit;
  background-color: inherit;
  transition: width 0s 0.2s, transform 0.2s;
}

header .arrow::before {
  transform-origin: bottom left;
}
header .arrow::after {
  transform-origin: top left;
}

header .arrow.right::after,
header .arrow.right::before {
  top: 0;
  left: 21px;
  width: 0px;
  height: inherit;
  background-color: inherit;
  transition: width 0s 0.2s, transform 0.2s;
}

header .arrow.right::before {
  transform-origin: bottom right;
}
header .arrow.right::after {
  transform-origin: top right;
}

header button:hover ~ .arrow {
  transition: width 0.2s;
  width: 25px;
  animation-name: kf_bounce;
  animation-duration: 0.3s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-delay: 0.4s;
}
header button:hover ~ .arrow::after,
header button:hover ~ .arrow::before {
  transition: width 0s 0.2s, transform 0.2s 0.2s;
  width: 10px;
}
header button:hover ~ .arrow::before {
  transform: rotate(-40deg);
}
header button:hover ~ .arrow::after {
  transform: rotate(40deg);
}

header button:hover ~ .arrow.right::before {
  transform: rotate(40deg);
}
header button:hover ~ .arrow.right::after {
  transform: rotate(-40deg);
}

@keyframes kf_bounce {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(3px);
  }
}
@media only screen and (max-width: 990px) {
  header {
    width: 95%;
    /* background-color: transparent; */
  }

  header ul {
    margin: 1.3rem 1.3rem;
  }
}

/* FOOTER */
footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  background-color: #fcfcfc;
}

footer h3 {
  font-family: "Libre Baskerville", serif;
  color: #202020;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 0 0 2rem;
}

footer ul {
  display: flex;
  background-color: #fcfcfc;
}

footer a,
footer span {
  margin: 0.8rem 0 0.8rem 2rem;
  display: block;
  font-family: "museo-sans", sans-serif;
  color: #7a7a7a;
  font-size: 0.9rem;
}

footer li:last-child {
  margin-left: 2rem;
}

footer li:last-child span {
  margin: 0.8rem 0 0.8rem 0rem;
}

footer p {
  display: flex;
}

footer p span {
  /* font-family: "Libre Baskerville", serif; */
}

.word_wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  transform: perspective(200px);
  transform-style: preserve-3d;
  position: relative;
  padding: 0 1ch;
  justify-self: flex-end;
}

.word_wrapper b {
  opacity: 0;
  transform: translateY(var(--trans-y));
  display: block;
  transform-origin: bottom center;
  font-weight: 600;
  color: #202020;
  font-family: "Libre Baskerville", serif;
}

footer p span {
  /* color: #202020; */
}

.word_wrapper b:nth-child(1) {
  position: absolute;
}

.word_wrapper b:nth-child(3) {
  position: absolute;
}

.word_wrapper b.animate_out {
  animation-name: kf_txt_out;
  /* animation-timing-function: cubic-bezier(.89,.03,.27,.94); */
  animation-duration: 1.7s;
  /* animation-iteration-count: infinite; */
}

.word_wrapper b.animate_in {
  animation-name: kf_txt_in;
  animation-timing-function: cubic-bezier(0.89, 0.03, 0.27, 0.94);
  animation-duration: 0.7s;
  /* animation-iteration-count: infinite; */
  animation-timing-function: ease-out;

  animation-delay: 1.8s;
}

@keyframes kf_txt_out {
  0% {
    transform: rotateX(0deg);
    opacity: 1;
  }

  40% {
    transform: rotateX(0deg);
    opacity: 1;
    animation-timing-function: cubic-bezier(0.89, 0.03, 0.27, 0.94);
  }

  70% {
    transform: rotateX(-40deg);
    opacity: 1;
    animation-timing-function: cubic-bezier(0.89, 0.03, 0.27, 0.94);
  }

  100% {
    transform: rotateX(90deg);
    opacity: 0.1;
    animation-timing-function: cubic-bezier(0.89, 0.03, 0.27, 0.94);
  }
}

@keyframes kf_txt_in {
  0% {
    transform: rotateX(-40deg);
    opacity: 0.5;
  }

  100% {
    transform: rotateX(0);
    opacity: 1;
  }
}

@media only screen and (max-width: 1400px) {
  footer .hide {
    display: none;
  }
}

@media only screen and (max-width: 1150px) {
  footer a,
  footer span {
    margin: 0.8rem 0 0.8rem 1.2rem;
  }
}

@media only screen and (max-width: 990px) {
  footer {
    display: block;
  }

  footer a,
  footer span {
    font-size: 1rem;
  }

  footer h3 {
    width: 100%;
    background-color: #fcfcfc;
    padding: 0.7rem 0 0.7rem 1.3rem;
    position: relative;
  }

  footer h3::after {
    content: "▸";
    font-size: inherit;
    margin-left: 1rem;
    position: absolute;
    transition: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    transition-delay: 0.4s;
  }

  footer.open h3::after {
    transform: rotate(90deg);
    transition-delay: 0s;
  }

  footer ul {
    flex-direction: column;
    height: 0;
    transition: height 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    transition-delay: 0.4s;
  }

  footer.open ul {
    height: 140px;
    transition-delay: 0s;
  }

  footer li {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.7, 0, 0.3, 1);
  }
  footer li:nth-of-type(1) {
    transition-delay: 0.4s;
  }
  footer li:nth-of-type(2) {
    transition-delay: 0.3s;
  }
  footer li:nth-of-type(3) {
    transition-delay: 0.2s;
  }
  footer li:nth-of-type(4) {
    transition-delay: 0.1s;
  }

  footer.open li {
    transform: none;
    opacity: 1;
  }
  footer.open li:nth-of-type(1) {
    transition-delay: 0.1s;
  }
  footer.open li:nth-of-type(2) {
    transition-delay: 0.2s;
  }
  footer.open li:nth-of-type(3) {
    transition-delay: 0.3s;
  }
  footer.open li:nth-of-type(4) {
    transition-delay: 0.4s;
  }

  footer li:not(:first-child) a {
    margin: 0rem 0 0.8rem 1.3rem;
  }

  footer span {
    display: none;
  }

  footer a,
  footer span {
    margin: 0.8rem 0 0.8rem 1.3rem;
  }
}

/* ALL CLIENTS SECTION */

#clients {
  padding: 5rem 0rem 2rem 0rem;
  height: calc(var(--full-vh) - 2.5rem);
  /* width: 100vw; */
  overflow-y: scroll;
  overflow-x: hidden;
}

#clients .grid_container {
  padding: 0rem 2rem;
  display: grid;
  grid-gap: 2rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
}

#clients h2 {
  font-family: "Libre Baskerville", serif;
  color: #202020;
  font-size: 2rem;
  margin: 0 0 1.5rem 2rem;
}

#clients h3 {
  font-family: "Libre Baskerville", serif;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  color: #151515;
  line-height: 2rem;
  font-weight: 700;
}

#clients li {
  font-family: "museo-sans", sans-serif;
  font-weight: 300;
  color: #151515;
  font-size: 1rem;
  line-height: 1.6rem;
}

@media only screen and (max-width: 990px) {
  #clients {
    padding: 5rem 0rem 2rem 0rem;
    height: calc(var(--full-vh) - 1.6rem);
  }

  #clients h2 {
    font-size: 1.5rem;
  }

  #clients .grid_container {
    padding: 0rem 1.3rem;
  }

  #clients h2 {
    margin: 0 0 1.5rem 1.3rem;
  }
}

/**GOAT**/
.cvr.cvr.cvr.cvr {
  margin: unset;
  display: inline-block;
}

#cvr {
  position: relative;
}

#cvr::after {
  content: "";
  width: 60px;
  padding: 7px 0;
  position: absolute;
  border-radius: 5px;
  background-color: #ffffff5d;
  top: -100%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, -40%);
  text-align: center;
  text-justify: center;
  color: #202020;
  pointer-events: none;
}

#cvr:hover::after {
  content: "Copy";
  transform: translate(-50%, -100%);
  opacity: 1;
  transition: transform 0.3s, opacity 0.3s;
}

#cvr.clicked::after {
  content: "Copied";
  transform: translate(-50%, -100%);
  opacity: 1;
}

@media only screen and (max-width: 990px) {
  #cvr::after {
    content: "";
    width: 60px;
    padding: 7px 1rem;
    position: static;
    opacity: 0;
    transform: translate(-50%, -50%);
    text-align: left;
    text-justify: center;
    color: #7a7a7a;
    pointer-events: none;
  }

  #cvr:hover::after {
    content: "";
    transform: translate(-50%, -50%);
    opacity: 0;
  }

  #cvr.clicked::after {
    content: "Copied";
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

/* Landscape alert */
#landscapeAlert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #202020;
  z-index: 100;
  justify-content: center;
  align-items: center;

  display: none;
}

#landscapeAlert p {
  color: #fcfcfc;
  font-size: 1.5rem;
  font-family: "museo-sans", sans-serif;
}

@media only screen and (max-width: 900px) and (max-height: 450px) {
  #landscapeAlert {
    display: flex;
  }
}
