.page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-block-size: 20rem;
	background: var(--c-black);
	overflow: hidden;
}

.page-hero__img,
.page-hero__img img {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	margin: 0;
}

.page-hero__img img {
	object-fit: cover;
	object-position: center;
}

.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgb(0 0 0 / 0.45) 0%,
		rgb(0 0 0 / 0.15) 55%,
		rgb(0 0 0 / 0.02) 100%
	);
	pointer-events: none;
}

/* The parent already bottom-aligns, so the copy only needs its own offset. */
.page-hero__body {
	position: relative;
	z-index: 2;
	inline-size: 100%;
	padding-block-end: 3rem;
}

.page-hero__eyebrow {
	display: block;
	margin-block-end: 0.625rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--c-gold-dk);
}

.page-hero__title {
	font-family: var(--ff-alt);
	font-size: clamp(2.75rem, 6vw, 4.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	text-wrap: balance;
	color: var(--c-white);
}

@media (width <= 40rem) {
	.page-hero__body {
		padding-block-end: 2.5rem;
	}
}

@media (width <= 23.4375rem) {
	.page-hero {
		block-size: 15rem;
	}

	.page-hero__body {
		padding-block-end: 2rem;
	}
}

/* ------------------------------------------------------- centred variant */
.page-hero--center {
	align-items: center;
	min-block-size: 21.25rem;
	padding-block: 3.5rem;
	text-align: center;
}

.page-hero--center .page-hero__body {
	padding-block-end: 0;
}

/* A stronger wash than the bottom-anchored hero, since the copy sits over the
   busiest part of the photo rather than its edge. */
.page-hero--center::after {
	background: linear-gradient(
		to bottom,
		rgb(0 0 0 / 0.35) 0%,
		rgb(0 0 0 / 0.55) 100%
	);
}

.page-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-block-end: 1.25rem;
	padding: 0.4375rem 1.125rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--c-gold);
	background: rgb(245 200 0 / 0.12);
	border: 1px solid rgb(245 200 0 / 0.45);
	border-radius: 6.25rem;
}

.page-hero__badge::before {
	content: "";
	inline-size: 0.375rem;
	block-size: 0.375rem;
	background: var(--c-gold);
	border-radius: 50%;
}

/* The pattern marks the accent with <em>, which survives a round trip through
   the editor better than a custom span. */
.page-hero__title em {
	color: var(--c-gold);
}

.page-hero__sub {
	max-inline-size: 40rem;
	margin-inline: auto;
	margin-block-start: 1.125rem;
	font-size: 0.9375rem;
	font-weight: 300;
	line-height: 1.7;
	color: rgb(255 255 255 / 0.75);
}

.page-hero__cta {
	display: flex;
	justify-content: center;
	margin-block-start: 1.75rem;
}

.page-hero__cta a {
	display: inline-block;
	padding: 0.875rem 2.25rem;
	font-family: var(--ff-sans);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	color: var(--c-black);
	background: var(--c-gold);
	border: 0;
	border-radius: 6.25rem;
	text-decoration: none;
	transition: background-color 0.2s, transform 0.2s;
}

.page-hero__cta a:hover {
	background: var(--c-gold-dk);
	transform: translateY(-2px);
}

@media (width <= 40rem) {
	.page-hero__body {
		padding-block-end: 2.5rem;
	}

	.page-hero--center {
		min-block-size: 17.5rem;
		padding-block: 2.5rem;
	}

	.page-hero__badge {
		margin-block-end: 0.875rem;
		padding: 0.375rem 0.875rem;
		font-size: 0.625rem;
	}

	.page-hero__sub {
		font-size: 0.875rem;
	}
}

@media (width <= 23.4375rem) {
	.page-hero {
		min-block-size: 15rem;
	}

	.page-hero--center {
		min-block-size: 15rem;
	}

	.page-hero__body {
		padding-block-end: 2rem;
	}

	.page-hero__eyebrow {
		font-size: 0.625rem;
	}

	.page-hero__sub {
		font-size: 0.8125rem;
	}
}
