/*
 * Case studies (list and single pages, owner request 2026-11-03: a more premium look and real
 * photos). Buttons, the "More case studies" band and the closing call to action come from
 * services.css; this file adds the dark hero, the stats, the cards, the project snapshot and
 * the chapters, in the site palette (dark #131313, cream #fcf6ef, Manrope).
 */

/* ---------- dark hero (both pages) ---------- */

.wx-cs-hero {
	position: relative;
	overflow: hidden;
	padding: 140px var(--wx-pad) 0;
	background:
		radial-gradient(ellipse 60% 70% at 85% 0%, rgba(252, 246, 239, .09), rgba(252, 246, 239, 0) 70%),
		var(--wx-dark);
	color: #bdb8b1;
}

.wx-cs-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 70px;
	align-items: center;
	padding-bottom: 70px;
}

.wx-cs-hero .wx-svc-crumbs,
.wx-cs-hero .wx-svc-crumbs a {
	color: #8f8a83;
}

.wx-cs-hero .wx-svc-crumbs span {
	color: var(--wx-cream);
}

.wx-cs-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 26px 0 18px !important;
	color: var(--wx-cream);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.wx-cs-kicker::before {
	content: "";
	width: 28px;
	height: 1px;
	background: currentColor;
}

.wx-cs-kicker span {
	padding: 5px 11px;
	border: 1px solid rgba(252, 246, 239, .25);
	border-radius: 20px;
	color: #bdb8b1;
	font-size: 11px;
	letter-spacing: 1px;
}

.wx-cs-hero__title {
	margin: 0 0 22px !important;
	color: var(--wx-cream);
	font-size: clamp(36px, 4.2vw, 60px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -1.5px;
}

.wx-cs-hero__lead {
	max-width: 620px;
	margin: 0 0 34px !important;
	color: #bdb8b1;
	font-size: 19px;
	line-height: 1.65;
}

.wx-cs-hero__art {
	position: relative;
	margin: 0;
	padding: 10px;
	border: 1px solid rgba(252, 246, 239, .12);
	border-radius: 28px;
	background: rgba(252, 246, 239, .04);
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
}

.wx-cs-hero__art img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	border-radius: 20px;
	object-fit: cover;
}

/* list page: text only, the stats sit on the right */
.wx-cs-hero--hub {
	padding-bottom: 0;
}

.wx-cs-hero--hub .wx-cs-hero__inner {
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	align-items: end;
	padding-bottom: 90px;
}

/* ---------- stats ---------- */

.wx-cs-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(252, 246, 239, .12);
	border-radius: 20px;
	background: rgba(252, 246, 239, .12);
}

.wx-cs-stats > div {
	padding: 24px 26px;
	background: var(--wx-dark);
}

.wx-cs-stats dt {
	margin-bottom: 8px;
	color: #8f8a83;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.wx-cs-stats dd {
	margin: 0;
	color: var(--wx-cream);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.3px;
}

/* single page: one row under the hero */
.wx-cs-stats--row {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-width: 1px 0 0;
	border-radius: 0;
	margin: 0 calc(-1 * var(--wx-pad));
	padding: 0 var(--wx-pad);
	background: var(--wx-dark);
}

.wx-cs-stats--row > div {
	padding: 30px 30px 34px 0;
}

.wx-cs-stats--row > div + div {
	padding-left: 30px;
	border-left: 1px solid rgba(252, 246, 239, .12);
}

/* ---------- cards ---------- */

.wx-cs-list {
	padding-top: 90px;
}

.wx-cs-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.wx-cs .wx-cs-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wx-line);
	border-radius: 22px;
	background: #fff;
	color: var(--wx-dark);
	text-decoration: none;
	transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease, border-color .4s ease;
}

.wx-cs .wx-cs-card:hover {
	border-color: transparent;
	box-shadow: 0 40px 70px -40px rgba(17, 17, 17, .45);
	transform: translateY(-4px);
}

.wx-cs .wx-cs-card:focus-visible {
	outline: 2px solid var(--wx-dark);
	outline-offset: 3px;
}

.wx-cs-card__media {
	position: relative;
	display: block;
	margin: 8px 8px 0;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 16px;
	background: var(--wx-band);
}

.wx-cs .wx-cs-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
	transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}

.wx-cs .wx-cs-card:hover .wx-cs-card__media img {
	transform: scale(1.05);
}

.wx-cs-card__tag {
	position: absolute;
	z-index: 1;
	top: 14px;
	left: 14px;
	padding: 6px 12px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .94);
	color: var(--wx-dark);
	font-size: 12px;
	font-weight: 700;
	backdrop-filter: blur(6px);
}

.wx-cs-card__go {
	position: absolute;
	z-index: 1;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--wx-dark);
	opacity: 0;
	transform: translate(-6px, 6px);
	transition: opacity .3s ease, transform .3s ease;
}

