/* ==========================================================================
   Probit Technologies Block — logo strip
   ========================================================================== */

.technologies {
	background: var(--color-white);
	padding: 40px 0 48px;
}

.technologies .container {
	max-width: var(--container-wide);
}

.technologies__inner {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.technologies__header {
	text-align: left;
}

.technologies--static .technologies__header {
	text-align: center;
}

.technologies__header .eyebrow {
	margin-bottom: 0;
}

/* Static row — centered when 6 or fewer logos */
.technologies__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 32px 48px;
}

.technologies__list--centered {
	justify-content: center;
}

.tech-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	line-height: 0;
}

.tech-logo__img {
	display: block;
	width: auto;
	height: auto;
	max-height: 42px;
	max-width: 140px;
	object-fit: contain;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.technologies--static .tech-logo:hover .tech-logo__img {
	opacity: 0.85;
	transform: scale(1.03);
}

/* Marquee — slow scroll when more than 6 logos */
.technologies__marquee {
	--marquee-duration: 48s;
	--marquee-gap: 48px;
}

.technologies__marquee-viewport {
	overflow: hidden;
	mask-image: linear-gradient(
		90deg,
		transparent 0%,
		#000 6%,
		#000 94%,
		transparent 100%
	);
}

.technologies__marquee-track {
	display: flex;
	width: max-content;
	animation: technologies-marquee var(--marquee-duration) linear infinite;
	will-change: transform;
}

.technologies__marquee-group {
	display: flex;
	align-items: center;
	gap: var(--marquee-gap);
	padding-right: var(--marquee-gap);
	flex-shrink: 0;
}

.technologies__marquee:hover .technologies__marquee-track {
	animation-play-state: paused;
}

@keyframes technologies-marquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

/* Empty state */
.technologies__list--placeholder {
	position: relative;
	justify-content: center;
}

.technologies__placeholder-text {
	width: 100%;
	margin: 0 0 16px;
	text-align: center;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--color-gray-600);
}

.tech-logo--placeholder {
	pointer-events: none;
}

.tech-logo__placeholder {
	display: block;
	width: 96px;
	height: 36px;
	border-radius: 6px;
	background: linear-gradient(135deg, #eef1f6 0%, #e2e8f0 100%);
	opacity: 0.7;
}

@media (max-width: 768px) {
	.technologies {
		padding: 32px 0 40px;
	}

	.technologies__inner {
		gap: 20px;
	}

	.technologies__list {
		gap: 24px 32px;
	}

	.technologies__marquee {
		--marquee-gap: 32px;
	}

	.tech-logo__img {
		max-height: 36px;
		max-width: 110px;
	}

	.tech-logo__placeholder {
		width: 72px;
		height: 30px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.technologies__marquee-track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
		gap: 24px 32px;
	}

	.technologies__marquee-group[aria-hidden='true'] {
		display: none;
	}

	.technologies__marquee-viewport {
		overflow: visible;
		mask-image: none;
	}
}
