/* Hero Banner block (ffp/hero-banner). Design tokens only. */
.ffp-hero {
	--ffp-hero-overlay: 85%;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-top: 9rem;
	padding-bottom: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--cream);
	background-color: var(--wp--preset--color--navy-900);
}
.ffp-hero__media { position: absolute; inset: 0; z-index: -1; }
.ffp-hero__media figure { margin: 0; position: absolute; }
.ffp-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; }
.ffp-hero__back,
.ffp-hero__front { inset: 0; }
.ffp-hero__back img { opacity: 0.55; }
.ffp-hero__back::after { /* darkens the cockpit, heaviest behind the copy */
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, transparent 70%, var(--wp--preset--color--navy-900) 100%),
		linear-gradient(90deg,
			var(--wp--preset--color--navy-900) 0%,
			color-mix(in srgb, var(--wp--preset--color--navy-900) var(--ffp-hero-overlay), transparent) 38%,
			color-mix(in srgb, var(--wp--preset--color--navy-900) calc(var(--ffp-hero-overlay) * 0.41), transparent) 100%);
}
.ffp-hero__media::after { /* fades photo + pilot into the next section */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 72%, var(--wp--preset--color--navy-900) 100%);
	pointer-events: none;
}
.ffp-hero__glow { left: 39.7%; top: -51px; width: 56.6%; aspect-ratio: 1; pointer-events: none; }
.ffp-hero__inner {
	position: relative;
	z-index: 1;
	width: min(calc(100% - 2 * var(--wp--preset--spacing--40)), var(--wp--style--global--wide-size, 1240px));
	margin-inline: auto;
}
.ffp-hero__content { max-width: 696px; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.ffp-hero__content > * { margin-block: 0; }
.ffp-hero__content .ffp-medium { max-width: 519px; }
.ffp-hero__stats { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; margin-top: var(--wp--preset--spacing--60); }
.ffp-hero .ffp-divider { margin-top: var(--wp--preset--spacing--40); }

/* Stat child block (ffp/stat) */
.ffp-stat { display: flex; align-items: center; gap: 0.75rem; }
.ffp-stat__num {
	margin: 0;
	font-variant-numeric: lining-nums tabular-nums; /* digits keep their width while counting */
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-1);
	line-height: var(--wp--custom--line-height--heading-1);
	letter-spacing: var(--wp--custom--letter-spacing--heading);
	background: var(--wp--preset--gradient--gold);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.ffp-stat__label { margin: 0; font-size: var(--wp--preset--font-size--medium); line-height: 1.2; }

@media (max-width: 1100px) {
	.ffp-hero__glow { display: none; } /* the circle only suits the wide hero; on a taller tablet hero it reads as a stray blob */
	.ffp-hero__content { max-width: min(696px, 56%); }
	.ffp-hero__media img { object-position: 30% 20%; } /* pilot moves right, away from the headline */
}
@media (max-width: 900px) {
	.ffp-hero__media img { object-position: 52% 20%; } /* taller hero = bigger photo: keep her face on screen */
}
@media (max-width: 700px) {
	/* Phone: the photo gets its own band on top (her face fully in frame), the copy sits centred below it. */
	.ffp-hero { padding-top: 0; }
	.ffp-hero__media { position: relative; inset: auto; z-index: 0; height: 122vw; max-height: 560px; -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 100%); mask-image: linear-gradient(180deg, #000 68%, transparent 100%); }
	.ffp-hero__media img { object-position: 66% 8%; }
	.ffp-hero__back img { opacity: 0.55; }
	.ffp-hero__back::after { background: linear-gradient(180deg, transparent 55%, var(--wp--preset--color--navy-900) 100%); }
	.ffp-hero__media::after { display: none; }
	.ffp-hero__inner { margin-top: -4.5rem; }
	.ffp-hero__content { max-width: none; align-items: center; text-align: center; }
	.ffp-hero__content .ffp-medium { max-width: none; }
	.ffp-hero__stats { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem; } /* phone: one centred stack, number above its label */
	.ffp-stat { flex-direction: column; justify-content: center; gap: 0.25rem; text-align: center; }
	.ffp-stat__num { font-size: 2rem; line-height: 1.1; } /* smaller than the desktop counter, which is too big beside the phone copy */
	.ffp-stat__label { max-width: none !important; font-size: 1rem; } /* the editor's label width only suits the side-by-side desktop layout */
}
@media (min-width: 701px) and (max-width: 1100px) {
	.ffp-hero__stats { flex-wrap: nowrap; gap: 1rem; }
}

/* Desktop: vertical rhythm of the 1920px design (eyebrow 168px from the top, stats and divider lower, more air before the next section). */
@media (min-width: 1100px) {
	.ffp-hero { padding-top: 158px; }
	.ffp-hero__stats { margin-top: 90px; }
	.ffp-hero .ffp-divider { margin-top: 39px; }
	/* Photo + cut-out share the design's frame: 1875px wide at x = -19px, top-aligned (the pilot sits lower and further left than a plain cover fit). */
	.ffp-hero__back,
	.ffp-hero__front { inset: 0 auto 0 -1%; width: 97.66%; }
	.ffp-hero__media img { object-position: 60% 0%; }
}

/* Tall style: the photo is lit like the design (80% opacity, navy fading in from the left and top only). */
.ffp-hero.is-style-tall .ffp-hero__back img { opacity: 0.8; }
.ffp-hero.is-style-tall .ffp-hero__back::after {
	background:
		linear-gradient(180deg, var(--wp--preset--color--navy-700) 0, transparent 27%),
		linear-gradient(90deg, var(--wp--preset--color--navy-700) 7.4%, color-mix(in srgb, var(--wp--preset--color--navy-700) 70%, transparent) 43%, transparent 66%);
}
.ffp-hero.is-style-tall .ffp-hero__media::after { display: none; }
@media (min-width: 1100px) {
	.ffp-hero.is-style-tall .ffp-hero__back,
	.ffp-hero.is-style-tall .ffp-hero__front { inset: 0; width: 100%; } /* the design's photo runs edge to edge */
}
/* Style "Tall, no stats": the Speaking hero. 817px tall on desktop, copy sits lower, 16px intro text, divider at the bottom. */
.ffp-hero.is-style-tall .ffp-hero__content { gap: 0.75rem; max-width: 740px; padding-left: 18px; }
.ffp-hero.is-style-tall .ffp-hero__content .ffp-medium { margin-left: 5px; }
.ffp-hero.is-style-tall .ffp-hero__content .wp-block-buttons { margin-left: 3px; }
.ffp-hero.is-style-tall .ffp-hero__content .ffp-medium { max-width: 585px; font-size: var(--wp--preset--font-size--base); line-height: var(--wp--custom--line-height--body); }
.ffp-hero.is-style-tall .ffp-hero__content .wp-block-buttons { margin-top: 1rem; }
@media (min-width: 1100px) {
	/* the wings divider sits on the seam with the next section, half in each, like the design */
	.ffp-hero.is-style-tall { display: flex; flex-direction: column; box-sizing: border-box; min-height: 817px; padding-top: 234px; }
	}

/* Tall style on tablet / phone: tablet is the desktop hero scaled down (same composition: copy left, speaker right at the same
   relative position, headline in three lines); phone stacks like the other heroes. */
@media (max-width: 1099px) {
	.ffp-hero.is-style-tall { --ffp-u: calc(100vw / 1920); --ffp-h: max(1.875rem, calc(60 * var(--ffp-u))); } /* --ffp-h = headline size */
	.ffp-hero.is-style-tall .ffp-hero__content { max-width: calc(var(--ffp-h) * 12.63); padding-left: 0; } /* the desktop's 758px at 60px, so the headline wraps the same way */
	.ffp-hero.is-style-tall .ffp-hero__content .ffp-medium,
	.ffp-hero.is-style-tall .ffp-hero__content .wp-block-buttons { margin-left: 0; }
	.ffp-hero.is-style-tall .ffp-hero__media img { object-position: 64% 0; }
	.ffp-hero.is-style-tall .ffp-hero__back,
	.ffp-hero.is-style-tall .ffp-hero__front { inset: 0; width: 100%; }
}
@media (min-width: 701px) and (max-width: 1099px) {
	.ffp-hero.is-style-tall { box-sizing: border-box; min-height: max(540px, calc(817 * var(--ffp-u))); padding-top: max(7rem, calc(234 * var(--ffp-u))); }
	.ffp-hero.is-style-tall h1 { font-size: var(--ffp-h); line-height: 1.08; }
	.ffp-hero.is-style-tall .ffp-hero__content { gap: 0.75rem; }
	.ffp-hero.is-style-tall .ffp-hero__content .ffp-medium { max-width: min(585px, calc(54vw - 24px)); } /* the text is not scaled, so it gets the width up to the speaker */
	.ffp-hero.is-style-tall .ffp-hero__content .wp-block-buttons { margin-top: 1rem; }
	.ffp-hero.is-style-tall .ffp-hero__back::after { background: linear-gradient(180deg, var(--wp--preset--color--navy-700) 0, transparent 27%), linear-gradient(90deg, var(--wp--preset--color--navy-700) 7.4%, color-mix(in srgb, var(--wp--preset--color--navy-700) 80%, transparent) 43%, transparent 66%); }
}
@media (max-width: 700px) {
	.ffp-hero.is-style-tall .ffp-hero__content { max-width: none; }
	.ffp-hero.is-style-tall .ffp-hero__media img { object-position: 66% 8%; }
	.ffp-hero.is-style-tall .ffp-hero__back img { opacity: 0.8; }
}

/* Tall style, all sizes: the wings divider sits on the seam with the next section, half in each, like the design. */
.ffp-hero.is-style-tall { overflow: visible; z-index: 2; padding-bottom: 3.5rem; }
.ffp-hero.is-style-tall .ffp-divider { position: absolute; inset: auto 0 -22px; width: min(calc(100% - 2 * var(--wp--preset--spacing--40)), var(--wp--style--global--wide-size, 1240px)); margin: 0 auto; }
@media (min-width: 1100px) { .ffp-hero.is-style-tall { padding-bottom: 1rem; } }

/* Tall style, flush variant (extra class ffp-hero--flush): copy starts exactly at the container edge (Consulting hero). */
.ffp-hero.is-style-tall.ffp-hero--flush .ffp-hero__content { padding-left: 0; max-width: min(722px, 56%); }
@media (min-width: 1100px) { .ffp-hero.is-style-tall.ffp-hero--flush .ffp-hero__content { max-width: 722px; } }
.ffp-hero.is-style-tall.ffp-hero--flush .ffp-hero__content .ffp-medium,
.ffp-hero.is-style-tall.ffp-hero--flush .ffp-hero__content .wp-block-buttons { margin-left: 0; }

/* Flush variant, lighting and position of the Consulting hero */
.ffp-hero.is-style-tall.ffp-hero--flush .ffp-hero__back::after {
	background:
		linear-gradient(180deg, var(--wp--preset--color--navy-700) 0, transparent 27%),
		linear-gradient(90deg, var(--wp--preset--color--navy-700) 25%, color-mix(in srgb, var(--wp--preset--color--navy-700) 70%, transparent) 43.5%, transparent 53.8%);
}
.ffp-hero.is-style-tall.ffp-hero--flush .ffp-hero__back img { opacity: 1; }
.ffp-hero.is-style-tall.ffp-hero--flush .ffp-hero__content .ffp-medium { max-width: 554px; }
@media (min-width: 1100px) { .ffp-hero.is-style-tall.ffp-hero--flush { min-height: 820px; padding-top: 203px; } }

.ffp-hero.is-style-tall.ffp-hero--flush .ffp-hero__content .ffp-medium { margin-top: 1rem; }
.ffp-hero.is-style-tall.ffp-hero--flush .ffp-hero__content .wp-block-buttons { margin-top: 1.4rem; }
@media (min-width: 1100px) { .ffp-hero.is-style-tall.ffp-hero--flush .ffp-divider { inset: auto 0 21px; } } /* the Consulting hero keeps its divider inside */

@media (max-width: 700px) { .ffp-hero.is-style-tall.ffp-hero--flush .ffp-hero__content { max-width: none; } }
@media (max-width: 700px) { .ffp-hero.is-style-tall.ffp-hero--flush .ffp-hero__media img { object-position: 73% 8%; } } /* both faces and the handshake in frame */
@media (max-width: 700px) {
	/* phone: no side fade, the photo sits in its own band and only melts into the navy at the bottom */
	.ffp-hero.is-style-tall .ffp-hero__back::after { background: linear-gradient(180deg, transparent 55%, var(--wp--preset--color--navy-900) 100%); }
	.ffp-hero.is-style-tall.ffp-hero--flush .ffp-hero__media img { object-position: 68% 8%; }
}

/* Optional phone-only background (a portrait crop): replaces the wide photo and the cut-out on phones */
.ffp-hero__back-mobile { display: none !important; }
@media (max-width: 700px) {
	.ffp-hero__back:has(.ffp-hero__back-mobile) > :is(img, picture):not(.ffp-hero__back-mobile) { display: none; }
	.ffp-hero__back:has(.ffp-hero__back-mobile) .ffp-hero__back-mobile { display: block !important; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; opacity: 0.85; }
	.ffp-hero__media:has(.ffp-hero__back-mobile) .ffp-hero__front { display: none; }
}
@media (max-width: 700px) {
	.ffp-hero.is-style-tall.ffp-hero--flush .ffp-hero__back::after { background: linear-gradient(180deg, transparent 55%, var(--wp--preset--color--navy-900) 100%); }
	.ffp-hero.is-style-tall .ffp-hero__back:has(.ffp-hero__back-mobile) .ffp-hero__back-mobile { opacity: 1; }
}

/* ==========================================================================
   Style "Centred" (is-style-centered): the Mastermind hero. Centred headline, text and button on the navy top of one wide
   photo (a baked 1920x1240 canvas that fades into cream at the bottom). Scales with the width (--ffp-u = 1px of the 1920 design).
   ========================================================================== */
.ffp-hero.is-style-centered {
	--ffp-u: calc(min(100vw, 1920px) / 1920);
	box-sizing: border-box;
	min-height: calc(1240 * var(--ffp-u));
	padding-top: max(7rem, calc(137 * var(--ffp-u)));
	padding-bottom: 0;
	overflow: visible;
	z-index: 2;
	color: var(--wp--preset--color--cream);
	background-color: var(--wp--preset--color--navy-700);
}
.ffp-hero.is-style-centered .ffp-hero__media { overflow: hidden; }
.ffp-hero.is-style-centered .ffp-hero__media::after,
.ffp-hero.is-style-centered .ffp-hero__back::after { display: none; }
.ffp-hero.is-style-centered .ffp-hero__back,
.ffp-hero.is-style-centered .ffp-hero__front { inset: 0; width: 100%; }
.ffp-hero.is-style-centered .ffp-hero__back img { opacity: 1; object-position: 50% 100%; }
.ffp-hero.is-style-centered .ffp-hero__content { align-items: center; max-width: 1075px; margin-inline: auto; gap: 1.25rem; text-align: center; }
.ffp-hero.is-style-centered h1 { font-size: max(1.875rem, calc(60 * var(--ffp-u))); font-optical-sizing: none; font-variation-settings: "opsz" 54; }
.ffp-hero.is-style-centered .ffp-hero__content .ffp-medium { max-width: 884px; font-size: var(--wp--preset--font-size--base); line-height: var(--wp--custom--line-height--body); }
.ffp-hero.is-style-centered .ffp-hero__content .wp-block-buttons { margin-top: 0.15rem; justify-content: center; }
.ffp-hero.is-style-centered .wp-block-button__link { padding: 0.9rem 2.5625rem; }
.ffp-hero.is-style-centered .ffp-divider { position: absolute; inset: auto 0 calc(133 * var(--ffp-u) - 22px); width: min(calc(100% - 2 * var(--wp--preset--spacing--40)), var(--wp--style--global--wide-size, 1240px)); margin: 0 auto; }
@media (min-width: 1921px) { .ffp-hero.is-style-centered { min-height: 1240px; padding-top: 137px; } }

/* Tablet and phone: copy first, then the photo as its own band (the middle of the group, --k = how much wider than the screen the photo is drawn), emblem under it */
@media (max-width: 1099px) {
	.ffp-hero.is-style-centered { --k: 1.15; display: flex; flex-direction: column; min-height: 0; padding-top: 10.5rem; }
	.ffp-hero.is-style-centered .ffp-hero__inner { order: 1; }
	.ffp-hero.is-style-centered .ffp-hero__content { max-width: min(1075px, calc(100% - 3rem)); }
	.ffp-hero.is-style-centered h1 { font-size: clamp(2.25rem, 1.2rem + 3.2vw, 3.75rem); }
	.ffp-hero.is-style-centered .ffp-hero__media { position: relative; inset: auto; z-index: 0; order: 2; height: calc(var(--k) * 42.6vw); margin-top: 1.5rem; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%); mask-image: linear-gradient(180deg, transparent 0, #000 12%); }
	.ffp-hero.is-style-centered .ffp-hero__back { overflow: hidden; }
	.ffp-hero.is-style-centered .ffp-hero__back img { position: absolute; left: 50%; top: calc(var(--k) * -17.4vw); width: calc(var(--k) * 100%); height: auto; max-width: none; transform: translateX(-50%); }
	.ffp-hero.is-style-centered .ffp-hero__front { display: none; }
	.ffp-hero.is-style-centered .ffp-divider { position: relative; inset: auto; order: 3; margin-block: -1.75rem -1.05rem; }
}
@media (max-width: 700px) {
	.ffp-hero.is-style-centered { --k: 1.7; padding-top: 12rem; }
	.ffp-hero.is-style-centered .ffp-hero__content { max-width: none; }
}
