.rscf-widget {
	--rscf-base-height: 440vh;
	--rscf-heading-y: 50%;
	--rscf-review-distance: 0;
	--rscf-last-stick-top: 0px;
	--rscf-last-stick-hold: 55vh;
	--rscf-end-area: 0vh;
	--rscf-card-width: 340px;
	--rscf-blur: 12px;
	--rscf-brightness: 42%;
	--rscf-card-gutter: 24px;
	--rscf-static-gap: 24px;
	--rscf-pad-top: 90px;
	--rscf-pad-right: 32px;
	--rscf-pad-bottom: 90px;
	--rscf-pad-left: 32px;
	position: relative;
	width: 100%;
	min-height: 100svh;
	background: #0a0a0a;
	color: #fff;
	isolation: isolate;
}

.rscf-widget.has-clipping {
	overflow: clip;
}

.rscf-sticky {
	position: relative;
	width: 100%;
	min-height: 100svh;
	padding:
		var(--rscf-pad-top)
		var(--rscf-pad-right)
		var(--rscf-pad-bottom)
		var(--rscf-pad-left);
	box-sizing: border-box;
}

.rscf-heading-wrap {
	position: relative;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0 auto clamp(48px, 8vw, 110px);
	text-align: center !important;
	pointer-events: none;
}

.rscf-heading {
	display: block;
	width: max-content;
	max-width: calc(100vw - 24px);
	margin-right: auto !important;
	margin-left: auto !important;
	color: #fff;
	font-size: clamp(48px, 5.2vw, 96px);
	font-weight: 800;
	line-height: 0.9;
	letter-spacing: -0.05em;
	text-align: center !important;
	text-transform: uppercase;
	white-space: nowrap;
	transform-origin: center;
	will-change: transform, opacity;
}

.rscf-cards {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--rscf-static-gap);
	width: min(1180px, 100%);
	margin: 0 auto;
}

.rscf-card {
	position: relative;
	z-index: var(--rscf-card-z, 20);
	width: min(var(--rscf-card-width), calc(100vw - (var(--rscf-card-gutter) * 2)));
	max-width: calc(100vw - (var(--rscf-card-gutter) * 2));
	margin: 0 auto;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 2px;
	background-color: rgba(21, 21, 21, 0.82);
	color: #fff;
	box-sizing: border-box;
	overflow: hidden;
	transform-origin: center;
	-webkit-backdrop-filter: blur(var(--rscf-blur)) brightness(var(--rscf-brightness));
	backdrop-filter: blur(var(--rscf-blur)) brightness(var(--rscf-brightness));
}

.rscf-rating {
	display: flex;
	align-items: center;
	gap: 3px;
	margin-bottom: 14px;
	color: #4a4a4a;
	font-size: 12px;
	line-height: 1;
}

.rscf-star.is-filled {
	color: #ff253a;
}

.rscf-card-headline {
	margin: 0 0 11px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -0.02em;
}

.rscf-quote {
	margin: 0;
	padding: 0;
	border: 0;
	color: #d0d0d0;
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.55;
}

.rscf-client {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-top: 22px;
}

.rscf-avatar {
	display: grid;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	overflow: hidden;
	border-radius: 50%;
	background: #272727;
	place-items: center;
}

.rscf-avatar-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rscf-avatar-fallback {
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
}

.rscf-client-copy {
	min-width: 0;
}

