/**
 * Develop2Any — single project (case study) page.
 * Translates the decoded project mockup. Shared chrome (nav, footer, grain,
 * progress bar, reveal) lives in main.css; this file owns the cs-* blocks.
 */

.cs-page {
	display: block;
}

/* Shared rules / eyebrows --------------------------------------------------- */
.cs-rule {
	height: 1px;
	background: var(--line);
}
.cs-eyebrow--mt {
	margin-top: 38px;
}
.cs-h2 {
	font-family: 'Source Serif 4', serif;
	font-size: 27px;
	font-weight: 500;
	margin-top: 14px;
	line-height: 1.2;
}
.cs-h2--tight {
	font-size: 26px;
	margin-top: 12px;
}
.cs-p {
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--muted);
	margin-top: 14px;
}
.cs-lime {
	color: var(--lime);
}
.cs-div {
	width: 1px;
	background: var(--line);
	align-self: stretch;
	flex: none;
}

/* Sticky section nav -------------------------------------------------------- */
.cs-secnav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 45;
	background: rgba(244, 240, 229, .92);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--line-2);
	transform: translateY(-100%);
	opacity: 0;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
	pointer-events: none;
}
.cs-secnav.is-on {
	transform: none;
	opacity: 1;
	pointer-events: auto;
}
.cs-secnav-in {
	max-width: var(--container);
	margin: 0 auto;
	padding: 12px var(--gutter);
	display: flex;
	align-items: center;
	gap: 26px;
}
.cs-secnav-brand {
	font-family: 'Archivo Black', sans-serif;
	font-size: 15px;
}
.cs-secnav-links {
	display: flex;
	gap: 22px;
	margin-left: 8px;
}
.cs-secnav-links a {
	font-family: 'Space Mono', monospace;
	font-size: 11px;
	letter-spacing: .5px;
	color: #777;
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	transition: color .2s, border-color .2s;
}
.cs-secnav-links a:hover {
	color: var(--ink);
}
.cs-secnav-links a.is-active {
	color: var(--red-2);
	border-bottom-color: var(--red-2);
}
.cs-secnav-cta {
	margin-left: auto;
	background: var(--red);
	color: #fff;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
	padding: 9px 16px;
	border-radius: 3px;
	white-space: nowrap;
}

/* Back link ----------------------------------------------------------------- */
.cs-back-wrap {
	padding-top: 20px;
}
.cs-back {
	font-family: 'Space Mono', monospace;
	font-size: 12px;
	letter-spacing: 1px;
	color: var(--red-2);
	text-decoration: none;
}
.cs-back:hover {
	text-decoration: underline;
}

/* Hero ---------------------------------------------------------------------- */
.cs-hero-sec {
	padding: 18px 0 36px;
}
.cs-hero {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 50px;
	align-items: start;
}
.cs-kicker {
	font-family: 'Space Mono', monospace;
	font-size: 12px;
	letter-spacing: 1.5px;
	color: var(--red-2);
}
.cs-title {
	font-family: 'Archivo Black', sans-serif;
	font-size: 84px;
	line-height: .92;
	letter-spacing: -2px;
	margin-top: 14px;
}
.cs-tagline {
	font-family: 'Source Serif 4', serif;
	font-size: 30px;
	line-height: 1.22;
	margin-top: 22px;
}
.cs-lede {
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--muted);
	margin-top: 20px;
	max-width: 430px;
}
.cs-hero-facts {
	border-left: 1px solid var(--line);
	padding-left: 34px;
}
.cs-facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px 24px;
}
.cs-fact--top {
	border-top: 1px solid var(--line-2);
	padding-top: 24px;
}
.cs-fact-k {
	font-family: 'Space Mono', monospace;
	font-size: 11px;
	letter-spacing: 1px;
	color: var(--faint);
}
.cs-fact-v {
	font-size: 16px;
	font-weight: 600;
	margin-top: 8px;
}
.cs-fact-v--sm {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
}

