/*
	Bitform — site styles
	No build step: this file is served as written.

	The design language comes from the logo and the field behind it: small
	squares (bits), hairlines running from them, sharp corners, and a single
	green for emphasis.
*/

/* ---------- Fonts (self-hosted, SIL OFL; see assets/fonts) ---------- */

@font-face {
	font-family: Geist;
	src: url("../fonts/geist.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: "Geist Mono";
	src: url("../fonts/geist-mono.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
	--bg: #060a07;
	--surface: #0b120d;
	--surface-2: #0f1811;
	--line: rgb(232 238 228 / 0.1);
	--line-strong: rgb(232 238 228 / 0.2);

	--text: #e8eee4;
	--muted: #98a79b;
	--faint: #7b897e;

	--lime: #8dd032;
	--lime-bright: #a9e556;
	--green: #048e40;
	--on-lime: #06110a;
	--danger: #ff8f7a;

	--display: "Geist", "Helvetica Neue", Arial, sans-serif;
	--mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

	--gutter: clamp(20px, 5vw, 64px);
	--section: clamp(84px, 10vw, 148px);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--header-h: 72px;
}

/* ---------- Base ---------- */

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

html {
	color-scheme: dark;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--display);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
q { quotes: "\201C" "\201D"; }

::selection { background: var(--lime); color: var(--on-lime); }

:focus-visible {
	outline: 2px solid var(--lime-bright);
	outline-offset: 3px;
}

.wrap {
	width: 100%;
	max-width: 1288px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.skip {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--lime);
	color: var(--on-lime);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-200%);
}
.skip:focus { transform: none; }

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- The field of bits ---------- */

#bits, #mark {
	position: fixed;
	inset: 0 auto auto 0;
	z-index: 0;
	pointer-events: none;
}
#bits { width: 100vw; height: 100vh; height: 100lvh; }

/* The logo's canvas. bits.js sizes and places it, and hides it while the logo is withdrawn. */
#mark { max-width: none; }
#mark[hidden] { display: none; }

.site-header, main, .site-footer { position: relative; z-index: 1; }

/* The static logo stands in until (or unless) the canvas takes over. */
.mark-fallback { width: 100%; height: 100%; object-fit: contain; }
html.js:not(.no-webgl) .mark-fallback { visibility: hidden; }

/* ---------- Type ---------- */

.label, .eyebrow {
	font-family: var(--mono);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lime);
}

h2, .notfound h1 {
	font-size: clamp(2.25rem, 5.2vw, 4.25rem);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -0.04em;
	text-wrap: balance;
	max-width: 17ch;
}

h3 {
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.lead {
	font-size: clamp(1.125rem, 1.55vw, 1.375rem);
	line-height: 1.5;
	color: var(--muted);
	max-width: 58ch;
	text-wrap: pretty;
}
.lead a { color: var(--text); text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--faint); }
.lead a:hover { text-decoration-color: var(--lime); }

/* ---------- Buttons and links ---------- */

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 24px;
	border: 0;
	background: var(--lime);
	color: var(--on-lime);
	font: 600 1rem/1 var(--display);
	letter-spacing: -0.005em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s, transform 0.4s var(--ease);
}
/* The cards' corner, standing just clear of the button because the button is
   solid: a bit off the top-left corner with a line running out from it each
   way, and a bare bracket off the corner opposite. The lines run further when
   the button is pointed at or focused. */
