/* -----------------------------------------------------------------------------
 * Keelbase theme styles.
 *
 * Tokens live in style.css (:root). Nothing here hard-codes a colour or a font
 * size that exists as a token, and nothing reads a literal surface colour —
 * components read --kb-bg / --kb-fg / --kb-accent and friends, so a single
 * surface class flips a whole subtree.
 *
 * Two rules govern this file.
 *
 *   1. Bone is the field. The abyss is punctuation: three bands on the whole
 *      site use it, and they are the ones that are supposed to feel different.
 *   2. Orange is the keel and nothing else. The rail, the hero draw, the page
 *      thread, the node ticks and the logomark. Emphasis everywhere else is
 *      carried by contrast, weight and space.
 *
 * There are no gradients, no glows, no glass and no coloured shadows. Only
 * transform, opacity and clip are animated.
 *
 * Contents
 *   1.  Reset and base
 *   2.  Surfaces
 *   3.  Layout primitives
 *   4.  The keel line          <- the signature device
 *   5.  Reveal / motion system
 *   6.  Typography
 *   7.  Buttons, links, icons
 *   8.  Site header and nav
 *   9.  Home: hero
 *   10. Home: capability pathway
 *   11. Home: featured work
 *   12. Home: proof strip
 *   13. Home: the connected system
 *   14. Home: direct with the builders
 *   15. Journal cards
 *   16. Closing band
 *   17. Site footer
 *   18. Interior pages
 *   19. Forms
 *   20. Editor / post content
 *   21. Reduced motion
 * -------------------------------------------------------------------------- */

/* 1. Reset and base -------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* The rail is fixed to the viewport, so the page itself owns the scrollbar. */
	scrollbar-color: var(--kb-bone-sunk) var(--kb-bone);
}

