/**
 * Homepage — client partners strip
 */

.home-clients {
	padding: 4rem 0;
	background: linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--secondary) / 0.28) 100%);
	overflow: hidden;
}

.home-clients-header {
	max-width: 56rem;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.home-clients-eyebrow {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: hsl(var(--brand-green));
}

.home-clients-headline {
	margin-top: 0.65rem;
	font-size: clamp(1.65rem, 2.6vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.12;
	white-space: nowrap;
}

.home-clients-intro {
	margin-top: 0.85rem;
	font-size: 1rem;
	line-height: 1.65;
	color: hsl(var(--muted-foreground));
}

.home-clients-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.home-clients-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.home-clients-marquee {
	position: relative;
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.home-clients-track {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	gap: 1.15rem;
	animation: home-clients-scroll 38s linear infinite;
}

.home-clients-marquee:hover .home-clients-track {
	animation-play-state: paused;
}

@keyframes home-clients-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.home-client-card {
	display: flex;
	align-items: flex-start;
	flex-shrink: 0;
	gap: 1.15rem;
	min-width: min(92vw, 420px);
	max-width: 420px;
	padding: 1.35rem 1.4rem;
	border-radius: 1.15rem;
	border: 1px solid hsl(var(--border) / 0.65);
	background: hsl(var(--card));
	box-shadow: 0 14px 36px -18px hsl(var(--brand-navy) / 0.22);
}

.home-client-logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 1rem;
	background: hsl(var(--brand-navy) / 0.06);
	border: 1px solid hsl(var(--border) / 0.55);
	overflow: hidden;
}

.home-client-logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0.45rem;
}

.home-client-logo-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: hsl(var(--brand-navy));
	background: linear-gradient(135deg, hsl(var(--brand-green) / 0.16), hsl(var(--brand-navy) / 0.08));
}

.home-client-body {
	min-width: 0;
}

.home-client-name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: hsl(var(--foreground));
}

.home-client-tagline {
	margin: 0.45rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: hsl(var(--muted-foreground));
}

.home-client-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 0.85rem;
}

.home-client-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.28rem 0.65rem;
	border-radius: 9999px;
	font-size: 0.6875rem;
	font-weight: 600;
	color: hsl(var(--brand-navy));
	background: hsl(var(--brand-navy) / 0.07);
	border: 1px solid hsl(var(--brand-navy) / 0.12);
}

.home-client-pill--location {
	color: hsl(var(--brand-green));
	background: hsl(var(--brand-green) / 0.1);
	border-color: hsl(var(--brand-green) / 0.2);
}

.home-client-pill svg {
	width: 0.8rem;
	height: 0.8rem;
	flex-shrink: 0;
}

@media (max-width: 639px) {
	.home-clients-headline {
		white-space: normal;
		font-size: clamp(1.35rem, 5vw, 1.65rem);
	}

}

@media (prefers-reduced-motion: reduce) {
	.home-clients-track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
	}

	.home-clients-marquee {
		mask-image: none;
		-webkit-mask-image: none;
	}

	.home-clients-reveal {
		opacity: 1;
		transform: none;
	}
}
