/* Rocketship — "Precision" direction.
   Light, gridded, engineered: condensed display type, blue with an amber partner,
   tight 8px radii, mono annotations. */

:root {
	--bg: #f7f8fa;
	--surface: #ffffff;
	--surface-2: #ebedf0;
	--text: #111827;
	--muted: #374151;
	--soft: #6b7280;
	--faint: #b6bcc6;
	--line: #e2e5ea;
	--line-strong: #c9ced6;
	--accent: #0047ab;
	--accent-strong: #0047ab;
	--accent-deep: #00388a;
	--accent-text: #0047ab; /* the blue as type: links, stats, numerals */
	--accent-pale: #eef3fb;
	--accent-line: #b3c8ea;
	--accent-edge: #8aa9dc;
	--accent-soft: #d6e2f5;
	--accent-2: #f59e0b;
	--accent-2-soft: #fef3c7;
	--accent-2-ink: #92400e;
	--yes-soft: #d1fae5;
	--on-accent: #ffffff;
	--glass: rgb(255 255 255 / 0.7); /* ghost buttons, rating pill */
	--glow-1: #93c5fd;
	--glow-2: #fcd34d;
	--sk: #e3e7ed; /* node sketch greys and blues */
	--sk-blue: #93c5fd;
	--sk-blue-2: #bfdbfe;
	--sk-blue-3: #dbeafe;
	--shade: #111827; /* ink for hairline grids */

	--font-display: var(--font-sora);
	--font-body: var(--font-sora);
	--font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
	--display-weight: 300;
	--display-tracking: -0.03em;

	--radius: 8px;
	--radius-lg: 14px;
	--shadow-sm: 0 1px 2px rgb(17 24 39 / 0.06);
	--shadow: 0 1px 2px rgb(17 24 39 / 0.05), 0 8px 24px -8px rgb(17 24 39 / 0.12);
	--shadow-lg: 0 2px 4px rgb(17 24 39 / 0.04), 0 24px 60px -16px rgb(17 24 39 / 0.22);

	--gutter: clamp(16px, 4vw, 48px);
	--max: 1280px;
	--topbar-h: 72px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);

	color-scheme: light;
}

/* Dark: the agency prototype's "future" night, tinted blue instead of green.
   The brand blue stays #0047AB for fills; type uses a lighter step of it so
   links and stats stay readable on the night ground. */
:root[data-theme="dark"] {
	--bg: #060d1a;
	--surface: #0e1a2e;
	--surface-2: #14243d;
	--text: #f1f4fa;
	--muted: #c3ccda;
	--soft: #8d99ad;
	--faint: #4a5872;
	--line: #1e2f4a;
	--line-strong: #2d4266;
	--accent: #3d7be0;
	--accent-deep: #1a5cc4;
	--accent-text: #7fa8ec;
	--accent-pale: #0f2248;
	--accent-line: #22427a;
	--accent-edge: #2f5799;
	--accent-soft: #163063;
	--accent-2-soft: rgb(245 158 11 / 0.16);
	--accent-2-ink: #fcd34d;
	--yes-soft: rgb(52 211 153 / 0.18);
	--glass: rgb(255 255 255 / 0.04);
	--glow-1: #0047ab;
	--glow-2: #1e3a8a;
	--sk: #1b2a44;
	--sk-blue: #24508f;
	--sk-blue-2: #1d3f73;
	--sk-blue-3: #17305a;
	--shade: #c8d7f5;

	--shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
	--shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -8px rgb(0 0 0 / 0.5);
	--shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 24px 60px -16px rgb(0 0 0 / 0.6);

	color-scheme: dark;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: var(--topbar-h);
}

body {
	margin: 0;
	background: var(--bg);
	font-weight: 300;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

::selection {
	background: var(--accent-line);
	color: var(--text);
}
input,
textarea {
	caret-color: var(--accent-strong);
}
a {
	text-underline-offset: 0.2em;
}

img,
video,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
	margin: 0;
	padding: 0;
}

ul,
ol {
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--accent-strong);
	outline-offset: 3px;
	border-radius: 4px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip {
	position: fixed;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--text);
	color: var(--bg);
	border-radius: var(--radius);
}
.skip:focus {
	top: 16px;
}

.container {
	width: 100%;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.display {
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	line-height: 1;
	letter-spacing: var(--display-tracking);
}

.fit {
	display: inline-block;
	width: max-content;
	max-width: none;
}

.mono {
	font-family: var(--font-mono);
	font-weight: 400;
	letter-spacing: 0.02em;
}

.key {
	color: var(--accent-text);
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: var(--radius);
	border: 1px solid transparent;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	cursor: pointer;
	transition:
		background-color 0.2s,
		border-color 0.2s,
		transform 0.2s var(--ease),
		box-shadow 0.2s;
}
.btn svg {
	transition: transform 0.2s var(--ease);
	flex: none;
}
.btn:hover svg {
	transform: translateX(3px);
}
.btn-primary {
	background: var(--accent-strong);
	color: var(--on-accent);
	box-shadow: 0 1px 0 rgb(255 255 255 / 0.25) inset, 0 6px 16px -6px rgb(11 18 32 / 0.35);
}
.btn-primary:hover {
	background: var(--accent-deep);
}
.btn-ghost {
	background: var(--glass);
	border-color: var(--line-strong);
	color: var(--text);
}
.btn-ghost:hover {
	border-color: var(--text);
	background: var(--surface);
}

/* ---------- Section heads, flags ---------- */

.section-h {
	font-weight: 200;
	font-size: clamp(64px, 11vw, 168px);
	margin-bottom: clamp(32px, 4vw, 56px);
}
.section-h.small {
	font-size: clamp(52px, 7.4vw, 112px);
	margin-bottom: 18px;
}

.confirm {
	display: inline-block;
	vertical-align: middle;
	margin-left: 6px;
	padding: 2px 6px;
	border-radius: 3px;
	background: #fcd34d;
	color: #451a03;
	font-family: var(--font-mono);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
	white-space: nowrap;
}

.avatar {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent-pale), var(--surface-2));
	border: 1px solid var(--accent-line);
	color: var(--accent-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.avatar.small {
	width: 36px;
	height: 36px;
	font-size: 11px;
}

/* ---------- Cursor glow ----------
   Dark theme only: a soft light that follows the mouse, as on the agency
   prototype. Positioned by script; never shown on touch screens. */

.cursor-glow {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 60;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 60%);
	mix-blend-mode: screen;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.6s;
	will-change: transform;
}
:root[data-theme="dark"] .cursor-glow.on {
	opacity: 1;
}

/* ---------- Top bar ---------- */

.topbar {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: var(--topbar-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-inline: var(--gutter);
	transition:
		background-color 0.3s,
		box-shadow 0.3s;
}
.topbar.stuck {
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	box-shadow: 0 1px 0 var(--line);
}
.topbar nav {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.4vw, 36px);
	font-size: 15px;
	font-weight: 500;
}
.topbar nav a:not(.btn) {
	color: var(--muted);
	transition: color 0.2s;
}
.nav-links {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.4vw, 36px);
}
.topbar nav a[aria-current="page"] {
	color: var(--text);
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}
.menu-btn {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
}
.topbar nav a:not(.btn):hover {
	color: var(--text);
}
.theme-btn {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 50;
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--glass);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: var(--muted);
	cursor: pointer;
	transition:
		color 0.2s,
		border-color 0.2s;
}
@media (max-width: 640px) {
	.theme-btn {
		left: 16px;
		bottom: 16px;
	}
}
.theme-btn:hover {
	color: var(--text);
	border-color: var(--line-strong);
}
.theme-btn .moon,
:root[data-theme="dark"] .theme-btn .sun {
	display: none;
}
:root[data-theme="dark"] .theme-btn .moon {
	display: block;
}
.nav-cta {
	white-space: nowrap;
	min-height: 40px;
	padding: 9px 16px;
	font-size: 15px;
}

