* {
  padding: 0;
  margin: 0;
  border: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  box-sizing: border-box;
  -webkit-user-drag: none;
}

*:focus {
  outline: transparent;
}

:root {
  --base-font-size: 1.345em;
  --small-font-size: 1.16em;
  --titling-font-size: 2.1em;
  --disclaimer-font-size: 1em;

  --base-line-height: 1.9em;
  --small-line-height: 1em;
  --titling-line-height: 1.52em;
  --menu-line-height: 3.27em;

  --base-color: #606060;
  --alt-color: #fff;
  --base-bg-color: #fff;
  --alt-bg-color: #000;
  --loading-bg-color: #fff;
  --special-highlight-color: #50a100;
  --warning-highlight-color: #e50000;

  --works-section-color: #6305ff;
  --skills-section-color: #ff9000;
  --clients-section-color: #11a7ff;
  --history-section-color: #ee07ed;
  --contact-section-color: #3c4bff;

  --width-expanded-desktop-menu: 16.8em;

  --h: 100%;
}

ul {
  list-style: none;
}

img {
  -webkit-user-select: none;
  user-select: none;
}

button {
  -webkit-appearance: none;
  appearance: none;
  writing-mode: horizontal-tb !important;
  font-style: unset;
  font-variant-ligatures: unset;
  font-variant-caps: unset;
  font-variant-numeric: unset;
  font-variant-east-asian: unset;
  font-weight: unset;
  font-stretch: unset;
  font-size: unset;
  font-family: unset;
  text-rendering: auto;
  color: unset;
  letter-spacing: unset;
  word-spacing: normal;
  line-height: unset;
  text-transform: unset;
  text-indent: 0px;
  text-shadow: none;
  display: inline-block;
  text-align: unset;
  align-items: flex-start;
  cursor: pointer;
  background-color: unset;
  pointer-events: all;
}

a,
a:visited,
a:active {
  color: unset;
  text-decoration: none;
}

html,
body {
  overflow: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Comfortaa", sans-serif;
  font-size: 16px;
  color: var(--base-color);
  -webkit-tap-highlight-color: transparent;
}

/* STRUCTURE----------------------------------------------------------------------------------------
*/

#app {
  filter: blur(0.4em) saturate(0);
  opacity: 0;
  transform: scale(0.9);
  transition: filter 0.7s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.7s cubic-bezier(0.77, 0, 0.175, 1),
    transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1;
}

#app.on {
  filter: blur(0) saturate(1);
  opacity: 1;
  transform: scale(1);
}

#app,
.wrapper {
  overflow: hidden;
}

#app > span {
  display: none;
}

.main-loader.shrink {
  transform: scale(0.9);
  filter: blur(0.4em) saturate(0);
  opacity: 0;
  pointer-events: none;
}

header {
  position: absolute;
  pointer-events: none;
  width: 100%;
  z-index: 2;
}

.menu {
  position: absolute;
  text-transform: lowercase;
}

