/* ============================================================
 * meridian — schematic visual design system
 * ============================================================
 *
 * Layered on top of core.css. Every selector is scoped under
 * `.cw-section-driven` (the body class added on pages that render
 * via the CW Fields SectionRenderer) so the legacy section styles
 * in core.css remain intact for pages that haven't migrated.
 *
 * Design language: precision instrument. Schematic / blueprint
 * aesthetic with line-art icons, outlined numerals as nodes on
 * vertical rails, dot-grid card backgrounds, custom check/quote
 * glyphs in place of emoji, scroll-triggered stroke draws.
 *
 * Token sources from core.css :root —
 *   --cw-deep-green   #1A2E28    --cw-emerald      #4CAF82
 *   --cw-bright-green #5CDB95    --cw-muted        #4B5E56
 *   --cw-border       #DDE3DF    --cw-white        #FFFFFF
 *   --cw-font-heading 'Inter'    --cw-font-body    'Source Serif 4'
 *
 * Naming: BEM-ish on new blocks; legacy class names (.cw-process-step,
 * .cw-feature-card, etc.) preserved on the partials for cohesion with
 * any global styles that still use them.
 * ============================================================ */

/* ─────────────────────────────────────────────────────────────
 *  Tokens (additive — only new values, not overriding core)
 * ───────────────────────────────────────────────────────────── */

.cw-section-driven {
	--m-emerald-rgb: 76, 175, 130;
	--m-bright-rgb: 92, 219, 149;
	--m-deep-rgb: 26, 46, 40;
	--m-grid-cell: 16px;
	--m-rail-w: 2px;
	--m-rail-color: var(--cw-emerald);
	--m-node-size: 14px;
	--m-radius-card: 16px;
	--m-radius-tile: 12px;
	--m-bracket-len: 10px;
	--m-bracket-inset: -3px;
	--m-anim-fast: 0.35s;
	--m-anim-slow: 1.4s;
	--m-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--m-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ─────────────────────────────────────────────────────────────
 *  1. Section eyebrow — mono caps with leading bracket marker
 * ───────────────────────────────────────────────────────────── */

.cw-section-driven .cw-section-label {
	display: inline-block;
	font-family: var(--m-mono);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--cw-emerald);
	padding-left: 28px;
	margin: 0 0 0.85rem;
	position: relative;
}
.cw-section-driven .cw-section-label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 18px;
	height: 1px;
	background: currentColor;
	transform: translateY(-0.5px);
}
.cw-section-driven .cw-section-dark .cw-section-label,
.cw-section-driven .cw-section-gradient .cw-section-label {
	color: var(--cw-bright-green);
}

/* ─────────────────────────────────────────────────────────────
 *  2. Icon — base SVG sizing
 * ───────────────────────────────────────────────────────────── */

.cw-section-driven .cw-icon {
	display: inline-block;
	width: 28px;
	height: 28px;
	stroke-width: 1.5;
	stroke: currentColor;
	fill: none;
	vertical-align: middle;
	transition: transform var(--m-anim-fast) var(--m-ease);
}

/* ─────────────────────────────────────────────────────────────
 *  3. Icon frame — square tinted tile with bracket corners
 * ───────────────────────────────────────────────────────────── */

.cw-section-driven .cw-icon-frame {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 0 1.25rem;
	border-radius: var(--m-radius-tile);
	color: var(--cw-emerald);
	background:
		linear-gradient(135deg,
			rgba(var(--m-emerald-rgb), 0.10) 0%,
			rgba(var(--m-bright-rgb), 0.04) 100%);
	transition:
		transform var(--m-anim-fast) var(--m-ease),
		color var(--m-anim-fast) var(--m-ease);
}
.cw-section-driven .cw-icon-frame::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 1px solid rgba(var(--m-emerald-rgb), 0.22);
	pointer-events: none;
}
/* Bracket corner pseudo — uses 4 backgrounds layered on a single ::after */
.cw-section-driven .cw-icon-frame::after {
	content: "";
	position: absolute;
	inset: var(--m-bracket-inset);
	pointer-events: none;
	background-repeat: no-repeat;
	background-image:
		linear-gradient(to right,  var(--cw-emerald) var(--m-bracket-len), transparent var(--m-bracket-len)),
		linear-gradient(to bottom, var(--cw-emerald) var(--m-bracket-len), transparent var(--m-bracket-len)),
		linear-gradient(to left,   var(--cw-emerald) var(--m-bracket-len), transparent var(--m-bracket-len)),
		linear-gradient(to top,    var(--cw-emerald) var(--m-bracket-len), transparent var(--m-bracket-len));
	background-size:
		100% 1px,
		1px 100%,
		100% 1px,
		1px 100%;
	background-position:
		0 0,
		0 0,
		100% 100%,
		100% 100%;
	opacity: 0;
	transition: opacity var(--m-anim-fast) var(--m-ease);
}

