/* =============================================================
   Case Study — single template
   Headings: Space Grotesk (bold). Body: Roboto (normal).
   Scoped under .cs to avoid leaking into the rest of the theme.
   ============================================================= */
#primary {
	overflow-x: hidden;
}

.cs {
	--cs-ink: #ffffff;
	--cs-muted: #ffffff;
	--cs-orange: #F15822;
	--cs-line: rgba(255, 255, 255, 0.14);
	--cs-border-accent: #b5532a;
	--cs-card: #0a1a22;
	--cs-maxw: 1080px;
	--cs-gap: clamp(28px, 6vw, 72px);

	font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 400;
	color: var(--cs-ink);
	line-height: 1.6;
}

.cs h1, .cs h2, .cs h3, .cs h4 {
	font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 700;
	line-height: 1.1;
	margin: 0;
}

.cs p { margin: 0 0 1em; }
.cs p:last-child { margin-bottom: 0; }
.cs a { color: var(--cs-orange); }

/* ---- Layout helpers --------------------------------------- */

/* Edge-to-edge: cancels the padded/centred main wrapper. */
.cs-fullbleed {
	width: 100vw;
	margin-left: 50%;
}

.cs-container {
	max-width: var(--cs-maxw);
	margin-inline: auto;
}

.cs-content > * + * { margin-top: var(--cs-gap); }
.cs-content {
	margin-top: var(--cs-gap);
   padding: 0 clamp(20px, 6vw, 100px);
}

/* ---- Hero (featured image only) --------------------------- */

.cs-hero { margin: 0; line-height: 0; }
.cs-hero__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 86vh;
	object-fit: cover;
}

/* ---- Meta bar --------------------------------------------- */

.cs-meta {
	border-bottom: 1px solid var(--cs-line);
	margin-top: clamp(20px, 4vw, 40px);
   padding: 0 clamp(20px, 6vw, 100px);
}
.cs-meta__row {
	display: flex;
	gap: 8px 32px;
	padding-bottom: clamp(16px, 3vw, 28px);
	font-size: 0.85rem;
	justify-content: space-between;
}
.cs-meta__item { margin: 0; color: var(--cs-muted); }
.cs-meta__item--right { margin-left: auto; }
.cs-meta__label {
	font-family: "Space Grotesk", sans-serif;
	font-weight: 700;
	color: var(--cs-orange);
	letter-spacing: 0.02em;
	margin-right: 4px;
}

/* ---- Text / paragraph ------------------------------------- */

.cs-text__heading {
	font-size: clamp(2rem, 4.5vw, 3.25rem);
}
.cs-text__label {
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	margin: 0 0 0.6em;
}
.cs-text__body { color: var(--cs-muted); }
.cs-text__body .cs-text__label { color: var(--cs-ink); }

.cs-text--split {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cs-gap);
	align-items: flex-start;
}
.cs-text--split > .cs-text__lead,
.cs-text--split > .cs-text__body {
	flex: 1 1 0;
	min-width: 0;
}

/* ---- Accordion -------------------------------------------- */

.cs-accordion { border-top: 1px solid var(--cs-line); }
.cs-accordion__item { border-bottom: 1px solid var(--cs-line); }
.cs-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: clamp(18px, 3vw, 26px) 0;
	cursor: pointer;
	list-style: none;
	font-family: "Space Grotesk", sans-serif;
	font-weight: 700;
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}
.cs-accordion__summary::-webkit-details-marker { display: none; }
.cs-accordion__icon {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}
.cs-accordion__icon::before,
.cs-accordion__icon::after {
	content: "";
	position: absolute;
	background: var(--cs-muted);
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.cs-accordion__icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.cs-accordion__icon::after  { top: 0; left: 8px; width: 2px; height: 18px; }
.cs-accordion__item[open] .cs-accordion__icon::after { opacity: 0; transform: rotate(90deg); }
.cs-accordion__panel {
	padding: 0 0 clamp(18px, 3vw, 26px);
	color: var(--cs-muted);
	max-width: 70ch;
}

/* ---- Pull quote ------------------------------------------- */

.cs-quote__box {
	display: flex;
	flex-wrap: wrap;
	gap: var(--cs-gap);
	align-items: flex-start;
	margin: 0;
	padding: clamp(28px, 4vw, 56px);
	border: 1px solid var(--cs-border-accent);
}
.cs-quote__heading {
	flex: 0 0 30%;
	min-width: 160px;
	margin: 0;
	font-family: "Space Grotesk", sans-serif;
	font-weight: 700;
	font-size: clamp(1.8rem, 3.4vw, 2.75rem);
	line-height: 1.05;
	color: var(--cs-ink);
}
.cs-quote__text {
	flex: 1 1 0;
	min-width: 0;
	font-size: clamp(1.1rem, 1.8vw, 1.4rem);
	line-height: 1.45;
	color: var(--cs-ink);
}

/* ---- Media row -------------------------------------------- */

.cs-media__row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.cs-media__item {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border-radius: 8px;
	background: #000;
}
.cs-media__el {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ar-16-9 { aspect-ratio: 16 / 9; }
.ar-1-1  { aspect-ratio: 1 / 1; }
.ar-9-16 { aspect-ratio: 9 / 16; }

/* ---- Download --------------------------------------------- */

.cs-download__btn {
	display: inline-block;
	background: var(--cs-orange);
	color: #0a1a22;
	font-family: "Space Grotesk", sans-serif;
	font-weight: 700;
	text-decoration: none;
	padding: 14px 28px;
	border-radius: 999px;
}
.cs-download__btn:hover { filter: brightness(1.08); }

/* ---- Related: "More projects" ----------------------------- */

.cs-related { margin-top: var(--cs-gap); }
body .cs-related__title {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	margin-bottom: clamp(20px, 3vw, 32px);
}
.cs-related__name {
	color: #ffffff;
}
.cs-related__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(20px, 4vw, 48px);
}
.cs-related__card {
	display: flex;
	flex-direction: column;
	color: var(--cs-ink);
	text-decoration: none;
}
.cs-related__media {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 8px;
	background: #000;
}
.cs-related__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.cs-related__card:hover .cs-related__img { transform: scale(1.03); }
.cs-related__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-top: clamp(14px, 2vw, 20px);
}
.cs-related__name { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.cs-related__dek {
	margin: 4px 0 0;
	color: var(--cs-muted);
	font-size: 0.95rem;
}
.cs-related__cta {
	flex: 0 0 auto;
	font-family: "Space Grotesk", sans-serif;
	font-weight: 700;
	color: var(--cs-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}
.cs-related__card:hover .cs-related__cta { color: var(--cs-green); }


/* ---- Responsive ------------------------------------------- */

@media (max-width: 860px) {
	.cs-text--split { gap: 1.5rem; }
	.cs-text--split > .cs-text__lead,
	.cs-text--split > .cs-text__body { flex-basis: 100%; }
	/* Stack media 1-up; side-by-side feels cramped on small screens. */
	.cs-media__item { flex-basis: 100%; }
	/* Stack the quote heading above its text. */
	.cs-quote__heading { flex-basis: 100%; }
	.cs-meta__item--right { margin-left: 0; }

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

/*---------Nav Fix----------*/
@media (min-width: 768px) {
.cs {
	margin-top:100px;
}
}
@media (max-width: 767px) {
.cs {
	margin-top:84px;
}
}