/* ─── Case Study Hero ────────────────────────────── */
.cs-hero {
	height: 1082px;
	max-height: 100vh;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	background-color: #000;
}

.cs-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.cs-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cs-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: rgba(0, 0, 0, 0.57);
}

.cs-hero__content {
	position: relative;
	z-index: 3;
	text-align: center;
	max-width: 1225px;
	padding: 0 var(--section-padding);
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
}

.cs-hero__title {
	font-size: 64px;
	font-weight: var(--fw-regular);
	color: var(--text-white);
	line-height: 1.1;
}

.cs-hero__client {
	font-size: 40px;
	font-weight: var(--fw-regular);
	color: rgba(172, 172, 172, 0.79);
}

/* ─── Sticky Section Nav ────────────────────────── */
.cs-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	padding: 50px 424px;
	display: flex;
	justify-content: center;
}

.cs-nav__bar {
	display: inline-flex;
	gap: 70px;
	align-items: center;
	padding: 14px 50px;
	background: rgba(232, 232, 232, 0.5);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 5px;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.cs-nav__link {
	font-size: 20px;
	font-weight: var(--fw-light);
	color: #1b1b1b;
	white-space: nowrap;
	position: relative;
	transition: color 0.3s ease;
}

.cs-nav__link::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary-red);
	transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-nav__link:hover {
	color: var(--primary-red);
}

.cs-nav__link.is-active {
	color: var(--primary-red);
}

.cs-nav__link.is-active::after {
	width: 100%;
}

/* ─── Overview Section ──────────────────────────── */
.cs-overview {
	padding: 50px var(--section-padding);
	display: flex;
	gap: 315px;
}

.cs-overview__info {
	width: 742px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.cs-overview__meta {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cs-overview__meta-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cs-overview__meta-label {
	font-size: 20px;
	font-weight: var(--fw-regular);
	color: var(--text-gray);
}

.cs-overview__meta-value {
	font-size: 24px;
	font-weight: var(--fw-regular);
	color: var(--text-dark);
}

.cs-overview__links {
	display: flex;
	gap: 30px;
	align-items: center;
}

.cs-overview__link--visit {
	font-size: 20px;
	font-weight: var(--fw-regular);
	color: var(--primary-red);
	border-bottom: 2px solid var(--primary-red);
	padding-bottom: 4px;
	transition: opacity 0.2s;
}

.cs-overview__link--visit:hover {
	opacity: 0.7;
}

.cs-overview__link--share {
	font-size: 20px;
	font-weight: var(--fw-regular);
	color: var(--text-gray);
	border-bottom: 2px solid var(--text-gray);
	padding-bottom: 4px;
	transition: opacity 0.2s;
	cursor: pointer;
}

.cs-overview__link--share:hover {
	opacity: 0.7;
}

.cs-overview__services {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.cs-overview__services-title {
	font-size: 20px;
	font-weight: var(--fw-regular);
	color: var(--text-gray);
	margin-bottom: 12px;
}

.cs-overview__services-list {
	font-size: 24px;
	font-weight: var(--fw-regular);
	color: var(--text-dark);
	line-height: 1.6;
}

.cs-overview__text {
	flex: 1;
	max-width: 630px;
}

.cs-overview__text p {
	font-size: 24px;
	font-weight: var(--fw-regular);
	color: #878787;
	line-height: 1.5;
}

/* ─── Content Section (shared for Problem, Goals, Approach, Solution) ── */
.cs-section {
	padding: 100px var(--section-padding);
}

.cs-section__heading {
	font-size: 32px;
	font-weight: var(--fw-regular);
	color: var(--primary-red);
	max-width: 1146px;
	margin-bottom: 24px;
}

.cs-section__text {
	font-size: 24px;
	font-weight: var(--fw-regular);
	color: var(--text-dark);
	line-height: 1.5;
	margin-bottom: 60px;
}

.cs-section__text--goals {
	color: var(--text-dark);
}

/* ─── Image Grids ────────────────────────────────── */

/* Problem/Solution layout: 1 large + 2 small stacked */
.cs-images-grid--problem {
	display: grid;
	grid-template-columns: 1139fr 555fr;
	grid-template-rows: 310px 310px;
	gap: 20px;
}

.cs-images-grid--problem .cs-image:first-child {
	grid-row: 1 / -1;
}

.cs-images-grid--problem .cs-image img,
.cs-images-grid--problem .cs-image-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius);
}

/* Goals layout: 2 side-by-side */
.cs-images-grid--goals {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.cs-images-grid--goals .cs-image {
	aspect-ratio: 846 / 473;
}

.cs-images-grid--goals .cs-image img,
.cs-images-grid--goals .cs-image-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius);
}