/* On dark sections: brighter tile + brighter brackets */
.cw-section-driven .cw-section-dark .cw-icon-frame,
.cw-section-driven .cw-section-gradient .cw-icon-frame {
	color: var(--cw-bright-green);
	background:
		linear-gradient(135deg,
			rgba(var(--m-bright-rgb), 0.16) 0%,
			rgba(var(--m-emerald-rgb), 0.06) 100%);
}
.cw-section-driven .cw-section-dark .cw-icon-frame::before,
.cw-section-driven .cw-section-gradient .cw-icon-frame::before {
	border-color: rgba(var(--m-bright-rgb), 0.30);
}
.cw-section-driven .cw-section-dark .cw-icon-frame::after,
.cw-section-driven .cw-section-gradient .cw-icon-frame::after {
	background-image:
		linear-gradient(to right,  var(--cw-bright-green) var(--m-bracket-len), transparent var(--m-bracket-len)),
		linear-gradient(to bottom, var(--cw-bright-green) var(--m-bracket-len), transparent var(--m-bracket-len)),
		linear-gradient(to left,   var(--cw-bright-green) var(--m-bracket-len), transparent var(--m-bracket-len)),
		linear-gradient(to top,    var(--cw-bright-green) var(--m-bracket-len), transparent var(--m-bracket-len));
}

/* ─────────────────────────────────────────────────────────────
 *  4. Feature grid — cards with subtle dot-grid pattern
 * ───────────────────────────────────────────────────────────── */

.cw-section-driven .cw-feature-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(var(--m-cols, 3), minmax(0, 1fr));
	margin: 2rem auto 0;
}

.cw-section-driven .cw-feature-card {
	position: relative;
	background: var(--cw-white);
	border: 1px solid var(--cw-border);
	border-radius: var(--m-radius-card);
	padding: 2rem 1.75rem 1.75rem;
	overflow: hidden;
	transition:
		transform var(--m-anim-fast) var(--m-ease),
		border-color var(--m-anim-fast) var(--m-ease),
		box-shadow var(--m-anim-fast) var(--m-ease);
}
.cw-section-driven .cw-feature-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle, rgba(var(--m-emerald-rgb), 0.12) 1px, transparent 1.2px);
	background-size: var(--m-grid-cell) var(--m-grid-cell);
	opacity: 0;
	transition: opacity 0.5s var(--m-ease);
	pointer-events: none;
}
.cw-section-driven .cw-feature-card:hover {
	transform: translateY(-4px);
	border-color: rgba(var(--m-emerald-rgb), 0.40);
	box-shadow: 0 12px 32px rgba(var(--m-deep-rgb), 0.08);
}
.cw-section-driven .cw-feature-card:hover::before { opacity: 1; }
.cw-section-driven .cw-feature-card:hover .cw-icon-frame::after { opacity: 0.5; }
.cw-section-driven .cw-feature-card:hover .cw-icon { transform: scale(1.08) rotate(-3deg); }

.cw-section-driven .cw-feature-card[data-index]::after {
	content: attr(data-index);
	position: absolute;
	top: 1rem;
	right: 1.25rem;
	font-family: var(--m-mono);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	color: rgba(var(--m-deep-rgb), 0.32);
	font-weight: 600;
}

.cw-section-driven .cw-feature-card h3 {
	font-family: var(--cw-font-heading);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	margin: 0 0 0.5rem;
	color: var(--cw-deep-green);
}
.cw-section-driven .cw-feature-card p {
	font-family: var(--cw-font-body);
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--cw-muted);
	margin: 0;
}

/* Suppress legacy emoji icon container if empty (replaced by icon-frame) */
.cw-section-driven .cw-feature-card .cw-feature-icon:empty { display: none; }

