/* Font */

@font-face{
  font-family: 'DM Mono';
  src: url('../fonts/DMMono-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face{
  font-family: 'DM Mono';
  src: url('../fonts/DMMono-LightItalic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face{
  font-family: 'DM Mono';
  src: url('../fonts/DMMono-Medium.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face{
  font-family: 'DM Mono';
  src: url('../fonts/DMMono-MediumItalic.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;
}

/* Main */

html {
  font-family: "DM Mono", monospace;
  font-optical-sizing: auto;
  font-size: 14px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  color: #FFF;
  background: #000;
  cursor: auto;
}

body {
	margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

body.about {
  overflow: hidden !important;
}

body.about header {
  z-index: 99;
}

body.error .nav a {
  display: none;
}

#error-text {
  width: 100%;
  text-align: center;
  margin-top: 100px;
}

.wrapper {
  visibility: hidden;
}

* {
  margin: 0;
	padding: 0;
}

a {
	color: #FFF;
	text-decoration: none;
}

element:hovered {
-webkit-user-select: none;
-webkit-touch-callout: none;        
}

::selection {
  color: #000;
  background: #FFF;
}

main {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 0;
}

/* Header and Navigation */

header {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  mix-blend-mode: difference;
  transition: filter 0.5s;
  z-index: 2;
}

.nav {
  position: absolute;
  mix-blend-mode: difference;
  cursor: pointer;
  z-index: 100;
}

.nav.left {
  left: 0;
}

.nav.right {
  right: 0;
}

body.home .nav a {
  opacity: 0;
  transition: 0.5s;
}

body.home .nav.fade-in a {
  opacity: 1;
  transition-delay: 0.4s;
}

.nav a {
  margin: 20px;
  text-transform: uppercase;
  font-weight: bold;
}

header img.logo {
  width: 380px;
  height: auto;
  opacity: 1;
  transition: all 0.4s;
}

header img.logo.loaded {
  transform: scale(1);
  opacity: 1;
  transition: all 0.4s;
}

header img.logo.loading {
  animation-name: loading;
  animation-duration: 0.5s;
  animation-timing-function: ease;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-delay: 0.5s;
  transition: all 0.4s;
}

body.works header a.logo, body.about header a.logo {
  position: fixed;
  top: 20px;
}

@keyframes loading {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.1;
  }
}

/* Ascii Screensaver */

#screensaver {
  position: fixed;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #FFF;
  pointer-events: all;
  display: none;
  opacity: 0;
  z-index: 100000;
  transition: opacity 0.4s;
}

#screensaver pre {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  cursor: pointer;
  line-height: 1;
}


#screensaver.hide {
  opacity: 0;
}

#screensaver.display {
  display: flex;
}

#screensaver.fade-in {
  opacity: 1;
  pointer-events: all;
}

#main.home.loaded {
  opacity: 1;
}

#main.home {
  /*opacity: 0;
  transition: opacity 0.3s;*/
}

/* Fader */

.fade {
  transition: opacity 0.1s 0.1s;
  opacity: 0;
}

/* Skew grid */

.container {
  position: fixed;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  display: block;
  transform-origin: top;
  -ms-overflow-style: none;  
  scrollbar-width: none;
  user-select: none;
  opacity: 0;
  transition: opacity 1s;
  pointer-events: none;
}

.container.fade-in {
  opacity: 1;
  transition: opacity 1s;
  pointer-events: all;
}

.container::-webkit-scrollbar, .container::scrollbar {
  display: none !important;
  width: 0;
  background-color: #000;
}

.container.left {
  z-index: 1;
}

.container.right {
  z-index: 0;
}

.container.hovered {
  z-index: 2;
}

.skew.left {
  /*transform: skew( var(--angle) );*/
  left: -100%;
  padding-left: 100%;
}

.skew.right {
  /*transform: skew( var(--angle) );*/
  left: -200px;
  padding-left: 100%;
}

.skew > * {
  display: block;
  /*transform: skew( - var(--angle) );*/
  transform-origin: top;
}


#container div.content:first-child {
  margin-top: 20px;
  margin-left: -35px;
}

.content {
  position: relative;
  transition: opacity 0.2s;
  overflow: visible;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.content .media {
  transform: scale(0.98);
  transform-origin: center;
  box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.3); 
  cursor: pointer;
}

.content video.media {
  background-color: #666;
}

/* Sizes left container */

/* ONE */

