.ced-tests { background: var(--wp--preset--color--ink); position: relative; overflow: clip; }
.ced-tests::before {
	content: ""; position: absolute;
	inset: 0;
	background: radial-gradient(60% 60% at 50% 50%, rgba(212,255,79,0.05) 0%, transparent 60%);
	pointer-events: none;
}
.ced-tests__head {
	max-width: var(--page-max);
	margin: 0 auto var(--wp--preset--spacing--lg);
	display: grid;
	gap: var(--wp--preset--spacing--sm);
}
.ced-tests__title {
	font-size: clamp(2rem, 4.5vw, 4rem);
	font-weight: 500;
	letter-spacing: -0.04em;
	line-height: 1.04;
	margin: 0;
	max-width: 22ch;
	color: var(--wp--preset--color--paper);
}

.ced-tests__stage {
	max-width: var(--page-max);
	margin-inline: auto;
	display: grid;
	gap: var(--wp--preset--spacing--md);
	position: relative;
}

/* --- Quote area --------------------------------------------------- */
.ced-tests__quotes {
	/* CSS-grid stacking trick: every quote shares the same grid cell.
	   The cell auto-sizes to the TALLEST quote so the container never
	   gets smaller than the longest entry needs — no more overflow into
	   the nav below. The active quote fades in over the inactives. */
	display: grid;
	grid-template-columns: 1fr;
	min-height: 320px;
}
.ced-tests__quote {
	grid-column: 1;
	grid-row: 1;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 480ms var(--ease-emph), transform 480ms var(--ease-emph);
	pointer-events: none;
	display: grid;
	align-content: start;
	gap: var(--wp--preset--spacing--sm);
	max-width: 80ch;
}
.ced-tests__quote.is-active {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
/* ─── Header row: avatar disc + quote mark ─── */
.ced-tests__head-row {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}
.ced-tests__avatar {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	overflow: hidden;
	position: relative;
	background: var(--accent, var(--wp--preset--color--lime));
	border: 2px solid var(--accent, var(--wp--preset--color--lime));
	box-shadow: 0 0 0 4px rgba(0,0,0,0.0), 0 0 24px -4px var(--accent, transparent);
	display: grid;
	place-items: center;
}
.ced-tests__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ced-tests__avatar-initials {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--ink);
}
.ced-tests__mark {
	color: var(--accent, var(--wp--preset--color--lime));
	opacity: 0.55;
}
.ced-tests__quote blockquote {
	font-size: clamp(1.5rem, 3vw, 2.5rem);
	font-weight: 300;
	letter-spacing: -0.025em;
	line-height: 1.25;
	color: var(--wp--preset--color--paper);
	margin: 0;
	max-width: 28ch * 1.5;
}
.ced-tests__quote footer {
	display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center;
	padding-top: var(--wp--preset--spacing--sm);
	border-top: var(--wp--custom--grid--hairline);
}
.ced-tests__quote cite { font-style: normal; display: flex; flex-direction: column; gap: 4px; }
.ced-tests__name {
	font-size: var(--wp--preset--font-size--base);
	font-weight: 500;
	color: var(--wp--preset--color--paper);
	letter-spacing: -0.01em;
}
.ced-tests__role {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--fog);
}
.ced-tests__platform {
	margin-left: auto;
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--mist);
}
.ced-tests__platform span {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--accent, var(--wp--preset--color--lime));
	box-shadow: 0 0 0 4px rgba(0,0,0,0.0), 0 0 12px -2px var(--accent, transparent);
}

