/* ---------------------------------------------------------------------------
   Ace Glove — Section 04: About

   Two columns: copy, icon points and a button on the left; a large photograph
   with an in-image caption and three overlapping statistic cards on the
   right.
--------------------------------------------------------------------------- */

.ags-about {
	--ags-about-radius: 20px;
	/* Portrait — tall enough for three stat cards to spread down its height. */
	--ags-about-ratio: 0.86;
	--ags-about-gap: 64px;
	/* How far the stat column hangs past the photo's right edge. */
	--ags-about-stats-w: 240px;
	--ags-about-stats-out: 56px;

	width: 100%;
	background-color: var(--ags-white);
	/*
	 * Three white fades layered over the photo — top, bottom and left edge —
	 * so the decorative background eases into the surrounding white rather
	 * than stopping at a hard rectangle. Each is sized to a fixed pixel band
	 * rather than a percentage of the section: this section's own height
	 * moves around a lot (the brand-word overlap below adds and removes a
	 * few hundred px of bottom padding), and a percentage-based fade would
	 * shrink to almost nothing or blow out to enormous depending on it.
	 * The actual photo is the last (bottom) layer.
	 */
	background-image:
		linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%),
		linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%),
		linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%),
		var(--ags-about-bg);
	background-size: 100% 220px, 100% 220px, 280px 100%, cover;
	background-position: top center, bottom center, left center, center;
	background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}

.ags-about__inner {
	width: 100%;
	max-width: var(--ags-max);
	margin: 0 auto;
	/* The brand-word section below no longer overlaps upward (its fade is
	   0), so top and bottom just match the shared pad-y directly. */
	padding: var(--ags-pad-y) var(--ags-pad-x) calc(var(--ags-pad-y) + 0px);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center;
	gap: var(--ags-about-gap);
}

/* --- Left: copy ------------------------------------------------------------ */

.ags-about__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* Same eyebrow treatment every other section uses — no local styling of its
   own, so it always matches the site's global heading design. */
.ags-about .ags-about__eyebrow {
	margin: 0 0 16px;
	font-size: var(--ags-eyebrow-size);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ags-primary);
}

.ags-about .ags-about__heading {
	margin: 0;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--ags-secondary);
}

.ags-about .ags-about__text p {
	margin: 20px 0 0;
	max-width: 46ch;
	font-size: var(--ags-text-size);
	font-weight: 400;
	line-height: 1.75;
	color: var(--ags-secondary);
}

/* --- Left: icon points ------------------------------------------------------ */

.ags-about__points {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	width: 100%;
	margin-top: 34px;
}

.ags-about__point {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	padding: 0 16px;
	border-right: 1px solid rgba(19, 31, 40, 0.14);
}

.ags-about__point:first-child {
	padding-left: 0;
}

.ags-about__point:last-child {
	padding-right: 0;
	border-right: none;
}

/* Plain glyph, no ring or fill — just the primary colour. */
.ags-about__point-icon {
	display: grid;
	place-items: center;
	flex: none;
	color: var(--ags-primary);
}

.ags-about__point-glyph {
	width: 40px;
	height: 40px;
}

.ags-about .ags-about__point-label {
	margin: 0;
	max-width: 11ch;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--ags-secondary);
}

.ags-about__btn {
	margin-top: 36px;
}

.ags-about__btn--case-uppercase .ags-btn__label {
	text-transform: uppercase;
}

/* --- Right: photo ----------------------------------------------------------- */

.ags-about__visual {
	position: relative;
	width: 100%;
	/* Clear space on the right for the stat column to hang into. */
	padding-right: calc(var(--ags-about-stats-w) - var(--ags-about-stats-out));
}

.ags-about__photo-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: var(--ags-about-ratio);
	border-radius: var(--ags-about-radius);
	overflow: hidden;
	background-color: var(--ags-secondary);
}

.ags-about__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.ags-about__caption {
	position: absolute;
	left: 28px;
	right: 28px;
	bottom: 28px;
	z-index: 2;
}

.ags-about .ags-about__caption p {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
}

/* Sits directly under the second line, not between the two. */
.ags-about__caption-rule {
	display: block;
	width: 46px;
	height: 3px;
	margin: 10px 0 0;
	border-radius: 2px;
	background-color: var(--ags-primary);
}

/* --- Right: statistics ------------------------------------------------------ */

/*
 * Absolutely positioned so the cards hang over the photo's right edge and
 * out past it — the visual's own right padding is what makes room for them
 * without clipping.
 */
.ags-about__stats {
	position: absolute;
	top: 6%;
	bottom: 6%;
	right: 0;
	width: var(--ags-about-stats-w);
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
}

