/* Homepage process: a light editorial flow instead of three heavy cards.
 * The content and heading hierarchy stay unchanged; only the presentation is
 * simplified so the steps can be understood in one glance. */
.bb-site .bb-process .bb-process-feature {
	position: relative;
	display: grid;
	overflow: hidden;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: clamp(27rem, 38vw, 32rem);
	margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
	border-radius: 3rem 3rem 1.1rem 3rem;
	background: var(--bb-petrol-dark);
	box-shadow: 0 1.5rem 4rem rgb(25 61 59 / 14%);
	isolation: isolate;
}

.bb-site .bb-process .bb-process-feature::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgb(13 55 53 / 16%) 43%,
		rgb(13 55 53 / 88%) 59%,
		var(--bb-petrol-dark) 100%
	);
	content: "";
}

.bb-site .bb-process .bb-process-feature > .wp-block-column {
	min-width: 0;
}

.bb-site .bb-process .bb-process-feature__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.bb-site .bb-process .bb-process-feature__media figure,
.bb-site .bb-process .bb-process-feature__media img {
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
}

.bb-site .bb-process .bb-process-feature__media img {
	object-fit: cover;
	object-position: center;
}

.bb-site .bb-process .bb-process-feature__copy {
	position: relative;
	z-index: 2;
	grid-column: 2;
	align-self: center;
	padding: clamp(2rem, 3.5vw, 3rem) clamp(2rem, 3.5vw, 3rem) clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 2.5vw, 2.25rem);
}

.bb-site .bb-process .bb-process-feature__copy :where(h2, p) {
	color: var(--bb-white);
}

.bb-site .bb-process .bb-process-feature__copy h2 {
	max-width: 16ch;
	margin-bottom: 0.6em;
	font-size: clamp(2.5rem, 3.45vw, 3.7rem);
	line-height: 1;
}

.bb-site .bb-process .bb-process-feature__copy h2 .bb-title-accent {
	color: var(--bb-sun);
}

.bb-site .bb-process .bb-process-feature__copy > .has-lead-font-size {
	max-width: 43ch;
	margin-bottom: 0;
	font-size: clamp(1rem, 1.15vw, 1.08rem);
	line-height: 1.52;
	color: rgb(255 253 249 / 86%);
	font-size: clamp(1rem, 1.25vw, 1.15rem);
}

.bb-site .bb-process .bb-process-feature__actions {
	margin-top: clamp(1.4rem, 2.5vw, 2rem);
}

.bb-site .bb-process .bb-process-feature__actions .wp-block-button__link {
	border-color: var(--bb-sun);
	background: var(--bb-sun);
	color: var(--bb-petrol-dark);
}

.bb-site .bb-process .bb-process-feature__actions .is-style-outline .wp-block-button__link {
	border-color: rgb(255 255 255 / 70%);
	background: transparent;
	color: var(--bb-white);
}

.bb-site .bb-process .bb-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: clamp(3.5rem, 7vw, 7rem);
	margin-top: clamp(2.25rem, 4vw, 3.5rem);
}

.bb-site .bb-process .bb-steps::before {
	display: none;
}

.bb-site .bb-process .bb-steps > .wp-block-column {
	position: relative;
	min-width: 0;
}

.bb-site .bb-process .bb-steps > .wp-block-column:not(:last-child)::after {
	position: absolute;
	top: 3.35rem;
	right: calc(clamp(3.5rem, 7vw, 7rem) / -2 - 0.8rem);
	width: 1.6rem;
	color: var(--bb-petrol);
	content: "→";
	font-family: var(--bb-editorial);
	font-size: 2rem;
	font-weight: 400;
	line-height: 1;
	text-align: center;
}

.bb-site .bb-process .bb-step {
	display: flex;
	height: auto;
	min-height: 0;
	align-items: center;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
	text-align: center;
	transform: none;
}

/* Cancel the legacy per-step coloured top borders with matching specificity. */
.bb-site .bb-process .bb-steps > .wp-block-column .bb-step {
	border: 0;
}

.bb-site .bb-process .bb-step::before {
	display: block;
	width: 3.1rem;
	height: 3.1rem;
	margin-bottom: 0.85rem;
	background: var(--bb-process-icon) center / contain no-repeat;
	content: "";
}

.bb-site .bb-process .bb-steps > .wp-block-column:nth-child(1) {
	--bb-process-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9967c' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3v-7a4 4 0 0 1-1-3V7a4 4 0 0 1 4-4h11a4 4 0 0 1 4 4z'/%3E%3Cpath d='M7 8h10M7 12h7'/%3E%3C/svg%3E");
}

.bb-site .bb-process .bb-steps > .wp-block-column:nth-child(2) {
	--bb-process-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9967c' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0-9-9'/%3E%3Cpath d='M3 12a5 5 0 0 0 5 5h1a3 3 0 0 0 3-3v-1a2 2 0 0 0-2-2H8'/%3E%3Cpath d='M7 8a5 5 0 0 1 9 3'/%3E%3C/svg%3E");
}

.bb-site .bb-process .bb-steps > .wp-block-column:nth-child(3) {
	--bb-process-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9967c' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 2.6 2.6L16.5 9'/%3E%3C/svg%3E");
}