.cta-short {
	display: none;
}
@media (max-width: 440px) {
	.cta-long {
		display: none;
	}
	.cta-short {
		display: inline;
	}
}

.wordmark {
	display: inline-flex;
	align-items: center;
}
.wordmark img {
	height: 30px;
	width: auto;
}
.wordmark .on-dark,
:root[data-theme="dark"] .wordmark .on-light {
	display: none;
}
:root[data-theme="dark"] .wordmark .on-dark {
	display: block;
}
@media (max-width: 640px) {
	.wordmark img {
		height: 24px;
	}
}

/* ---------- Backdrop ---------- */

.backdrop {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	background: var(--bg);
}
.backdrop-cols {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	padding-inline: var(--gutter);
}
.backdrop-cols span {
	border-left: 1px solid color-mix(in srgb, var(--shade) 5%, transparent);
}
.backdrop-cols span:last-child {
	border-right: 1px solid color-mix(in srgb, var(--shade) 5%, transparent);
}
.glow {
	position: absolute;
	width: 60vw;
	height: 60vw;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.35;
}
.glow-blue {
	right: -18vw;
	top: -24vw;
	background: radial-gradient(circle, var(--glow-1), transparent 65%);
}
.glow-amber {
	left: -22vw;
	bottom: -30vw;
	background: radial-gradient(circle, var(--glow-2), transparent 65%);
	opacity: 0.25;
}

/* ---------- Hero ----------
   Split: copy on the left, a 3D device on the right that spins between a
   laptop and a phone to show client work. Recreated from the agency
   prototype's "future" hero. The device is always dark hardware; only the
   ground behind it follows the theme. */