/* Trust bar ----------------------------------------------------------------- */
.cs-trust-sec {
	padding: 30px 0;
}
.cs-trust {
	display: flex;
	align-items: flex-start;
}
.cs-trust-lead {
	flex: 1;
	padding-right: 24px;
}
.cs-trust-big {
	font-family: 'Archivo Black', sans-serif;
	font-size: 30px;
	color: var(--lime-3);
}
.cs-trust-k {
	font-family: 'Space Mono', monospace;
	font-size: 11px;
	letter-spacing: 1px;
	margin-top: 8px;
}
.cs-trust-s {
	font-size: 13px;
	color: var(--text-soft);
	margin-top: 6px;
	line-height: 1.45;
}
.cs-trust-col {
	flex: 1;
	padding: 0 24px;
	display: flex;
	gap: 14px;
}
.cs-trust-col:last-child {
	padding-right: 0;
}
.cs-trust-sec .cs-div {
	height: 64px;
	align-self: flex-start;
}
.cs-trust-ic {
	flex: none;
}
.cs-trust-t {
	font-family: 'Space Mono', monospace;
	font-size: 11px;
	letter-spacing: 1px;
	font-weight: 700;
	line-height: 1.5;
}
.cs-trust-col .cs-trust-s {
	margin-top: 8px;
}

/* Dark band ----------------------------------------------------------------- */
.cs-band {
	background: var(--dark);
	position: relative;
	overflow: hidden;
	margin-top: 8px;
	border-top: 6px solid var(--red);
	border-bottom: 6px solid var(--red);
}
.cs-band-edge {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 18px;
	background: var(--red);
}
.cs-band-edge--l {
	left: 0;
}
.cs-band-edge--r {
	right: 0;
}
.cs-band-in {
	max-width: var(--container);
	margin: 0 auto;
	padding: 54px var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}
.cs-band-h {
	font-family: 'Archivo Black', sans-serif;
	font-size: 58px;
	line-height: .95;
	letter-spacing: -1.5px;
	color: #fff;
}
.cs-band-sub {
	font-family: 'Space Mono', monospace;
	font-size: 13px;
	color: var(--rule-soft);
	margin-top: 22px;
	line-height: 1.6;
}
.cs-band-art {
	display: flex;
	align-items: center;
	gap: 30px;
	flex: none;
}
.cs-art-qr {
	position: relative;
	width: 110px;
	height: 110px;
	overflow: hidden;
}
.cs-art-qr .cs-qr {
	position: absolute;
	top: 24px;
	left: 24px;
}
.cs-scanline {
	position: absolute;
	top: 50px;
	left: 22px;
	width: 66px;
	height: 2px;
	background: var(--lime);
	box-shadow: 0 0 8px var(--lime);
	animation: csScan 2.4s ease-in-out infinite;
}
.cs-band-foot {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter) 40px;
}
.cs-band-line {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 420px;
}
.cs-marching-wrap {
	height: 2px;
	flex: 1;
}
.cs-marching-wrap svg {
	display: block;
}
.cs-band-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid var(--lime);
}
.cs-qr {
	animation: csQrPulse 2s ease-in-out infinite;
}
.cs-marching {
	stroke-dasharray: 6 8;
	animation: csDash 1s linear infinite;
}

@keyframes csQrPulse {
	0%, 100% { opacity: .5; }
	50% { opacity: 1; }
}
@keyframes csDash {
	to { stroke-dashoffset: -28; }
}
@keyframes csScan {
	0% { transform: translateY(-26px); }
	50% { transform: translateY(26px); }
	100% { transform: translateY(-26px); }
}

/* Metrics strip ------------------------------------------------------------- */
.cs-metrics-sec {
	padding: 40px 0;
}
.cs-metrics {
	align-items: center;
}
.cs-metric {
	flex: 1;
	padding: 0 24px;
}
.cs-metric:first-child {
	padding-left: 0;
}
.cs-metric:last-child {
	padding-right: 0;
}
.cs-metrics .cs-div {
	height: 54px;
	align-self: center;
}
.cs-metric-n {
	font-family: 'Archivo Black', sans-serif;
	font-size: 38px;
	letter-spacing: -1px;
}
.cs-metric-n.is-lime {
	color: var(--lime-3);
}
.cs-metric-l {
	font-family: 'Space Mono', monospace;
	font-size: 11px;
	letter-spacing: 1px;
	color: var(--text-soft);
	margin-top: 6px;
}

/* Screenshots --------------------------------------------------------------- */
.cs-shots-sec {
	padding: 8px 0 36px;
}
.cs-shots-sec .cs-eyebrow {
	margin-bottom: 20px;
}
.cs-shots {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 20px;
}
.cs-shots--single {
	grid-template-columns: 1fr;
}
.cs-shots--single .cs-shot-img {
	aspect-ratio: 16 / 9;
}
.cs-shot-ph,
.cs-shot-img {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
}
.cs-shot-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e8e2d3;
	border: 1px dashed var(--border-divider);
}
.cs-shot-ph span {
	font-family: 'Space Mono', monospace;
	font-size: 11px;
	letter-spacing: .5px;
	color: #9a937f;
}
.cs-shot-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cs-shot-cap {
	font-family: 'Space Mono', monospace;
	font-size: 11px;
	letter-spacing: .5px;
	color: #777;
	margin-top: 10px;
}