.ags-about__stat {
	padding: 20px 22px;
	border-radius: 14px;
	background-color: var(--ags-white);
	box-shadow: 0 16px 34px rgba(19, 31, 40, 0.14);
}

/*
 * Nudges the top and bottom cards left, leaving the middle one where it was
 * — the slight zig-zag seen in the reference. Reset back to 0 wherever the
 * column becomes a row (tablet/phone) so it does not read as misaligned.
 */
.ags-about__stats .ags-about__stat:nth-child(1),
.ags-about__stats .ags-about__stat:nth-child(3) {
	transform: translateX(-22px);
}

.ags-about__stat-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ags-about .ags-about__number {
	position: relative;
	display: inline-block;
	margin: 0;
	padding-bottom: 10px;
	font-size: 42px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--ags-primary);
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

/* Underline sits under the number itself, not the whole row. */
.ags-about .ags-about__number::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 28px;
	height: 3px;
	border-radius: 2px;
	background-color: var(--ags-primary);
}

/* A neutral grey circle behind the glyph — distinct from the primary-tinted
   rings used elsewhere, since this sits on a white card rather than a photo
   or a dark panel. */
.ags-about__stat-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: rgba(19, 31, 40, 0.06);
	color: var(--ags-primary);
}

.ags-about__stat-glyph {
	width: 22px;
	height: 22px;
}

.ags-about .ags-about__stat-label {
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(19, 31, 40, 0.62);
}

/* --- Breakpoints ------------------------------------------------------------ */

@media (max-width: 1024px) {
	.ags-about {
		--ags-about-ratio: 1.4;
		--ags-about-gap: 40px;
	}

	.ags-about__inner {
		grid-template-columns: minmax(0, 1fr);
		padding-bottom: calc(var(--ags-pad-y) + 0px);
	}


	/* Stacked: the cards go back into normal flow, in a row under the photo,
	   rather than hanging off an edge that no longer has spare room. */
	.ags-about__visual {
		padding-right: 0;
	}

	.ags-about__stats {
		position: static;
		width: 100%;
		flex-direction: row;
		gap: 16px;
		margin-top: 24px;
	}

	.ags-about__stat {
		flex: 1 1 0;
	}

	.ags-about__stats .ags-about__stat:nth-child(1),
	.ags-about__stats .ags-about__stat:nth-child(3) {
		transform: none;
	}
}

@media (max-width: 600px) {
	.ags-about {
		--ags-about-ratio: 1.05;
	}

	.ags-about__inner {
		padding-bottom: calc(var(--ags-pad-y) + 0px);
	}


	/* 2x2: a divider to the right of the left column, and one under the
	   top row — cleared from wherever it would otherwise land on an outer
	   edge or between two cells that are not actually adjacent. */
	.ags-about__points {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		row-gap: 24px;
	}

	.ags-about__point {
		position: relative;
		padding: 0 16px 20px;
		border-right: none;
		border-bottom: 1px solid rgba(19, 31, 40, 0.14);
	}

	/* Divider is a short inset rule, not a full-height border, so it clears
	   space top and bottom instead of running edge to edge and touching the
	   row divider below it. */
	.ags-about__point:nth-child(2n+1)::after {
		content: "";
		position: absolute;
		top: 6px;
		bottom: 6px;
		right: 0;
		width: 1px;
		background-color: rgba(19, 31, 40, 0.14);
	}

	.ags-about__point:nth-child(2n) {
		padding-right: 0;
	}

	.ags-about__point:nth-child(2n+1) {
		padding-left: 0;
	}

	.ags-about__point:nth-last-child(-n+2) {
		border-bottom: none;
		padding-bottom: 0;
	}

	.ags-about__stats {
		flex-direction: column;
	}

	.ags-about .ags-about__number {
		font-size: 34px;
	}
}

/* --- Scroll-in animation ----------------------------------------------------- */

.ags-about--animate.is-armed .ags-about__eyebrow,
.ags-about--animate.is-armed .ags-about__heading,
.ags-about--animate.is-armed .ags-about__text,
.ags-about--animate.is-armed .ags-about__point,
.ags-about--animate.is-armed .ags-about__btn,
.ags-about--animate.is-armed .ags-about__photo-wrap,
.ags-about--animate.is-armed .ags-about__stat {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.ags-about--animate.is-armed .ags-about__eyebrow,
	.ags-about--animate.is-armed .ags-about__heading,
	.ags-about--animate.is-armed .ags-about__text,
	.ags-about--animate.is-armed .ags-about__point,
	.ags-about--animate.is-armed .ags-about__btn,
	.ags-about--animate.is-armed .ags-about__photo-wrap,
	.ags-about--animate.is-armed .ags-about__stat {
		opacity: 1;
	}
}