/* --- Nav strip --------------------------------------------------- */
.ced-tests__nav {
	/* All testimonials in one row at desktop — each pill auto-sizes to
	   1fr of the container width. 9 pills × ~110px = ~990px fits the
	   default page-max comfortably. minmax(0, 1fr) lets pills shrink
	   below their content's intrinsic min-width (fixes long names
	   forcing the row wider than the container). */
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 1px;
	background: rgba(232, 229, 222, 0.08);
	border: 1px solid rgba(232, 229, 222, 0.08);
	border-radius: var(--wp--custom--radius--md);
	overflow: clip;
}
.ced-tests__dot {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: var(--wp--preset--color--graphite);
	color: var(--wp--preset--color--mist);
	border: none;
	padding: 0.7rem 0.85rem;
	text-align: left;
	cursor: pointer;
	min-width: 0;  /* allow shrinking inside grid cell */
	position: relative;
	transition:
		background var(--wp--custom--transition--smooth),
		color var(--wp--custom--transition--smooth),
		box-shadow var(--wp--custom--transition--smooth);
}
.ced-tests__dot::before {
	/* Top edge accent — colored bar that fades in when the pill is active. */
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: var(--accent, var(--wp--preset--color--lime));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 400ms var(--ease-emph);
}
.ced-tests__dot.is-active::before { transform: scaleX(1); }
.ced-tests__dot:hover { background: var(--wp--preset--color--stone); color: var(--wp--preset--color--paper); }
.ced-tests__dot.is-active {
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

/* Mini avatar inside each nav pill — same image as the big avatar in
   the active quote, but at 28px for the row. Initials fallback uses the
   accent color so even text-only pills are colorful. */
.ced-tests__dot-avatar {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--accent, var(--wp--preset--color--lime));
	display: grid;
	place-items: center;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--wp--preset--color--ink);
}
.ced-tests__dot-avatar img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}

.ced-tests__dot-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;  /* allow text-overflow to kick in */
}
/* Truncate long company names in the dot so no pill widens its column. */
.ced-tests__dot-name,
.ced-tests__dot-co {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ced-tests__dot-name { font-size: var(--wp--preset--font-size--sm); font-weight: 500; letter-spacing: -0.01em; }
.ced-tests__dot-co {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--micro);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: inherit;
	opacity: 0.7;
}

@media (max-width: 1024px) {
	.ced-tests__title { font-size: clamp(1.85rem, 4.5vw, 3rem); }
	.ced-tests__quote blockquote { font-size: clamp(1.25rem, 3vw, 2rem); }
	/* 9 pills × ~110px = ~990px doesn't fit at tablet widths — fall
	   back to horizontal scroll, same pattern as mobile but with wider
	   pills since there's more touch area. */
	.ced-tests__nav {
		display: flex;
		flex-wrap: nowrap;
		grid-template-columns: none;
		grid-auto-flow: initial;
		grid-auto-columns: initial;
		gap: 0.5rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 0.5rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		background: transparent;
		border: 0;
	}
	.ced-tests__nav::-webkit-scrollbar { display: none; }
	.ced-tests__dot {
		flex: 0 0 auto;
		width: 180px;
		scroll-snap-align: start;
		border-radius: var(--wp--custom--radius--md);
		border: 1px solid rgba(232, 229, 222, 0.08);
	}
}
@media (max-width: 640px) {
	.ced-tests__title { font-size: clamp(1.6rem, 8vw, 2.25rem); }
	.ced-tests__head  { margin-bottom: 2rem; }
	.ced-tests__quotes { min-height: 280px; }
	.ced-tests__quote blockquote { font-size: clamp(1.1rem, 5vw, 1.5rem); }
	.ced-tests__quote footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
	.ced-tests__platform { margin-left: 0; font-size: 0.55rem; }
	/* Swipe row — all 6 testimonials accessible without crowding */
	.ced-tests__nav {
		display: flex;
		flex-wrap: nowrap;
		grid-template-columns: none;
		gap: 0.5rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 0.5rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		background: transparent;
		border: 0;
		--ced-swipe-fade: var(--wp--preset--color--ink);
	}
	.ced-tests__nav::-webkit-scrollbar { display: none; }
	.ced-tests__dot {
		flex: 0 0 auto;
		width: min(48vw, 200px);
		padding: 0.85rem;
		min-height: 56px;
		scroll-snap-align: start;
		border-radius: var(--wp--custom--radius--md);
		border: 1px solid rgba(232, 229, 222, 0.08);
	}
	.ced-tests__dot-name { font-size: 0.85rem; }
	.ced-tests__dot-co   { font-size: 0.55rem; }
}
