
/********************* GLOBAL
*/

.preload * {
  -webkit-transition: none;
  transition: none;
}

body {
	background: #000;
  font: 200 1em/1 'Titillium Web', Helvetica, Arial, sans-serif;
  color: #fff;
  margin: 0;
  padding: 0;
	-webkit-font-smoothing: antialiased;
}

body.projects {
  background: #000 url("/images/loader.gif") center center no-repeat;
}

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

h1, h2, h3 {
	text-transform: uppercase;
	font-weight: 200;
}


/********************* HEADER
*/

header {
	opacity: 0;
  width: 96%;
  position:fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  padding: 15px 2%;
  background: rgba(0,0,0,0.6);
  height: auto;
  transition: opacity 0.8s, background 0.4s;
}

header.sticky, .projects header {
	opacity: 1;
}

.projects header.credits-active {
  background: rgba(0,0,0,0.6);
}

.projects header {
  background: none;
}

#site-title a {
	display: block;
	width: 66px;
	height: 0;
	background: url("/images/daley.png") no-repeat;
	background-size: 68px;
	border-bottom: 1px solid white;
	padding: 28px 0 0;
	overflow: hidden;
	background-position: center center;
}

#site-title, nav {
	float: left;
}

header nav ul {
	margin: 2px 0 0 18px;
	padding: 0;
	list-style-type: none;
}

header nav li {
	display: inline;
	margin-right: 13px;
}

header nav li a {
  color: rgba(255,255,255,0.5);
  text-shadow: 0 1px 1px rgba(0,0,0,0.5);
  font-size: 23px;
  font-weight: 200;
  text-transform: uppercase;
  transition: color 0.3s;
}

header nav li:hover a,
header nav li a.active,
.info-section header nav li:hover a.active,
.info-section header nav li a.info  {
  color: rgba(255,255,255,1);
}

.reverseType header nav li a {
  color: rgba(0,0,0,0.6);
  text-shadow: none;
}

.reverseType header nav li:hover a,
.reverseType header nav li a.active {
  color: rgba(0,0,0,1);
}

.reverseType #site-title a {
	-webkit-filter: invert(1);
	filter: invert(1);
}

.info-section header nav li a.active {
  color: rgba(255,255,255,0.5);
}


/********************* BANNER
*/

#banner {
  height: 75vh;
  padding-top: 60px;
  color: #fff;
}

.banner-wrap {
	position: fixed;
  opacity: 0;
  top: 35%;
  width: 100%;
  text-align: center;
	-webkit-animation: moveUp 0.8s 0.4s 1 forwards;
	animation: moveUp 0.8s 0.4s 1 forwards;
}

.banner-wrap div {
	opacity: 1;
  transition: opacity 0.5s;
}

.banner-wrap div.sticky {
	opacity: 0;
}

#banner h1 {
	width: 15%;
	height: 0;
	margin: 0 auto;
	background: url("/images/daley.png") no-repeat;
	background-size: contain;
	border-bottom: 2px solid white;
	padding: 5% 0 0;
	overflow: hidden;
	background-position: center center;
}

#banner h2 {
	font-size: 2.7vw;
	margin: 6px 0 0;
}


/********************* GRID: LAYOUT
*/

#grid {
	padding: 60px 0 0;
	opacity: 0;
	-webkit-animation: moveUp 0.5s 0.2s 1 forwards;
	animation: moveUp 0.5s 0.2s 1 forwards;
}

#grid li {
  position: relative;
  overflow: hidden;
  height: 24vw; /* Height of FULL-width row */
}

#grid li:nth-child(3n+2),
#grid li:nth-child(3n+3) {
	width: 50%;
	height: 24vw; /* Height of HALF-width row */
}

#grid li:nth-child(3n+2) {
	float: left;
}

#grid li a {
	background-position: center 70%; /* x y */
	background-size: 110%; /* scale/zoom of image, must be > 100% for x position to have effect */
	height: 100%;
	width: 100%;
	display: inline-block;
}

#grid li a:after {
	content: "";
	background: rgba(0,0,0,0.5);
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	transition: background 0.2s;
}

