/*
 * Homepage middle sections (board #10).
 * Reference: prototypes/h-dusk-coral.html
 * (#expertise .cards, #connected .cc-explorer, .cloud .lanes, #approach,
 * #insights). Patterns: services, connected-explorer, capability-lanes,
 * approach, insights-teasers.
 *
 * Colours: theme.json palette/gradients plus the exact reference values in
 * settings.custom.color.{services,explorer,lanes,approach} (ADR-0006).
 * Motion (all stopped by reduced motion or "Pause motion", site.css):
 * scroll reveals (only where scroll-driven animation is supported, never
 * leaving content hidden), card hover lift, connector sheen, explorer path
 * flow and switch, lanes marquee.
 */

/* ---------- Shared section frame ---------- */
.cluedit-section {
	box-sizing: border-box;
	padding: 112px var(--cluedit-pad-x);
	color: var(--wp--preset--color--text);
}

.cluedit-section--light {
	background: var(--wp--preset--gradient--light);
}

.cluedit-section :is(p, h2, h3, ul, .wp-block-group, .wp-block-buttons) {
	margin-block: 0;
}

.cluedit-section .cluedit-section__head {
	text-align: center;
}

.cluedit-section .cluedit-kicker {
	display: inline-block;
	margin-bottom: 14px;
	color: var(--wp--preset--color--dusk-blue);
	font-size: var(--wp--preset--font-size--s);
	font-weight: 500;
	line-height: 1.55;
}

.cluedit-section .cluedit-section-title {
	max-width: 780px;
	margin: 0 auto 16px;
	color: var(--wp--preset--color--ink);

	/* Reference clamp(34px, 3.4vw, 48px), bounded by the 3xl token. */
	font-size: clamp(2.125rem, 3.4vw, 3rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.cluedit-section .cluedit-section-sub {
	max-width: 620px;
	margin-inline: auto;
	color: var(--wp--preset--color--mute);
	font-size: 18px;
	line-height: 1.55;
}

/* Arrow links ("Salesforce audit →"): editable text, icon from the set. */
.cluedit-link-arrow a {
	display: inline-flex;
	gap: 0.2em;
	align-items: center;
}

.cluedit-link-arrow a::after {
	content: "";
	flex: none;
	width: 1.2em;
	height: 1.2em;
	background-color: currentcolor;
	-webkit-mask: url(../icons/arrow-right.svg) center / contain no-repeat;
	mask: url(../icons/arrow-right.svg) center / contain no-repeat;
}

/* Section link under the head ("All services"); colour as card links. */
.cluedit-section .cluedit-section-link {
	margin-top: 18px;
	font-size: var(--wp--preset--font-size--s);
	font-weight: 600;
	line-height: 1.55;
}

/* Health-check band: follows the approach section, so no second top gap. */
.cluedit-section.cluedit-health {
	padding-top: 0;
}

/* "How we make CRM AI-ready", centred under the explorer. */
.cluedit-section .cluedit-connected__more {
	margin-top: 40px;
	text-align: center;
}

/* ---------- Cards (services + insights) ---------- */
.cluedit-section .cluedit-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin-top: 56px;
	text-align: left;
}

.cluedit-section .cluedit-card {
	box-sizing: border-box;
	padding: 14px 14px 26px;
	border: 1px solid var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--l);
	background: color-mix(in srgb, var(--wp--preset--color--surface) 75%, transparent);
	box-shadow: var(--wp--custom--shadow--card);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition:
		transform 0.5s var(--cluedit-ease),
		box-shadow 0.5s var(--cluedit-ease);
}

.cluedit-section .cluedit-card:hover {
	box-shadow:
		0 30px 60px -30px
		color-mix(in srgb, var(--wp--preset--color--navy) 45%, transparent);
	transform: translateY(-6px);
}

.cluedit-section .cluedit-card__thumb {
	position: relative;
	box-sizing: border-box;
	height: 190px;
	margin-bottom: 22px;
	padding: 16px;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--m);
}