/* Main: narrative + aside --------------------------------------------------- */
.cs-main-sec {
	padding: 48px 0 20px;
}
.cs-main {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 64px;
	align-items: start;
}
.cs-anchor {
	display: block;
	scroll-margin-top: 80px;
}
.cs-checklist {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 11px;
}
.cs-li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	opacity: 0;
	transform: translateX(-10px);
	transition: opacity .5s ease, transform .5s ease;
}
.cs-li.is-in {
	opacity: 1;
	transform: none;
}
.cs-li .lime-check {
	flex: none;
}
.cs-pull {
	margin-top: 30px;
	border-left: 3px solid var(--lime);
	padding: 6px 0 6px 24px;
}
.cs-pull-q {
	font-family: 'Source Serif 4', serif;
	font-size: 23px;
	font-style: italic;
	line-height: 1.4;
}
.cs-pull-by {
	font-family: 'Source Serif 4', serif;
	font-size: 14px;
	color: #777;
	margin-top: 10px;
}

.cs-aside {
	border-left: 1px solid var(--line);
	padding-left: 36px;
}
.cs-aside-rule {
	height: 1px;
	background: var(--line-2);
	margin: 26px 0;
}
.cs-facts-list {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.cs-factrow {
	display: flex;
	gap: 13px;
}
.cs-factrow-ic {
	flex: none;
	margin-top: 2px;
}
.cs-factrow-k {
	font-weight: 700;
	font-size: 13.5px;
}
.cs-factrow-v {
	font-size: 13px;
	color: var(--text-soft);
	margin-top: 3px;
	line-height: 1.45;
}
.cs-svclist {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: 14px;
}
.cs-svc {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	transition: color .2s;
}
.cs-svc:hover {
	color: var(--red);
}
.cs-svc-ic {
	flex: none;
}
.cs-chips {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.cs-chip {
	display: inline-flex;
	align-items: center;
	font-family: 'Space Mono', monospace;
	font-size: 10.5px;
	letter-spacing: .5px;
	color: var(--text-2);
	border: 1px solid var(--border-divider);
	border-radius: 3px;
	padding: 6px 11px;
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s;
	text-decoration: none;
}
.cs-chip:hover {
	background: var(--lime);
	border-color: var(--lime);
	color: var(--ink);
}
.cs-aside-p {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.6;
	margin-top: 14px;
}
.cs-aside-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	background: var(--red);
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	padding: 15px;
	border-radius: 3px;
	margin-top: 18px;
}
.cs-aside-btn:hover {
	background: var(--red-2);
}
.cs-aside-email {
	font-family: 'Source Serif 4', serif;
	font-size: 14px;
	color: var(--text-2);
	margin-top: 14px;
}
.cs-aside-email a {
	color: var(--red-2);
	text-decoration: underline;
}

/* Client quote -------------------------------------------------------------- */
.cs-quote-sec {
	background: var(--bg-hover);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.cs-quote {
	max-width: var(--measure-xl);
	margin: 0 auto;
	padding: 50px var(--gutter);
	text-align: center;
}
.cs-quote-mark {
	font-family: 'Archivo Black', sans-serif;
	color: var(--lime);
	font-size: 60px;
	line-height: .5;
}
.cs-quote-body {
	font-family: 'Source Serif 4', serif;
	font-size: 27px;
	line-height: 1.4;
	color: var(--ink-2);
	margin-top: 14px;
	text-wrap: balance;
}
.cs-quote-cite {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 30px;
}
.cs-quote-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--red);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Archivo Black', sans-serif;
	font-size: 15px;
}
.cs-quote-who {
	text-align: left;
}
.cs-quote-name {
	font-weight: 700;
	font-size: 15px;
}
.cs-quote-title {
	font-family: 'Source Serif 4', serif;
	font-size: 14px;
	color: var(--text-soft);
}

