/* Meet Melinda block (ffp/meet-melinda). Design tokens only. */
.ffp-meet {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: 6.5rem 8rem;
	color: var(--wp--preset--color--cream);
	background-color: var(--wp--preset--color--navy-700);
}
.ffp-meet__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.ffp-meet__media figure { margin: 0; position: absolute; left: -14.3%; top: -10%; width: 117%; } /* back + cut-out share one frame so they line up */
.ffp-meet__media img { display: block; width: 100%; height: auto; }
.ffp-meet__back { z-index: 1; }
.ffp-meet__front { z-index: 2; }
.ffp-meet__back img { filter: grayscale(1); }
.ffp-meet__back::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg,
		color-mix(in srgb, var(--wp--preset--color--navy-700) 55%, transparent) 0%,
		color-mix(in srgb, var(--wp--preset--color--navy-700) 85%, transparent) 55%,
		var(--wp--preset--color--navy-700) 100%);
}
.ffp-meet__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	width: min(calc(100% - 2 * var(--wp--preset--spacing--40)), var(--wp--style--global--wide-size, 1240px));
	margin-inline: auto;
}
.ffp-meet__content { grid-column: 2; max-width: 653px; display: flex; flex-direction: column; gap: 1.5rem; }
.ffp-meet__paragraphs { display: flex; flex-direction: column; gap: 1.5rem; }
.ffp-meet__content > *,
.ffp-meet__paragraphs > * { margin-block: 0; }
.ffp-meet__content .ffp-heading { margin-bottom: 0.25rem; }

/* Tablet: keep the two columns. The photo becomes a panel on the left that fades into the navy; the copy stays on the right. */
@media (min-width: 701px) and (max-width: 1024px) {
	.ffp-meet__media { inset: 14% auto 14% 0; width: 54%; -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, #000 62%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-composite: intersect; }
	.ffp-meet__media figure { left: 0; top: 0; width: 100%; height: 100%; }
	.ffp-meet__media img { height: 100%; object-fit: cover; object-position: 34% 50%; }
	.ffp-meet__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
	.ffp-meet__content { grid-column: 2; }
}
@media (min-width: 701px) and (max-width: 900px) {
	.ffp-meet__media img { object-position: 39% 50%; } /* a little further left so she stays clear of the text */
}
@media (max-width: 700px) {
	.ffp-meet { padding-top: 0; padding-bottom: var(--wp--preset--spacing--60); }
	.ffp-meet__media { position: relative; inset: auto; z-index: 0; height: 92vw; max-height: 440px; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); } /* melts into the navy below instead of ending in a hard edge */
	.ffp-meet__media figure { left: 0; top: 0; width: 100%; height: 100%; }
	.ffp-meet__media img { height: 100%; object-fit: cover; object-position: 28% 50%; } /* larger, with her centred at the top */
	.ffp-meet__inner { grid-template-columns: minmax(0, 1fr); margin-top: var(--wp--preset--spacing--50); }
	.ffp-meet__content { grid-column: 1; }
}

/* ==========================================================================
   Light style (is-style-light): the Mastermind "Learn from someone who has lived the turbulence" section. A bright banner photo
   with the cut-out portrait bleeding off the left edge (both share one 1920x1132 frame), navy headline, gold lead, navy copy.
   ========================================================================== */
