/* ---------------------------------------------------------------------------
   Ace Glove — Section: Brand word

   One oversized word, fading out towards the bottom. --ags-wordmark-fade is
   0 (no overlap into the section above), so the fade/negative-margin rules
   below simply resolve to no-ops — kept as variables rather than deleted, so
   a length dropped back in there is a one-line way to bring the overlap
   back. Scoped entirely to this section — it does not touch any other
   section's CSS.
--------------------------------------------------------------------------- */

.ags-wordmark {
	--ags-wordmark-size: 15.5vw;
	--ags-wordmark-fade: 0px;

	position: relative;
	/* Reaches up into the section above so the fade below covers the seam. */
	z-index: 2;
	margin-top: calc(var(--ags-wordmark-fade) * -1);
	width: 100%;
	overflow: hidden;
	background-color: var(--ags-white);
	padding-top: calc(var(--ags-wordmark-fade) + 40px);
	padding-bottom: 60px;
}

/* The fade itself — solid white at the top, easing to transparent, sitting
   over whatever the previous section painted underneath it. */
.ags-wordmark::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: var(--ags-wordmark-fade);
	background-image: linear-gradient(to bottom, var(--ags-white) 0%, rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
}

/*
 * Full width of its own section, not the viewport — .ags-wordmark is already
 * full-bleed, so this just matches it. The old 100vw + negative-margin trick
 * measured "50%" against whichever ancestor happened to be its containing
 * block, which was not reliably the viewport once this row ended up nested
 * a level deeper than the other sections, and the word rendered off-centre.
 */
.ags-wordmark__word {
	position: relative;
	width: 100%;
	margin-left: 0;
	font-family: inherit;
	font-size: var(--ags-wordmark-size);
	font-weight: 700;
	line-height: 0.78;
	letter-spacing: -0.02em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	user-select: none;
	color: transparent;

	background-image: linear-gradient(
		to bottom,
		rgba(0, 127, 62, 0.32) 0%,
		rgba(0, 127, 62, 0.17) 58%,
		rgba(0, 127, 62, 0.10) 100%
	);
	background-image: linear-gradient(
		to bottom,
		color-mix(in srgb, var(--ags-primary) 32%, transparent) 0%,
		color-mix(in srgb, var(--ags-primary) 17%, transparent) 58%,
		color-mix(in srgb, var(--ags-primary) 10%, transparent) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
}

@media (max-width: 1024px) {
	.ags-wordmark {
		--ags-wordmark-size: 16vw;
		--ags-wordmark-fade: 0px;
	}
}

@media (max-width: 600px) {
	.ags-wordmark {
		--ags-wordmark-size: 16.2vw;
		--ags-wordmark-fade: 0px;
	}
}

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

.ags-wordmark--animate.is-armed .ags-wordmark__word {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.ags-wordmark--animate.is-armed .ags-wordmark__word {
		opacity: 1;
	}
}