body {
	margin: 0;
	background-color: var(--kb-bg);
	color: var(--kb-fg);
	font-family: var(--kb-font-body);
	font-size: var(--kb-fs-body);
	font-weight: var(--kb-fw-regular);
	line-height: var(--kb-lh-body);
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

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

/*
 * The nav is a flex container, and an author `display` beats the UA rule that
 * [hidden] relies on. Without this the collapsed mobile menu stays visible.
 */
[hidden] {
	display: none !important;
}

a {
	color: var(--kb-accent-text);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-thickness: 2px;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

/*
 * The focus ring is the surface's own foreground: 15.6:1 on bone, 18:1 on the
 * abyss. It was signal orange, which measured 2.5:1 on bone and 1.0:1 on the
 * old orange closing band — a WCAG 2.4.7 failure on the page's loudest CTA.
 */
:focus-visible {
	outline: 2px solid var(--kb-focus);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection {
	background: var(--kb-ink);
	color: var(--kb-bone);
}

.kb-surface--abyss ::selection {
	background: var(--kb-white);
	color: var(--kb-abyss);
}

hr {
	border: 0;
	border-top: 1px solid var(--kb-rule);
	margin: var(--kb-space-5) 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Parked above the viewport by a transform, not by `top`, which is a layout. */
.skip-link {
	position: absolute;
	top: var(--kb-space-3);
	left: var(--kb-space-3);
	z-index: 200;
	padding: var(--kb-space-2) var(--kb-space-3);
	background: var(--kb-ink);
	color: var(--kb-bone);
	font-weight: var(--kb-fw-semibold);
	text-decoration: none;
	border-radius: var(--kb-radius-sm);
	transform: translateY(calc(-100% - var(--kb-space-3)));
	transition: transform var(--kb-dur-fast) var(--kb-ease-out);
}

.skip-link:focus {
	transform: translateY(0);
	color: var(--kb-bone);
}

/* 2. Surfaces --------------------------------------------------------------
 *
 * Three fields, in descending frequency: bone for nearly everything, sand for
 * the reading plate in the middle of a page, abyss for the few bands that are
 * meant to land differently.
 * ------------------------------------------------------------------------ */

.kb-surface {
	background-color: var(--kb-bg);
	color: var(--kb-fg);
	position: relative;
}

.kb-surface--bone {
	--kb-bg: var(--kb-bone);
	--kb-fg: var(--kb-ink);
	--kb-fg-muted: var(--kb-muted-bone);
	--kb-raised: var(--kb-bone-raised);
	--kb-rule: var(--kb-rule-bone);
	--kb-accent: var(--kb-ink);
	--kb-accent-text: var(--kb-ink);
	--kb-focus: var(--kb-ink);
}

.kb-surface--sand {
	--kb-bg: var(--kb-bone-raised);
	--kb-fg: var(--kb-ink);
	--kb-fg-muted: var(--kb-muted-bone);
	--kb-raised: var(--kb-bone-sunk);
	--kb-rule: var(--kb-rule-bone);
	--kb-accent: var(--kb-ink);
	--kb-accent-text: var(--kb-ink);
	--kb-focus: var(--kb-ink);
}

.kb-surface--abyss {
	--kb-bg: var(--kb-abyss);
	--kb-fg: var(--kb-white);
	--kb-fg-muted: var(--kb-muted-dark);
	--kb-raised: var(--kb-harbour);
	--kb-rule: var(--kb-rule-dark);
	--kb-accent: var(--kb-white);
	--kb-accent-text: var(--kb-white);
	--kb-focus: var(--kb-white);
}

/*
 * Where two bands share a field, a single hairline keeps the rhythm legible
 * without inventing a second background tone. Where the field changes, the
 * change is the divider and a rule would be one thing too many.
 */
.kb-surface--bone + .kb-surface--bone,
.kb-surface--sand + .kb-surface--sand,
.kb-surface--abyss + .kb-surface--abyss {
	border-top: 1px solid var(--kb-rule);
}

/* The hero already ends on the keel line. It does not need a second one. */
.kb-hero + .kb-surface--bone {
	border-top: 0;
}

/* 3. Layout primitives ----------------------------------------------------- */

.kb-container {
	width: 100%;
	max-width: var(--kb-container);
	margin-inline: auto;
	padding-inline: var(--kb-gutter);
}

.kb-container--narrow {
	max-width: 820px;
}

.kb-section {
	position: relative;
	padding-block: var(--kb-space-7);
}

.kb-section--tight {
	padding-block: var(--kb-space-6);
}

.kb-section--flush-top {
	padding-top: 0;
}

.kb-split {
	display: grid;
	gap: var(--kb-space-5);
	grid-template-columns: minmax(0, 1fr);
}

.kb-split > * {
	min-width: 0;
}

.kb-stack-1 { margin-top: var(--kb-space-1); }
.kb-stack-2 { margin-top: var(--kb-space-2); }
.kb-stack-3 { margin-top: var(--kb-space-3); }
.kb-stack-4 { margin-top: var(--kb-space-4); }

@media (min-width: 900px) {
	.kb-split {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: var(--kb-space-6);
	}

	.kb-split--even {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

/* 4. The keel line ---------------------------------------------------------
 *
 * One device, four jobs, one colour:
 *   a. it draws itself across the hero on load, where it is also the datum the
 *      hero is composed against                          (.kb-keel-draw)
 *   b. it threads down the page through every section    (.kb-section::before/::after)
 *   c. it triggers each section's reveal on scroll       (see section 5)
 *   d. it is the scroll-progress rail at the viewport edge, and the logo mark
 *                                                        (.kb-rail / .kb-logomark)
 *
 * Everything below is transform, opacity or SVG stroke only, and this is the
 * only place in the stylesheet that names --kb-keel.
 * ------------------------------------------------------------------------ */

/*
 * d. The rail: the same line pinned to the left viewport edge, where its fill
 * reports scroll progress. There is no track behind it — the fill is the whole
 * device, and an empty groove would be furniture for its own sake.
 */
.kb-rail {
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	z-index: 90;
	pointer-events: none;
}

.kb-rail__fill {
	position: absolute;
	inset: 0;
	background: var(--kb-keel);
	transform: scaleY(var(--kb-progress, 0));
	transform-origin: top center;
}

/* Where CSS can drive the progress itself, JavaScript stays out of it. */
@supports (animation-timeline: scroll()) {
	.kb-rail__fill {
		transform: scaleY(0);
		animation: kb-rail-progress linear both;
		animation-timeline: scroll(root block);
	}

	@keyframes kb-rail-progress {
		from { transform: scaleY(0); }
		to   { transform: scaleY(1); }
	}
}

@media (max-width: 700px) {
	.kb-rail {
		width: 2px;
	}
}

/*
 * b. The in-page thread: it runs the full height of every section, dim behind
 * and lit for the part you have scrolled through. Two pseudo-elements per
 * section, no extra markup, and it costs nothing to add to a new section.
 */
.kb-section::before,
.kb-section::after {
	content: '';
	position: absolute;
	left: var(--kb-thread-x);
	top: 0;
	bottom: 0;
	width: 2px;
	pointer-events: none;
}

.kb-section::before {
	background: var(--kb-rule);
}

.kb-section::after {
	background: var(--kb-keel);
	transform: scaleY(0);
	transform-origin: top center;
	transition: transform var(--kb-dur) var(--kb-ease-out);
}

.kb-section.is-lit::after {
	transform: scaleY(1);
}

@supports (animation-timeline: view()) {
	.kb-section::after {
		transition: none;
		animation: kb-thread linear both;
		animation-timeline: view();
		animation-range: cover 0% cover 100%;
	}

	@keyframes kb-thread {
		from { transform: scaleY(0); }
		to   { transform: scaleY(1); }
	}
}

/* The tick that ties the thread to a section's content. */
.kb-node {
	display: block;
	width: 34px;
	height: 2px;
	margin-bottom: var(--kb-space-3);
	background: var(--kb-keel);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--kb-dur) var(--kb-ease-out);
}

.is-lit .kb-node,
.kb-node.is-lit {
	transform: scaleX(1);
}

/*
 * a. The hero draw-in.
 *
 * The line sits in the flow between the hero's two registers rather than
 * floating behind them: the headline and the device stand on it, the lead and
 * the actions hang below it, and it is the only thing separating the two. It
 * carries on down the page as the thread.
 *
 * The reveal is a left-to-right clip rather than an animated stroke-dashoffset.
 * The SVG stretches to the full width with preserveAspectRatio="none", and in
 * that non-uniform space Chrome measures pathLength-normalised dashes against
 * the untransformed path, so the stroke stops short of the right edge. Clipping
 * has no such disagreement, keeps vector-effect: non-scaling-stroke so the line
 * stays exactly 2px at every width, and stays a single cheap paint.
 */
.kb-keel-draw {
	display: block;
	width: 100%;
	height: clamp(30px, 4vw, 58px);
	/* Tighter above than below: the headline and the device stand on the line. */
	margin-block: clamp(12px, 1.6vw, 22px) clamp(32px, 5vw, 60px);
	overflow: visible;
	pointer-events: none;
	clip-path: inset(-20px 100% -20px 0);
	animation: kb-draw var(--kb-dur-draw) 120ms var(--kb-ease-out) forwards;
}

.kb-keel-draw__line {
	fill: none;
	stroke: var(--kb-keel);
	stroke-width: 2;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

@keyframes kb-draw {
	to { clip-path: inset(-20px 0 -20px 0); }
}

/* The logo mark is the same line, at 22px. */
.kb-logomark {
	overflow: visible;
	flex: 0 0 auto;
	transition: transform var(--kb-dur-fast) var(--kb-ease-out);
}

.kb-logomark path {
	fill: none;
	stroke: var(--kb-keel);
	stroke-width: 2;
	stroke-linecap: round;
}

.kb-logomark circle {
	fill: var(--kb-keel);
	stroke: none;
}

/* The mark advances a hair rather than lighting up. No filters, no recolour. */
.kb-brand:hover .kb-logomark,
.kb-brand:focus-visible .kb-logomark {
	transform: translateX(2px);
}

/* 5. Reveal / motion system ------------------------------------------------
 *
 * Content is visible by default. The hidden start state is only applied once
 * something can be relied on to bring it back: either the browser supports
 * scroll-driven animations, or keel.js has flagged .kb-js on <html>.
 *
 * One reveal, no stagger. A staircase of delayed children reads as a device
 * rather than as the page arriving.
 * ------------------------------------------------------------------------ */

.kb-js .kb-reveal {
	opacity: 0;
	transform: translateY(10px);
	transition:
		opacity var(--kb-dur) var(--kb-ease-out),
		transform var(--kb-dur) var(--kb-ease-out);
}

.kb-js .kb-reveal.is-lit,
.kb-js .is-lit .kb-reveal {
	opacity: 1;
	transform: none;
}

/*
 * The hero headline mask. Two lines, one beat apart, on the same clock as the
 * keel draw underneath them — the page's single orchestrated moment. It runs on
 * load, so it needs no observer.
 */
.kb-mask {
	display: block;
	overflow: hidden;
	padding-bottom: 0.08em;
}

.kb-mask > span {
	display: block;
	transform: translateY(105%);
	animation: kb-unmask 640ms var(--kb-ease-out) forwards;
}

.kb-mask:nth-of-type(1) > span { animation-delay: 80ms; }
.kb-mask:nth-of-type(2) > span { animation-delay: 180ms; }

@keyframes kb-unmask {
	to { transform: translateY(0); }
}

/*
 * Anything decorative waits until after the largest paint. With scripts off the
 * gate never closes in the first place, so these elements are simply there.
 */
.kb-js .kb-late {
	opacity: 0;
	transition: opacity var(--kb-dur) var(--kb-ease-out);
}

.kb-js.kb-lit .kb-late {
	opacity: 1;
}

/* 6. Typography ------------------------------------------------------------ */

.kb-display,
.kb-h1,
.kb-h2,
.kb-h3,
.kb-h4 {
	font-family: var(--kb-font-display);
	font-weight: var(--kb-fw-bold);
	letter-spacing: var(--kb-track-tight);
	margin: 0;
	text-wrap: balance;
}

.kb-display {
	font-size: var(--kb-fs-display);
	line-height: var(--kb-lh-display);
	letter-spacing: var(--kb-track-display);
	text-wrap: initial;
}

.kb-h1 {
	font-size: var(--kb-fs-h1);
	line-height: var(--kb-lh-tight);
	letter-spacing: var(--kb-track-display);
}

.kb-h2 {
	font-size: var(--kb-fs-h2);
	line-height: var(--kb-lh-heading);
}

.kb-h3 {
	font-size: var(--kb-fs-h3);
	line-height: var(--kb-lh-heading);
}

.kb-h4 {
	font-size: var(--kb-fs-h4);
	line-height: 1.3;
}

.kb-lead {
	font-size: var(--kb-fs-lead);
	line-height: 1.55;
	color: var(--kb-fg-muted);
	max-width: 60ch;
	margin: 0;
	text-wrap: pretty;
}

.kb-body {
	margin: 0;
	max-width: var(--kb-measure);
	text-wrap: pretty;
}

.kb-micro {
	font-size: var(--kb-fs-sm);
	line-height: 1.5;
	color: var(--kb-fg-muted);
	margin: 0;
	text-wrap: pretty;
}

.kb-eyebrow {
	display: inline-block;
	font-family: var(--kb-font-body);
	font-size: var(--kb-fs-eyebrow);
	font-weight: var(--kb-fw-semibold);
	letter-spacing: var(--kb-track-eyebrow);
	text-transform: uppercase;
	color: var(--kb-fg-muted);
	margin: 0 0 var(--kb-space-2);
}

.kb-list {
	list-style: none;
	margin: var(--kb-space-3) 0 0;
	padding: 0;
	display: grid;
	gap: var(--kb-space-2);
}

.kb-list li {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: var(--kb-space-2);
	align-items: start;
	color: var(--kb-fg-muted);
	text-wrap: pretty;
}

.kb-list__check {
	color: var(--kb-fg);
	margin-top: 3px;
}

/* 7. Buttons, links, icons -------------------------------------------------- */

/*
 * The button is the surface inverted: ink on bone, warm white on the abyss.
 * One rule covers every band, it is the highest contrast pairing available on
 * each of them, and it needs no colour of its own to be the loudest thing in
 * its neighbourhood.
 */
.kb-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: var(--kb-space-2);
	padding: 17px 30px;
	border: 0;
	border-radius: var(--kb-radius-full);
	background: var(--kb-fg);
	color: var(--kb-bg);
	font-family: var(--kb-font-body);
	font-size: var(--kb-fs-body);
	font-weight: var(--kb-fw-semibold);
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--kb-dur-fast) var(--kb-ease-out);
}

/*
 * The lift shadow is a layer of its own, faded in with opacity. A transitioned
 * box-shadow re-rasterises the button on every frame of the hover; an outer
 * shadow is only ever drawn outside the border box, so this layer can sit over
 * the button without covering anything.
 */
.kb-btn::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: var(--kb-lift-hover);
	opacity: 0;
	transition: opacity var(--kb-dur-fast) var(--kb-ease-out);
	pointer-events: none;
}

.kb-btn:hover {
	color: var(--kb-bg);
	transform: translateY(-2px);
}

.kb-btn:hover::after {
	opacity: 1;
}

/* Press answers the hover: the button goes down as far as it came up, and in. */
.kb-btn:active {
	transform: scale(0.96);
}

.kb-btn:active::after {
	opacity: 0;
}

/* The arrow pulls forward on hover — the only thing that moves. */
.kb-btn .kb-icon,
.kb-textlink .kb-icon {
	transition: transform var(--kb-dur-fast) var(--kb-ease-out);
}

.kb-btn:hover .kb-icon,
.kb-textlink:hover .kb-icon {
	transform: translateX(4px);
}

.kb-btn--sm {
	padding: 11px 20px;
	font-size: var(--kb-fs-sm);
}

/* Secondary: hairline, inherits the surface's foreground. */
.kb-btn--ghost {
	background: transparent;
	color: var(--kb-fg);
	box-shadow: inset 0 0 0 1px var(--kb-rule);
}

/* No fill, so nothing to lift off the surface. */
.kb-btn--ghost::after {
	box-shadow: none;
}

.kb-btn--ghost:hover {
	color: var(--kb-fg);
	background: var(--kb-raised);
	box-shadow: inset 0 0 0 1px var(--kb-fg);
}

/*
 * A text link keeps a hairline at rest, so it is never distinguished from body
 * copy by colour alone — it cannot be, now that links are the same ink as the
 * text around them.
 */
.kb-textlink {
	display: inline-flex;
	align-items: center;
	gap: var(--kb-space-1);
	font-weight: var(--kb-fw-semibold);
	color: var(--kb-accent-text);
	text-decoration: none;
	border-bottom: 1px solid var(--kb-rule);
}

.kb-textlink:hover {
	color: var(--kb-fg);
	border-bottom-color: currentColor;
}

.kb-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--kb-space-3);
	margin-top: var(--kb-space-4);
}

.kb-icon {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	display: inline-block;
	vertical-align: middle;
	flex: 0 0 auto;
}

.kb-icon--filled {
	fill: currentColor;
	stroke: none;
}

.kb-card {
	position: relative;
	padding: var(--kb-space-4);
	border-radius: var(--kb-radius-lg);
	background: var(--kb-raised);
	/* Hairline for structure, one soft step of lift for depth. */
	box-shadow:
		inset 0 0 0 1px var(--kb-rule),
		var(--kb-lift);
}

.kb-card:hover {
	box-shadow:
		inset 0 0 0 1px var(--kb-accent),
		var(--kb-lift);
}

.kb-card__title {
	margin-top: var(--kb-space-2);
}

.kb-card__body {
	margin: var(--kb-space-2) 0 0;
	color: var(--kb-fg-muted);
	text-wrap: pretty;
}

.kb-card__cta {
	margin-top: var(--kb-space-4);
}

.kb-panel {
	padding: var(--kb-space-4);
	border-radius: var(--kb-radius-md);
	background: var(--kb-raised);
	box-shadow:
		inset 0 0 0 1px var(--kb-rule),
		var(--kb-lift);
}

.kb-panel + .kb-panel {
	margin-top: var(--kb-space-3);
}

/* 8. Site header and nav ----------------------------------------------------
 *
 * Solid bone, one hairline. The header used to be a blurred glass panel over
 * the dark hero; on a light page that costs a full-screen backdrop filter to
 * say nothing.
 * ------------------------------------------------------------------------ */

.kb-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--kb-bone);
	border-bottom: 1px solid var(--kb-rule-bone);
	color: var(--kb-ink);
}

