/* ==========================================================================
   Syncfully — signal / field manual
   Dark, cinematic base; brand orange is the only light source. Structure is
   borrowed from instrument manuals: ruled cells, technical caps labels,
   orange callout tags, dot-matrix readouts. Plain CSS, no build step.
   Neutrals map to Tailwind zinc. Motion follows Emil Kowalski's curves and
   Apple's fluid-interface rules: respond on press, ease-out on enter,
   transitions (interruptible) over keyframes for anything stateful.
   ========================================================================== */

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

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

@property --mx {
	syntax: "<length>";
	inherits: false;
	initial-value: -400px;
}

@property --my {
	syntax: "<length>";
	inherits: false;
	initial-value: -400px;
}

:root {
	color-scheme: dark;

	/* Surfaces — zinc, darkest to lightest */
	--bg: #060607;
	--bg-2: #0b0b0d;
	--surface: #111113;
	--surface-2: #18181b;        /* zinc-900 */
	--surface-3: #27272a;        /* zinc-800 */
	--line: rgba(255, 255, 255, 0.08);
	--line-strong: rgba(255, 255, 255, 0.14);

	/* Text */
	--text: #f4f4f5;             /* zinc-100 */
	--text-2: #a1a1aa;           /* zinc-400 */
	--text-3: #71717a;           /* zinc-500 */

	/* Signal — the brand orange, used for actions and live state only */
	--signal: #ff5a1f;
	--signal-hi: #ff7a45;
	--signal-edge: #c2410c;      /* orange-700 */
	--signal-glow: rgba(255, 90, 31, 0.35);
	--led-ok: #22c55e;
	--led-fault: #ef4444;

	/* Light chapter (brushed aluminium) */
	--alu: #e4e4e1;              /* manual paper */
	--alu-2: #ebebe8;
	--alu-ink: #09090b;
	--alu-ink-2: #52525b;

	/* Type */
	--font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	/* Technical caps label: the manual's voice for indices, figure titles, tags */
	--fs-label: 0.71875rem;      /* 11.5px */
	--track-label: 0.08em;

	--fs-display: clamp(3rem, 1rem + 5.4vw, 6.25rem);
	--fs-h1: clamp(2.75rem, 1.5rem + 4.4vw, 5.5rem);
	--fs-h2: clamp(2.125rem, 1.4rem + 2.8vw, 4rem);
	--fs-h3: 1.25rem;
	--fs-statement: clamp(1.75rem, 1.1rem + 2.4vw, 3.25rem);
	--fs-lead: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
	--fs-body: 1.0625rem;
	--fs-small: 0.875rem;
	--fs-xs: 0.8125rem;

	/* Space + shape (4px scale) */
	--gutter: clamp(16px, 4vw, 48px);
	--max: 1280px;
	--section: clamp(96px, 12vw, 176px);
	--r-key: 8px;
	--r-panel: 6px;
	--r-housing: 10px;
	--r-chapter: 4px;
	--header-h: 64px;

	/* Elevation */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
	--shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 24px -8px rgba(0, 0, 0, 0.5);
	--shadow-xl: 0 8px 16px rgba(0, 0, 0, 0.3), 0 48px 96px -24px rgba(0, 0, 0, 0.7);
	--edge-hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	--hazard: repeating-linear-gradient(-45deg, var(--signal) 0 9px, #0a0a0a 9px 18px);

	/* Motion — strong custom curves (Emil Kowalski) */
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	--ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

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

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 32px);
	background: var(--bg);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: 1.625;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	-webkit-tap-highlight-color: transparent;
}

/* Film grain over everything — keeps the large dark fields from banding. */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 200;
	pointer-events: none;
	opacity: 0.06;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img,
svg {
	height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
	margin: 0;
}

h1,
h2,
h3,
h4 {
	font-weight: 600;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

a {
	color: inherit;
}

code {
	font-family: var(--font-mono);
	font-size: 0.85em;
	padding: 0.15em 0.45em;
	border-radius: 6px;
	background: var(--surface-3);
	color: var(--text);
}

strong {
	font-weight: 600;
	color: var(--text);
}

:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection {
	background: var(--signal);
	color: #09090b;
}

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

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 300;
	padding: 10px 16px;
	background: var(--text);
	color: var(--bg);
	border-radius: var(--r-key);
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
}

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

/* Buttons — flat keys that answer the press ------------------------------ */

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-key);
	background: transparent;
	color: var(--text);
	font: 500 0.9688rem/1 var(--font-sans);
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
	transition:
		transform 160ms var(--ease-out),
		background-color 150ms ease,
		border-color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.btn:hover {
		background-color: rgba(255, 255, 255, 0.06);
		border-color: rgba(255, 255, 255, 0.32);
	}
}

/* Feedback lives on the press, and it is instant. */
.btn:active {
	transform: scale(0.97);
	transition-duration: 100ms;
}

.btn-primary {
	background: var(--signal);
	border-color: var(--signal);
	color: #0a0a0a;
}

@media (hover: hover) and (pointer: fine) {
	.btn-primary:hover {
		background-color: var(--signal-hi);
		border-color: var(--signal-hi);
	}
}

.btn-sm {
	min-height: 36px;
	padding: 0 14px;
	font-size: 0.875rem;
	border-radius: 6px;
}

.btn-lg {
	min-height: 54px;
	padding: 0 26px;
	font-size: 1.0625rem;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Header — a ruled strip of cells, glass once content scrolls under ------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	display: flex;
	align-items: stretch;
	height: var(--header-h);
	border-bottom: 1px solid var(--line);
	transition: background-color 300ms ease, border-color 300ms ease;
}

.header-inner.container {
	max-width: none;
	padding-inline: 0;
}

.header-inner > * {
	display: flex;
	align-items: center;
}

.header-inner > * + * {
	border-left: 1px solid var(--line);
}

.site-header.is-scrolled .header-inner,
.site-header:has(.nav-mobile:not([hidden])) .header-inner {
	background: rgba(10, 10, 11, 0.72);
	border-bottom-color: var(--line-strong);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-inline: var(--gutter) 28px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.0625rem;
	letter-spacing: -0.03em;
}

.brand img {
	width: 24px;
	height: 24px;
}

.site-footer .brand {
	padding: 0;
}

.nav-desktop {
	flex: 1;
	padding-inline: 12px;
}

.nav-list {
	display: flex;
	gap: 2px;
	list-style: none;
	padding: 0;
}

.nav-list a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 0.9063rem;
	text-decoration: none;
	color: var(--text-2);
	transition: color 150ms ease, background-color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.nav-list a:hover {
		color: var(--text);
		background: rgba(255, 255, 255, 0.05);
	}
}

.nav-list a[aria-current="page"] {
	color: var(--text);
}

/* The current page is lit: a square LED, like a selected channel. */
.nav-list a[aria-current="page"]::before,
.nav-mobile a[aria-current="page"]::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 1px;
	background: var(--signal);
}

/* Channel status cell: the four channels the API speaks. */
.header-status {
	gap: 18px;
	padding-inline: 24px;
	font: 500 var(--fs-label)/1 var(--font-mono);
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--text-3);
}

.header-status span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.header-status span::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 1px;
	background: var(--led-ok);
}

.nav-cta {
	padding-inline: 16px var(--gutter);
}

@media (max-width: 1120px) {
	.header-status {
		display: none;
	}
}

.nav-toggle {
	display: none;
	margin-left: auto;
	width: var(--header-h);
	height: 100%;
	padding: 21px;
	border: 0;
	border-left: 1px solid var(--line);
	border-radius: 0;
	background: transparent;
	color: var(--text);
	cursor: pointer;
}

.nav-toggle svg {
	transition: transform 160ms var(--ease-out);
}