.hero {
	--hero-a: #7fa8ec; /* accent on the device's dark screens */
	/* Device shell: space grey on the light theme, aluminium on dark. */
	--metal: linear-gradient(150deg, #3a3a4a, #1c1c26 60%, #2b2b38);
	--metal-rim: linear-gradient(150deg, #3a3a4a, #1c1c26 60%, #2b2b38);
	--metal-deck: linear-gradient(#4a4a5c, #2a2a36);
	--metal-under: linear-gradient(#2a2a36, #16161e);
	--metal-line: rgb(255 255 255 / 0.12);
	--metal-mark: rgb(255 255 255 / 0.55);
	--metal-keys: rgb(0 0 0 / 0.35);
	--metal-pad: rgb(0 0 0 / 0.22);
	position: relative;
	min-height: max(100svh, 640px);
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: 5vw; /* room for the laptop's base as it swings toward the copy */
	padding: calc(var(--topbar-h) + 24px) max(var(--gutter), calc(50vw - 660px)) 64px;
	overflow: hidden;
	isolation: isolate;
}
.hero-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(165deg, #e3ebfb 0%, #f0f4fc 45%, var(--bg) 100%);
}
:root[data-theme="dark"] .hero-bg {
	background: linear-gradient(165deg, #0f2347 0%, #0a1830 45%, var(--bg) 100%);
}

.hero-copy {
	justify-self: start;
	max-width: 640px;
	will-change: transform, opacity;
}
.hero-copy > * {
	animation: hero-in 0.55s var(--ease) backwards;
}
.hero-copy > .hero-ctas {
	animation-delay: 0.12s;
}
/* The headline and subhead paint at once: they are what visitors read first,
   and fading them in delays Largest Contentful Paint. */
.hero-copy > h1,
.hero-copy > .hero-sub {
	animation: none;
}
@keyframes hero-in {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
}

.hero-rating {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-bottom: 28px;
	padding: 8px 16px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	border: 1px solid var(--line);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--muted);
}
.hero-stars {
	color: #f5b301;
	letter-spacing: 2px;
	font-size: 14px;
}
.hero-rating a {
	white-space: nowrap;
	transition: color 0.2s;
}
.hero-rating a:hover {
	color: var(--text);
}
.hero-rating b {
	color: var(--text);
	font-weight: 700;
}
.hero-rating .sep {
	opacity: 0.4;
}

.hero-h1 {
	font-size: clamp(40px, 3.9vw, 66px);
	line-height: 1.02;
	text-wrap: balance;
}
.hero-sub {
	margin-top: 24px;
	max-width: 54ch;
	font-size: clamp(16px, 1.25vw, 19px);
	line-height: 1.55;
	color: var(--muted);
	text-wrap: pretty;
}
.hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}
/* The hero's buttons are the prototype's big pills. */
.hero-ctas .btn {
	min-height: 58px;
	padding: 14px 28px;
	border-radius: 999px;
	font-size: 18px;
	font-weight: 600;
}
.hero-ctas .btn-ghost {
	background: transparent;
	border: 1.5px solid color-mix(in srgb, var(--text) 28%, transparent);
}
.hero-ctas .btn-ghost:hover {
	border-color: var(--accent);
	background: transparent;
}
.hero-ctas .btn-ghost:hover svg {
	transform: translateY(3px);
}

/* Device: one box that is a laptop or a phone. --u scales everything. */
.dm-wrap {
	--u: clamp(4.4px, min(0.6vw, 0.95svh), 11px);
	--dm-shift: calc(var(--u) * -3);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	place-items: center;
	will-change: transform, opacity;
}
.dm {
	position: relative;
	width: calc(var(--u) * 66);
	height: calc(var(--u) * 56);
	perspective: calc(var(--u) * 260);
	display: grid;
	place-items: center;
	animation: dm-bob 6s ease-in-out infinite;
}
@keyframes dm-bob {
	50% {
		translate: 0 calc(var(--u) * -1.4);
	}
}
.dm-device {
	--t: calc(var(--u) * 0.7);
	--rest: 20deg; /* resting turn; the phone faces the other way */
	position: relative;
	display: grid;
	place-items: center;
	transform-style: preserve-3d;
	rotate: x -14deg;
	transform: rotateY(var(--rest));
	/* Centre the ±20° swing between the copy and the window edge. */
	left: var(--dm-shift);
}
.dm-screen {
	position: relative;
	width: calc(var(--u) * 56);
	height: calc(var(--u) * 35);
	transform-style: preserve-3d;
	transition:
		width 0.45s cubic-bezier(0.6, 0, 0.3, 1),
		height 0.45s cubic-bezier(0.6, 0, 0.3, 1);
}
.dm-device.is-phone {
	--t: calc(var(--u) * 1.5);
	--rest: -20deg;
}
.is-phone .dm-screen {
	width: calc(var(--u) * 21);
	height: calc(var(--u) * 44);
}
.dm-face {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: calc(var(--u) * 1.4);
	backface-visibility: hidden;
	transition: border-radius 0.45s;
}
.is-phone .dm-face {
	border-radius: calc(var(--u) * 3.4);
}
.dm-front {
	transform: translateZ(calc(var(--t) / 2));
	padding: var(--u);
	background: #0b0b14;
	box-shadow:
		0 0 0 1px rgb(255 255 255 / 0.12) inset,
		0 calc(var(--u) * 3) calc(var(--u) * 8) rgb(0 35 90 / 0.45);
}
.dm-shot {
	position: absolute;
	inset: var(--u);
	width: calc(100% - var(--u) * 2);
	height: calc(100% - var(--u) * 2);
	object-fit: cover;
	object-position: center top;
	border-radius: calc(var(--u) * 0.5);
	opacity: 0;
	user-select: none;
	transition:
		opacity 0.25s,
		border-radius 0.45s;
}
.dm-shot.on {
	opacity: 1;
}
.is-phone .dm-shot {
	inset: calc(var(--u) * 0.9);
	width: calc(100% - var(--u) * 1.8);
	height: calc(100% - var(--u) * 1.8);
	border-radius: calc(var(--u) * 2.6);
}
.dm-notch {
	position: absolute;
	top: calc(var(--u) * 1.6);
	left: 50%;
	width: calc(var(--u) * 6);
	height: calc(var(--u) * 1.7);
	translate: -50%;
	border-radius: 99px;
	background: #0b0b14;
	opacity: 0;
	transition: opacity 0.3s;
}
.is-phone .dm-notch {
	opacity: 1;
}
.dm-back {
	display: grid;
	place-items: center;
	transform: rotateY(180deg) translateZ(calc(var(--t) / 2));
	background: var(--metal);
	box-shadow: 0 0 0 1px var(--metal-line) inset;
}
.dm-logo {
	width: calc(var(--u) * 5);
	color: var(--metal-mark);
}
/* The rim: rounded copies of the body stacked between front and back, so
   the edge follows the corners instead of square slabs poking out. */
.dm-layer {
	position: absolute;
	inset: 0;
	border-radius: calc(var(--u) * 1.4);
	background: var(--metal-rim);
	transform: translateZ(calc(var(--t) / 2 - var(--t) * var(--z) / 11));
	transition: border-radius 0.45s;
}
.is-phone .dm-layer {
	border-radius: calc(var(--u) * 3.4);
}
.dm-base {
	position: absolute;
	left: 50%;
	top: calc(50% + var(--u) * 17.5);
	width: calc(var(--u) * 56);
	height: calc(var(--u) * 34);
	margin-left: calc(var(--u) * -28);
	transform-origin: center top;
	transform: rotateX(96deg);
	transform-style: preserve-3d;
	border-radius: calc(var(--u) * 1.2) calc(var(--u) * 1.2) calc(var(--u) * 2) calc(var(--u) * 2);
	background: var(--metal-deck);
	box-shadow: 0 0 0 1px var(--metal-line) inset;
	transition:
		opacity 0.3s,
		transform 0.45s cubic-bezier(0.6, 0, 0.3, 1);
}
/* Safari doesn't pass a preserve-3d parent's opacity on to its 3D children
   (the slabs), so the folded-away base is also hidden outright once faded. */
.is-phone .dm-base {
	opacity: 0;
	visibility: hidden;
	transform: rotateX(96deg) scale(0.3);
	transition:
		opacity 0.3s,
		transform 0.45s cubic-bezier(0.6, 0, 0.3, 1),
		visibility 0s 0.3s;
}
.dm-keys {
	position: absolute;
	inset: 8% 7% 42%;
	border-radius: calc(var(--u) * 0.6);
	background:
		repeating-linear-gradient(90deg, var(--metal-keys) 0 calc(var(--u) * 3.4), transparent calc(var(--u) * 3.4) calc(var(--u) * 3.8)),
		repeating-linear-gradient(0deg, var(--metal-keys) 0 calc(var(--u) * 2.6), transparent calc(var(--u) * 2.6) calc(var(--u) * 3));
	opacity: 0.8;
}
.dm-pad {
	position: absolute;
	left: 35%;
	right: 35%;
	bottom: 9%;
	height: 28%;
	border-radius: calc(var(--u) * 0.8);
	background: var(--metal-pad);
}
/* The base's thickness, built the same way as the rim. */
.dm-slab {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--metal-under);
	transform: translateZ(calc(var(--u) * -0.26 * var(--z)));
}
.dm-floor {
	position: absolute;
	left: 50%;
	bottom: 4%;
	width: 70%;
	height: 12%;
	translate: -50%;
	border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
	filter: blur(calc(var(--u) * 2));
}
.dm-caption {
	position: relative;
	left: var(--dm-shift); /* sit under the device, not the box */
	min-height: 2.9em;
	max-width: 44ch;
	margin-top: calc(var(--u) * 0.5);
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--muted);
}
.dm-caption span {
	display: inline-block;
	transition:
		opacity 0.3s,
		transform 0.3s var(--ease);
}
.dm-caption span.out {
	opacity: 0;
	transform: translateY(6px);
}
.dm-caption strong {
	color: var(--text);
	font-weight: 600;
}

/* Screen: pipeline report */
.dm-dash {
	overflow: hidden;
	background: #0f0f1a;
}
.rd {
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	gap: calc(var(--u) * 1.2);
	height: 100%;
	padding: calc(var(--u) * 1.6);
	font-size: calc(var(--u) * 1.05);
	font-weight: 500;
	line-height: 1.3;
	color: #c9c9da;
}
.rd-top {
	display: flex;
	align-items: center;
	gap: calc(var(--u) * 0.8);
	padding-bottom: var(--u);
	border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.rd-dot {
	width: calc(var(--u) * 0.9);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--hero-a);
	box-shadow: 0 0 var(--u) var(--hero-a);
}
.rd-title {
	font-weight: 600;
	color: #fff;
}
.rd-client {
	margin-left: auto;
	opacity: 0.7;
}
.rd-kpis {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--u);
}
.rd-kpi {
	display: grid;
	gap: calc(var(--u) * 0.4);
	padding: calc(var(--u) * 1.1);
	border-radius: calc(var(--u) * 0.8);
	background: rgb(255 255 255 / 0.04);
	box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07) inset;
}
.rd-kpi b {
	font-family: var(--font-display);
	font-size: calc(var(--u) * 3);
	font-weight: 600;
	line-height: 1;
	color: #fff;
}
.rd-kpi.hot b {
	color: var(--hero-a);
}
.rd-chart {
	display: grid;
	grid-template-rows: auto 1fr;
	gap: calc(var(--u) * 0.8);
	min-height: 0;
	padding: calc(var(--u) * 1.1);
	border-radius: calc(var(--u) * 0.8);
	background: rgb(255 255 255 / 0.03);
}
.rd-label {
	opacity: 0.75;
}
.rd-bars {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: calc(var(--u) * 3);
	min-height: 0;
}
.rd-bar {
	flex: 0 1 calc(var(--u) * 12);
	display: grid;
	grid-template-rows: 1fr auto;
	gap: calc(var(--u) * 0.5);
	height: 100%;
	text-align: center;
}
.rd-bar i {
	align-self: end;
	height: calc(var(--v) * 100%);
	border-radius: calc(var(--u) * 0.5) calc(var(--u) * 0.5) 0 0;
	background: rgb(255 255 255 / 0.18);
	transform-origin: center bottom;
	transform: scaleY(0.04);
	transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s;
}
.rd-bar.hot i {
	background: linear-gradient(180deg, var(--hero-a), #0047ab);
	box-shadow: 0 0 calc(var(--u) * 2) color-mix(in srgb, var(--hero-a) 35%, transparent);
}
.on .rd-bar i {
	transform: scaleY(1);
}
.rd-src {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: calc(var(--u) * 0.6);
}
.rd-src span {
	padding: calc(var(--u) * 0.4) calc(var(--u) * 0.9);
	border-radius: 99px;
	background: color-mix(in srgb, var(--hero-a) 16%, transparent);
	color: #fff;
}
.rd-src em {
	font-style: normal;
	opacity: 0.75;
}

/* Screen: phone lock screen with an automated email */
.em {
	height: 100%;
	padding: calc(var(--u) * 5) calc(var(--u) * 1.4) calc(var(--u) * 1.6);
	background:
		radial-gradient(120% 70% at 50% 0%, rgb(0 71 171 / 0.75), transparent 60%),
		linear-gradient(180deg, #0c1d3d, #0f0f1a 70%);
	color: #fff;
	font-size: calc(var(--u) * 0.95);
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
}
.em-time {
	font-family: var(--font-display);
	font-size: calc(var(--u) * 5.2);
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.02em;
}
.em-date {
	margin: calc(var(--u) * 0.4) 0 calc(var(--u) * 2.4);
	opacity: 0.8;
}
.em-note {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: start;
	gap: calc(var(--u) * 0.8);
	padding: var(--u);
	border-radius: calc(var(--u) * 1.4);
	background: rgb(255 255 255 / 0.16);
	text-align: left;
	opacity: 0;
	transform: translateY(-40%) scale(0.96);
	transition:
		opacity 0.5s 0.5s,
		transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.5s;
}
.em-app {
	display: grid;
	place-items: center;
	width: calc(var(--u) * 2.6);
	aspect-ratio: 1;
	border-radius: calc(var(--u) * 0.7);
	background: var(--hero-a);
	color: #0a0a0f;
	font-size: calc(var(--u) * 1.4);
}
.em-note-text {
	display: grid;
	gap: calc(var(--u) * 0.2);
}
.em-note-text span {
	opacity: 0.85;
}
.em-now {
	opacity: 0.65;
}
.em-mail {
	display: grid;
	gap: calc(var(--u) * 0.7);
	margin-top: calc(var(--u) * 1.2);
	padding: calc(var(--u) * 1.3);
	border-radius: calc(var(--u) * 1.4);
	background: #fff;
	color: #14141c;
	text-align: left;
	opacity: 0;
	transform: translateY(12%);
	transition:
		opacity 0.5s 1.6s,
		transform 0.6s 1.6s;
}
.em-tag {
	justify-self: start;
	padding: calc(var(--u) * 0.25) calc(var(--u) * 0.7);
	border-radius: 99px;
	background: #d6e2f5;
	color: #0047ab;
	font-size: calc(var(--u) * 0.8);
	font-weight: 600;
}
.em-subj {
	font-size: calc(var(--u) * 1.25);
	line-height: 1.2;
}
.em-mail i {
	height: calc(var(--u) * 0.55);
	border-radius: 99px;
	background: #e3e3ea;
}
.em-mail i.s {
	width: 60%;
}
.em-btn {
	justify-self: start;
	margin-top: calc(var(--u) * 0.4);
	padding: calc(var(--u) * 0.6) calc(var(--u) * 1.3);
	border-radius: 99px;
	background: #0047ab;
	color: #fff;
	font-weight: 600;
}
.on .em-note,
.on .em-mail {
	opacity: 1;
	transform: none;
}

.hero-pause {
	position: absolute;
	right: var(--gutter);
	bottom: 24px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: color-mix(in srgb, var(--surface) 75%, transparent);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}
.hero-pause:hover {
	border-color: var(--accent);
}
.pause-icon {
	font-size: 10px;
}

:root[data-theme="dark"] .hero {
	--metal: linear-gradient(150deg, #eef0f4, #c9cdd5 55%, #dfe2e8);
	--metal-rim: linear-gradient(150deg, #c4c8d0, #9da2ad 55%, #b5b9c2);
	--metal-deck: linear-gradient(#e4e7ec, #c3c7cf);
	--metal-under: linear-gradient(#b3b7c0, #8e939d);
	--metal-line: rgb(255 255 255 / 0.5);
	--metal-mark: rgb(40 44 54 / 0.35);
	--metal-keys: rgb(30 33 40 / 0.78);
	--metal-pad: rgb(30 33 40 / 0.1);
}

@media (max-width: 1023px) {
	.hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		min-height: 0;
		padding: calc(var(--topbar-h) + 48px) var(--gutter) 72px;
	}
	/* Stacked: the device leads, then the copy. */
	.dm-wrap {
		--u: clamp(4.4px, 1.3vw, 10px);
		/* Centred in the column: the desktop shift would push the caption left. */
		--dm-shift: 0px;
		order: -1;
		margin-bottom: 16px;
	}
	/* The laptop rests turned 20° and leans right; nudge it back to the centre.
	   The phone rests turned the other way and is already centred. */
	.dm-device {
		transition: left 0.45s cubic-bezier(0.6, 0, 0.3, 1);
	}
	.dm-device.is-laptop {
		left: calc(var(--u) * -6);
	}
}
@media (max-width: 640px) {
	.dm-wrap {
		--u: clamp(4px, 1.15vw, 10px);
	}
	.hero-rating {
		border-radius: 18px;
		padding: 8px 12px;
	}
	.hero-ctas .btn {
		width: 100%;
		min-height: 54px;
		font-size: 17px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.dm {
		animation: none;
	}
}

/* ---------- Work ---------- */

.work {
	position: relative;
	padding-block: clamp(80px, 10vw, 140px) clamp(60px, 8vw, 120px);
}
.work-sub-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.work-sub {
	font-size: clamp(17px, 1.6vw, 21px);
	color: var(--muted);
}
.row-controls {
	display: flex;
	gap: 12px;
}
.row-btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	transition:
		border-color 0.2s,
		opacity 0.2s;
}
.row-btn:not(:disabled):hover {
	border-color: var(--text);
}
.row-btn:disabled {
	opacity: 0.4;
	box-shadow: none;
	border-color: var(--line);
	cursor: default;
}
/* Touch screens swipe; the buttons are for mouse users. */
@media (hover: none) and (pointer: coarse) {
	.row-controls {
		display: none;
	}
}
/* Both rows live in one scroller, so they always move together. */
.work-rows {
	margin-top: clamp(36px, 5vw, 64px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
	/* Edge fades hint at more cards; the script toggles each side. */
	--fade-l: 0px;
	--fade-r: 0px;
	mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}
.work-rows.can-left {
	--fade-l: 120px;
}
.work-rows.can-right {
	--fade-r: 160px;
}
.work-rows::-webkit-scrollbar {
	display: none;
}
.work-track {
	display: grid;
	gap: 24px;
	width: max-content;
	padding: 8px max(var(--gutter), calc((100vw - var(--max)) / 2)) 16px;
}
.site-row {
	display: flex;
	gap: 24px;
}
.site-card {
	flex: none;
	width: clamp(280px, 30vw, 420px);
	scroll-snap-align: start;
}
.site-card a {
	display: block;
	height: 100%;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
	transition:
		transform 0.3s var(--ease),
		box-shadow 0.3s;
}
.site-card a:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}
.site-bar {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 9px 12px;
	background: var(--surface-2);
	border-bottom: 1px solid var(--line);
	font-size: 11px;
	color: var(--soft);
}
.site-bar i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--line-strong);
}
.site-bar span {
	margin-left: 8px;
	padding: 2px 10px;
	border-radius: 4px;
	background: var(--surface);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.site-img {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--surface-2);
}
.site-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	transition: transform 0.6s var(--ease);
}
.site-card a:hover .site-img img {
	transform: scale(1.03);
}
.site-meta {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 12px;
	padding: 16px 18px 18px;
}
.site-meta strong {
	font-size: 26px;
	line-height: 1;
}
.site-line {
	grid-column: 1;
	font-size: 14px;
	color: var(--muted);
}
.site-go {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: end;
	color: var(--accent-text);
}
.site-result {
	grid-column: 1 / -1;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed var(--line);
	font-size: 14px;
	color: var(--muted);
}
.site-result b {
	color: var(--accent-text);
	font-size: 16px;
	margin-right: 4px;
}

/* ---------- The system (pinned scroll story) ---------- */

.eco {
	position: relative;
}
.eco-pinned {
	position: relative;
	height: calc(var(--steps) * 72svh + 100svh);
}
.eco-stage {
	position: sticky;
	top: 0;
	height: 100svh;
	overflow: hidden;
	background: var(--bg);
}
.eco-canvas-clip {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.eco-canvas {
	position: absolute;
	left: 0;
	top: 0;
	width: 2400px;
	height: 1500px;
	transform-origin: 0 0;
	transition: transform 0.9s var(--ease);
	will-change: transform;
}
.eco-grid {
	position: absolute;
	inset: -1200px;
	background-image:
		linear-gradient(color-mix(in srgb, var(--shade) 7%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--shade) 7%, transparent) 1px, transparent 1px);
	background-size: 60px 60px;
}
.eco-wires {
	position: absolute;
	inset: 0;
	overflow: visible;
	pointer-events: none;
}
.wire {
	opacity: 0;
	transition: opacity 0.6s;
}
.wire.on {
	opacity: 1;
}
.wire path {
	fill: none;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 1.1s var(--ease);
}
.wire-core {
	stroke: var(--accent);
	stroke-width: 3;
}
.wire-glow {
	stroke: color-mix(in srgb, var(--accent) 18%, transparent);
	stroke-width: 14;
}
.wire-thick .wire-core {
	stroke-width: 6;
}
.wire-loop .wire-core {
	stroke: var(--accent-2);
	stroke-dasharray: 0.012 0.008;
}
.wire-loop .wire-glow {
	stroke: rgb(245 158 11 / 0.16);
}
.wire.on path {
	stroke-dashoffset: 0;
}
.wire-loop.on .wire-core {
	animation: march 18s linear infinite;
}
@keyframes march {
	to {
		stroke-dashoffset: -1;
	}
}

.node {
	position: absolute;
	transition:
		transform 0.9s var(--ease),
		opacity 0.6s;
	transform: translate(var(--sx, 0), var(--sy, 0)) rotate(var(--sr, 0deg));
	opacity: 0.35;
}
.eco[data-step="0"] .node {
	opacity: 0.5;
}
/* The scatter offsets are set inline, so snapping home has to replace the
   transform outright rather than reset the custom properties. */
.node.seen {
	transform: none;
	opacity: 0.7;
}
.node.lit {
	opacity: 1;
}
a.node {
	display: block;
	color: inherit;
	cursor: pointer;
}
a.node:hover {
	opacity: 1;
}
a.node:hover .node-in {
	border-color: var(--accent-strong);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent), var(--shadow-lg);
}
.node-in {
	height: 100%;
	padding: 22px 24px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 2px solid var(--line-strong);
	box-shadow: var(--shadow-sm);
	transition:
		border-color 0.4s,
		box-shadow 0.4s;
}
/* Lit nodes take the accent border only; the glow is kept for hover. */
.node.lit .node-in {
	border-color: var(--accent);
}
.node-label {
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	letter-spacing: var(--display-tracking);
	font-size: 30px;
	line-height: 1.05;
	margin-bottom: 14px;
	color: var(--text);
}

/* Node sketches: tiny wireframes drawn with CSS. */
.sk {
	display: grid;
	gap: 12px;
}
.sk i,
.sk span {
	display: block;
	font-style: normal;
}
.sk > i {
	height: 14px;
	border-radius: 4px;
	background: var(--sk);
}
.sk i.h {
	height: 20px;
	width: 70%;
	background: var(--sk-blue);
}
.sk i.s {
	width: 55%;
}
.sk-seo i.bar {
	height: 26px;
	border: 2px solid var(--line-strong);
	background: var(--surface);
	border-radius: 999px;
}
.sk-seo i.res.hi {
	background: var(--sk-blue-2);
}
.sk-content i.img {
	height: 48px;
	background: var(--sk-blue-2);
}
.sk-paid {
	grid-template-columns: 1fr 1fr;
}
.sk-paid i.ad {
	height: 64px;
	background: var(--sk);
}
.sk-paid i.kpi {
	grid-column: 1 / -1;
	width: 60%;
	background: var(--sk-blue);
}
.sk-website {
	gap: 10px;
}
.sk-website .wf-nav {
	height: 8px;
	border-radius: 4px;
	background: var(--sk);
}
.sk-website .wf-hero {
	height: 58px;
	border-radius: 4px;
	background: var(--sk-blue-3);
}
.sk-website .wf-cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
.sk-website .wf-cols i {
	height: 22px;
	border-radius: 4px;
	background: var(--sk);
}
.sk-website .wf-btn {
	width: 100px;
	height: 16px;
	border-radius: 4px;
	background: var(--accent-strong);
}
.sk-social {
	grid-template-columns: repeat(3, 1fr);
}
.sk-social > i {
	height: 84px;
	background: var(--sk);
}
.sk-forms i.field {
	height: 24px;
	background: var(--surface);
	border: 2px solid var(--line-strong);
}
/* "submit", not "btn": the global .btn button styles would inflate it. */
.sk-forms i.submit {
	width: 40%;
	height: 24px;
	background: var(--accent-strong);
}
.sk-crm .kpis {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
.sk-crm .kpis i {
	height: 22px;
	border-radius: 4px;
	background: var(--sk);
}
.sk-crm .bars {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	height: 70px;
}
.sk-crm .bars i {
	flex: 1;
	border-radius: 3px 3px 0 0;
	background: var(--sk-blue);
}
.sk-email > i {
	height: 22px;
	background: var(--sk-blue-3);
}
.sk-reviews .stars {
	font-size: 26px;
	line-height: 26px;
	margin: 0;
	letter-spacing: 4px;
}
.sk-sales {
	grid-template-columns: 1fr 1fr;
}
.sk-sales i.deal {
	height: 84px;
	background: var(--sk);
}
.sk-sales i.deal.won {
	background: var(--yes-soft);
}
/* Boxes whose label wraps to two lines get a tighter sketch, so nothing
   spills past the box (sizes are fixed: the wires are drawn to them). */
.node-seo .sk,
.node-forms .sk,
.node-email .sk,
.node-sales .sk,
.node-reviews .sk {
	gap: 8px;
}
.sk-seo i.res:not(.hi),
.sk-reviews i.s {
	display: none;
}
.sk-forms i.field,
.sk-forms i.submit {
	height: 20px;
}
.sk-email > i {
	height: 14px;
}
.sk-sales i.deal {
	height: 58px;
}


.eco-vignette {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 94%, transparent) 30%, transparent 50%),
		linear-gradient(to bottom, var(--bg), transparent 18%, transparent 82%, var(--bg));
	opacity: 1;
	transition: opacity 0.6s;
}
.eco[data-step="0"] .eco-vignette {
	opacity: 0.35;
}

