/*
 * SECTION STYLE: TESTIMONIAL (the client quote slider).
 *
 * The design of the home page: a full width yellow band, the small
 * label on top, the name and the role on the left, the quote on the
 * right and the little dots below. The quotes slide sideways.
 *
 * Measures come from the design frame (1440 px wide):
 *   band 579 px tall, label 37 px from the top, quotes 220 px from the
 *   top, dots 504 px from the top, 66 px under the dots.
 */

.aitio-testimonial {
	background: var(--aitio-yellow);
	color: var(--aitio-brown);
	padding: clamp(24px, 2.57vw, 37px) 0 clamp(40px, 4.58vw, 66px);
}

/* The column left of the sticky panel (1064 px on a 1440 screen). */
.aitio-quotes__inner {
	max-width: var(--aitio-col-panel);
}

/* ---- the small label ------------------------------------------------ */

.aitio-testimonial__label {
	margin: 0 0 clamp(60px, 11.04vw, 159px);
	color: var(--aitio-dark);
	font-size: clamp(13px, 1.08vw, 15.6px);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
}

/* ---- the slider ------------------------------------------------------ */

.aitio-quotes {
	position: relative;
}

.aitio-quotes__viewport {
	overflow: hidden;
	/* The page may still scroll up and down while a quote is dragged. */
	touch-action: pan-y;
}

/* The track holds every quote side by side. The slider moves it. */
.aitio-quotes__track {
	display: flex;
	align-items: flex-start;
	transform: translate3d(calc(var(--aitio-quote-index, 0) * -100%), 0, 0);
	transition: transform 700ms var(--ease);
	will-change: transform;
}

.aitio-quotes__slide {
	flex: 0 0 100%;
	display: grid;
	grid-template-columns: minmax(0, 330px) minmax(0, 686px);
	gap: 47px;
	align-items: start;
	margin: 0;
}

.aitio-quotes__slide:not(.is-active) {
	pointer-events: none;
}

/* The name and the role, on the left. */
.aitio-quotes__by {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin: 0;
}

.aitio-quotes__photo {
	display: block;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 auto;
	background: var(--aitio-cream-deep);
}

.aitio-quotes__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aitio-quotes__person {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.aitio-quotes__name {
	font-size: clamp(24px, 2.64vw, 38px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.004em;
	color: inherit;
}

.aitio-quotes__role {
	font-size: clamp(12px, 1.08vw, 15.6px);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	color: inherit;
}

/* The quote, on the right. */
.aitio-quotes__quote {
	margin: 0;
	font-size: clamp(20px, 2.5vw, 36px);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.03em;
	color: inherit;
}

.aitio-quotes__quote p {
	margin: 0 0 0.5em;
}

.aitio-quotes__quote p:last-child {
	margin-bottom: 0;
}

/* The dots under the quote. */
.aitio-quotes__dots {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: clamp(24px, 3.4vw, 49px);
}

.aitio-quotes__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 1.5px solid var(--aitio-brown);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background var(--fast) var(--ease);
}

.aitio-quotes__dot.is-active {
	background: var(--aitio-brown);
}

.aitio-quotes__dot:focus-visible {
	outline: 2px solid var(--aitio-black);
	outline-offset: 3px;
}

@media (max-width: 1023px) {

	.aitio-quotes__slide {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 700px) {

	.aitio-quotes__quote {
		font-size: 21px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.aitio-quotes__track {
		transition: none;
	}
}