/* Dark variant */
.cw-section-driven .cw-section-dark .cw-feature-card,
.cw-section-driven .cw-section-gradient .cw-feature-card {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
}
.cw-section-driven .cw-section-dark .cw-feature-card h3,
.cw-section-driven .cw-section-gradient .cw-feature-card h3 {
	color: var(--cw-white);
}
.cw-section-driven .cw-section-dark .cw-feature-card p,
.cw-section-driven .cw-section-gradient .cw-feature-card p {
	color: rgba(232, 240, 236, 0.78);
}
.cw-section-driven .cw-section-dark .cw-feature-card::before,
.cw-section-driven .cw-section-gradient .cw-feature-card::before {
	background-image:
		radial-gradient(circle, rgba(var(--m-bright-rgb), 0.16) 1px, transparent 1.2px);
}
.cw-section-driven .cw-section-dark .cw-feature-card:hover,
.cw-section-driven .cw-section-gradient .cw-feature-card:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(var(--m-bright-rgb), 0.35);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.20);
}
.cw-section-driven .cw-section-dark .cw-feature-card[data-index]::after,
.cw-section-driven .cw-section-gradient .cw-feature-card[data-index]::after {
	color: rgba(var(--m-bright-rgb), 0.45);
}

/* ─────────────────────────────────────────────────────────────
 *  5. Numbered process — schematic vertical rail + outlined numerals
 * ───────────────────────────────────────────────────────────── */

.cw-section-driven .cw-process-timeline {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 3rem auto 0;
	max-width: 920px;
}

/* Vertical rail sits in the gutter between the numeral column (162px)
 * and the content column (gap: 2rem = 32px). Centered in the gutter at
 * 162 + 16 = 178px. */
.cw-section-driven .cw-process-timeline::before {
	content: "";
	position: absolute;
	left: 178px;
	top: 28px;
	bottom: 28px;
	width: var(--m-rail-w);
	background:
		linear-gradient(to bottom,
			rgba(var(--m-emerald-rgb), 0)    0%,
			rgba(var(--m-emerald-rgb), 0.85) 8%,
			rgba(var(--m-emerald-rgb), 0.85) 92%,
			rgba(var(--m-emerald-rgb), 0)    100%);
	transform-origin: top center;
	transform: scaleY(0);
	transition: transform var(--m-anim-slow) var(--m-ease);
	z-index: 0;
}
.cw-section-driven .cw-process-timeline.is-in-view::before { transform: scaleY(1); }

/* Suppress any legacy horizontal connector glow */
.cw-section-driven .cw-process-timeline::after { display: none; }

/* Override the legacy reveal hook (opacity:0 + transform:translateY)
 * that core.min.css applies. meridian.js owns scroll-reveal via
 * .is-in-view on the parent timeline. */
.cw-section-driven .cw-process-step {
	position: relative;
	display: grid;
	grid-template-columns: 162px minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
	padding: 1.5rem 0 2.5rem;
	background: transparent;
	border: none;
	z-index: 1;
	opacity: 1;
	transform: none;
	text-align: left;
}
.cw-section-driven .cw-process-step__content {
	min-width: 0;
}
.cw-section-driven .cw-timeline-item,
.cw-section-driven .cw-feature-card,
.cw-section-driven .cw-testimonial-card,
.cw-section-driven .cw-stats-row,
.cw-section-driven .cw-compare-col,
.cw-section-driven .cw-fit-col {
	opacity: 1;
	transform: none;
}
.cw-section-driven .cw-process-step:last-child { padding-bottom: 0; }

/* Annotation-style numeral — solid mono text with measurement bracket
 * corners. Reads like a CAD coordinate label, not a button. */
.cw-section-driven .cw-process-number {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: flex-end;
	width: 162px !important;
	height: auto !important;
	margin: 0 !important;
	padding: 14px 32px 14px 0 !important;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace !important;
	font-size: clamp(2.25rem, 4.2vw, 3.25rem) !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: -0.02em;
	text-align: right;
	color: var(--cw-emerald) !important;
	background: transparent !important;
	background-image: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transition: color var(--m-anim-fast) var(--m-ease);
}
/* No bracket pseudo-elements — the rail + node already give schematic feel.
 * Hide any legacy ::before / ::after on the number that core might add. */
.cw-section-driven .cw-process-number::before,
.cw-section-driven .cw-process-number::after {
	content: none;
	display: none;
}
.cw-section-driven .cw-process-step:hover .cw-process-number {
	color: var(--cw-bright-green);
}
.cw-section-driven .cw-process-step:hover .cw-process-number::before,
.cw-section-driven .cw-process-step:hover .cw-process-number::after {
	border-color: var(--cw-bright-green);
}
.cw-section-driven .cw-section-dark .cw-process-number,
.cw-section-driven .cw-section-gradient .cw-process-number {
	color: var(--cw-bright-green);
	background: transparent;
	border: none;
	box-shadow: none;
}
.cw-section-driven .cw-section-dark .cw-process-number::before,
.cw-section-driven .cw-section-dark .cw-process-number::after,
.cw-section-driven .cw-section-gradient .cw-process-number::before,
.cw-section-driven .cw-section-gradient .cw-process-number::after {
	border-color: var(--cw-bright-green);
}