.eco-intro {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding-inline: var(--gutter);
	pointer-events: none;
	transition:
		opacity 0.5s,
		transform 0.7s var(--ease);
}
.eco-intro-h {
	max-width: 11ch;
	text-align: center;
	font-size: clamp(64px, 9vw, 140px);
	text-shadow: 0 0 40px var(--bg), 0 0 80px var(--bg);
}
.eco:not([data-step="0"]) .eco-intro {
	opacity: 0;
	transform: translateY(-40px);
}

.eco-cards {
	position: absolute;
	left: var(--gutter);
	top: calc(var(--topbar-h) + 24px);
	bottom: 72px;
	width: min(460px, 36vw);
}
.eco-card-stack {
	position: relative;
	height: 100%;
}
.story-card {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
	opacity: 0;
	transform: translateY(24px);
	pointer-events: none;
	visibility: hidden;
	transition:
		opacity 0.35s linear,
		transform 0.35s linear,
		visibility 0s linear 0.35s;
}
.story-card.past {
	transform: translateY(-24px);
}
.story-card.on {
	opacity: 1;
	transform: none;
	pointer-events: auto;
	visibility: visible;
	transition-delay: 0s;
}
.story-card[data-card="0"] {
	display: none;
}
.story-h {
	font-size: clamp(40px, 4.4vw, 64px);
	text-wrap: balance; /* no single word stranded on the last line */
}
.story-body {
	font-size: clamp(15px, 1.3vw, 18px);
	color: var(--muted);
	max-width: 40ch;
}
.story-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.eco-skip {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	/* Clears the fixed theme toggle in the bottom-left corner. */
	left: max(var(--gutter), 76px);
	bottom: 24px;
	font-size: 13px;
	font-weight: 500;
	color: var(--muted);
}
.eco-skip:hover {
	color: var(--text);
}
.eco-rail {
	position: absolute;
	right: calc(var(--gutter) - 8px);
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	gap: 4px;
}
.rail-dot {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 44px;
	height: 26px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.rail-dot::after {
	content: "";
	width: 3px;
	height: 18px;
	border-radius: 2px;
	background: var(--line-strong);
	transition:
		background-color 0.3s,
		height 0.3s;
}
.rail-dot span {
	position: absolute;
	right: 12px;
	font-size: 11px;
	color: var(--accent-text);
	opacity: 0;
	transition: opacity 0.3s;
}
.rail-dot.on::after {
	background: var(--accent-strong);
	height: 26px;
}
.rail-dot.on span,
.rail-dot:hover span {
	opacity: 1;
}

/* ---------- Stacked panels ---------- */

.stack-panel {
	position: sticky;
	z-index: 1;
	background: var(--bg);
	border-radius: 24px 24px 0 0;
	box-shadow: 0 -1px 0 var(--line), 0 -30px 60px -30px rgb(0 0 0 / 0.25);
}
.stack-inner {
	position: relative;
	overflow: clip;
	border-radius: inherit;
}
.stack-dim {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: #0b1220;
	opacity: 0;
	pointer-events: none;
}
.stack-hold {
	height: 45svh;
}

/* ---------- Case studies ---------- */

.stories {
	padding-top: clamp(72px, 8vw, 120px);
}
.case-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}
.case {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: clamp(24px, 3vw, 40px);
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
}
.case-name {
	font-size: clamp(40px, 4vw, 56px);
}
.case-name .confirm {
	position: relative;
	top: -0.4em;
}
.case-line {
	margin-top: 8px;
	font-weight: 600;
}
.case-body {
	color: var(--muted);
}
.case-stats {
	display: grid;
	gap: 0;
	border-top: 1px solid var(--line);
}
.case-stat {
	display: grid;
	grid-template-columns: minmax(96px, max-content) 1fr;
	align-items: center;
	gap: 16px;
	padding-block: 12px;
	border-bottom: 1px solid var(--line);
}
.case-stat dt {
	grid-column: 2;
	grid-row: 1;
	font-size: 14px;
	color: var(--muted);
}
.case-stat dd {
	grid-column: 1;
	grid-row: 1;
	text-align: right;
	font-size: 34px;
	white-space: nowrap;
	color: var(--accent-text);
}
.case-btn {
	align-self: flex-start;
	margin-top: auto;
}
.case > .confirm {
	align-self: flex-start;
	margin: -8px 0 0;
}