.nav-toggle:active svg {
	transform: scale(0.9);
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

.nav-mobile {
	padding: 8px var(--gutter) 20px;
	border-bottom: 1px solid var(--line-strong);
	background: rgba(10, 10, 11, 0.9);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	backdrop-filter: blur(20px) saturate(180%);
	transform-origin: top center;
	transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

@starting-style {
	.nav-mobile {
		opacity: 0;
		transform: scale(0.97) translateY(-6px);
	}
}

.nav-mobile[hidden] {
	display: none;
}

.nav-mobile ul {
	list-style: none;
	padding: 0;
	margin-bottom: 16px;
}

.nav-mobile li a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: -0.03em;
	text-decoration: none;
}

.nav-mobile .btn {
	width: 100%;
}

@media (max-width: 860px) {
	.nav-desktop,
	.nav-cta {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
	}
}

/* Shared type -------------------------------------------------------------- */

.tag {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: 500 var(--fs-label)/1.4 var(--font-mono);
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--text-2);
}

.tag::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 1px;
	background: var(--signal);
}

.lead {
	font-size: var(--fs-lead);
	line-height: 1.55;
	color: var(--text-2);
	max-width: 48ch;
	letter-spacing: -0.011em;
}

/* Large headings are solid ink: no sheen, the type carries itself. */
.hero-title .line,
.page-hero h1,
.section-title,
.cta-band h2 {
	color: var(--text);
}

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

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

.section-tight {
	padding-top: 0;
}

.section-head {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
	gap: 16px 32px;
	padding-top: 24px;
	border-top: 1px solid var(--line-strong);
	margin-bottom: clamp(48px, 6vw, 88px);
}

.section-head > .tag {
	align-self: start;
	padding-top: 1.1em;
}

.section-title {
	font-size: var(--fs-h2);
	line-height: 1.02;
	letter-spacing: -0.045em;
	max-width: 17ch;
	padding-bottom: 0.05em;
}

.section-head .lead {
	margin-top: 20px;
}

@media (max-width: 760px) {
	.section-head {
		grid-template-columns: 1fr;
	}
}

/* Hero — live signal field ------------------------------------------------- */

.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-top: calc(-1 * var(--header-h));
	min-height: min(100svh, 1000px);
	display: flex;
	align-items: center;
	padding-block: 132px 96px;
}

.signal-canvas {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 1600ms var(--ease-out);
}

.signal-canvas.is-live {
	opacity: 1;
}

/* Static fallback (no WebGL) and the legibility veil for the copy. */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -3;
	background:
		radial-gradient(40% 50% at 72% 50%, rgba(255, 90, 31, 0.18), transparent 70%),
		var(--bg);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(6, 6, 7, 0.82) 0%, rgba(6, 6, 7, 0.4) 40%, transparent 60%),
		linear-gradient(0deg, var(--bg) 0%, transparent 22%);
	pointer-events: none;
}

.hero-inner {
	position: relative;
}

.hero-title {
	font-size: var(--fs-display);
	line-height: 0.92;
	letter-spacing: -0.058em;
	font-weight: 600;
	margin-top: 28px;
	max-width: 12ch;
}

.hero-title .line {
	display: block;
	padding-bottom: 0.06em;
}

.hero-title .line.dim {
	color: #5f5f68;
}

.hero .lead {
	margin-top: 32px;
}

.hero .btn-row {
	margin-top: 40px;
}

/* Spec bar: three ruled cells, like the spec block on a data sheet. */
.spec-bar {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, max-content));
	margin: 56px 0 0;
	border-top: 1px solid var(--line-strong);
}

.spec-bar > div {
	padding: 14px 32px 0 0;
}

.spec-bar > div + div {
	padding-left: 20px;
	border-left: 1px solid var(--line);
}

.spec-bar dt {
	font: 500 var(--fs-label)/1 var(--font-mono);
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--text-3);
}

.spec-bar dd {
	margin: 8px 0 0;
	font-size: var(--fs-small);
	color: var(--text);
}

@media (max-width: 560px) {
	.spec-bar {
		grid-template-columns: 1fr;
	}

	.spec-bar > div,
	.spec-bar > div + div {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		padding: 12px 0;
		border-left: 0;
		border-bottom: 1px solid var(--line);
	}

	.spec-bar dd {
		margin: 0;
		text-align: right;
	}
}

/* Callout tags: the manual's orange labels, pinned to the live signal. */
.hero-callouts {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0;
	transition: opacity 600ms var(--ease-out) 900ms;
}

.hero.is-live .hero-callouts {
	opacity: 1;
}

.pin {
	position: absolute;
	width: 0;
	height: 0;
}

/* A ring on the node, a stem, then the tag. */
.pin::before {
	content: "";
	position: absolute;
	left: -15px;
	top: -15px;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 50%;
}

.pin::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 15px;
	width: 1px;
	height: 64px;
	background: linear-gradient(0deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.2));
}

.ctag {
	position: absolute;
	left: 0;
	bottom: 79px;
	transform: translateX(-50%);
	padding: 5px 8px;
	border-radius: 3px;
	background: var(--signal);
	color: #0a0a0a;
	font: 600 var(--fs-label)/1 var(--font-mono);
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	white-space: nowrap;
}

.pin-node {
	left: var(--node-x, 70%);
	top: var(--node-y, 50%);
}

.pin-fault {
	left: var(--fault-x, 85%);
	top: var(--fault-y, 55%);
	opacity: 0;
	transform: translateY(6px);
	filter: blur(2px);
	/* Exit is quicker than entry. */
	transition: opacity 160ms ease, transform 160ms var(--ease-out), filter 160ms ease;
}

.pin-fault::before {
	left: -6px;
	top: -6px;
	width: 12px;
	height: 12px;
	border-color: var(--led-fault);
}

.pin-fault::after {
	top: 6px;
	bottom: auto;
	height: 40px;
	background: rgba(239, 68, 68, 0.6);
}

.pin-fault .ctag {
	top: 46px;
	bottom: auto;
	left: auto;
	right: -1px;
	transform: none;
}

.ctag-fault {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #0a0a0a;
	color: var(--text);
	border: 1px solid var(--led-fault);
}

.ctag-fault::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 1px;
	background: var(--led-fault);
}

.hero[data-phase="fault"] .pin-fault {
	opacity: 1;
	transform: none;
	filter: none;
	transition-duration: 240ms;
}

.hero:not(.is-wide) .pin-fault {
	display: none;
}

/* Portrait: no room above the node, so the tag sits beside the ring. */
.hero:not(.is-wide) .pin-node::after {
	display: none;
}

.hero:not(.is-wide) .pin-node .ctag {
	bottom: auto;
	top: -10px;
	left: auto;
	right: 26px;
	transform: none;
}

@media (max-width: 760px) {
	.hero {
		align-items: flex-end;
		padding-block: 140px 72px;
	}

	.hero::after {
		background:
			linear-gradient(0deg, rgba(6, 6, 7, 0.96) 0%, rgba(6, 6, 7, 0.7) 55%, rgba(6, 6, 7, 0.2) 100%);
	}
}

/* Page load — one orchestrated entrance. Lines rise out of a slight blur. */
.reveal-load {
	opacity: 0;
	transform: translateY(10px);
	filter: blur(4px);
	animation: rise 700ms var(--ease-out) forwards;
	animation-delay: calc(var(--i, 0) * 60ms + 100ms);
}

.reveal-load[data-i="1"] { --i: 1; }
.reveal-load[data-i="2"] { --i: 2; }
.reveal-load[data-i="3"] { --i: 3; }
.reveal-load[data-i="4"] { --i: 4; }
.reveal-load[data-i="5"] { --i: 5; }
.reveal-load[data-i="6"] { --i: 6; }
.reveal-load[data-i="7"] { --i: 7; }

@keyframes rise {
	to {
		opacity: 1;
		transform: none;
		filter: blur(0);
	}
}

/* Ticker: the channels on a dot-matrix display, scrolling past ----------- */

.ticker {
	display: grid;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
	border-block: 1px solid var(--line);
	background: var(--bg-2);
}

.ticker-label {
	display: flex;
	align-items: center;
	padding: 20px var(--gutter);
	border-right: 1px solid var(--line);
	font: 500 var(--fs-label)/1.5 var(--font-mono);
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--text-3);
}

.ticker-window {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
	display: flex;
	width: max-content;
	animation: ticker 36s linear infinite;
}

@media (hover: hover) and (pointer: fine) {
	.ticker:hover .ticker-track {
		animation-play-state: paused;
	}
}

