.hh-testimonials {
	--hh-testimonials-accent: #073f59;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 600px;
	background-color: #062f43;
	background-image: var(--hh-testimonials-background);
	background-position: center;
	background-size: cover;
	color: #fff;
}

.hh-testimonials__overlay {
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(3, 30, 43, .94) 0%, rgba(5, 48, 67, .86) 55%, rgba(5, 48, 67, .7) 100%),
		linear-gradient(0deg, rgba(0, 0, 0, .16), rgba(0, 0, 0, .16));
}

.hh-testimonials__inner {
	width: min(100% - 40px, 900px);
	margin-inline: auto;
	padding: clamp(80px, 10vw, 130px) 0;
}

.hh-testimonials__header {
	margin-bottom: 30px;
}

.hh-testimonials__eyebrow {
	margin: 0 0 9px;
	color: #fff;
	font-family: "Barlow Condensed", sans-serif;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: .42em;
	line-height: 1.4;
	text-transform: uppercase;
}

.hh-testimonials__heading {
	margin: 0;
	color: #fff;
	font-family: "Gilda Display", serif;
	font-size: clamp(34px, 5vw, 52px);
	font-weight: 400;
	line-height: 1.12;
}

.hh-testimonials__rule {
	display: block;
	width: 72px;
	margin-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .4);
}

.hh-testimonials__carousel {
	position: relative;
	max-width: 760px;
}

.hh-testimonials__slides {
	position: relative;
}

.hh-testimonials__slide {
	position: relative;
	margin: 0;
}

.hh-testimonials__carousel.is-enhanced .hh-testimonials__slide {
	display: none;
	animation: hh-testimonial-in .45s ease both;
}

.hh-testimonials__carousel.is-enhanced .hh-testimonials__slide.is-active {
	display: block;
}

.hh-testimonials__quote {
	position: absolute;
	top: -25px;
	right: 5%;
	color: rgba(255, 255, 255, .12);
	font-family: Georgia, serif;
	font-size: clamp(100px, 16vw, 170px);
	line-height: 1;
	pointer-events: none;
}

.hh-testimonials__content {
	position: relative;
	max-width: 720px;
	margin: 0;
	padding: 24px 28px 24px 32px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-left: 3px solid var(--hh-testimonials-accent);
	border-radius: 0 14px 14px 0;
	background:
		linear-gradient(105deg, rgba(3, 34, 48, .82), rgba(7, 63, 89, .56));
	box-shadow: 0 18px 46px rgba(0, 0, 0, .2);
	color: #fff9f1;
	font-family: "Gilda Display", serif;
	font-size: clamp(18px, 2.2vw, 22px);
	font-style: normal;
	line-height: 1.7;
	letter-spacing: .01em;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.hh-testimonials__author {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-top: 32px;
}

.hh-testimonials__portrait {
	display: flex;
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, .32);
	border-radius: 50%;
	background: #0a4964;
}

.hh-testimonials__portrait img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
	object-position: center;
}

.hh-testimonials__initials {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	background: #0a4964;
	color: #fff;
	font-family: "Gilda Display", serif;
	font-size: 25px;
	letter-spacing: .05em;
	line-height: 1;
}

.hh-testimonials__author-copy {
	display: grid;
	gap: 4px;
}

.hh-testimonials__rating {
	display: flex;
	gap: 3px;
	color: rgba(255, 255, 255, .28);
	font-size: 12px;
	line-height: 1;
}

.hh-testimonials__rating .is-filled {
	color: var(--hh-testimonials-accent);
}

.hh-testimonials__name {
	color: #fff;
	font-family: "Barlow Condensed", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	letter-spacing: .18em;
	line-height: 1.2;
	text-transform: uppercase;
}

.hh-testimonials__role {
	color: rgba(255, 255, 255, .72);
	font-size: 13px;
	line-height: 1.3;
}

.hh-testimonials__controls {
	position: absolute;
	right: 0;
	bottom: 17px;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
}

.hh-testimonials__arrow,
.hh-testimonials__dots button {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.hh-testimonials__arrow {
	width: 38px;
	height: 38px;
	border: 1px solid #073f59;
	background: #073f59;
	color: #fff;
	font-size: 26px;
	line-height: 34px;
	transition: border-color .2s ease, background-color .2s ease;
}

.hh-testimonials__arrow:hover,
.hh-testimonials__arrow:focus-visible {
	border-color: #0a5678;
	background: #0a5678;
}

.hh-testimonials__dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hh-testimonials__dots button {
	width: 9px;
	height: 9px;
	background: rgba(255, 255, 255, .38);
	transition: background-color .2s ease, transform .2s ease;
}

.hh-testimonials__dots button.is-active {
	background: var(--hh-testimonials-accent);
	transform: scale(1.35);
}

.hh-testimonials__toggle {
	display: none;
}

.hh-testimonials button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@keyframes hh-testimonial-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 767px) {
	.hh-testimonials {
		min-height: 560px;
		background-position: 60% center;
	}

	.hh-testimonials__overlay {
		background: rgba(3, 35, 49, .9);
	}

	.hh-testimonials__inner {
		width: min(100% - 32px, 900px);
		padding: 72px 0;
	}

	.hh-testimonials__quote {
		right: 0;
	}

	.hh-testimonials__content {
		padding: 21px 20px 21px 24px;
		border-radius: 0 10px 10px 0;
		font-size: 18px;
		line-height: 1.65;
	}

	.hh-testimonials__author {
		gap: 14px;
	}

	.hh-testimonials__portrait {
		flex-basis: 62px;
		width: 62px;
		height: 62px;
	}

	.hh-testimonials__controls {
		position: static;
		justify-content: center;
		margin-top: 28px;
	}

	.hh-testimonials__toggle {
		margin-left: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hh-testimonials__carousel.is-enhanced .hh-testimonials__slide {
		animation: none;
	}
}
