/* Page sections: hero, capabilities, process, workflow, quiz, page heros */

/* ---------- Hero (dark, cinematic) ---------- */
.hero {
	/* No section padding of its own — .hero__screen carries the hero's padding.
	   Without this override the base `section` padding pushes the sticky frame
	   96px down and the pinned effect starts misaligned. */
	padding-block: 0;
	position: relative;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(1000px 600px at 85% -15%, rgba(0, 194, 209, 0.22), transparent 60%),
		radial-gradient(800px 560px at -10% 115%, rgba(14, 111, 255, 0.28), transparent 62%),
		radial-gradient(500px 400px at 55% 120%, rgba(0, 194, 209, 0.10), transparent 65%),
		var(--grad-ink);
}
.hero__sticky { position: relative; }
/* The hero's visual body. Unarmed it's just a wrapper; armed it becomes the
   laptop's screen and scales down. */
.hero__screen {
	position: relative;
	overflow: hidden;
	padding-block: var(--sp-8) calc(var(--sp-section) + 24px);
	background:
		radial-gradient(1000px 600px at 85% -15%, rgba(0, 194, 209, 0.22), transparent 60%),
		radial-gradient(800px 560px at -10% 115%, rgba(14, 111, 255, 0.28), transparent 62%),
		radial-gradient(500px 400px at 55% 120%, rgba(0, 194, 209, 0.10), transparent 65%),
		var(--grad-ink);
}
.hero__screen::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(75% 90% at 60% 30%, black, transparent);
	pointer-events: none;
}
.hero::after { /* glow line along the bottom edge */
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--grad-scan);
	opacity: 0.6;
}
.hero__grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: var(--sp-8); align-items: center; position: relative; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: var(--sp-6); } }
.hero h1 { margin-bottom: var(--sp-5); color: #fff; }
.hero h1 .accent { background: linear-gradient(92deg, #4EA3FF 0%, #35E0EF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: var(--fs-500); color: rgba(255, 255, 255, 0.74); max-width: 540px; margin-bottom: var(--sp-6); }
.hero__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.hero__trust { font-family: var(--font-mono); font-size: var(--fs-200); color: rgba(255, 255, 255, 0.55); letter-spacing: 0.04em; }
.hero__trust .sep { color: var(--scan); margin-inline: var(--sp-2); }
.hero .btn--secondary { background: rgba(255, 255, 255, 0.07); color: #fff; border-color: rgba(255, 255, 255, 0.30); backdrop-filter: blur(4px); }
.hero .btn--secondary:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }

/* ---------- Hero marquee: infinite scattered collage of client sites ---------- */
/* Three uneven columns fill the right half of the hero edge-to-edge. Every
   column scrolls the same direction; slightly different speeds and negative
   delays keep the collage scattered. Each track holds its set three times and
   the animation travels exactly one set-height, so the loop is seamless. */
.hero-marquee {
	position: absolute;
	top: 0;
	bottom: 0;
	left: calc(50% + 16px);
	right: 0;
	max-width: 920px;
	margin-left: auto;
	display: flex;
	overflow: hidden;
	pointer-events: none;
}
.hero-marquee__col { min-width: 0; }
.hero-marquee__col--1 { flex: 1.25; }
.hero-marquee__col--2 { flex: 1; }
.hero-marquee__col--3 { flex: 0.85; }
.hero-marquee__track {
	display: flex;
	flex-direction: column;
	animation: ywd-marquee-up linear infinite;
}
.hero-marquee__col--1 .hero-marquee__track { animation-duration: 64s; animation-delay: -9s; }
.hero-marquee__col--2 .hero-marquee__track { animation-duration: 78s; animation-delay: -33s; }
.hero-marquee__col--3 .hero-marquee__track { animation-duration: 58s; animation-delay: -50s; }
@keyframes ywd-marquee-up { from { transform: translateY(0); } to { transform: translateY(calc(-100% / 3)); } }
@media (prefers-reduced-motion: reduce) {
	.hero-marquee__track { animation: none !important; }
}
.hero-marquee__item {
	flex: none;
	width: 100%;
	margin-bottom: 14px;
	border-radius: var(--radius);
	overflow: hidden;
	background: #0D2038;
	border: 1px solid rgba(255, 255, 255, 0.10);
	box-shadow: 0 18px 44px rgba(2, 8, 20, 0.45);
	aspect-ratio: 16 / 10;
}
.hero-marquee__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}
/* Random-scatter collage: every tile is individually placed — irregular
   widths, heights, horizontal offsets (negative margins push tiles across
   lane gutters and off-frame) and uneven vertical gaps, so nothing reads as
   a grid. Classes come from the index in PHP, so every loop copy is identical. */
.hero-marquee__col--1 .hero-marquee__item--r0 { width: 94%; aspect-ratio: 16 / 10; margin-left: -4%; margin-bottom: 26px; }
.hero-marquee__col--1 .hero-marquee__item--r1 { width: 72%; aspect-ratio: 4 / 5; margin-left: 30%; margin-bottom: 44px; }
.hero-marquee__col--1 .hero-marquee__item--r2 { width: 106%; aspect-ratio: 3 / 2; margin-left: -10%; margin-bottom: 18px; }
.hero-marquee__col--1 .hero-marquee__item--r3 { width: 64%; aspect-ratio: 1 / 1; margin-left: 10%; margin-bottom: 52px; }
.hero-marquee__col--2 .hero-marquee__item--r0 { width: 86%; aspect-ratio: 3 / 4; margin-left: -14%; margin-bottom: 34px; }
.hero-marquee__col--2 .hero-marquee__item--r1 { width: 112%; aspect-ratio: 16 / 10; margin-left: 2%; margin-bottom: 48px; }
.hero-marquee__col--2 .hero-marquee__item--r2 { width: 68%; aspect-ratio: 1 / 1; margin-left: 26%; margin-bottom: 22px; }
.hero-marquee__col--3 .hero-marquee__item--r0 { width: 116%; aspect-ratio: 4 / 5; margin-left: 12%; margin-bottom: 38px; }
.hero-marquee__col--3 .hero-marquee__item--r1 { width: 82%; aspect-ratio: 4 / 3; margin-left: -18%; margin-bottom: 26px; }
.hero-marquee__col--3 .hero-marquee__item--r2 { width: 102%; aspect-ratio: 1 / 1; margin-left: 14%; margin-bottom: 46px; }
/* Depth: larger tiles cast deeper shadows */
.hero-marquee__col--1 .hero-marquee__item--r2,
.hero-marquee__col--2 .hero-marquee__item--r1,
.hero-marquee__col--3 .hero-marquee__item--r0 { box-shadow: 0 30px 70px rgba(2, 8, 20, 0.6); }
.hero-marquee__col--1 .hero-marquee__item--r3,
.hero-marquee__col--2 .hero-marquee__item--r2 { box-shadow: 0 10px 26px rgba(2, 8, 20, 0.38); }
@media (max-width: 900px) {
	.hero-marquee {
		position: relative;
		left: auto;
		right: auto;
		max-width: none;
		height: 380px;
		margin-top: var(--sp-6);
	}
}

/* ---------- Hero zoom-out: the hero IS the device screen ---------- */
/* JS adds .is-armed to the hero and writes scroll progress into --zr (0→1) on
   .hero__sticky, which pins for the ride. The entire hero body (.hero__screen —
   text, collage, background) scales down by --s while the device bezel and base,
   whose position tracks --s, fade in around it; the caption appears last, then
   the hero releases and the page scrolls normally. On desktop the landscape
   viewport makes the shrunk screen laptop-shaped (bezel + keyboard base); on
   mobile the portrait screen reads as a PHONE instead — the mobile branch at the
   bottom of this section hides the base and turns the bezel into a phone body.
   Unarmed (reduced motion / no JS), the hero is a normal static section and the
   device layer stays hidden. */
.hero__laptop-layer { display: none; }
/* overflow must not be hidden here: a hidden-overflow ancestor turns the hero
   into the sticky's scrollport and the pin never engages. The armed sticky
   frame clips its own content instead. */
.hero.is-armed { height: 300vh; overflow: visible; }
.hero.is-armed .hero__sticky {
	--p1: clamp(0, calc(var(--zr, 0) / 0.55), 1);
	--p2: clamp(0, calc((var(--zr, 0) - 0.25) / 0.45), 1);
	--p3: clamp(0, calc((var(--zr, 0) - 0.72) / 0.23), 1);
	--s-end: 0.52;
	--s: calc(1 - (1 - var(--s-end)) * var(--p1));
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: hidden;
	/* backdrop revealed behind the shrinking screen */
	background: radial-gradient(60% 50% at 50% 45%, #0F2440, #060F1E 75%);
}
@media (min-width: 1700px) { .hero.is-armed .hero__sticky { --s-end: 0.46; } }
@media (min-width: 2300px) { .hero.is-armed .hero__sticky { --s-end: 0.38; } }
.hero.is-armed .hero__screen {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	padding-block: 0;
	transform: scale(var(--s));
	/* clip-path instead of border-radius: composited in Chrome, so the corner
	   rounding animates without repaints */
	clip-path: inset(0 round calc(30px * var(--p2, 0)));
	will-change: transform, clip-path;
}
.hero.is-armed .hero__screen > .container { width: 100%; }
.hero.is-armed .hero__laptop-layer {
	display: block;
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}
/* Soft glow blooming behind the laptop as it forms */
.hero.is-armed .hero__laptop-layer::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(48% 42% at 50% 52%, rgba(0, 194, 209, 0.16), transparent 72%);
	opacity: var(--p2, 0);
}
/* The laptop rig holds the bezel, base and caption laid out at their FINAL
   (settled) geometry, and the whole rig scales by --s / --s-end so it tracks
   the shrinking screen exactly. Everything animated here is transform or
   opacity — no per-frame layout or paint, which is what keeps it buttery. */
.hero__laptop-rig {
	position: absolute;
	inset: 0;
	transform: scale(calc(var(--s, 1) / var(--s-end, 0.52)));
	will-change: transform;
}
.zoom-reveal__bezel {
	position: absolute;
	inset: calc(50% * (1 - var(--s-end, 0.52)) - 18px);
	border-radius: 26px;
	background: #101418;
	border: 1px solid rgba(255, 255, 255, 0.09);
	box-shadow: 0 40px 90px rgba(2, 8, 20, 0.65), 0 0 70px rgba(0, 194, 209, 0.10);
	opacity: var(--p2, 0);
}
.zoom-reveal__base {
	position: absolute;
	top: calc(50% * (1 + var(--s-end, 0.52)) + 18px);
	left: calc(50% * (1 - var(--s-end, 0.52)) - 74px);
	right: calc(50% * (1 - var(--s-end, 0.52)) - 74px);
	height: 17px;
	border-radius: 3px 3px 16px 16px;
	background: linear-gradient(#39414A, #23272C 55%, #14171C);
	opacity: var(--p2, 0);
}
.zoom-reveal__base::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 13%;
	height: 7px;
	border-radius: 0 0 8px 8px;
	background: #14171C;
}
.zoom-reveal__caption {
	position: absolute;
	top: calc(50% * (1 + var(--s-end, 0.52)) + 64px);
	left: 0;
	right: 0;
	margin: 0;
	text-align: center;
	font-size: var(--fs-300);
	color: rgba(255, 255, 255, 0.7);
	opacity: var(--p3, 0);
	transform: translateY(calc(14px * (1 - var(--p3, 0))));
}
.zoom-reveal__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-right: 8px;
	font-family: var(--font-mono);
	font-size: var(--fs-200);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #7FE3EC;
	background: rgba(0, 194, 209, 0.10);
	border: 1px solid rgba(0, 194, 209, 0.28);
	border-radius: 999px;
	padding: 4px 12px;
}

/* On mobile the viewport is portrait, so the shrunk screen is naturally
   phone-shaped: drop the laptop keyboard base, round the bezel into a phone
   body, and add a speaker/camera pill + home indicator in the bezel frame.
   The .hero__screen stays block-flow so it keeps the normal stacked mobile
   hero layout (text above collage) as it recedes into the phone. */
@media (max-width: 900px) {
	.hero.is-armed .hero__screen { display: block; }
	/* Slightly chunkier frame than the laptop's 18px so it reads as a phone. */
	.hero.is-armed .zoom-reveal__bezel {
		inset: calc(50% * (1 - var(--s-end, 0.52)) - 22px);
		border-radius: 46px;
	}
	/* Speaker / camera pill, centred in the visible top frame strip. */
	.hero.is-armed .zoom-reveal__bezel::before {
		content: "";
		position: absolute;
		top: 7px;
		left: 50%;
		transform: translateX(-50%);
		width: 26%;
		height: 6px;
		border-radius: 999px;
		background: #05070B;
	}
	/* Home indicator, centred in the visible bottom frame strip. */
	.hero.is-armed .zoom-reveal__bezel::after {
		content: "";
		position: absolute;
		bottom: 7px;
		left: 50%;
		transform: translateX(-50%);
		width: 32%;
		height: 4px;
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.5);
	}
	.hero.is-armed .zoom-reveal__base { display: none; }
	.hero.is-armed .zoom-reveal__caption {
		top: calc(50% * (1 + var(--s-end, 0.52)) + 44px);
	}
}

