/*
 * intro.css — the centred introduction below the hero.
 *
 * Figma: "about us" frame, node 45:1983. Artboard reference: 64/82 heading on
 * a 1225px measure, body copy on 1249px, the four pillars on a row at y1756,
 * and the two buttons centred at y1999.
 */

/*
 * Display type is scaled to this site's 1280px column. The artboard sets its
 * sizes against a 1634px content width, so every heading here is that size
 * multiplied by 1280/1634 (~0.78) at the top of its clamp, with the slope
 * recomputed so the curve still reaches that maximum at 1920. Body copy and
 * button labels are untouched — 16px is a floor, not a scaled value.
 */

.intro {
	background: var(--surface-frame);
	color: var(--ink);
}

.introInner {
	width: min(100% - (var(--gutter) * 2), var(--container));
	margin-inline: auto;
	padding-block: clamp(56px, 6.5vw, 120px);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.introEyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	line-height: 28px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--ink);
}

.introEyebrow .eyebrowRule {
	color: var(--accent);
}

/* --------------------------------------------------------- Heading */

/* h2. Fixed 42px by explicit request, matching every other h2 on the page. */
.introTitle {
	margin-top: clamp(16px, 1.6vw, 24px);
	max-width: 1225px;
	font-size: 42px;
	line-height: 1.28;
	font-weight: 400;
	text-transform: capitalize;
	text-wrap: balance;
}

/*
 * The photographs the editor drops into the heading. Height is tied to the
 * heading's own font-size in em rather than fixed px, so a photo stays in
 * proportion to the words either side of it as the type scales down.
 *
 * A wide photo becomes the pill from the artboard; a square one becomes the
 * circle, because the same rule with width:auto produces both.
 */
.introTitle img {
	display: inline-block;
	height: 0.72em;
	width: auto;
	max-width: 2.1em;
	margin-inline: 0.12em;
	vertical-align: middle;
	border-radius: 999px;
	object-fit: cover;
}

.introBody {
	margin-top: clamp(24px, 2.6vw, 42px);
	max-width: 1249px;
	font-family: var(--font-body);
	font-size: clamp(0.9375rem, 0.9rem + 0.16vw, 1rem);
	line-height: 1.625;
	/* 6.7:1 on --surface-frame. Checked against this surface, not white. */
	color: var(--ink-muted);
}

/* --------------------------------------------------------- Pillars */

.introPillars {
	width: 100%;
	margin-top: clamp(40px, 5vw, 88px);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(20px, 2.5vw, 40px);
}

.introPillar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.pillarIcon {
	width: 40px;
	height: 40px;
	color: var(--ink);
}

.introPillarLabel {
	font-size: clamp(1.375rem, 1.345rem + 0.1294vw, 1.5rem);
	line-height: 1.6;
	color: var(--ink);
}

.introPillar .eyebrowRule {
	color: var(--accent);
}

/* --------------------------------------------------------- Actions */

.introActions {
	margin-top: clamp(40px, 4.8vw, 88px);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}

/* --------------------------------------------------------- Small */

@media (max-width: 900px) {
	.introPillars {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 40px;
	}
}

@media (max-width: 480px) {
	/* Two columns still fit at 480; below that the labels start to break. */
	.introPillars {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 16px;
	}

	.introActions {
		flex-direction: column;
		align-self: stretch;
	}

	.introActions .pillBtn {
		justify-content: space-between;
	}
}