/* Connector node centered on the rail (rail at left=178, node 14px wide
 * → node left = 178 - 6 = 172 to keep its center on the rail) */
.cw-section-driven .cw-process-step::before {
	content: "";
	position: absolute;
	left: 172px;
	top: 38px;
	width: var(--m-node-size);
	height: var(--m-node-size);
	background: var(--cw-white);
	border: 2px solid var(--cw-emerald);
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(var(--m-emerald-rgb), 0.12);
	transform: scale(0);
	transition: transform 0.5s var(--m-ease);
	transition-delay: calc(var(--cw-step-i, 0) * 0.12s);
	z-index: 2;
}
.cw-section-driven .cw-process-timeline.is-in-view .cw-process-step::before { transform: scale(1); }
.cw-section-driven .cw-section-dark .cw-process-step::before,
.cw-section-driven .cw-section-gradient .cw-process-step::before {
	background: var(--cw-deep-green);
	border-color: var(--cw-bright-green);
	box-shadow: 0 0 0 4px rgba(var(--m-bright-rgb), 0.20);
}

.cw-section-driven .cw-process-step h3 {
	font-family: var(--cw-font-heading);
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin: 0.5rem 0 0.5rem;
	color: var(--cw-deep-green);
}
.cw-section-driven .cw-section-dark .cw-process-step h3,
.cw-section-driven .cw-section-gradient .cw-process-step h3 {
	color: var(--cw-white);
}
.cw-section-driven .cw-process-step p {
	font-family: var(--cw-font-body);
	font-size: 1rem;
	line-height: 1.75;
	color: var(--cw-muted);
	margin: 0;
}
.cw-section-driven .cw-section-dark .cw-process-step p,
.cw-section-driven .cw-section-gradient .cw-process-step p {
	color: rgba(232, 240, 236, 0.85);
}

/* Insight callout below process */
.cw-section-driven .gsd-insight-box {
	margin: 3rem auto 0;
	max-width: 820px;
	padding: 1.5rem 1.75rem;
	border-left: 3px solid var(--cw-emerald);
	background:
		linear-gradient(to right,
			rgba(var(--m-emerald-rgb), 0.06),
			rgba(var(--m-emerald-rgb), 0));
	border-radius: 0 8px 8px 0;
	font-family: var(--cw-font-body);
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--cw-deep-green);
}
.cw-section-driven .gsd-insight-box strong { color: var(--cw-emerald); font-weight: 700; }
.cw-section-driven .gsd-insight-box p { margin: 0; }
.cw-section-driven .cw-section-dark .gsd-insight-box,
.cw-section-driven .cw-section-gradient .gsd-insight-box {
	color: rgba(232, 240, 236, 0.92);
	border-left-color: var(--cw-bright-green);
	background:
		linear-gradient(to right,
			rgba(var(--m-bright-rgb), 0.10),
			rgba(var(--m-bright-rgb), 0));
}
.cw-section-driven .cw-section-dark .gsd-insight-box strong,
.cw-section-driven .cw-section-gradient .gsd-insight-box strong {
	color: var(--cw-bright-green);
}

/* ─────────────────────────────────────────────────────────────
 *  6. Career timeline — vertical rail with diamond nodes
 * ───────────────────────────────────────────────────────────── */

.cw-section-driven .cw-timeline {
	position: relative;
	max-width: 720px;
	margin: 2rem auto 0;
	padding-left: 56px;
}
.cw-section-driven .cw-timeline::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 14px;
	bottom: 14px;
	width: var(--m-rail-w);
	background:
		linear-gradient(to bottom,
			rgba(var(--m-emerald-rgb), 0) 0%,
			rgba(var(--m-emerald-rgb), 0.45) 8%,
			rgba(var(--m-emerald-rgb), 0.45) 92%,
			rgba(var(--m-emerald-rgb), 0) 100%);
	transform-origin: top center;
	transform: scaleY(0);
	transition: transform var(--m-anim-slow) var(--m-ease);
}
.cw-section-driven .cw-timeline.is-in-view::before { transform: scaleY(1); }

