/* Built By A Pilot block (ffp/built-by-pilot) and its child ffp/pillar. Design tokens only. */
.ffp-built {
	position: relative;
	overflow-x: clip; /* the sky reaches up behind the section above, so only the sides are clipped */
	isolation: isolate;
	padding-top: clamp(5rem, 2.5rem + 6vw, 10.25rem);
	padding-bottom: var(--wp--preset--spacing--60);
	color: var(--wp--preset--color--navy-700);
	background-color: var(--wp--preset--color--cream);
}
/* Sky photo + plane are two layers of one frame (1966x742 in the design), so the plane always sits in the clouds. */
.ffp-built { --ffp-dusk: #eee0d1; }
.ffp-built__sky { position: absolute; top: 0; left: 0; width: 100%; height: clamp(26rem, 20rem + 20vw, 46rem); pointer-events: none; } /* no z-index: its children sort themselves inside the section */
.ffp-built__sky > img, .ffp-built__sky > picture > img { position: relative; z-index: -1; }
.ffp-built__plane { position: absolute; inset: 0; z-index: 2;margin: 0; } /* same frame as the sky photo, so the cut-out sits exactly on the plane in it */
.ffp-built__plane .ffp-built__emblem { display: none; position: absolute; left: 43.05%; top: 51%; width: 3.85%; height: auto; aspect-ratio: 1.8; object-fit: fill; }
.ffp-built__sky > img,
.ffp-built__sky > picture > img,
.ffp-built__plane img:not(.ffp-built__emblem) { display: block; width: 100%; height: 100%; object-fit: cover; }
.ffp-built__sky::after { content: ""; position: absolute; z-index: -1; inset: 0; background:
		linear-gradient(180deg, transparent 45%, var(--wp--preset--color--cream) 100%),
		linear-gradient(180deg, var(--wp--preset--color--navy-700) 0%, var(--wp--preset--color--navy-700) 30%, transparent 62%); }

.ffp-built__title { text-align: center; margin-inline: auto; padding-inline: var(--wp--preset--spacing--40); }
.ffp-built__heading { margin: 0; letter-spacing: var(--wp--custom--letter-spacing--heading); font-style: italic; }
.ffp-built__line1,
.ffp-built__line2 { display: block; }
.ffp-built__line1 { font-size: var(--wp--preset--font-size--display); font-weight: 900; color: var(--wp--preset--color--cream); line-height: 1; }
.ffp-built__line2 { font-size: calc(var(--wp--preset--font-size--display) * 1.164); font-weight: 700; color: var(--wp--preset--color--navy-700); line-height: 1; margin-top: 0.89em; }

.ffp-built__lead {
	position: relative;
	z-index: 1;
	max-width: 960px;
	margin: 1.7rem auto 0;
	padding-inline: var(--wp--preset--spacing--40);
	text-align: center;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 600;
	line-height: var(--wp--custom--line-height--heading-3);
	letter-spacing: var(--wp--custom--letter-spacing--heading);
}

/* Team photo: soft vignette layer under a sharp centre layer. */
.ffp-built__photo { position: relative; width: min(1709px, 100%); margin: -4.5rem auto 0; aspect-ratio: 1709 / 898; }
.ffp-built__photo figure { margin: 0; position: absolute; }
.ffp-built__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ffp-built__back,
.ffp-built__front { inset: 0; }
/* melts into the sky above and the cream below, like the design */
.ffp-built__photo { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 42%, transparent 86%); mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 42%, transparent 86%); }

.ffp-built__intro { position: relative; z-index: 4; max-width: 1000px; margin: calc(-0.104 * min(1709px, 100%)) auto 0; padding-inline: var(--wp--preset--spacing--40); text-align: center; font-size: var(--wp--preset--font-size--medium); line-height: 1.36; }

/* Bordered box: the title and the button sit on (and cut) the border line. */
.ffp-built__box {
	box-sizing: border-box;
	position: relative;
	width: min(calc(100% - 2 * var(--wp--preset--spacing--40)), var(--wp--style--global--wide-size, 1240px));
	margin: 2rem auto 0;
	padding: 3.5rem 2rem 4.5rem;
	border: 1px solid var(--wp--preset--color--gold);
}
.ffp-built__boxtitle {
	position: absolute;
	top: 0;
	left: 50%;
	margin: 0;
	padding-inline: 2rem;
	transform: translate(-50%, -52%);
	width: max-content;
	max-width: 90%;
	text-align: center;
	background: var(--wp--preset--color--cream);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--heading-3);
	font-weight: 600;
	line-height: var(--wp--custom--line-height--heading-3);
	letter-spacing: var(--wp--custom--letter-spacing--heading);
}
.ffp-built__pillars { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1.5rem 1rem; }
.ffp-built__closing { margin: 1.5rem 0 0; text-align: center; font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--lead); font-style: italic; line-height: var(--wp--custom--line-height--lead); letter-spacing: var(--wp--custom--letter-spacing--heading); }
.ffp-built__cta { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); padding-inline: 3.5rem; background: var(--wp--preset--color--cream); }
.ffp-built__cta .wp-block-buttons { margin: 0; }
.ffp-built__cta .wp-element-button { white-space: nowrap; }