.skew.left .one.landscape {
  width: 120px;
  height: fit-content;
  margin-bottom: -40px;
}

.skew.left .one.landscape .media {
  width: 120px;
}

.skew.left .one.portrait {
  width: 120px;
  height: fit-content;
  margin-left: -10px;
  margin-bottom: -70px;
}

.skew.left .one.portrait .media {
  height: 120px;
}

.skew.left .one.square {
  width: 100px;
  height: 100px;
  margin-bottom: -50px;
}

.skew.left .one.square .media {
  width: 100px;
  height: 100px;
}

/* TWO */

.skew.left .two.landscape {
  width: 215px;
  height: fit-content;
  margin-bottom: -60px;
  margin-left: -20px;
}

.skew.left .two.landscape .media {
  width: 215px;
}

.skew.left .two.portrait {
  width: 160px;
  height: fit-content;
  margin-bottom: -110px;
  margin-left: 20px;
}

.skew.left .two.portrait .media {
  height: 160px;
}

.skew.left .two.square {
  width: 130px;
  height: fit-content;
  margin-left: 60px;
  margin-bottom: -40px;
}

.skew.left .two.square .media {
  width: 130px;
}

/* THREE */

.skew.left .three.landscape {
  width: 325px;
  height: fit-content;
  margin-bottom: -100px;
}

.skew.left .three.landscape .media {
  width: 325px;
}

.skew.left .three.portrait {
  height: 220px;
  max-width: 200px;
  width: fit-content;
  margin-bottom: -120px;
  margin-left: 50px;
}

.skew.left .three.portrait .media {
  height: 220px;
}

.skew.left .three.square {
  width: 200px;
  height: fit-content;
  margin-left: -20px;
  margin-bottom: -80px;
}

.skew.left .three.square .media {
  width: 200px;
}

/* FOUR */

.skew.left .four.landscape {
  width: 420px;
  height: fit-content;
  margin-left: -20px;
  margin-bottom: -140px;
}

.skew.left .four.landscape .media {
  width: 420px;
}

.skew.left .four.portrait {
  width: 420px;
  height: fit-content;
  margin-bottom: -220px;
}

.skew.left .four.portrait .media {
  height: 360px;
}

.skew.left .four.square {
  width: 200px;
  height: 200px;
  margin-left: -30px;
  margin-bottom: -50px;
}

.skew.left .four.square .media {
  height: 400px;
}

/* FIVE */

.skew.left .five {
  margin-top: -20px;
}

.skew.left .five.landscape {
  width: 450px;
  height: fit-content;
  margin-left: -40px;
  margin-bottom: -100px;
}

.skew.left .five.landscape .media {
  width: 450px;
}

.skew.left .five.portrait {
  width: 280px;
  height: fit-content;
  margin-left: 40px;
  margin-bottom: -200px;
}

.skew.left .five.portrait .media {
  width: 280px;
}

.skew.left .five.square {
  width: 300px;
  height: fit-content;
  margin-bottom: -150px;
  margin-left: -20px;
}

.skew.left .five.square .media {
  width: 300px;
}

/* Sizes right container */

/* ONE */

.skew.right .one.landscape {
  width: 200px;
  height: fit-content;
  margin-bottom: -50px;
  margin-left: 50px;
}

.skew.right .one.landscape .media {
  width: 200px;
}

.skew.right .one.portrait {
  width: fit-content;
  height: 180px;
  margin-bottom: -80px;
  margin-left: 40px;
}

.skew.right .one.portrait .media {
  height: 180px;
}

.skew.right .one.square {
  width: 100px;
  height: 100px;
  margin-bottom: -30px;
}

.skew.right .one.square .media {
  width: 100px;
  height: 100px;
}

/* TWO */

.skew.right .two.landscape {
  width: 250px;
  height: fit-content;
  margin-bottom: -50px;
}

.skew.right .two.landscape .media {
  width: 250px;
}

.skew.right .two.portrait {
  height: 240px;
  width: fit-content;
  margin-bottom: -200px;
  margin-left: 100px;
}

.skew.right .two.portrait .media {
  height: 240px;
}

.skew.right .two.square {
  width: 130px;
  height: 130px;
  margin-bottom: -50px;
  margin-left: 20px;
}

.skew.right .two.square .media {
  width: 130px;
}

/* THREE */

.skew.right .three.landscape {
  width: 320px;
  height: fit-content;
  margin-bottom: -120px;
}

.skew.right .three.landscape .media {
  width: 320px;
}