#grid li:hover a:after {
	background: rgba(0,0,0,0.3);
}

.project-title {
  position:absolute;
  top: 4vw;
  left: 6vw;
  font-size: 2vw;
  line-height: 1.1;
  text-transform:uppercase;
  z-index: 100;
  width: 25%;
}

#grid li:nth-child(3n+2) .project-title,
#grid li:nth-child(3n+3) .project-title {
	width: 45%;
}


/********************* GRID: IMAGES
*/

/* Grayscale, WebKit only
	 Non-standard but whatever
*/

@media screen and (-webkit-min-device-pixel-ratio:0) {
	#grid li {
		filter: grayscale(100%);
	}
	#grid li:hover {
		filter: none;
	}
}

/* Project-specific background images
*/
#grid #bloomberg-esg { background-image: url("/images/projects/bloomberg_esg/bloomberg_esg_12.jpg");
}

#grid #shine { background-image: url("/images/projects/shine/shine_03.jpg");
}

#grid #void { background-image: url("/images/projects/void/void_01.jpg");
}

#grid #nos4a2 {	background-image: url("/images/projects/n0s4a2/n0s4a2_13.jpg");
}

#grid #the-purge-emblem {	background-image: url("/images/projects/the_purge_emblem_melt/emblem_melt_01.jpg");
}

#grid #exxon { background-image: url("/images/projects/exxon/exxon_04.jpg");
}

#grid #pepsico-X-westfield { background-image: url("/images/projects/pepsico_westfield/pepsico_thumbnail.jpg");
}

#grid #espn-2016 { background-image: url("/images/projects/espn_eurocup_2016/espn_eurocup_2016_01.jpg");
}

#grid #underground { background-image: url("/images/projects/underground/underground_07.jpg");
}

#grid #gow-ascension-live { background-image: url("/images/projects/god_of_war_ascension_trailer/god_of_war_ascension_trailer_14.jpg");
}

#grid #gow-ascension-ingame { background-image: url("/images/projects/god_of_war_ascension_in-game_cinematics/god_of_war_ascension_in-game_cinematics_01.jpg");
}

#grid #gow-ascension-teaser { background-image: url("/images/projects/god_of_war_ascension_teaser/god_of_war_ascension_teaser_04.jpg");
}

#grid #cancelled-game { background-image: url("/images/projects/cancelled_game/ar_ping/ar_ping_16.jpg");
}

#grid #espn-2014 { background-image: url("/images/projects/espn_worldcup_2014/espn_worldcup_2014_02.jpg");
}

#grid #hell-on-wheels { background-image: url("/images/projects/hell_on_wheels/hell_on_wheels_07.jpg");
}

#grid #xbox { background-image: url("/images/projects/xbox_one/xbox_one_02-crop.jpg");
}

#grid #rubicon { background-image: url("/images/projects/rubicon/rubicon_03.jpg");
}

#grid #gow-3 { background-image: url("/images/projects/god_of_war_III/god_of_war_III_01.jpg");
}

#grid #witches { background-image: url("/images/projects/witches_of_eastend/witches_of_eastend_09.jpg");
}

#grid #smirnoff { background-image: url("/images/projects/smirnoff/smirnoff_02.jpg");
}

#grid #screenvision { background-image: url("/images/projects/screenvision/screenvision_09.jpg");
}

#grid #re-birth { background-image: url("/images/projects/re-birth/re-birth_01.jpg");
}


/********************* PROJECTS: LAYOUT
*/

a.ui-button {
  z-index: 1000;
  position: fixed;
  display: none;
  margin-top: -1.3vw;
  cursor: pointer;
  top: 50%;
  width: 80px;
}

a.ui-button img {
  border: 0;
  opacity: 0.4;
  transition: opacity 0.5s;
}

.reverseArrow a.ui-button img {
  filter: invert(1);
}

a.ui-button:hover img {
  opacity: 1;
  transition: opacity 0.5s;
}

a.ui-left {
  left: 0;
}

a.ui-right {
  right: 0;
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
	transition: width 0s 0.4s;
}

