.at-homepage-customers,
.at-homepage-testimonials {
	padding-top: var(--at-marketing-section-padding);
}

.at-homepage-customers__intro {
	text-align: center;
}

.at-homepage-customers__title,
.at-homepage-testimonials__title {
	margin: 0 0 16px;
	color: var(--at-marketing-on-inverse);
	font-size: 40px;
	font-weight: 500;
	letter-spacing: -.02em;
	line-height: 1.15;
}

.at-homepage-customers__intro p {
	max-width: 640px;
	margin: 0 auto;
	text-wrap: balance;
	color: var(--at-marketing-on-inverse-muted);
	font-size: 18px;
	line-height: 1.6;
}

.at-homepage-customers__marquee {
	--at-homepage-customer-width: 380px;
	--at-homepage-customer-gap: 24px;

	overflow: hidden;
	margin-top: 56px;
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.at-homepage-customers__track {
	display: flex;
	width: max-content;
	padding-block: 10px;
}

.at-homepage-customers__group {
	display: flex;
	flex: 0 0 auto;
	gap: var(--at-homepage-customer-gap);
	margin: 0;
	padding: 0 var(--at-homepage-customer-gap) 0 0;
	list-style: none;
}

.at-homepage-customers__item {
	flex: 0 0 var(--at-homepage-customer-width);
	width: var(--at-homepage-customer-width);
	margin: 0;
	padding: 0;
	list-style: none;
}

.at-homepage-customer {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 380 / 447;
	border-radius: var(--at-marketing-radius-lg);
	background: var(--at-marketing-surface-inverse-raised);
	color: var(--at-marketing-on-inverse);
	text-decoration: none;
	transition: transform .35s var(--at-marketing-ease-out);
}

.at-homepage-customer::before {
	position: absolute;
	inset: 0 0 auto;
	height: 140px;
	background: linear-gradient(180deg, rgba(10, 14, 30, .78), rgba(10, 14, 30, 0));
	content: '';
	pointer-events: none;
}

.at-homepage-customer img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.at-homepage-customer__caption {
	position: absolute;
	inset: 20px 22px auto;
	display: grid;
	gap: 2px;
	color: var(--at-marketing-divider);
	font-size: 15px;
	line-height: 1.4;
	text-align: start;
}

.at-homepage-customer__caption strong {
	color: var(--at-marketing-on-inverse);
	font-size: 20px;
	font-weight: 600;
}

.at-homepage-customer__theme {
	position: absolute;
	inset: auto auto 18px 18px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 40px;
	padding-inline: 18px;
	border-radius: var(--at-marketing-radius-full);
	background: var(--at-marketing-brand);
	color: var(--at-marketing-on-brand);
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 10px 24px rgba(6, 10, 40, .4);
}

.at-homepage-customer__dot {
	width: 7px;
	height: 7px;
	border-radius: var(--at-marketing-radius-full);
	background: currentColor;
}

.at-homepage-customer:focus-visible {
	outline: 2px solid var(--at-marketing-brand-soft);
	outline-offset: 4px;
}

.at-homepage-customer:hover {
	color: var(--at-marketing-on-inverse);
	text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
	.at-homepage-customer__theme {
		opacity: 0;
		transform: translateY(8px);
		transition: opacity .3s ease, transform .35s var(--at-marketing-ease-out);
	}

	.at-homepage-customer:hover,
	.at-homepage-customer:focus-visible {
		transform: translateY(-6px);
	}

	.at-homepage-customer:hover .at-homepage-customer__theme,
	.at-homepage-customer:focus-visible .at-homepage-customer__theme {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.at-homepage-customers__track {
		animation: at-homepage-customer-marquee 64s linear infinite;
		will-change: transform;
	}

	.at-homepage-customers__marquee:hover .at-homepage-customers__track,
	.at-homepage-customers__marquee:focus-within .at-homepage-customers__track {
		animation-play-state: paused;
	}

	@keyframes at-homepage-customer-marquee {
		to {
			transform: translateX(-50%);
		}
	}
}

/* Keep every original link reachable when navigating with a keyboard. */
.at-homepage-customers__marquee:has(.at-homepage-customer:focus-visible) {
	overflow-x: auto;
	mask-image: none;
}

.at-homepage-customers__marquee:has(.at-homepage-customer:focus-visible) .at-homepage-customers__track {
	animation: none;
	transform: none;
}

.at-homepage-customers__marquee:has(.at-homepage-customer:focus-visible) .at-homepage-customers__group[aria-hidden="true"] {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.at-homepage-customers__marquee {
		overflow-x: auto;
		mask-image: none;
	}

	.at-homepage-customers__group[aria-hidden="true"] {
		display: none;
	}
}

@media (max-width: 767px) {
	.at-homepage-customers__marquee {
		--at-homepage-customer-width: 258.4px;
		--at-homepage-customer-gap: 16.32px;

		margin-top: 32px;
		mask-image: none;
	}
}

.at-homepage-testimonials__title {
	margin-bottom: 64px;
}

.at-homepage-testimonials__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
}

.at-homepage-testimonials.is-enhanced .at-homepage-testimonials__layout {
	grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
	align-items: start;
	gap: 96px;
}

.at-homepage-testimonial {
	margin: 0 0 32px;
}

.at-homepage-testimonials.is-enhanced .at-homepage-testimonial:not([hidden]) {
	display: flex;
	flex-direction: column;
	min-height: 0;
	margin-bottom: 28px;
}

.at-homepage-testimonials.is-enhanced .at-homepage-testimonial figcaption {
	margin-top: auto;
	padding-top: 40px;
}

.at-homepage-testimonial[hidden],
.at-homepage-testimonials__controls[hidden] {
	display: none;
}

.at-homepage-testimonial blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	letter-spacing: -.01em;
	text-indent: -.42em;
	color: var(--at-marketing-on-inverse);
	font-size: 30px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.3;
}

