@font-face {
	font-family: "Gamay";
	src: url("assets/fonts/.56162.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Gamay";
	src: url("assets/fonts/.56161.otf") format("opentype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--orange: #d75200;
	--black: #000;
	--white: #fff;
	--font: "Gamay", "Helvetica Neue", Arial, sans-serif;
}

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

html,
body {
	margin: 0;
	padding: 0;
}

body {
	background: var(--black);
	color: var(--white);
	font-family: var(--font);
	overflow-x: hidden;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Mobile first: the orange and black halves stack */
.splash {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}

.splash-brand {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 22rem;
	padding: 3rem 1.5rem;
	background: var(--orange);
	overflow: hidden;
	isolation: isolate;

	/* Equipment photo multiplied into the orange */
	& .splash-photo {
		position: absolute;
		inset: 0;
		z-index: -1;
		/* Blend lives here, not on the img: z-index makes this wrapper its own
		   stacking context, so a blend on the child would only see a transparent backdrop */
		mix-blend-mode: multiply;
		opacity: 0.8;

		& img {
			width: 100%;
			height: 100%;
			max-width: none;
			object-fit: cover;
			object-position: center;
		}
	}

	& .splash-logo {
		width: 100%;
		max-width: 28.75rem;
		margin: 0;

		& img {
			width: 100%;
		}
	}
}

.splash-content {
	position: relative;
	display: flex;
	align-items: center;
	flex-grow: 1;
	flex-shrink: 0;
	flex-basis: auto;
	padding: 3.5rem 1.5rem 4rem;
	background: var(--black);

	& .splash-inner {
		width: 100%;
		max-width: 38.75rem;
	}

	& .splash-heading {
		margin: 0 0 1.5rem;
		font-size: clamp(2.25rem, 9vw, 3.5rem);
		font-weight: 700;
		line-height: 0.967;
		text-transform: uppercase;
	}

	& .splash-text {
		max-width: 33.375rem;
		margin: 0 0 2.5rem;
		font-size: 1.125rem;
		line-height: 1.39;
	}

	& .splash-phone {
		display: inline-flex;
		align-items: center;
		gap: 1rem;
		color: var(--white);
		font-size: 1.5rem;
		line-height: 0.967;
		text-decoration: none;
		transition: color 0.2s ease;

		& img {
			width: 1.5rem;
			height: 1.5rem;
			flex-shrink: 0;
		}

		&:hover,
		&:focus-visible {
			color: #fe6302;
		}
	}

	& .splash-credit {
		position: absolute;
		right: 1.5rem;
		bottom: 1.25rem;
		margin: 0;
		color: rgba(255, 255, 255, 0.6);
		font-size: 0.75rem;
		line-height: 1.3;

		& a {
			color: var(--white);
			text-decoration: none;
			transition: color 0.2s ease;

			&:hover,
			&:focus-visible {
				color: #fe6302;
			}
		}
	}
}

@media (min-width: 601px) {
	.splash-brand {
		min-height: 30rem;
		padding: 4rem 2.5rem;
	}

	.splash-content {
		padding: 5rem 2.5rem;

		& .splash-text {
			font-size: 1.375rem;
		}

		& .splash-phone {
			font-size: 1.875rem;

			& img {
				width: 1.75rem;
				height: 1.75rem;
			}
		}
	}
}

/* Large and up: side by side, full viewport height */
@media (min-width: 1024px) {
	.splash {
		flex-direction: row;
		height: 100vh;
		min-height: 40rem;
	}

	.splash-brand,
	.splash-content {
		flex-grow: 0;
		flex-shrink: 0;
		flex-basis: 50%;
		min-height: 0;
	}

	.splash-brand {
		padding: 2rem 3rem;
	}

	.splash-content {
		padding: 2rem 2rem 2rem 4.125rem;

		& .splash-heading {
			margin-bottom: 2.25rem;
			font-size: clamp(3rem, 5.14vw, 4.625rem);
		}

		& .splash-text {
			margin-bottom: 4.5rem;
			font-size: clamp(1.25rem, 1.8vw, 1.625rem);
		}

		& .splash-phone {
			gap: 1.4375rem;
			font-size: clamp(1.75rem, 2.49vw, 2.25rem);

			& img {
				width: 1.98rem;
				height: 1.98rem;
			}
		}
	}
}

/* Logo grows in first, then the content fades in to the right, staggered 100ms */
@keyframes growIn {
	from {
		opacity: 0;
		transform: scale(0.25);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes fadeRight {
	from {
		opacity: 0;
		transform: translateX(-2rem);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.splash-brand {
	& .splash-logo {
		animation-name: growIn;
		animation-duration: 1s;
		animation-delay: 0.2s;
		animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
		animation-fill-mode: both;
	}
}

.splash-content {
	& .splash-heading,
	& .splash-text,
	& .splash-phone {
		animation-name: fadeRight;
		animation-duration: 1s;
		animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
		animation-fill-mode: both;
	}

	& .splash-heading {
		animation-delay: 0.5s;
	}

	& .splash-text {
		animation-delay: 0.65s;
	}

	& .splash-phone {
		animation-delay: 0.8s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.splash-brand .splash-logo {
		animation: none;
	}

	.splash-content {
		& .splash-heading,
		& .splash-text,
		& .splash-phone {
			animation: none;
		}
	}
}