.ticker-list {
	display: flex;
	flex: none;
	justify-content: space-around;
	min-width: 100vw;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ticker-list li {
	display: flex;
	align-items: center;
	padding: clamp(18px, 2vw, 28px) clamp(24px, 3vw, 48px);
	font: 700 clamp(2.75rem, 1.6rem + 4.4vw, 6.5rem)/1 var(--font-mono);
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: var(--text);
}

/* Orange separator square between channels. */
.ticker-list li + li::before {
	content: "";
	width: 0.18em;
	height: 0.18em;
	margin-right: clamp(48px, 6vw, 96px);
	background: var(--signal);
}

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

@media (max-width: 760px) {
	.ticker {
		grid-template-columns: 1fr;
	}

	.ticker-label {
		padding-block: 12px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}
}

/* Dot-matrix display type: solid glyphs seen through a grid of LED dots. */
.matrix,
.ticker-list {
	-webkit-mask-image: radial-gradient(circle closest-side, #000 72%, transparent 80%);
	mask-image: radial-gradient(circle closest-side, #000 72%, transparent 80%);
	-webkit-mask-size: 0.062em 0.062em;
	mask-size: 0.062em 0.062em;
}

.ticker-list {
	font-size: clamp(2.75rem, 1.6rem + 4.4vw, 6.5rem);
}

/* Statement — two-tone paragraph ------------------------------------------ */

.statement {
	font-size: var(--fs-statement);
	line-height: 1.12;
	letter-spacing: -0.035em;
	font-weight: 500;
	max-width: 26ch;
	color: var(--text-3);
}

.statement strong {
	font-weight: 500;
	color: var(--text);
}

/* Light chapter — a brushed-aluminium slab set into the dark page ---------- */

.chapter-light {
	--text: var(--alu-ink);
	--text-2: var(--alu-ink-2);
	--text-3: #71717a;
	--line: rgba(9, 9, 11, 0.1);
	--line-strong: rgba(9, 9, 11, 0.2);
	position: relative;
	margin-inline: clamp(8px, 1.5vw, 20px);
	border-radius: var(--r-chapter);
	background: linear-gradient(180deg, var(--alu-2), var(--alu));
	color: var(--text);
	overflow: hidden;
}

.chapter-light .section-head {
	border-top-color: rgba(9, 9, 11, 0.85);
}

.chapter-light .section-title {
	background: none;
	-webkit-text-fill-color: currentColor;
	color: var(--alu-ink);
}

.chapter-light .tag {
	color: var(--alu-ink-2);
}

.showcase {
	margin-top: clamp(56px, 8vw, 104px);
	perspective: 1600px;
}

.showcase-media {
	position: relative;
	isolation: isolate;
	transform-origin: 50% 100%;
}

/* Floor shadow under the laptop. */
.showcase-media::after {
	content: "";
	position: absolute;
	left: 12%;
	right: 12%;
	bottom: -1%;
	height: 7%;
	background: radial-gradient(closest-side, rgba(9, 9, 11, 0.4), transparent);
	filter: blur(6px);
	z-index: -1;
}

.showcase-media img {
	margin-inline: auto;
	width: 100%;
	max-width: 1180px;
}

/* Scroll-linked tilt where supported: the laptop opens towards the reader. */
@supports (animation-timeline: view()) {
	.showcase-media {
		animation: tilt-in linear both;
		animation-timeline: view();
		animation-range: entry 0% cover 42%;
	}

	@keyframes tilt-in {
		from {
			transform: rotateX(24deg) scale(0.9);
			opacity: 0.35;
		}

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

.figure-note {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
	gap: 32px;
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	font-size: var(--fs-xs);
	letter-spacing: 0.01em;
	color: var(--text-2);
}

.figure-note span:last-child {
	max-width: 60ch;
}

.belief {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
	gap: 32px;
	margin-top: clamp(72px, 10vw, 144px);
}

.belief p {
	grid-column: 2;
	font-size: clamp(1.375rem, 1rem + 1.4vw, 2.25rem);
	line-height: 1.2;
	letter-spacing: -0.03em;
	max-width: 32ch;
	font-weight: 500;
}

@media (max-width: 760px) {
	.figure-note,
	.belief {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.belief p {
		grid-column: 1;
	}
}

/* Story — sticky diagram, scrolling steps (Apple-style explainer) --------- */

.story-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}

.story-steps {
	list-style: none;
	padding: 0;
	counter-reset: story;
}

.story-step {
	counter-increment: story;
	min-height: 64vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: 32px;
	opacity: 0.28;
	transition: opacity 400ms var(--ease-out);
}

.story-step:first-child {
	min-height: 52vh;
	justify-content: flex-start;
	padding-top: 10vh;
}

.story-step:last-child {
	min-height: 56vh;
}

.story-step.is-active,
.story-steps:not(.is-live) .story-step {
	opacity: 1;
}

/* Step title bar: outlined until its step is live, then it lights up. */
.story-step::before {
	content: "Step " counter(story, decimal-leading-zero);
	align-self: flex-start;
	margin-bottom: 20px;
	padding: 5px 8px;
	border: 1px solid var(--line-strong);
	border-radius: 3px;
	font: 600 var(--fs-label)/1 var(--font-mono);
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--text-2);
	transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.story-step.is-active::before {
	background: var(--signal);
	border-color: var(--signal);
	color: #0a0a0a;
}

.story-step h3 {
	font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
	line-height: 1.04;
	letter-spacing: -0.04em;
	max-width: 15ch;
}

.story-step p {
	margin-top: 16px;
	color: var(--text-2);
	max-width: 38ch;
}

.story-stage {
	position: sticky;
	top: max(104px, calc(50vh - 260px));
}

@media (max-width: 900px) {
	.story-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.story-stage {
		grid-row: 1;
		top: 80px;
		z-index: 2;
		padding-bottom: 16px;
		background: linear-gradient(180deg, var(--bg) 86%, transparent);
	}

	.story-stage .device figcaption {
		display: none;
	}

	.story-step,
	.story-step:first-child,
	.story-step:last-child {
		min-height: 48vh;
		padding-top: 24px;
		justify-content: flex-start;
	}
}

/* Device — the routing diagram housing ------------------------------------ */

.device {
	--pad: clamp(10px, 2vw, 24px);
	position: relative;
	border-radius: var(--r-housing);
	background:
		radial-gradient(70% 60% at 50% 40%, rgba(255, 90, 31, 0.06), transparent 70%),
		#0c0c0e;
	border: 1px solid var(--line-strong);
	box-shadow: var(--shadow-xl);
	padding: 0 var(--pad) var(--pad);
	overflow: hidden;
}

/* Figure title bar, as in a printed guide (text comes from data-fig). */
.device:not([data-fig]) {
	padding-top: var(--pad);
}

.device[data-fig]::before {
	content: attr(data-fig);
	display: block;
	margin: 0 calc(-1 * var(--pad)) var(--pad);
	padding: 12px var(--pad);
	border-bottom: 1px solid var(--line-strong);
	background: rgba(255, 255, 255, 0.03);
	font: 500 var(--fs-label)/1 var(--font-mono);
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--text-2);
}

.device svg {
	width: 100%;
}

.device figcaption {
	padding: 14px 8px 2px;
	font-size: var(--fs-xs);
	letter-spacing: 0.01em;
	color: var(--text-2);
}

/* SVG parts — styled here because the CSP forbids inline styles. */
.d-card {
	fill: #18181b;
	stroke: rgba(255, 255, 255, 0.1);
}

.d-label {
	font-family: var(--font-sans);
	font-size: 15px;
	font-weight: 500;
	fill: var(--text);
	letter-spacing: -0.01em;
}

.d-sub {
	font-family: var(--font-sans);
	font-size: 12.5px;
	fill: #8a8a93;
}

.d-mono {
	font-family: var(--font-mono);
	font-size: 13px;
	fill: var(--text);
}

.d-lcd {
	font-family: var(--font-mono);
	font-size: 12.5px;
	fill: #ffb08a;
}

.d-lcd-dim {
	font-family: var(--font-mono);
	font-size: 11px;
	fill: #8a6a5a;
}

.d-inv {
	fill: var(--text);
}

.d-inv-2 {
	fill: var(--text-2);
}

.d-wire {
	fill: none;
	stroke: rgba(255, 255, 255, 0.16);
	stroke-width: 2;
	transition: stroke 300ms ease;
}

.d-flow {
	fill: none;
	stroke: var(--signal);
	stroke-width: 3.5;
	stroke-linecap: round;
	stroke-dasharray: 0.5 14;
	animation: flow 0.9s linear infinite;
	transition: opacity 350ms var(--ease-out);
}

.d-led {
	transition: fill 250ms ease;
}

.d-lcd-state {
	opacity: 0;
	transition: opacity 250ms ease;
}

.d-callout {
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 160ms ease, transform 160ms var(--ease-out);
}

[data-state="3"] .d-callout {
	opacity: 1;
	transform: none;
	transition-duration: 240ms;
}

.d-tag {
	fill: var(--signal);
}

.d-tag-text {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	fill: #0a0a0a;
}

.d-knob {
	transform-box: fill-box;
	transform-origin: center;
	transform: rotate(-40deg);
	transition: transform 600ms var(--ease-drawer);
}

@keyframes flow {
	to {
		stroke-dashoffset: -14.5;
	}
}

/* Diagram states, driven by the story (data-state) — transitions, so a fast
   scroll back and forth retargets smoothly instead of restarting. */
[data-state] .d-flow-out {
	opacity: 0;
}

[data-state="1"] .d-lcd-1,
[data-state="2"] .d-lcd-2,
[data-state="3"] .d-lcd-3,
[data-state="4"] .d-lcd-4 {
	opacity: 1;
}

[data-state="2"] .d-flow-a,
[data-state="3"] .d-flow-b,
[data-state="4"] .d-flow-a,
[data-state="4"] .d-flow-c,
[data-state="4"] .d-flow-d {
	opacity: 1;
}

[data-state="3"] .d-wire-a {
	stroke: var(--led-fault);
	stroke-dasharray: 4 6;
}

[data-state="3"] .d-led-a {
	fill: var(--led-fault);
}

[data-state="3"] .d-led-b,
[data-state="4"] .d-led-b {
	fill: var(--led-ok);
}

[data-state="3"] .d-knob {
	transform: rotate(40deg);
}

[data-state="4"] .d-knob {
	transform: rotate(0deg);
}

/* Page hero (inner pages) -------------------------------------------------- */

.page-hero {
	position: relative;
	isolation: isolate;
	padding-top: clamp(72px, 10vw, 152px);
	padding-bottom: clamp(72px, 9vw, 128px);
	overflow: hidden;
}

/* A low glow on the horizon and an engraved dot grid, fading out. */
.page-hero::before {
	content: "";
	position: absolute;
	inset: -72px 0 0;
	z-index: -1;
	background:
		radial-gradient(50% 60% at 80% 0%, rgba(255, 90, 31, 0.16), transparent 70%),
		radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1.5px) center top / 24px 24px;
	-webkit-mask-image: radial-gradient(100% 90% at 70% 0%, #000 0%, transparent 80%);
	mask-image: radial-gradient(100% 90% at 70% 0%, #000 0%, transparent 80%);
}

.page-hero h1 {
	font-size: var(--fs-h1);
	line-height: 0.96;
	letter-spacing: -0.052em;
	max-width: 14ch;
	margin-top: 28px;
	padding-bottom: 0.05em;
}

.page-hero .lead {
	margin-top: 28px;
}

.page-hero .btn-row {
	margin-top: 40px;
}

.hero-split {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
}

.hero-split > figure img {
	filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6));
}

@media (max-width: 900px) {
	.hero-split {
		grid-template-columns: 1fr;
	}
}

/* Rack — modules mounted in one housing, lit by a pointer spotlight ------- */

.rack {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--r-panel);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.rack-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module {
	position: relative;
	isolation: isolate;
	background: var(--bg);
	padding: clamp(28px, 3vw, 40px);
	min-height: 260px;
	display: flex;
	flex-direction: column;
	transition: --mx 120ms linear, --my 120ms linear;
}

.module::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(320px circle at var(--mx) var(--my), rgba(255, 90, 31, 0.11), transparent 70%);
	opacity: 0;
	transition: opacity 300ms ease;
}

.module::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: var(--edge-hi);
}

@media (hover: hover) and (pointer: fine) {
	.rack:hover .module::before {
		opacity: 1;
	}
}

.module-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: auto;
	border-radius: 4px;
	border: 1px solid var(--line-strong);
	color: var(--signal);
}

