/* ==========================================================================
   EnFuse Case Studies — listing, category and single templates
   Everything is scoped to .cs-page so the rest of the site is unaffected.
   Loaded only on Case Studies screens (see inc/case-studies/setup.php).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
.cs-page {
	/* Neutrals — from the design reference */
	--cs-ink: #0F1626;
	--cs-ink-soft: #3A4256;
	--cs-muted: #5F6673;          /* reference #6B7280, darkened for 4.5:1 on paper */
	--cs-paper: #F3F4F7;
	--cs-surface: #FFFFFF;
	--cs-line: #E3E5EA;
	--cs-bullet: #C5CAD3;

	/* EnFuse brand — verified from the production stylesheet (assets/css/style.css) */
	--cs-brand: #01B4D5;          /* cyan: decorative accents, focus rings */
	--cs-brand-deep: #0779B7;     /* blue: buttons (white text 4.7:1) */
	--cs-brand-text: #0675B1;     /* blue: small text on paper/white (≥4.5:1) */
	--cs-brand-gradient: linear-gradient(90deg, #01B4D5 0%, #0779B7 100%);

	/* Category colours — reference palette (text-safe variants are computed in PHP) */
	--cs-cat-analytics: #2A5CFF;
	--cs-cat-aiml: #7B5CFF;
	--cs-cat-aem: #E8890C;
	--cs-cat-seo: #0E9F63;
	--cs-cat-proctoring: #E23A5A;
	--cs-cat-ecommerce: #0EA5A0;

	/* Current category (overridden inline per row / card / study) */
	--cs-cat: var(--cs-brand-deep);
	--cs-cat-text: var(--cs-brand-text);
	--cs-cat-deep: #03334D;

	/* Typography */
	--cs-font-display: 'Poppins', 'Segoe UI', Arial, sans-serif;   /* EnFuse brand heading face */
	--cs-font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
	--cs-font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

	/* Layout */
	--cs-max: 1240px;
	--cs-gutter: 32px;
	--cs-header-offset: 118px;   /* clears the fixed site header */
	--cs-section-gap: 56px;

	/* Shape */
	--cs-r-xl: 22px;   /* carousel, hero */
	--cs-r-lg: 20px;   /* CTA */
	--cs-r-md: 16px;   /* cards */
	--cs-r-sm: 11px;   /* pipeline nodes */
	--cs-r-pill: 100px;

	/* Elevation & motion */
	--cs-shadow-feature: 0 20px 50px -20px rgba(15, 22, 38, 0.35);
	--cs-shadow-hover: 0 16px 30px -18px rgba(15, 22, 38, 0.28);
	--cs-ease: 0.2s ease;
	--cs-slide-interval: 6s;
}

/* --------------------------------------------------------------------------
   2. Base (neutralises global theme rules inside the scope)
   -------------------------------------------------------------------------- */
.cs-page {
	float: left;
	width: 100%;
	padding: var(--cs-header-offset) 0 80px;
	color: var(--cs-ink);
	font-family: var(--cs-font-body);
	font-size: 16px;
	line-height: 1.5;
	letter-spacing: normal;
	-webkit-font-smoothing: antialiased;
}

.cs-page *,
.cs-page *::before,
.cs-page *::after { box-sizing: border-box; }