.wx-cs-card__go::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wx-cream);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 13'%3E%3Cpath d='M13.26 1.34a1 1 0 0 0-.97-1.03L3.3 0a1 1 0 0 0-.07 2l8 .27-.27 8a1 1 0 0 0 2 .07l.3-9ZM1.37 12.85 12.94 2.04 11.58.57 0 11.39Z'/%3E%3C/svg%3E") center / 13px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 13'%3E%3Cpath d='M13.26 1.34a1 1 0 0 0-.97-1.03L3.3 0a1 1 0 0 0-.07 2l8 .27-.27 8a1 1 0 0 0 2 .07l.3-9ZM1.37 12.85 12.94 2.04 11.58.57 0 11.39Z'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.wx-cs .wx-cs-card:hover .wx-cs-card__go,
.wx-cs .wx-cs-card:focus-visible .wx-cs-card__go {
	opacity: 1;
	transform: none;
}

.wx-cs-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px 24px;
}

.wx-cs-card__line {
	color: var(--wx-grey);
	font-size: 13px;
	font-weight: 600;
}

.wx-cs-card__title {
	color: var(--wx-dark);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.4px;
}

.wx-cs-card__text {
	display: -webkit-box;
	overflow: hidden;
	color: var(--wx-grey);
	font-size: 15px;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.wx-cs-card__meta {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
}

.wx-cs-pill {
	padding: 7px 14px;
	border: 1px solid var(--wx-line);
	border-radius: 30px;
	color: var(--wx-dark);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}

.wx-cs-pill--dark {
	border-color: var(--wx-dark);
	background: var(--wx-dark);
	color: var(--wx-cream);
}

/* ---------- single: snapshot + chapters ---------- */

.wx-cs-story__inner {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	gap: 80px;
	align-items: start;
}

.wx-cs-snap {
	position: sticky;
	top: 110px;
}

.wx-cs-snap__card {
	padding: 30px;
	border: 1px solid var(--wx-line);
	border-radius: 22px;
	background: var(--wx-cream);
}

.wx-cs-snap__title {
	margin: 0 0 18px !important;
	color: var(--wx-dark);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}

.wx-cs-snap dl {
	margin: 0 0 24px;
}

.wx-cs-snap dl > div {
	padding: 14px 0;
	border-top: 1px solid rgba(19, 19, 19, .1);
}

.wx-cs-snap dt {
	margin-bottom: 4px;
	color: var(--wx-grey);
	font-size: 13px;
}

.wx-cs-snap dd {
	margin: 0;
	color: var(--wx-dark);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
}

.wx-cs-snap dd a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wx-cs .wx-cs-snap__price {
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -.6px;
}

.wx-cs-snap__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding-top: 4px;
}

.wx-cs-snap__tools span {
	padding: 5px 10px;
	border-radius: 20px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
}

.wx-cs-snap .wp-block-button,
.wx-cs-snap .wp-block-button__link {
	width: 100%;
	justify-content: center;
}

.wx-cs-snap__note {
	margin: 12px 0 0 !important;
	color: var(--wx-grey);
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.wx-cs-snap__example {
	margin: 16px 4px 0 !important;
	color: var(--wx-soft);
	font-size: 13px;
	line-height: 1.55;
}

.wx-cs-chapter {
	padding: 0 0 70px;
}

.wx-cs-chapter + .wx-cs-chapter {
	padding-top: 70px;
	border-top: 1px solid var(--wx-line);
}

.wx-cs-chapter:last-child {
	padding-bottom: 0;
}

.wx-cs-chapter__num {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 16px !important;
	color: var(--wx-dark);
	font-size: 14px;
	font-weight: 700;
}

.wx-cs-chapter__num span {
	color: var(--wx-grey);
	font-weight: 600;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	font-size: 12px;
}

.wx-cs-chapter h2 {
	margin: 0 0 26px !important;
	color: var(--wx-dark);
	font-size: clamp(28px, 2.6vw, 38px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.8px;
}

.wx-cs-chapter__lead {
	margin: -8px 0 30px !important;
	color: var(--wx-grey);
	font-size: 18px;
	line-height: 1.65;
}

.wx-cs-text p {
	margin: 0 0 18px !important;
	color: var(--wx-text);
	font-size: 18px;
	line-height: 1.75;
}

.wx-cs-text p:first-child {
	color: var(--wx-dark);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.6;
}

/* what we delivered */
.wx-cs-delivered {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.wx-cs-delivered__item {
	padding: 26px;
	border-radius: 18px;
	background: var(--wx-band);
}

.wx-cs-delivered__item h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px !important;
	color: var(--wx-dark);
	font-size: 18px;
	font-weight: 700;
}

.wx-cs-delivered__item h3::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wx-dark);
}

.wx-cs-delivered__item p {
	margin: 0 !important;
	color: var(--wx-grey);
	font-size: 15px;
	line-height: 1.6;
}