.module-icon svg {
	width: 22px;
	height: 22px;
}

.module h3 {
	font-size: var(--fs-h3);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.025em;
	margin-top: 48px;
	max-width: 22ch;
}

.module p {
	margin-top: 10px;
	color: var(--text-2);
	font-size: 1rem;
	line-height: 1.6;
	max-width: 42ch;
}

.rack-2 .module {
	min-height: 0;
}

.rack-2 .module h3 {
	margin-top: 0;
}

@media (max-width: 960px) {
	.rack {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.rack,
	.rack-2 {
		grid-template-columns: 1fr;
	}

	.module {
		min-height: 0;
	}
}

/* Feature rows (product) --------------------------------------------------- */

.feature-row {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 24px clamp(32px, 5vw, 80px);
	padding-block: clamp(40px, 5vw, 72px);
	border-top: 1px solid var(--line);
}

.feature-row:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.feature-row > div:first-child {
	position: sticky;
	top: 112px;
	align-self: start;
}

.feature-row > div:first-child h3 {
	font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.5rem);
	line-height: 1.04;
	letter-spacing: -0.04em;
	max-width: 15ch;
}

.feature-row > div:first-child p {
	margin-top: 14px;
	color: var(--text-2);
	max-width: 38ch;
}

.spec-rows {
	list-style: none;
	padding: 0;
	border-radius: var(--r-panel);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--edge-hi), var(--shadow-md);
}

.spec-rows li {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 8px 24px;
	padding: 24px 28px;
	border-top: 1px solid var(--line);
}

.spec-rows li:first-child {
	border-top: 0;
}

.spec-rows h4 {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.spec-rows p {
	color: var(--text-2);
	font-size: 1rem;
}

@media (max-width: 860px) {
	.feature-row {
		grid-template-columns: 1fr;
	}

	.feature-row > div:first-child {
		position: static;
	}
}

@media (max-width: 560px) {
	.spec-rows li {
		grid-template-columns: 1fr;
		padding: 20px;
	}
}

/* Housing — CTA panel ------------------------------------------------------ */

.on-graphite {
	color: var(--text);
}

.housing {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: var(--r-housing);
	padding: clamp(40px, 7vw, 104px);
	background: linear-gradient(180deg, #141417, #0b0b0d);
	border: 1px solid var(--line);
	box-shadow: var(--edge-hi), var(--shadow-xl);
}

/* Warm light rising from the bottom edge, as if the panel were switched on. */
.housing::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -60%;
	width: 120%;
	height: 110%;
	transform: translateX(-50%);
	z-index: -1;
	background: radial-gradient(closest-side, rgba(255, 90, 31, 0.2), rgba(255, 90, 31, 0.05) 55%, transparent);
	pointer-events: none;
}

/* Hazard strip along the top edge: the one loud moment on the page. */
.housing::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 10px;
	background: var(--hazard);
}

.housing-grille {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(38%, 420px);
	z-index: -1;
	background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9) 0 2.4px, transparent 3px);
	background-size: 14px 14px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 50%);
	mask-image: linear-gradient(90deg, transparent, #000 50%);
	pointer-events: none;
}

.cta-band {
	position: relative;
	max-width: 780px;
}

.cta-band h2 {
	font-size: var(--fs-h2);
	line-height: 1;
	letter-spacing: -0.045em;
	padding-bottom: 0.05em;
}

.cta-band p {
	margin-top: 24px;
	color: var(--text-2);
	font-size: var(--fs-lead);
	line-height: 1.5;
	max-width: 46ch;
}

.cta-band .btn-row {
	margin-top: 40px;
}

