.main-banner {
	position: relative;
	isolation: isolate;
	min-height: max(100vh, 36rem);
	overflow: hidden;
	color: var(--color-white);
	background: var(--color-ink);
}

.main-banner__track {
	position: absolute;
	inset: 0;
}

.main-banner__slide {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear 0.9s;
}

.main-banner__slide.is-active {
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
	transition: visibility 0s;
}

.main-banner__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	transition: opacity 0.9s ease;
}

.main-banner__slide.is-active .main-banner__media {
	opacity: 1;
}

.main-banner__image,
.main-banner__fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.main-banner__fallback {
	background:
		radial-gradient(ellipse at 30% 20%, rgba(48, 96, 44, 0.45), transparent 55%),
		linear-gradient(160deg, #0d0d0d 0%, #1a2e18 45%, #0d0d0d 100%);
}

.main-banner__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(13, 13, 13, 0.5) 0%, rgba(13, 13, 13, 0.35) 40%, rgba(13, 13, 13, 0.6) 100%);
}

.main-banner__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(100% - 2rem, 42rem);
	padding-block: calc(var(--header-height) + 2rem) 3rem;
	text-align: center;
}

.main-banner__eyebrow {
	margin: 0;
	color: var(--color-white);
	font-family: var(--font-script);
	font-size: clamp(3.5rem, 9vw, 7.5rem);
	font-weight: 400;
	line-height: 0.85;
	padding: 0.2em 0.15em 0.05em;
	margin: -0.2em -0.15em -0.05em;
	overflow: hidden;
	text-shadow:
		0 2px 8px rgba(0, 0, 0, 0.55),
		0 6px 24px rgba(0, 0, 0, 0.4);
}

.main-banner__title {
	margin: 0.15em 0 0;
	font-family: var(--font-display);
	font-size: clamp(1.85rem, 5vw, 3.25rem);
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
	overflow: hidden;
	text-shadow:
		0 2px 10px rgba(0, 0, 0, 0.5),
		0 8px 28px rgba(0, 0, 0, 0.35);
}

.main-banner__text {
	margin: 1.25rem 0 0;
	max-width: 34rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.55;
	overflow: hidden;
}

.main-banner__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0 1.35rem;
	border: 2px solid rgba(255, 255, 255, 0.35);
	color: var(--color-white);
	font-family: var(--font-display);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.main-banner__reveal {
	display: block;
	margin-top: 1.75rem;
	overflow: hidden;
}

.main-banner__cta.main-banner__line {
	display: inline-flex;
}

.main-banner__cta:hover {
	background: var(--color-green);
	border-color: var(--color-green);
	transform: translateY(-2px);
}

.main-banner__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.55);
	font-size: 2.5rem;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: color 0.2s ease, opacity 0.2s ease;
}

.main-banner__arrow:hover {
	color: var(--color-white);
}

.main-banner__arrow--prev {
	left: 0.75rem;
}

.main-banner__arrow--next {
	right: 0.75rem;
}

.main-banner__slide.is-active .main-banner__image,
.main-banner__slide.is-active .main-banner__fallback {
	animation: main-banner-zoom 8s ease-out both;
}

/* Each line is clipped to its own row and drops in from above that row. */
.main-banner__line {
	display: block;
	opacity: 0;
	translate: 0 -120%;
}

html:not(.is-preloading) .main-banner__slide.is-active .main-banner__line {
	animation-name: main-banner-drop;
	animation-duration: 0.8s;
	animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
	animation-fill-mode: both;
}

html:not(.is-preloading) .main-banner__slide.is-active .main-banner__content > :nth-child(1) .main-banner__line {
	animation-delay: 0.12s;
}

html:not(.is-preloading) .main-banner__slide.is-active .main-banner__content > :nth-child(2) .main-banner__line {
	animation-delay: 0.46s;
}

html:not(.is-preloading) .main-banner__slide.is-active .main-banner__content > :nth-child(3) .main-banner__line {
	animation-delay: 0.8s;
}

html:not(.is-preloading) .main-banner__slide.is-active .main-banner__content > :nth-child(4) .main-banner__line {
	animation-delay: 1.14s;
}

@keyframes main-banner-drop {
	from {
		opacity: 0;
		translate: 0 -120%;
	}
	to {
		opacity: 1;
		translate: 0 0;
	}
}

@keyframes main-banner-zoom {
	from {
		transform: scale(1.06);
	}
	to {
		transform: scale(1);
	}
}

@media (max-width: 700px) {
	.main-banner {
		min-height: 100svh;
	}

	.main-banner__arrow {
		display: none;
	}

	.main-banner__text {
		font-size: 0.875rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.main-banner__slide,
	.main-banner__media,
	.main-banner__slide.is-active .main-banner__image,
	.main-banner__slide.is-active .main-banner__fallback {
		animation: none;
		transition: none;
	}

	html:not(.is-preloading) .main-banner__slide.is-active .main-banner__line {
		opacity: 1;
		translate: none;
		animation: none;
	}
}