.skew.right .three.portrait {
  height: 250px;
  width: fit-content;
  margin-bottom: -150px;
  margin-left: 20px;
}

.skew.right .three.portrait .media {
  height: 250px;
}

.skew.right .three.square {
  height: 200px;
  width: 200px;
  margin-bottom: -50px;
}

.skew.right .three.square .media {
  width: 200px;
}

/* FOUR */

.skew.right .four.landscape {
  width: 350px;
  height: fit-content;
  margin-bottom: -140px;
}

.skew.right .four.landscape .media {
  width: 350px;
}

.skew.right .four.portrait {
  max-width: 200px;
  width: fit-content;
  height: 300px;
  margin-bottom: -240px;
  margin-left: 160px;
}

.skew.right .four.portrait .media {
  height: 300px;
}

.skew.right .four.square {
  width: 300px;
  height: 300px;
  margin-bottom: -50px;
}

.skew.right .four.square .media {
  height: 300px;
}

/* FIVE */

.skew.right .five.landscape {
  width: 450px;
  height: fit-content;
  margin-bottom: -180px;
}

.skew.right .five.landscape .media {
  width: 450px;
}

.skew.right .five.portrait {
  max-width: 170px;
  height: fit-content;
  margin-bottom: -250px;
}

.skew.right .five.portrait .media {
  height: 400px;
}

.skew.right .five.square {
  width: 150px;
  height: 150px;
  margin-top: -50px;
}

.skew.right .five.square .media {
  width: 300px;
}

/* Content Info */

.content .info {
  position: absolute;
  bottom: -50px;
  width: 100%;
  white-space: nowrap;
  opacity: 0;
  display: grid;
  pointer-events: none;
  transition: opacity 0.2s;
  backface-visibility: hidden;
}

.content.hovered .info {
  display: grid;
  pointer-events: all;
  opacity: 1;
  transition-delay: 0.2s;
}

/* Content Interaction  */

.content.hovered {
  z-index: 0 !important;
}

.content.hovered .media {
  animation-name: bounce;
  animation-duration: 0.4s;
  animation-timing-function: ease-in-out;
  animation-duration: normal;
  animation-iteration-count: 1;
  transform: scale(1);
  -webkit-transform: scale(1);
}

@keyframes bounce {
  0% {
    transform: scale(0.98);
    -webkit-transform: scale(0.98);
  }

  50% {
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
  }

  100% {
    transform: scale(1);
    -webkit-transform: scale(1);
  }
}

.content.not-hovered {
  z-index: -1;
}

#header.not-hovered {
  z-index: -1;
}

.blurry {
  filter: blur(5px);
}

.content .filter {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #000;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
}

.content.not-hovered .filter {
  opacity: 0.75;
}

/* INDEX OF PROJECTS */

#works {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  display: flex;
  justify-content: center;
  /*background-color: rgba(0, 0, 0, 0.8);*/
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s;
}

#works.fade-in {
  opacity: 1;
}

#works::-webkit-scrollbar {
  display: none !important;
  width: 0;
  background-color: #000;
}

#works .list {
  display: flex;
  width: 460px;
  margin-top: 160px;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity 0.2s;
}

#works.fade-in .list {
  opacity: 1;
  transition-delay: 0.2s;
}

#works ul {
  display: flex;
  flex-wrap: wrap;
  width: 460px;
  padding-bottom: 30px;
  margin-bottom: 10px;
  margin-top: 10px;
}

#works ul li {
  width: 100%;
  list-style-type: none;
}

#works ul li.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#works ul li.project {
  margin-bottom: 30px;
}

#works ul li.year, 
#works ul li.client, 
#works ul li.location, 
#works ul li.project, 
#works ul li.roles {
  display: flex;
  margin-bottom: 10px;
}

#works ul li p.type {
  width: 90px;
  margin-right: 20px;
}

#works ul li p.data {
  width: calc( 100% - 90px );
}

#works ul:first-child {
  padding-top: 20px;
}

#works .learn-more {
  display: flex;
  width: 100%;
  justify-content: center;
  font-weight: bold;
  font-style: italic;
  padding-bottom: 50px;
}

#works ul li.logo img {
  height: 50px;
}

/* ABOUT PAGE */

#about {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: space-between;
  opacity: 0;
  transition: opacity 0.2s;
}

#about.fade-in {
  opacity: 1;
}

#about .links {
  width: 100%;
}

#about ul li {
  list-style-type: none;
}