.web-content-fx {
  position: relative;
  height: var(--h);
  z-index: 1;
  filter: blur(0);
  transition: filter 0.7s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.7s cubic-bezier(0.77, 0, 0.175, 1),
    transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.web-content-fx.shrink {
  transform: scale(0.93) !important;
  filter: blur(0.8em);
  opacity: 0 !important;
}

.web-content {
  position: absolute;
  pointer-events: unset !important;
}

.web-content.ismenuexpanded {
  pointer-events: none !important;
}

.web-content,
.fx,
.modals {
  width: 100%;
}

.fx {
  position: absolute;
  top: 0;
  height: var(--h);
  pointer-events: none;
}

.fx span.over {
  background-color: var(--works-section-color);
}

.modals {
  position: absolute;
  top: 0;
  left: 0;
  height: var(--h);
  pointer-events: none;
  z-index: 3;
}

.modals .skills {
  position: absolute;
  display: flex;
  flex-direction: column;
  left: 0;
  right: 0;
  width: 28.2em;
  height: 17.9em;
  transform: scale(0);
  transform-origin: 13.6% 85%;
  transition: transform 0.2s cubic-bezier(0.86, 0, 0.07, 1);
}

.modals .skills.grow {
  transform: scale(1) !important;
}

.modals .skills div {
  position: absolute;
  padding: 0 7.15em;
  display: flex;
  flex-direction: column;
  transform: translate(0.5em, -0.55em);
}

.modals .skills div h2 {
  margin: auto 0 0 0;
}

.modals .skills div ul {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-self: center;
  justify-content: space-between;
  margin: 0 auto auto auto;
}

.modals .skills div ul li {
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background-color: unset;
  border: 2px solid var(--skills-section-color);
}

.modals .skills div ul li.full {
  background-color: var(--skills-section-color);
  border: 0;
}

.modals .sample {
  pointer-events: none;
  display: flex;
  opacity: 0;
  filter: blur(0.2em) saturate(0);
  transform: scale(0.93);
  transition: opacity 0.7s cubic-bezier(0.77, 0, 0.175, 1),
    filter 0.7s cubic-bezier(0.77, 0, 0.175, 1),
    transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.modals .sample.focus {
  pointer-events: all;
  filter: blur(0) saturate(1) !important;
  opacity: 1 !important;
  transform: scale(1);
}

.modals .sample > div {
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border-radius: 3.7em;
  box-shadow: 0px 13px 20px 2px rgb(0 0 0 / 6%);
}

.modals .sample > div.fs {
  border-radius: 0;
  background: var(--alt-bg-color);
}

.modals .sample video {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--alt-bg-color);
  z-index: 1;
}

.modals .sample span {
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  z-index: 2;
}

.modals .sample .controls {
  pointer-events: none;
  display: flex;
  margin: auto auto 3.2em auto;
  width: calc(100% - 7em);
  justify-content: space-between;
  z-index: 3;
}

.modals .sample button.close {
  display: flex;
  position: absolute;
  right: 0;
  bottom: 0;
  height: -moz-fit-content;
  height: fit-content;
  margin: 0em 6.25em 4.85em 0;
}

.modals .sample button.close.fs {
  top: 0;
  margin: 5.2em 3.05em 0 0;
  filter: brightness(1.95);
}

.sections,
.sections section {
  display: flex;
  flex-direction: column;
}

.sections section:first-of-type {
  padding: 5.29em 0 0 0;
}

.sections section,
.sections section p,
.sections section#history a {
  font-size: var(--base-font-size);
}

.sections section p {
  line-height: var(--base-line-height);
}

.sections section h1 {
  font-size: var(--titling-font-size);
  line-height: var(--titling-line-height);
}

.menu,
.modals .skills h2,
.sections section button,
.sections section:not(#history) a,
.sections #history span,
.sections section caption {
  font-size: var(--small-font-size);
  line-height: var(--small-line-height);
}

.sections,
.sections section,
.sections #works .section-container {
  font-size: 1em;
}

.landscape-msg {
  z-index: 5;
}

.landscape-msg > div {
  position: relative;
  display: flex;
  padding: 1.8em;
  background-color: var(--base-bg-color);
}

.landscape-msg > div h1 {
  position: relative;
  margin: auto;
  text-align: center;
  line-height: var(--base-line-height);
}

/* UI ------------------------------------------
*/

.hamburger,
.close {
  display: flex;
}

.hamburger lottie-player {
  width: 1.9em;
}
lottie-player[name="closeMenu"] {
  width: 1.65em;
}

lottie-player[name="closeModal"] {
  width: 1.95em;
  height: 2.35em;
}

lottie-player[name="playback"] {
  width: 2.35em;
}

lottie-player[name="volume"] {
  width: 4.5em;
}

.sample .playback {
  pointer-events: none;
}
.sample .volume {
  pointer-events: none;
}

.sample.focus .playback,
.sample .focus .playback {
  pointer-events: all;
}
.sample.focus .volume,
.sample .focus .volume {
  pointer-events: all;
}

.loading-bg {
  position: absolute;
  display: flex;
  transition: filter 0.4s 0.3s ease-in-out, opacity 0.4s 0.3s ease-in-out;
}

.loading-bg * {
  position: absolute;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: contrast(0) brightness(1.7);
}

.loading-bg.a {
  background-color: var(--loading-bg-color);
}

.loading-bg.out {
  filter: blur(0.8em);
  opacity: 0;
}

.loading-bg.a *,
.modals .loading-bg * {
  width: 5.4em;
  height: 5.4em;
}

.loading-bg.b *,
.loading-bg.c * {
  width: 2.7em;
  height: 2.7em;
}

.loading-bg.c * {
  opacity: 0.4;
}

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

header a[name="home"] {
  position: absolute;
  display: flex;
  margin: 5.3em 7.6em;
  pointer-events: all;
}

header a[name="home"] img {
  width: 3.6em;
  height: 3.6em;
  pointer-events: none;
}

