/* Smooth Scroll
----------------------------------------------------------------------------- */

body {
  width: 100vw;
}

#muy-scrollbar-inner {
  width: 100vw;
  overflow-x: hidden;
}

.no-scroll {
  overflow: hidden;
}

/* Generic
----------------------------------------------------------------------------- */

a {
  position: relative;
  color: var(--font-color);
  transition: color 1s;
}

a,
a:focus,
a:active,
a:hover {
  text-decoration: none;
  color: var(--font-color);
}

a.no-circle:hover {
  text-decoration: underline;
}

@keyframes yo-yo {
  from {
    transform: rotate(-10deg);
  }
  to {
    transform: rotate(10deg);
  }
}

/* HANGLOOSE LINK */

.hangloose-link {
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  z-index: 3000;
  pointer-events: none;
  transform: translate(-50%, 0);
  transition: opacity 0.4s;
}

.hangloose-link .hangloose-link__img {
  background-image: var(--hangloose);
  animation: yo-yo linear 0.6s infinite alternate;
  width: 100px;
  height: 100px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

@media (min-width: 992px) {
  .hangloose-link__show {
    opacity: 1;
  }
}

/* SVG CIRCLE LINK */

.svg-link-wrapper {
  opacity: 0;
  position: absolute;
  top: -16;
  left: -16;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
}

.svg-link {
  width: 100%;
  height: 100%;
}

.svg-link path {
  stroke: var(--font-color);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600 600;
  stroke-dashoffset: 600;
  transition: all 0.6s ease-in-out;
}

.svg-link:hover path {
  stroke-dashoffset: 0;
}

@media (min-width: 992px) {
  .svg-link-wrapper {
    opacity: 1;
  }
}

/* IMAGE FIT */

.image-fit {
  position: relative;
  overflow: hidden;
}

.image-fit img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Typograpy
----------------------------------------------------------------------------- */

/* FONT FAMILY */

@font-face {
  font-family: "Founders Grotesk";
  src: url("../fonts/founders-grotesk-regular.woff2") format("woff2"),
    url("../fonts/founders-grotesk-regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Founders Grotesk";
  src: url("../fonts/founders-grotesk-light.woff2") format("woff2"),
    url("../fonts/founders-grotesk-light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* FONT STYLE */

body,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Founders Grotesk";
}

body {
  font-weight: 300;
  background-color: var(--bg-color);
  color: var(--font-color);
  transition: background 1s, color 1s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 300;
}

.text-center {
  text-align: center;
}

/* Loader Screen
----------------------------------------------------------------------------- */

#loader-screen {
  position: fixed;
  top: 0;
  right: 0;
  width: 600%;
  height: 100%;
  background-color: #292929;
  z-index: 3000;
  transition: transform 3s cubic-bezier(0.37, 0.01, 0.85, 0) 0s;
}

.loader-screen__bg {
  background-image: url(../images/muystudio-text.svg);
  background-repeat: repeat-x;
  background-size: 25% auto;
  background-position: center left;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: -5%;
  opacity: 0.06;
}

.loader-screen__inner {
  z-index: 1;
  position: absolute;
  right: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-screen__inner img {
  max-width: 150px;
  transition: opacity 0.3s linear;
  animation: yo-yo linear 0.6s infinite alternate;
}

.page-loaded #loader-screen img {
  opacity: 0;
}

.page-loaded #loader-screen {
  transform: translateX(110%);
}

/* Header
----------------------------------------------------------------------------- */

.site-name,
#main-menu,
.social-link,
.darkmode-btn {
  z-index: 2000;
}

.site-name {
  position: fixed;
  top: 16px;
  left: 16px;
  font-weight: 300;
  font-size: var(--font-size-3);
  letter-spacing: 1;
  text-transform: uppercase;
  color: var(--font-color);
  line-height: 1;
}

#main-menu {
  position: fixed;
  top: 16px;
  right: 16px;
}

#main-menu li a {
  text-transform: uppercase;
  font-weight: 300;
  font-size: var(--font-size-3);
  line-height: 1;
  color: var(--font-color);
  margin: 0 0 0 24px;
}

.social-link {
  position: fixed;
  bottom: 16px;
  left: 16px;
  font-size: var(--font-size-3);
  line-height: 1;
}