/* ---------- Quotes ---------- */

.quotes {
	padding-top: clamp(96px, 10vw, 160px);
}
.quote-wall {
	columns: 3 300px;
	column-gap: 20px;
}
.qcard {
	break-inside: avoid;
	margin-bottom: 20px;
	padding: 24px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
}
.qstat {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}
.qstat strong {
	font-size: 48px;
	color: var(--accent-text);
}
.qstat span {
	display: grid;
	font-size: 13px;
	line-height: 1.35;
	color: var(--muted);
	padding-top: 4px;
}
.qstat b {
	color: var(--text);
	font-size: 12px;
}
.qcard blockquote {
	font-size: 15px;
	color: var(--text);
}
.qcard.big blockquote {
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	letter-spacing: var(--display-tracking);
	font-size: clamp(28px, 2.6vw, 38px);
	line-height: 1.02;
}
.qwho {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
	font-size: 13px;
	color: var(--muted);
}
.qwho > span:last-child {
	display: grid;
	line-height: 1.35;
}
.qwho strong {
	color: var(--text);
}

/* ---------- Industries ---------- */

.doors {
	padding-block: clamp(96px, 10vw, 120px) clamp(72px, 6vw, 96px);
}
.door-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
.door {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: clamp(260px, 26vw, 296px);
	padding: 24px;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
	transition:
		transform 0.3s var(--ease),
		box-shadow 0.3s,
		border-color 0.3s;
}
.door:hover {
	transform: translateY(-4px);
	border-color: var(--accent-line);
	box-shadow: var(--shadow);
}
.door-art {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 85% 8%, color-mix(in srgb, var(--glow-1) 55%, transparent), transparent 40%),
		radial-gradient(circle at 10% 110%, color-mix(in srgb, var(--glow-2) 40%, transparent), transparent 42%),
		linear-gradient(color-mix(in srgb, var(--shade) 4.5%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
		linear-gradient(90deg, color-mix(in srgb, var(--shade) 4.5%, transparent) 1px, transparent 1px) 0 0 / 32px 32px;
	transition: transform 0.8s var(--ease);
}
.door:hover .door-art {
	transform: scale(1.06);
}
.door-name,
.door-foot {
	position: relative;
}
.door-name {
	margin-top: auto;
	font-size: clamp(44px, 4.6vw, 72px);
}
.door-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 16px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-size: 14px;
}
.door-stat {
	color: var(--muted);
}
.door-go {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--accent-text);
}
.door-go svg {
	transition: transform 0.2s var(--ease);
}
.door:hover .door-go svg {
	transform: translateX(4px);
}