.cw-section-driven .cw-timeline-item {
	position: relative;
	padding: 0 0 2rem 0;
	border: none;
	margin: 0;
}
.cw-section-driven .cw-timeline-item:last-child { padding-bottom: 0; }
.cw-section-driven .cw-timeline-item::before {
	content: "";
	position: absolute;
	left: -50px;
	top: 8px;
	width: var(--m-node-size);
	height: var(--m-node-size);
	background: var(--cw-white);
	border: 2px solid var(--cw-emerald);
	box-shadow: 0 0 0 4px rgba(var(--m-emerald-rgb), 0.10);
	transform: rotate(45deg) scale(0);
	transition: transform 0.5s var(--m-ease);
	transition-delay: calc(var(--cw-step-i, 0) * 0.12s);
	z-index: 1;
}
.cw-section-driven .cw-timeline.is-in-view .cw-timeline-item::before {
	transform: rotate(45deg) scale(1);
}

.cw-section-driven .cw-timeline-title {
	font-family: var(--cw-font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin-bottom: 0.35rem;
	color: var(--cw-deep-green);
}

/* Date range — mono pill label */
.cw-section-driven .cw-timeline-role {
	display: inline-block;
	font-family: var(--m-mono);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cw-emerald);
	background: rgba(var(--m-emerald-rgb), 0.08);
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	margin-bottom: 0.75rem;
}

.cw-section-driven .cw-timeline-item p {
	font-family: var(--cw-font-body);
	font-size: 0.96rem;
	line-height: 1.7;
	color: var(--cw-muted);
	margin: 0;
}

/* ─────────────────────────────────────────────────────────────
 *  7. Comparison table — emerald glow on highlight + custom marks
 * ───────────────────────────────────────────────────────────── */

.cw-section-driven .cw-comparison-table {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	max-width: 1100px;
	margin: 2rem auto 0;
}

.cw-section-driven .cw-compare-col {
	position: relative;
	background: var(--cw-white);
	border: 1px solid var(--cw-border);
	border-radius: var(--m-radius-card);
	padding: 2rem 1.75rem;
	overflow: hidden;
	transition:
		transform var(--m-anim-fast) var(--m-ease),
		box-shadow var(--m-anim-fast) var(--m-ease);
}
.cw-section-driven .cw-compare-col:hover { transform: translateY(-4px); }

.cw-section-driven .cw-compare-col h3 {
	font-family: var(--cw-font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 0.4rem;
	color: var(--cw-deep-green);
}

.cw-section-driven .cw-compare-price {
	font-family: var(--cw-font-heading);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--cw-deep-green);
	margin-bottom: 1.25rem;
}

.cw-section-driven .cw-compare-col ul {
	list-style: none;
	padding: 0;
	margin: 0 0 1rem;
}
.cw-section-driven .cw-compare-col li {
	position: relative;
	padding: 0.6rem 0 0.6rem 28px;
	font-family: var(--cw-font-body);
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--cw-muted);
	border-bottom: 1px solid rgba(var(--m-deep-rgb), 0.05);
}
.cw-section-driven .cw-compare-col li:last-child { border-bottom: none; }

/* Positive marker — emerald check with light ring */
.cw-section-driven .cw-compare-col li:not(.cw-compare-con)::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.85rem;
	width: 18px;
	height: 18px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CAF82' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' stroke-opacity='0.30'/><polyline points='8,12.5 11,15.5 16,9.5'/></svg>");
}

/* Negative marker — muted X */
.cw-section-driven .cw-compare-col li.cw-compare-con {
	color: rgba(var(--m-deep-rgb), 0.55);
}
.cw-section-driven .cw-compare-col li.cw-compare-con::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.85rem;
	width: 18px;
	height: 18px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5E56' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='10' stroke-opacity='0.30'/><line x1='8' y1='8' x2='16' y2='16'/><line x1='8' y1='16' x2='16' y2='8'/></svg>");
	opacity: 0.7;
}

/* Highlighted column — emerald glow + lift + stronger border */
.cw-section-driven .cw-compare-col.cw-compare-highlight {
	border: 2px solid var(--cw-emerald);
	background:
		linear-gradient(180deg,
			rgba(var(--m-bright-rgb), 0.04) 0%,
			var(--cw-white) 70%);
	box-shadow:
		0 0 0 1px rgba(var(--m-emerald-rgb), 0.15),
		0 16px 40px rgba(var(--m-emerald-rgb), 0.18),
		0 4px 16px rgba(var(--m-deep-rgb), 0.08);
	transform: translateY(-8px);
}
.cw-section-driven .cw-compare-col.cw-compare-highlight:hover {
	transform: translateY(-12px);
}