/* Pillar child block */
.ffp-pillar { flex: 0 0 calc((100% - 4rem) / 5); display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.ffp-pillar__icon { margin: 0; height: 108px; display: flex; align-items: center; justify-content: center; }
.ffp-pillar__icon img { display: block; max-width: 100%; height: auto; transition: transform 0.3s ease; }
.ffp-pillar:hover .ffp-pillar__icon img { transform: translateY(-4px) scale(1.06); }
.ffp-pillar__text { margin: 0; max-width: 14rem; font-weight: 500; line-height: 1.5; }

@media (max-width: 1099px) {
	.ffp-built__plane { z-index: -1; } /* below the desktop layout the plane sits behind the heading so the text stays readable */
	/* the sky is shorter than the headline here, so lift the dark top and give the text its own halo for contrast */
	.ffp-built__sky::after { background:
		linear-gradient(180deg, transparent 45%, var(--wp--preset--color--cream) 100%),
		linear-gradient(180deg, var(--wp--preset--color--navy-700) 0%, var(--wp--preset--color--navy-700) 14%, transparent 40%); }
	.ffp-built__line1 { text-shadow: 0 2px 14px color-mix(in srgb, var(--wp--preset--color--navy-900) 70%, transparent); }
	.ffp-built__line2,
	.ffp-built__lead { text-shadow: 0 0 10px color-mix(in srgb, var(--wp--preset--color--cream) 85%, transparent), 0 0 22px color-mix(in srgb, var(--wp--preset--color--cream) 65%, transparent); }
}
@media (max-width: 1024px) {
	.ffp-pillar { flex-basis: calc((100% - 2rem) / 3); }
	.ffp-built__photo { margin-top: -1.5rem; }
}
@media (max-width: 700px) {
	.ffp-pillar { flex-basis: calc((100% - 1rem) / 2); }
	.ffp-built__plane { z-index: -1; } /* keep the heading readable on phones */
	.ffp-built__cta { position: static; transform: none; padding: 1.5rem 0 0; background: none; text-align: center; }
	.ffp-built__cta .wp-element-button { white-space: normal; }
	.ffp-built__box { padding-bottom: 2rem; }
	.ffp-built__photo { margin-top: 0.75rem; }
	.ffp-built__box { padding-inline: 1rem; }
	.ffp-built__boxtitle { padding-inline: 1rem; width: 85%; }
}

/* Desktop: positions follow the 1920px design, scaled with the viewport. */
@media (min-width: 1100px) {
	.ffp-built { padding-top: 2.2rem; }
	.ffp-built__sky { top: -11.8vw; left: -1.67%; width: 102.4%; height: auto; aspect-ratio: 1966 / 1287; }
	.ffp-built__sky::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, transparent 57.6%, var(--ffp-dusk) 57.6%, var(--wp--preset--color--cream) 100%); }
	.ffp-built__sky > img, .ffp-built__sky > picture > img { height: auto; aspect-ratio: 1966 / 742; }
	.ffp-built__sky::after { inset: 0 0 auto; aspect-ratio: 1966 / 742; background:
			linear-gradient(180deg, transparent 45%, var(--ffp-dusk) 100%),
			linear-gradient(180deg, var(--wp--preset--color--navy-700) 0%, var(--wp--preset--color--navy-700) 30%, transparent 62%); }
	.ffp-built__plane .ffp-built__emblem { display: block; } /* only where the frame keeps the design's proportions */
	.ffp-built__plane { inset: 0 0 auto; aspect-ratio: 1966 / 742; }
	.ffp-built__photo { margin-top: -5.9vw; }
}

/* Desktop: pillar captions wrap at the design's width (4 lines for the long one); roomier icons; the box and the gap below follow the design. */
@media (min-width: 1100px) {
	.ffp-built { padding-bottom: 99px; }
	.ffp-built__box { padding-bottom: 3.3rem; }
	.ffp-pillar { gap: 1.6rem; }
	.ffp-pillar__text { max-width: 12.6rem; }
}

/* Desktop: the design's navy overlay (#0f2238) is solid for 131px, then fades out over the next ~494px of the 742px-tall sky, so the clouds around the plane stay dusky. */
@media (min-width: 1100px) {
	.ffp-built__sky::after { background:
			linear-gradient(180deg, transparent 45%, var(--ffp-dusk) 100%),
			linear-gradient(180deg, var(--wp--preset--color--navy-700) 0%, var(--wp--preset--color--navy-700) 17.7%, transparent 84.2%); }
}