.at-homepage-testimonial--long blockquote {
	font-size: 24px;
	line-height: 1.45;
	letter-spacing: -.005em;
}

.at-homepage-testimonial blockquote p {
	margin: 0;
	color: inherit;
	font: inherit;
}

.at-homepage-testimonial figcaption {
	display: grid;
	gap: 4px;
	color: var(--at-marketing-on-inverse-muted);
	font-size: 15px;
	line-height: 1.5;
}

.at-homepage-testimonial figcaption strong {
	color: var(--at-marketing-on-inverse);
	font-size: 20px;
	font-weight: 500;
}

.at-homepage-testimonials__controls {
	display: flex;
	gap: 12px;
}

.at-homepage-testimonials__controls button {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--at-marketing-surface);
	color: var(--at-marketing-ink-strong);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.at-homepage-testimonials__controls button:hover:not(:disabled) {
	background: var(--at-marketing-brand);
	color: var(--at-marketing-on-brand);
}

.at-homepage-testimonials__controls button:disabled {
	background: var(--at-marketing-ink-secondary);
	color: var(--at-marketing-icon-muted);
	cursor: default;
}

.at-homepage-testimonials__photos {
	display: none;
	min-width: 0;
	clip-path: inset(-20px -2000px -20px 0);
}

.at-homepage-testimonials.is-enhanced .at-homepage-testimonials__photos {
	display: block;
}

.at-homepage-testimonials__track {
	display: flex;
	gap: 24px;
	transform: translateX(calc(var(--at-homepage-testimonial-index, 0) * -344px));
	transition: transform 0.6s var(--at-marketing-ease-out);
}

.at-homepage-testimonials__photo {
	flex: 0 0 320px;
	width: 320px;
	height: 320px;
	object-fit: cover;
	object-position: 50% 11%;
	border-radius: var(--at-marketing-radius-lg);
	opacity: .35;
	transition: opacity 0.5s ease;
}

.at-homepage-testimonials__photo:nth-child(2) {
	object-position: 50% 4%;
}

.at-homepage-testimonials__photo:nth-child(3) {
	object-position: 50% 23%;
}

.at-homepage-testimonials__photo:nth-child(4) {
	object-position: 50% 17%;
}

.at-homepage-testimonials__photo:nth-child(5) {
	object-position: 50% 0%;
}

.at-homepage-testimonials__photo:nth-child(6) {
	object-position: 50% 0%;
}

.at-homepage-testimonials__photo:nth-child(7) {
	object-position: 50% 50%;
}

.at-homepage-testimonials__photo.is-current {
	opacity: 1;
}

