/* defaults */

@font-face {
  font-family: 'Asfalt';
  src: url('../fonts/Asfalt-Two.eot'); /* IE9 Compat Modes */
  src: url('../fonts/Asfalt-Two.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/Asfalt-Two.woff') format('woff'), /* Modern Browsers */
       url('../fonts/Asfalt-Two.ttf')  format('truetype'), /* Safari, Android, iOS */
       url('../fonts/Asfalt-Two.svg#fc8b8e05c3fed2f7962e544e37b255e7') format('svg'); /* Legacy iOS */
  font-style: normal;
  font-weight: 400;
}

::selection,
::-moz-selection {
	background-color: rgba(0,0,0,0.25);
	color: white;
}

html,
body {
	height: 100%;
}

body {
	-webkit-font-smoothing: antialiased; 
	-moz-osx-font-smoothing: grayscale;
	font-smooth: always;
	text-rendering: optimizeLegibility;
	color: white;
	font-family: 'Asfalt', sans-serif; 
	letter-spacing: .2em;
	background-color: black;
	/*overflow: hidden;*/
}

ol, 
ul {
	list-style: none; 
}

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

a:focus {
	outline: none;
}

.hidden {
	display: none;
}

.clear {
	clear: both;
}

/* custom.css */

#intro,
#content {
	position: relative;
	height: 100%;
}

#mobile {
	display: none;
	font-size: 5em;
	padding: .5em;
}

#mobile small {
	font-size: .6em;
}

#intro {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 666;
	transition: transform 2s cubic-bezier(0.770, 0.000, 0.175, 1.000);
	background-color: black;
	background-position: center;
	background-size: auto, auto, cover;
}

#intro.hover {
	background-image: url('../imgs/trame.png'), url('../imgs/cache/cache_b-50.png'), url('../imgs/rollover.gif');
}

#intro > p {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 10em;
	letter-spacing: 10px;
	text-align: center;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}



#intro > a {
	position: absolute;
	left: 50%;
	bottom: 1em;
	margin-left: -5px;
	transform: translateX(-50%);
	padding: .2em 2em .1em;
	color: white;
	font-size: 3em;
	border: 1px solid white;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

#intro.active > p,
#intro.active > a {
	opacity: 1;
}

h1,
h2 {
	position: absolute;
	z-index: 2;
	font-size: 3em;
	font-weight: normal;
	letter-spacing: .2em;
	cursor: pointer;
	transition: color .5s ease-in-out;
}

h1.active,
h2.active {
	color: white;
}

h1 {
	top: .6em;
	left: .8em;
}

h2 {
	top: .6em;
	right: .8em;
}

#description {
	width: 100%;
	height: 100%;
	position: absolute;
	left: -100%;
	bottom: 0;
	z-index: 1;
	background-color: black;
	opacity: 0;
	transition: opacity .5s ease-in-out, left 0s .5s;
	text-align: center;
}

#description.active {
	left: 0;
	opacity: 1;
	transition-delay: 0s;
}

#description p {
	width: 80%;
	max-width: 1000px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 6em;
	text-align: center;
	opacity: 0;
	transition: opacity .5s ease-in-out;
}

#description p span {
	margin-top: .8em;
	display: inline-block;
	line-height: .8em;
	font-size: .75em;
}

#description p span small {
	font-size: .5em;
}

#description p.active {
	opacity: 1;
}

#content .cache {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	background-color: rgba(0,0,0,.1);
}

nav {
	width: 100%;
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 3;
	overflow: hidden;
}

nav ul {
	width: 100%;
	/*border-top: 1px solid black;*/
}

nav ul li {
	float: left;
	display: inline-block;
	width: 16.6666666666666%;
	height: 50px;
	position: relative;
	text-align: center;
	background-color: white;
	/*border: 1px solid black;*/
}

nav ul li div {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	transition: transform .15s ease-in-out;
	transform: translateY(100%);
}

nav ul li:hover div {
	transform: translateY(0%);
}

nav ul li:first-of-type div {
	background: url('../imgs/01.gif') no-repeat center;
	background-size: cover;
}

nav ul li:nth-of-type(2) div {
	background: url('../imgs/02.gif') no-repeat center;
	background-size: cover;
}

nav ul li:nth-of-type(3) div {
	background: url('../imgs/03.gif') no-repeat center;
	background-size: cover;
}

nav ul li:nth-of-type(4) div {
	background: url('../imgs/04.gif') no-repeat center;
	background-size: cover;
}

nav ul li:nth-of-type(5) div {
	background: url('../imgs/05.gif') no-repeat center;
	background-size: cover;
}

nav ul li:last-of-type div {
	background: url('../imgs/06.gif') no-repeat center;
	background-size: cover;
}

nav ul li.active {
	background-color: black;
}

nav ul li a {
	display: inline-block;
	width: 100%;
	height: 100%;
	position: relative;
	z-index: 1;
	color: black;
	font-size: 2em;
	line-height: 56px;
	transition: opacity .15s ease-in-out;
}

nav ul li:hover a {
	opacity: 0;
}

nav ul li.active a {
	color: white;
}

section,
article {
	height: 100%;
	position: relative;
	overflow: hidden;
}

section > div {
	height: 100%;
	transition: transform 2s cubic-bezier(0.770, 0.000, 0.175, 1.000);
}

article video {
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: -100;
	transform: translate3d(-50%, -50%, 0);
	background-size: cover;
}

article div {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: black;
	transition: opacity 1s ease-in-out;
}

article.active div {
	opacity: 0;
	transition-delay: 1s;
}

article div p {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -.3em;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 10em;
	letter-spacing: 10px;
	line-height: .7em;
	text-align: center;
}

article div p span {
	font-size: 40px;
	letter-spacing: 4px;
}

#echoes video {
	background: url('../imgs/01.gif') no-repeat fixed center;
}

#getslow video {
	background: url('../imgs/02.gif') no-repeat fixed center;
}

#inthespace video {
	background: url('../imgs/03.gif') no-repeat fixed center;
}

#lilmentra video {
	background: url('../imgs/04.gif') no-repeat fixed center;
}

#takeyourtime video {
	background: url('../imgs/05.gif') no-repeat fixed center;
}

#telepathy video {
	background: url('../imgs/06.gif') no-repeat fixed center;
}

@media screen and (max-width: 768px) {
	body {
		font-size: .8em;
	}
}

@media screen and (max-width: 640px) {
	body {
		font-size: .6em;
	}
}

@media screen and (max-width: 480px) {
	body {
		overflow: auto !important;
		letter-spacing: 2px;
	}
	
	#mobile {
		display: block;
	}

	#intro, #content {
		display: none;
	}
}