#about .links {
  position: absolute;
  top: 50%;
  margin-top: 70px;
}

#about ul {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#about ul li {
  margin: 20px;
  line-height: 15px;
}

#about ul li.title {
  text-transform: uppercase;
  font-weight: bold;
}

#about ul li a {
  font-style: italic;
  transition: opacity 0.2s;
}

#about ul li a:hover {
  opacity: 0.8;
}

#about .links li {
  margin-top: 0;
}

#about .social ul li img {
  width: auto;
  height: 25px;
}

#about-text {
  display: none;
}

#about .manifesto {
  position: absolute;
  bottom: 50%;
  text-align: center;
  max-width: 800px;
}

#about .manifesto p {
  margin-bottom: 30px;
  line-height: 24px;
}

#about .manifesto p:last-child {
  margin-bottom: 15px;
}

#about .credits {
  position: absolute;
  bottom: 0;
  opacity: 0.5;
}

/* FONT SIZE */

.small {
  font-size: 12px;
  line-height: 15px;
}

/* RESPONSIVE */

/* About responsive interaction */

#canvas {
  display: none;
}

#ascii {
  font-size: 0.92vw;
}

#ascii-desktop, #ascii-mobile {
  display: none;
}

@media only screen and (max-width: 700px) {
  /* Ascii */
  #ascii {
    font-size: 1vh;
  }
}