.menu {
  filter: blur(0) saturate(1);
  opacity: 1;
  transition: opacity 0.7s cubic-bezier(0.77, 0, 0.175, 1),
    filter 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu.unfocused {
  filter: blur(0.1em) saturate(0) !important;
  opacity: 0.5 !important;
}

.menu.unfocused * {
  pointer-events: none;
}

.menu .router-link-active,
.menu .router-link-exact-active {
  transition: color 0.3s ease-out;
}

.menu [name="works"].router-link-active,
.menu [name="works"].router-link-exact-active {
  color: var(--works-section-color);
}

.menu [name="skills"].router-link-active,
.menu [name="skills"].router-link-exact-active {
  color: var(--skills-section-color);
}

.menu [name="clients"].router-link-active,
.menu [name="clients"].router-link-exact-active {
  color: var(--clients-section-color);
}

.menu [name="history"].router-link-active,
.menu [name="history"].router-link-exact-active {
  color: var(--history-section-color);
}

.menu [name="contact"].router-link-active,
.menu [name="contact"].router-link-exact-active {
  color: var(--contact-section-color);
}

.menu a,
.menu button {
  pointer-events: all;
  white-space: nowrap;
}

.menu .desktop .deployed,
.menu .desktop .compressed,
.menu .desktop .compressed .hamburger,
.menu .desktop .compressed .items {
  transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu .desktop .deployed {
  transform: translateX(0);
  transition-delay: 0.3s;
}
.menu .desktop .compressed {
  transform: translateX(var(--width-expanded-desktop-menu));
  transition-delay: 0s;
  position: absolute;
  pointer-events: none;
}

.menu .desktop .deployed,
.menu .desktop .compressed .items ul {
  position: absolute;
  display: flex;
  flex-direction: column;
  height: calc(var(--h) - 8.8em);
  right: 0;
  margin: 4.4em 6.4em;
  pointer-events: all;
  line-height: var(--menu-line-height);
}

.menu .desktop .deployed li,
.menu .desktop .compressed li {
  text-align: right;
}

.menu .desktop .compressed li:last-of-type {
  display: flex;
  margin: auto 0 2.8em 3.04em;
}

.menu .desktop .compressed .hamburger {
  display: flex;
  position: absolute;
  right: 0;
  margin: 5.23em 6.3em;
}

.menu .desktop .compressed .items {
  position: absolute;
  display: flex;
  height: var(--h);
  right: 0;
  background-color: var(--base-bg-color);
  width: var(--width-expanded-desktop-menu);
  overflow: hidden;
}

.menu .desktop .compressed .items::before {
  content: "";
  position: absolute;
  height: 210%;
  width: 4.2em;
  top: 50%;
  transform: translate(-50%, -32%);
  background: radial-gradient(rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 66.8%);
}

.menu .desktop .compressed .hamburger {
  transform: translateX(0);
}
.menu .desktop .compressed .items {
  transform: translateX(var(--width-expanded-desktop-menu));
}

.ismenuexpanded .menu .desktop .compressed .hamburger {
  transform: translateX(var(--width-expanded-desktop-menu));
}
.ismenuexpanded .menu .desktop .compressed .items {
  transform: translateX(0);
}

/* SECTIONS ----------------------------------------------------------------------------------------
*/

.sections section .section-container {
  width: 62em;
  margin: 0 auto;
}

.sections {
  width: 100%;
  transform: translateX(0);
  filter: none;
  transition: width 0.3s cubic-bezier(0.77, 0, 0.175, 1),
    filter 0.3s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

.web-content.ismenuexpanded .sections {
  width: calc(100% - var(--width-expanded-desktop-menu));
  filter: blur(0.5em) saturate(0.05) contrast(1) opacity(0.4);
}

/* Works ------------------------------------------
*/

.sections #works .section-container > div > ul {
  display: flex;
  flex-direction: column;
  row-gap: 3.8em;
}

.sections #works .section-container > div > ul > li {
  cursor: pointer;
  width: 29em;
}

.sections #works .section-container > div > ul > li > div,
.sections #works .section-container > div > ul > li > div > div {
  position: relative;
  width: 100%;
}
.sections #works .section-container > div > ul > li > div > div {
  perspective: 150em;
}

.sections #works .front,
.sections #works .back,
.sections #works .front > div,
.sections #works .back > div {
  transform-style: preserve-3d;
}

.sections #works .front,
.sections #works .back {
  border-radius: 2.5em;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: -7px 13px 20px 2px rgb(0 0 0 / 6%);
}
.sections #works .front {
  position: absolute;
  overflow: hidden;
  background-color: var(--loading-bg-color);
  z-index: 1;
}

.sections #works .front > div {
  position: relative;
}

.sections #works .front > div img {
  object-fit: cover;
  object-position: center center;
}

