@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Hedvig Letters Serif";
	src: url("../fonts/hedvig-letters-serif-v4-latin-regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

html {
	font-size: 62.5%; /* 1rem = 10px */
	scrollbar-gutter: stable;
	background: var(--cream);
}

:root {
	--teal-bg: #20514c;
	--teal-text: #06302d;
	--burgundy: #470928;
	--sage: #bfd1c6;
	--cream: #efe8df;
	--text-dark: #101111;
}

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

body {
	margin: 0;
	background: var(--burgundy);
	color: var(--text-dark);
	font-family: "Inter", system-ui, sans-serif;
	font-size: 1.6rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1,
h2,
h3 {
	font-family: "Hedvig Letters Serif", Georgia, serif;
	font-weight: 400;
	margin: 0;
}

p {
	margin: 0;
}

a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.3s ease;
}

a:hover {
	text-decoration-color: currentColor;
}

img {
	display: block;
	max-width: 100%;
	pointer-events: none;
}

.container {
	width: 100%;
	max-width: 120rem;
	margin: 0 auto;
	padding: 0 4rem;
}

.eyebrow {
	font-size: 1.6rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* =========================
   LOADER
   ========================= */
.loader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background-color: var(--teal-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.loader.is-gone {
	background-color: transparent;
	pointer-events: none;
}

.loader.is-done {
	visibility: hidden;
}

.loader-logo {
	width: 24rem;
	max-width: 70vw;
	transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.loader.is-gone .loader-logo {
	opacity: 0;
}

.loader-logo svg {
	display: block;
	width: 100%;
	height: auto;
}

.altevo-letter {
	opacity: 0;
	transform: translateY(4rem);
	animation: letter-in 0.525s cubic-bezier(0.22, 1, 0.36, 1) var(--delay-in, 0ms) forwards;
}

@keyframes letter-in {
	from {
		opacity: 0;
		transform: translateY(4rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.loader {
		visibility: hidden;
	}
	.altevo-letter {
		animation: none;
		opacity: 1;
		transform: none;
	}
	.hero-logo {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* =========================
   REVEAL ANIMATIONS
   ========================= */
.reveal {
	opacity: 0;
	transform: translateY(2.4rem);
	transition:
		opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1),
		transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.reveal-image {
	opacity: 0;
	transform: scale(1.04);
	transition:
		opacity 2.1s cubic-bezier(0.22, 1, 0.36, 1),
		transform 2.4s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--delay, 0ms);
}

.reveal-image.is-visible {
	opacity: 1;
	transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
	.reveal,
	.reveal-image {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* =========================
   HERO
   ========================= */
.hero {
	background: var(--teal-bg);
	padding-top: 3rem;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.hero-logo {
	width: 13rem;
	height: auto;
	margin: 0 0 3rem 3rem;
	opacity: 0;
	transform: translate(3rem, 3rem);
	transition:
		opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
		transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-logo.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.hero-media {
	position: relative;
	border-top-left-radius: 24rem;
	flex: 1;
	display: flex;
	align-items: flex-end;
	padding: 10rem 0 6rem;
	overflow: hidden;
}

.hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 63%;
	z-index: 0;
}

.hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.1);
	z-index: 1;
	pointer-events: none;
}

.hero-media .container {
	position: relative;
	z-index: 2;
}

.hero-video-toggle {
	position: absolute;
	bottom: 2rem;
	right: 2rem;
	z-index: 3;
	opacity: 0;
	width: 4.5rem;
	height: 4.5rem;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		opacity 0.5s ease,
		background 0.2s;
}

.hero-video-toggle.is-visible {
	opacity: 1;
}

.hero-video-toggle:hover {
	background: rgba(0, 0, 0, 0.65);
}

.hero-video-toggle .icon-play {
	display: none;
}

.hero-video-toggle.is-paused .icon-pause {
	display: none;
}

.hero-video-toggle.is-paused .icon-play {
	display: block;
}

.hero-text {
	color: var(--cream);
	display: flex;
	gap: 5rem;
	align-items: flex-start;
}

.hero-arrow {
	flex-shrink: 0;
	width: 1.5rem;
	padding-top: 1rem;
}

.hero-arrow img {
	width: 100%;
	height: auto;
}

.hero-copy {
	max-width: 72rem;
}

.hero-heading {
	margin-top: 1.5rem;
	font-size: 4.3rem;
	line-height: 1.25;
}

/* =========================
   VALUES
   ========================= */
.values {
	background: var(--cream);
	padding: 14rem 0;
}

.values h2 {
	max-width: 72rem;
	font-size: 3rem;
	color: var(--text-dark);
	line-height: 1.25;
}

.values-grid {
	margin-top: 8rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 7rem;
}

.value h3 {
	font-size: 2rem;
	color: var(--text-dark);
	margin-bottom: 0.8rem;
	line-height: 1.4;
}

.value p {
	font-size: 1.6rem;
	line-height: 1.5;
	color: var(--text-dark);
	text-wrap: pretty;
}

/* =========================
   PHOTO
   ========================= */
.photo {
	width: 100%;
	height: 50vh;
	background-color: var(--cream);
	background-image: url("../images/people.jpg");
	background-size: cover;
	background-position: center 35%;
	background-attachment: fixed;
	background-repeat: no-repeat;
}

/* =========================
   ABOUT
   ========================= */
.about {
	background: var(--sage);
	padding: 14rem 0 14rem;
	border-bottom-right-radius: 16rem;
}

.about .eyebrow {
	color: var(--teal-text);
	text-wrap: pretty;
}

.about h2 {
	margin-top: 3rem;
	max-width: 84rem;
	font-size: 3rem;
	color: var(--teal-text);
	line-height: 1.25;
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
	background: var(--burgundy);
	color: var(--cream);
	padding: 3rem 2rem;
}

.site-footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem 8rem;
	font-size: 1.6rem;
}

.site-footer img {
	width: 9rem;
	height: auto;
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 760px) {
	.container {
		padding: 0 3rem;
	}

	.hero {
		padding-top: 2rem;
		min-height: 95vh;
		min-height: 95dvh;
	}
	.hero-logo {
		width: 9rem;
		margin: 0 0 2rem 3rem;
	}
	.hero-media {
		border-top-left-radius: 10rem;
		padding: 40rem 0 9rem;
	}
	.hero-text {
		gap: 1.5rem;
	}
	.hero-arrow {
		display: none;
	}
	.hero-heading {
		font-size: 3.2rem;
	}

	.values {
		padding: 7rem 0;
	}
	.values h2 {
		font-size: 2.2rem;
	}
	.values-grid {
		margin-top: 4rem;
		grid-template-columns: 1fr;
		gap: 3rem;
	}

	.photo {
		height: 600px;
		background-attachment: scroll;
	}

	.about {
		padding: 7rem 0 9rem;
		border-bottom-right-radius: 7rem;
	}
	.about h2 {
		font-size: 2rem;
		margin-top: 1.5rem;
	}

	.site-footer {
		padding: 3rem;
	}
	.site-footer-inner {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start;
		font-size: 1.4rem;
		gap: 2.5rem 2rem;
	}
	.site-footer-inner > a {
		margin-left: auto;
	}
	.site-footer-inner > span {
		flex-basis: 100%;
	}
	.site-footer img {
		width: 7rem;
	}
}