.cs-page h1, .cs-page h2, .cs-page h3, .cs-page h4, .cs-page h5 {
	margin: 0;
	font-family: var(--cs-font-display);
	color: inherit;
	letter-spacing: -0.01em;
	line-height: 1.25;
}
.cs-page p { margin: 0; }
.cs-page p strong, .cs-page strong { font-family: inherit; font-weight: 600; }
.cs-page ul, .cs-page ol { margin: 0; padding: 0; list-style: none; }
.cs-page li { margin: 0; padding: 0; line-height: inherit; }
.cs-page li::before { content: none; }
.cs-page a { color: inherit; text-decoration: none; transition: color var(--cs-ease); }
.cs-page a:hover, .cs-page a:focus { color: inherit; text-decoration: none; }
/* Links that sit on dark or brand backgrounds (must beat ".cs-page a"). */
.cs-page .cs-slide,
.cs-page a.cs-tag,
.cs-page a.cs-btn { color: #fff; }
.cs-page img { display: block; max-width: 100%; }
.cs-page button { font: inherit; cursor: pointer; }
.cs-page blockquote { margin: 0; padding: 0; border: 0; font-size: inherit; }
/* Parent theme: "header, section, footer { float: left; width: 100% }" */
.cs-page header,
.cs-page section,
.cs-page footer { float: none; width: auto; }

/* Focus — the parent theme removes outlines with !important, so restore them here. */
.cs-page a:focus-visible,
.cs-page button:focus-visible {
	outline: 3px solid var(--cs-brand) !important;
	outline-offset: 3px;
}

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

.cs-sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.cs-icon { flex: none; transition: transform var(--cs-ease); }

.cs-eyebrow {
	display: flex; align-items: center; gap: 10px;
	font-family: var(--cs-font-mono); font-size: 12px; font-weight: 500;
	text-transform: uppercase; letter-spacing: 0.14em; color: var(--cs-brand-text);
}
.cs-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.cs-eyebrow--cat::before { content: none; }
.cs-eyebrow--cat { color: var(--cs-cat-text); }

.cs-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--cs-cat); }

.cs-tag {
	display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
	padding: 6px 13px; border-radius: var(--cs-r-pill);
	background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff; font-size: 12px; font-weight: 600; line-height: 1.3;
}
.cs-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--cs-cat); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15); }
.cs-page a.cs-tag:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.cs-back {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 12px 0 20px; font-size: 13.5px; font-weight: 600; color: var(--cs-ink-soft);
}
.cs-page .cs-back:hover { color: var(--cs-ink); }
.cs-back:hover .cs-icon { transform: translateX(-3px); }