.cw-section-driven .cw-compare-badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, var(--cw-emerald), var(--cw-bright-green));
	color: var(--cw-white);
	font-family: var(--m-mono);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.4rem 1rem;
	border-radius: 100px;
	box-shadow: 0 4px 14px rgba(var(--m-emerald-rgb), 0.40);
	white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────
 *  8. Fit check — paired pos/neg cards, custom inline marks
 * ───────────────────────────────────────────────────────────── */

.cw-section-driven .cw-fit-check {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	max-width: 960px;
	margin: 2rem auto 0;
}

.cw-section-driven .cw-fit-col {
	position: relative;
	background: var(--cw-white);
	border: 1px solid var(--cw-border);
	border-radius: 18px;
	padding: 2.25rem 2rem;
	overflow: hidden;
}
.cw-section-driven .cw-fit-col::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--cw-border);
}
.cw-section-driven .cw-fit-col--positive {
	border-color: rgba(var(--m-emerald-rgb), 0.30);
	box-shadow: 0 8px 28px rgba(var(--m-emerald-rgb), 0.10);
}
.cw-section-driven .cw-fit-col--positive::before {
	background: linear-gradient(90deg, var(--cw-emerald), var(--cw-bright-green));
}

.cw-section-driven .cw-fit-col h3 {
	font-family: var(--cw-font-heading);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 1.25rem;
}
.cw-section-driven .cw-fit-col--positive h3 { color: var(--cw-emerald); }
.cw-section-driven .cw-fit-col--negative h3 { color: var(--cw-muted); }

.cw-section-driven .cw-fit-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.cw-section-driven .cw-fit-col li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.6rem 0;
	font-family: var(--cw-font-body);
	font-size: 0.96rem;
	line-height: 1.55;
	border-bottom: 1px solid rgba(var(--m-deep-rgb), 0.06);
}
.cw-section-driven .cw-fit-col li:last-child { border-bottom: none; }
.cw-section-driven .cw-fit-col--positive li { color: var(--cw-deep-green); }
.cw-section-driven .cw-fit-col--negative li { color: var(--cw-muted); }

.cw-section-driven .cw-fit-col li::before {
	content: "";
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 0.15rem;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}
.cw-section-driven .cw-fit-col--positive li::before {
	background-image:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CAF82' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' stroke-opacity='0.30'/><polyline points='8,12.5 11,15.5 16,9.5'/></svg>");
}
.cw-section-driven .cw-fit-col--negative li::before {
	background-image:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5E56' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='10' stroke-opacity='0.30'/><line x1='8' y1='8' x2='16' y2='16'/><line x1='8' y1='16' x2='16' y2='8'/></svg>");
	opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────────
 *  9. Testimonial grid — quote glyph + gradient border
 * ───────────────────────────────────────────────────────────── */

.cw-section-driven .cw-testimonial-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 2rem auto 0;
}

.cw-section-driven .cw-testimonial-card {
	position: relative;
	background: var(--cw-white);
	border-radius: var(--m-radius-card);
	padding: 3rem 1.75rem 1.75rem;
	overflow: hidden;
	transition:
		transform var(--m-anim-fast) var(--m-ease),
		box-shadow var(--m-anim-fast) var(--m-ease);
}

/* Gradient border via mask trick */
.cw-section-driven .cw-testimonial-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background:
		linear-gradient(135deg,
			rgba(var(--m-emerald-rgb), 0.30) 0%,
			rgba(var(--m-bright-rgb), 0.10) 50%,
			var(--cw-border) 100%);
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

/* Oversized serif quote glyph */
.cw-section-driven .cw-testimonial-card::after {
	content: "\201C";  /* left double quote */
	position: absolute;
	top: -18px;
	left: 1.5rem;
	font-family: var(--cw-font-body);
	font-size: 6rem;
	font-weight: 700;
	line-height: 1;
	color: var(--cw-emerald);
	opacity: 0.85;
	pointer-events: none;
}

.cw-section-driven .cw-testimonial-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 40px rgba(var(--m-deep-rgb), 0.12);
}

.cw-section-driven .cw-testimonial-stars {
	display: inline-block;
	color: #F59E0B;
	letter-spacing: 0.18em;
	font-size: 0.95rem;
	margin-bottom: 0.75rem;
}

