.brand-marquee-section {
	position: relative;
	overflow: hidden;
	padding: clamp(2.6rem, 5.3vw, 4.35rem) 0 clamp(2.9rem, 5.8vw, 4.7rem);
	background:
		linear-gradient(180deg, #ffffff 0%, #fbfbfb 50%, #f7f7f7 100%);
	border-top: 1px solid rgba(17, 17, 17, 0.06);
	border-bottom: 1px solid rgba(17, 17, 17, 0.06);
	isolation: isolate;
}

.brand-marquee-section__ambient {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(circle at 50% 8%, rgba(192, 1, 19, 0.055), transparent 36%),
		linear-gradient(90deg, rgba(10, 10, 10, 0.025) 1px, transparent 1px);
	background-size: auto, 72px 72px;
	opacity: 0.75;
	mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

.brand-marquee-header {
	max-width: 620px;
	margin: 0 auto clamp(1.65rem, 3.8vw, 2.55rem);
	text-align: center;
}

.brand-marquee-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 0.75rem;
	padding: 0.42rem 0.72rem;
	border: 1px solid rgba(16, 16, 16, 0.1);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.045);
	color: rgba(24, 24, 24, 0.68);
	font-family: "Oxanium", "Roboto", sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1;
	text-transform: uppercase;
}

.brand-marquee-eyebrow span {
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 999px;
	background: #c00113;
	box-shadow: 0 0 10px rgba(192, 1, 19, 0.42);
}

.brand-marquee-title {
	max-width: 560px;
	margin: 0 auto;
	color: #151515;
	font-family: "Roboto", sans-serif;
	font-size: clamp(1.3rem, 2.8vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.16;
	scroll-margin-top: 96px;
}

.brand-marquee-copy {
	max-width: 500px;
	margin: 0.65rem auto 0;
	color: rgba(24, 24, 24, 0.62);
	font-size: clamp(0.9rem, 1.55vw, 0.98rem);
	font-weight: 400;
	line-height: 1.62;
	letter-spacing: 0;
}

.brand-marquee-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
}

.brand-marquee-wrapper:active,
.brand-marquee-wrapper.is-dragging {
	cursor: grabbing;
}

.brand-marquee-wrapper:hover .brand-marquee-track,
.brand-marquee-wrapper.is-dragging .brand-marquee-track {
	animation-play-state: paused;
}

.brand-marquee-track {
	--brand-marquee-offset: 0px;
	display: flex;
	width: max-content;
	gap: clamp(1.5rem, 3vw, 2.35rem);
	padding: 0.65rem clamp(1.4rem, 4.2vw, 3.1rem) 0.85rem;
	animation: brandMarquee 52s linear infinite;
	transform: translate3d(calc(var(--brand-marquee-offset) * -1), 0, 0);
	will-change: transform;
}

.brand-marquee-wrapper.is-enhanced .brand-marquee-track {
	animation: none;
}

.brand-marquee-set {
	display: flex;
	flex: 0 0 auto;
	gap: clamp(1.5rem, 3vw, 2.35rem);
	align-items: center;
}

.brand-marquee-card {
	position: relative;
	z-index: 1;
	isolation: isolate;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: clamp(11.8rem, 17vw, 16.6rem);
	height: clamp(6.9rem, 9.4vw, 9.15rem);
	padding: clamp(1.15rem, 2vw, 1.65rem);
	overflow: hidden;
	border: 1px solid rgba(20, 20, 20, 0.09);
	border-radius: 0.95rem;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 246, 246, 0.9));
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		0 18px 42px rgba(0, 0, 0, 0.07);
	transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.brand-marquee-card::before {
	content: "";
	position: absolute;
	inset: 1px;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), transparent 45%);
	opacity: 0.72;
	pointer-events: none;
}