.btn::before {
	content: "";
	position: absolute;
	inset: -5px;
	pointer-events: none;
	background:
		linear-gradient(var(--lime), var(--lime)) left top / 13px 1px no-repeat,
		linear-gradient(var(--lime), var(--lime)) left top / 1px 13px no-repeat,
		linear-gradient(var(--lime), var(--lime)) right bottom / 7px 1px no-repeat,
		linear-gradient(var(--lime), var(--lime)) right bottom / 1px 7px no-repeat;
	opacity: 0.7;
	transition: background-size 0.6s var(--ease), opacity 0.3s;
}
.btn::after {
	content: "";
	position: absolute;
	top: -7px;
	left: -7px;
	width: 5px;
	height: 5px;
	background: var(--lime);
	pointer-events: none;
	transition: background-color 0.25s, box-shadow 0.4s;
}
.btn:hover { background: var(--lime-bright); }
.btn:hover::before, .btn:focus-visible::before {
	background-size: 30px 1px, 1px 30px, 16px 1px, 1px 16px;
	opacity: 1;
}
.btn:hover::after, .btn:focus-visible::after { background: var(--lime-bright); box-shadow: 0 0 10px rgb(141 208 50 / 0.6); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-offset: 10px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.btn__arrow {
	width: 16px;
	height: 16px;
	transition: transform 0.4s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--small {
	padding: 11px 17px;
	font-size: 0.875rem;
}
.btn--small::before {
	inset: -4px;
	background-size: 10px 1px, 1px 10px, 6px 1px, 1px 6px;
}
.btn--small:hover::before, .btn--small:focus-visible::before { background-size: 22px 1px, 1px 22px, 12px 1px, 1px 12px; }
.btn--small::after { top: -6px; left: -6px; }

.textlink {
	position: relative;
	padding-block: 6px;
	font-weight: 500;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	transition: color 0.25s, background-size 0.5s var(--ease);
}
.textlink:hover { color: var(--lime-bright); background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */

.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 20;
	height: var(--header-h);
	padding-inline: var(--gutter);
	display: flex;
	align-items: center;
	gap: 32px;
	border-bottom: 1px solid transparent;
	transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled, .site-header.is-open {
	background: rgb(6 10 7 / 0.74);
	border-bottom-color: var(--line);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
	text-decoration: none;
}
/* The mark is square, 39 units a side. It is drawn at 0.7px to the unit, so that a bit is
   2.8px on a pitch of 3.5px: seven device pixels on a screen of double density, and the
   same two bits repeating on an ordinary one. The margin makes its box a whole 27px, which
   puts its top on a whole pixel in the header. */
.brand__mark { width: auto; height: 27.3px; margin-bottom: -0.3px; }
.brand__name {
	font-size: 1.3125rem;
	font-weight: 600;
	letter-spacing: -0.035em;
}

.site-nav {
	display: flex;
	gap: 28px;
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.site-nav a {
	padding-block: 8px;
	color: var(--muted);
	text-decoration: none;
	transition: color 0.25s;
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--text); }
.site-nav a[aria-current="true"]::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 8px;
	background: var(--lime);
	vertical-align: 1px;
}

.site-nav__num { display: none; }

/* The menu button, for narrow screens: four bits in a column, like the
   logo's stem. They are the four section links, and the bit of the section
   in view is set, so the closed button still says where the page is. */
.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 44px;
	height: 44px;
	padding-inline: 10px;
	border: 1px solid var(--line-strong);
	border-radius: 2px;
	color: var(--muted);
	font: 500 0.75rem/1 var(--mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.25s, border-color 0.25s;
	-webkit-tap-highlight-color: transparent;   /* it has states of its own */
}
.menu-toggle:hover { color: var(--text); border-color: rgb(232 238 228 / 0.34); }
.menu-toggle__icon { width: 5px; height: 26px; }
.menu-toggle__icon rect { fill: transparent; stroke: currentColor; stroke-width: 1; transition: fill 0.35s, stroke 0.35s; }
.menu-toggle[aria-expanded="true"] { color: var(--lime); border-color: var(--lime); }
.site-header:has(.site-nav a:nth-child(1)[aria-current="true"]) .menu-toggle__icon rect:nth-child(1),
.site-header:has(.site-nav a:nth-child(2)[aria-current="true"]) .menu-toggle__icon rect:nth-child(2),
.site-header:has(.site-nav a:nth-child(3)[aria-current="true"]) .menu-toggle__icon rect:nth-child(3),
.site-header:has(.site-nav a:nth-child(4)[aria-current="true"]) .menu-toggle__icon rect:nth-child(4) { fill: var(--lime); stroke: var(--lime); }

@media (max-width: 860px) {
	.site-header { gap: 12px; }
	.site-header.is-open { background: var(--bg); }   /* one sheet with the panel beneath it */
	.menu-toggle { display: inline-flex; }

	/* While the menu is open the page behind it is dimmed. A tap there closes the menu and does nothing else. */
	.site-header::before {
		content: "";
		position: absolute;
		inset: 100% 0 auto;
		z-index: -1;
		height: 100vh;
		height: 100lvh;
		background: rgb(6 10 7 / 0.72);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s, visibility 0s 0.3s;
	}
	.site-header.is-open::before { opacity: 1; visibility: visible; transition: opacity 0.3s; }

	/* The section links become a panel below the header, opened by the menu
	   button (or, without JavaScript, by following its link to #site-nav).
	   It is the button's register drawn large: a cell for each section, the
	   current one set, with the section's number and name beside it. */
	.site-nav {
		position: absolute;
		inset: 100% 0 auto;
		display: none;
		grid-template-columns: minmax(0, 1fr);
		gap: 0 var(--gutter);
		max-height: calc(100vh - var(--header-h));
		max-height: calc(100dvh - var(--header-h));
		padding: 6px var(--gutter) 14px;
		overflow-y: auto;
		overscroll-behavior: contain;
		border-bottom: 1px solid var(--line);
		background: var(--bg);   /* solid: anything showing through would collide with the links */
		font-family: var(--display);
		font-size: 1.5rem;
		font-weight: 600;
		line-height: 1.25;
		letter-spacing: -0.03em;
		text-transform: none;
	}
	.site-nav.is-open, .site-nav.is-closing, html:not(.js) .site-nav:target { display: grid; }

	.site-nav a {
		--i: 0;

		position: relative;
		display: flex;
		align-items: baseline;
		gap: 14px;
		padding-block: 15px;
		color: var(--text);
		-webkit-tap-highlight-color: transparent;
	}
	.site-nav a:nth-child(2) { --i: 1; }
	.site-nav a:nth-child(3) { --i: 2; }
	.site-nav a:nth-child(4) { --i: 3; }

	/* The section's cell: a centre dot while clear, filled while its section is in view, as in the logo's register. */
	.site-nav a::before, .site-nav a[aria-current="true"]::before {
		content: "";
		display: block;
		flex: none;
		align-self: center;
		width: 13px;
		height: 13px;
		margin: 0;
		border: 1px solid rgb(141 208 50 / 0.42);
		background: linear-gradient(var(--lime), var(--lime)) center / 3px 3px no-repeat;
		transition: background-size 0.45s var(--ease), border-color 0.3s;
	}
	.site-nav a[aria-current="true"]::before { border-color: var(--lime); background-size: 7px 7px; }
	.site-nav a:hover::before, .site-nav a:active::before { border-color: var(--lime-bright); }

	/* A hairline under each row but the last, running out from the column of cells. */
	.site-nav a::after {
		content: "";
		position: absolute;
		inset: auto 0 0 27px;
		height: 1px;
		background: var(--line);
		transform-origin: 0 50%;
	}
	.site-nav a:last-child::after { content: none; }

	.site-nav__num {
		display: block;
		flex: none;
		width: 1.6rem;
		color: var(--lime);
		font: 500 0.75rem/1 var(--mono);
		letter-spacing: 0.08em;
	}
	.site-nav__label { display: block; }

	/* Opening follows the page's script. The panel is drawn downwards by a
	   bright line, which settles as its lower edge; the cells arrive, top
	   first; a rule runs out from each; and the names rise into place. */
	.site-nav::after {
		content: "";
		position: absolute;
		inset: 0;
		border-bottom: 1px solid var(--lime);
		opacity: 0;
		pointer-events: none;
	}
	.site-nav.is-open, html:not(.js) .site-nav:target { animation: menu-unroll 0.42s var(--ease) backwards; }
	.site-nav.is-open::after, html:not(.js) .site-nav:target::after { animation: menu-edge 0.42s var(--ease) backwards; }
	.site-nav.is-open a::before, html:not(.js) .site-nav:target a::before { animation: menu-bit 0.4s var(--ease) calc(0.05s + var(--i) * 0.05s) backwards; }
	.site-nav.is-open a::after, html:not(.js) .site-nav:target a::after { animation: menu-rule 0.6s var(--ease) calc(0.12s + var(--i) * 0.05s) backwards; }
	.site-nav.is-open a > span, html:not(.js) .site-nav:target a > span { animation: menu-rise 0.55s var(--ease) calc(0.08s + var(--i) * 0.05s) backwards; }

	/* Closing is the way it came, reversed and quicker: the line runs back up and the panel goes with it. */
	.site-nav.is-closing { pointer-events: none; animation: menu-roll-up 0.2s cubic-bezier(0.5, 0, 0.9, 0.4) forwards; }
	.site-nav.is-closing::after { animation: menu-edge-up 0.2s cubic-bezier(0.5, 0, 0.9, 0.4) forwards; }
}

/* From a small tablet, or a phone on its side, the four sections sit two by two. */
@media (min-width: 520px) and (max-width: 860px) {
	.site-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-nav a:nth-child(3)::after { content: none; }
}

/* Too narrow for the word: the button keeps it as its accessible name. */
@media (max-width: 359px) {
	.menu-toggle__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

@keyframes menu-unroll {
	from { clip-path: inset(0 0 100% 0); }
	to { clip-path: inset(0 0 -1px 0); }
}

@keyframes menu-edge {
	0% { opacity: 1; transform: translateY(-100%); }
	60% { opacity: 1; }
	100% { opacity: 0; transform: none; }
}

@keyframes menu-bit {
	from { transform: scale(0); }
}

@keyframes menu-rule {
	from { transform: scaleX(0); }
}

@keyframes menu-rise {
	from { clip-path: inset(-0.2em 0 100% 0); transform: translateY(100%); }
	to { clip-path: inset(-0.2em 0 -0.3em 0); transform: none; }
}

@keyframes menu-roll-up {
	from { clip-path: inset(0 0 -1px 0); }
	to { clip-path: inset(0 0 100% 0); }
}

@keyframes menu-edge-up {
	from { opacity: 1; transform: none; }
	to { opacity: 1; transform: translateY(-100%); }
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	padding-top: var(--header-h);
	overflow-x: clip;   /* the glow behind the mark must not widen the page */
}

/* A 48px grid, faintly, behind the hero. */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 48px 48px;
	background-position: center top;
	opacity: 0.5;
	-webkit-mask-image: radial-gradient(ellipse 70% 62% at 68% 44%, #000 0%, transparent 72%);
	mask-image: radial-gradient(ellipse 70% 62% at 68% 44%, #000 0%, transparent 72%);
}

.hero__grid {
	flex: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 4vw, 72px);
	padding-block: clamp(32px, 6vh, 72px);
}

.eyebrow { margin-bottom: 28px; }

.hero__title {
	font-size: clamp(2.75rem, 5.6vw, 5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.05em;
}
.hero__title .line { display: block; }
.hero__title .line--dim { color: #5f6d62; }

.hero__lead {
	margin-top: 32px;
	max-width: 54ch;
	font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
	line-height: 1.55;
	color: var(--muted);
	text-wrap: pretty;
}

.hero__actions {
	margin-top: 40px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
}

.hero__mark {
	position: relative;
	width: 100%;
	height: min(62vh, 580px);
}
.hero__mark::before {
	content: "";
	position: absolute;
	inset: -12%;
	background: radial-gradient(closest-side, rgb(141 208 50 / 0.13), transparent 70%);
	pointer-events: none;
}

.hero__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px 32px;
	padding-block: 26px;
	border-top: 1px solid var(--line);
}
.hero__foot .label { color: var(--faint); }

.clients {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 0;
	font-family: var(--mono);
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	color: var(--muted);
}
.clients li + li::before {
	content: "/";
	margin-inline: 14px;
	color: var(--faint);
}

@media (max-width: 1000px) {
	.hero__grid {
		grid-template-columns: minmax(0, 1fr);
		align-content: center;
		gap: 8px;
	}
	.hero__mark { order: -1; height: 32vh; height: 32svh; }
	.hero::before {
		-webkit-mask-image: radial-gradient(ellipse 90% 40% at 50% 24%, #000 0%, transparent 75%);
		mask-image: radial-gradient(ellipse 90% 40% at 50% 24%, #000 0%, transparent 75%);
	}
	.eyebrow { margin-bottom: 20px; }
	.hero__lead { margin-top: 24px; }
	.hero__actions { margin-top: 32px; }
}

/* On the narrowest phones the headline gives a little, so that each of its
   sentences still sets in two lines. */
@media (max-width: 400px) {
	.hero__title { font-size: min(2.75rem, 11.6vw); }
}

/* A phone on its side, or a small tablet held that way. It is too short to
   stack the mark above the headline (a third of its height is barely a
   hundred pixels, and the drawing clogs), and wide enough for two columns. */
@media (max-width: 1000px) and (min-width: 520px) and (orientation: landscape) {
	.hero__grid {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		align-items: start;
		gap: clamp(20px, 4vw, 48px);
		padding-block: 24px;
	}
	.hero__mark {
		order: 0;
		height: min(calc(100vh - var(--header-h) - 48px), 520px);
		height: min(calc(100svh - var(--header-h) - 48px), 520px);
	}
	.hero__title { font-size: clamp(2rem, 5vw, 3rem); }
	.hero::before {
		-webkit-mask-image: radial-gradient(ellipse 70% 62% at 72% 50%, #000 0%, transparent 72%);
		mask-image: radial-gradient(ellipse 70% 62% at 72% 50%, #000 0%, transparent 72%);
	}
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }

.section__head {
	display: grid;
	gap: 28px;
	margin-bottom: clamp(48px, 7vw, 88px);
}
.section__head .label { margin-bottom: -4px; }

/* ---------- Cards ---------- */

.card {
	position: relative;
	padding: clamp(24px, 2.6vw, 36px);
	background:
		radial-gradient(520px circle at var(--mx, 50%) var(--my, -40%), rgb(141 208 50 / 0.07), transparent 62%),
		rgb(11 18 13 / 0.86);
	border: 1px solid var(--line);
	border-radius: 2px;
	transition: border-color 0.4s;
}
.card:hover { border-color: var(--line-strong); }

/* A corner drawn the way the figures are: a bit on the corner, and two lines
   running out from it along the card's own edges. They run further when the
   card is pointed at. The opposite corner is closed by a bare bracket. */
.card::before {
	content: "";
	position: absolute;
	inset: -1px;   /* over the border */
	pointer-events: none;
	background:
		linear-gradient(var(--lime), var(--lime)) left top / 22px 1px no-repeat,
		linear-gradient(var(--lime), var(--lime)) left top / 1px 22px no-repeat,
		linear-gradient(var(--lime), var(--lime)) right bottom / 10px 1px no-repeat,
		linear-gradient(var(--lime), var(--lime)) right bottom / 1px 10px no-repeat;
	opacity: 0.5;
	transition: background-size 0.7s var(--ease), opacity 0.4s;
}
.card:hover::before {
	background-size: 72px 1px, 1px 72px, 22px 1px, 1px 22px;
	opacity: 0.9;
}
.card::after {
	content: "";
	position: absolute;
	top: -3px;
	left: -3px;
	width: 5px;
	height: 5px;
	background: var(--lime);
	opacity: 0.75;
	transition: opacity 0.4s, box-shadow 0.4s;
}
.card:hover::after { opacity: 1; box-shadow: 0 0 10px rgb(141 208 50 / 0.55); }

/* ---------- 01 The shift ---------- */

.findings {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.finding {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-top: clamp(40px, 3.4vw, 52px);
}
.finding .label { color: var(--muted); }
.finding__figure {
	font-size: clamp(2.125rem, 3.5vw, 3.125rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.04em;
}
.finding p:not(.label, .finding__figure) { color: var(--muted); }
.finding q { color: var(--text); }

.source {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 0.75rem;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: var(--muted);
	text-decoration: none;
	transition: color 0.25s;
}
.source::before { content: "\2197\00a0"; color: var(--lime); }
.source:hover { color: var(--text); }

.ledger {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 20px;
	border: 1px solid var(--line);
	border-radius: 2px;
	background: rgb(11 18 13 / 0.86);
}
.ledger__col { padding: clamp(24px, 3vw, 44px); }
.ledger__col + .ledger__col { border-left: 1px solid var(--line); }
.ledger .label { margin-bottom: 22px; color: var(--faint); }
.ledger__col--form .label { color: var(--lime); }

.ledger li {
	position: relative;
	padding: 13px 0 13px 28px;
	border-top: 1px solid var(--line);
	font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--muted);
}
.ledger li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: calc(13px + 0.42em);
	width: 8px;
	height: 8px;
	border: 1px solid var(--faint);
}
.ledger__col--form li { color: var(--text); font-weight: 500; }
.ledger__col--form li::before { background: var(--lime); border-color: var(--lime); }

/* A small "i" on each finding: who was asked, and what kind of evidence it is. */
.info {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
}
.info__btn {
	display: grid;
	place-items: center;
	width: 24px;   /* the smallest target WCAG 2.2 allows */
	height: 24px;
	padding: 0;
	border: 1px solid var(--line-strong);
	border-radius: 2px;
	background: transparent;
	color: var(--faint);
	font: 500 0.6875rem/1 var(--mono);
	cursor: help;
	transition: color 0.25s, border-color 0.25s;
}
.info__btn:hover, .info__btn:focus-visible, .info__btn[aria-expanded="true"] {
	color: var(--lime-bright);
	border-color: var(--lime);
}
.finding .info__tip {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: min(264px, 68vw);
	padding: 12px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 2px;
	background: var(--surface-2);
	box-shadow: 0 12px 32px rgb(0 0 0 / 0.5);
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--text);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.2s, transform 0.3s var(--ease), visibility 0.2s;
}
.info:hover .info__tip,
.info__btn:focus-visible + .info__tip,
.info__btn[aria-expanded="true"] + .info__tip {
	opacity: 1;
	visibility: visible;
	transform: none;
}

/* ---------- 02 Services ---------- */

.services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.service {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 380px;
	padding-top: clamp(40px, 3.4vw, 52px);
}
.service__num, .steps__num {
	font-family: var(--mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	color: var(--lime);
}
.service h3 {
	font-size: clamp(1.5rem, 2.2vw, 1.875rem);
	letter-spacing: -0.03em;
}
.service p:not(.service__num) { color: var(--muted); }
.service .tags { margin-top: auto; padding-top: 12px; }

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.tags li {
	padding: 5px 10px;
	border: 1px solid var(--line-strong);
	border-radius: 2px;
	font-family: var(--mono);
	font-size: 0.71875rem;
	letter-spacing: 0.03em;
	color: var(--muted);
}

/* ---------- 03 Approach ---------- */

.pipeline {
	border: 1px solid var(--line);
	border-radius: 2px;
	background: rgb(11 18 13 / 0.86);
}

#pipeline {
	width: 100%;
	height: clamp(170px, 20vw, 250px);
	border-bottom: 1px solid var(--line);
}

.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
.steps li {
	display: grid;
	align-content: start;
	gap: 12px;
	padding: clamp(20px, 2.4vw, 32px);
}
.steps li + li { border-left: 1px solid var(--line); }
.steps p:not(.steps__num) { color: var(--muted); font-size: 1rem; }

/* ---------- 04 Experience ---------- */

.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: clamp(56px, 8vw, 104px);
}
.stats > div {
	padding-top: 22px;
	border-top: 1px solid var(--line-strong);
}
.stats dt {
	font-size: clamp(2.75rem, 5.6vw, 4.75rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.045em;
	font-variant-numeric: tabular-nums;
}
.stats dd {
	margin-top: 12px;
	max-width: 24ch;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--muted);
}

.role {
	position: relative;
	display: grid;
	grid-template-columns: 148px minmax(0, 0.8fr) minmax(0, 1.4fr);
	gap: 8px 32px;
	padding-block: 28px;
	border-top: 1px solid var(--line);
	transition: background-color 0.4s;
}
.roles > .role:last-child { border-bottom: 1px solid var(--line); }
.role::before {
	content: "";
	position: absolute;
	left: -18px;
	top: calc(28px + 0.45em);
	width: 8px;
	height: 8px;
	background: var(--lime);
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 0.3s, transform 0.5s var(--ease);
}
.role:hover::before { opacity: 1; transform: none; }

.role__when {
	padding-top: 5px;
	font-family: var(--mono);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	color: var(--faint);
}
.role h3 { font-size: 1.5rem; letter-spacing: -0.03em; }
.role__flag {
	display: inline-block;
	margin-left: 6px;
	padding: 3px 7px;
	border: 1px solid var(--line-strong);
	border-radius: 2px;
	font: 500 0.625rem/1.2 var(--mono);
	letter-spacing: 0.08em;
	color: var(--lime);
	vertical-align: 0.35em;
}
.role__detail { color: var(--muted); max-width: 62ch; }

.extras {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
	gap: 40px 32px;
	margin-top: clamp(48px, 6vw, 80px);
	padding-left: 180px;
}
.extras .label { margin-bottom: 18px; color: var(--faint); }
.plain li { padding-block: 6px; line-height: 1.4; }
.plain li span { display: block; font-size: 0.9375rem; color: var(--muted); }

/* ---------- 05 Contact ---------- */

.contact { padding-bottom: clamp(72px, 9vw, 128px); }

.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}
.contact__copy { display: grid; gap: 28px; }
.contact__copy .label { margin-bottom: -4px; }

.form {
	display: grid;
	gap: 20px;
	margin-top: 20px;
	max-width: 640px;
}
.form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}
.field { display: grid; gap: 8px; }
.field > span {
	font-family: var(--mono);
	font-size: 0.71875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}
.field em { font-style: normal; color: var(--faint); }
.field input, .field textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--line-strong);
	border-radius: 2px;
	background: rgb(11 18 13 / 0.9);
	color: var(--text);
	font: 400 1.0625rem/1.4 var(--display);
	transition: border-color 0.25s, background-color 0.25s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: rgb(232 238 228 / 0.34); }
.field input:focus-visible, .field textarea:focus-visible {
	outline: 0;
	border-color: var(--lime);
	background: var(--surface-2);
	box-shadow: 0 0 0 3px rgb(141 208 50 / 0.18);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field--trap { position: absolute; left: -9999px; }
/* Turnstile runs out of sight and takes up space only when it needs the visitor to act. */
.form__captcha:not(.is-visible) { position: absolute; width: 1px; height: 1px; overflow: hidden; }

.form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: 4px;
}
.form__status { font-size: 0.9375rem; color: var(--muted); }
.form__status.is-error { color: var(--danger); }
.form__status.is-ok { color: var(--lime-bright); }

.contact__side { display: grid; gap: 28px; }
.contact__mark {
	position: relative;
	width: 100%;
	height: min(52vh, 460px);
}

.elsewhere { border-top: 1px solid var(--line); }
.elsewhere a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding-block: 16px;
	border-bottom: 1px solid var(--line);
	font-size: 1.125rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.25s, padding 0.5s var(--ease);
}
.elsewhere a span {
	font: 400 0.8125rem var(--mono);
	color: var(--muted);
}
.elsewhere a:hover { color: var(--lime-bright); padding-left: 10px; }

/* ---------- Not found (404.html) ---------- */

.notfound {
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	align-content: center;
	padding-block: calc(var(--header-h) + 48px) 48px;
}
.notfound .wrap { display: grid; justify-items: start; gap: 28px; }
.notfound .lead { margin-bottom: 12px; }

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

.site-footer {
	padding-block: 36px 44px;
	border-top: 1px solid var(--line);
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--faint);
	background: rgb(6 10 7 / 0.8);
}
.site-footer__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px 48px;
}
.site-footer__brand {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--text);
}
.site-footer__mark { width: auto; height: 21px; }