/* ---------- Dark section (used mid-page + inner page heros) ---------- */
.section--dark {
	color: rgba(255, 255, 255, 0.74);
	background:
		radial-gradient(820px 460px at 88% -20%, rgba(0, 194, 209, 0.16), transparent 60%),
		radial-gradient(640px 420px at 2% 120%, rgba(14, 111, 255, 0.20), transparent 62%),
		var(--grad-ink);
	position: relative;
	overflow: hidden;
}
.section--dark::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(70% 90% at 50% 40%, black, transparent);
	pointer-events: none;
}
.section--dark > .container { position: relative; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lede { color: rgba(255, 255, 255, 0.68); }
.section--dark p { color: rgba(255, 255, 255, 0.74); }
.section--dark strong { color: #fff; }
.section--dark .eyebrow { background: rgba(0, 194, 209, 0.10); border-color: rgba(0, 194, 209, 0.28); color: #7FE3EC; }
.section--dark .btn--ghost { color: #4EC9FF; }
.section--dark a:not(.btn) { color: #4EC9FF; }

/* ---------- Section rhythm ---------- */
.section--tint {
	background:
		radial-gradient(900px 420px at 50% -10%, rgba(14, 111, 255, 0.05), transparent 65%),
		var(--paper-2);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: var(--fs-200);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pulse-d);
	background: var(--pulse-tint);
	border: 1px solid rgba(14, 111, 255, 0.16);
	border-radius: 999px;
	padding: 6px 14px;
	margin-bottom: var(--sp-4);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-scan); flex: none; }

/* ---------- Problem section ---------- */
.problem-close {
	text-align: center;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: var(--fs-700);
	color: var(--ink-900);
	max-width: 720px;
	margin: var(--sp-7) auto 0;
	position: relative;
	padding-top: var(--sp-5);
}
.problem-close::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 64px; height: 3px; border-radius: 3px; background: var(--grad-scan); }

/* ---------- Pillars ladder ---------- */
.ladder { position: relative; }
@media (min-width: 901px) {
	.ladder::before {
		content: "";
		position: absolute;
		top: 46px;
		left: 8%;
		right: 8%;
		height: 2px;
		background: linear-gradient(90deg, var(--scan), var(--pulse));
		opacity: 0.3;
	}
}

/* ---------- Capabilities ---------- */
.cap-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-bottom: var(--sp-6); }
.cap-tab {
	font: inherit;
	font-size: var(--fs-300);
	font-weight: 500;
	color: var(--ink-700);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 11px 19px;
	cursor: pointer;
	transition: all var(--t-fast) var(--ease);
	min-height: 44px;
	box-shadow: 0 1px 2px rgba(11, 27, 51, 0.05);
}
.cap-tab:hover { border-color: var(--pulse); color: var(--pulse); transform: translateY(-1px); }
.cap-tab[aria-selected="true"] { background: var(--grad-ink); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(11, 27, 51, 0.22); }
@media (max-width: 620px) {
	.cap-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: var(--sp-3); scroll-snap-type: x mandatory; }
	.cap-tab { flex: none; scroll-snap-align: start; }
}
.cap-panel { display: none; }
.cap-panel.is-active { display: block; animation: ywd-fade 300ms var(--ease); }
@keyframes ywd-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cap-panel__grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: var(--sp-6);
	align-items: start;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: var(--sp-6);
	box-shadow: 0 1px 2px rgba(11, 27, 51, 0.05);
}
@media (max-width: 900px) { .cap-panel__grid { grid-template-columns: 1fr; } }
.cap-panel__facts { list-style: none; padding: 0; margin: 0; }
.cap-panel__facts li { display: grid; grid-template-columns: 110px 1fr; gap: var(--sp-3); font-size: var(--fs-300); padding-block: var(--sp-3); border-bottom: 1px solid var(--line); margin: 0; }
.cap-panel__facts li:last-child { border-bottom: 0; }
.cap-panel__facts .k { font-family: var(--font-mono); font-size: var(--fs-200); color: var(--pulse-d); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }

