/**
 * Front-page info banner: editorial block + spotlight + ticker (below header).
 */

.gather-home-info-banner {
	--gather-info-taupe: #b0a69c;
	--gather-info-taupe-deep: #9a9188;
	background-color: var(--gather-chalk);
	border-bottom: 1px solid var(--gather-border-subtle);
}

.gather-home-info-banner__grid {
	display: grid;
	grid-template-columns: 1fr;
	min-height: clamp(14rem, 42vw, 22rem);
}

@media (min-width: 720px) {
	.gather-home-info-banner__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		min-height: clamp(16rem, 32vw, 24rem);
		align-items: stretch;
	}
}

.gather-home-info-banner__main {
	padding: clamp(1.75rem, 4vw, 3rem) var(--gather-page-gutter-x);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	min-width: 0;
}

.gather-home-info-banner__eyebrow {
	margin: 0 0 1rem;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--gather-slate);
}

.gather-home-info-banner__title {
	margin: 0 0 1rem;
	font-family: 'Fraunces', Georgia, serif;
	font-size: clamp(2.1rem, 4.2vw, 3.25rem);
	line-height: 1.14;
	font-weight: 300;
	font-style: italic;
	max-width: 38ch;
}

/* Inline on small viewports; newline-delimited segments become stacked lines on desktop */
.gather-home-info-banner__title-line {
	display: inline;
}

.gather-home-info-banner__title-line:not(:last-child)::after {
	content: '\0020';
}

@media (min-width: 720px) {
	.gather-home-info-banner__title {
		line-height: 1.06;
		max-width: min(22ch, 100%);
	}

	.gather-home-info-banner__title-line {
		display: block;
	}

	.gather-home-info-banner__title-line:not(:last-child)::after {
		content: none;
	}
}

.gather-home-info-banner__lede {
	margin: 0 0 1.75rem;
	font-size: clamp(0.9375rem, 1.9vw, 1.0625rem);
	line-height: 1.6;
	color: var(--gather-slate);
	max-width: 42ch;
}

.gather-home-info-banner__stats {
	--gather-info-stat-value-caption-gap: 0.35rem;
	/* Wrapped cert lines */
	--gather-info-stat-cert-lh: 1.2;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	column-gap: var(--gather-page-gutter-x);
	row-gap: 1.35rem;
	padding-top: 1.35rem;
	border-top: 1px solid var(--gather-border-subtle);
	margin: 0;
}

.gather-home-info-banner__stat:last-child {
	grid-column: 1 / -1;
}

/* Narrow screens: centred pair row, certs separated and balanced */
@media (max-width: 519px) {
	.gather-home-info-banner__stats {
		column-gap: clamp(0.75rem, 4vw, 1.5rem);
		row-gap: 1rem;
	}

	.gather-home-info-banner__stat:not(:last-child) {
		justify-content: flex-end;
		align-items: center;
		text-align: center;
	}

	.gather-home-info-banner__stat:last-child {
		align-items: center;
		text-align: center;
		padding-top: 3rem;
		padding-bottom: 0.75rem;
		border-top: 1px solid var(--gather-border-subtle);
	}

	.gather-home-info-banner__stat-value--certs {
		line-height: 1.38;
		letter-spacing: 0.07em;
		text-wrap: balance;
	}
}

@media (min-width: 520px) {
	.gather-home-info-banner__stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--gather-page-gutter-x);
		row-gap: 0;
		justify-items: start;
	}

	.gather-home-info-banner__stat:last-child {
		grid-column: auto;
	}
}

.gather-home-info-banner__stat {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	align-self: stretch;
	gap: var(--gather-info-stat-value-caption-gap);
	min-width: 0;
	min-height: 100%;
	text-align: left;
	width: 100%;
}

.gather-home-info-banner__stat-value {
	display: block;
	margin: 0;
	padding: 0;
	overflow: visible;
	font-size: clamp(1.625rem, 3.55vw, 3.075rem);
	line-height: 1.3;
	font-weight: 400;
	font-style: italic;
	font-variant-numeric: tabular-nums;
	color: var(--gather-charcoal);
	letter-spacing: -0.02em;
}