.cs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; border-radius: var(--cs-r-pill);
	background: var(--cs-brand-deep); color: #fff;
	font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
	transition: background-color var(--cs-ease), box-shadow var(--cs-ease);
}
.cs-page .cs-btn:hover, .cs-page .cs-btn:focus { color: #fff; background: #06659A; box-shadow: 0 10px 24px -12px rgba(7, 121, 183, 0.7); }
.cs-btn:hover .cs-icon { transform: translateX(3px); }

.cs-empty { padding: 40px 0; color: var(--cs-muted); }

/* --------------------------------------------------------------------------
   3. Page head
   -------------------------------------------------------------------------- */
.cs-head { padding: 24px 0 40px; }
.cs-head__title { margin: 14px 0 10px !important; font-size: 44px; font-weight: 600; color: var(--cs-ink); }
.cs-head__intro { max-width: 560px; color: var(--cs-muted); font-size: 16px; line-height: 1.55; }
.cs-head--category { padding-top: 8px; }

/* --------------------------------------------------------------------------
   4. Featured carousel
   -------------------------------------------------------------------------- */
.cs-featured { position: relative; margin-bottom: 64px; }
.cs-featured__track {
	display: grid; border-radius: var(--cs-r-xl); overflow: hidden;
	background: var(--cs-ink); box-shadow: var(--cs-shadow-feature);
	touch-action: pan-y;
}
.cs-slide {
	grid-area: 1 / 1; position: relative; display: block; color: #fff;
	opacity: 0; visibility: hidden;
	transition: opacity 0.55s ease, visibility 0s linear 0.55s;
}
.cs-slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.55s ease; z-index: 1; }
.cs-page .cs-slide:hover, .cs-page .cs-slide:focus { color: #fff; }
.cs-page .cs-slide:focus-visible { outline-offset: -6px; }

.cs-slide__media { position: relative; display: block; aspect-ratio: 1160 / 412; background: var(--cs-ink); overflow: hidden; }
.cs-slide__img { width: 100%; height: 100%; object-fit: cover; }

/* Slide whose artwork already contains the text: keep the HTML copy for
   assistive tech (visible below the image on small screens). */
.cs-slide--baked .cs-slide__copy {
	position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}

/* Slide composed in HTML over the image */
.cs-slide--composed .cs-slide__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(15, 22, 38, 0.94) 0%, rgba(15, 22, 38, 0.8) 42%, rgba(15, 22, 38, 0.15) 100%);
}
.cs-slide--composed.cs-slide--art .cs-slide__media {
	background: radial-gradient(circle at 80% 30%, var(--cs-cat-deep), var(--cs-ink) 70%);
}
.cs-slide--composed.cs-slide--art .cs-slide__media::after { content: none; }
.cs-slide--composed.cs-slide--art .cs-slide__img {
	position: absolute; right: 5%; top: 9%; width: 36%; height: 82%; object-fit: contain;
}
.cs-slide--composed .cs-slide__copy {
	position: absolute; inset: 0 auto 0 0; width: 60%; z-index: 2;
	display: flex; flex-direction: column; justify-content: center;
	padding: 48px 20px 64px 56px;
}
.cs-slide__copy .cs-tag { margin-bottom: 18px; }
.cs-slide__title { display: block; max-width: 520px; margin-bottom: 12px; font-family: var(--cs-font-display); font-size: 32px; font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; }
.cs-slide__summary { display: block; max-width: 460px; margin-bottom: 24px; color: rgba(255, 255, 255, 0.72); font-size: 14.5px; line-height: 1.5; }
.cs-slide__link {
	display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
	padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.45);
	font-size: 14.5px; font-weight: 600;
}
.cs-slide:hover .cs-slide__link { border-color: #fff; }
.cs-slide:hover .cs-slide__link .cs-icon { transform: translateX(3px); }

.cs-featured__controls {
	position: absolute; right: 22px; bottom: 16px; z-index: 3;
	display: flex; align-items: center; gap: 12px;
	padding: 6px; border-radius: var(--cs-r-pill);
	background: rgba(15, 22, 38, 0.6); /* keeps the white controls visible on light images */
}
.cs-featured__controls[hidden] { display: none; }
.cs-farrow {
	display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; padding: 0; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(15, 22, 38, 0.35); color: #fff;
	transition: background-color var(--cs-ease);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.cs-farrow:hover { background: rgba(255, 255, 255, 0.18); }
.cs-farrow--toggle .cs-icon--play { display: none; }
.cs-featured.is-stopped .cs-farrow--toggle .cs-icon--play { display: block; }
.cs-featured.is-stopped .cs-farrow--toggle .cs-icon--pause { display: none; }

.cs-fdots { display: flex; gap: 6px; }
.cs-fdot {
	position: relative; width: 26px; height: 24px; padding: 0; border: 0; background: none;
}
.cs-fdot::before, .cs-fdot span {
	content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px;
}
.cs-fdot::before { background: rgba(255, 255, 255, 0.4); }
.cs-fdot span { background: #fff; transform: scaleX(0); transform-origin: left; }
.cs-fdot.is-active span { animation: cs-fill var(--cs-slide-interval) linear forwards; }
/* Not rotating: show the active bar full, so the current slide is always marked. */
.cs-featured.is-paused .cs-fdot.is-active span,
.cs-featured.is-stopped .cs-fdot.is-active span,
.cs-featured:not(.is-ready) .cs-fdot.is-active span { animation: none; transform: scaleX(1); }
@keyframes cs-fill { to { transform: scaleX(1); } }

/* --------------------------------------------------------------------------
   5. Category rows & cards
   -------------------------------------------------------------------------- */
.cs-row { margin-bottom: 46px; }
.cs-row__head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin-bottom: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--cs-line);
}
.cs-row__title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cs-row__title h2 { font-size: 19px; font-weight: 600; color: var(--cs-ink); }
.cs-row__count { font-family: var(--cs-font-mono); font-size: 13px; color: var(--cs-muted); }
.cs-row__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.cs-row__scroll { display: flex; gap: 6px; }
.cs-row__scroll[hidden] { display: none; }
.cs-scroll-btn {
	display: flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; padding: 0; border-radius: 50%;
	border: 1px solid var(--cs-line); background: var(--cs-surface); color: var(--cs-ink-soft);
	transition: border-color var(--cs-ease), color var(--cs-ease), opacity var(--cs-ease);
}
.cs-scroll-btn:hover { border-color: var(--cs-ink-soft); color: var(--cs-ink); }
.cs-scroll-btn:disabled { opacity: 0.4; cursor: default; }
.cs-row__all { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--cs-ink-soft); }
.cs-page .cs-row__all:hover { color: var(--cs-ink); }
.cs-row__all:hover .cs-icon { transform: translateX(3px); }