/* Windows desktop safeguard. At the common 1280px and 1366px widths the
 * wide hero and process banner must retain the same editorial scale as on
 * larger Mac displays, without forcing the content to create extra height. */
@media (min-width: 901px) and (max-width: 1366px) {
	.bb-site .bb-hero {
		min-height: clamp(35rem, 68vh, 43rem);
	}

	.bb-site .bb-hero__content {
		grid-template-columns: minmax(0, 0.88fr) minmax(18rem, 1.12fr);
		padding-block: clamp(2.75rem, 5vw, 4.25rem);
	}

	.bb-site .bb-hero__copy {
		padding: clamp(1.35rem, 2vw, 1.75rem);
	}

	.bb-site .bb-hero__copy h1 {
		max-width: 16ch;
		font-size: clamp(2.55rem, 3.2vw, 3.7rem);
		line-height: 1;
	}

	.bb-site .bb-hero__copy .has-lead-font-size {
		font-size: clamp(1rem, 1.15vw, 1.08rem);
		line-height: 1.5;
	}

	.bb-site .bb-process .bb-process-feature {
		min-height: clamp(27rem, 38vw, 32rem);
		margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
	}

	.bb-site .bb-process .bb-process-feature__copy {
		padding: clamp(2rem, 3.5vw, 3rem) clamp(2rem, 3.5vw, 3rem) clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 2.5vw, 2.25rem);
	}

	.bb-site .bb-process .bb-process-feature__copy h2 {
		max-width: 16ch;
		font-size: clamp(2.5rem, 3.45vw, 3.7rem);
		line-height: 1;
	}

	.bb-site .bb-process .bb-process-feature__copy > .has-lead-font-size {
		font-size: clamp(1rem, 1.15vw, 1.08rem);
		line-height: 1.52;
	}

	.bb-site .bb-process .bb-steps {
		gap: clamp(2.5rem, 5vw, 5rem);
	}

	.bb-site .bb-process .bb-steps > .wp-block-column:not(:last-child)::after {
		right: calc(clamp(2.5rem, 5vw, 5rem) / -2 - 0.8rem);
	}
}

/* Keep homepage motion lightweight and browser-safe. The reveal still fades
 * and lifts content, but no longer clips text or cards while Edge is painting
 * them. */
html.bb-motion-ready .bb-main--front .bb-motion-item,
html.bb-motion-ready .bb-main--front .bb-motion-item.bb-motion-card,
html.bb-motion-ready .bb-main--front .bb-motion-item.is-visible {
	clip-path: none;
}

.bb-site .bb-process .bb-step-number {
	width: auto;
	height: auto;
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--bb-petrol) !important;
	font-family: var(--bb-sans);
	font-size: 0.7rem;
	font-weight: 750;
	letter-spacing: 0.14em;
	line-height: 1;
}

.bb-site .bb-process .bb-step h3 {
	max-width: 16ch;
	margin: 0 auto 0.85rem;
	font-size: clamp(1.65rem, 2.15vw, 2.15rem);
	line-height: 1.08;
}

.bb-site .bb-process .bb-step > p:last-child {
	max-width: 28ch;
	margin: 0 auto;
	color: var(--bb-muted);
	font-size: 0.98rem;
	line-height: 1.62;
}

@media (max-width: 781px) {
	.bb-site .bb-process .bb-process-feature {
		display: block;
		min-height: 0;
		border-radius: 2rem 2rem 0.8rem 2rem;
	}

	.bb-site .bb-process .bb-process-feature::after {
		display: none;
	}

	.bb-site .bb-process .bb-process-feature__media {
		position: relative;
		height: clamp(19rem, 78vw, 28rem);
	}

	.bb-site .bb-process .bb-process-feature__media img {
		object-position: 43% center;
	}

	.bb-site .bb-process .bb-process-feature__copy {
		padding: clamp(2rem, 8vw, 3rem) clamp(1.4rem, 6vw, 2.25rem);
	}

	.bb-site .bb-process .bb-process-feature__copy h2 {
		max-width: 11ch;
		font-size: clamp(2.65rem, 12vw, 4rem);
	}

	.bb-site .bb-process .bb-process-feature__actions,
	.bb-site .bb-process .bb-process-feature__actions .wp-block-button,
	.bb-site .bb-process .bb-process-feature__actions .wp-block-button__link {
		width: 100%;
	}

	.bb-site .bb-process .bb-steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.bb-site .bb-process .bb-steps > .wp-block-column {
		padding: 1.65rem 0 2rem;
		border-bottom: 1px solid var(--bb-line);
	}

	.bb-site .bb-process .bb-steps > .wp-block-column:first-child {
		padding-top: 0.5rem;
	}

	.bb-site .bb-process .bb-steps > .wp-block-column:last-child {
		padding-bottom: 0.5rem;
		border-bottom: 0;
	}

	.bb-site .bb-process .bb-steps > .wp-block-column:not(:last-child)::after {
		display: none;
	}

	.bb-site .bb-process .bb-step::before {
		width: 2.8rem;
		height: 2.8rem;
	}

	.bb-site .bb-process .bb-step h3,
	.bb-site .bb-process .bb-step > p:last-child {
		max-width: 30rem;
	}
}
