/*
BASE
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
  -ms-font-feature-settings: "kern" 1, "case" 1;
  -o-font-feature-settings: "kern" 1, "case" 1;
  -webkit-font-feature-settings: "kern" 1, "case" 1;
  font-feature-settings: "kern" 1, "case" 1;
  -webkit-font-kerning: normal;
  font-kerning: normal;
}

@font-face {
  font-family: "MonumentGrotesk-Medium";
  src: url("../fonts/MonumentGrotesk-Medium.woff") format("woff"), url("../fonts/MonumentGrotesk-Medium.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

* {
  font-family: "MonumentGrotesk-Medium", Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 13px;
}

*,
:after,
:before {
  box-sizing: inherit;
}

:root {
  --length: 4s;
  --timing: cubic-bezier(0.8, 0, 0.2, 1);
  --height: 25px;
  --translate: calc(var(--height) + 10px);
  --totalHeight: calc(var(--height) * 2 + 10px);
  --leftA: 28px;
  --leftB: 61px;
  --leftC: 22px;
  --widthA: 309px;
  --widthB: 143px;
}

@keyframes animationPlus {
  0% {
    transform: translateY(0) rotateX(0);
  }

  25% {
    transform: translateY(calc(var(--translate) * -1)) rotateX(360deg);
  }

  50% {
    transform: translateY(calc(var(--translate) * -1)) rotateX(360deg);
  }

  75% {
    transform: translateY(0) rotateX(0);
    left: var(--leftA);
  }

  100% {
    left: var(--widthB);
  }
}

@keyframes animationProduction {
  25% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(calc(var(--widthA) * -1));
  }

  100% {
    transform: translateX(calc(var(--widthA) * -1));
  }
}

@keyframes animationVorld {
  75% {
    transform: translateX(calc(var(--widthB) * -1));
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes animationWidth {
  75% {
    width: var(--widthA);
    pointer-events: none;
  }

  100% {
    width: calc(var(--widthB) + var(--height));
    pointer-events: all;
  }
}

:root {
  --length: 5s;
  --timing: cubic-bezier(0.8, 0, 0.2, 1);
}

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
}

.home__logotype {
  margin-bottom: 20px;
  height: var(--totalHeight);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  position: relative;
  width: var(--widthA);
  animation: var(--length) animationWidth forwards;
  animation-timing-function: var(--timing);
  pointer-events: none;
  transform: translateY(calc(var(--height) * -0.5));
}

.home__logotype__inner {
  display: flex;
  width: 100%;
  height: var(--height);
}

.home__item {
  height: var(--height);
  width: auto;
  position: absolute;
}

.home__item:nth-child(1) {
  z-index: 999;
}

.home__item:nth-child(2) {
  left: var(--leftA);
  animation: var(--length) animationPlus forwards;
  animation-timing-function: var(--timing);
}

.home__item:nth-child(3) {
  left: var(--leftB);
  animation: var(--length) animationProduction forwards;
  animation-timing-function: var(--timing);
}

.home__item:last-child {
  left: var(--leftC);
  transform: translateX(calc(var(--widthB) * -1));
  animation: var(--length) animationVorld forwards;
  animation-timing-function: var(--timing);
}

.home__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-transform: uppercase;
  transform: translateY(calc(var(--height) * -0.5));
}

.home__line {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  padding: 0 20px;
  text-align: center;
}

a {
  color: black;
  text-decoration: none;
}

a span {
  transition: transform 1s var(--timing);
  display: flex;
}

a:hover span {
  transform: rotateX(360deg);
}
