*, *::before, *::after {
	margin: 0;
	padding: 0;
	border: none;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
:root {
	--brand_color: #DE3021;
	--brand_color2: #21CFDE;
	--site_border_width: 100vw;
	--site_border_width: .75rem;

	--spacer: 1.75rem;
}
html {
	color: #000;
	font-size: 20px;
	font-size: 1.25vw;
	font-family: Helvetica, Arial, sans-serif;
	font-family: "Heebo", sans-serif;
	line-height: 1.4;
}
body {
	position: relative;
	padding-left: var(--site_border_width);
	background: #F7F7F7;
}
#loading {
	position: fixed;
	z-index: 10;
	top: 0;
	left: 0;
	width: var(--site_border_width);
	height: 100%;
	background: var(--brand_color);
	transition: width 1s cubic-bezier(.75,0,.16,1);
	overflow: hidden;
}
#loading::after {
	position: absolute;
	top: calc(var(--spacer) / 2);
	left: calc(var(--spacer) / 2);
	width: calc(100vw - var(--spacer));
	height: calc(100vh - var(--spacer));
	background: #000;
	mask: url("../images/logo.svg");
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	cursor: pointer;
	content: '';
}
body::before {
	position: fixed;
	z-index: 10;
	top: 0;
	left: 0;
	width: var(--site_border_width);
	height: 100%;
	background: var(--brand_color);
	/* content: ''; */
	transition: width .75s ease;
}
body::after {
	position: fixed;
	z-index: 9;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--spacer);
	background: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 60%);
	/* content: ''; */
}
aside {
	position: fixed;
	top: 0;
	left: var(--site_border_width);
	display: flex;
	width: calc(17.5rem + (var(--spacer) * 2));
	gap: var(--spacer);
	flex-direction: column;
	align-content: flex-start;
	padding: var(--spacer);
	z-index: 1;
	height: 100vh;
}
aside nav {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	font-size: 3.75rem;
	text-align: center;
	line-height: 1;
	font-family: "Bebas Neue", system-ui;
}
aside nav a {
	position: relative;
	display: block;
	text-decoration: none;
	transition: scale .3s ease;
}
aside nav a:hover span,
aside nav a.active span {
	color: var(--brand_color);
	scale: 1.035;
}
aside nav a::before {
	position: absolute;
	z-index: -1;
	top: -15%;
	left: calc(-1 * var(--spacer) - var(--site_border_width));
	width: calc(var(--site_border_width) * 1.5);
	width: auto;
	height: 130%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--brand_color);
	content: '';
	translate: -100% 0;
	transition: transform, translate .3s ease;
	content: '';
}
@keyframes gelatin {
	0%, 100% {
		transform: scale(1, 1);
	}
	25% {
		transform: scale(.9, 1.1);
	}
	50% {
		transform: scale(1.1, .9);
	}
	75% {
		transform: scale(.95, 1.05);
	}
}
aside nav a span {
	position: relative;
	display: inline-block;
	transition: scale .3s ease, color .3s ease;
}
aside nav a span::after {
	position: absolute;
	bottom: .05em;
	left: 0;
	width: 100%;
	height: .25rem;
	background: currentcolor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
	transition-delay: .1s;
	content: '';
}
aside nav a:hover span::after,
aside nav a.active span::after {
	transform: scaleX(1);
}
aside nav a:hover::before,
aside nav a.active::before {
	translate: calc(-50% - (var(--site_border_width) / 2)) 0;
	animation: gelatin .5s;
}
aside nav .social img {
	width: 2rem;
}
#logo-wrap {
	position: relative;
}
#logo-wrap::before {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 2rem;
	height: 100%;
	transform: rotate(24deg) scaleY(1.5);
	background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 45%, rgba(216, 216, 216, 0) 100%);
	content: "";
	translate: -3rem 0;
	animation: shimmer 10s linear infinite;
}
@keyframes shimmer {
	0% {
		left: 0;
		opacity: 0;
	}
	5% {
		opacity: .3;
	}
	8.5% {
		opacity: 0;
	}
	10%, 100% {
		opacity: 0;
		left: 130%
	}
}
#logo {
	width: 17.5rem;
	height: 12rem;
	background: var(--brand_color);
	mask: url("../images/logo.svg");
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	cursor: pointer;
}
#logo-wrap:hover {
	/* animation: gelatin .5s;	 */
}
#logo-wrap .rings {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 0;
	width: 13%;
	aspect-ratio: 1;
	translate: 0 -2px;
}
#logo-wrap .rings::before,
#logo-wrap .rings::after {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 2px solid rgba(0, 0, 0, .05);
	animation: rings 3s linear infinite;
	content: '';
}
#logo-wrap .rings::after {
	animation-delay: .4s;
}
#logo-wrap .rings + .rings {
	left: auto;
	right: 0;
}
@keyframes rings {
	0% {
		opacity: 0;
		scale: 1;
	}
	10% {
		opacity: 1;
	}
	20% {
		opacity: 1;
	}
	30%, 100% {
		opacity: 0;
		scale: 1.75;
	}
}
main {
	display: flex;
	flex-direction: column;
	margin-left: calc(18rem + (var(--spacer) * 2));
	/* margin-right: var(--spacer); */
	padding: var(--spacer);
	gap: var(--spacer);
}
main .image-wrap {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
}
main .image-wrap img {
	flex-basis: 50%;
	height: 20rem;
	background: #EEE;
}
main p.intro {
	font-size: 1.25rem;
	line-height: 1.25;
	font-weight: 300;
}
main > img {
	width: 3rem;
	rotate: -45deg;
	margin-left: 2rem;
}
a {
	color: inherit;
}
.content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: var(--spacer);
	gap: var(--spacer);
	border-top: .5rem solid #000;
	border-bottom: .5rem solid #000;
	overflow: hidden;
	background: #FFF;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 20px;
}
.content:has(.button:last-child) {
	padding-bottom: calc(var(--spacer) + 3.5rem);
	border-bottom: none;
}
.content:has(.button:last-child):has(> h2) {
	padding-bottom: calc(var(--spacer) + 1.75rem);
}
.content h2 {
	width: 100%;
	margin-top: -3rem;
	font-size: 6rem;
	font-weight: 600;
	color: #000;
	color: var(--brand_color);
	text-decoration: none;
	font-family: "Bebas Neue", system-ui;
	white-space: nowrap;
	order: 1;
	translate: 0 30%;
}
.content:has(h2) {
	padding-bottom: 0;
}
.content h2 span {
	position: relative;
	display: inline-block;
	white-space: nowrap;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}
