/* viewport */
@-ms-viewport {
	width: device-width;
	zoom: 1;
	min-zoom: 1;
	user-zoom: zoom;
}
@viewport {
	width: device-width;
	zoom: 1;
	min-zoom: 1;
	user-zoom: zoom;
}


/* reset and general */
*, *:before, *:after {
	margin: 0;
	padding: 0;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
html, body {
	background: #229583;
	color: #ffffff;
	height: auto;
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
html {
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
button {
	cursor: pointer;
}
html, button, input, textarea {
	font-family: 'Source Sans Pro', sans-serif;
}
*[hidden] {
	display: none !important;
}


/* content container */
main {
	overflow: hidden;
	background: #101010;
	color: #ffffff;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}


/* sidebar */
@media (min-aspect-ratio: 1/1) {
	header {
		position: absolute;
		top: 0;
		bottom: 0;
		width: 30%;
		min-width: 300px;
		max-width: 600px;
		z-index: 2;
	}
	header::before {
		content: '';
		position: absolute;
		width: 100%;
		height: 100%;
		-webkit-transform: skewX(-8deg);
		transform: skewX(-8deg);
		-webkit-transform-origin: top right;
		transform-origin: top right;
		background: #229583;
	}
	header > div {
		overflow: hidden;
		position: absolute;
		left: 5%;
		right: 20%;
		top: 50%;
		-webkit-transform: translateY(-50%);
		transform: translateY(-50%);
	}
	header h1 {
		position: relative;
		width: 100%;
		padding: 0 0 84.89% 0;
		overflow: hidden;
		font-size: 1px;
		color: rgba(0,0,0,0);
	}
	header h1::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: url('logo-landscape.svg') top left no-repeat;
		background-size: contain;
	}
	header p {
		font-size: 20.8px;
		line-height: 1.075;
		margin: 24px 15% 24px 6.5%;
	}
	header button {
		display: block;
		border: none;
		border-radius: 8px;
		padding: 12px 0 13px 0;
		width: 70%;
		margin: 0 auto 0 6.5%;
		text-decoration: none;
		background-color: #1b7769;
		color: #ffffff;
		font-size: 17.6px;
		text-align: center;
		line-height: 1.15;
		-webkit-transition: background 200ms ease-out;
		transition: background 200ms ease-out;
		-webkit-appearance: none;
		-moz-appearance: none;
	}
	header button:hover {
		background: #ff6e2b;
	}
}
/* smaller */
@media (min-aspect-ratio: 1/1) and (max-height: 459px), (min-aspect-ratio: 3/1) {
	header {
		width: 250px;
		min-width: 250px;
	}
	header p {
		font-size: 14px;
		margin: 8px 0 10px 6.5%;
	}
	header button {
		font-size: 15px;
		padding: 8px 0 9px 0;
	}
}
/* really small letterbox */
@media (min-aspect-ratio: 1/1) and (max-height: 320px) {
	header h1 {
		width: 60%;
		padding: 0 0 50.93% 0;
		margin: 0 0 0 2%;
	}
}
/* portrait */
@media (max-aspect-ratio: 1/1) {
	header {
		position: absolute;
		top: 0;
		left: 0;
		width: 100vw;
		height: 59vw;
		z-index: 2;
	}
	header::before {
		content: '';
		position: absolute;
		width: 100%;
		height: 100%;
		-webkit-transform: skewY(-8deg);
		transform: skewY(-8deg);
		-webkit-transform-origin: bottom left;
		transform-origin: bottom left;
		background: #229583;
	}
	header h1 {
		position: relative;
		width: 90vw;
		height: 26.25vw;
		overflow: hidden;
		font-size: 1px;
		color: rgba(0,0,0,0);
		background: url('logo-portrait.svg') top left no-repeat;
		background-size: contain;
		margin: 5vw 5vw 3vw 5vw;
	}
	header p {
		position: relative;
		font-size: 4.15vw;
		line-height: 1.1;
		margin: 0 5vw 0 5vw;
	}
	header p span {
		display: block;
	}
	header button {
		display: none;
	}
}


/* form */
section {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0,0,0,0.8);
	z-index: 0;
	opacity: 0;
}
section.on {
	opacity: 1;
	z-index: 4;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}
section > div {
	overflow: hidden;
	background: #1b7769;
	border-radius: 8px;
	padding: 16px 20px 20px 20px;
	width: calc(100% - 20px);
	max-width: 500px;
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}
section > div > button {
	border: none;
	text-decoration: none;
	background: none;
	color: #ffffff;
	font-size: 32px;
	font-weight: 700;
	-webkit-transition: color 200ms ease-out;
	transition: color 200ms ease-out;
	-webkit-appearance: none;
	-moz-appearance: none;
	position: absolute;
	top: 0;
	right: 0;
	padding: 16px 20px 20px 20px;
	line-height: 20px;
}
section h2 {
	font-weight: 700;
	font-size: 24px;
	line-height: 1;
	margin: 0 0 10px 0;
}
section p {
	font-size: 16px;
}
section p span {
	font-size: 12px;
}
section input[type="text"], section input[type="email"], section textarea {
	display: block;
	width: 100%;
	border-radius: 4px;
	font-size: 16px;
	padding: 6px 12px 6px 12px;
	background: #ffffff;
    border: 1px solid #ced4da;
	margin: 4px 0 10px 0;
}
section textarea {
	height: 100px;
}
section input[aria-hidden="true"] {
	width: 0;
	height: 0;
	padding: 0;
	margin: 0;
	border: none;
	font-size: 1px;
	opacity: 0;
	position: absolute;
	z-index: -1;
}
section form button {
	float: right;
	border: none;
	border-radius: 8px;
	padding: 12px 20px 13px 20px;
	margin: 0 auto 0 6.5%;
	text-decoration: none;
	background-color: #229583;
	color: #ffffff;
	font-size: 17.6px;
	text-align: center;
	line-height: 1.15;
	-webkit-transition: background 200ms ease-out;
	transition: background 200ms ease-out;
	-webkit-appearance: none;
	-moz-appearance: none;
}
section form button:hover {
	background: #ff6e2b;
}
section form button:disabled {
	background: #808080;
	cursor: default;
}
/* height tight */
@media (max-height: 419px) {
	section textarea {
		height: 60px;
	}
	section input[type="text"], section input[type="email"], section textarea {
		padding: 2px 12px 3px 12px;
		margin: 1px 0 4px 0;
	}
	section form button {
		padding: 8px 20px 9px 20px;
	}
}
/* really small */
@media (max-height: 320px) {
	section h2 {
		font-size: 16px;
		margin: 0 0 2px 0;
	}
	section p {
		font-size: 14px;
	}
	section input[type="text"], section input[type="email"], section textarea {
		padding: 0 12px 1px 12px;
		margin: 0 0 2px 0;
	}
	section form button {
		padding: 4px 20px 5px 20px;
		font-size: 16px;
	}
}


/* social links */
nav ul {
	list-style: none;
}
nav a {
	position: absolute;
	overflow: hidden;
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	margin: 16px 0 0 0;
	font-size: 1px;
	color: rgba(0,0,0,0);
	background: #1b7769;
	background-repeat: no-repeat;
	-webkit-transition: background-color 200ms ease-out;
	transition: background-color 200ms ease-out;
	z-index: 3;
	right: 32px;
}
nav a:hover {
	background-color: #ff6e2b;
}
nav li:nth-child(1) a {
	bottom: 112px;
}
nav li:nth-child(2) a {
	bottom: 32px;
}
nav a#navTwitter {
	background-image: url('twitter.svg');
	background-position: 50% 50%;
	background-size: 75% auto;
}
nav a#navFacebook {
	background-image: url('facebook.svg');
	background-position: 38% 36%;
	background-size: 65% auto;
}
nav button {
	display: none;
}
/* smaller */
@media (min-aspect-ratio: 1/1) and (max-height: 539px), (min-aspect-ratio: 1/1) and (max-width: 539px) {
	nav a {
		width: 48px;
		height: 48px;
	}
	nav li:nth-child(1) a {
		bottom: 84px;
	}
	nav li:nth-child(2) a {
		bottom: 24px;
	}
}
/* really small letterbox */
@media (min-aspect-ratio: 1/1) and (max-height: 320px) {
	nav li:nth-child(1) a {
		bottom: 72px;
	}
	nav li:nth-child(2) a {
		bottom: 12px;
	}
}
/* portrait */
@media (max-aspect-ratio: 1/1) {
	nav li:nth-child(1) a {
		bottom: 32px;
		right: calc(5vw + 80px);
	}
	nav li:nth-child(2) a {
		right: 5vw;
	}
	nav button {
		display: block;
		position: absolute;
		bottom: 32px;
		left: 5vw;
		border: none;
		border-radius: 8px;
		padding: 0 40px 0 40px;
		height: 64px;
		text-decoration: none;
		background-color: #1b7769;
		color: #ffffff;
		font-size: 17.6px;
		text-align: center;
		line-height: 1.15;
		-webkit-transition: background 200ms ease-out;
		transition: background 200ms ease-out;
		-webkit-appearance: none;
		-moz-appearance: none;
		z-index: 3;
	}
	nav button:hover {
		background: #ff6e2b;
	}
}
/* smaller portrait */
@media (max-aspect-ratio: 1/1) and (max-width: 639px) {
	nav a {
		width: 48px;
		height: 48px;
	}
	nav li:nth-child(1) a {
		right: calc(5vw + 60px);
		bottom: 24px;
	}
	nav li:nth-child(2) a {
		right: 5vw;
		bottom: 24px;
	}
	nav button {
		bottom: 24px;
		padding: 0 30px 1px 30px;
		height: 48px;
	}
}


/* background */
video {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	z-index: 1;
}


/* non-js bits */
html:not([data-js]) header button, html:not([data-js]) section, html:not([data-js]) nav button {
	visibility: hidden;
}
html:not([data-js]) video {
	display: none;
}
html:not([data-js]) main {
	background: #101010 url('bg-landscape.jpg') center center no-repeat;
	background-size: cover;
}