.kb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--kb-space-3);
	min-height: 72px;
}

.kb-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--kb-font-display);
	font-weight: var(--kb-fw-bold);
	font-size: var(--kb-fs-h4);
	letter-spacing: var(--kb-track-tight);
	color: var(--kb-ink);
	text-decoration: none;
}

.kb-brand:hover {
	color: var(--kb-ink);
}

.kb-nav {
	display: flex;
	align-items: center;
	gap: var(--kb-space-4);
}

.kb-nav__menu {
	display: flex;
	align-items: center;
	gap: var(--kb-space-4);
	list-style: none;
	margin: 0;
	padding: 0;
}

.kb-nav__menu a {
	position: relative;
	display: inline-block;
	padding: 6px 0;
	font-size: var(--kb-fs-sm);
	font-weight: var(--kb-fw-medium);
	color: var(--kb-muted-bone);
	text-decoration: none;
}

.kb-nav__menu a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--kb-ink);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--kb-dur-fast) var(--kb-ease-out);
}

.kb-nav__menu a:hover,
.kb-nav__menu .current-menu-item > a,
.kb-nav__menu .current_page_item > a {
	color: var(--kb-ink);
}

.kb-nav__menu a:hover::after,
.kb-nav__menu .current-menu-item > a::after,
.kb-nav__menu .current_page_item > a::after {
	transform: scaleX(1);
}