.cw-section-driven .cw-testimonial-quote {
	font-family: var(--cw-font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--cw-deep-green);
	font-style: italic;
	margin: 0 0 1.5rem;
}
.cw-section-driven .cw-section-dark .cw-testimonial-card {
	background: rgba(255, 255, 255, 0.04);
}
.cw-section-driven .cw-section-dark .cw-testimonial-quote {
	color: rgba(232, 240, 236, 0.92);
}

.cw-section-driven .cw-testimonial-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(var(--m-deep-rgb), 0.06);
}
.cw-section-driven .cw-testimonial-avatar {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--cw-emerald), var(--cw-bright-green));
	color: var(--cw-white);
	font-family: var(--cw-font-heading);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
}
.cw-section-driven .cw-testimonial-name {
	display: block;
	font-family: var(--cw-font-heading);
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--cw-deep-green);
}
.cw-section-driven .cw-testimonial-role {
	display: block;
	font-family: var(--cw-font-body);
	font-size: 0.8rem;
	color: var(--cw-muted);
}
.cw-section-driven .cw-section-dark .cw-testimonial-name { color: var(--cw-white); }
.cw-section-driven .cw-section-dark .cw-testimonial-role { color: rgba(232, 240, 236, 0.70); }

/* ─────────────────────────────────────────────────────────────
 * 10. Inquiry selector — icon-frame card buttons
 * ───────────────────────────────────────────────────────────── */

.cw-section-driven .cw-inquiry-selector {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
	max-width: 900px;
	margin: 0 auto;
}

.cw-section-driven .cw-inquiry-btn {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 1.5rem 1rem;
	background: var(--cw-white);
	border: 1px solid var(--cw-border);
	border-radius: 14px;
	color: var(--cw-deep-green);
	font-family: var(--cw-font-heading);
	font-weight: 600;
	font-size: 0.95rem;
	text-align: center;
	cursor: pointer;
	transition:
		transform var(--m-anim-fast) var(--m-ease),
		border-color var(--m-anim-fast) var(--m-ease),
		box-shadow var(--m-anim-fast) var(--m-ease);
}
.cw-section-driven .cw-inquiry-btn:hover {
	transform: translateY(-3px);
	border-color: var(--cw-emerald);
	box-shadow: 0 10px 24px rgba(var(--m-emerald-rgb), 0.14);
}
.cw-section-driven .cw-inquiry-btn .cw-icon-frame {
	margin: 0;
	width: 48px;
	height: 48px;
}
.cw-section-driven .cw-inquiry-btn .cw-icon-frame .cw-icon {
	width: 24px;
	height: 24px;
}

/* ─────────────────────────────────────────────────────────────
 * 11. Latest Posts Strip — WP_Query-driven post cards
 * ───────────────────────────────────────────────────────────── */

.cw-section-driven .cw-homepage-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem;
	max-width: 1100px;
	margin: 0 auto;
}

.cw-section-driven .cw-post-card {
	background: var(--cw-white);
	border: 1px solid var(--cw-border);
	border-radius: var(--m-radius-card);
	overflow: hidden;
	transition:
		transform var(--m-anim-fast) var(--m-ease),
		border-color var(--m-anim-fast) var(--m-ease),
		box-shadow var(--m-anim-fast) var(--m-ease);
}
.cw-section-driven .cw-post-card:hover {
	transform: translateY(-4px);
	border-color: rgba(var(--m-emerald-rgb), 0.40);
	box-shadow: 0 12px 32px rgba(var(--m-deep-rgb), 0.08);
}

.cw-section-driven .cw-post-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.cw-section-driven .cw-post-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--cw-light-surface, #F7F9F8);
}
.cw-section-driven .cw-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--m-ease);
}
.cw-section-driven .cw-post-card:hover .cw-post-card__media img {
	transform: scale(1.04);
}

.cw-section-driven .cw-post-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem 1.25rem 1.5rem;
}

.cw-section-driven .cw-post-card__date {
	font-family: var(--m-mono);
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cw-emerald);
}

.cw-section-driven .cw-post-card__title {
	font-family: var(--cw-font-heading);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--cw-deep-green);
	margin: 0;
}

.cw-section-driven .cw-post-card__excerpt {
	font-family: var(--cw-font-body);
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--cw-muted);
	margin: 0;
}

