/* ============================================================
	 casestudy.css
	 Case-study page additions only.
	 Requires: reset.css, style.css (loaded before this file).
	 ============================================================ */


/* TOKENS──────────────────────────────────── */
:root {
	--cs-accent:			#1a0edd;
	--cs-nav-bg:			#07007a;
	--cs-page-bg:			#f6ebff;
	--cs-lavender:			rgba(210, 186, 228, 1);
	--cs-black:				#000000;
	--cs-grey_md:			#999999;
	--cs-results:			#DADAFF;

	--cs-h4:				38px;
	--cs-h4-lh:				130%;
	--cs-h6:				21px;
	--cs-h6-lh:				140%;
	--cs-p:					16px;

	--cs-xxs:				4px;
	--cs-xs:				8px;
	--cs-sm:				16px;
	--cs-md:				24px;
	--cs-lg:				48px;
	--cs-xl:				96px;

	--cs-max:				1520px;
	--cs-pad:				clamp(24px, 5vw, 80px);
}


/* HERO────────────────────────────────────── */

.cs-hero {
	padding-top: 67px;
}

.cs-hero-img {
	width: 100%;
	height: clamp(200px, 34vw, 547px);
	background-color: var(--cs-lavender);
	line-height: 0;
	overflow: hidden;
}

/* Hero img fills the fixed-height container */
.cs-hero-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}


/* CONTENT COLUMN──────────────────────────── */

.cs-main {
	max-width: var(--cs-max);
	margin: 0 auto;
	padding: 0 var(--cs-pad);
}


/* SECTIONS────────────────────────────────── */

.cs-section {
	display: flex;
	flex-direction: column;
	gap: var(--cs-md);
	padding: var(--cs-lg) 0 var(--cs-xl) 0;
	border-bottom: 1px solid var(--cs-black);
}

.cs-section-last {
	border-bottom: none;
}

.cs-overview {
	border-bottom: 1px solid var(--cs-black);
}


/* TEXT BLOCKS─────────────────────────────── */

.cs-text-block {
	display: flex;
	flex-direction: column;
	gap: var(--cs-md);
}

.cs-text-narrow {
	max-width: 888px;
}

.cs-label {
	display: block;
	font-family: 'Sora', Helvetica, sans-serif;
	font-size: var(--cs-p);
	font-weight: 600;
	line-height: var(--cs-p-lh);
	letter-spacing: 0;
	color: var(--cs-accent);
	text-transform: uppercase;
}

.cs-lead {
	font-family: 'Sora', Helvetica, sans-serif;
	font-size: var(--cs-h4);
	font-weight: 400;
	line-height: var(--cs-h4-lh);
	color: var(--cs-black);
}

.cs-body {
	font-family: 'Sora', Helvetica, sans-serif;
	font-size: var(--cs-h6);
	font-weight: 400;
	line-height: var(--cs-h6-lh);
	color: var(--cs-black);
}

.cs-body ul {
	margin: 0 0 0 var(--cs-md);
}

ul.cs-body {
	margin: 0;
	padding: 0;
	list-style: none;
	display: block;
}

ul.cs-body li {
	margin: 0 0 var(--cs-md);
	padding: var(--cs-sm);
	background: var(--cs-results);
	display: inline-block;
	border-radius: 12px;
}


/* META ROW (Role / Timeline / Focus)──────── */

.cs-meta-row {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--cs-lg);
	margin: var(--cs-lg) 0 0;
}

.cs-meta-item {
	display: flex;
	flex-direction: column;
	gap: var(--cs-xs);
	flex: 0 0 auto;
}

.cs-meta-grow-focus{
	flex: 1 1 auto;
	gap: var(--cs-xs);
}

.cs-meta-grow-focus .cs-label{
	margin: 0 0 var(--cs-xs);
}

.cs-meta-grow {
	flex: 1 1 200px;
}


/* CALLOUT / PULL QUOTE────────────────────── */

.cs-callout {
	padding: 0 32px;
	max-width: 888px;
}