.cluedit-card__thumb--audit,
.cluedit-card__thumb--a {
	background-image: var(--wp--preset--gradient--thumb-a);
}

.cluedit-card__thumb--flow,
.cluedit-card__thumb--b {
	background-image: var(--wp--preset--gradient--thumb-b);
}

.cluedit-card__thumb--docs,
.cluedit-card__thumb--c {
	background-image: var(--wp--preset--gradient--thumb-c);
}

.cluedit-section .cluedit-mini {
	box-sizing: border-box;
	padding: 10px 12px;
	border-radius: var(--wp--custom--radius--s);
	background: var(--wp--preset--color--surface);
	box-shadow:
		0 6px 18px -10px
		color-mix(in srgb, var(--wp--preset--color--navy) 40%, transparent);
	color: var(--wp--preset--color--text);
	font-size: 12.5px;
	line-height: 1.55;
}

.cluedit-section .cluedit-card__title {
	margin-bottom: 8px;
	padding: 0 12px;
	color: var(--wp--preset--color--ink);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.08;
}

.cluedit-section .cluedit-card__text {
	padding: 0 12px;
	color: var(--wp--preset--color--mute);
	font-size: 15.5px;
	line-height: 1.55;
}

.cluedit-section .cluedit-card__link {
	display: inline-block;
	margin: 16px 12px 0;
	font-size: var(--wp--preset--font-size--s);
	font-weight: 600;
	line-height: 1.55;
}

.cluedit-section .cluedit-card__link a,
.cluedit-section .cluedit-section-link a {
	color: var(--wp--preset--color--dusk-blue);
	text-decoration: none;
}

.cluedit-section .cluedit-card__link a:hover,
.cluedit-section .cluedit-section-link a:hover {
	text-decoration: underline;
}

.cluedit-section.cluedit-on-dark .cluedit-section-link a {
	color: var(--wp--preset--color--peach);
}

/* Thumbnail: audit (label + progress ring with a check). */
.cluedit-section .cluedit-card__thumb--audit {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.cluedit-section .cluedit-card__thumb--audit .cluedit-mini {
	align-self: flex-start;
	width: 70%;
}

.cluedit-card__thumb--audit::after {
	content: "";
	order: 2;
	flex: none;
	width: 96px;
	height: 96px;
	margin-top: 6px;
	border-radius: 50%;
	background:
		radial-gradient(circle, var(--wp--preset--color--surface) 34.5px, transparent 35px),
		conic-gradient(var(--wp--preset--color--mauve) 0 72%, var(--wp--custom--color--services--ring-track) 72% 100%);
	animation: cluedit-spin-in 2.4s var(--cluedit-ease) both;
}

.cluedit-card__thumb--audit::before {
	content: "";
	order: 3;
	flex: none;
	width: 24px;
	height: 24px;
	margin-top: -60px;
	background-color: var(--wp--preset--color--ink);
	-webkit-mask: url(../icons/check.svg) center / contain no-repeat;
	mask: url(../icons/check.svg) center / contain no-repeat;
}

/* Thumbnail: steps (three phases, rising; service cards, ADR-0011). */
.cluedit-card__thumb--steps {
	background-image: var(--wp--preset--gradient--thumb-a);
}

.cluedit-section .cluedit-card__thumb--steps {
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;
}

.cluedit-section .cluedit-card__thumb--steps .cluedit-mini {
	width: 56%;
	animation: cluedit-rise-in 0.7s var(--cluedit-ease) both;
}

.cluedit-section .cluedit-card__thumb--steps .cluedit-mini:where(:nth-child(2)) {
	margin-left: 22%;
	animation-delay: 0.3s;
}

.cluedit-section .cluedit-card__thumb--steps .cluedit-mini:where(:nth-child(3)) {
	margin-left: 44%;
	font-weight: 600;
	animation-delay: 0.6s;
}

/* Thumbnail: chat (question, answer, verified tag; service cards). */
.cluedit-card__thumb--chat {
	background-image: var(--wp--preset--gradient--thumb-c);
}

.cluedit-section .cluedit-card__thumb--chat {
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;
}

.cluedit-section .cluedit-card__thumb--chat .cluedit-mini {
	max-width: 74%;
	animation: cluedit-rise-in 0.7s var(--cluedit-ease) both;
}

.cluedit-section .cluedit-card__thumb--chat .cluedit-mini:where(:nth-child(1)) {
	align-self: flex-start;
}

.cluedit-section .cluedit-card__thumb--chat .cluedit-mini:where(:nth-child(2)) {
	align-self: flex-end;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
	animation-delay: 0.5s;
}

.cluedit-section .cluedit-card__thumb--chat .cluedit-mini:where(:nth-child(3)) {
	align-self: flex-end;
	padding: 4px 10px;
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--mauve);
	font-size: var(--wp--preset--font-size--2-xs);
	font-weight: 600;
	animation-delay: 1s;
}