.cw-section-driven .cw-section-dark .cw-post-card,
.cw-section-driven .cw-section-gradient .cw-post-card {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
}
.cw-section-driven .cw-section-dark .cw-post-card__title { color: var(--cw-white); }
.cw-section-driven .cw-section-dark .cw-post-card__excerpt { color: rgba(232, 240, 236, 0.78); }

/* ─────────────────────────────────────────────────────────────
 * 12. Topographic overlay (opt-in via .cw-hero-topo)
 * ───────────────────────────────────────────────────────────── */

.cw-section-driven .cw-hero-topo {
	position: relative;
	overflow: hidden;
}
.cw-section-driven .cw-hero-topo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-size: cover;
	background-position: center bottom;
	background-image:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'><g fill='none' stroke='%235CDB95' stroke-opacity='0.06' stroke-width='1'><path d='M0,500 Q300,420 600,460 T1200,440'/><path d='M0,460 Q300,380 600,420 T1200,400'/><path d='M0,420 Q300,340 600,380 T1200,360'/><path d='M0,380 Q300,300 600,340 T1200,320'/><path d='M0,340 Q300,260 600,300 T1200,280'/><path d='M0,300 Q300,220 600,260 T1200,240'/></g></svg>");
}
.cw-section-driven .cw-hero-topo > .cw-contain { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────────────────────
 * 12. Stroke-draw animation (SVG icons reveal-on-scroll)
 * ───────────────────────────────────────────────────────────── */

@keyframes cw-stroke-draw {
	from { stroke-dashoffset: var(--cw-len, 100); }
	to   { stroke-dashoffset: 0; }
}

.cw-section-driven .cw-icon-animate path,
.cw-section-driven .cw-icon-animate polyline,
.cw-section-driven .cw-icon-animate polygon,
.cw-section-driven .cw-icon-animate line,
.cw-section-driven .cw-icon-animate circle,
.cw-section-driven .cw-icon-animate rect,
.cw-section-driven .cw-icon-animate ellipse {
	stroke-dasharray: var(--cw-len, 100);
	animation: cw-stroke-draw 1.2s var(--m-ease) both;
}

/* ─────────────────────────────────────────────────────────────
 * 13. Responsive
 * ───────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
	.cw-section-driven .cw-comparison-table { grid-template-columns: 1fr; }
	.cw-section-driven .cw-compare-col.cw-compare-highlight { transform: none; }
	.cw-section-driven .cw-fit-check { grid-template-columns: 1fr; gap: 1.25rem; }
	.cw-section-driven .cw-testimonial-grid { grid-template-columns: 1fr; }
	.cw-section-driven .cw-feature-grid { grid-template-columns: 1fr; }
	.cw-section-driven .cw-homepage-posts-grid { grid-template-columns: 1fr; }

	.cw-section-driven .cw-process-step {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 1rem;
	}
	.cw-section-driven .cw-process-number {
		width: 96px;
		font-size: 3.5rem;
		padding-right: 18px;
	}
	.cw-section-driven .cw-process-timeline::before {
		left: calc(96px + 1px);
	}
	.cw-section-driven .cw-process-step::before {
		left: calc(96px - 18px - 7px);
		top: 22px;
	}
}

@media (max-width: 600px) {
	.cw-section-driven .cw-process-step {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 0.75rem;
	}
	.cw-section-driven .cw-process-number {
		width: 56px;
		font-size: 2.5rem;
		padding-right: 8px;
	}
	.cw-section-driven .cw-process-timeline::before {
		left: 27px;
	}
	.cw-section-driven .cw-process-step::before {
		left: 20px;
		top: 18px;
		width: 12px;
		height: 12px;
	}
	.cw-section-driven .cw-timeline { padding-left: 36px; }
	.cw-section-driven .cw-timeline::before { left: 6px; }
	.cw-section-driven .cw-timeline-item::before { left: -36px; }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
	.cw-section-driven .cw-process-timeline::before,
	.cw-section-driven .cw-process-step::before,
	.cw-section-driven .cw-timeline::before,
	.cw-section-driven .cw-timeline-item::before {
		transform: none;
		transition: none;
	}
	.cw-section-driven .cw-icon-animate path,
	.cw-section-driven .cw-icon-animate polyline,
	.cw-section-driven .cw-icon-animate polygon,
	.cw-section-driven .cw-icon-animate line,
	.cw-section-driven .cw-icon-animate circle,
	.cw-section-driven .cw-icon-animate rect,
	.cw-section-driven .cw-icon-animate ellipse {
		animation: none;
		stroke-dasharray: none;
	}
}