.cs-track {
	display: flex; gap: 18px;
	margin: 0 -6px -18px; padding: 8px 6px 24px;
	overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 6px;
	-ms-overflow-style: none; scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.cs-track::-webkit-scrollbar { display: none; }
.cs-track__item { flex: 0 0 272px; display: flex; scroll-snap-align: start; }

.cs-card {
	display: flex; flex-direction: column; width: 100%;
	background: var(--cs-surface); border: 1px solid var(--cs-line); border-radius: var(--cs-r-md);
	overflow: hidden; color: var(--cs-ink);
	transition: transform var(--cs-ease), box-shadow var(--cs-ease);
}
.cs-page .cs-card:hover, .cs-page .cs-card:focus { color: var(--cs-ink); }
.cs-card:hover { transform: translateY(-4px); box-shadow: var(--cs-shadow-hover); }

.cs-card__art { position: relative; display: block; height: 132px; overflow: hidden; background: var(--cs-cat-deep); }
.cs-card__img { width: 100%; height: 100%; object-fit: cover; }
.cs-card__art--contain {
	background: #EEF1F6;
	background: linear-gradient(135deg, color-mix(in srgb, var(--cs-cat) 13%, #fff), color-mix(in srgb, var(--cs-cat) 4%, #fff));
}
.cs-card__art--contain .cs-card__img { padding: 10px 16px; object-fit: contain; }

.cs-card__body { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 18px 18px 20px; }
.cs-card__cat { font-family: var(--cs-font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--cs-cat-text); }
.cs-page .cs-card__title { font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--cs-ink); }
.cs-card__summary { flex: 1; font-size: 13px; line-height: 1.45; color: var(--cs-muted); }
.cs-card__read { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--cs-cat-text); }
.cs-card:hover .cs-card__read .cs-icon { transform: translateX(3px); }

.cs-card--service {
	align-items: center; justify-content: center; gap: 10px; padding: 24px 20px; min-height: 260px;
	background: transparent; border: 1.5px dashed #CDD1D9; text-align: center;
}
.cs-card--service:hover { transform: none; box-shadow: none; border-color: var(--cs-cat); }
.cs-card--service__title { font-family: var(--cs-font-display); font-size: 14.5px; font-weight: 600; color: var(--cs-ink-soft); line-height: 1.35; }
.cs-card--service__link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--cs-cat-text); }

.cs-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px;
	margin-bottom: 56px;
}
.cs-grid > li { display: flex; }
.cs-pagination { margin: -24px 0 48px; }
.cs-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--cs-line); border-radius: 8px; background: var(--cs-surface); font-size: 14px; }
.cs-pagination .page-numbers.current { background: var(--cs-ink); color: #fff; border-color: var(--cs-ink); }

/* --------------------------------------------------------------------------
   6. Single: hero
   -------------------------------------------------------------------------- */
.cs-hero {
	position: relative; margin-bottom: 48px; border-radius: var(--cs-r-xl); overflow: hidden;
	background: var(--cs-ink); color: #fff;
}
.cs-hero__media { position: relative; aspect-ratio: 1160 / 412; background: var(--cs-ink); }
.cs-hero__img { width: 100%; height: 100%; object-fit: cover; }

.cs-hero__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.cs-hero__text .cs-tag { margin-bottom: 18px; }
.cs-page .cs-hero__title { margin-bottom: 14px; font-size: 36px; font-weight: 600; line-height: 1.2; color: #fff; }
.cs-hero__lede { max-width: 640px; color: rgba(255, 255, 255, 0.74); font-size: 15.5px; line-height: 1.6; }

.cs-meta { display: flex; flex-wrap: wrap; gap: 18px 34px; margin: 28px 0 0; }
.cs-meta__item { min-width: 0; }
.cs-meta dt { font-family: var(--cs-font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.58); }
.cs-meta dd { margin: 5px 0 0; font-size: 14px; font-weight: 600; color: #fff; }

/* Banner mode: artwork contains the text */
.cs-hero--banner .cs-hero__text {
	position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}

/* Photo mode: HTML text over the image */
.cs-hero--photo .cs-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(15, 22, 38, 0.94) 0%, rgba(15, 22, 38, 0.78) 45%, rgba(15, 22, 38, 0.1) 100%);
}
.cs-hero--photo .cs-hero__text {
	position: absolute; inset: 0 auto 0 0; width: 64%; justify-content: center; padding: 44px 24px 44px 56px;
}

/* Illustration mode (existing artwork) and plain mode */
.cs-hero--illustration,
.cs-hero--plain {
	display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 40px; align-items: center;
	padding: 52px 56px;
	background:
		radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--cs-cat) 38%, transparent), transparent 52%),
		radial-gradient(circle at 0% 100%, rgba(1, 180, 213, 0.16), transparent 45%),
		var(--cs-ink);
}
.cs-hero--plain { grid-template-columns: minmax(0, 1fr); }
.cs-hero--plain .cs-hero__text { max-width: 720px; }
.cs-hero__art {
	display: flex; align-items: center; justify-content: center;
	padding: 18px; border-radius: var(--cs-r-md);
	background: linear-gradient(160deg, #FFFFFF, #E9F6FA);
	box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6);
}
.cs-hero__art-img { width: 100%; max-height: 300px; object-fit: contain; }