@media (min-width: 768px) {
	.at-homepage-testimonials.is-enhanced [data-testimonial-quotes] {
		display: flow-root;
		position: relative;
		min-height: 380px;
	}

	.at-homepage-testimonials.is-enhanced .at-homepage-testimonial {
		position: absolute;
		inset: 0 0 28px;
		display: flex;
		flex-direction: column;
		margin: 0;
	}

	.at-homepage-testimonials.is-enhanced .at-homepage-testimonial[hidden] {
		display: none;
		pointer-events: none;
	}

	.at-homepage-testimonials.is-enhanced .at-homepage-testimonial:not([hidden]) {
		position: relative;
		inset: auto;
		min-height: 352px;
		margin: 0 0 28px;
	}
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
	.at-homepage-testimonials.is-enhanced .at-homepage-testimonial {
		opacity: 1;
		transform: none;
		transition: opacity 450ms ease 100ms, transform 500ms var(--at-marketing-ease-out) 100ms, display 550ms allow-discrete;
	}

	.at-homepage-testimonials.is-enhanced .at-homepage-testimonial[hidden] {
		opacity: 0;
		transform: translateY(8px);
		transition: opacity 450ms ease, transform 500ms var(--at-marketing-ease-out), display 500ms allow-discrete;
	}

	@starting-style {
		.at-homepage-testimonials.is-enhanced .at-homepage-testimonial:not([hidden]) {
			opacity: 0;
			transform: translateY(8px);
		}
	}
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
	.at-homepage-testimonials.is-enhanced .at-homepage-testimonial:not([hidden]) {
		animation: at-homepage-testimonial-enter 450ms var(--at-marketing-ease-out) 100ms both;
	}

	@keyframes at-homepage-testimonial-enter {
		from { opacity: 0; transform: translateY(8px); }
		to { opacity: 1; transform: none; }
	}
}

@media (max-width: 1023px) {
	.at-homepage-testimonials.is-enhanced .at-homepage-testimonials__layout {
		gap: 32px;
	}
}

@media (max-width: 767px) {
	.at-homepage-customers__intro {
		text-align: start;
	}

	.at-homepage-customers__title {
		margin-bottom: 12px;
		font-size: 28px;
	}

	.at-homepage-testimonials__title {
		margin-bottom: 32px;
		font-size: 30px;
		line-height: 1.2;
	}

	.at-homepage-customers__intro p {
		margin-inline: 0;
		text-wrap: initial;
	}

	.at-homepage-customer__caption {
		inset: 14px 15px auto;
		font-size: 13px;
	}

	.at-homepage-customer__caption strong {
		font-size: 17px;
	}

	.at-homepage-customers__intro p {
		font-size: 16px;
	}

	.at-homepage-testimonials.is-enhanced .at-homepage-testimonials__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.at-homepage-testimonials__photos {
		grid-row: 1;
		clip-path: none;
		margin-inline-end: calc(-1 * var(--at-marketing-gutter));
		overflow: hidden;
	}

	.at-homepage-testimonials__track {
		transform: translateX(calc(var(--at-homepage-testimonial-index, 0) * -264px));
		transition: none;
	}

	.at-homepage-testimonials__photo {
		flex-basis: 240px;
		width: 240px;
		height: 240px;
		transition: none;
	}

	.at-homepage-testimonials.is-enhanced .at-homepage-testimonial:not([hidden]) {
		min-height: 0;
		margin-bottom: 20px;
	}

	.at-homepage-testimonials.is-enhanced .at-homepage-testimonial figcaption {
		padding-top: 20px;
	}

	.at-homepage-testimonial blockquote {
		font-size: 20px;
		line-height: 1.4;
	}

	.at-homepage-testimonial--long blockquote {
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.at-homepage-customer,
	.at-homepage-customer__theme,
	.at-homepage-testimonials__track,
	.at-homepage-testimonials__photo,
	.at-homepage-testimonials__controls button {
		transition: none;
	}

	.at-homepage-customer:hover,
	.at-homepage-customer:focus-visible,
	.at-homepage-customer__theme {
		transform: none;
	}

	.at-homepage-testimonials.is-enhanced .at-homepage-testimonial:not([hidden]) {
		animation: none;
	}
}