/* Approach layout: 2 small stacked left + 1 large right */
.cs-images-grid--approach {
	display: grid;
	grid-template-columns: 557fr 1141fr;
	grid-template-rows: 312px 312px;
	gap: 18px 26px;
}

.cs-images-grid--approach .cs-image:last-child {
	grid-row: 1 / -1;
	grid-column: 2;
}

.cs-images-grid--approach .cs-image img,
.cs-images-grid--approach .cs-image-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius);
}

/* Shared image placeholder */
.cs-image-placeholder {
	background: var(--bg-light);
	border-radius: var(--radius);
}

/* ─── Goals Section Extra Padding ────────────────── */
.cs-section--goals {
	padding-bottom: 500px;
}

.cs-section--approach {
	padding-bottom: 500px;
}

/* ─── Results Section ────────────────────────────── */
.cs-results {
	padding: 100px var(--section-padding);
}

.cs-results__title {
	font-size: 36px;
	font-weight: var(--fw-regular);
	color: var(--text-dark);
	margin-bottom: 60px;
}

.cs-results__grid {
	display: flex;
	gap: 170px;
}

.cs-result {
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-left: 5px solid var(--primary-red);
	padding-left: 24px;
}

.cs-result__value {
	font-size: 64px;
	font-weight: var(--fw-bold);
	color: var(--text-dark);
	line-height: 1;
}

.cs-result__label {
	font-size: 40px;
	font-weight: var(--fw-regular);
	color: #818181;
	line-height: 1.2;
}

/* ─── Testimonial Section ────────────────────────── */
.cs-testimonial {
	position: relative;
	height: 920px;
	overflow: clip;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.cs-testimonial__watermark {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	font-size: 250px;
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	white-space: nowrap;
	line-height: 1;
	background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 1) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	opacity: 0.9;
	pointer-events: none;
	z-index: 1;
}

.cs-testimonial__card {
	position: absolute;
	top: 380px;
	left: 329px;
	right: 329px;
	background: var(--primary-red);
	border-radius: var(--radius);
	padding: 60px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.cs-testimonial__quote {
	font-size: 40px;
	font-weight: var(--fw-light);
	color: var(--text-white);
	line-height: 1.2;
	max-width: 1124px;
}

.cs-testimonial__author {
	font-size: 32px;
	font-weight: var(--fw-regular);
	color: var(--text-white);
	opacity: 0.6;
	line-height: 1.3;
}

/* ─── Related Projects Section ───────────────────── */
.cs-related {
	padding: 100px var(--section-padding) 300px;
}

.cs-related__title {
	font-size: 36px;
	font-weight: var(--fw-regular);
	color: var(--text-dark);
	margin-bottom: 60px;
}

.cs-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 50px;
}

.cs-related-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-related-card:hover {
	transform: translateY(-4px);
}

.cs-related-card__image {
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 516 / 290;
}