/* --------------------------------------------------------------------------
   7. Single: sections
   -------------------------------------------------------------------------- */
.cs-section { margin-bottom: var(--cs-section-gap); }
.cs-section__head { margin-bottom: 26px; }
.cs-section__head .cs-eyebrow { margin-bottom: 10px; }
.cs-section__head h2 { font-size: 25px; font-weight: 600; color: var(--cs-ink); }
.cs-section__intro { max-width: 760px; margin-top: 10px; color: var(--cs-muted); font-size: 15px; line-height: 1.6; }
.cs-section__intro p + p { margin-top: 10px; }

.cs-prose { max-width: 820px; color: var(--cs-ink-soft); font-size: 16px; line-height: 1.7; }
.cs-prose > * + * { margin-top: 14px; }
.cs-prose ul li { position: relative; padding-left: 18px; }
.cs-prose ul li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--cs-cat); }
.cs-prose a { color: var(--cs-brand-text); text-decoration: underline; }

/* Pipeline */
.cs-pipeline { position: relative; padding-top: 8px; }
.cs-pipeline__line {
	position: absolute; top: 27px; left: 19px; height: 2px;
	right: calc((100% - (var(--cs-cols) - 1) * 14px) / var(--cs-cols) - 19px);
	background: repeating-linear-gradient(90deg, var(--cs-cat) 0 8px, transparent 8px 14px);
	opacity: 0.55;
}
.cs-pipeline--wrap .cs-pipeline__line,
.cs-pipeline--single .cs-pipeline__line { display: none; }
.cs-pipeline__steps {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: repeat(var(--cs-cols), minmax(0, 1fr)); gap: 28px 14px;
}
.cs-pipeline--single .cs-pipeline__steps { grid-template-columns: minmax(0, 420px); }
.cs-step { display: flex; flex-direction: column; align-items: flex-start; }
.cs-step__node {
	display: flex; align-items: center; justify-content: center; flex: none;
	width: 38px; height: 38px; margin-bottom: 16px; border-radius: var(--cs-r-sm);
	background: var(--cs-surface); border: 1.5px solid var(--cs-cat); color: var(--cs-cat-text);
	font-family: var(--cs-font-mono); font-size: 12.5px; font-weight: 600;
}
.cs-page .cs-step__title { margin-bottom: 8px; font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--cs-ink); padding-right: 8px; }
.cs-step__text { padding-right: 8px; color: var(--cs-muted); font-size: 13px; line-height: 1.55; }

/* Challenges / solutions / benefits */
.cs-csb__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.cs-csb__grid--one { grid-template-columns: minmax(0, 760px); }
.cs-csb__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-csb__grid--wide { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.6fr) minmax(0, 0.72fr); }
.cs-csb__grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cs-csb__grid--wide .cs-csb-card--groups .cs-csb-card__groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cs-csb-card { height: 100%; padding: 26px 24px; border-radius: var(--cs-r-md); background: var(--cs-surface); border: 1px solid var(--cs-line); }
.cs-page .cs-csb-card__title { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; font-size: 15px; font-weight: 600; color: var(--cs-ink); }
.cs-csb-card__title i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--cs-col); }
.cs-csb-card__sub { margin: -6px 0 14px !important; font-size: 14px; font-weight: 600; color: var(--cs-ink); }

