.background {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: .4s;
  overflow: hidden;
}

.background div {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--brown);
  background-blend-mode: multiply;
  background-size: cover;
  background-repeat: no-repeat;
  transition: .4s;
  transform: scale(1);
}

.nav, .footer {
  background-color: transparent;
}

main {
  height: calc(100vh - 112px - 1em);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero {
  width: 100%;
  max-width: 800px;
}

.hero__img {
  width: 100%;
  height: 180px;
  position: relative;
  margin-bottom: 20px;
}

.hero__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  top: 0;
  left: 0;
  position: absolute;
}

.hero__img svg {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
}

svg.hero__img--paint #hero__mask {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: strokeOffset 1.4s .4s ease-in-out both;
}

@keyframes strokeOffset {
  100% {
    stroke-dashoffset: 0;
  }
}

ul.nav__home {
  list-style-type: none;
  padding-inline-start: 0px;
  margin-block-end: 0;
}

.nav__home li {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 1em;
}

.nav__home li::before {
  content: '';
  width: 28px;
  height: 28px;
  background-image: url("../../img/icons/icon-arrow.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

.nav__home a {
  font-weight: 400;
  font-size: 1.6em;
  line-height: 102%;
}

.link--projects {
  animation: fadeIn .8s ease .4s both;
}

.link--playground {
  animation: fadeIn .8s ease .6s both;
}

.link--projects a {
  animation: slideIn .8s ease .6s both;
}

.link--playground a {
  animation: slideIn .8s ease .8s both;
}

/* === Mouseover animations === */

.hero__img--ascii {
  opacity: 0;
  transition: .2s .1s;
}

.mouseover--playground svg.hero__img--paint,
.mouseover--projects svg.hero__img--paint {
  opacity: 0;
  transition: .2s;
}

.mouseover--playground svg.hero__img--paint #hero__mask,
.mouseover--projects svg.hero__img--paint #hero__mask {
  animation: none;
}

.mouseover--playground .hero__img--ascii,
.mouseover--projects .hero__img--ascii {
  opacity: 1;
}

.mouseover--playground nav,
.mouseover--projects nav {
  color: var(--light)
}

.mouseover--playground a:hover,
.mouseover--projects a:hover {
  color: var(--light);
}

.mouseover--playground .nav__home li::before,
.mouseover--projects .nav__home li::before {
  filter: invert(1);
  transition: .2s .2s;
}

/* === Mouseover animations: Projects === */

.background--projects {
  clip-path: inset(0 0 100% 0);
}

.background--projects div {
  background-image: url("../../../assets/img/projects/orgullo-y-postales/oyp-header.jpg");
}

.mouseover--projects .background--projects {
  clip-path: inset(0 0 0 0);
  transition: 1s;
}

.long-mouseover--projects .background--projects div {
  transform: scale(1.2);
  transition: 20s;
}

.mouseover--projects a {
  color: var(--blue);
}

/* === Mouseover animations: Playground === */

.background--playground {
  clip-path: inset(100% 0 0 0);
}

.background--playground div {
  background-image: url("../../../assets/img/background-playground.jpg");
  background-position: center 64%;
}

.mouseover--playground .background--playground {
  clip-path: inset(0 0 0 0);
  transition: 1s;
}

.long-mouseover--playground .background--playground div {
  transform: scale(1.2);
  transition: 20s;
}

.mouseover--playground a {
  color: var(--pink);
}

/* === Keyframes === */

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-10%);
  }
  100% {
    opacity: 1;
    transform: translateX(-0%);
  }
}