.content h2 > span {
	position: relative;
	display: none;
}
.content h2 > span:has(span) {
	display: inline-block;
}
.content h2 > span span {
	display: inline-block;
	translate: 0 100%;
}
.content h3 {
	text-transform: uppercase;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -.02em;
}

/* --- Values --- */

.content:has(.values) {
	padding: var(--spacer) 0 0;
	gap: 0;
}
.content:has(.values) h2 {
	padding-left: var(--spacer);
}
.content:has(.values) > p {
	padding: 0 var(--spacer) var(--spacer);
}
.values {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}
.values h3 {
	grid-row: 1;
	grid-column: 2;
}
.values h3 span {
	display: none;
}
.values p {
	grid-column: 2;
	grid-row: 2;
	font-size: .9rem;
}
.values > div {
	position: relative;
	display: grid;
	padding: 1.25rem 1rem 1.25rem var(--spacer);
	grid-template-columns: 2.5rem 1fr;
	grid-template-rows: auto 1fr;
	gap: 0 .5rem;
}
.values div::after {
	position: absolute;
	z-index: -1;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: #EEE;
	content: '';
}
.values > ::before {
	grid-column: 1;
	grid-row: 1 / 3;
	display: flex;
	justify-content: center;
	color: var(--brand_color);
	font-size: 5.5rem;
	font-family: "Bebas Neue", system-ui;
	line-height: .9;
	font-weight: 800;
	/* background: #FFF; */
}
.values > :nth-child(even)::before {
	/* background: #EEE; */
}
.values > :nth-child(odd) {
	/* background: #F9F9F9; */
}
.values > :nth-child(1)::before { content: "A"; }
.values > :nth-child(2)::before { content: "F"; }
.values > :nth-child(3)::before { content: "F"; }
.values > :nth-child(4)::before { content: "E"; }
.values > :nth-child(5)::before { content: "C"; }
.values > :nth-child(6)::before { content: "T"; }

/* --- Logo Grid --- */

.content.logos {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	padding: var(--spacer) var(--spacer) 0;
	align-items: center;
	justify-items: center;
	gap: 0 var(--spacer);
}
.content.logos h2 {
	width: calc(100% + (var(--spacer) * 2) + 10px);
}
.content.logos img {
	max-width: 100%;
	transition: scale .3s ease;
}
.content.logos img:hover {
	scale: 1.05;
}

/* --- Projects --- */

.content.projects {
	padding: 0;
	gap: 0;
}
.content.projects h2 {
	grid-column: 1 / -1;
	grid-row: 2;
	padding-left: var(--spacer);
}
.project-wrap {
	display: flex;
	width: 100%;
	gap: 0;
}
.project-wrap > div {
	display: flex;
	padding-bottom: var(--spacer);
	flex-direction: column;
	flex: 0 0 50%;
	gap: 0;
}
.project-wrap > div:nth-child(even) {
	background: #F1F1F1;
}
.project-wrap div > :not(img) {
	padding: 0 var(--spacer);
}
.project-wrap div h3 {
	margin-bottom: .5rem;
	line-height: 1;
	font-size: 1.25rem;
}
.project-wrap div img {
	width: 100%;
	margin-bottom: var(--spacer);
	aspect-ratio: 1.75 / 1;
	background: #EEE;
}
.content.projects p {
	font-size: .9rem;
}

