@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,900");

*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
}

body {
	background: #fff;
	color: #fff;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 15pt;
	font-weight: 300;
	letter-spacing: -0.025em;
	line-height: 1.75em;
	overflow: hidden;
	-webkit-text-size-adjust: none;
}

body.is-preload *, body.is-preload *::before, body.is-preload *::after {
	animation: none !important;
	transition: none !important;
}

:root {
	--bg-width: 2250px;
}

@media screen and (max-width: 1680px) {
	:root { --bg-width: 1500px; }
	body { font-size: 13pt; }
}

@media screen and (max-width: 1280px) {
	:root { --bg-width: 750px; }
	body { font-size: 12pt; }
}

@media screen and (max-width: 736px) {
	:root { --bg-width: 300px; }
	body { font-size: 11pt; min-width: 320px; }
	#header h1 { font-size: 2.5em; }
	#header p { font-size: 1em; }
}

@media screen and (max-width: 480px) {
	:root { --bg-width: 412.5px; }
}

@keyframes wrapper {
	to { opacity: 1; }
}

@keyframes overlay {
	to { opacity: 1; }
}

@keyframes header {
	to {
		transform: translate3d(0, 0, 0);
		opacity: 1;
	}
}

@keyframes bg {
	to { transform: translate3d(calc(-1 * var(--bg-width)), 0, 0); }
}

#wrapper {
	animation: wrapper 3s forwards;
	height: 100%;
	left: 0;
	opacity: 0;
	position: fixed;
	top: 0;
	width: 100%;
}

#bg {
	animation: bg 60s linear infinite;
	backface-visibility: hidden;
	transform: translate3d(0, 0, 0);
	background: #348cb2 url("images/bg.jpg") bottom left repeat-x;
	background-size: var(--bg-width) auto;
	height: 100%;
	left: 0;
	position: fixed;
	top: 0;
	width: calc(var(--bg-width) * 3);
}

#overlay {
	animation: overlay 1.5s 1.5s forwards;
	background: url("images/overlay.svg") center center / cover no-repeat fixed;
	height: 100%;
	left: 0;
	opacity: 0;
	position: fixed;
	top: 0;
	width: 100%;
}

#main {
	height: 100%;
	left: 0;
	position: fixed;
	text-align: center;
	top: 0;
	width: 100%;
}

#main::before {
	content: '';
	display: inline-block;
	height: 100%;
	vertical-align: middle;
	width: 1px;
}

#header {
	animation: header 1s 2.25s forwards;
	backface-visibility: hidden;
	transform: translate3d(0, 1em, 0);
	cursor: default;
	display: inline-block;
	opacity: 0;
	position: relative;
	text-align: center;
	top: -1em;
	vertical-align: middle;
	width: 90%;
}

#header h1 {
	font-size: 4.35em;
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1em;
	margin: 0;
}

#header p {
	font-size: 1.25em;
	margin: 0.75em 0 0;
	opacity: 0.75;
}