.cs-callout p {
	font-family: 'Sora', Helvetica, sans-serif;
	font-size: var(--cs-h6);
	font-weight: 400;
	line-height: var(--cs-h6-lh);
	color: var(--cs-black);
}

.cs-callout-quote p {
	font-style: italic;
}


/* IMAGE SLOT──────────────────────────────── */
/*
	.cs-img-slot is now a sized container (position: relative).
	The <img> inside fills it via object-fit: cover.
	No inline background-image is used anywhere.
*/

.cs-img-slot {
	position: relative;					/* stacking context for the child img  */
	border-radius: var(--cs-xs);
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 2px 3px rgba(0, 0, 0, .2);
	background-color: var(--cs-lavender); /* placeholder colour while loading  */
}

/* The <img> inside every slot fills the container completely */
.cs-img-slot img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.cs-img-grid-9{
	display: inline-grid;
	row-gap: var(--cs-xs);
	column-gap: var(--cs-xs);
	grid-template-rows: repeat(3,fit-content(100%));
	grid-template-columns: repeat(3,fit-content(100%));
	justify-items: center;
	align-items: center;
}

/* IMAGE GRID LAYOUTS──────────────────────── */

.cs-img-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--cs-md);
}

.cs-img-grid-3 .cs-img-slot {
	height: 400px;
}

.cs-img-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--cs-md);
}

/* aspect-ratio helpers — the ratio sets height; img fills via position:absolute */
.cs-img-wide {
	aspect-ratio: 1.37;
}

.cs-img-height {
	height: clamp(200px, 110vh, 1000px);
}

.cs-img-height-full{
	height: auto;
}

.cs-img-height-full img {
	position: relative;
	inset: unset;
	width: 100%;
	height: auto;
	object-fit: unset;
	display: block;
}

.cs-img-panorama {
	width: 100%;
	aspect-ratio: 2.35;
}


/* EMAIL IMAGE BLOCK───────────────────────── */

.cs-img-emails {
	border: 1px solid var(--cs-grey_md);
	width: 100%;
	border-radius: var(--cs-xs);
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 2px 3px rgba(0, 0, 0, .2);
}

.cs-img-emails img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}


/* NFT VISUAL──────────────────────────────── */

.cs-nft-visuals {
	position: relative;
	width: 100%;
	aspect-ratio: 1.68;
	overflow: hidden;
	mix-blend-mode: darken;
	background-color: var(--cs-lavender);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 2px 3px rgba(0, 0, 0, .2);
}

.cs-nft-base {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cs-nft-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 50%;
	object-fit: cover;
}


/* MOBILE PHONE ROW────────────────────────── */

.cs-mobile-row {
	display: flex;
	gap: var(--cs-md);
	align-items: center;
}

.cs-mobile-slot {
	flex: 1;
	position: relative; /* needed for the child img */
	aspect-ratio: 0.46;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 2px 3px rgba(0, 0, 0, .2);
}

/* img inside mobile slots uses the same fill pattern */
.cs-mobile-slot img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* FLEX LABEL / CONTENT ROW────────────────── */

.flex {
	display: flex;
	gap: var(--cs-md);
}

.label,
.content {
	flex: 1;
}


/* RESULTS LIST────────────────────────────── */

.cs-results {
	display: flex;
	max-width: var(--cs-max);
	width: 100%;
	flex-direction: column;
	gap: var(--cs-sm);
}

.cs-quote {
	background: #fff;
	padding: var(--cs-md);
}

.cs-linkedin {
	display: flex;
	gap: 20px;
}

.cs-linkedin div {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	overflow: hidden;
}

.cs-linkedin .cs-body {
	margin: var(--cs-md) 0 0;
}

.cs-linkedin .cs-body span {
	font-size: 1rem;
}


/* BACK LINK───────────────────────────────── */

.cs-back-wrap {
	max-width: var(--cs-max);
	margin: 0 auto;
	padding: var(--cs-lg) var(--cs-pad) var(--cs-xl);
}

