html.js,
.js body {
	overflow: hidden;
	height: 100vh;
}

/* Pages nav */

.pages-nav {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
	align-items: center;
	padding: 20px;
	text-align: center;
	background: #0e0f0f;
}

.js .pages-nav {
	position: absolute;
	top: 0;
	right: 0;
	width: 28%;
    height: 100%;
    padding: 9vh 1vw;
	pointer-events: none;
	opacity: 0;
	background: transparent;
	-webkit-transition: -webkit-transform 1.2s, opacity 1.2s;
	transition: transform 1.2s, opacity 1.2s;
	-webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
	transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
	-webkit-transform: translate3d(150px, 0, 0);
	transform: translate3d(150px, 0, 0);
}

.js .pages-nav--open {
	pointer-events: auto;
	opacity: 1;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}

.pages-nav__item {
	width: 50%;
	padding: 1em;
}

.js .pages-nav__item {
	padding: 0 10%;
}

.pages-nav .pages-nav__item--social {
	width: 100%;
	opacity: 0;
	-webkit-transition: -webkit-transform 1.2s, opacity 1.2s;
	transition: transform 1.2s, opacity 1.2s;
	-webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
	transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
	-webkit-transform: translate3d(-20px, 0, 0);
	transform: translate3d(-20px, 0, 0);
}

.pages-nav--open .pages-nav__item--social {
	opacity: 1;
	-webkit-transition-delay: 0.35s;
	transition-delay: 0.35s;
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
}

.link {
	font-size: 1.3vw;
	font-weight: lighter;
	position: relative;
	padding: 1.7vh;
}

.link:hover,
.link:focus {
	color: #eee;
}

.pages-nav__item a {
	display: block;
	color: #fff;
}

.pages-nav__item a:not(.link--faded)::before {
	content: '';
	position: absolute;
	top: 100%;
	right: calc(50% - 3.5vh);
	width: 7vh;
	height: 1px;
	margin: 5px 0 0 -15px;
	background: #fff;
	-webkit-transition: -webkit-transform 0.3s;
	transition: transform 0.3s;
	-webkit-transform: scale3d(0, 1, 1);
	transform: scale3d(0, 1, 1);
}

.pages-nav__item a:hover:before {
	-webkit-transform: scale3d(1, 1, 1);
	transform: scale3d(1, 1, 1);
}

.link--faded {
	color: #eee;
	font-size: 1.7vh;
}

.link--faded:hover,
.link--faded:focus {
	color: #b0b1f1;
}

.link--social {
	font-size: 3vh;
	margin: 0 0.75em;
}

.text-hidden {
	position: absolute;
	display: block;
	overflow: hidden;
	width: 0;
	height: 0;
	color: transparent;
}

/* Pages stack */

.js .pages-stack {
	z-index: 100;
	pointer-events: none;
	-webkit-perspective: 1200px;
	perspective: 1200px;
	-webkit-perspective-origin: 50% -50%;
	perspective-origin: 50% -50%;
}

.js .page {
	position: relative;
	z-index: 5;
	overflow: hidden;
	width: 100%;
	height: 100vh;
	pointer-events: auto;
	background: #2a2b30;
	box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1), 1em 0 7em rgba(0, 0, 0, 0.3);
}

.js .pages-stack--open .page {
	cursor: pointer;
	-webkit-transition: -webkit-transform 0.45s, opacity 0.45s;
	transition: transform 0.45s, opacity 0.45s;
	-webkit-transition-timing-function: cubic-bezier(0.6, 0, 0.4, 1);
	transition-timing-function: cubic-bezier(0.6, 0, 0.4, 1);
}

.js .page--inactive {
	position: absolute;
	z-index: 0;
	top: 0;
	opacity: 0;
}

/* page content */

.info {
	font-size: 1.25em;
	max-width: 50%;
	margin-top: 1.5em;
}

/* Menu button */

.back-button {
	color: #fff;
	position: fixed;
	z-index: 1000;
	top: 4vh;
	right: 6.1vw;
	width: 4.7vh;
	height: 4vh;
	padding: 0;
	cursor: pointer;
	border: none;
	outline: none;
	background: transparent;
	font-size: 2.5vh;
}

.menu-button {
	position: fixed;
	z-index: 1000;
	top: 4vh;
	right: 6.1vw;
	width: 4.7vh;
	height: 4vh;
	padding: 0;
	cursor: pointer;
	border: none;
	outline: none;
	background: transparent;
}

.no-js .menu-button {
	display: none;
}

.menu-button::before,
.menu-button::after,
.menu-button span {
	background: #fff;
}

.menu-button::before,
.menu-button::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	pointer-events: none;
	-webkit-transition: -webkit-transform 0.25s;
	transition: transform 0.25s;
	-webkit-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
}

.menu-button span {
	position: absolute;
	left: 0;
	overflow: hidden;
	width: 100%;
	height: 2px;
	text-indent: 200%;
	-webkit-transition: opacity 0.25s;
	transition: opacity 0.25s;
}

.menu-button::before {
	-webkit-transform: translate3d(0, -1.3vh, 0) scale3d(0.8, 1, 1);
	transform: translate3d(0, -1.3vh, 0) scale3d(0.8, 1, 1);
}

.menu-button::after {
	-webkit-transform: translate3d(0, 1.3vh, 0) scale3d(0.8, 1, 1);
	transform: translate3d(0, 1.3vh, 0) scale3d(0.8, 1, 1);
}

.menu-button--open span {
	opacity: 0;
}

.menu-button--open::before {
	-webkit-transform: rotate3d(0, 0, 1, 45deg);
	transform: rotate3d(0, 0, 1, 45deg);
}

.menu-button--open::after {
	-webkit-transform: rotate3d(0, 0, 1, -45deg);
	transform: rotate3d(0, 0, 1, -45deg);
}

@media screen and (max-width: 60em) {
	.info {
		max-width: 100%;
	}
	.pages-nav__item {
		width: 100%;
		min-height: 20px;
	}
	.pages-nav__item a {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		font-size: 2.1vh;
		padding: 1.4vh;
	}
	.link--social {
		margin: 0 0.1em;
	}
}

@media screen and (max-width: 70em) and (orientation:portrait) {
	.js .pages-nav {
		width: 100%;
		height: 50vh;
		display: block;
		padding: 7vh 20px 0 20px;
		text-align: right;
	}
	.js .pages-nav__item {
		width: 100%;
		padding: 0;
	}
	.js .pages-nav__item--small {
		width: auto;
		margin-right: 5px;
	}
	.pages-nav__item--social {
		font-size: 0.9em;
	}
	.menu-button {
		top: 3vh;
		right: 7vw;
		left: auto;
	}
	.back-button {
		top: 3vh;
		right: 7vw;
		left: auto;
		font-size: 3.5vh;
	}
	.info {
		font-size: 0.85em;
	}
}