.kb-nav__toggle {
	display: none;
	padding: 10px;
	background: transparent;
	border: 1px solid var(--kb-rule-bone);
	border-radius: var(--kb-radius-sm);
	color: var(--kb-ink);
	cursor: pointer;
	transition: transform var(--kb-dur-fast) var(--kb-ease-out);
}

.kb-nav__toggle:active {
	transform: scale(0.96);
}

@media (max-width: 900px) {
	.kb-nav__toggle {
		display: inline-flex;
	}

	.kb-header__inner {
		flex-wrap: wrap;
	}

	.kb-nav {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--kb-space-3);
		width: 100%;
		padding-bottom: var(--kb-space-4);
	}

	.kb-nav__menu {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--kb-space-2);
		width: 100%;
	}

	.kb-nav__menu a {
		font-size: var(--kb-fs-lead);
	}
}

/* 9. Home: hero -------------------------------------------------------------
 *
 * The hero is composed against the keel line rather than decorated with it. The
 * line runs in the flow, full bleed, and everything above it is the claim —
 * eyebrow, headline, the client device standing on the line — while everything
 * below it is the detail: the lead, the two actions and the one proof caption.
 *
 * The headline is set in two registers of the same variable face. The setup
 * ("Modern web for the") is light and open at a small optical size; the phrase
 * it hands to ("AI era.") is the heaviest weight the file carries, at display
 * optical size and display tracking. The emphasis that used to be a colour is
 * now weight, scale and optical size — which is the thing headline type is
 * actually for.
 * ------------------------------------------------------------------------ */

.kb-hero {
	padding-top: clamp(36px, 4.5vw, 64px);
	padding-bottom: clamp(48px, 6vw, 88px);
}