a.ui-right .next-wrap {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	right: 0;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;
	height: 100%;
	width: 40%;
	font-size: 2.6vw;
	text-transform: uppercase;
	-webkit-transform: rotate(180deg);
	transform: rotate(180deg);
	transition: opacity 0.3s, visibility 0.3s;
}

a.ui-right.show-next-project {
	width: 22vw;
	transition: width 0s;
}

a.ui-right.show-next-project .next-wrap {
	visibility: visible;
	opacity: 1;
	transition: opacity 1s, visibility 0s;
}

.hide {
  display: none;
}

.reveal .title {
  width: 52%;
  padding-left: 10vw;
  padding-top: 20px;
  text-align: left;
}

.title.chapter-next {
  width: 38%;
  float: right;
  padding-right: 5vw;
}

.reveal .chapter-next a:not(.image) {
	color: #fff;
}

.reveal h1 {
  font-size: 5vw;
  margin-bottom: 2vw;
	letter-spacing: -0.02em;
}

.reveal h2 {
  font-size: 58px;
  line-height: 1.3em;
  margin: 0 0 10px;
}

.reveal h3 {
  font-size: 30px;
  line-height: 1.3em;
  margin-bottom: 4vw;
  text-transform: none;
}

.reveal h4 {
  margin-bottom: 10px;
}

.title.chapter-next h1 {
	font-size: 24px;
}

.title.chapter-next h3 {
	font-size: 2.6vw;
	line-height: 1;
	text-transform: uppercase
}

.reveal p {
  font-size: 22px;
  line-height: 1.4em;
  width: 75%;
  margin-bottom: 1.3em;
}


/********************* PROJECTS: VIDEO
*/

.reveal .slides > section {
  height: 100%;
}
.reveal .slides > section.videoPlayer {
  padding: 0;
}

.reveal iframe {
  max-width: 100%;
  max-height: 100%;
}

.videoPlayer {
  width: 100%;
  height: 100%;
  padding-top: 0 !important;
}

video {
  background: url("/images/loader.gif") center center no-repeat;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 75%;
  -webkit-transform: translate3d(-50%,-50%,0);
  transform: translate3d(-50%,-50%,0);
}

video:-webkit-full-screen {
  /* For Safari when user goes fullscreen video */
	width: 100%;
	height: 100%;
	max-height: 100%;
	left: 0;
	top: 0;
	transform: none;
}

.playButton {
	outline: none;
	cursor: pointer;
	border: 0;
	position: absolute;
	z-index: 1000;
	top: 42.7%;
	left: 46.3%;
	width: 8%;
	height: 15%;
	background: url("/images/play-btn.svg") center center no-repeat;
  background-size: 52%;
  text-indent: -9999px;
}

xvideo:hover {
  cursor: pointer;
}

progress {
   cursor: pointer;
   display: none;
   position: absolute;
   width: 100%;
   height: 15px;
   background-color: rgba(0,0,0,0.01);
   bottom: 0;
   left: 0;
   padding: 0 20px 24px;
}

progress::-webkit-progress-bar {
   background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
    height:6px;
}

progress::-webkit-progress-value {
   background-color: #fff;
    border-radius: 3px;
    height:6px;
}

.player .video-wrapper video {
  height:auto;
  position: relative;
  top: 50%;
  transform: translateY(-25%);
}

/* ***** Credits
*/

.videoPlayer .credits-wrap {
	visibility: hidden;
	background: rgba(0,0,0,0);
	width: 100%;
	height: 100%;
	text-align: left;
	overflow: auto;
	position: absolute;
	left: 0;
	top: 0px;
	z-index: 1000;
	transition: background 0.6s, visibility 0.6s;
	transition-delay: 0.1s;
}

.videoPlayer .credits-wrap.credits-active {
	visibility: visible;
	background: rgba(0,0,0,0.8);
	transition: background 0.4s, visibility 0s;
}

.videoPlayer .credits {
  opacity: 0;
	padding: 12% 15% 5%;
  columns: 3 250px;
  column-gap: 4vw;
	-webkit-animation: moveDown 0.4s 1 forwards;
	animation: moveDown 0.4s 1 forwards;
}