/* ---------- Plan ---------- */

.plan {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
	padding-block: clamp(96px, 10vw, 160px) clamp(128px, 13vw, 200px);
}
/* Two lines, always: the heading scales to its column ("No contracts." is
   about 6.45em wide in Sora), so it never wraps to three. */
.plan-left {
	container-type: inline-size;
}
.plan .section-h {
	font-size: min(clamp(52px, 7.4vw, 112px), 15cqi);
	white-space: nowrap;
}
.plan-fact {
	display: grid;
	gap: 6px;
	margin-top: clamp(28px, 4vw, 48px);
	padding-top: 20px;
	border-top: 1px solid var(--line);
	max-width: 46ch;
	color: var(--muted);
}
.plan-fact strong {
	font-size: 30px;
	color: var(--text);
}
.plan-steps {
	display: grid;
	gap: 14px;
}
.plan-steps li:not(.plan-cta) {
	display: flex;
	gap: 22px;
	padding: 22px 24px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
}
.plan-n {
	font-size: 60px;
	color: var(--accent-text);
	min-width: 32px;
}
.plan-step {
	display: grid;
	gap: 4px;
	color: var(--muted);
}
.plan-step strong {
	font-size: 30px;
	color: var(--text);
}
.plan-cta {
	margin-top: 12px;
}