.kb-hero__upper,
.kb-hero__lower {
	display: grid;
	gap: var(--kb-space-4);
	grid-template-columns: minmax(0, 1fr);
	align-items: end;
}

@media (min-width: 1000px) {
	.kb-hero__upper,
	.kb-hero__lower {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
		gap: var(--kb-space-6);
	}
}

.kb-hero__title {
	margin-top: var(--kb-space-4);
}

/* The light register: smaller, opener, and set at its own optical size. */
.kb-hero__setup {
	display: block;
	font-size: var(--kb-fs-display-sub);
	line-height: 1.1;
	letter-spacing: var(--kb-track-open);
	color: var(--kb-fg-muted);
	font-variation-settings: 'wght' 250, 'opsz' 32;
}

/*
 * The heavy register. The optical nudge is real: "A" is a diagonal, so a left
 * edge that is geometrically flush against the light line above reads indented.
 */
.kb-hero__key {
	display: block;
	font-variation-settings: 'wght' 800, 'opsz' 96;
	margin-left: -0.02em;
}

.kb-hero__lead {
	max-width: 46ch;
}

.kb-hero__micro {
	margin-top: var(--kb-space-3);
	max-width: 46ch;
}

/* The proof caption sits under the device, in the same column. */
.kb-hero__proof {
	margin: 0;
	font-size: var(--kb-fs-sm);
	line-height: 1.5;
	color: var(--kb-fg-muted);
	text-wrap: pretty;
}

.kb-hero__proof strong {
	display: block;
	color: var(--kb-fg);
	font-family: var(--kb-font-display);
	font-weight: var(--kb-fw-bold);
	letter-spacing: var(--kb-track-tight);
}

/*
 * The client device. Drawn in markup: crisp, weightless, no uploads needed.
 * A dark shell around a light screen, one hairline, one step of lift, and no
 * glow behind it — it is a prop in the hero, not the subject of it.
 */
.kb-device {
	position: relative;
	width: min(248px, 68vw);
	margin-inline: auto;
	padding: 12px;
	border-radius: var(--kb-radius-xl);
	background: var(--kb-ink);
	box-shadow: var(--kb-lift);
}

.kb-device::before {
	content: '';
	position: absolute;
	top: 22px;
	left: 50%;
	transform: translateX(-50%);
	width: 56px;
	height: 4px;
	border-radius: var(--kb-radius-full);
	background: rgba(244, 240, 231, 0.28);
	z-index: 2;
}

.kb-device__screen {
	border-radius: var(--kb-radius-lg);
	overflow: hidden;
	background: var(--kb-bone);
	color: var(--kb-ink);
}

.kb-device__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 30px 18px 12px;
	font-family: var(--kb-font-display);
	font-size: var(--kb-fs-xs);
	font-weight: var(--kb-fw-bold);
	letter-spacing: var(--kb-track-tight);
}

/* The client's own hero band: a flat plate and one rule, no imagery to fake. */
.kb-device__banner {
	height: 76px;
	position: relative;
	background: var(--kb-bone-raised);
	border-block: 1px solid var(--kb-rule-bone);
}

.kb-device__banner::after {
	content: '';
	position: absolute;
	left: 18px;
	width: 64px;
	bottom: 20px;
	height: 2px;
	background: var(--kb-ink);
}

.kb-device__body {
	padding: 18px;
	display: grid;
	gap: 10px;
}

.kb-device__headline {
	margin: 0;
	font-family: var(--kb-font-display);
	font-size: var(--kb-fs-h4);
	font-weight: var(--kb-fw-bold);
	line-height: 1.12;
	letter-spacing: var(--kb-track-tight);
}

.kb-device__copy {
	margin: 0;
	font-size: var(--kb-fs-xs);
	line-height: 1.45;
	color: var(--kb-muted-bone);
}

.kb-device__cta {
	display: inline-block;
	align-self: start;
	padding: 9px 16px;
	border-radius: var(--kb-radius-full);
	background: var(--kb-ink);
	color: var(--kb-bone);
	font-size: var(--kb-fs-xs);
	font-weight: var(--kb-fw-semibold);
}

/* 10. Home: capability pathway ----------------------------------------------
 *
 * Unnumbered on purpose. The four stages hand over to each other but they are
 * not a queue — the copy's whole argument is that the line holds all at once —
 * and a leading 01–04 would assert an order the page spends a paragraph
 * denying. The connector rule is what carries the handover.
 * ------------------------------------------------------------------------ */

.kb-pathway {
	display: grid;
	gap: var(--kb-space-3);
	grid-template-columns: minmax(0, 1fr);
	margin-top: var(--kb-space-5);
	list-style: none;
	padding: 0;
}

.kb-pathway__item {
	position: relative;
	padding: var(--kb-space-4);
	border-radius: var(--kb-radius-lg);
	background: var(--kb-raised);
	box-shadow:
		inset 0 0 0 1px var(--kb-rule),
		var(--kb-lift);
}

.kb-pathway__item:hover {
	box-shadow:
		inset 0 0 0 1px var(--kb-accent),
		var(--kb-lift);
}

/* The line threads from one stage into the next. */
.kb-pathway__item::after {
	content: '';
	position: absolute;
	background: var(--kb-rule);
}

.kb-pathway__item:last-child::after {
	display: none;
}

.kb-pathway__step {
	display: inline-flex;
	align-items: center;
	color: var(--kb-fg-muted);
}

.kb-pathway__title {
	margin: var(--kb-space-3) 0 0;
}

.kb-pathway__body {
	margin: var(--kb-space-2) 0 0;
	color: var(--kb-fg-muted);
	font-size: var(--kb-fs-sm);
	text-wrap: pretty;
}

@media (max-width: 899px) {
	.kb-pathway__item::after {
		left: 50%;
		bottom: calc(var(--kb-space-3) * -1);
		width: 2px;
		height: var(--kb-space-3);
		transform: translateX(-50%);
	}
}