.darkmode-btn {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background-color: var(--font-color);
  border-radius: 100%;
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
  cursor: pointer;
}

@media (min-width: 992px) {
  .site-name a {
    top: 32px;
    left: 32px;
  }
  #main-menu {
    top: 32px;
    right: 32px;
  }
  .social-link {
    bottom: 32px;
    left: 32px;
  }
  .darkmode-btn {
    bottom: 32px;
    right: 32px;
  }
  .darkmode-btn:hover {
    transform: scale(2);
  }
  #main-menu li a {
    margin: 0 0 0 48px;
  }
}

/* Footer
----------------------------------------------------------------------------- */

#footer {
  text-transform: uppercase;
  font-size: var(--font-size-5);
}

#footer a:hover {
  text-decoration: underline;
}

/* Homepage
----------------------------------------------------------------------------- */

/*	HERO SECTION */

.home__hero {
  position: relative;
}

.home__hero__inner {
  width: 100% !important;
  overflow: hidden;
}

.home__hero__inner h1 {
  line-height: 1;
  font-size: var(--font-size-big-2);
  z-index: 1000;
  position: relative;
}

.home__hero__inner h1 span {
  display: block;
}

.home__hero__inner h1 > span {
  overflow: hidden;
  padding: 0 0 8px 0;
}

/* IMAGE TRAIL */

.home__hero__trail {
  position: relative;
}

.home__hero__trail,
.home__hero__trail__mobile {
  z-index: -1;
}

.home__hero__trail img {
  max-width: 300px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  will-change: transform;
  filter: none;
  pointer-events: none;
}

.home__hero__trail__mobile img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 70vw;
  max-height: 70vh;
}

/* ABOUT SECTION */

.home__about h2 {
  font-size: var(--font-size-big-1);
  line-height: 1;
  text-align: center;
  z-index: 1000;
  position: relative;
}

.home__about__text p {
  line-height: 1;
  font-size: var(--font-size-big-2);
  z-index: 1000;
  position: relative;
  text-align: center;
}

/*
.home__staff__card .image-fit {
  clip-path: polygon(40% 0px, 40% 0px, 60% 100%, 60% 100%);
}

.home__staff__inner {
  position: relative;
}

.home__staff__text {
  position: absolute;
  bottom: 16px;
  left: 16px;
}

.home__staff__title {
  font-size: var(--font-size-2);
  text-transform: uppercase;
  line-height: 1.2;
}

.home__staff__title span {
  display: inline-block
}

.home__staff__link {
  display: table;
  color: var(--font-color);
  font-size: var(--font-size-3);
  line-height: 1;
}

@media (min-width: 768px) {
  .home__about h2 {
    margin-top: -7vw !important;
  }
}

@media (min-width: 992px) {
  .home__staff__text {
    right: -30%;
    left: auto;
  }
  .home__staff .home__staff__card:nth-child(1) .home__staff__text {
    left: -30%;
    right: auto;
  }
}
*/

/* SERVICES SECTION */

.home__services h2 {
  font-size: var(--font-size-big-1);
  line-height: 1;
  text-align: right;
  margin-right: -2vw !important;
}

.home__services__marquee {
  width: 100vw;
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid;
}

.home__services__marquee ul {
  white-space: nowrap;
  margin: 0;
  padding: 0;
  will-change: transform;
}

.home__services__marquee li {
  list-style: none;
  padding: 0;
  margin: 0;
  text-transform: uppercase;
  font-size: var(--font-size-big-2);
  display: inline-block;
  margin-right: 8px;
  line-height: 1;
}

/* CONTACT SECTION */

.home__contact__subtitle {
  font-size: var(--font-size-2);
  text-align: center;
}

.home__contact h2 {
  font-size: var(--font-size-big-1);
  line-height: 1;
  text-align: center;
}

.home__contact h2 > span {
  overflow: hidden;
}

.home__contact h2 span {
  display: block;
}

.home__contact__text {
  font-size: var(--font-size-big-2);
  line-height: 1;
}

.home__contact__link {
  font-size: var(--font-size-2);
}

.home__contact__smile {
  animation: rotation 4s infinite linear;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}