@media (max-width: 700px) {
	.housing-grille {
		display: none;
	}
}

/* Comparison table --------------------------------------------------------- */

.table-wrap {
	border-radius: var(--r-panel);
	padding: clamp(8px, 1.5vw, 16px);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--edge-hi), var(--shadow-md);
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

thead th {
	padding: 18px 20px;
	text-align: left;
	font-weight: 500;
	font-size: var(--fs-small);
	color: var(--text-3);
	border-bottom: 1px solid var(--line);
}

tbody th,
tbody td {
	padding: 22px 20px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}

tbody tr:last-child th,
tbody tr:last-child td {
	border-bottom: 0;
}

tbody th {
	font-weight: 600;
	width: 22%;
}

tbody td {
	color: var(--text-3);
}

.col-accent {
	background: rgba(255, 90, 31, 0.06);
}

thead .col-accent {
	color: var(--signal);
	border-radius: 12px 12px 0 0;
}

tbody tr:last-child .col-accent {
	border-radius: 0 0 12px 12px;
}

tbody td.col-accent {
	color: var(--text);
}

tbody td.col-accent::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 12px;
	border-radius: 50%;
	background: var(--signal);
	box-shadow: 0 0 10px var(--signal);
	vertical-align: 0.15em;
}

@media (max-width: 680px) {
	thead {
		display: none;
	}

	table,
	tbody,
	tr,
	th,
	td {
		display: block;
		width: 100%;
	}

	tbody tr {
		padding: 18px 12px;
		border-bottom: 1px solid var(--line);
	}

	tbody tr:last-child {
		border-bottom: 0;
	}

	tbody th,
	tbody td {
		padding: 4px 0;
		border: 0;
		width: auto;
	}

	tbody th {
		margin-bottom: 8px;
	}

	tbody td::before {
		display: block;
		content: attr(data-label);
		font-size: var(--fs-xs);
		color: var(--text-3);
		margin-bottom: 2px;
	}

	tbody td.col-accent {
		background: none;
		margin-top: 8px;
	}

	tbody td.col-accent::before {
		content: attr(data-label);
		display: block;
		width: auto;
		height: auto;
		margin: 0 0 2px;
		background: none;
		box-shadow: none;
		color: var(--signal);
		border-radius: 0;
	}
}

/* Steps (about) — a real sequence, so it is numbered ---------------------- */

.steps {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	counter-reset: step;
	position: relative;
}

.steps::before {
	content: "";
	position: absolute;
	top: 27px;
	left: 28px;
	right: 28px;
	height: 1px;
	background: linear-gradient(90deg, var(--line-strong), var(--signal));
}

.steps li {
	position: relative;
	counter-increment: step;
}

.steps li::before {
	content: counter(step);
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 28px;
	border-radius: var(--r-key);
	background: var(--bg);
	border: 1px solid var(--line-strong);
	box-shadow: 0 0 0 8px var(--bg);
	font: 600 1rem/1 var(--font-mono);
	position: relative;
}

.steps li:last-child::before {
	background: var(--signal);
	border-color: var(--signal-edge);
	color: #0b0b0d;
	box-shadow: 0 0 0 8px var(--bg);
}

.steps h3 {
	font-size: 1.5rem;
	letter-spacing: -0.035em;
	line-height: 1.15;
}

.steps p {
	margin-top: 12px;
	color: var(--text-2);
	max-width: 36ch;
}

@media (max-width: 860px) {
	.steps {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.steps::before {
		display: none;
	}

	.steps li:not(:last-child)::after {
		content: "";
		position: absolute;
		left: 27px;
		top: 56px;
		bottom: -48px;
		width: 1px;
		background: linear-gradient(180deg, var(--line-strong), var(--signal));
	}

	.steps li {
		padding-left: 84px;
	}

	.steps li::before {
		position: absolute;
		left: 0;
		top: -10px;
		margin: 0;
	}
}

/* Prose -------------------------------------------------------------------- */

.prose-block {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
	gap: 32px;
}

.prose-block > div {
	grid-column: 2;
}

@media (max-width: 760px) {
	.prose-block {
		grid-template-columns: 1fr;
	}

	.prose-block > div {
		grid-column: 1;
	}
}

.prose {
	max-width: 66ch;
	color: var(--text-2);
}

.prose p,
.prose ul,
.prose ol {
	margin-top: 1.1em;
}

.prose > :first-child {
	margin-top: 0;
}

.prose .big {
	font-size: clamp(1.375rem, 1.05rem + 1.1vw, 2.125rem);
	line-height: 1.2;
	letter-spacing: -0.03em;
	font-weight: 500;
	color: var(--text);
}

.prose .punch {
	margin-top: 1.4em;
	font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem);
	line-height: 1.08;
	letter-spacing: -0.04em;
	font-weight: 600;
	color: var(--text);
}

.highlight {
	color: var(--text);
	background: linear-gradient(transparent 64%, rgba(255, 90, 31, 0.45) 64%);
	padding-inline: 2px;
}

.prose-block .btn-row {
	margin-top: 44px;
}

/* Legal prose (privacy) */
.legal .prose {
	color: #c4c4cc;
}

.legal .prose h2 {
	margin-top: 2.4em;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 1.5rem;
	letter-spacing: -0.03em;
	line-height: 1.2;
	color: var(--text);
}

.legal .prose h3 {
	margin-top: 1.8em;
	font-size: 1.125rem;
	letter-spacing: -0.015em;
	color: var(--text);
}

.legal .prose li + li {
	margin-top: 0.4em;
}

.legal .prose ul {
	padding-left: 1.2em;
}

.legal .prose a {
	color: var(--text);
	text-decoration-color: var(--signal);
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}

.meta {
	font-size: var(--fs-small);
	color: var(--text-3);
}

.callout,
.legal-toc {
	margin-top: 24px;
	padding: 24px 28px;
	border-radius: var(--r-panel);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--edge-hi);
}

.callout {
	border-left: 3px solid var(--signal);
}

.legal .prose .legal-toc h2 {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	font-size: var(--fs-small);
	font-weight: 500;
	color: var(--text-3);
	letter-spacing: 0;
}

.legal-toc ol {
	margin: 0;
	padding-left: 1.4em;
	columns: 2;
	column-gap: 32px;
}

.legal-toc li {
	break-inside: avoid;
}

.legal .prose .legal-toc li + li {
	margin-top: 4px;
}

.legal .prose .legal-toc a {
	text-decoration: none;
	color: var(--text-2);
	transition: color 150ms ease;
}

.legal .prose .legal-toc a:hover {
	color: var(--text);
}

@media (max-width: 560px) {
	.legal-toc ol {
		columns: 1;
	}
}

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

.contact-email {
	display: inline-block;
	font-size: clamp(1.625rem, 0.6rem + 4.8vw, 5.25rem);
	line-height: 1;
	letter-spacing: -0.055em;
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
	padding-bottom: 10px;
	background:
		linear-gradient(var(--signal), var(--signal)) left bottom / 0 3px no-repeat,
		linear-gradient(var(--text), var(--text));
	-webkit-background-clip: border-box, text;
	background-clip: border-box, text;
	-webkit-text-fill-color: transparent;
	transition: background-size 250ms var(--ease-out);
}

.contact-email:hover,
.contact-email:focus-visible {
	background-size: 100% 3px, auto;
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}

.contact-grid > div > p {
	color: var(--text-2);
	max-width: 40ch;
}

.contact-grid h2 {
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
	line-height: 1.05;
	letter-spacing: -0.04em;
	margin-bottom: 14px;
}

.contact-grid .btn-row {
	margin-top: 28px;
}

.check-list {
	list-style: none;
	padding: 0;
	margin-top: 24px;
	border-radius: var(--r-panel);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--edge-hi);
}

.check-list li {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 16px;
	padding: 20px 24px;
	border-top: 1px solid var(--line);
	color: var(--text-2);
}

.check-list li:first-child {
	border-top: 0;
}

.check-list svg {
	width: 24px;
	height: 24px;
	padding: 5px;
	border-radius: 7px;
	background: var(--signal);
	color: #0b0b0d;
	box-shadow: 0 0 16px -2px var(--signal-glow);
}