@keyframes cluedit-rise-in {

	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Thumbnail: flow (label + SF — ERP — Tools). */
.cluedit-section .cluedit-card__thumb--flow > .cluedit-mini {
	width: 62%;
}

.cluedit-section .cluedit-flowmini {
	display: grid;
	grid-template-columns:
		minmax(0, max-content) minmax(12px, 1fr) minmax(0, max-content)
		minmax(12px, 1fr) minmax(0, max-content);
	align-items: center;
	margin-top: 34px;
}

.cluedit-section .cluedit-flowmini .cluedit-mini {
	grid-row: 1;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.cluedit-section .cluedit-flowmini .cluedit-mini:nth-child(1) {
	grid-column: 1;
}

.cluedit-section .cluedit-flowmini .cluedit-mini:nth-child(2) {
	grid-column: 3;
}

.cluedit-section .cluedit-flowmini .cluedit-mini:nth-child(3) {
	grid-column: 5;
}

.cluedit-flowmini::before,
.cluedit-flowmini::after {
	content: "";
	grid-row: 1;
	height: 2px;
	margin: 0 8px;
	background-image: linear-gradient(90deg, var(--wp--custom--color--services--flow-from), var(--wp--custom--color--services--flow-to));
	background-size: 200% 100%;
	animation: cluedit-sheen 2.5s linear infinite;
}

.cluedit-flowmini::before {
	grid-column: 2;
}

.cluedit-flowmini::after {
	grid-column: 4;
}

/* Thumbnail: docs (three stacked labels). */
.cluedit-section .cluedit-card__thumb--docs .wp-block-paragraph.cluedit-mini {
	font-size: 12px;
}

.cluedit-section .cluedit-card__thumb--docs .cluedit-mini + .cluedit-mini {
	margin-top: 10px;
}

/* ---------- Connected-context explorer ---------- */
.cluedit-section.cluedit-connected {
	background-image: var(--wp--preset--gradient--navy);
	color: var(--wp--preset--color--surface);
}

.cluedit-connected .cluedit-section__head {
	margin-bottom: 56px;
}

.cluedit-section.cluedit-connected .cluedit-kicker {
	color: var(--wp--preset--color--peach);
}

.cluedit-section.cluedit-connected .cluedit-section-title {
	color: var(--wp--preset--color--surface);
}

.cluedit-connected .cluedit-section-title mark {
	background: transparent;
	color: var(--wp--preset--color--accent);
}

.cluedit-section.cluedit-connected .cluedit-section-sub {
	color: var(--wp--preset--color--on-dark);
}

/* Tabs (created by explorer.js). */
.cluedit-explorer.is-enhanced {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.cluedit-section .cluedit-explorer__stage {
	margin-block: 0;
}

.cluedit-section .cluedit-explorer__tabs {
	display: flex;
	margin-block: 0;
	flex-direction: column;
	gap: 12px;
}

.cluedit-explorer__tab {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 20px;
	border:
		1px solid
		color-mix(in srgb, var(--wp--preset--color--surface) 9.4%, transparent);
	border-radius: var(--wp--custom--radius--m);
	background: color-mix(in srgb, var(--wp--preset--color--surface) 1.2%, transparent);
	color: var(--wp--custom--color--explorer--tab-text);
	font: inherit;
	font-size: 16px;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition:
		background-color 0.4s var(--cluedit-ease),
		border-color 0.4s var(--cluedit-ease),
		transform 0.4s var(--cluedit-ease);
}

.cluedit-explorer__tab:hover {
	border-color: var(--wp--custom--color--explorer--tab-active-border);
}

.cluedit-explorer__tab[aria-selected="true"] {
	border-color: var(--wp--custom--color--explorer--tab-active-border);
	background: color-mix(in srgb, var(--wp--preset--color--surface) 7%, transparent);
	color: var(--wp--custom--color--explorer--tab-active-text);
	transform: translateX(5px);
}

.cluedit-explorer__tab-number {
	margin-right: 12px;
	color: var(--wp--custom--color--explorer--tab-number);
	font-size: 12px;
}

.cluedit-explorer__tab-hint {
	display: block;
	margin: 6px 0 0 30px;
	color: var(--wp--custom--color--explorer--tab-hint);
	font-size: 12.5px;
}

.cluedit-explorer.is-enhanced > .cluedit-explorer__window-title,
.cluedit-explorer.is-enhanced .cluedit-scenario__title,
.cluedit-explorer.is-enhanced .cluedit-scenario__hint {
	display: none;
}

.cluedit-explorer.is-enhanced .cluedit-scenario[hidden] {
	display: none;
}

/* No JavaScript: every scenario is shown in turn, fully readable. */
.cluedit-explorer:not(.is-enhanced) > .cluedit-explorer__window-title {
	display: none;
}

.cluedit-explorer:not(.is-enhanced) .cluedit-scenario + .cluedit-scenario {
	margin-top: 48px;
}

.cluedit-explorer:not(.is-enhanced) .cluedit-scenario__title {
	margin-bottom: 4px;
	color: var(--wp--custom--color--explorer--tab-active-text);
	font-size: 18px;
	font-weight: 600;
}

.cluedit-explorer:not(.is-enhanced) .cluedit-scenario__hint {
	margin-bottom: 16px;
	color: var(--wp--custom--color--explorer--tab-hint);
	font-size: 12.5px;
}

/* The "connected moment" window: bar (from data-window-title) + body. */
.cluedit-scenario__visual {
	position: relative;
	display: grid;
	grid-template-columns: 100px 35px minmax(0, 1fr);
	gap: 0 16px;
	align-items: center;
	box-sizing: border-box;
	padding: 0 28px 32px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--l);
	background: var(--wp--custom--color--explorer--window-bg);
	box-shadow: 0 20px 65px var(--wp--custom--color--explorer--window-shadow);
	color: var(--wp--preset--color--ink);
}

.cluedit-scenario__visual::before {
	content: attr(data-window-title);
	grid-column: 1 / -1;
	margin: 0 -28px 32px;
	padding: 15px 20px;
	border-bottom: 1px solid var(--wp--custom--color--explorer--bar-line);

	/* Three bar dots. */
	background:
		radial-gradient(circle at 2.5px 50%, var(--wp--custom--color--explorer--bar-dot) 2.5px, transparent 3px) 20px center / 9px 5px no-repeat,
		radial-gradient(circle at 2.5px 50%, var(--wp--custom--color--explorer--bar-dot) 2.5px, transparent 3px) 29px center / 9px 5px no-repeat,
		radial-gradient(circle at 2.5px 50%, var(--wp--custom--color--explorer--bar-dot) 2.5px, transparent 3px) 38px center / 9px 5px no-repeat;
	color: var(--wp--custom--color--explorer--bar-text);
	font-size: 9px;
	line-height: 1.55;
	text-align: center;
}

.cluedit-scenario__visual::after {
	content: "";
	position: absolute;
	top: 18px;
	right: 20px;
	width: 9px;
	height: 9px;
	background-color: var(--wp--custom--color--explorer--bar-text);
	-webkit-mask: url(../icons/arrow-up-right.svg) center / contain no-repeat;
	mask: url(../icons/arrow-up-right.svg) center / contain no-repeat;
}

.cluedit-scenario__source {
	position: relative;
	grid-column: 1;
	text-align: center;
}

/* Source icon tile; the icon itself sits on the label's ::before. */
.cluedit-scenario__source::before {
	content: "";
	display: block;
	width: 46px;
	height: 46px;
	margin: 0 auto 12px;
	border-radius: var(--wp--custom--radius--s);
	background: var(--wp--custom--color--explorer--icon-bg);
}

/* Decorative icon by scenario order: arrow, target, waves. */
.cluedit-scenario__source-label::before {
	content: "";
	position: absolute;
	top: 12px;
	left: 50%;
	width: 22px;
	height: 22px;
	margin-left: -11px;
	background-color: var(--wp--custom--color--explorer--icon-ink);
	-webkit-mask: url(../icons/arrow-up-right.svg) center / contain no-repeat;
	mask: url(../icons/arrow-up-right.svg) center / contain no-repeat;
}

.cluedit-scenario:nth-of-type(3n + 2) .cluedit-scenario__source-label::before {
	-webkit-mask-image: url(../icons/target.svg);
	mask-image: url(../icons/target.svg);
}

.cluedit-scenario:nth-of-type(3n) .cluedit-scenario__source-label::before {
	-webkit-mask-image: url(../icons/waves.svg);
	mask-image: url(../icons/waves.svg);
}

/* Connector line between source and target, with a travelling highlight. */
.cluedit-scenario__source::after {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(100% + 16px);
	width: 35px;
	height: 1px;
	background:
		linear-gradient(var(--wp--custom--color--explorer--path-flow), var(--wp--custom--color--explorer--path-flow)) -40px 0 / 100% 100% no-repeat,
		var(--wp--custom--color--explorer--path);
	animation: cluedit-path-flow 3s linear infinite;
}

.cluedit-scenario__source-label {
	color: var(--wp--custom--color--explorer--source-label);
	font-size: 7px;
	letter-spacing: 0.1em;
	line-height: 1.55;
	text-transform: uppercase;
}

.cluedit-scenario__source-name {
	margin-top: 4px;
	font-size: 11px;
	line-height: 1.55;
}

.cluedit-scenario__target {
	grid-column: 3;
	box-sizing: border-box;
	padding: 17px;
	border: 1px solid var(--wp--custom--color--explorer--target-border);
	border-radius: var(--wp--custom--radius--m);
	background: var(--wp--preset--color--surface);
}

.cluedit-scenario__label {
	color: var(--wp--custom--color--explorer--target-label);
	font-size: 8px;

	/* Reference: inline label on a 17px text line. */
	line-height: calc(var(--wp--preset--font-size--m) * 1.55);
}

.cluedit-section .cluedit-scenario__result {
	color: var(--wp--preset--color--ink);
	font-size: 25px;
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.08;
}

.cluedit-section .cluedit-scenario__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 12px;
	padding: 0;
	list-style: none;
}

.cluedit-scenario__tags li {
	padding: 4px 7px;
	border-radius: var(--wp--custom--radius--xs);
	background: var(--wp--custom--color--explorer--tag-bg);
	font-size: 7px;
	line-height: 1.55;
}

/* As wide as the window above it (Kristóf, 2026-10-13). */
.cluedit-section .cluedit-scenario .cluedit-scenario__text {
	max-width: none;
	min-height: 45px;
	margin: 32px 0 10px;
	color: var(--wp--preset--color--on-dark);
	font-size: 16px;
	line-height: 1.65;
}

.cluedit-section .cluedit-explorer__note {
	color: var(--wp--custom--color--explorer--note);
	font-size: var(--wp--preset--font-size--2-xs);
	line-height: 1.5;
}

.cluedit-scenario.is-entering .cluedit-scenario__target {
	animation: cluedit-switch 0.55s var(--cluedit-ease);
}

/* Visually hidden live region (explorer.js). */
.cluedit-explorer__status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Lanes ("What we fix, connect and build") ---------- */
.cluedit-section.cluedit-lanes-section {
	padding: 112px 0 67.2px;
	overflow: hidden;
	text-align: center;
}

.cluedit-lanes-section .cluedit-section__head {
	padding-inline: var(--cluedit-pad-x);
}

.cluedit-section .cluedit-lanes {
	display: grid;
	gap: 14px;
	margin-top: 48px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.cluedit-section .cluedit-lane {
	display: flex;
	gap: 12px;
	width: max-content;
	padding: 0;
	list-style: none;
	animation: cluedit-marquee 46s linear infinite;
}

.cluedit-lane:nth-child(2) {
	animation-duration: 52s;
	animation-direction: reverse;
}

.cluedit-lane:nth-child(3) {
	animation-duration: 60s;
}

/* Without the loop copy (no JavaScript) the lanes stay still. */
.cluedit-lane:not(.is-looping) {
	animation: none;
}

.cluedit-lane li {
	flex: none;
	padding: 12px 20px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--s);
	background: var(--wp--preset--color--surface);
	box-shadow:
		0 4px 14px -10px
		color-mix(in srgb, var(--wp--preset--color--navy) 35%, transparent);
	color: var(--wp--preset--color--text);
	font-size: var(--wp--preset--font-size--s);
	font-weight: 500;
	line-height: 1.55;
	white-space: nowrap;
}

/* Decorative tone rhythm by position (repeats in the loop copy). */
.cluedit-lane:nth-child(1) li:nth-child(9n + 2),
.cluedit-lane:nth-child(2) li:nth-child(9n + 4),
.cluedit-lane:nth-child(3) li:nth-child(9n + 5) {
	border-color: var(--wp--custom--color--lanes--a-border);
	background: var(--wp--custom--color--lanes--a-bg);
	color: var(--wp--custom--color--lanes--a-ink);
}

.cluedit-lane:nth-child(1) li:nth-child(9n + 5),
.cluedit-lane:nth-child(2) li:nth-child(9n + 7),
.cluedit-lane:nth-child(3) li:nth-child(9n + 2) {
	border-color: var(--wp--custom--color--lanes--d-border);
	background: var(--wp--custom--color--lanes--d-bg);
	color: var(--wp--custom--color--lanes--d-ink);
}

.cluedit-lane:nth-child(1) li:nth-child(9n + 8),
.cluedit-lane:nth-child(2) li:nth-child(9n + 1),
.cluedit-lane:nth-child(3) li:nth-child(9n + 8) {
	border-color: var(--wp--custom--color--lanes--v-border);
	background: var(--wp--custom--color--lanes--v-bg);
	color: var(--wp--custom--color--lanes--v-ink);
}

/* ---------- Approach ---------- */
.cluedit-section.cluedit-approach {
	display: grid;
	grid-template-columns: 0.85fr 1fr;
	gap: 96px;
}

.cluedit-section.cluedit-approach .cluedit-section-title {
	margin-left: 0;
}

.cluedit-section.cluedit-approach .cluedit-section-sub {
	max-width: 380px;
	margin: 0 0 28px;
}

.cluedit-approach__actions {
	gap: 0;
}

.cluedit-section .cluedit-steps {
	counter-reset: cluedit-step;
}

.cluedit-section .cluedit-step {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 0 20px;
	padding: 27px 0;
	border-bottom: 1px solid var(--wp--custom--color--approach--divider);
	counter-increment: cluedit-step;
}

.cluedit-section .cluedit-step:first-child {
	padding-top: 0;
}

.cluedit-step::before {
	content: counter(cluedit-step, decimal-leading-zero);
	display: grid;
	grid-row: 1 / span 2;
	place-items: center;
	box-sizing: border-box;
	height: 38px;
	border: 1px solid var(--wp--custom--color--approach--number-border);
	border-radius: var(--wp--custom--radius--s);
	background: var(--wp--custom--color--approach--number-bg);
	color: var(--wp--custom--color--approach--number-ink);
	font-size: 12px;
	line-height: 1.55;
}

.cluedit-section .cluedit-step__title {
	grid-column: 2;
	color: var(--wp--preset--color--ink);
	font-size: 25px;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.08;
}

.cluedit-section .cluedit-step__text {
	grid-column: 2;
	color: var(--wp--custom--color--approach--text);
	font-size: 14px;
	line-height: 1.55;
}

/* ---------- Insights teasers ---------- */
.cluedit-section.cluedit-insights {
	background: var(--wp--preset--color--surface);
	text-align: center;
}

.cluedit-section .cluedit-teaser {
	position: relative;
	background: var(--wp--preset--color--surface);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.cluedit-section .cluedit-cards .cluedit-teaser .cluedit-mini {
	display: inline-block;
	width: 62%;
}

/* Reference: the third thumbnail's label spans the card, 12px. */
.cluedit-section .cluedit-cards .cluedit-teaser:nth-child(3) .cluedit-mini {
	width: 100%;
	font-size: 12px;
}

.cluedit-section .cluedit-teaser .cluedit-teaser__title {
	margin-bottom: 8px;
}

.cluedit-section .cluedit-teaser__topic {
	position: absolute;
	bottom: 16px;
	left: 18px;
	color: var(--wp--preset--color--ink);
	font-size: 30px;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1;
}

.cluedit-section .cluedit-teaser__meta {
	margin-bottom: 6px;
	padding: 0 12px;
	color: var(--wp--preset--color--mute);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.55;
}

.cluedit-section .cluedit-teaser .cluedit-teaser__title a {
	color: inherit;
	text-decoration: none;
}

/* The whole card is clickable through the title link. */
.cluedit-section .cluedit-teaser .cluedit-teaser__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--wp--custom--radius--l);
}

