.epic-hero {
	position: relative;
	min-height: max(500px, 100vh);
	min-height: max(500px, 100svh);
	min-height: max(500px, 100dvh);
	display: flex;
	flex-direction: column;
	align-items: stretch;
	background: var(--epic-bg);
	color: var(--epic-white);
	font-family: var(--epic-font);
	overflow: hidden;
}

.epic-hero__media {
	position: absolute;
	inset: 0;
	isolation: isolate;
}

.epic-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(0, 0, 0, 0.2);
	pointer-events: none;
}

.epic-hero__media-inner {
	width: 100%;
	height: 100%;
	transform-origin: center center;
	will-change: transform;
}

.epic-hero__video,
.epic-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.epic-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
	opacity: 0.45;
}

.epic-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	align-items: center;
	width: 100%;
	min-height: max(500px, 100vh);
	min-height: max(500px, 100svh);
	min-height: max(500px, 100dvh);
	will-change: transform, opacity;
}

@media (max-width: 991px) {
	.epic-hero__inner {
		padding-top: var(--epic-header-height, calc(2.5rem + 72px));
	}
}

.epic-hero__content {
	will-change: transform;
}

.epic-hero__subtitle {
	margin: 0 0 1.5rem;
	font: 500 21px/1.4 var(--epic-font);
	letter-spacing: 7.5px;
	color: var(--epic-muted);
}

@media (max-width: 1100px) {
	.epic-hero__subtitle {
		font-size: min(3.2vw, 18px);
		letter-spacing: 0.14em;
	}
}

@media (max-width: 600px) {
	.epic-hero__subtitle {
		font-size: 16px;
		letter-spacing: 0.1em;
	}
}

.epic-hero__title.h1 {
	margin: 0;
	max-width: 90%;
	font-family: var(--epic-font-din);
}

@media (max-width: 1100px) {
	.epic-hero__title.h1,
	.epic-hero__title.h1 > h2 {
		font-size: 60px;
		line-height: 0.97;
	}
}

@media (max-width: 600px) {
	.epic-hero__title.h1,
	.epic-hero__title.h1 > h2 {
		font-size: 50px;
		line-height: 1.3;
	}
}

@media (min-width: 1101px) {
	.epic-hero__title.h1 {
		font-size: min(calc(87.75 / 1440 * 100vw), 87.75px);
	}
}

.epic-hero__scroll {
	position: absolute;
	bottom: clamp(1.5rem, 4vh, 2.75rem);
	left: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--epic-white);
	cursor: pointer;
	transform: translateX(-50%);
	transition: opacity 0.25s ease, color 0.25s ease;
	animation: epic-hero-scroll-bounce 2s ease-in-out infinite;
}

.epic-hero__scroll:hover,
.epic-hero__scroll:focus-visible {
	color: var(--epic-muted);
	opacity: 1;
	outline: none;
}

.epic-hero__scroll-icon {
	display: block;
	width: 2rem;
	height: 2rem;
}

@keyframes epic-hero-scroll-bounce {
	0%,
	100% {
		transform: translateX(-50%) translateY(0);
		opacity: 0.75;
	}

	50% {
		transform: translateX(-50%) translateY(0.625rem);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.epic-hero__scroll {
		animation: none;
		opacity: 0.9;
	}
}