.cs-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Sora', Helvetica, sans-serif;
	font-size: var(--cs-p);
	font-weight: 600;
	color: var(--cs-accent);
	text-decoration: none;
	transition: gap 0.2s ease;
}

.cs-back:hover {
	gap: 14px;
	text-decoration: none;
}

.cs-back svg path {
	fill: none;
}


/* CASE STUDY FOOTER───────────────────────── */

.cs-footer {
	background-color: var(--cs-nav-bg);
	padding: 40px var(--cs-pad);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--cs-sm);
}

.cs-footer-copy {
	font-family: 'Sora', Helvetica, sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
}

.cs-footer nav ul {
	display: flex;
	gap: 32px;
	list-style: none;
	justify-content: flex-end;
}

.cs-footer nav a {
	font-family: 'Sora', Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	padding: 0;
	border: none;
	border-radius: 0;
}

.cs-footer nav a:hover {
	color: #ffffff;
	text-decoration: none;
	border: none;
}


/* ============================================================
	BREAKPOINTS
	Tablet  : max-width 860px
	Mobile  : max-width 560px
	============================================================ */


/* TABLET (≤ 860px)────────────────────────── */
@media (max-width: 860px) {

	:root {
		--cs-xl: 64px;
		--cs-lg: 32px;
	}

	.cs-hero {
		padding-top: 0;
		/* padding-top: 60px; */
	}

	.cs-section {
		padding: var(--cs-lg) 0 var(--cs-xl) 0;
	}

	.cs-lead {
		font-size: clamp(1.5rem, 3.5vw, 2rem);
		line-height: 130%;
	}

	.flex {
		flex-direction: column;
		gap: var(--cs-sm);
	}

	.cs-meta-row {
		gap: var(--cs-md);
		margin: var(--cs-md) 0 0;
		flex-wrap: wrap;
	}

	.cs-img-grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.cs-img-panorama {
		aspect-ratio: 1.8;
	}

	.cs-mobile-row {
		gap: var(--cs-sm);
	}

	.cs-section-last .flex {
		flex-direction: column;
		gap: var(--cs-lg);
	}

	.cs-linkedin {
		gap: 16px;
	}
	.cs-linkedin div {
		width: 80px;
		height: 80px;
	}

	.cs-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--cs-md);
	}
	.cs-footer nav ul {
		justify-content: flex-start;
		gap: 24px;
	}
}


/* MOBILE (≤ 560px)────────────────────────── */
@media (max-width: 560px) {

	:root {
		--cs-xl: 48px;
		--cs-lg: 24px;
		--cs-md: 16px;
		--cs-h4: 26px;
		--cs-h6: 15px;
	}

	.cs-lead {
		font-size: 1.35rem;
		line-height: 135%;
	}

	.cs-img-grid-3,
	.cs-img-grid-2 {
		grid-template-columns: 1fr;
	}
	.cs-img-grid-3 .cs-img-slot {
		height: 240px;
	}

	.cs-img-wide {
		aspect-ratio: 1.2;
	}

	.cs-img-panorama {
		aspect-ratio: 1.2;
	}

	.cs-mobile-row {
		flex-wrap: wrap;
		gap: var(--cs-sm);
	}

	.cs-mobile-slot {
		flex: 0 0 calc(50% - 8px);
	}

	.callouts {
		font-size: 0.8rem;
	}

	ul.cs-body li {
		display: block;
		width: 100%;
		border-radius: 8px;
		margin: 0 0 var(--cs-sm);
	}

	.cs-quote {
		padding: var(--cs-sm);
	}

	.cs-linkedin {
		flex-direction: column;
		gap: var(--cs-sm);
	}
	.cs-linkedin div {
		width: 64px;
		height: 64px;
	}
	.cs-linkedin .cs-body {
		margin: 0;
	}

	.cs-footer {
		padding: 32px var(--cs-sm);
	}
	.cs-footer nav ul {
		flex-wrap: wrap;
		gap: 16px;
	}
}
