/**
 * Partners strip — a "trusted by" logo wall, sitting right before the
 * footer. A continuously scrolling marquee (two copies of the same row
 * back to back, animated exactly one row-width per loop so the seam is
 * invisible) rather than a static wrapped grid. Grayscale-and-faded by
 * default, full color on hover. Content is curated per-partner from
 * wp-admin (the "Show on homepage" checkbox on the "partner" post
 * type), not hardcoded here.
 */
.partners-strip {
	/* Extra bottom clearance — .site-footer::before (the torn-paper
	   edge) is an absolutely positioned graphic that bleeds upward over
	   whatever section comes right before the footer; without enough
	   room here it visually covers the bottom of the logos. */
	padding: clamp(40px, 5vw, 64px) 0 clamp(72px, 9vw, 130px);
	background: var(--wp--preset--color--paper);
	border-top: 1px solid var(--wp--preset--color--border);
	overflow: hidden;
}
.partners-strip__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 8.75vw;
	text-align: center;
}
.partners-strip .section-label {
	justify-content: center;
	margin: 0 auto 32px;
}

.partners-strip__viewport {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-strip__track {
	display: flex;
	width: max-content;
	/* One clockwise pass — the track holds two identical rows, so
	   sliding exactly 50% of the track's own width loops seamlessly. */
	animation: partners-scroll 32s linear infinite;
}
.partners-strip__viewport:hover .partners-strip__track {
	animation-play-state: paused;
}
@keyframes partners-scroll {
	from {
		transform: translateX(-50%);
	}
	to {
		transform: translateX(0);
	}
}

.partners-strip__row {
	display: flex;
	align-items: center;
	flex: none;
	gap: clamp(28px, 4vw, 56px);
	padding-right: clamp(28px, 4vw, 56px);
}
.partners-strip__item {
	flex: none;
}
.partners-strip__item a {
	display: block;
}
.partners-strip__item img {
	display: block;
	max-height: 48px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	transition: transform 0.25s ease;
}
.partners-strip__item:hover img {
	transform: translateY(-2px);
}

@media (max-width: 700px) {
	.partners-strip__row {
		gap: 28px 32px;
		padding-right: 32px;
	}
	.partners-strip__item img {
		max-height: 38px;
		max-width: 110px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.partners-strip__track {
		animation: none;
	}
	.partners-strip__viewport {
		overflow-x: auto;
	}
}
