body.has-photo-hero .wp-site-blocks > main {
	margin-block-start: 0;
}

.nffat-home-hero.wp-block-cover {
	position: relative;
	z-index: 1;
	margin-block: 0;
	min-height: clamp(640px, 100svh, 920px);
	padding: 0;
	align-items: flex-end;
	border-radius: 0 0 var(--nffat-radius-panel) var(--nffat-radius-panel);
	overflow: hidden;
}

/* Scroll strength: the photo moves inside its frame; the text lags behind and fades as the hero leaves. */
.nffat-home-hero {
	--motion-amount-depth: 14;
}

.nffat-home-hero__content {
	--motion-amount-drift: 160;
}

.nffat-home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgb(4 41 39 / 0.88) 0%, rgb(4 41 39 / 0.62) 42%, rgb(4 41 39 / 0.12) 78%),
		linear-gradient(0deg, rgb(4 41 39 / 1) 0%, rgb(4 41 39 / 0.94) 10%, rgb(4 41 39 / 0.76) 20%, rgb(4 41 39 / 0.48) 32%, rgb(4 41 39 / 0.2) 44%, rgb(4 41 39 / 0.05) 56%, rgb(4 41 39 / 0) 66%),
		linear-gradient(180deg, rgb(4 41 39 / 0.5) 0%, rgb(4 41 39 / 0) 22%);
}

.nffat-home-hero .wp-block-cover__inner-container {
	box-sizing: border-box;
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--nffat-page-max);
	margin-inline: auto;
	padding: 160px var(--wp--style--root--padding-right) 72px var(--wp--style--root--padding-left);
	color: var(--wp--preset--color--white);
}

.nffat-home-hero__content {
	max-width: 720px;
}

.nffat-home-hero__content > * {
	margin-block: 0;
}

.nffat-home-hero__title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(42px, 5.6vw, 80px);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--white);
	text-wrap: balance;
}

.nffat-home-hero__for {
	margin-top: 20px !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(24px, 2.6vw, 38px);
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--white);
}

.nffat-home-hero__for .nffat-rotate {
	padding: 0.06em 0.42em 0.1em 0.34em;
	border-radius: 0.5em;
	background: var(--wp--preset--color--magenta);
	color: var(--wp--preset--color--white);
}

.nffat-home-hero__for .nffat-rotate > * {
	gap: 0.28em;
}

.nffat-home-hero__for .nffat-rotate .nffat-icon {
	flex-shrink: 0;
	width: 0.82em;
	height: 0.82em;
}

/* The photo stays fully visible (it's the largest thing on the page), it only eases out from a zoom. */
@media (prefers-reduced-motion: no-preference) {
	.nffat-motion .nffat-home-hero .wp-block-cover__image-background {
		animation: nffat-hero-settle 1800ms var(--nffat-ease-out) both;
	}
}

@keyframes nffat-hero-settle {
	from { scale: 1.4; }
}

.nffat-home-hero__lead {
	margin-top: 24px !important;
	max-width: 560px;
	font-size: clamp(17px, 1.4vw, 20px);
	line-height: 1.55;
	color: rgb(255 255 255 / 0.9);
	text-wrap: pretty;
}

.nffat-home-hero__actions {
	margin-top: 36px !important;
	gap: 12px;
}

.nffat-home-hero__rating {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px !important;
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--white);
}

.nffat-home-hero__stars {
	display: flex;
	gap: 4px;
	color: var(--wp--preset--color--white);
	font-size: 20px;
}

/* Stars pop in one after another, then the label fades up. */
.nffat-home-hero__stars .nffat-icon {
	animation: nffat-star-pop 420ms var(--nffat-ease-out) both;
}

.nffat-home-hero__stars .nffat-icon:nth-child(2) { animation-delay: 70ms; }
.nffat-home-hero__stars .nffat-icon:nth-child(3) { animation-delay: 140ms; }
.nffat-home-hero__stars .nffat-icon:nth-child(4) { animation-delay: 210ms; }
.nffat-home-hero__stars .nffat-icon:nth-child(5) { animation-delay: 280ms; }

.nffat-home-hero__rating-label {
	animation: nffat-fade-up 360ms var(--nffat-ease-out) 380ms both;
}

@keyframes nffat-star-pop {
	from {
		opacity: 0;
		transform: scale(0.4) rotate(-25deg);
	}

	60% {
		opacity: 1;
		transform: scale(1.15) rotate(4deg);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes nffat-fade-up {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 1099px) {
	.nffat-home-hero .wp-block-cover__inner-container {
		padding: 140px var(--wp--style--root--padding-right) 56px var(--wp--style--root--padding-left);
	}

	.nffat-home-hero::after {
		background:
			linear-gradient(90deg, rgb(4 41 39 / 0.85) 0%, rgb(4 41 39 / 0.5) 70%, rgb(4 41 39 / 0.3) 100%),
			linear-gradient(0deg, rgb(4 41 39 / 0.6) 0%, rgb(4 41 39 / 0) 50%);
	}
}

@media (max-width: 599px) {
	.nffat-home-hero.wp-block-cover {
		min-height: clamp(600px, 100svh, 760px);
		border-radius: 0 0 var(--nffat-radius-card) var(--nffat-radius-card);
	}

	.nffat-home-hero .wp-block-cover__inner-container {
		padding: 120px var(--wp--style--root--padding-left) 40px;
	}

	.nffat-home-hero::after {
		background:
			linear-gradient(0deg, rgb(4 41 39 / 0.92) 0%, rgb(4 41 39 / 0.72) 55%, rgb(4 41 39 / 0.25) 100%);
	}

	/* Sized to the screen so the longest ending ("your next outdoor adventure") stays on one line. */
	.nffat-home-hero__for {
		font-size: 5vw;
	}

	.nffat-home-hero__actions .wp-block-button {
		width: 100%;
	}

	.nffat-home-hero__actions .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}
}