/* Demo: quote calculator */
.demo-calc output { display: block; font-family: var(--font-mono); font-size: var(--fs-800); font-weight: 500; margin-top: var(--sp-3); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.demo-calc .demo-note, .demo-note { font-size: var(--fs-200); color: var(--ink-500); margin-top: var(--sp-3); }
.demo-calc .field { margin-bottom: var(--sp-3); }
.demo-calc input[type="range"] { width: 100%; accent-color: var(--pulse); }

/* Demo: map */
.demo-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); min-height: 300px; box-shadow: var(--shadow-card); }
.demo-map .leaflet-container { min-height: 300px; }

/* Demo: chat */
.demo-chat { display: flex; flex-direction: column; gap: var(--sp-3); max-height: 360px; overflow-y: auto; padding: var(--sp-4); background: var(--paper-2); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.demo-chat__msg { max-width: 85%; padding: var(--sp-3) var(--sp-4); border-radius: 16px; font-size: var(--fs-300); line-height: 1.5; box-shadow: 0 1px 2px rgba(11, 27, 51, 0.06); }
.demo-chat__msg--bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 5px; }
.demo-chat__msg--user { background: var(--grad-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.demo-chat__typing { align-self: flex-start; color: var(--ink-500); font-size: var(--fs-200); font-family: var(--font-mono); }

/* Workflow chain */
.flow { list-style: none; padding: 0; margin: 0; counter-reset: flow; }
.flow li {
	counter-increment: flow;
	position: relative;
	padding: var(--sp-3) 0 var(--sp-3) 54px;
	margin: 0;
	font-size: var(--fs-300);
	break-inside: avoid;
}
.flow li::before {
	content: counter(flow, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--font-mono);
	font-size: var(--fs-200);
	font-weight: 500;
	color: var(--pulse-d);
	background: linear-gradient(135deg, var(--scan-tint), var(--pulse-tint));
	border: 1px solid rgba(14, 111, 255, 0.14);
	border-radius: 10px;
	width: 40px;
	height: 32px;
	display: grid;
	place-items: center;
}
.flow li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 20px;
	top: calc(50% + 19px);
	height: 14px;
	width: 2px;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--line), transparent);
}
.flow strong { display: block; color: var(--ink-900); }
.flow--cols { columns: 2; column-gap: var(--sp-6); }
@media (max-width: 700px) { .flow--cols { columns: 1; } }