/* ---------- Motion ---------- */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition:
		opacity 1s var(--ease) var(--d, 0ms),
		transform 1.1s var(--ease) var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Staggers, in milliseconds (set as attributes: the Content-Security-Policy allows no inline styles). */
[data-delay="90"] { --d: 90ms; }
[data-delay="180"] { --d: 180ms; }
[data-delay="520"] { --d: 520ms; }
[data-delay="640"] { --d: 640ms; }
[data-delay="800"] { --d: 800ms; }

/* Headline words rise out of a clipped line. */
.js [data-split] .word {
	display: inline-block;
	overflow: hidden;
	padding-bottom: 0.14em;
	margin-bottom: -0.14em;
	vertical-align: bottom;
}
.js [data-split] .word > span {
	display: inline-block;
	transform: translateY(110%);
	transition: transform 1.1s var(--ease) calc(var(--i) * 60ms + 150ms);
}
.js [data-split].is-in .word > span { transform: none; }

.js [data-decode] { min-height: 1.4em; }
.js [data-decode]:not(.is-in) { opacity: 0; }   /* no placeholder digits before the label is in view */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js [data-reveal], .js [data-split] .word > span {
		opacity: 1;
		transform: none;
		transition: none;
	}
	/* A zero duration, not a tiny one: a tiny duration would give every element a transition on all properties. */
	/* stylelint-disable-next-line declaration-no-important -- must beat every component's own transition */
	*, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
	.site-nav, .site-nav::after, .site-nav a::before, .site-nav a::after, .site-nav a > span {
		/* stylelint-disable-next-line declaration-no-important -- the menu's opening and closing, whichever way it was opened */
		animation: none !important;
	}
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1000px) {
	.findings, .services { grid-template-columns: minmax(0, 1fr); }
	.service { min-height: 0; }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps li:nth-child(3) { border-left: 0; }
	.steps li:nth-child(n + 3) { border-top: 1px solid var(--line); }
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
	.role { grid-template-columns: 120px minmax(0, 1fr); }
	.role__detail { grid-column: 2; }
	.extras { padding-left: 152px; grid-template-columns: minmax(0, 1fr); }
	.contact__grid { grid-template-columns: minmax(0, 1fr); }
	.contact__side { display: contents; }
	.contact__mark { order: -1; height: 30vh; height: 30svh; }
	.elsewhere { order: 3; }
}