.cluedit-teaser:focus-within {
	outline: 2px solid var(--wp--preset--color--dusk-blue);
	outline-offset: 3px;
}

.cluedit-section .cluedit-teaser .cluedit-teaser__title a:focus-visible {
	outline: none;
}

.cluedit-section .cluedit-insights__more {
	justify-content: center;
	margin-top: 44px;
}

/* ---------- Scroll reveals (progressive, never left hidden) ---------- */
@supports (animation-timeline: view()) {

	.cluedit-section :is(.cluedit-section__head, .cluedit-approach__head) > *,
	.cluedit-services .cluedit-card__title,
	.cluedit-services .cluedit-card__text,
	.cluedit-services .cluedit-card__link {
		animation: cluedit-rise linear both;
		animation-timeline: view();
		animation-range: entry 0% cover 28%;
	}

	.cluedit-section :is(.cluedit-card, .cluedit-step, .cluedit-explorer.is-enhanced) {
		animation: cluedit-rise-soft linear both;
		animation-timeline: view();
		animation-range: entry 0% cover 35%;
	}

	.cluedit-section :is(.cluedit-card, .cluedit-step, .cluedit-explorer.is-enhanced):focus-within,
	.cluedit-section :is(.cluedit-card, .cluedit-step, .cluedit-explorer.is-enhanced) :focus-within {
		opacity: 1 !important;
		transform: none !important;
	}
}