@media (min-width: 900px) {
	.kb-pathway {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.kb-pathway__item::after {
		top: 50%;
		right: calc(var(--kb-space-3) * -1);
		width: var(--kb-space-3);
		height: 2px;
	}
}

/* 11. Home: featured work ---------------------------------------------------
 *
 * The one abyss plate in the middle of the page. Everything either side of it
 * is bone, so the band does the work a heading effect would otherwise be asked
 * to do.
 * ------------------------------------------------------------------------ */

.kb-work {
	display: grid;
	gap: var(--kb-space-3);
	grid-template-columns: minmax(0, 1fr);
	margin-top: var(--kb-space-5);
}

@media (min-width: 900px) {
	.kb-work {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.kb-work__item--flagship {
		grid-column: span 3;
	}
}

.kb-work__item {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--kb-space-4);
	border-radius: var(--kb-radius-lg);
	background: var(--kb-raised);
	box-shadow: inset 0 0 0 1px var(--kb-rule);
}

.kb-work__item:hover {
	box-shadow: inset 0 0 0 1px var(--kb-accent);
}

/*
 * A slot that is not a client is drawn as one: a dashed hairline instead of a
 * solid one. The copy says so too, but a reader skimming the row should be able
 * to see which cards are work and which are space held open for it.
 */
.kb-work__item--placeholder {
	box-shadow: none;
	border: 1px dashed var(--kb-rule);
}

.kb-work__item--placeholder:hover {
	box-shadow: none;
	border-color: var(--kb-accent);
}

.kb-work__item--flagship {
	display: grid;
	gap: var(--kb-space-4);
	grid-template-columns: minmax(0, 1fr);
	padding: var(--kb-space-5);
}

@media (min-width: 900px) {
	.kb-work__item--flagship {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		align-items: center;
	}
}

.kb-work__tag {
	display: inline-block;
	padding: 5px 12px;
	border-radius: var(--kb-radius-full);
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--kb-rule);
	color: var(--kb-fg-muted);
	font-size: var(--kb-fs-xs);
	font-weight: var(--kb-fw-semibold);
	align-self: start;
}

.kb-work__title {
	margin: var(--kb-space-3) 0 0;
}

.kb-work__body {
	margin: var(--kb-space-2) 0 0;
	color: var(--kb-fg-muted);
	text-wrap: pretty;
}

.kb-work__facts {
	list-style: none;
	margin: var(--kb-space-4) 0 0;
	padding: 0;
	display: grid;
	gap: var(--kb-space-2);
}

.kb-work__facts li {
	display: flex;
	align-items: center;
	gap: var(--kb-space-2);
	font-size: var(--kb-fs-sm);
	color: var(--kb-fg-muted);
	font-variant-numeric: tabular-nums;
}

.kb-work__facts .kb-icon {
	color: var(--kb-fg);
}

.kb-work__footer {
	margin-top: auto;
	padding-top: var(--kb-space-4);
}

/* 12. Home: proof strip ----------------------------------------------------- */

.kb-proof__grid {
	display: grid;
	gap: var(--kb-space-5);
	grid-template-columns: minmax(0, 1fr);
	margin-top: var(--kb-space-5);
}

@media (min-width: 800px) {
	.kb-proof__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.kb-stat {
	position: relative;
	padding-top: var(--kb-space-3);
	border-top: 2px solid var(--kb-rule);
}

/* The rule fills in as the band arrives. All three at once, no staircase. */
.kb-stat::before {
	content: '';
	position: absolute;
	top: -2px;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--kb-fg);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--kb-dur) var(--kb-ease-out);
}

.is-lit .kb-stat::before {
	transform: scaleX(1);
}

.kb-stat__value {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 4px;
	font-family: var(--kb-font-display);
	font-size: var(--kb-fs-stat);
	font-weight: var(--kb-fw-bold);
	line-height: 1;
	letter-spacing: var(--kb-track-display);
	color: var(--kb-fg);
	font-variant-numeric: tabular-nums;
}

.kb-stat__unit {
	font-size: 0.4em;
	color: var(--kb-fg-muted);
	letter-spacing: var(--kb-track-tight);
}

.kb-stat__label {
	margin: var(--kb-space-2) 0 0;
	font-size: var(--kb-fs-sm);
	color: var(--kb-fg-muted);
	max-width: 30ch;
	text-wrap: pretty;
}

.kb-proof__source {
	margin: var(--kb-space-5) 0 0;
	font-size: var(--kb-fs-sm);
	color: var(--kb-fg-muted);
	max-width: var(--kb-measure);
	text-wrap: pretty;
}

/* 13. Home: the connected system -------------------------------------------- */

.kb-system {
	display: grid;
	gap: var(--kb-space-3);
	grid-template-columns: minmax(0, 1fr);
	margin-top: var(--kb-space-5);
}