.gather-home-info-banner__stat-value--certs {
	font-family: var(--gather-font-body);
	font-size: clamp(0.75rem, 1.65vw, 0.9375rem);
	font-style: normal;
	font-weight: 600;
	line-height: var(--gather-info-stat-cert-lh);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	word-break: break-word;
	hyphens: auto;
	color: var(--gather-charcoal);
}

.gather-home-info-banner__stat-caption {
	display: block;
	margin: 0;
	padding: 0;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
	color: var(--gather-slate);
}

/* Spotlight column */
.gather-home-info-banner__spotlight-carousel {
	position: relative;
	min-height: 12rem;
	overflow: hidden;
	background: linear-gradient(160deg, var(--gather-info-taupe) 0%, var(--gather-info-taupe-deep) 100%);
}

.gather-home-info-banner__spotlight {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 12rem;
	padding: 1.5rem;
	background: linear-gradient(160deg, var(--gather-info-taupe) 0%, var(--gather-info-taupe-deep) 100%);
	color: var(--gather-chalk);
	text-decoration: none;
	overflow: hidden;
}

.gather-home-info-banner__spotlight--slide {
	display: block;
	position: absolute;
	inset: 0;
	min-height: 0;
	padding: 0;
	background: transparent;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.65s ease, visibility 0s linear 0.65s;
	z-index: 0;
	/* Foot scrim — aligned with bento `home-bento-v2.css`; tune alphas/stops here. */
	--gather-home-info-banner-scrim-strong: 0.5;
	--gather-home-info-banner-scrim-mid: 0.12;
	--gather-home-info-banner-scrim-mid-pos: 42%;
	--gather-home-info-banner-scrim-clear-pos: 85%;
}

.gather-home-info-banner__spotlight--slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.65s ease, visibility 0s linear 0s;
	z-index: 1;
}

.gather-home-info-banner__spotlight--slide .gather-home-info-banner__spotlight-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

/* Ken Burns target (keyframes from `home-bento-v2.css`, same as archive listing) */
.gather-home-info-banner__spotlight-ken {
	position: absolute;
	inset: 0;
	transform-origin: 50% 50%;
}

/* Bottom-weighted scrim (vars on slide) — balances legibility vs photo, same logic as bento. */
.gather-home-info-banner__spotlight--slide .gather-home-info-banner__spotlight-media::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgb(42 39 39 / var(--gather-home-info-banner-scrim-strong)) 0%,
		rgb(42 39 39 / var(--gather-home-info-banner-scrim-mid)) var(--gather-home-info-banner-scrim-mid-pos),
		transparent var(--gather-home-info-banner-scrim-clear-pos)
	);
	pointer-events: none;
}

.gather-home-info-banner__spotlight-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/*
 * Ken Burns — uses `gather-kb-*` @keyframes from `home-bento-v2.css` (enqueued before this file on the front page).
 */
[data-gather-spotlight-carousel] .gather-home-info-banner__spotlight-ken {
	animation: gather-kb-fallback-a 12s ease-in-out infinite alternate both;
}

[data-gather-spotlight-carousel] .gather-home-info-banner__spotlight-ken[data-aspect='wide'] {
	animation: gather-kb-wide-a 12s ease-in-out infinite alternate both;
}

[data-gather-spotlight-carousel] .gather-home-info-banner__spotlight-ken[data-aspect='tall'] {
	animation: gather-kb-tall-a 12s ease-in-out infinite alternate both;
}

[data-gather-spotlight-carousel] .gather-home-info-banner__spotlight-ken[data-aspect='square'] {
	animation: gather-kb-square-a 12s ease-in-out infinite alternate both;
}

[data-gather-spotlight-carousel] .gather-home-info-banner__spotlight--slide:nth-child(odd) .gather-home-info-banner__spotlight-ken[data-aspect='wide'] {
	animation: gather-kb-wide-b 12s ease-in-out infinite alternate both;
}

[data-gather-spotlight-carousel] .gather-home-info-banner__spotlight--slide:nth-child(odd) .gather-home-info-banner__spotlight-ken[data-aspect='tall'] {
	animation: gather-kb-tall-b 12s ease-in-out infinite alternate both;
}

[data-gather-spotlight-carousel] .gather-home-info-banner__spotlight--slide:nth-child(odd) .gather-home-info-banner__spotlight-ken[data-aspect='square'] {
	animation: gather-kb-square-b 12s ease-in-out infinite alternate both;
}