.ffp-meet.is-style-light {
	padding-block: clamp(3rem, 0.5rem + 10.8vw, 12.8rem) clamp(3rem, 0.5rem + 9.4vw, 11.6rem);
	color: var(--wp--preset--color--navy-700);
	background-color: #e8ecf2;
}
.ffp-meet.is-style-light .ffp-meet__media figure { left: 0; top: 0; width: 100%; height: 100%; }
.ffp-meet.is-style-light .ffp-meet__media img { height: 100%; object-fit: cover; object-position: left bottom; }
.ffp-meet.is-style-light .ffp-meet__back img { filter: none; }
.ffp-meet.is-style-light .ffp-meet__back::after { display: none; }
.ffp-meet.is-style-light .ffp-heading { color: var(--wp--preset--color--navy-700); margin-bottom: 0.5rem; font-optical-sizing: none; font-variation-settings: "opsz" 36; }
.ffp-meet.is-style-light .ffp-meet__content { max-width: 646px; gap: 1rem; }
.ffp-meet.is-style-light .ffp-lead.ffp-lead--italic { margin-bottom: 0.4rem; font-style: normal; font-weight: 400; background: var(--ffp-gold-ink); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.ffp-meet.is-style-light .ffp-meet__paragraphs { gap: 1rem; }
.ffp-meet.is-style-light .ffp-meet__paragraphs > p { margin: 0; }

/* Tablet: same composition as desktop. The banner + portrait frame is scaled to the screen width and sits at the bottom left (the portrait fills the left half); above it a blurred copy of the banner washes into the section, so there is no seam. The copy is the right half */
@media (min-width: 701px) and (max-width: 1024px) {
	.ffp-meet.is-style-light { padding-block: 4.5rem 4rem; }
	.ffp-meet.is-style-light .ffp-meet__media { inset: 0; width: 100%; height: 100%; -webkit-mask-image: none; mask-image: none; }
	.ffp-meet.is-style-light .ffp-meet__media figure.ffp-meet__back,
	.ffp-meet.is-style-light .ffp-meet__media figure.ffp-meet__front { top: auto; bottom: 0; left: 0; width: 100%; height: auto; aspect-ratio: 1920 / 1132; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
	.ffp-meet.is-style-light .ffp-meet__media figure.ffp-meet__wash { display: block; inset: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; }
	.ffp-meet.is-style-light .ffp-meet__wash::before { content: ""; position: absolute; top: 0; left: 0; width: 200%; height: 112%; margin: -6% 0 0 -100%; background: var(--ffp-wash) 100% 0 / cover no-repeat; filter: blur(34px); } /* only the right half of the banner (sky, no figure) */
	.ffp-meet.is-style-light .ffp-meet__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: calc(100% - 2rem); }
	.ffp-meet.is-style-light .ffp-meet__content { grid-column: 2; max-width: none; gap: 0.85rem; padding-left: 0.5rem; }
	.ffp-meet.is-style-light .ffp-heading { font-size: clamp(1.75rem, 0.6rem + 3.2vw, 2.5rem); }
	.ffp-meet.is-style-light .ffp-lead.ffp-lead--italic { font-size: var(--wp--preset--font-size--medium); }
	.ffp-meet.is-style-light .ffp-meet__paragraphs { font-size: 0.9375rem; }
}
/* Phone: the portrait band sits on top, the copy follows on the light background */
@media (max-width: 700px) {
	.ffp-meet.is-style-light { padding-top: 0; padding-bottom: var(--wp--preset--spacing--60); }
	.ffp-meet.is-style-light .ffp-meet__media { position: relative; inset: auto; z-index: 0; width: 100%; height: 84vw; max-height: 620px; -webkit-mask-image: none; mask-image: none; }
	.ffp-meet.is-style-light .ffp-meet__media img { object-position: left bottom; }
	.ffp-meet.is-style-light .ffp-meet__inner { grid-template-columns: minmax(0, 1fr); margin-top: var(--wp--preset--spacing--50); }
	.ffp-meet.is-style-light .ffp-meet__content { grid-column: 1; max-width: 720px; }
	/* Accessibility: the gold lead was 3.7 to 4.35:1 on the light background; a deeper gold keeps the look and clears 4.5:1. */
	.ffp-meet.is-style-light .ffp-lead.ffp-lead--italic { background-image: linear-gradient(74deg,
		color-mix(in srgb, var(--wp--preset--color--gold-dark) 90%, var(--wp--preset--color--navy-900)) 1%,
		color-mix(in srgb, var(--wp--preset--color--gold-dark) 84%, var(--wp--preset--color--navy-900)) 50%,
		color-mix(in srgb, var(--wp--preset--color--gold-deep) 78%, var(--wp--preset--color--navy-900)) 96%); }
}

.ffp-meet__wash { display: none; }

/* Accessibility: between 1025px and 1599px the light banner scaled with the section height, so the portrait (and her dark jacket) ran under the
   copy. Same composition as the tablet: the 1920 banner frame scales with the width and sits bottom-left; a blurred copy washes into the section above it. */
@media (min-width: 1025px) and (max-width: 1599px) {
	.ffp-meet.is-style-light .ffp-meet__media { inset: 0; width: 100%; height: 100%; -webkit-mask-image: none; mask-image: none; }
	.ffp-meet.is-style-light .ffp-meet__media figure.ffp-meet__back,
	.ffp-meet.is-style-light .ffp-meet__media figure.ffp-meet__front { top: auto; bottom: 0; left: 0; width: 100%; height: auto; aspect-ratio: 1920 / 1132; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
	.ffp-meet.is-style-light .ffp-meet__media figure.ffp-meet__wash { display: block; inset: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; }
	.ffp-meet.is-style-light .ffp-meet__wash::before { content: ""; position: absolute; top: 0; left: 0; width: 200%; height: 112%; margin: -6% 0 0 -100%; background: var(--ffp-wash) 100% 0 / cover no-repeat; filter: blur(34px); }
}