/* how AI and the expert shared the work */
.wx-cs .wx-cs-timeline {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wx-cs .wx-cs-timeline::before {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 11px;
	width: 1px;
	background: var(--wx-line);
}

.wx-cs-timeline__step {
	position: relative;
	padding: 0 0 30px 52px;
}

.wx-cs-timeline__step:last-child {
	padding-bottom: 0;
}

.wx-cs-timeline__step::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 23px;
	height: 23px;
	border: 6px solid #fff;
	border-radius: 50%;
	background: var(--wx-dark);
	box-shadow: 0 0 0 1px var(--wx-line);
}

.wx-cs-timeline__step--ai::before {
	background: #8f8a83;
}

.wx-cs-timeline__step--you::before {
	background: #d9cfc2;
}

.wx-cs-timeline__who {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 10px;
	border-radius: 20px;
	background: var(--wx-band);
	color: var(--wx-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
}

.wx-cs-timeline__step--expert .wx-cs-timeline__who {
	background: var(--wx-dark);
	color: var(--wx-cream);
}

.wx-cs-timeline__step h3 {
	margin: 0 0 6px !important;
	color: var(--wx-dark);
	font-size: 19px;
	font-weight: 700;
}

.wx-cs-timeline__step p {
	margin: 0 !important;
	color: var(--wx-grey);
	font-size: 16px;
	line-height: 1.65;
}

/* what the client gets */
.wx-cs .wx-cs-gets {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wx-cs .wx-cs-gets li {
	position: relative;
	padding: 20px 22px 20px 58px;
	border: 1px solid var(--wx-line);
	border-radius: 16px;
	background: #fff;
	color: var(--wx-dark);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
}

.wx-cs .wx-cs-gets li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 20px;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	border-radius: 50%;
	background: var(--wx-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%23fcf6ef' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
	.wx-cs-story__inner {
		grid-template-columns: 1fr;
		gap: 50px;
	}

	.wx-cs-snap {
		position: static;
		order: 2;
	}
}

@media (max-width: 1024px) {
	.wx-cs-hero__inner,
	.wx-cs-hero--hub .wx-cs-hero__inner {
		grid-template-columns: 1fr;
		gap: 44px;
	}

	.wx-cs-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wx-cs-stats--row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wx-cs-stats--row > div:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}

	.wx-cs-stats--row > div:nth-child(n+3) {
		border-top: 1px solid rgba(252, 246, 239, .12);
	}
}

@media (max-width: 767px) {
	.wx-cs-hero {
		padding-top: 110px;
	}

	.wx-cs-hero__inner,
	.wx-cs-hero--hub .wx-cs-hero__inner {
		padding-bottom: 50px;
	}

	.wx-cs-hero__title {
		letter-spacing: -.8px;
	}

	.wx-cs-hero__lead {
		font-size: 17px;
	}

	.wx-cs-hero__art {
		padding: 6px;
		border-radius: 20px;
	}

	.wx-cs-hero__art img {
		border-radius: 15px;
	}

	.wx-cs-stats > div,
	.wx-cs-stats--row > div,
	.wx-cs-stats--row > div + div {
		padding: 20px 16px;
	}

	.wx-cs-stats--row > div:nth-child(odd) {
		padding-left: 0;
	}

	.wx-cs-stats dd {
		font-size: 18px;
	}

	.wx-cs-list {
		padding-top: 50px;
	}

	.wx-cs-grid,
	.wx-cs-delivered,
	.wx-cs .wx-cs-gets {
		grid-template-columns: 1fr;
	}

	.wx-cs-chapter {
		padding-bottom: 50px;
	}

	.wx-cs-chapter + .wx-cs-chapter {
		padding-top: 50px;
	}

	.wx-cs-text p:first-child {
		font-size: 19px;
	}

	.wx-cs-text p {
		font-size: 17px;
	}
}

/* ---------- list: more cards on scroll (case-studies.js) ---------- */

.wx-cs-card[hidden] {
	display: none !important;
}

.wx-cs .wx-cs-card.is-new {
	animation: wx-cs-in .6s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes wx-cs-in {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
}

.wx-cs-loader {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 50px 0 10px;
}

.wx-cs-loader[hidden] {
	display: none;
}

.wx-cs-loader span:not(.screen-reader-text) {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--wx-dark);
	opacity: .2;
}

.wx-cs-loader.is-loading span:not(.screen-reader-text) {
	animation: wx-cs-dot .9s ease-in-out infinite;
}

.wx-cs-loader.is-loading span:nth-child(2) {
	animation-delay: .15s;
}

.wx-cs-loader.is-loading span:nth-child(3) {
	animation-delay: .3s;
}

@keyframes wx-cs-dot {
	50% {
		opacity: 1;
		transform: translateY(-5px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wx-cs .wx-cs-card.is-new,
	.wx-cs-loader.is-loading span {
		animation: none;
	}
}

/* ---------- photos in the brand tone: black and white ---------- */

.wx-cs .wx-cs-card__media img,
.wx-cs .wx-cs-hero__art img {
	filter: grayscale(1) contrast(1.05);
}

.wx-cs .wx-cs-card__media {
	background: #e9e9e9;
}