.sections #works .back {
  padding: 3.8em;
  background-color: var(--base-bg-color);
}

.sections #works .back > div {
  position: relative;
  display: flex;
  flex-direction: column;
}

.sections #works .back h1 {
  margin: 0 0 0.57em 0;
}

.sections #works .back figure {
  position: absolute;
  right: 0;
  width: 5.1em;
  height: 5.1em;
  border-radius: 0.8em;
  overflow: hidden;
}

.sections #works .back figure div {
  position: relative;
}

.sections #works .back figure img {
  object-fit: cover;
  object-position: center center;
}

.sections #works .back ul {
  display: flex;
  width: 14.7em;
  row-gap: 0.625em;
  column-gap: 1.35em;
  flex-wrap: wrap;
  flex-direction: row;
  margin: 0 0 3.02em 0;
}

.sections #works .back ul li {
  display: flex;
  height: 2.515068493150685em;
}

.sections #works .back ul li img {
  width: auto;
}

.sections #works .back p {
  margin: 0 0 1.55em 0;
}

.sections #works .section-container .single-col {
  display: none;
}
.sections #works .section-container .double-col {
  display: flex;
  justify-content: space-between;
}
.sections #works .section-container .single-col > ul {
  margin: auto;
}

.sections #works a,
.sections #works button {
  white-space: nowrap;
  width: -moz-fit-content;
  width: fit-content;
}

.sections #works a img,
.sections #works button img {
  width: 1.2em;
  transform: translate(-0.3em, 0.35em);
  transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
  margin: 0 1.2em 0 0;
}

/* Skills ------------------------------------------
*/

.sections #skills .section-container {
  width: 54.5em;
}

.sections #skills ul li,
.sections #skills ul li button {
  display: flex;
}

.sections #skills ul li button > div {
  filter: saturate(0) contrast(0.5) brightness(1.3);
  transition: filter 0.3s ease-in-out;
}

.sections #skills .major,
.sections #skills .lesser {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.sections #skills .major {
  column-gap: 11.55em;
  row-gap: 4.45em;
  margin: 0 0 14.5em 0;
}
.sections #skills .lesser {
  column-gap: 9.5em;
  row-gap: 7.7em;
}

.sections #skills .major li {
  height: 12.7em;
}

.sections #skills .lesser li {
  min-width: 5.6em;
  height: 5.6em;
}

.sections #skills ul li,
.sections #skills ul li button,
.sections #skills ul li button > div {
  height: 100%;
}

.sections #skills ul li button {
  margin: auto;
}

.sections #skills ul li button > div {
  position: relative;
}

.sections #skills ul li button div img {
  height: 100%;
  width: auto;
}

/* Clients ------------------------------------------
*/

.sections #clients .section-container {
  width: 54.5em;
}

.sections #clients ul {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 5.53em;
  row-gap: 5.53em;
  justify-content: space-around;
}

.sections #clients ul li {
  display: flex;
  width: 14.46em;
  height: calc(14.46em / 1.074074074074074);
}

.sections #clients ul li > div {
  position: relative;
  display: flex;
  filter: brightness(0.75);
}

.sections #clients ul li > div img {
  display: block;
  width: 100%;
  height: auto;
  margin: auto;
}

/* History ------------------------------------------
*/

.sections #history .country {
  flex-direction: row;
  min-height: 60em;
}

.sections #history .jobs {
  display: flex;
  flex-direction: column;
  row-gap: 7.5em;
  width: 28.85em;
  margin: auto 0;
}

.sections #history .jobs li {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.935, 0.005, 0.265, 1.55),
    filter 0.5s cubic-bezier(0.935, 0.005, 0.265, 1.55),
    opacity 0.5s cubic-bezier(0.935, 0.005, 0.265, 1.55);
}

.sections #history .jobs li > div:first-of-type {
  margin: 0 0 1.35em 0;
}

.sections #history .jobs li > div:last-of-type {
  text-indent: 3.7em;
}
.sections #history .jobs li > div a::before,
.sections #history .jobs li > div p::before {
  content: "·";
  margin: 0 2.6em 0 0;
}

.sections #history p {
  line-height: unset;
}

.sections #history .job-divider {
  position: relative;
}

.sections #history .past-1400 .job-divider {
  margin: auto auto auto 0;
}

.sections #history .under-1400 .job-divider {
  margin: 7.5em auto 0 auto;
}

.sections #history .job-divider lottie-player.vert {
  width: 5.37em;
}

.sections #history .job-divider lottie-player.horiz {
  width: 33.8em;
}