@media (min-width: 760px) {
	.kb-system {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.kb-system__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: var(--kb-radius-md);
	background: var(--kb-bg);
	box-shadow: inset 0 0 0 1px var(--kb-rule);
	color: var(--kb-fg);
	margin-bottom: var(--kb-space-3);
}

/* 14. Home: direct with the builders ---------------------------------------- */

.kb-direct__points {
	list-style: none;
	margin: var(--kb-space-4) 0 0;
	padding: 0;
	display: grid;
	gap: var(--kb-space-4);
}

.kb-direct__points li {
	padding-left: var(--kb-space-4);
	border-left: 2px solid var(--kb-rule);
	position: relative;
}

.kb-direct__points li::before {
	content: '';
	position: absolute;
	left: -2px;
	top: 0;
	width: 2px;
	height: 26px;
	background: var(--kb-fg);
}

.kb-direct__points h3 {
	margin: 0;
	font-family: var(--kb-font-display);
	font-size: var(--kb-fs-h4);
	font-weight: var(--kb-fw-bold);
	letter-spacing: var(--kb-track-tight);
}

.kb-direct__points p {
	margin: var(--kb-space-1) 0 0;
	color: var(--kb-fg-muted);
	text-wrap: pretty;
}

/* 15. Journal cards --------------------------------------------------------- */

.kb-posts {
	display: grid;
	gap: var(--kb-space-3);
	grid-template-columns: minmax(0, 1fr);
	margin-top: var(--kb-space-5);
}

@media (min-width: 800px) {
	.kb-posts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.kb-posts--list {
		grid-template-columns: minmax(0, 1fr);
	}
}

.kb-post-card {
	display: flex;
	flex-direction: column;
	padding: var(--kb-space-4);
	border-radius: var(--kb-radius-lg);
	background: var(--kb-raised);
	box-shadow:
		inset 0 0 0 1px var(--kb-rule),
		var(--kb-lift);
}

.kb-post-card:hover {
	box-shadow:
		inset 0 0 0 1px var(--kb-accent),
		var(--kb-lift);
}

.kb-post-card__meta {
	margin: 0;
	font-size: var(--kb-fs-xs);
	font-weight: var(--kb-fw-semibold);
	letter-spacing: var(--kb-track-eyebrow);
	text-transform: uppercase;
	color: var(--kb-fg-muted);
	font-variant-numeric: tabular-nums;
}

.kb-post-card__title {
	margin: var(--kb-space-3) 0 0;
	font-size: var(--kb-fs-h4);
}

.kb-post-card__title a {
	color: var(--kb-fg);
	text-decoration: none;
}

.kb-post-card__title a:hover {
	text-decoration: underline;
}

.kb-post-card__excerpt {
	margin: var(--kb-space-2) 0 0;
	color: var(--kb-fg-muted);
	font-size: var(--kb-fs-sm);
	text-wrap: pretty;
}

.kb-post-card__more {
	margin-top: auto;
	padding-top: var(--kb-space-4);
}

/* 16. Closing band ----------------------------------------------------------
 *
 * The close and the footer are one continuous abyss, split by a hairline. It is
 * the last of the three dark bands on the site and the only one on an interior
 * page, so arriving there is the signal that the page is over.
 * ------------------------------------------------------------------------ */

.kb-closing__title {
	max-width: 20ch;
}

.kb-closing__lead {
	margin-top: var(--kb-space-3);
	max-width: 52ch;
}

/* 17. Site footer ----------------------------------------------------------- */

.kb-footer {
	--kb-bg: var(--kb-abyss);
	--kb-fg: var(--kb-white);
	--kb-fg-muted: var(--kb-muted-dark);
	--kb-raised: var(--kb-harbour);
	--kb-rule: var(--kb-rule-dark);
	--kb-accent: var(--kb-white);
	--kb-accent-text: var(--kb-white);
	--kb-focus: var(--kb-white);
	background: var(--kb-bg);
	color: var(--kb-fg);
	border-top: 1px solid var(--kb-rule);
	padding-block: var(--kb-space-6) var(--kb-space-4);
}

.kb-footer__grid {
	display: grid;
	gap: var(--kb-space-5);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
	.kb-footer__grid {
		grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	}
}

.kb-footer__blurb {
	margin: var(--kb-space-3) 0 0;
	max-width: 34ch;
	color: var(--kb-fg-muted);
	font-size: var(--kb-fs-sm);
	text-wrap: pretty;
}

.kb-footer .kb-brand {
	color: var(--kb-white);
}

.kb-footer .kb-brand:hover {
	color: var(--kb-white);
}

.kb-footer__heading {
	margin-bottom: var(--kb-space-3);
	color: var(--kb-fg-muted);
}

.kb-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--kb-space-2);
	font-size: var(--kb-fs-sm);
}

.kb-footer__list a {
	color: var(--kb-fg-muted);
	text-decoration: none;
}

.kb-footer__list a:hover {
	color: var(--kb-white);
	text-decoration: underline;
}

.kb-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--kb-space-2);
	margin-top: var(--kb-space-6);
	padding-top: var(--kb-space-3);
	border-top: 1px solid var(--kb-rule);
	font-size: var(--kb-fs-xs);
	color: var(--kb-fg-muted);
}

.kb-footer__bottom p {
	margin: 0;
	font-variant-numeric: tabular-nums;
}

/* 18. Interior pages -------------------------------------------------------- */

/*
 * The page header is a .kb-section too, so it inherits the thread rather than
 * needing its own pseudo-elements.
 */
.kb-pagehead {
	padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px);
}

.kb-pagehead__title {
	margin-top: var(--kb-space-2);
	max-width: 20ch;
}

.kb-pagehead__lead {
	margin-top: var(--kb-space-4);
}

.kb-breadcrumbs {
	font-size: var(--kb-fs-xs);
	color: var(--kb-fg-muted);
	margin-bottom: var(--kb-space-4);
}

.kb-breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--kb-space-1);
	margin: 0;
	padding: 0;
}

.kb-breadcrumbs a {
	color: var(--kb-fg-muted);
	text-decoration: none;
}

.kb-breadcrumbs a:hover {
	color: var(--kb-fg);
	text-decoration: underline;
}

.kb-breadcrumbs li + li::before {
	content: '/';
	margin-right: var(--kb-space-1);
	color: var(--kb-fg-muted);
}

.kb-meta {
	display: grid;
	gap: var(--kb-space-3);
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	margin-top: var(--kb-space-4);
	padding-top: var(--kb-space-3);
	border-top: 1px solid var(--kb-rule);
}

.kb-meta__value {
	display: block;
	font-family: var(--kb-font-display);
	font-size: var(--kb-fs-h4);
	font-weight: var(--kb-fw-bold);
	letter-spacing: var(--kb-track-tight);
	color: var(--kb-fg);
	font-variant-numeric: tabular-nums;
}

.kb-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--kb-space-2);
}

.kb-contact-list li {
	display: flex;
	align-items: center;
	gap: var(--kb-space-2);
	font-variant-numeric: tabular-nums;
}

.kb-contact-list .kb-icon {
	color: var(--kb-fg-muted);
}

.kb-faq {
	display: grid;
	gap: var(--kb-space-3);
	margin-top: var(--kb-space-5);
}