.cs-list { display: flex; flex-direction: column; gap: 16px; }
.cs-list > li,
.cs-csb-card__rich li {
	position: relative; padding-left: 16px;
	font-size: 13.5px; line-height: 1.55; color: var(--cs-ink-soft);
}
.cs-list > li::before,
.cs-csb-card__rich li::before {
	content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--cs-bullet);
}
.cs-list > li strong { display: block; margin-bottom: 3px; color: var(--cs-ink); }
.cs-list--compact { gap: 11px; }
.cs-list--compact > li { padding-left: 14px; font-size: 13px; line-height: 1.5; }
.cs-list--compact > li::before { top: 6px; width: 4px; height: 4px; }

.cs-csb-card__groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 2px; }
.cs-page .cs-csb-group h4 {
	margin-bottom: 12px; font-family: var(--cs-font-mono); font-size: 12.5px; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.04em; color: var(--cs-ink-soft);
}

/* Existing WYSIWYG content inside a card */
.cs-csb-card__rich { font-size: 13.5px; line-height: 1.55; color: var(--cs-ink-soft); }
.cs-csb-card__rich ul { display: flex; flex-direction: column; gap: 12px; }
.cs-csb-card__rich ul + strong, .cs-csb-card__rich ul + p, .cs-csb-card__rich p + ul { margin-top: 16px; }
.cs-csb-card__rich strong, .cs-csb-card__rich b { display: block; margin-bottom: 10px; color: var(--cs-ink); }
.cs-csb-card__rich li strong, .cs-csb-card__rich li b { display: inline; margin: 0; }
.cs-csb-card__rich p { margin: 0 0 10px; }
.cs-csb-card__rich p:empty { display: none; }
.cs-csb-card__rich h3, .cs-csb-card__rich h4 { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--cs-ink); }

/* Testimonials */
.cs-quotes__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cs-quote { display: flex; flex-direction: column; gap: 18px; height: 100%; margin: 0; padding: 26px 24px; border-radius: var(--cs-r-md); background: var(--cs-surface); border: 1px solid var(--cs-line); }
.cs-quote blockquote { position: relative; padding-top: 22px; flex: 1; }
.cs-quote blockquote::before { content: "\201C"; position: absolute; top: -8px; left: -2px; font-family: var(--cs-font-display); font-size: 44px; line-height: 1; color: var(--cs-cat); }
.cs-quote blockquote p { font-size: 14px; line-height: 1.6; color: var(--cs-ink-soft); }
.cs-quote figcaption strong { display: block; font-size: 14px; color: var(--cs-ink); }
.cs-quote figcaption span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--cs-muted); }

/* --------------------------------------------------------------------------
   8. CTA
   -------------------------------------------------------------------------- */
.cs-cta {
	position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
	margin-top: 8px; padding: 44px; overflow: hidden;
	background: var(--cs-surface); border: 1px solid var(--cs-line); border-radius: var(--cs-r-lg);
}
.cs-cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cs-brand-gradient); }
.cs-page .cs-cta__title { margin-bottom: 6px; font-size: 21px; font-weight: 600; color: var(--cs-ink); }
.cs-cta__copy p { max-width: 460px; color: var(--cs-muted); font-size: 14.5px; line-height: 1.55; }

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
	.cs-page { --cs-header-offset: 108px; }
}

@media (max-width: 1024px) {
	.cs-csb__grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cs-slide__title { font-size: 28px; }
	.cs-hero--photo .cs-hero__text { width: 75%; }
	.cs-page .cs-hero__title { font-size: 32px; }
}

@media (max-width: 991px) {
	.cs-page { --cs-header-offset: 84px; }
}

@media (max-width: 900px) {
	.cs-pipeline__line { display: none; }
	.cs-pipeline__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
}

@media (max-width: 860px) {
	.cs-csb__grid,
	.cs-csb__grid--two,
	.cs-csb__grid--wide { grid-template-columns: minmax(0, 1fr); }
	.cs-csb__grid--wide .cs-csb-card--groups .cs-csb-card__groups { grid-template-columns: minmax(0, 1fr); }
	.cs-hero--illustration { grid-template-columns: minmax(0, 1fr); padding: 40px 36px; gap: 28px; }
	.cs-hero__art { max-width: 420px; }
}