[data-gather-spotlight-carousel] .gather-home-info-banner__spotlight--slide:nth-child(odd) .gather-home-info-banner__spotlight-ken:not([data-aspect]) {
	animation: gather-kb-fallback-b 12s ease-in-out infinite alternate both;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.gather-home-info-banner__spotlight--slide:hover .gather-home-info-banner__spotlight-ken,
	.gather-home-info-banner__spotlight--slide:focus-visible .gather-home-info-banner__spotlight-ken {
		animation-play-state: paused;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gather-home-info-banner__spotlight--slide {
		transition: none;
	}

	[data-gather-spotlight-carousel] .gather-home-info-banner__spotlight-ken {
		animation: none !important;
		transform: none !important;
	}
}

.gather-home-info-banner__spotlight:hover {
	color: var(--gather-chalk);
}

.gather-home-info-banner__spotlight:focus-visible {
	outline: 2px solid var(--gather-terra);
	outline-offset: -4px;
}

.gather-home-info-banner__spotlight--empty {
	pointer-events: none;
	flex-direction: column;
	gap: 1rem;
	text-align: center;
}

.gather-home-info-banner__spotlight-index {
	font-family: var(--gather-font-headline);
	font-size: clamp(4.5rem, 20vw, 9rem);
	font-weight: 400;
	font-style: italic;
	line-height: 1;
	color: rgb(242 237 230 / 0.22);
	user-select: none;
}

.gather-home-info-banner__spotlight-index--muted {
	color: rgb(242 237 230 / 0.18);
}

/* Image overlay text — matches bento tile title / meta (`home-bento-v2.css`). */
.gather-home-info-banner__spotlight--slide .gather-home-info-banner__spotlight-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: clamp(0.65rem, 2vw, 1.1rem) clamp(1rem, 3vw, 1.5rem);
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-height: 2.35em;
	justify-content: flex-end;
	pointer-events: none;
	text-align: left;
}

.gather-home-info-banner__spotlight-title {
	font-family: var(--gather-font-headline);
	font-size: clamp(0.9375rem, 2.1vw, 1.125rem);
	font-weight: 400;
	line-height: 1.2;
	color: var(--gather-chalk);
	text-shadow:
		0 1px 3px rgb(0 0 0 / 0.45),
		0 0 1px rgb(0 0 0 / 0.35);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	max-width: min(100%, 22rem);
}

.gather-home-info-banner__spotlight-sub {
	font-family: var(--gather-font-body);
	font-size: 0.65625rem;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0.04em;
	color: rgb(255 255 255 / 0.88);
	text-shadow: 0 1px 2px rgb(0 0 0 / 0.4);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	word-break: break-word;
	max-width: min(100%, 22rem);
}

.gather-home-info-banner__spotlight-sub--empty {
	color: rgb(255 255 255 / 0.42);
	letter-spacing: 0.12em;
	text-shadow: none;
}

.gather-home-info-banner__spotlight-empty {
	margin: 0;
	max-width: 16rem;
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	line-height: 1.45;
	color: rgb(242 237 230 / 0.65);
}

/* Ticker */
.gather-home-info-banner__ticker {
	overflow: hidden;
	border-top: 1px solid var(--gather-border-subtle);
	background: rgb(58 53 53 / 0.06);
	padding: 0.45rem 0;
}

.gather-home-info-banner__ticker-inner {
	display: flex;
	width: max-content;
	will-change: transform;
	animation: gather-home-info-ticker 55s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
	.gather-home-info-banner__ticker-inner {
		animation: none;
		flex-wrap: wrap;
		width: 100%;
		padding: 0 var(--gather-page-gutter-x) 0.25rem;
		row-gap: 0.35rem;
	}
}

.gather-home-info-banner__ticker-text {
	flex: 0 0 auto;
	/* Match ~one " · " stride (segment already ends with $ticker_sep); avoid huge loop seam */
	padding-right: 0.5em;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	color: var(--gather-slate);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.gather-home-info-banner__ticker-text {
		white-space: normal;
		padding-right: 0;
	}

	.gather-home-info-banner__ticker-text[aria-hidden="true"] {
		display: none;
	}
}

@keyframes gather-home-info-ticker {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}