.rscf-client-name {
	color: #ff253a;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}

.rscf-client-role {
	margin-top: 2px;
	color: #a7a7a7;
	font-size: 10px;
	line-height: 1.25;
}

/* JS-enhanced scroll state. Height is calculated in JS so the section ends
   shortly after the last card clears the viewport. */
.rscf-widget.is-enhanced {
	min-height: 100svh;
}

.rscf-widget.is-enhanced .rscf-sticky {
	position: sticky;
	top: 0;
	height: 100svh;
	min-height: 100svh;
	padding: 0;
	overflow: visible;
}

.rscf-widget.is-enhanced.has-clipping .rscf-sticky {
	overflow: clip;
}

.rscf-widget.is-enhanced .rscf-heading-wrap {
	position: absolute;
	top: var(--rscf-heading-y);
	right: auto;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	text-align: center !important;
	transform: translate3d(-50%, -50%, 0);
}

.rscf-widget.is-enhanced .rscf-cards {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	pointer-events: none;
}

.rscf-widget.is-enhanced .rscf-card {
	position: absolute;
	top: 0;
	left: 50%;
	width: min(var(--rscf-card-width), calc(100vw - (var(--rscf-card-gutter) * 2)));
	max-width: calc(100vw - (var(--rscf-card-gutter) * 2));
	margin: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: auto;
	will-change: transform, opacity;
	backface-visibility: hidden;
	transform: translate3d(-50%, 110vh, 0);
}

.rscf-widget.is-static {
	height: auto !important;
	min-height: 0 !important;
}

.rscf-widget.is-static .rscf-sticky {
	position: relative;
	height: auto;
	min-height: 0;
}

.rscf-widget.is-static .rscf-card,
.rscf-widget:not(.is-enhanced) .rscf-card {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}

@media (max-width: 1024px) {
	.rscf-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.rscf-widget {
		--rscf-pad-top: 64px;
		--rscf-card-gutter: 12px;
		--rscf-pad-right: 18px;
		--rscf-pad-bottom: 64px;
		--rscf-pad-left: 18px;
	}

	.rscf-heading {
		font-size: clamp(38px, 11vw, 62px);
	}

	.rscf-cards {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.rscf-widget.is-enhanced .rscf-card {
		left: 50% !important;
		width: min(var(--rscf-card-width), 92vw);
	}
}

@media (prefers-reduced-motion: reduce) {
	.rscf-widget {
		height: auto !important;
		min-height: 0 !important;
	}

	.rscf-widget .rscf-sticky {
		position: relative !important;
		height: auto !important;
		min-height: 0 !important;
		padding:
			var(--rscf-pad-top)
			var(--rscf-pad-right)
			var(--rscf-pad-bottom)
			var(--rscf-pad-left) !important;
	}

	.rscf-widget .rscf-heading-wrap {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		width: 100% !important;
		margin: 0 auto clamp(48px, 8vw, 110px) !important;
		transform: none !important;
	}

	.rscf-widget .rscf-cards {
		position: relative !important;
		inset: auto !important;
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: var(--rscf-static-gap) !important;
		width: min(1180px, 100%) !important;
		margin: 0 auto !important;
	}

	.rscf-widget .rscf-card {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		width: min(var(--rscf-card-width), 100%) !important;
		opacity: 1 !important;
		visibility: visible !important;
		transform: none !important;
		will-change: auto !important;
	}

	@media (max-width: 767px) {
		.rscf-widget .rscf-cards {
			grid-template-columns: 1fr !important;
			justify-items: center !important;
		}
	}
}


/* 1.0.9: keep the title geometrically centred regardless of inherited
   Elementor alignment or container styles. */
.rscf-widget .rscf-heading-wrap {
	box-sizing: border-box;
	justify-content: center !important;
	text-align: center !important;
}

.rscf-widget .rscf-heading {
	margin-inline: auto !important;
	text-align: center !important;
}

.rscf-widget.is-enhanced .rscf-heading-wrap {
	left: 50% !important;
	transform: translate3d(-50%, -50%, 0);
}


/* 1.0.10: keep wide testimonial boxes fully inside the viewport
   and prevent content from visually spilling or clipping. */
.rscf-card-headline,
.rscf-quote,
.rscf-client-name,
.rscf-client-role {
	overflow-wrap: anywhere;
	word-break: normal;
	hyphens: auto;
}

.rscf-widget.is-enhanced .rscf-card {
	right: auto;
}



/* 1.0.11: final review resting state. */
.rscf-widget.is-enhanced .rscf-card.is-last-review {
	transform-origin: center top;
}


/* 1.0.12: match the reference title behaviour.
   The title stays centred inside the sticky viewport and exits only when
   the complete sticky container releases with the final testimonial. */
.rscf-widget.is-enhanced .rscf-heading {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}


/* 1.0.14: allow manual title line breaks while keeping each line intact. */
.rscf-widget .rscf-heading {
	white-space: nowrap;
}

.rscf-widget .rscf-heading br {
	display: block;
	content: "";
}
