/* Block: Hero */
.block--hero {
	position: relative;
	overflow: hidden;
	background: var(--color-space);
	color: var(--color-ivory);
	/* Fill the viewport below the header */
	min-height: calc(100vh - var(--header-h));
	min-height: calc(100svh - var(--header-h));
	display: grid;
	align-content: center;
	padding-block: clamp(3.5rem, 8vw, 6rem) clamp(4.5rem, 9vw, 7rem);
	text-align: center;
}

.block--hero .hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}
/* Video background: fill and crop the hero exactly like the image does. */
.block--hero .hero__bg--video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	background: var(--color-space); /* shown while the first frame loads */
}
.block--hero .hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(19 37 65 / 84%) 0%, rgb(17 32 53 / 92%) 100%);
	z-index: 1;
}

.block--hero .hero__inner {
	position: relative;
	z-index: 2;
	max-width: 1040px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.block--hero .hero__eyebrow {
	display: inline-block;
	margin: 0;
	padding: 0.4rem 1.1rem;
	background: rgba(161, 134, 127, 0.15);
	border: 1px solid var(--color-terracotta);
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--color-terracotta);
}

.block--hero .hero__heading {
	margin: 0;
	color: var(--color-ivory);
	font-weight: 400;
	font-size: clamp(2.25rem, 6vw, 4rem);
	line-height: 1.1;
}
.block--hero .hero__heading-accent {
	color: var(--color-terracotta);
	white-space: nowrap; /* keep the accent on one line */
}
/* Stacked variant: accent drops to its own line (e.g. the homepage hero) */
.block--hero .hero__heading--stacked .hero__heading-main,
.block--hero .hero__heading--stacked .hero__heading-accent,
.block--hero .hero__heading--stacked .hero__heading-suffix { display: block; }
@media (max-width: 600px) {
	.block--hero .hero__heading-accent { white-space: normal; }
}

/* Scroll to explore indicator, pinned to the bottom of the hero */
.block--hero .hero__scroll {
	position: absolute;
	left: 50%;
	bottom: clamp(1.25rem, 3vw, 2rem);
	transform: translateX(-50%);
	z-index: 2;
}
.block--hero .hero__scroll-btn {
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-decoration: underline;
	text-decoration-color: var(--color-terracotta);
	text-underline-offset: 5px;
	background: none;
	border: 0;
	padding: 0.25rem 0.5rem;
	cursor: pointer;
	transition: opacity 0.18s ease;
}
.block--hero .hero__scroll-btn:hover { opacity: 0.85; }

.block--hero .hero__text {
	max-width: 72ch;
	font-size: 1.0625rem;
	color: rgba(239, 233, 222, 0.85);
}

.block--hero .hero__actions { margin-top: 0.5rem; }

/* The matching still is the immediate first frame. It remains in place behind
   the video while the mobile video is deferred until after the initial load. */
@media (max-width: 767px) {
	.block--hero.hero--has-video {
		background-image: var(--hero-mobile-poster);
		background-position: center;
		background-size: cover;
	}
}
@media (prefers-reduced-motion: reduce) {
	.block--hero.hero--has-video {
		background-image: var(--hero-mobile-poster);
		background-position: center;
		background-size: cover;
	}
	.block--hero .hero__bg--video { display: none; }
}