/* --- Client Map --- */

.content:has(#client-map) {
	width: 100%;
	aspect-ratio: 1.5 / 1;
	padding: 0;
}
.content:has(#client-map) h2 {
	position: absolute;
	z-index: 5;
	bottom: 0;
	left: var(--spacer);
}
#client-map {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* --- Services --- */

.content.services {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	font-size: .9rem;
	gap: 0 var(--spacer);
}
.content.services::before {
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	width: 100%;
	height: 200px;
	background: transparent url("../images/code.jpg") no-repeat center;
	background-size: cover;
	/* content: ''; */
}
.content.services h2 {
	grid-column: 1 / -1;
}
.content.services div:not(:nth-last-child(1)):not(:nth-last-child(2)) {
	margin-bottom: var(--spacer);
}
.content.services div {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}
.content.services div p {
	padding-right: .5rem;
}
.content.services div h3 {
	display: flex;
	gap: .5rem;
	align-items: center;
	color: var(--brand_color);
}
.content.services div h3 img {
	width: 2rem;
}

/* --- Button --- */

.button {
	position: absolute;
	z-index: 2;
	bottom: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 3.5rem;
	padding: 0 var(--spacer);
	line-height: 3.5rem;
	font-size: 1.5rem;
	color: #FFF;
	text-decoration: none;
	background: #000;
	font-family: "Bebas Neue", system-ui;
	overflow: hidden;
}
.button::before {
	position: absolute;
	z-index: 1;
	top: 50%;
	right: var(--spacer);
	width: 2rem;
	height: 2rem;
	background: var(--brand_color);
	border-radius: 50%;
	translate: 0 -50%;
	content: '';
}
.button::after {
	position: absolute;
	z-index: 2;
	top: 50%;
	right: var(--spacer);
	width: 2rem;
	height: 2rem;
	background: transparent url("../images/right-arrow.svg") no-repeat 50% 50%;
	background-size: 50% auto;
	translate: 0 -50%;
	content: '';
	overflow: hidden;
}
.button span {
	position: relative;
}
.button span::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: #FFF;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s ease;
	content: '';
}
.button:hover {
	background: var(--brand_color);
}
.button:hover span::after {
	transform: scaleX(1);
}
.button:hover::before {
	background: #FFF;
}
.button:hover::after {
	animation: button-arrow 3s 1s ease infinite;
}
@keyframes button-arrow {
	0%, 20%, 100% {
		background-position: 50% 50%;
	}
	10% {
		background-position: 250% 50%;
	}
	10.1% {
		background-position: 250% 250%;
	}
	10.2% {
		background-position: -250% 250%;
	}
	10.3% {
		background-position: -250% 50%;
	}
}


/* --- Mapbox --- */

.mapboxgl-popup-content {
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 20px !important;
}
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
	border-top-color: #000 !important;
}
.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
	border-bottom-color: #000 !important;
}
.custom-popup {
	padding: 0;
	font-family: "Heebo", sans-serif;
	font-size: .9rem;
	color: #000;
	background-color: #FFF;
	border: none;
	border-radius: 0;
}
.popup-header {
	display: none;
	font-size: 1.1rem;
	padding: .75rem 1rem;
	font-family: "Bebas Neue", system-ui;
	text-transform: uppercase;
	color: #FFF;
	background: #000;
}
.popup-content {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	font-size: .8rem;
	gap: 1rem;
	border-top: .3rem solid #000;
	border-bottom: .3rem solid #000;
}
.popup-content img {
	max-width: 8rem;
}
.mapboxgl-popup-close-button {
	right: .6rem !important;
	color: #FFF !important;
	font-size: 2rem !important;
}
.mapboxgl-popup-close-button:focus {
	outline: none;
}


/* --- Media Query Overrides --- */

@media (max-width: 800px) {
	:root {
		--spacer: 1.25rem;
	}
	html {
		font-size: 16px;
	}
	body {
		padding-left: 0;
	}
	aside {
		display: none;
	}
	main {
		margin-left: 0;
		padding: 1rem 1rem 5rem;
	}
	#loading {
		display: none;
	}
	.project-wrap {
		flex-direction: column;
	}
	.content:not(:has(#client-map)) h2 {
		margin-top: -1rem;
		translate: 0 25%;
	}
	.content.services, .values {
		grid-template-columns: 1fr;
	}
}