/* Carousel & hero: image above, text below on small screens */
@media (max-width: 760px) {
	.cs-featured { margin-bottom: 48px; }
	.cs-featured__track { border-radius: 18px; }
	.cs-slide { display: flex; flex-direction: column; background: var(--cs-ink); }
	.cs-slide--baked .cs-slide__copy,
	.cs-slide--composed .cs-slide__copy {
		position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
		display: flex; flex-direction: column; flex: 1; padding: 22px 22px 70px;
	}
	.cs-slide--composed .cs-slide__media { aspect-ratio: 16 / 9; }
	.cs-slide--composed .cs-slide__media::after { background: linear-gradient(0deg, rgba(15, 22, 38, 0.65), rgba(15, 22, 38, 0) 60%); }
	.cs-slide--composed.cs-slide--art .cs-slide__img { right: 10%; left: 10%; width: 80%; }
	.cs-slide__copy .cs-tag { margin-bottom: 12px; }
	.cs-slide__title { font-size: 21px; margin-bottom: 8px; }
	.cs-slide__summary { margin-bottom: 16px; font-size: 14px; }
	.cs-slide--baked .cs-slide__summary { display: none; }
	.cs-featured__controls { left: 22px; right: 22px; bottom: 18px; justify-content: flex-start; padding: 0; background: none; }
	.cs-featured__controls .cs-fdots { margin-right: auto; order: -1; }

	.cs-hero { border-radius: 18px; }
	.cs-hero--banner .cs-hero__text,
	.cs-hero--photo .cs-hero__text {
		position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
		padding: 26px 24px 30px;
	}
	.cs-hero--photo .cs-hero__media { aspect-ratio: 16 / 9; }
	.cs-hero--photo .cs-hero__media::after { background: linear-gradient(0deg, rgba(15, 22, 38, 0.7), rgba(15, 22, 38, 0) 60%); }
	.cs-meta { gap: 14px 26px; margin-top: 22px; }
}

@media (max-width: 640px) {
	.cs-page { --cs-gutter: 20px; --cs-section-gap: 44px; padding-bottom: 56px; }
	.cs-head { padding: 28px 0 30px; }
	.cs-head__title { font-size: 32px; }
	.cs-page .cs-hero__title { font-size: 26px; }
	.cs-hero--illustration, .cs-hero--plain { padding: 30px 24px; }
	.cs-section__head h2 { font-size: 22px; }
	.cs-csb__grid--four { grid-template-columns: minmax(0, 1fr); }
	.cs-row__head { align-items: flex-start; }
	.cs-row__scroll { display: none !important; }
	.cs-track__item { flex-basis: 252px; }
	.cs-cta { padding: 30px 24px 30px 28px; }
	.cs-cta .cs-btn { width: 100%; }
}

@media (max-width: 560px) {
	/* Vertical timeline */
	.cs-pipeline { padding-top: 0; }
	.cs-pipeline:not(.cs-pipeline--single) .cs-pipeline__line {
		display: block; top: 19px; bottom: 30px; left: 18px; right: auto; width: 2px; height: auto;
		background: repeating-linear-gradient(180deg, var(--cs-cat) 0 8px, transparent 8px 14px);
	}
	.cs-pipeline__steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.cs-step { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 16px; align-items: start; }
	.cs-step__node { grid-row: 1 / span 2; margin-bottom: 0; }
	.cs-page .cs-step__title { margin: 8px 0 6px; }
}

@media (max-width: 360px) {
	.cs-page { --cs-gutter: 16px; }
	.cs-track__item { flex-basis: 236px; }
	.cs-meta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.cs-page *,
	.cs-page *::before,
	.cs-page *::after { transition-duration: 0.01ms !important; animation: none !important; }
	.cs-card:hover { transform: none; }
	.cs-fdot.is-active span { transform: scaleX(1); }
}

@media (forced-colors: active) {
	.cs-card, .cs-csb-card, .cs-cta, .cs-quote { border: 1px solid CanvasText; }
	.cs-fdot::before { background: CanvasText; }
	.cs-fdot.is-active span { background: Highlight; }
}