.cs-related-card__image img {
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-related-card:hover .cs-related-card__image img {
	transform: scale(1.03);
}

.cs-related-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cs-related-card__image-placeholder {
	width: 100%;
	height: 100%;
	background: var(--bg-light);
}

.cs-related-card__title {
	font-size: 36px;
	font-weight: var(--fw-light);
	color: var(--text-dark);
	line-height: 1.2;
}

.cs-related-card__desc {
	font-size: 16px;
	font-weight: var(--fw-regular);
	color: var(--text-body-gray);
	line-height: 1.4;
}

.cs-related-card__link {
	display: inline-flex;
	font-size: 20px;
	font-weight: var(--fw-regular);
	color: var(--primary-red);
	border-bottom: 2px solid var(--primary-red);
	padding-bottom: 4px;
	transition: opacity 0.2s;
	align-self: flex-start;
}

.cs-related-card__link:hover {
	opacity: 0.7;
}

/* ─── Back to Top Button ─────────────────────────── */
.cs-back-to-top {
	position: fixed;
	bottom: 40px;
	right: 40px;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: rgba(232, 232, 232, 0.5);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 5px;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
	font-size: 16px;
	font-weight: var(--fw-regular);
	color: #1b1b1b;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.cs-back-to-top:hover {
	background: rgba(232, 232, 232, 0.7);
}

.cs-back-to-top__icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ─── Responsive: 1200px ─────────────────────────── */
@media (max-width: 1200px) {
	.cs-hero__title {
		font-size: 52px;
	}

	.cs-hero__client {
		font-size: 32px;
	}

	.cs-nav {
		padding: 30px 40px;
	}

	.cs-nav__bar {
		gap: 40px;
		padding: 12px 30px;
	}

	.cs-overview {
		gap: 80px;
	}

	.cs-overview__info {
		width: auto;
		flex: 1;
	}

	.cs-overview__text {
		max-width: none;
		flex: 1;
	}

	.cs-overview__text p {
		font-size: 22px;
	}

	.cs-results__grid {
		gap: 80px;
	}

	.cs-result__value {
		font-size: 48px;
	}

	.cs-result__label {
		font-size: 28px;
	}

	.cs-testimonial__card {
		left: 100px;
		right: 100px;
	}

	.cs-testimonial__quote {
		font-size: 32px;
	}

	.cs-testimonial__watermark {
		font-size: 180px;
	}

	.cs-section--goals,
	.cs-section--approach {
		padding-bottom: 200px;
	}

	.cs-section__text {
		font-size: 22px;
	}

	.cs-related {
		padding-bottom: 150px;
	}

	.cs-related-card__title {
		font-size: 28px;
	}
}

/* ─── Responsive: 1024px ─────────────────────────── */
@media (max-width: 1024px) {
	.cs-hero {
		height: 80vh;
	}

	.cs-hero__title {
		font-size: 44px;
	}

	.cs-hero__client {
		font-size: 28px;
	}

	.cs-nav {
		padding: 20px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.cs-nav__bar {
		gap: 30px;
		padding: 10px 24px;
		font-size: 16px;
	}

	.cs-nav__link {
		font-size: 16px;
	}

	.cs-overview {
		flex-direction: column;
		gap: 40px;
	}

	.cs-overview__info {
		width: 100%;
	}

	.cs-overview__text {
		max-width: 100%;
	}

	.cs-images-grid--problem,
	.cs-images-grid--approach {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.cs-images-grid--problem .cs-image:first-child,
	.cs-images-grid--approach .cs-image:last-child {
		grid-row: auto;
		grid-column: auto;
	}

	.cs-images-grid--problem .cs-image,
	.cs-images-grid--approach .cs-image {
		aspect-ratio: 16 / 9;
	}

	.cs-results__grid {
		flex-wrap: wrap;
		gap: 40px;
	}

	.cs-testimonial {
		height: auto;
		min-height: 600px;
	}

	.cs-testimonial__card {
		position: relative;
		top: auto;
		left: auto;
		right: auto;
		margin: 280px var(--section-padding) 60px;
	}

	.cs-testimonial__watermark {
		font-size: 120px;
	}

	.cs-testimonial__quote {
		font-size: 28px;
	}

	.cs-testimonial__author {
		font-size: 24px;
	}

	.cs-related__grid {
		grid-template-columns: 1fr 1fr;
	}

	.cs-section--goals,
	.cs-section--approach {
		padding-bottom: 100px;
	}
}

/* ─── Responsive: 768px ──────────────────────────── */
@media (max-width: 768px) {
	.cs-hero {
		height: 70vh;
	}

	.cs-hero__title {
		font-size: 32px;
	}

	.cs-hero__client {
		font-size: 22px;
	}

	.cs-nav {
		padding: 12px 20px;
	}

	.cs-nav__bar {
		gap: 20px;
		padding: 10px 16px;
	}

	.cs-nav__link {
		font-size: 14px;
	}

	.cs-overview {
		padding: 30px 20px;
	}

	.cs-section {
		padding: 60px 20px;
	}

	.cs-section__heading {
		font-size: 24px;
	}

	.cs-section__text {
		font-size: 18px;
		margin-bottom: 30px;
	}

	.cs-overview__meta-value,
	.cs-overview__services-list {
		font-size: 18px;
	}

	.cs-overview__text p {
		font-size: 18px;
	}

	.cs-images-grid--goals {
		grid-template-columns: 1fr;
	}

	.cs-results {
		padding: 60px 20px;
	}

	.cs-results__grid {
		flex-direction: column;
		gap: 30px;
	}

	.cs-result__value {
		font-size: 40px;
	}

	.cs-result__label {
		font-size: 22px;
	}

	.cs-testimonial {
		min-height: auto;
	}

	.cs-testimonial__card {
		margin: 200px 20px 40px;
		padding: 30px;
	}

	.cs-testimonial__watermark {
		font-size: 72px;
	}

	.cs-testimonial__quote {
		font-size: 22px;
	}

	.cs-testimonial__author {
		font-size: 20px;
	}

	.cs-related {
		padding: 60px 20px 100px;
	}

	.cs-related__grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.cs-related-card__title {
		font-size: 24px;
	}

	.cs-section--goals,
	.cs-section--approach {
		padding-bottom: 60px;
	}

	.cs-back-to-top {
		bottom: 20px;
		right: 20px;
		padding: 10px 16px;
		font-size: 14px;
	}
}