/* Decorative footer word: drawn as generated content so it isn't read as text. */
.ghost-word::before {
	content: attr(data-word);
}

/* ---------- FAQ ---------- */

.faq {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
	padding-block: max(clamp(80px, 9vw, 140px), calc(var(--topbar-h) + 40px)) clamp(80px, 9vw, 140px);
}
.faq-lede {
	max-width: 36ch;
	color: var(--muted);
}
.faq-cta {
	margin-top: 24px;
}
.faq-list {
	border-top: 1px solid var(--line);
}
.faq-item {
	border-bottom: 1px solid var(--line);
}
.faq-item summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 22px 0;
	cursor: pointer;
	list-style: none;
}
.faq-item summary::-webkit-details-marker {
	display: none;
}
.faq-q {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	transition: color 0.2s;
}
.faq-item summary:hover .faq-q {
	color: var(--accent-text);
}
.faq-icon {
	position: relative;
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--surface);
	transition:
		transform 0.3s var(--ease),
		background 0.2s,
		border-color 0.2s;
}
.faq-icon::before,
.faq-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 1.5px;
	margin: -0.75px 0 0 -6px;
	background: var(--text);
	transition: transform 0.3s var(--ease);
}
.faq-icon::after {
	transform: rotate(90deg);
}
.faq-item[open] .faq-icon {
	background: var(--accent-soft);
	border-color: var(--accent-line);
}
.faq-item[open] .faq-icon::after {
	transform: rotate(0deg);
}
.faq-a {
	max-width: 62ch;
	padding: 0 56px 24px 0;
	color: var(--muted);
}

/* ---------- Book ---------- */

.book {
	position: relative;
	padding-block: calc(var(--topbar-h) + 32px) clamp(56px, 5vw, 72px);
	overflow: hidden;
}
.book-in {
	position: relative;
}
.book-h {
	display: grid;
	max-width: 980px;
	margin-block: 8px 28px;
}
.book-line {
	white-space: nowrap;
	line-height: 0.95;
}
.book-lede {
	max-width: 46ch;
	font-size: clamp(17px, 1.7vw, 22px);
	color: var(--muted);
}