/* Before/after toggle */
.ba-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: var(--sp-5); background: #fff; box-shadow: 0 1px 2px rgba(11, 27, 51, 0.05); }
.ba-toggle button { font: inherit; font-size: var(--fs-300); font-weight: 600; border: 0; background: none; padding: 9px 20px; border-radius: 999px; cursor: pointer; color: var(--ink-500); min-height: 42px; transition: all var(--t-fast) var(--ease); }
.ba-toggle button[aria-pressed="true"] { background: var(--grad-ink); color: #fff; box-shadow: 0 4px 12px rgba(11, 27, 51, 0.2); }
.ba-list { list-style: none; padding: 0; margin: 0; }
.ba-list li { display: flex; gap: var(--sp-3); align-items: flex-start; padding-block: var(--sp-2); margin: 0; }
.ba-list .x { color: var(--crit); font-weight: 700; flex: none; }
.ba-list .t { color: var(--vital); font-weight: 700; flex: none; }
[data-ba-panel] { display: none; }
[data-ba-panel].is-active { display: block; animation: ywd-fade 300ms var(--ease); }

/* ---------- Process ---------- */
.process { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-5); position: relative; }
@media (min-width: 901px) {
	.process::before { content: ""; position: absolute; top: 24px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--scan), var(--pulse)); opacity: 0.25; }
}
@media (max-width: 900px) { .process { grid-template-columns: 1fr; } }
.process li { counter-increment: step; margin: 0; position: relative; padding-top: 64px; }
.process li::before {
	content: "0" counter(step);
	position: absolute;
	top: 0;
	font-family: var(--font-mono);
	font-weight: 500;
	color: #fff;
	font-size: var(--fs-300);
	letter-spacing: 0.06em;
	background: var(--grad-primary);
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	box-shadow: 0 8px 18px rgba(14, 111, 255, 0.26);
}
.process li:last-child::before { background: var(--grad-ink); box-shadow: 0 8px 18px rgba(11, 27, 51, 0.26); }
.process h3 { font-size: var(--fs-500); margin-bottom: var(--sp-2); }
.process p { font-size: var(--fs-300); color: var(--ink-500); margin: 0; }