.videoPlayer .credits-wrap.credits-active .credits {
	-webkit-animation: moveUp 0.4s 0.2s 1 forwards;
	animation: moveUp 0.4s 0.2s 1 forwards;
}

.videoPlayer .credits p {
	line-height: 1.4;
	width: 100%;
}

.videoPlayer .credits-toggle {
	background: #000;
	display: block;
	cursor: pointer;
	padding-top: 10px;
	height: 25px;
	width: 70px;
	text-align: center;
	position: fixed;
	bottom: 1.5vw;
	left: 50%;
	z-index: 1001;
	margin-left: -35px;
	font-size: 15px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}


/********************* INFO
*/

#info {
	overflow: auto;
}

#info h3 {
  margin-bottom: 2vw;
}


/********************* ANIMATIONS
*/

/* ***** Move up
*/

@-webkit-keyframes moveUp {
	0% {
	opacity: 0;
	-webkit-transform: translate3d(0,20px,0);
}
	100% {
	opacity: 1;
	-webkit-transform: none;
	}
}

@keyframes moveUp {
	0% {
	opacity: 0;
	transform: translate3d(0,20px,0);
}
	100% {
	opacity: 1;
	transform: none;
	}
}


/* ***** Move down
*/

@-webkit-keyframes moveDown {
	0% {
	opacity: 1;
	-webkit-transform: none;
}
	100% {
	opacity: 0;
	-webkit-transform: translate3d(0,20px,0);
	}
}

@keyframes moveDown {
	0% {
	opacity: 1;
	-webkit-transform: none;
}
	100% {
	opacity: 0;
	-webkit-transform: translate3d(0,20px,0);
	}
}


/********************* MEDIA QUERY BREAKPOINTS
*/

/* ***** 1140
*/

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

	.title.chapter-next {
		width: 50%;
	}

	a.ui-right.show-next-project {
	  width: 28vw;
  }

	a.ui-right .next-wrap {
		font-size: 32px;
	}

	#info .title {
	  width: 70%;
	}

	#info .title p {
	  width: 100%;
	}

}

/* ***** 768
*/

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

	#banner h1 {
		width: 140px;
		padding-top: 48px;
	}

	#banner h2 {
		font-size: 25px;
	}

	#grid li, #grid li:nth-child(3n+2),
	#grid li:nth-child(3n+3) {
		height: 58vw;
		width: 100%;
	}

	.project-title {
		font-size: 20px;
		width: 50%;
	}

	a.ui-button {
	  top: 42%;
	  width: 40px;
	}

	a.ui-button img {
	  margin-left: -15px;
	  width: 80px;
	}

	.reveal .title {
		width: 80%;
		padding-left: 8vw;
	}

	.reveal h1, .title.chapter-next h3 {
		font-size: 38.4px;
		margin-bottom: 4vw;
	}

	.reveal h3 {
		font-size: 22px;
		margin-bottom: 5vw;
	}

	.reveal p {
		font-size: 20px;
		width: 85%;
	}

	.title.chapter-next {
		width: 60%;
		padding-right: 8vw;
	}

	a.ui-right.show-next-project {
	  width: 42vw;
  }

	.playButton {
		display: none;
	}

  .videoPlayer .credits {
	  padding: 20% 15% 10%;
  }

  .videoPlayer .credits p {
  	font-size: 20px;
  }

}

/* ***** 480
*/

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

	header {
		width: 88%;
		padding: 15px 6%;
	}

	#banner {
		height: 60vh;
	}

	a.ui-button img {
	  margin-left: -20px;
	}

	.reveal .slides > section.stack {
		overflow: auto;
	}

	.reveal .title {
		padding-top: 15vw;
	}

	.reveal h1 {
		font-size: 32px;
	}

	.videoPlayer .credits-toggle {
		bottom: 5vw;
	}

  .videoPlayer .credits {
	  padding-top: 25%;
  }

	a.ui-right.show-next-project {
	  width: 52vw;
  }

	#info .title {
	  width: 82%;
	  padding-top: 20vw;
	}

}
