/* ==========================================================================
   Freeport East page. Desktop (lg+) is proportional to the print design,
   so sizes use vw. Below lg everything stacks on navy.
   ========================================================================== */
.fp-hero {
	background: var(--g14-navy, #0e182f);
	color: #fff;
}
.fp-hero__photo {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: 68% 40%;
}

/* Headline + intro */
.fp-headline {
	font-size: 1.75rem;
	line-height: 1.15;
	font-weight: 300;
}
.fp-headline strong { font-weight: 700; }
.fp-intro { font-weight: 300; line-height: 1.6; max-width: 34rem; }
.fp-hmrc { margin-top: 1.5rem; }
.fp-logo { width: 220px; max-width: 100%; height: auto; }

/* Savings circles (mobile: 2 x 2 grid) */
.fp-circle {
	position: relative;
	container-type: inline-size;
	aspect-ratio: 1000 / 995;
	text-align: center;
}
.fp-circle > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.fp-circle__body {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-bottom: 1cqw;
}
.fp-circle__body p { margin: 0; }
.fp-circle__label { font-size: max(.62rem, 5.9cqw); line-height: 1.25; font-weight: 400; }
.fp-circle__label strong { font-weight: 700; }
.fp-circle__value { font-size: 24.5cqw; line-height: .95; font-weight: 700; letter-spacing: -.02em; margin: 3.2cqw 0 !important; }
.fp-circle__note { font-size: max(.6rem, 5.6cqw); line-height: 1.2; font-weight: 400; }

/* Benefits */
.fp-benefits__title { font-size: .8rem; font-weight: 400; text-transform: uppercase; letter-spacing: .03em; }
.fp-benefit__icon { width: 55%; max-width: 136px; height: auto; }
.fp-benefit__label { font-size: .8rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; max-width: 12rem; }
.fp-footnote { font-size: .7rem; font-weight: 300; }

/* ---------- lg and up: print layout ---------- */
@media (min-width: 992px) {
	.fp-hero {
		position: relative;
		display: flex;
		flex-direction: column;
		min-height: 61vw; /* design is 2000 x 1216 */
		background: #8c9aa5;
	}
	.fp-hero__photo {
		position: absolute;
		inset: 0;
		height: 100%;
		aspect-ratio: auto;
		object-position: center;
	}
	.fp-hero__inner {
		position: relative;
		flex: 1;
		display: flex;
		flex-direction: column;
		padding: 2vw 3.8vw 3vw !important;
	}
	.fp-hero__inner > .row { flex: 0 0 auto; }

	.fp-hero__text { padding-top: 5vw; padding-right: 3vw; }
	.fp-headline { font-size: 2.6vw; margin-bottom: 3vw !important; }
	.fp-intro { color: #2b2b2b; font-size: .85vw; max-width: 22vw; }
	.fp-hmrc { margin-top: 1.4vw; font-size: max(.8rem, .85vw); }
	.fp-logo { width: 14vw; margin-left: 3.4vw !important; margin-top: .4vw; }

	/* Circle cluster: positioned by % so it scales as one unit */
	.fp-circles {
		position: relative;
		display: block;
		aspect-ratio: 570 / 770;
		width: 28.5vw;
		max-width: 100%;
		margin-left: auto;
	}
	.fp-circle-item {
		position: absolute;
		left: var(--x);
		top: var(--y);
		width: 47.4%;
		padding: 0;
		max-width: none;
	}

	/* Bootstrap row-cols stops at 6, so set 8 across by hand */
	.fp-benefit-list > li { flex: 0 0 12.5%; width: 12.5%; max-width: 12.5%; }
	.fp-benefits__title { color: #2b2b2b; font-size: .8vw; margin-bottom: 1.5vw !important; }
	.fp-benefit__icon { width: 59%; max-width: none; }
	.fp-benefit__label { font-size: .75vw; margin-top: 1.2vw !important; max-width: 10vw; }
	.fp-footnote { font-size: .55vw; margin-top: 2.5vw !important; }
}

/* Animation: the circles puff in (scale from large), so clip sideways to avoid horizontal scroll. */
.fp-hero { overflow-x: clip; }

/* Below lg the circles sit lower down the page, so stagger them from 0 instead of after the text. */
@media (max-width: 991.98px) {
	.fp-circles .fp-circle-item:nth-child(1) { --anim-delay: 0ms; }
	.fp-circles .fp-circle-item:nth-child(2) { --anim-delay: 100ms; }
	.fp-circles .fp-circle-item:nth-child(3) { --anim-delay: 200ms; }
	.fp-circles .fp-circle-item:nth-child(4) { --anim-delay: 300ms; }
}