.sched {
	display: grid;
	grid-template-columns: 1fr 1.3fr 0.9fr;
	margin-top: clamp(32px, 3vw, 40px);
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.sched > div {
	padding: 28px;
}
.sched > div + div {
	border-left: 1px solid var(--line);
}
.sched-avatar {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--text);
	color: var(--bg);
}
.sched-avatar .mark {
	width: 22px;
}
.sched-title {
	margin-top: 18px;
	font-size: 40px;
}
.sched-meta {
	display: grid;
	gap: 4px;
	margin-top: 14px;
	font-size: 14px;
	color: var(--muted);
}
.sched-meta li {
	display: flex;
	align-items: center;
	gap: 8px;
}
.sched-meta svg {
	color: var(--accent-text);
}
.sched-desc {
	margin-top: 14px;
	font-size: 14px;
	color: var(--muted);
}
.sched-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	font-weight: 600;
}
.sched-nav {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--surface);
	cursor: pointer;
	display: grid;
	place-items: center;
	color: var(--text);
}
.sched-nav:disabled {
	opacity: 0.35;
	cursor: default;
}
.sched-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	text-align: center;
}
.sched-dow {
	font-size: 12px;
	color: var(--soft);
	padding-bottom: 6px;
}
.sched-day {
	aspect-ratio: 1;
	max-height: 46px;
	border: 0;
	border-radius: 50%;
	background: none;
	font-size: 14px;
	color: var(--faint);
}
.sched-day.open {
	background: var(--accent-pale);
	color: var(--accent-text);
	font-weight: 600;
	cursor: pointer;
}
.sched-day.open:hover {
	background: var(--accent-soft);
}
.sched-day.sel {
	background: var(--accent-strong);
	color: var(--on-accent);
}
.sched-times {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.sched-times h4 {
	margin: 0 0 6px;
	font-size: 14px;
}
.sched-time {
	padding: 10px;
	border-radius: var(--radius);
	border: 1px solid var(--accent-line);
	background: var(--surface);
	color: var(--accent-text);
	font-weight: 600;
	font-size: 14px;
	text-align: center;
	cursor: pointer;
	transition:
		background-color 0.2s,
		color 0.2s;
}
.sched-time:hover {
	background: var(--accent-strong);
	color: var(--on-accent);
}
.sched-empty {
	margin: auto 0;
	font-size: 14px;
	color: var(--soft);
	text-align: center;
}

/* The booking form: questions one at a time, then HubSpot's calendar. */
.sched.qual {
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}
.qual [hidden] {
	display: none !important;
}
.qual-why {
	color: var(--soft);
}
.qual-flow {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 28px;
	border-left: 1px solid var(--line);
	min-height: 460px;
}
.qual-progress {
	display: grid;
}
/* "Question 2 of 6" is for screen readers only; sighted visitors get the bar. */
.qual-count {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.qual-bar {
	display: block;
	height: 4px;
	border-radius: 2px;
	background: var(--accent-pale);
	overflow: hidden;
}
.qual-bar > span {
	display: block;
	height: 100%;
	background: var(--accent-strong);
	transition: width 0.35s var(--ease);
}
.qual-step {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
	animation: qual-in 0.3s var(--ease);
}
@keyframes qual-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}
.qual-q {
	margin-bottom: 18px;
	padding: 0;
	font-family: var(--font-display);
	font-weight: var(--display-weight);
	letter-spacing: var(--display-tracking);
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.15;
	color: var(--text);
}
.qual-opts {
	display: grid;
	gap: 10px;
}
.qual-opt {
	position: relative;
	display: block;
	cursor: pointer;
}
.qual-opt input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}
.qual-opt span {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--surface);
	font-size: 16px;
	color: var(--text);
	transition:
		border-color 0.15s,
		background-color 0.15s;
}
.qual-opt span::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid var(--line-strong);
	background: var(--surface);
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}
.qual-opt:hover span {
	border-color: var(--accent-edge);
	background: var(--accent-pale);
}
.qual-opt input:focus-visible + span {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.qual-opt input:checked + span {
	border-color: var(--accent-strong);
	background: var(--accent-pale);
}
.qual-opt input:checked + span::before {
	border-color: var(--accent-strong);
	box-shadow: inset 0 0 0 4px var(--surface);
	background: var(--accent-strong);
}
.qual-hint {
	margin: -10px 0 16px;
	font-size: 14px;
	color: var(--soft);
}
/* Pick-several questions: square boxes with a tick instead of round dots. */
.is-multi .qual-opt span::before {
	border-radius: 4px;
}
.is-multi .qual-opt input:checked + span::before {
	box-shadow: none;
	background: var(--accent-strong)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
		center / 13px no-repeat;
}
.qual-flow.has-error .qual-opt span {
	border-color: #dc2626;
}
.qual-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.qual-field {
	display: grid;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--muted);
}
.qual-field:nth-child(n + 3) {
	grid-column: 1 / -1;
}
.qual-field input {
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-size: 16px;
	font-weight: 400;
}
.qual-field input:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
	border-color: var(--accent);
}
.qual-field input[aria-invalid] {
	border-color: #dc2626;
}
.qual-err {
	font-style: normal;
	font-size: 13px;
	color: #dc2626;
}
.qual-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}
.qual-actions .wp-block-button {
	margin-left: auto;
}
.qual-back {
	padding: 10px 4px;
	border: 0;
	background: none;
	font: inherit;
	font-size: 15px;
	color: var(--soft);
	cursor: pointer;
}
.qual-back:hover {
	color: var(--text);
}
.qual-cal {
	margin: -8px -12px 0;
}
.qual-cal .meetings-iframe-container {
	min-height: 640px;
}
.qual-fallback {
	margin-top: 8px;
	font-size: 13px;
	color: var(--soft);
	text-align: center;
}
@media (max-width: 960px) {
	.sched.qual {
		grid-template-columns: 1fr;
	}
	.qual-flow {
		border-left: 0;
		min-height: 0;
	}
}
@media (max-width: 640px) {
	.qual-flow {
		padding: 22px 18px;
	}
	.qual-fields {
		grid-template-columns: 1fr;
	}
	.qual-cal {
		margin-inline: -18px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.qual-step {
		animation: none;
	}
}
:root[data-theme="dark"] .qual-err {
	color: #f87171;
}

/* ---------- Footer ---------- */

/* The footer belongs to the last panel: it scrolls with the booking section
   rather than sliding over it. */
.footer {
	position: relative;
	border-top: 1px solid var(--line);
	padding-bottom: 32px;
	overflow: hidden;
}
.footer-ghost {
	padding: 40px var(--gutter) 0;
	color: color-mix(in srgb, var(--shade) 6%, transparent);
}
.footer-ghost {
	text-align: center;
}
.footer-ghost .fit {
	white-space: nowrap;
	font-weight: 300;
	letter-spacing: 0.4em;
	margin-right: -0.4em;
	text-transform: uppercase;
	line-height: 1;
}
.footer-in {
	display: grid;
	grid-template-columns: 1.2fr 1fr 0.9fr 0.9fr;
	gap: 40px clamp(24px, 4vw, 56px);
	align-items: start;
	margin-top: 48px;
	font-size: 14px;
}
.footer-brand {
	display: grid;
	gap: 12px;
	justify-items: start;
	color: var(--muted);
}
.footer-brand .wordmark {
	margin-bottom: 4px;
}
.footer-mail a {
	color: var(--accent-text);
}
.footer-mail a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.partner {
	font-weight: 600;
	color: var(--text);
}
.footer-head {
	margin-bottom: 14px;
	font-weight: 600;
	color: var(--text);
}
.footer-head a:hover {
	color: var(--accent-text);
}
.footer-in nav {
	color: var(--muted);
}
.footer-in nav a:hover {
	color: var(--text);
}
.footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 13px;
	color: var(--soft);
}
.footer-legal nav {
	display: flex;
	gap: 20px;
}
.footer-legal a:hover {
	color: var(--text);
}

@media (max-width: 960px) {
	.footer-in {
		grid-template-columns: repeat(3, 1fr);
	}
	.footer-brand {
		grid-column: 1 / -1;
	}
}
@media (max-width: 640px) {
	.footer-in {
		grid-template-columns: 1fr 1fr;
	}
}

/* ---------- Reveal ---------- */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.45s linear,
		transform 0.45s linear;
}
.js [data-reveal].in {
	opacity: 1;
	transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
	.nav-links {
		position: absolute;
		top: calc(var(--topbar-h) - 4px);
		right: var(--gutter);
		left: var(--gutter);
		display: none;
		flex-direction: column;
		gap: 0;
		padding: 8px;
		border: 1px solid var(--line);
		border-radius: var(--radius-lg);
		background: var(--surface);
		box-shadow: var(--shadow-lg);
	}
	.nav-links.open {
		display: flex;
		align-items: stretch;
	}
	.nav-links a {
		padding: 14px 12px;
		border-radius: var(--radius);
		font-size: 17px;
	}
	.nav-links a:hover {
		background: var(--bg);
	}
	.menu-btn {
		display: inline-grid;
	}
	.case-grid,
	.door-grid,
	.plan,
	.faq {
		grid-template-columns: 1fr;
	}
	.sched {
		grid-template-columns: 1fr 1fr;
	}
	.sched-host {
		grid-column: 1 / -1;
		border-bottom: 1px solid var(--line);
	}
	.sched > .sched-cal {
		border-left: 0;
	}

	/* System: canvas on top, card below. */
	.eco-cards {
		left: 0;
		right: 0;
		top: auto;
		bottom: 0;
		width: auto;
		height: 54svh;
		padding: 16px var(--gutter) 56px;
		background: linear-gradient(to bottom, transparent, var(--bg) 14%);
	}
	.eco-card-stack {
		height: 100%;
	}
	.story-card {
		justify-content: flex-end;
		gap: 12px;
	}
	.story-body {
		font-size: 15px;
	}
	.eco-vignette {
		background: linear-gradient(to bottom, var(--bg), transparent 16%, transparent 50%, var(--bg) 62%);
	}
	.eco-rail {
		display: none;
	}
}

@media (max-width: 640px) {
	:root {
		--topbar-h: 64px;
	}
	.nav-cta {
		padding: 8px 12px;
		font-size: 14px;
	}

	.case-stat {
		grid-template-columns: minmax(72px, max-content) 1fr;
	}
	.case-stat dd {
		font-size: 26px;
	}
	.sched {
		grid-template-columns: 1fr;
	}
	.sched > div + div {
		border-left: 0;
		border-top: 1px solid var(--line);
	}
	.faq-a {
		padding-right: 0;
	}
	.faq-q {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.js [data-reveal] {
		opacity: 1;
		transform: none;
	}
}
