/* Case study single: testimonial + credits patterns. */

.xa-cst,
.xa-csc {
	padding-bottom: clamp(80px, 10vw, 150px);
}

.xa-cst :where(p),
.xa-csc :where(p, ul) {
	margin: 0;
}

/* Testimonial. */
.xa-cst__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 16px;
}

.xa-cst__video {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3.2;
	border-radius: clamp(24px, 3vw, 36px);
	overflow: hidden;
	background: var(--wp--preset--color--ink) repeating-linear-gradient(135deg, var(--wp--preset--color--dark-surface-2) 0 1px, transparent 1px 14px);
}

.xa-cst__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: var(--wp--preset--color--bg);
	/* Visual triangle; the word stays for screen readers. */
	font-size: 0;
}

.xa-cst__play::before {
	content: "";
	margin-left: 6px;
	border-left: 22px solid var(--wp--preset--color--ink);
	border-top: 14px solid transparent;
	border-bottom: 14px solid transparent;
}

.xa-cst__cap {
	position: absolute;
	left: 24px;
	bottom: 22px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: var(--wp--preset--color--dark-muted);
}

.xa-cst__card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	padding: clamp(28px, 4vw, 56px);
	border-radius: clamp(24px, 3vw, 36px);
	background: var(--wp--preset--color--coral-soft);
}

.xa-cst__mark {
	height: 0.4em;
	font-size: clamp(80px, 8vw, 120px);
	font-weight: 800;
	line-height: 0.5;
	color: var(--wp--preset--color--coral);
}

.xa-cst__quote {
	font-size: clamp(22px, 2.6vw, 38px);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.2;
	text-wrap: pretty;
}

.xa-cst__by {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.xa-cst__who {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.xa-cst__sig {
	font-family: var(--wp--preset--font-family--hand);
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
}

.xa-cst__role {
	font-size: 14px;
	color: var(--wp--preset--color--body);
}

.xa-cst__badge {
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--bg);
	font-size: 13px;
	font-weight: 700;
}

/* Credits. */
.xa-csc__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: clamp(24px, 4vw, 56px);
	padding-top: 32px;
	border-top: 1.5px solid var(--wp--preset--color--ink);
}

.xa-csc__col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.xa-csc__k {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--muted);
}

.xa-csc__note {
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.xa-csc__crew,
.xa-csc__stack,
.xa-csc__links {
	padding: 0;
	list-style: none;
}

.xa-csc__crew {
	display: flex;
}

.xa-csc__crew li {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-right: -12px;
	border-radius: 50%;
	border: 3px solid var(--wp--preset--color--bg);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
	font-size: 15px;
	font-weight: 800;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.xa-csc__crew li:hover {
	transform: translateY(-6px);
}

.xa-csc__crew li:nth-child(6n + 2) {
	background: var(--wp--preset--color--coral);
	color: var(--wp--preset--color--ink);
}

.xa-csc__crew li:nth-child(6n + 3) {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--dark-ink);
}

.xa-csc__crew li:nth-child(6n + 4) {
	background: var(--wp--preset--color--accent-bright);
	color: var(--wp--preset--color--ink);
}

.xa-csc__crew li:nth-child(6n + 5) {
	background: var(--wp--preset--color--coral-soft);
	color: var(--wp--preset--color--coral-text);
}

.xa-csc__crew li:nth-child(6n) {
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--accent);
}

.xa-csc__crew abbr {
	text-decoration: none;
	cursor: default;
}

.xa-csc__stack {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.xa-csc__stack li {
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--line-strong);
	font-size: 13px;
	font-weight: 600;
}

.xa-csc__links {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.xa-csc__links a {
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
	.xa-csc__crew li {
		transition: none;
	}
}