@media (max-width: 860px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

/* Copy key — the label swaps to confirm the action. */
.copy-key[data-copied="true"]::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--led-ok);
	box-shadow: 0 0 10px var(--led-ok);
}

/* 404 ---------------------------------------------------------------------- */

.flatline {
	margin-top: 56px;
	max-width: 720px;
}

.flatline path {
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.flatline .live {
	stroke: var(--signal);
	filter: drop-shadow(0 0 6px var(--signal));
}

.flatline .dead {
	stroke: var(--line-strong);
	stroke-dasharray: 4 8;
}

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

.site-footer {
	position: relative;
	overflow: hidden;
	padding-top: clamp(64px, 8vw, 112px);
	border-top: 1px solid var(--line);
	background: var(--bg);
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) repeat(3, minmax(0, 2fr));
	gap: 40px 32px;
}

.footer-brand p {
	margin-top: 16px;
	color: var(--text-2);
	max-width: 36ch;
	font-size: 1rem;
}

.footer-heading {
	font: 500 var(--fs-label)/1.4 var(--font-mono);
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--text-3);
	margin-bottom: 14px;
}

.footer-links {
	list-style: none;
	padding: 0;
}

.footer-links li + li {
	margin-top: 8px;
}

.footer-links a,
.footer-bottom a {
	text-decoration: none;
	color: var(--text-2);
	transition: color 150ms ease;
}

.footer-links a:hover,
.footer-bottom a:hover {
	color: var(--text);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 72px;
	padding-block: 20px;
	border-top: 1px solid var(--line);
	font-size: var(--fs-small);
	color: var(--text-3);
}

/* The wordmark, engraved into the base and lit from above. */
.footer-mark {
	display: block;
	margin-top: 16px;
	font-size: clamp(3rem, 0.25rem + 17vw, 15rem);
	line-height: 1;
	padding-bottom: 0.08em;
	font-weight: 600;
	padding-bottom: 0.02em;
	font-family: var(--font-mono);
	font-weight: 700;
	letter-spacing: -0.06em;
	color: #3a3a40;
	white-space: nowrap;
	user-select: none;
}

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

	.footer-brand {
		grid-column: 1 / -1;
	}
}

/* Motion support (motion.js / led.js) ------------------------------------ */

/* Lenis smooth scroll */
html.lenis,
html.lenis body {
	height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
	overflow: clip;
}

.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}

/* GSAP drives the laptop tilt when it is running; CSS scroll-timeline is the fallback. */
.has-motion .showcase-media {
	animation: none;
}

.has-motion .chapter-light {
	transform-origin: 50% 0;
}

/* Header tucks away while reading down, returns on the way up. */
.site-header {
	transition: transform 360ms var(--ease-out);
}

.site-header.is-hidden {
	transform: translateY(-100%);
}

/* Hazard tape crawls with scroll (--hz is set by motion.js). */
.housing::after {
	background-position: var(--hz, 0px) 0;
}

/* LED boards: a canvas replaces the CSS dot-matrix once led.js is running. */
.led-canvas {
	display: block;
	width: 100%;
}

.footer-led {
	margin-top: 24px;
	padding-bottom: clamp(16px, 3vw, 40px);
}

.footer-led.is-led .footer-mark {
	display: none;
}

.ticker-window {
	position: relative;
}

.ticker.is-led .ticker-window {
	height: clamp(88px, 3rem + 5vw, 154px);
	margin: clamp(12px, 1.4vw, 20px) clamp(12px, 1.4vw, 20px) clamp(12px, 1.4vw, 20px) 0;
	/* A real panel has hard edges: no fade. */
	-webkit-mask-image: none;
	mask-image: none;
}

.ticker.is-led .led-canvas {
	position: absolute;
	inset: 0;
	height: 100%;
}

/* The real list stays for screen readers; the canvas is what you see. */
.ticker.is-led .ticker-track {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	animation: none;
}

/* Utilities ---------------------------------------------------------------- */

.mt-tag {
	margin-top: 28px;
}

/* Accessibility preferences ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		animation-delay: 0ms !important;
		transition-duration: 0.01ms !important;
	}

	.reveal-load {
		filter: none;
		transform: none;
	}

	.showcase-media {
		animation: none !important;
	}

	.d-flow {
		stroke-dasharray: none;
	}

	.ticker-track {
		animation: none !important;
	}

	.pin-fault {
		filter: none;
		transform: none;
	}
}

@media (prefers-reduced-transparency: reduce) {
	.site-header.is-scrolled .header-inner,
	.nav-mobile,
	.btn:not(.btn-primary) {
		background-color: var(--surface-2);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}

@media (prefers-contrast: more) {
	:root {
		--line: rgba(255, 255, 255, 0.3);
		--line-strong: rgba(255, 255, 255, 0.5);
		--text-2: #d4d4d8;
		--text-3: #a1a1aa;
	}
}

/* My Invite ---------------------------------------------------------------
   The second product keeps the manual's structure (ruled heads, mono labels,
   plates) and changes two things inside <main>: a serif display face from the
   My Invite brand, and champagne in place of signal orange. The header and
   footer stay Syncfully. */

@font-face {
	font-family: "Cormorant Garamond";
	src: url("/fonts/cormorant-garamond-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Cormorant Garamond";
	src: url("/fonts/cormorant-garamond-500-italic.woff2") format("woff2");
	font-weight: 500;
	font-style: italic;
	font-display: swap;
}

.mi,
.product-module-mi {
	--signal: #dcc49c;
	--signal-hi: #ead7b5;
	--signal-edge: #a8885a;
	--signal-glow: rgba(220, 196, 156, 0.3);
	--hazard: repeating-linear-gradient(-45deg, var(--signal) 0 9px, #0a0a0a 9px 18px);
	--mi-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
}

.mi-display {
	font-family: var(--mi-serif);
	font-weight: 500;
	letter-spacing: -0.02em;
}

.mi-display em {
	font-style: italic;
}

.page-hero h1.mi-display {
	font-size: clamp(3.5rem, 1.6rem + 6vw, 7.5rem);
	line-height: 0.9;
	letter-spacing: -0.03em;
	max-width: 10ch;
}

.section-title.mi-display {
	font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.875rem);
	line-height: 0.98;
	letter-spacing: -0.025em;
}

.cta-band h2.mi-display {
	letter-spacing: -0.025em;
	line-height: 1;
}

/* A warmer horizon for the hero. */
.mi-hero::before {
	background:
		radial-gradient(50% 60% at 80% 0%, rgba(220, 196, 156, 0.14), transparent 70%),
		radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1.5px) center top / 24px 24px;
}

.mi-status {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 32px;
	font: 500 var(--fs-label)/1.4 var(--font-mono);
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--text-2);
}

/* A pilot lamp: lit, not yet on air. */
.mi-lamp {
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--signal);
	box-shadow: 0 0 0 3px rgba(220, 196, 156, 0.14), 0 0 10px var(--signal-glow);
}

@media (prefers-reduced-motion: no-preference) {
	.mi-lamp {
		animation: mi-breathe 2.8s ease-in-out infinite;
	}
}

@keyframes mi-breathe {
	50% { opacity: 0.45; }
}

/* Plates: photographs mounted in a hairline frame. */
.mi-plate {
	position: relative;
	overflow: hidden;
	border-radius: var(--r-chapter);
	aspect-ratio: 4 / 5;
	background: var(--surface);
}

.mi-plate img,
.hero-split > figure.mi-plate img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: none;
}

.mi-plate::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
	pointer-events: none;
}

/* Room for the hero photo's parallax drift. */
.mi-plate-hero img,
.hero-split > figure.mi-plate-hero img {
	height: 116%;
}

.mi-plate-hero {
	box-shadow: var(--shadow-xl);
}

.mi-statement {
	max-width: 24ch;
}

/* Paper chapter in My Invite's cream and ink, with azulejo cobalt. */
.chapter-light.mi-paper {
	--alu: #efe8dc;
	--alu-2: #f6f1e8;
	--alu-ink: #23201d;
	--alu-ink-2: #625a50;
	--signal: #1f4e86;
	--line: rgba(35, 32, 29, 0.12);
	--line-strong: rgba(35, 32, 29, 0.24);
}