/* A phone on its side: as in the hero, the mark stands beside the heading
   and takes the height of the screen. Only the heading shares the row with
   it: the form and the links keep the full width beneath. The two wrappers
   are dissolved so that their children can be placed on one grid. */
@media (max-width: 1000px) and (min-width: 520px) and (orientation: landscape) {
	.contact__grid {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		grid-template-rows: auto auto auto 1fr;   /* the label, heading and lead, then whatever height the mark has left over */
		gap: 28px clamp(20px, 4vw, 48px);
	}
	.contact__copy { display: contents; }
	.contact__copy > * { grid-column: 1; }
	.contact__copy > .form, .elsewhere { grid-column: 1 / -1; }
	.contact__mark {
		order: 0;
		grid-column: 2;
		grid-row: 1 / span 4;
		height: min(calc(100vh - var(--header-h) - 48px), 440px);
		height: min(calc(100svh - var(--header-h) - 48px), 440px);
	}
}

@media (max-width: 640px) {
	:root { --header-h: 64px; }
	.brand__mark { height: 24.5px; margin-bottom: -0.5px; }
	.brand__name { font-size: 1.1875rem; }
	.ledger { grid-template-columns: minmax(0, 1fr); }
	.ledger__col + .ledger__col { border-left: 0; border-top: 1px solid var(--line); }
	.steps { grid-template-columns: minmax(0, 1fr); }
	.steps li + li { border-left: 0; border-top: 1px solid var(--line); }
	.role { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.role__detail { grid-column: 1; margin-top: 8px; }
	.role::before { display: none; }
	.extras { padding-left: 0; }
	.form__row { grid-template-columns: minmax(0, 1fr); }
	.clients li + li::before { margin-inline: 9px; }
	.site-footer__grid { flex-direction: column; }
}