@media print {

	.cluedit-section * {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}
}

/* ---------- Keyframes ---------- */
@keyframes cluedit-rise {

	from {
		opacity: 0;
		transform: translateY(48px);
	}
}

@keyframes cluedit-rise-soft {

	from {
		opacity: 0;
		transform: translateY(40px) scale(0.96);
	}
}

@keyframes cluedit-spin-in {

	from {
		opacity: 0;
		transform: rotate(-120deg);
	}
}

@keyframes cluedit-sheen {

	50% {
		background-position: 100% 0;
	}
}

@keyframes cluedit-path-flow {

	to {
		background-position: 40px 0, 0 0;
	}
}

@keyframes cluedit-switch {

	from {
		opacity: 0.4;
		transform: translateY(6px);
	}
}

@keyframes cluedit-marquee {

	to {
		transform: translateX(-50%);
	}
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {

	.cluedit-section {
		padding-block: 88px;
	}

	.cluedit-section.cluedit-lanes-section {
		padding: 88px 0 52.8px;
	}

	.cluedit-section .cluedit-cards {
		gap: 16px;
	}

	.cluedit-explorer.is-enhanced {
		grid-template-columns: 250px minmax(0, 1fr);
		gap: 32px;
	}

	.cluedit-scenario__visual {
		grid-template-columns: 75px 18px minmax(0, 1fr);
		gap: 0 10px;
		padding: 0 18px 25px;
	}

	.cluedit-scenario__visual::before {
		margin: 0 -18px 25px;
	}

	.cluedit-scenario__source::after {
		left: calc(100% + 10px);
		width: 18px;
	}

	.cluedit-scenario__target {
		padding: 14px;
	}

	.cluedit-section.cluedit-approach {
		gap: 48px;
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 800px) {

	.cluedit-section {
		padding-block: 68px;
	}

	.cluedit-section.cluedit-lanes-section {
		padding: 68px 0 40.8px;
	}

	.cluedit-section .cluedit-section-title {
		font-size: 2.125rem;
	}

	.cluedit-section .cluedit-section-sub {
		font-size: 1rem;
	}

	.cluedit-section .cluedit-cards {
		grid-template-columns: minmax(0, 1fr);
		max-width: 520px;
		margin: 35px auto 0;
	}

	.cluedit-section .cluedit-card {
		padding-bottom: 27px;
	}

	.cluedit-section .cluedit-card__text {
		font-size: var(--wp--preset--font-size--s);
	}

	.cluedit-connected .cluedit-section__head {
		margin-bottom: 36px;
	}

	.cluedit-explorer.is-enhanced {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.cluedit-section .cluedit-explorer__tabs {
		flex-direction: row;
		gap: 6px;
	}

	.cluedit-explorer__tab {
		flex: 1;
		min-width: 0;
		padding: 12px 6px;
		border-radius: var(--wp--custom--radius--s);
		font-size: 13px;
		text-align: center;
	}

	.cluedit-explorer__tab[aria-selected="true"] {
		transform: none;
	}

	.cluedit-explorer__tab-number {
		display: block;
		margin: 0 0 4px;
		font-size: 11px;
	}

	.cluedit-explorer__tab-hint {
		display: none;
	}

	.cluedit-scenario__visual {
		grid-template-columns: 68px 12px minmax(0, 1fr);
		gap: 0 8px;
		padding: 0 14px 25px;
	}

	.cluedit-scenario__visual::before {
		margin: 0 -14px 25px;
	}

	.cluedit-scenario__source::after {
		left: calc(100% + 8px);
		width: 12px;
	}

	.cluedit-scenario__source-name {
		font-size: 9px;
	}

	.cluedit-section .cluedit-scenario__result {
		font-size: 22px;
	}

	.cluedit-section .cluedit-scenario .cluedit-scenario__text {
		margin-top: 28px;
		font-size: var(--wp--preset--font-size--s);
	}

	.cluedit-section.cluedit-approach {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.cluedit-section .cluedit-step {
		grid-template-columns: 34px minmax(0, 1fr);
		gap: 0 15px;
	}

	.cluedit-section .cluedit-step__title {
		font-size: 24px;
	}
}

@media (max-width: 370px) {

	.cluedit-scenario__visual {
		grid-template-columns: minmax(0, 1fr);
	}

	.cluedit-scenario__source {
		display: none;
	}

	.cluedit-scenario__target {
		grid-column: 1;
	}
}