/* ---------- Page hero (inner pages — dark opener) ---------- */
.page-hero {
	padding-block: var(--sp-8);
	color: rgba(255, 255, 255, 0.74);
	background:
		radial-gradient(820px 440px at 88% -25%, rgba(0, 194, 209, 0.20), transparent 60%),
		radial-gradient(640px 400px at -5% 130%, rgba(14, 111, 255, 0.24), transparent 62%),
		var(--grad-ink);
	position: relative;
	overflow: hidden;
}
.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(75% 95% at 55% 30%, black, transparent);
	pointer-events: none;
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad-scan); opacity: 0.55; }
.page-hero > .container { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero .lede { margin-bottom: 0; color: rgba(255, 255, 255, 0.70); }
.page-hero .eyebrow { background: rgba(0, 194, 209, 0.10); border-color: rgba(0, 194, 209, 0.28); color: #7FE3EC; }
.page-hero--center { text-align: center; }
.page-hero--center .lede { margin-inline: auto; }

/* Two-path chooser (e.g. fix vs build on the web development page) */
.path-choice {
	display: flex;
	gap: var(--sp-4);
	flex-wrap: wrap;
	margin-top: var(--sp-6);
}
.path-choice__opt {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	flex: 0 1 340px;
	min-width: 260px;
	padding: var(--sp-4) var(--sp-5);
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(4px);
	text-decoration: none;
	color: rgba(255, 255, 255, 0.72);
	transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.path-choice__opt:hover {
	background: rgba(255, 255, 255, 0.11);
	border-color: rgba(0, 194, 209, 0.65);
	color: rgba(255, 255, 255, 0.85);
	transform: translateY(-3px);
	box-shadow: 0 16px 40px rgba(2, 8, 20, 0.45), 0 0 30px rgba(0, 194, 209, 0.12);
}
.path-choice__icon {
	flex: none;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: rgba(0, 194, 209, 0.14);
	border: 1px solid rgba(0, 194, 209, 0.30);
	color: #7FE3EC;
}
.path-choice__text { display: flex; flex-direction: column; gap: 2px; }
.path-choice__text strong { color: #fff; font-family: var(--font-head); font-size: var(--fs-500); }
.path-choice__text small { font-size: var(--fs-200); color: rgba(255, 255, 255, 0.60); }
.path-choice__arrow { margin-left: auto; color: #4EC9FF; font-size: var(--fs-500); transition: transform var(--t-fast) var(--ease); }
.path-choice__opt:hover .path-choice__arrow { transform: translateX(4px); }

/* Landing highlight when a chooser option targets its pricing card */
.price-card { scroll-margin-top: 120px; }
.price-card:target { border-color: var(--scan); }
@media (prefers-reduced-motion: no-preference) {
	.price-card:target { animation: ywd-card-flash 1.6s var(--ease) 1; }
	@keyframes ywd-card-flash {
		0%, 60% { box-shadow: 0 0 0 3px rgba(0, 194, 209, 0.45), 0 24px 48px rgba(11, 27, 51, 0.14); }
		100% { box-shadow: 0 1px 2px rgba(11, 27, 51, 0.04); }
	}
}

/* ---------- Work filter ---------- */
.work-filter { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.work-filter button {
	font: inherit; font-size: var(--fs-300); font-weight: 500;
	background: #fff; color: var(--ink-700);
	border: 1px solid var(--line); border-radius: 999px;
	padding: 9px 18px; cursor: pointer; min-height: 42px;
	transition: all var(--t-fast) var(--ease);
	box-shadow: 0 1px 2px rgba(11, 27, 51, 0.05);
}
.work-filter button:hover { border-color: var(--pulse); color: var(--pulse); }
.work-filter button[aria-pressed="true"] { background: var(--grad-primary); border-color: transparent; color: #fff; box-shadow: var(--shadow-btn); }

/* ---------- Case study single ---------- */
.cs-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); margin-block: var(--sp-6); }
@media (max-width: 620px) { .cs-facts { grid-template-columns: 1fr; } }
.cs-facts dt { font-family: var(--font-mono); font-size: var(--fs-200); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-500); margin-bottom: var(--sp-1); }
.cs-facts dd { margin: 0; font-weight: 600; color: var(--ink-900); }
.cs-quote { border: 0; border-left: 3px solid transparent; border-image: var(--grad-scan) 1; padding: var(--sp-4) var(--sp-5); background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0; margin: var(--sp-6) 0; }
.cs-quote p { font-size: var(--fs-500); color: var(--ink-900); font-style: italic; }
.cs-quote cite { font-style: normal; font-size: var(--fs-300); color: var(--ink-500); }

/* ---------- Diagnosis quiz ---------- */
.quiz { max-width: 660px; margin-inline: auto; }
.quiz__progress { height: 8px; background: #E9EFF7; border-radius: 999px; margin-bottom: var(--sp-6); overflow: hidden; box-shadow: inset 0 1px 2px rgba(11, 27, 51, 0.06); }
.quiz__progress-fill { height: 100%; background: var(--grad-scan); border-radius: 999px; width: 0; transition: width var(--t-med) var(--ease); }
.quiz__step-label { font-family: var(--font-mono); font-size: var(--fs-200); color: var(--ink-500); margin-bottom: var(--sp-3); text-transform: uppercase; letter-spacing: 0.1em; }
.quiz__question { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-700); color: var(--ink-900); margin-bottom: var(--sp-5); }
.quiz__options { display: grid; gap: var(--sp-3); }
.quiz-option {
	display: flex; align-items: center; gap: var(--sp-3);
	font: inherit; font-size: var(--fs-400); font-weight: 500; color: var(--ink-900); text-align: left;
	background: #fff; border: 1px solid var(--line); border-radius: 12px;
	padding: var(--sp-4) var(--sp-5); min-height: 58px; cursor: pointer;
	transition: all var(--t-fast) var(--ease);
	box-shadow: 0 1px 2px rgba(11, 27, 51, 0.04);
}
.quiz-option:hover { border-color: var(--pulse); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14, 111, 255, 0.12); }
.quiz-option[aria-pressed="true"] { border-color: var(--pulse); background: var(--pulse-tint); box-shadow: inset 0 0 0 1px var(--pulse); }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); margin-top: var(--sp-6); }
.quiz__back { background: none; border: 0; font: inherit; color: var(--ink-500); cursor: pointer; padding: var(--sp-2); }
.quiz__back:hover { color: var(--ink-900); }
.quiz__result { text-align: left; }
.quiz__result .diag-panel { margin-block: var(--sp-5); }

/* ---------- Insights list ---------- */
.post-card { border-bottom: 1px solid var(--line); padding-block: var(--sp-5); }
.post-card:first-child { padding-top: 0; }
.post-card__meta { font-family: var(--font-mono); font-size: var(--fs-200); color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-2); }
.post-card h3 a { color: var(--ink-900); text-decoration: none; }
.post-card h3 a:hover { color: var(--pulse); }

/* ---------- Contact split ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-8); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); align-self: start; }
.contact-aside ul { list-style: none; padding: 0; }
.contact-aside li { padding-block: var(--sp-2); }