/* Tech-decision table ------------------------------------------------------- */
.cs-table-sec {
	padding: 28px 0 40px;
}
.cs-table-head {
	max-width: 760px;
}
.cs-table {
	max-width: 760px;
	margin-top: 24px;
}
.cs-table-row {
	display: grid;
	grid-template-columns: 1fr 1.4fr 1.6fr 44px;
	gap: 16px;
}
.cs-table-row--head {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-divider);
	font-family: 'Space Mono', monospace;
	font-size: 11px;
	letter-spacing: .5px;
	color: var(--faint);
	align-items: end;
}
.cs-table-mark {
	background: linear-gradient(transparent 55%, var(--lime) 55%);
	display: inline-block;
	padding: 0 4px;
	width: fit-content;
	color: var(--ink);
}
.cs-cmp {
	padding: 16px 12px;
	border-bottom: 1px solid var(--line-2);
	align-items: center;
	font-size: 13.5px;
	border-radius: 4px;
	transition: background .2s ease;
}
.cs-cmp:hover {
	background: var(--bg-hover);
}
.cs-table-key {
	font-weight: 700;
}
.cs-table-old {
	color: var(--text-soft);
}
.cs-table-new {
	color: var(--text-3);
}
.cs-table-tick {
	text-align: center;
}
.cs-table-tick .lime-check {
	width: 18px;
	height: 18px;
}

/* Prev / all / next strip + big next card ----------------------------------- */
.cs-nextstrip {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--bg-hover);
}
.cs-nextstrip-in {
	padding: 14px var(--gutter);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: 'Space Mono', monospace;
	font-size: 12px;
	letter-spacing: .5px;
}
.cs-nav-prev {
	color: #777;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.cs-nav-all {
	color: var(--red-2);
	text-decoration: none;
}
.cs-nav-next {
	color: var(--ink);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.cs-nav-prev:hover,
.cs-nav-next:hover,
.cs-nav-all:hover {
	text-decoration: underline;
}

.cs-nextcard-sec {
	border-bottom: 1px solid var(--line);
	background: var(--bg-hover);
}
.cs-cta {
	padding: 36px var(--gutter);
	display: flex;
	align-items: center;
	gap: 36px;
	text-decoration: none;
	color: var(--ink);
}
.cs-cta-scribble {
	flex: none;
	display: flex;
	align-items: center;
	gap: 18px;
}
.cs-cta-script {
	position: relative;
	z-index: 1;
	font-family: 'Caveat', cursive;
	font-size: 27px;
	font-weight: 700;
	line-height: 1.05;
	display: inline-block;
	white-space: nowrap;
	padding: 14px 22px;
}
.cs-cta-circle {
	position: absolute;
	top: -2px;
	left: -12px;
	pointer-events: none;
}
.cs-cta-body {
	flex: 1;
}
.cs-cta-name {
	font-family: 'Archivo Black', sans-serif;
	font-size: 30px;
	letter-spacing: -.5px;
}
.cs-cta-sub {
	font-family: 'Source Serif 4', serif;
	font-size: 16px;
	color: var(--text-2);
	margin-top: 6px;
}
.cs-cta-view {
	flex: none;
	font-family: 'Space Mono', monospace;
	font-size: 13px;
	letter-spacing: 1px;
	color: var(--ink);
}

/* Reduced motion ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.cs-qr,
	.cs-marching,
	.cs-scanline {
		animation: none;
	}
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 980px) {
	.cs-hero {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.cs-title {
		font-size: 64px;
	}
	.cs-trust,
	.cs-metrics {
		flex-wrap: wrap;
	}
	.cs-trust > .cs-div {
		display: none;
	}
	.cs-trust-lead,
	.cs-trust-col,
	.cs-metric {
		flex: 1 1 42%;
		padding: 0;
		margin-bottom: 18px;
	}
	.cs-main {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.cs-aside {
		border-left: 0;
		padding-left: 0;
		border-top: 1px solid var(--line);
		padding-top: 30px;
	}
	.cs-band-in {
		flex-direction: column;
		align-items: flex-start;
	}
	.cs-secnav-cta {
		display: none;
	}
	.cs-cta {
		flex-wrap: wrap;
		gap: 22px;
	}
}

@media (max-width: 600px) {
	.cs-facts {
		grid-template-columns: 1fr 1fr;
	}
	.cs-shots {
		grid-template-columns: 1fr;
	}
	.cs-table-row {
		grid-template-columns: 1fr;
		row-gap: 4px;
	}
	.cs-table-row--head {
		display: none;
	}
	.cs-secnav-links {
		display: none;
	}
	.cs-title {
		font-size: 48px;
	}
	.cs-band-h {
		font-size: 44px;
	}
}