.kb-faq__item {
	padding: var(--kb-space-4);
	border-radius: var(--kb-radius-md);
	background: var(--kb-raised);
	box-shadow:
		inset 0 0 0 1px var(--kb-rule),
		var(--kb-lift);
}

.kb-faq__q {
	margin: 0;
	font-family: var(--kb-font-display);
	font-size: var(--kb-fs-h4);
	font-weight: var(--kb-fw-bold);
	letter-spacing: var(--kb-track-tight);
}

.kb-faq__a {
	margin: var(--kb-space-2) 0 0;
	color: var(--kb-fg-muted);
	max-width: var(--kb-measure);
	text-wrap: pretty;
}

.kb-empty {
	padding-block: clamp(80px, 14vw, 180px);
	max-width: 640px;
}

.kb-empty__title {
	margin-top: var(--kb-space-2);
}

.kb-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var(--kb-space-2);
	margin-top: var(--kb-space-5);
	padding-top: var(--kb-space-4);
	border-top: 1px solid var(--kb-rule);
	font-size: var(--kb-fs-sm);
	font-variant-numeric: tabular-nums;
}

.kb-pagination a,
.kb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: var(--kb-radius-full);
	box-shadow: inset 0 0 0 1px var(--kb-rule);
	color: var(--kb-fg-muted);
	text-decoration: none;
}

.kb-pagination a:hover,
.kb-pagination .current {
	color: var(--kb-fg);
	box-shadow: inset 0 0 0 1px var(--kb-accent);
}

/* 19. Forms ----------------------------------------------------------------- */

.kb-form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--kb-space-2);
	align-items: center;
}

.kb-form__input {
	flex: 1 1 240px;
	min-width: 0;
	padding: 16px 20px;
	border: 0;
	border-radius: var(--kb-radius-full);
	background: var(--kb-bg);
	color: var(--kb-fg);
	box-shadow: inset 0 0 0 1px var(--kb-rule);
}

.kb-form__input::placeholder {
	color: var(--kb-fg-muted);
	opacity: 1;
}

.kb-form__input:focus-visible {
	box-shadow: inset 0 0 0 1px var(--kb-fg);
	outline-offset: 2px;
}

.kb-form__note {
	flex: 1 0 100%;
	margin-top: var(--kb-space-1);
}

/* 20. Editor / post content -------------------------------------------------- */

.kb-entry__image {
	border-radius: var(--kb-radius-lg);
	/* Pure black at low alpha: a tinted outline reads as dirt on the edge. */
	outline: 1px solid rgba(0, 0, 0, 0.1);
	outline-offset: -1px;
	margin-bottom: var(--kb-space-5);
}

.kb-prose,
.kb-entry__content {
	max-width: var(--kb-measure);
	font-size: var(--kb-fs-lead);
	line-height: 1.7;
	text-wrap: pretty;
}

.kb-prose > * + *,
.kb-entry__content > * + * {
	margin-top: var(--kb-space-3);
}

.kb-entry__content h2,
.kb-prose h2 {
	font-family: var(--kb-font-display);
	font-size: var(--kb-fs-h3);
	font-weight: var(--kb-fw-bold);
	letter-spacing: var(--kb-track-tight);
	line-height: var(--kb-lh-heading);
	margin-top: var(--kb-space-5);
	text-wrap: balance;
}

.kb-entry__content h3,
.kb-prose h3 {
	font-family: var(--kb-font-display);
	font-size: var(--kb-fs-h4);
	font-weight: var(--kb-fw-bold);
	letter-spacing: var(--kb-track-tight);
	margin-top: var(--kb-space-4);
	text-wrap: balance;
}

.kb-entry__content blockquote,
.kb-prose blockquote {
	margin-inline: 0;
	padding-left: var(--kb-space-3);
	border-left: 2px solid var(--kb-accent);
	font-family: var(--kb-font-display);
	font-size: var(--kb-fs-h4);
	letter-spacing: var(--kb-track-tight);
	line-height: 1.35;
}

.kb-entry__content ul,
.kb-entry__content ol,
.kb-prose ul,
.kb-prose ol {
	padding-left: var(--kb-space-3);
}

.kb-entry__content li + li,
.kb-prose li + li {
	margin-top: var(--kb-space-1);
}

.kb-entry__content img,
.kb-prose img {
	border-radius: var(--kb-radius-md);
	outline: 1px solid rgba(0, 0, 0, 0.1);
	outline-offset: -1px;
}

.kb-entry__content code,
.kb-prose code {
	padding: 2px 6px;
	border-radius: var(--kb-radius-sm);
	background: var(--kb-raised);
	font-size: 0.9em;
}

.kb-entry__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--kb-space-2);
	font-size: var(--kb-fs-sm);
	color: var(--kb-fg-muted);
	font-variant-numeric: tabular-nums;
}

/* 21. Reduced motion --------------------------------------------------------
 *
 * The keel still draws — it just arrives already drawn. Nothing reveals and
 * nothing travels. No content depends on any of it.
 * ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.kb-keel-draw {
		clip-path: none;
		animation: none;
	}

	.kb-mask > span {
		transform: none;
		animation: none;
	}

	.kb-js .kb-reveal {
		opacity: 1;
		transform: none;
	}

	/*
	 * Scroll-driven animations ignore animation-duration, so they are detached
	 * from their timeline and left in the finished state instead.
	 */
	.kb-rail__fill,
	.kb-section::after {
		animation-timeline: none;
		animation-name: none;
	}

	.kb-rail__fill {
		transform: scaleY(1);
	}

	.kb-section::after {
		transform: scaleY(1);
	}

	.kb-stat::before {
		transform: scaleX(1);
	}

	.kb-node {
		transform: scaleX(1);
	}

	.kb-late {
		opacity: 1;
	}

	.kb-btn:hover,
	.kb-btn:active,
	.kb-nav__toggle:active,
	.kb-brand:hover .kb-logomark,
	.kb-btn:hover .kb-icon,
	.kb-textlink:hover .kb-icon {
		transform: none;
	}
}
