/* =========================================================================
   Case Studies listing (v2)  —  layered on top of home-v2.css.
   Built from Figma "Case study listing page" (8C41…, 195:18390).
   Dark hero → "Featured" cards (illustrated panel + tag/title/bullets/link) →
   CTA → footer. Content inset to the 160px rail.
   ========================================================================= */

:root {
	--cs-teal: #2ad9c4;
	--cs-ink: #111;
	--cs-line: rgba(17, 17, 17, 0.1);
}

/* -------------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------------- */
.cs-hero {
	background: #0e0e0e;
	color: #fff;
}
.cs-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
	padding-block: clamp(64px, 8vw, 100px);
}
.cs-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 20px 8px 16px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 2px;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -0.16px;
	color: #fff;
}
.cs-pill__dot {
	width: 8px;
	height: 8px;
	border-radius: 1px;
	background: var(--cs-teal);
}
.cs-hero__titles {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.cs-hero__title {
	margin: 0;
	font-weight: 500;
	font-size: 80px;
	line-height: 1.4;
	letter-spacing: -1.6px;
	color: #fff;
}
.cs-hero__sub {
	margin: 0;
	max-width: min(1010px, 100%);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.4;
	letter-spacing: -0.48px;
	color: rgba(255, 255, 255, 0.7);
}

/* -------------------------------------------------------------------------
   FEATURED LIST
   ------------------------------------------------------------------------- */
.cs-list {
	background: #fff;
	padding-block: 100px;
}
.cs-inner {
	max-width: min(1600px, 100%);
	margin-inline: auto;
}
.cs-sechead {
	margin: 0 0 40px;
	font-weight: 500;
	font-size: 36px;
	line-height: 1.4;
	letter-spacing: -0.72px;
	color: var(--cs-ink);
}
.cs-cards {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.cs-card {
	display: grid;
	/* Proportional, not a fixed 800px: at a fixed width the text column was
	   squeezed to ~150px on a 1280 screen. */
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 40px;
	align-items: stretch;
	padding: 32px;
	border: 1px solid var(--cs-line);
	border-radius: 16px;
	background: #fff;
}
.cs-card__panel {
	/* align-self is load-bearing. The card stretches its children, and a
	   stretched box with an aspect-ratio derives its WIDTH from that height —
	   so a tall text column made the image grow wider than the card and pushed
	   the whole page sideways. Starting it lets width drive height instead. */
	align-self: start;
	width: 100%;
	aspect-ratio: 800 / 400;
	overflow: hidden;
	border-radius: 12px;
	background: #eef7f6;
}
.cs-card__panel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cs-card__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	min-width: 0;
}
.cs-card__head {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.cs-tag {
	position: relative;
	align-self: flex-start;
	padding: 12px 16px;
	background: rgba(42, 217, 196, 0.2);
	border-radius: 1px;
	font-weight: 500;
	font-size: 16px;
	line-height: 1;
	text-transform: uppercase;
	color: #1d403c;
	white-space: nowrap;
	font-size: 13px;
}
.cs-tag__dot {
	position: absolute;
	width: 10px;
	height: 10px;
	border-radius: 1px;
	background: rgba(29, 64, 60, 0.2);
}
.cs-tag__dot--tl { top: 0; left: 0; }
.cs-tag__dot--tr { top: 0; right: 0; }
.cs-tag__dot--br { bottom: 0; right: 0; }
.cs-tag__dot--bl { bottom: 0; left: 0; }
.cs-card__title {
	margin: 0;
	font-weight: 500;
	font-size: 37px;
	line-height: 1.35;
	letter-spacing: -0.37px;
	color: var(--cs-ink);
}
.cs-bullets {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.cs-bullet {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	font-size: 21px;
	line-height: 1.4;
	color: var(--cs-ink);
}
.cs-bullet__icon {
	flex: none;
	width: 24px;
	height: 24px;
	margin-top: 2px;
}
.cs-view {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px;
	align-self: flex-start;
	font-size: 16px;
	color: var(--cs-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.cs-view img {
	width: 24px;
	height: 24px;
}

/* -------------------------------------------------------------------------
   CTA
   ------------------------------------------------------------------------- */
.cs-cta {
	background:
		radial-gradient(120% 140% at 50% 0%, rgba(42, 217, 196, 0.16), rgba(14, 14, 14, 0) 60%),
		#0e0e0e;
	color: #fff;
}
.cs-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
	/* Figma CTA artwork (node 216:14850). */
	border-radius: 32px;
	overflow: hidden;
	background: #0a1614 url("../img/case-studies-v2/cta-bg.webp") center / cover no-repeat;
	padding-block: clamp(80px, 10vw, 160px);
}
.cs-cta__title {
	margin: 0;
	max-width: min(1123px, 100%);
	font-weight: 500;
	font-size: 59px;
	line-height: 1.4;
	letter-spacing: -1.28px;
	color: rgba(255, 255, 255, 0.8);
}
.cs-cta__title span {
	color: var(--cs-teal);
}
.cs-cta__sub {
	margin: 0;
	max-width: min(899px, 100%);
	font-weight: 400;
	font-size: 24px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.8);
}
.cs-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	background: #fff;
	border-radius: 2px;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: -0.16px;
	color: #0a0a0a;
	text-decoration: none;
}
.cs-cta__btn:hover {
	filter: brightness(0.94);
}

/* -------------------------------------------------------------------------
   MOBILE  (Figma 195:19232)
   ------------------------------------------------------------------------- */
/* Below this the two-column card is too tight to read; stack it. */
@media (max-width: 1024px) {
	.cs-card {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.cs-hero__inner {
		gap: 16px;
		padding-block: 40px;
	}
	.cs-hero__title {
		font-size: 32px;
		letter-spacing: -0.64px;
	}
	.cs-hero__sub {
		font-size: 14px;
		letter-spacing: -0.28px;
	}

	.cs-list {
		padding-block: 32px;
	}
	.cs-sechead {
		font-size: 24px;
		letter-spacing: -0.48px;
		margin-bottom: 24px;
	}
	.cs-cards {
		gap: 20px;
	}
	.cs-card {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 16px;
		border-radius: 12px;
	}
	.cs-card__content {
		gap: 20px;
	}
	.cs-card__head {
		gap: 16px;
	}
	.cs-tag {
		font-size: 12px;
		padding: 8px 12px;
	}
	.cs-card__title {
		font-size: 22px;
		letter-spacing: -0.22px;
	}
	.cs-bullet {
		font-size: 14px;
		align-items: flex-start;
	}
	.cs-bullet__icon {
		width: 20px;
		height: 20px;
	}
	.cs-view {
		padding: 8px 0;
	}

	.cs-cta__inner {
		padding-block: 56px;
	}
	.cs-cta__title {
		font-size: 32px;
		letter-spacing: -0.64px;
	}
	.cs-cta__sub {
		font-size: 16px;
	}
}

/* =========================================================================
   FLUID DESKTOP BAND (769-1919) — see the note in blog.css.
   Max = 1920 design value (1920+ byte-identical), min = this file's own <=768
   value, coefficient = design/19.2vw. Body copy and small UI stay fixed.
   ========================================================================= */
@media (min-width: 769px) and (max-width: 1919px) {
	.cs-hero__title { font-size: clamp(32px, 4.167vw, 80px); letter-spacing: -0.02em; }
	.cs-hero__sub { font-size: clamp(14px, 1.25vw, 24px); letter-spacing: -0.02em; }
	.cs-list { padding-block: clamp(32px, 5.208vw, 100px); }
	.cs-sechead { font-size: clamp(24px, 1.875vw, 36px); letter-spacing: -0.02em; }
	.cs-card { gap: clamp(20px, 2.083vw, 40px); }
	.cs-card__title { font-size: clamp(22px, 1.927vw, 37px); letter-spacing: -0.01em; }
	.cs-cta__title { font-size: clamp(32px, 3.073vw, 59px); letter-spacing: -0.0217em; }
	.cs-cta__sub { font-size: clamp(16px, 1.25vw, 24px); }
}