.chapter-light.mi-paper .section-head {
	border-top-color: rgba(35, 32, 29, 0.8);
}

.chapter-light .spec-rows {
	background: rgba(255, 255, 255, 0.45);
	border-color: var(--line);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 1px 2px rgba(35, 32, 29, 0.06), 0 16px 32px -20px rgba(35, 32, 29, 0.25);
}

.chapter-light .spec-rows h4 {
	color: var(--alu-ink);
}

.mi-paper .spec-rows {
	background: rgba(255, 253, 248, 0.6);
}

.chapter-light .feature-row {
	border-top-color: var(--line);
}

/* Themes: the same wedding site, screenshotted in each theme. */
.mi-themes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
}

.mi-theme-art {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1200 / 693;
	border-radius: var(--r-chapter);
	background: var(--surface);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 24px 48px -28px rgba(0, 0, 0, 0.5);
}

.mi-theme-art::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
	pointer-events: none;
}

.mi-theme-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.mi-theme figcaption {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--line-strong);
}

.mi-theme h3 {
	font-family: var(--mi-serif);
	font-weight: 500;
	font-size: clamp(1.75rem, 1.4rem + 0.8vw, 2.25rem);
	line-height: 1;
	letter-spacing: -0.015em;
}

.mi-theme p {
	margin-top: 10px;
	color: var(--text-2);
	font-size: 1rem;
	line-height: 1.55;
	max-width: 34ch;
}

/* Privacy: the list beside a plate. */
.mi-split {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

.mi-split .check-list {
	margin-top: 0;
}

.mi-split .check-list li {
	padding-block: 24px;
	font-size: 1.0625rem;
	color: var(--text);
}

/* The hand-off back to the platform: Syncfully's own orange. */
.mi-built {
	--signal: #ff5a1f;
	--signal-hi: #ff7a45;
	--signal-glow: rgba(255, 90, 31, 0.35);
}

.mi-built > div:first-child h3 {
	margin-top: 20px;
}

.mi-built a {
	color: var(--text);
	text-decoration: underline;
	text-decoration-color: var(--signal);
	text-underline-offset: 4px;
}

@media (max-width: 900px) {
	.mi-themes {
		grid-template-columns: 1fr;
		gap: 56px;
	}

	.mi-split {
		grid-template-columns: 1fr;
	}

	.mi-split .mi-plate {
		aspect-ratio: 5 / 4;
	}
}

/* Home: the two products, side by side. */
.products-rack .product-module {
	min-height: clamp(320px, 30vw, 420px);
	overflow: hidden;
	color: inherit;
	text-decoration: none;
}

.product-index {
	font: 500 var(--fs-label)/1.4 var(--font-mono);
	letter-spacing: var(--track-label);
	color: var(--text-3);
}

.products-rack .product-module h3 {
	margin-top: auto;
	font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.5rem);
	line-height: 1;
	letter-spacing: -0.04em;
	padding-top: 72px;
}

.product-module h3.mi-display {
	font-size: clamp(2.125rem, 1.6rem + 1.5vw, 3.125rem);
	letter-spacing: -0.02em;
}

.product-module p {
	max-width: 34ch;
}

.product-link {
	margin-top: 28px;
	font: 500 var(--fs-label)/1.4 var(--font-mono);
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--signal);
	transition: color 160ms ease;
}

.product-badge {
	position: absolute;
	top: clamp(28px, 3vw, 40px);
	right: clamp(28px, 3vw, 40px);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: 500 var(--fs-label)/1.4 var(--font-mono);
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--text-2);
}

.product-module-mi {
	background:
		radial-gradient(70% 80% at 100% 100%, rgba(18, 41, 74, 0.55), transparent 70%),
		var(--bg);
}

.product-module-mi::before {
	background: radial-gradient(320px circle at var(--mx) var(--my), rgba(220, 196, 156, 0.1), transparent 70%);
}

.product-art {
	position: absolute;
	z-index: -1;
	right: -8%;
	bottom: -22%;
	width: min(46%, 260px);
	height: auto;
	opacity: 0.32;
	pointer-events: none;
	transition: transform 900ms var(--ease-out), opacity 900ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.product-module:hover .product-link {
		color: var(--signal-hi);
	}

	.product-module-mi:hover .product-art {
		transform: translateY(-8px) rotate(-2deg);
		opacity: 0.45;
	}
}

.product-module:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: -2px;
}

@media (max-width: 760px) {
	.product-art {
		width: 40%;
		opacity: 0.22;
	}
}

/* Company home --------------------------------------------------------------
   The home page introduces the company and puts its two products side by side
   as plates: a live instrument for Syncfully Communications, a mounted print
   on cream paper for My Invite. */

.studio-hero {
	padding-top: clamp(56px, 7vw, 112px);
	padding-bottom: clamp(56px, 6vw, 96px);
}

.studio-head {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 24px clamp(32px, 5vw, 80px);
	align-items: end;
}

.studio-head .tag {
	grid-column: 1 / -1;
}

.studio-title {
	font-size: clamp(2.75rem, 1.1rem + 4.6vw, 5.5rem);
	line-height: 0.95;
	letter-spacing: -0.052em;
	font-weight: 600;
	max-width: 12ch;
	padding-bottom: 0.05em;
}

.studio-head .lead {
	max-width: 40ch;
	padding-bottom: 0.4em;
}

.index-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(12px, 1.4vw, 20px);
	margin-top: clamp(40px, 5vw, 72px);
}

.index-plate {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	aspect-ratio: 16 / 11;
	min-height: 380px;
	padding: clamp(22px, 2.4vw, 34px);
	overflow: hidden;
	border-radius: var(--r-panel);
	color: var(--text);
	text-decoration: none;
	box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-xl);
	transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}

.index-plate:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
}

.index-plate:active {
	transform: scale(0.99);
	transition-duration: 160ms;
}

@media (hover: hover) and (pointer: fine) {
	.index-plate:hover {
		transform: translateY(-4px);
	}
}

.plate-meta {
	display: flex;
	align-items: center;
	gap: 20px;
	font: 500 var(--fs-label)/1.4 var(--font-mono);
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--text-2);
}

.plate-index {
	color: var(--text-3);
}

.plate-kind {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.plate-lamp {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--led-ok);
	box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.plate-body {
	display: grid;
	gap: 12px;
	max-width: 34ch;
}

.plate-title {
	font-size: clamp(1.75rem, 1.15rem + 1.5vw, 2.75rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.045em;
}

.plate-title.mi-display {
	font-weight: 500;
	font-size: clamp(2.375rem, 1.6rem + 2vw, 3.75rem);
	letter-spacing: -0.02em;
	line-height: 0.95;
}

.plate-text {
	color: var(--text-2);
	font-size: 1rem;
	line-height: 1.55;
}

.plate-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
	font: 500 var(--fs-label)/1.4 var(--font-mono);
	letter-spacing: var(--track-label);
	text-transform: uppercase;
	color: var(--signal);
}

/* A short rule after the label that reaches out on hover. */
.plate-link::after {
	content: "";
	width: 20px;
	height: 1px;
	background: currentColor;
	transition: width 400ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.index-plate:hover .plate-link::after {
		width: 44px;
	}
}

/* 01 — the instrument: the live signal field behind a reading veil. */
.plate-comms {
	background:
		radial-gradient(50% 60% at 64% 24%, rgba(255, 90, 31, 0.2), transparent 70%),
		var(--bg);
}

.plate-comms::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(0deg, rgba(6, 6, 7, 0.94) 0%, rgba(6, 6, 7, 0.5) 30%, transparent 52%),
		linear-gradient(180deg, rgba(6, 6, 7, 0.6) 0%, transparent 22%);
	pointer-events: none;
}