.sections #history .job-divider img {
  position: absolute;

  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s 0.6s ease-out;
}

.sections #history .past-1400 .job-divider img {
  height: 100%;
  width: auto;
  right: 0.4em;
}
.sections #history .under-1400 .job-divider img {
  width: 75%;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.sections #history .job-divider img.opacity-in {
  opacity: 1 !important;
}

.sections #history .country > h2 {
  transform: scale(0);
  transition: transform 0.5s 0.9s cubic-bezier(0.935, 0.005, 0.265, 1.55);
}

.sections #history .past-1400 > h2 {
  font-size: 7.15em;
  margin: auto auto auto 0.43em;
}

.sections #history .under-1400 > h2 {
  font-size: 7.7em;
  margin: 0.25em auto auto auto;
}

.sections #history .country > h2.grow {
  transform: scale(1) !important;
}

/* Contact ------------------------------------------
*/

.sections #contact .section-container {
  display: flex;
  flex-direction: column;
  height: var(--h);
}

.sections #contact ul li a {
  display: flex;
}

.sections #contact ul {
  display: flex;
  flex-direction: row;
  width: 16.5em;
  margin: 0 auto auto auto;
  justify-content: space-between;
}

.sections #contact ul li a img {
  height: 3.26em;
}

.sections #contact h1 {
  margin: auto auto 0 auto;
}

.sections #contact p {
  padding: 0 2.3em;
  font-size: var(--disclaimer-font-size);
  text-align: center;
  margin: 0 auto 4.7em auto;
}

/* TOOLS AND AUX -----------------------------------------------------------------------------------
*/

.full {
  width: 100vw;
  height: var(--h);
}

.fullcont {
  width: 100%;
  height: 100%;
}

.full.excd {
  height: calc(var(--h) + 2px);
}

.gradient {
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.07) 0%,
    rgba(0, 0, 0, 0) 60%
  );
}

.spacer {
  border: 0;
  width: 100%;
}

.spacer.a {
  height: 2.68em;
}
.spacer.b {
  height: 8em;
}

.spacer.c {
  height: calc(var(--h) / 2);
}

.spacer.d {
  height: 4em;
}

.ongoing {
  color: var(--special-highlight-color);
}

.isLazy {
  opacity: 0;
  filter: blur(0.2em) saturate(0);
  transform: scale(0.85);
  transition: filter 0.4s 0.3s ease-in-out, opacity 0.4s 0.3s ease-in-out,
    transform 0.4s 0.3s ease-in-out;
}

.op-in {
  opacity: 1 !important ;
}

.isLazy.no-scale {
  transform: scale(1);
}

.isLazy.loaded {
  opacity: 1 !important;
  filter: blur(0) saturate(1) !important;
  transform: scale(1);
}

.no-transitions {
  transition: none !important;
}

.contrasted-tech {
  filter: drop-shadow(0px 0px 0.3px var(--alt-color))
    drop-shadow(0px 0px 0.3px var(--alt-color))
    drop-shadow(0px 0px 0.3px var(--alt-color))
    drop-shadow(0px 0px 0.3px var(--alt-color))
    drop-shadow(0px 0px 0.3px var(--alt-color))
    drop-shadow(0px 0px 0.3px var(--alt-color))
    drop-shadow(0px 0px 0.3px var(--alt-color))
    drop-shadow(0px 0px 0.3px var(--alt-color))
    drop-shadow(0px 0px 0.3px var(--alt-color))
    drop-shadow(0px 0px 0.3px var(--alt-color));
}

.contrasted-text {
  text-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.3);
}

.works-alt-color-1 {
  color: var(--base-color);
}
.works-alt-color-2 {
  color: var(--works-section-color);
}

.works-alt-filter-1 {
  filter: brightness(0) saturate(100%) invert(37%) sepia(18%) saturate(9%)
    hue-rotate(319deg) brightness(91%) contrast(84%);
}

.works-alt-filter-2 {
  filter: brightness(0) saturate(100%) invert(9%) sepia(100%) saturate(6610%)
    hue-rotate(265deg) brightness(113%) contrast(123%);
}

/* OVERRIDE -----------------------------------------------------------------------------------
*/

.c-scrollbar {
  background: none !important;
  mix-blend-mode: multiply;
  z-index: 4;
}

.c-scrollbar_thumb {
  left: 0.11em !important;
  width: 0.23em !important;
  opacity: 1 !important;
  background: #606060 !important;
}

.router-link-active {
  pointer-events: none !important;
}

lottie-player {
  pointer-events: none !important;
}