@media only screen and (max-width: 600px) {

  html, body {
    -webkit-user-select: text; /* Safari fallback only */
    -webkit-user-select: all; /* Chrome/Safari */
    -moz-user-select: all; /* Firefox */
    -ms-user-select: all; /* IE10+ */
  }

  /* Header */

  header img.logo {
    width: auto;
    height: 20px;
  }

  body.about main, body.works main {
    align-items:  flex-start
  }

  body.works header {
    z-index: 100;
  }

  body.about header img.logo, body.works header img.logo {
    margin: 10px;
    padding: 10px;
  }

  body.works header a.logo, body.about header a.logo {
    position: fixed;
    margin: 0;
    top: 0;
  }

  /* Navigation  */

  .nav a {
    margin: 10px;
    padding: 10px;
  }

  body.works .nav, body.about .nav {
    position: fixed;
    top: 17px;
  }

  /* About Mobile */

  #about {
    align-content: center;
  }

  #about .manifesto {
    position: relative;
    margin: 20px;
    bottom: 0;
  }

  #about .links {
    position: unset;
    margin-top: 0;
  }

  #about ul li {
    margin-top: 0;
    margin-bottom: 15px;
    margin-left: 0;
    margin-right: 10px;
  }

  #about .links, #about .credits {
    font-size: 12px;
  }

  #canvas{
    width: 100vw;
    height: 100vh;
    display: block;
    pointer-events: none;
    z-index: 1;
    background-color: transparent;
    position: absolute;
    top: 0;
      opacity: 1;
    -webkit-user-drag: none; 
    user-select: none; 
    -webkit-tap-highlight-color: 
    rgba(0, 0, 0, 0); 
    z-index: 1000;
    opacity: 0;
  }

  /* Index of projects */

  
  #works .list {
    margin-top: 95px;
    width: 100%;
    background-color: #000;
  }

  #works ul {
    margin-left: 20px;
    margin-right: 20px;
  }

  #works ul li p.type {
    margin-right: 10px;
  }

  /* Screensaver */

  /* Container  */

  .skew.right {
    left: 0;
    padding-left: 75vw;
  }

  /* Sizes left container */

  /* ONE */

  .skew.left .one.landscape {
    width: 80px;
    height: fit-content;
    margin-bottom: -20px;
  }

  .skew.left .one.landscape .media {
    width: 80px;
  }

  .skew.left .one.portrait {
    width: fit-content;
    height: 80px;
    margin-bottom: -20px;
  }

  .skew.left .one.portrait .media {
    height: 80px;
  }

  .skew.left .one.square {
    width: 75px;
    height: 75px;
    margin-bottom: -20px;
  }

  .skew.left .one.square .media {
    width: 75px;
    height: 75px;
  }

  /* TWO */

  .skew.left .two.landscape {
    width: 125px;
    height: fit-content;
    margin-bottom: -20px;
  }

  .skew.left .two.landscape .media {
    width: 125px;
  }

  .skew.left .two.portrait {
    width: fit-content;
    height: 125px;
    margin-bottom: -20px;
    margin-left: 0;
  }

  .skew.left .two.portrait .media {
    height: 125px;
  }

  .skew.left .two.square {
    width: 120px;
    height: fit-content;
    margin-bottom: -20px;
    margin-left: 0;
  }

  .skew.left .two.square .media {
    width: 120px;
  }

  /* THREE */

  .skew.left .three.landscape {
    width: 150px;
    height: fit-content;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.left .three.landscape .media {
    width: 150px;
  }

  .skew.left .three.portrait {
    height: 180px;
    max-width: 180px;
    width: fit-content;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.left .three.portrait .media {
    height: 180px;
  }

  .skew.left .three.square {
    width: 150px;
    height: fit-content;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.left .three.square .media {
    width: 150px;
  }

  /* FOUR */

  .skew.left .four.landscape {
    width: 190px;
    height: fit-content;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.left .four.landscape .media {
    width: 190px;
  }

  .skew.left .four.portrait {
    width: fit-content;
    height: 190px;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.left .four.portrait .media {
    height: 190px;
  }

  .skew.left .four.square {
    width: 190px;
    height: 190px;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.left .four.square .media {
    height: 190px;
  }

  /* FIVE */

  .skew.left .five {
    margin-top: -20px;
  }

  .skew.left .five.landscape {
    width: 220px;
    height: fit-content;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.left .five.landscape .media {
    width: 220px;
  }

  .skew.left .five.portrait {
    width: 180px;
    height: fit-content;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.left .five.portrait .media {
    width: 180px;
  }

  .skew.left .five.square {
    width: 180px;
    height: fit-content;
    margin-bottom: -40px;
    margin-left: -20px;
    margin-left: -5vw;
  }

  .skew.left .five.square .media {
    width: 180px;
  }

  /* Sizes right container */

  /* ONE */

  .skew.right .one.landscape {
    width: 80px;
    height: fit-content;
    margin-bottom: -20px;
  }

  .skew.right .one.landscape .media {
    width: 80px;
  }

  .skew.right .one.portrait {
    width: fit-content;
    height: 80px;
    margin-bottom: -20px;
  }

  .skew.right .one.portrait .media {
    height: 80px;
  }

  .skew.right .one.square {
    width: 75px;
    height: 75px;
    margin-bottom: -20px;
  }

  .skew.right .one.square .media {
    width: 75px;
    height: 75px;
  }

  /* TWO */

  .skew.right .two.landscape {
    width: 125px;
    height: fit-content;
    margin-bottom: -20px;
  }

  .skew.right .two.landscape .media {
    width: 125px;
  }

  .skew.right .two.portrait {
    width: fit-content;
    height: 125px;
    margin-bottom: -20px;
    margin-left: 0;
  }

  .skew.right .two.portrait .media {
    height: 125px;
  }

  .skew.right .two.square {
    width: 120px;
    height: fit-content;
    margin-bottom: -20px;
    margin-left: 0;
  }

  .skew.right .two.square .media {
    width: 120px;
  }

  /* THREE */

  .skew.right .three.landscape {
    width: 150px;
    height: fit-content;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.right .three.landscape .media {
    width: 150px;
  }

  .skew.right .three.portrait {
    height: 180px;
    max-width: 180px;
    width: fit-content;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.right .three.portrait .media {
    height: 180px;
  }

  .skew.right .three.square {
    width: 150px;
    height: fit-content;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.right .three.square .media {
    width: 150px;
  }

  /* FOUR */

  .skew.right .four.landscape {
    width: 190px;
    height: fit-content;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.right .four.landscape .media {
    width: 190px;
  }

  .skew.right .four.portrait {
    width: fit-content;
    height: 190px;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.right .four.portrait .media {
    height: 190px;
  }

  .skew.right .four.square {
    width: 190px;
    height: 190px;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.right .four.square .media {
    height: 190px;
  }

  /* FIVE */

  .skew.right .five {
    margin-top: -20px;
  }

  .skew.right .five.landscape {
    width: 220px;
    height: fit-content;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.right .five.landscape .media {
    width: 220px;
  }

  .skew.right .five.portrait {
    width: 180px;
    height: fit-content;
    margin-bottom: -40px;
    margin-left: -5vw;
  }

  .skew.right .five.portrait .media {
    width: 180px;
  }

  .skew.right .five.square {
    width: 180px;
    height: fit-content;
    margin-bottom: -40px;
    margin-left: -20px;
    margin-left: -5vw;
  }

  .skew.right .five.square .media {
    width: 180px;
  }
}