/* 02 — the print: My Invite on its own cream paper. */
.plate-mi {
	--text: #23201d;
	--text-2: #5d564e;
	--text-3: #8a8177;
	--signal: #1f4e86;
	--line-strong: rgba(35, 32, 29, 0.14);
	background: linear-gradient(160deg, #f8f4ec, #ece4d6);
}

.plate-mi .plate-lamp {
	background: #ba9150;
	box-shadow: 0 0 0 3px rgba(186, 145, 80, 0.18);
}

.plate-print {
	position: absolute;
	z-index: -1;
	top: clamp(22px, 2.4vw, 34px);
	right: clamp(22px, 2.4vw, 34px);
	bottom: clamp(22px, 2.4vw, 34px);
	aspect-ratio: 2 / 3;
	padding: 7px;
	background: #fffdf8;
	box-shadow: 0 1px 2px rgba(35, 32, 29, 0.12), 0 24px 48px -24px rgba(35, 32, 29, 0.45);
	transform: rotate(1.2deg);
	transition: transform 700ms var(--ease-out);
}

.plate-print img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
	.plate-mi:hover .plate-print {
		transform: rotate(-0.6deg) translateY(-6px);
	}
}

.plate-mi .plate-body {
	max-width: min(30ch, 50%);
}

/* Ink button for the paper chapters. */
.btn-ink {
	background: var(--alu-ink);
	border-color: var(--alu-ink);
	color: var(--alu-2);
}

@media (hover: hover) and (pointer: fine) {
	.btn-ink:hover {
		background: #000;
		border-color: #000;
	}
}

/* The two product chapters stack like sheets in a binder. */
.chapter-light + .chapter-light {
	margin-top: clamp(8px, 1.4vw, 20px);
}

.chapter-foot {
	margin-top: clamp(56px, 7vw, 104px);
}

.chapter-foot .btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.chapter-light .mi-themes {
	margin-top: 8px;
}

/* A single line of evidence under the principles. */
.proof {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
	gap: 16px 32px;
	margin-top: clamp(40px, 5vw, 72px);
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: var(--fs-lead);
	line-height: 1.5;
	letter-spacing: -0.011em;
	color: var(--text-2);
}

.proof > span:last-child {
	max-width: 52ch;
}

.proof a {
	color: var(--text);
	text-decoration: underline;
	text-decoration-color: var(--signal);
	text-underline-offset: 4px;
}

/* Header strip: the company's two products. */
.header-status .hs-mi::before {
	background: #dcc49c;
}

@media (max-width: 900px) {
	.studio-head {
		grid-template-columns: 1fr;
	}

	.index-grid {
		grid-template-columns: 1fr;
	}

	.index-plate {
		aspect-ratio: auto;
		min-height: 460px;
	}

	.plate-print {
		bottom: auto;
		height: 52%;
	}

	.plate-mi .plate-body {
		max-width: 34ch;
	}

	.proof {
		grid-template-columns: 1fr;
	}
}

/* About: "How we got here" -------------------------------------------------
   A three-chapter diagram (story.js). The chapter list and its text sit on
   the left; the instrument on the right shows the wiring for that chapter,
   and every provider is a button that takes it offline. */

.st {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}

.st-tabs {
	display: grid;
	border-top: 1px solid var(--line);
}

.st-tab {
	display: flex;
	align-items: baseline;
	gap: 16px;
	width: 100%;
	padding: 16px 0;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: none;
	color: var(--text-3);
	font: 500 1.125rem/1.3 var(--font-sans);
	letter-spacing: -0.01em;
	text-align: left;
	cursor: pointer;
	transition: color 200ms ease;
}

.st-tab span {
	font: 500 var(--fs-label)/1 var(--font-mono);
	letter-spacing: var(--track-label);
	color: var(--text-3);
	transition: color 200ms ease;
}

.st-tab[aria-pressed="true"] {
	color: var(--text);
}

.st-tab[aria-pressed="true"] span {
	color: var(--signal);
}

@media (hover: hover) and (pointer: fine) {
	.st-tab:hover {
		color: var(--text);
	}
}

.st-tab:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 2px;
}

.st-chapter {
	margin-top: 32px;
}

.st-chapter h3 {
	font-size: var(--fs-h3);
	font-weight: 600;
	letter-spacing: -0.02em;
}

.st-chapter p {
	margin-top: 10px;
	color: var(--text-2);
	line-height: 1.6;
	max-width: 44ch;
}

/* With the script running, only the current chapter's text shows. */
.st.is-live .st-chapter {
	display: none;
}

.st.is-live[data-chapter="1"] .st-chapter[data-ch="1"],
.st.is-live[data-chapter="2"] .st-chapter[data-ch="2"],
.st.is-live[data-chapter="3"] .st-chapter[data-ch="3"] {
	display: block;
}

.st-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.st-actions [hidden] {
	display: none;
}

/* The instrument -------------------------------------------------------- */

.st-only-1,
.st-from-2,
.st-only-3 {
	transition: opacity 450ms var(--ease-out);
}

[data-chapter="1"] .st-from-2,
[data-chapter="1"] .st-only-3,
[data-chapter="2"] .st-only-1,
[data-chapter="2"] .st-only-3,
[data-chapter="3"] .st-only-1 {
	opacity: 0;
	pointer-events: none;
}

.st-wire.is-lit {
	stroke: rgba(255, 90, 31, 0.7);
}

.st-wire.is-bad {
	stroke: rgba(239, 68, 68, 0.75);
}

.st-note {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	fill: #6b6b74;
}

.st-serif {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 22px;
	font-weight: 500;
	fill: #f6f1e8;
}

.st-hub-lamp {
	fill: var(--led-ok);
}

.st-prov {
	cursor: pointer;
	outline: none;
}

.st-prov-card {
	fill: #18181b;
	stroke: rgba(255, 255, 255, 0.1);
	transition: fill 250ms ease, stroke 250ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.st-prov:hover .st-prov-card {
		stroke: rgba(255, 255, 255, 0.3);
	}
}

.st-prov:focus-visible .st-prov-card {
	stroke: var(--signal);
	stroke-width: 2;
}

.st-lamp {
	fill: var(--led-ok);
	transition: fill 250ms ease;
}

.st-state {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	fill: #8a8a93;
}

.st-prov.is-down .st-prov-card {
	fill: #1b1313;
	stroke: rgba(239, 68, 68, 0.35);
}

.st-prov.is-down .st-lamp {
	fill: var(--led-fault);
}

.st-prov.is-down .st-state {
	fill: #f87171;
}

.st-prov.is-hit .st-prov-card {
	stroke: var(--led-fault);
	stroke-width: 2;
}

.st-prov.is-ok .st-prov-card {
	stroke: var(--led-ok);
	stroke-width: 2;
}

.st-pulse {
	fill: var(--signal);
	filter: drop-shadow(0 0 6px rgba(255, 90, 31, 0.9));
}

.st-pulse.is-bad {
	fill: var(--led-fault);
	filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.9));
}

/* The readout under the diagram says what happened, and is announced. */
.st-device .st-readout {
	display: flex;
	align-items: baseline;
	gap: 12px;
	min-height: 3.4em;
	padding: 14px 8px 4px;
	font-size: var(--fs-small);
	line-height: 1.5;
	color: var(--text);
}

.st-readout-lamp {
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--text-3);
	transform: translateY(-1px);
}

.st-readout[data-tone="busy"] .st-readout-lamp {
	background: var(--signal);
	box-shadow: 0 0 8px var(--signal-glow);
}

.st-readout[data-tone="ok"] .st-readout-lamp {
	background: var(--led-ok);
	box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.st-readout[data-tone="bad"] .st-readout-lamp {
	background: var(--led-fault);
	box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

@media (max-width: 900px) {
	.st {
		grid-template-columns: 1fr;
	}

	/* Diagram first, so Send sits right under the thing it animates. */
	.st-device {
		order: -1;
	}
}

/* On a phone the diagram is a third of its drawn size: set its type larger
   in its own units so it stays readable. */
@media (max-width: 600px) {
	.st-device .d-label {
		font-size: 22px;
	}

	.st-device .d-sub,
	.st-device .st-state,
	.st-device .st-note {
		font-size: 16px;
	}

	.st-device .d-lcd,
	.st-device .d-lcd-dim {
		font-size: 16px;
	}

	.st-device .st-serif {
		font-size: 28px;
	}
}