.brand-marquee-card:hover {
	z-index: 2;
	transform: translateY(-4px);
	border-color: rgba(192, 1, 19, 0.22);
	background:
		linear-gradient(145deg, #ffffff, #f8f8f8);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		0 22px 52px rgba(0, 0, 0, 0.095),
		0 0 0 4px rgba(192, 1, 19, 0.035);
}

.brand-marquee-logo {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	filter: grayscale(0.18) saturate(0.9) contrast(1.02);
	opacity: 0.88;
	pointer-events: none;
	transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.brand-marquee-card:hover .brand-marquee-logo {
	filter: grayscale(0) saturate(1.06) contrast(1.02);
	opacity: 1;
}

.brand-marquee-card--vonixx {
	padding: clamp(1rem, 1.7vw, 1.35rem);
	border-color: rgba(139, 183, 226, 0.2);
	background:
		radial-gradient(circle at 22% 18%, rgba(64, 116, 176, 0.34), transparent 42%),
		linear-gradient(145deg, #071936 0%, #09244c 54%, #041126 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.16),
		inset 0 -24px 42px rgba(1, 10, 24, 0.18),
		0 18px 42px rgba(5, 20, 42, 0.14);
}

.brand-marquee-card--vonixx::before {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 42%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 58%);
	opacity: 0.9;
}

.brand-marquee-card--vonixx:hover {
	border-color: rgba(173, 218, 255, 0.38);
	background:
		radial-gradient(circle at 24% 18%, rgba(84, 144, 210, 0.42), transparent 44%),
		linear-gradient(145deg, #09214a 0%, #0b2b5a 56%, #05172f 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.2),
		inset 0 -24px 42px rgba(1, 10, 24, 0.18),
		0 24px 56px rgba(5, 20, 42, 0.2),
		0 0 0 4px rgba(94, 167, 235, 0.055);
}

.brand-marquee-card--vonixx .brand-marquee-logo {
	max-width: 94%;
	max-height: 72%;
	filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18)) brightness(1.06) contrast(1.04);
	opacity: 0.96;
	transform: translateY(-1%);
}

.brand-marquee-card--vonixx:hover .brand-marquee-logo {
	filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.2)) brightness(1.1) contrast(1.05);
	opacity: 1;
	transform: translateY(-1%) scale(1.02);
}

.brand-marquee-card--carpro {
	padding: clamp(1.05rem, 1.8vw, 1.4rem);
}

.brand-marquee-card--carpro .brand-marquee-logo {
	max-width: 95%;
	max-height: 72%;
	transform: translateY(-1%);
}

.brand-marquee-card--garware {
	padding-inline: clamp(0.8rem, 1.45vw, 1.05rem);
}

.brand-marquee-card--garware .brand-marquee-logo {
	max-width: 99%;
	max-height: 84%;
}

.brand-marquee-card--meguiars {
	background:
		linear-gradient(145deg, #ffffff, #f8f6f1);
}

.brand-marquee-card--meguiars .brand-marquee-logo {
	max-width: 90%;
	max-height: 80%;
	transform: scale(1.14);
}

.brand-marquee-fade {
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 3;
	width: min(14vw, 130px);
	pointer-events: none;
}

.brand-marquee-fade--left {
	left: 0;
	background: linear-gradient(90deg, #fbfbfb 0%, rgba(251, 251, 251, 0.78) 36%, transparent 100%);
}

.brand-marquee-fade--right {
	right: 0;
	background: linear-gradient(270deg, #fbfbfb 0%, rgba(251, 251, 251, 0.78) 36%, transparent 100%);
}

@keyframes brandMarquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(calc(-100% / 3));
	}
}

@media only screen and (max-width: 767px) {
	.brand-marquee-section {
		padding: 2.35rem 0 2.7rem;
	}

	.brand-marquee-header {
		max-width: 330px;
		margin-bottom: 1.55rem;
	}

	.brand-marquee-title {
		font-size: clamp(1.25rem, 6vw, 1.55rem);
	}

	.brand-marquee-copy {
		max-width: 320px;
	}

	.brand-marquee-track,
	.brand-marquee-set {
		gap: 1.1rem;
	}

	.brand-marquee-track {
		padding: 0.6rem 1.1rem 0.8rem;
		animation-duration: 42s;
	}

	.brand-marquee-card {
		width: 11rem;
		height: 6.7rem;
		padding: 1rem;
		border-radius: 0.82rem;
	}

	.brand-marquee-card--carpro {
		padding: 1rem;
	}

	.brand-marquee-fade {
		width: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.brand-marquee-track {
		animation: none;
		transform: none;
	}
}
