/**
 * About (/company/): the three figures and Giving Back. The intro band is in common.css.
 */

/* ---------------------------------------------------------------------------------------------
 * Figures. The same three-up figure as the home page's metrics band, but boxed: every figure has
 * a full 1px border, drawn as an inset shadow so it takes no room, as the design's own ::after does.
 * ------------------------------------------------------------------------------------------- */

.as-metrics {
	display: flex;
	justify-content: center;
	padding: 96px 32px 0;
}

.as-metrics__inner {
	display: flex;
	flex-direction: column;
	gap: 48px;
	width: 100%;
	max-width: var(--as-container-narrow);
}

.as-metrics__title {
	max-width: 760px;
	margin: 0;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--as-page-ink);
}

.as-metrics__group {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.as-metric {
	display: flex;
	flex-direction: column;
	gap: 88px;
	padding: 32px;
	box-shadow: inset 0 0 0 1px var(--as-page-border);
}

.as-metric__head {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.as-metric__value {
	margin: 0;
	font-family: var(--as-font-display);
	font-size: 100px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--as-ink);
}

/* Held at 48 whether the label is one line or two, as on the home page. */
.as-metric__label {
	height: 48px;
}

.as-metric__label-text,
.as-metric__body {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: var(--as-lh-snug);
	letter-spacing: -0.04em;
}

.as-metric__label-text {
	color: var(--as-ink-50);
}

.as-metric__body {
	color: var(--as-ink);
}

/* ---------------------------------------------------------------------------------------------
 * Giving Back. The logos are drawn at fixed sizes that scale by breakpoint (1, 0.75, 0.5), set
 * from each logo's own desktop size so a replacement logo keeps its proportions.
 * ------------------------------------------------------------------------------------------- */

.as-giving {
	--as-logo-scale: 1;

	display: flex;
	justify-content: center;
	padding: 96px 32px;
	color: #020816;
}

.as-giving__inner {
	display: flex;
	flex-direction: column;
	gap: 80px;
	align-items: center;
	width: 100%;
	max-width: var(--as-container-narrow);
}

.as-giving__heading {
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: center;
	width: 100%;
	text-align: center;
}

.as-giving__title {
	width: 100%;
	margin: 0;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.35;
}

.as-giving__lead {
	max-width: 674px;
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	letter-spacing: -0.01em;
}

.as-giving__logos {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 56px;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.as-giving__logo {
	width: calc(var(--w) * var(--as-logo-scale) * 1px);
	height: calc(var(--h) * var(--as-logo-scale) * 1px);
}

.as-giving__logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.as-giving__more {
	font-size: 15px;
	line-height: 1.25;
}

/* The closing line, under a 1px red rule across the column. */
.as-statement {
	display: flex;
	justify-content: flex-end;
	width: 100%;
	padding-top: 45px;
	box-shadow: inset 0 1px 0 var(--as-page-marker);
}

.as-statement__body {
	display: flex;
	flex-direction: column;
	width: 400px;
}

.as-statement__text {
	margin: 0 0 0 32px;
	font-size: 15px;
	line-height: 1.4;
	letter-spacing: -0.01em;
}

@media (max-width: 1199px) {
	.as-metrics {
		padding-top: 80px;
	}

	.as-metrics__title {
		font-size: 34px;
	}

	.as-metrics__group {
		grid-template-columns: minmax(0, 1fr);
	}

	.as-metric {
		gap: 100px;
		padding: 20px;
	}

	.as-metric__label-text,
	.as-metric__body {
		font-size: 18px;
	}

	.as-giving {
		--as-logo-scale: 0.75;

		padding: 80px 32px;
	}

	.as-giving__inner {
		gap: 64px;
	}
}

/* The tablet holds every figure at 419, the desktop height, though its content needs 354. */
@media (max-width: 1199px) and (min-width: 810px) {
	.as-metric {
		height: 419px;
	}
}

@media (max-width: 809px) {
	.as-metrics {
		padding: 64px 20px 0;
	}

	.as-metrics__inner {
		gap: 32px;
	}

	.as-metrics__title {
		font-size: 28px;
	}

	.as-metrics__group {
		gap: 12px;
	}

	.as-metric__label-text,
	.as-metric__body {
		font-size: 16px;
	}

	.as-giving {
		--as-logo-scale: 0.5;

		padding: 64px 20px;
	}

	.as-giving__inner {
		gap: 48px;
	}

	.as-giving__title {
		font-size: 32px;
	}

	.as-giving__logos {
		gap: 28px 32px;
	}

	.as-statement {
		justify-content: flex-start;
		padding-top: 32px;
	}

	.as-statement__body {
		width: 100%;
	}

	.as-statement__text {
		margin-left: 24px;
	}
}
