/* Substrate Growth Infrastructure
   Type: Zalando Sans.
   Look: deep plum and purples with one antique gold accent. The light sections are white and lilac mist.
   The mark and the product stack take their colours from this look (logo.svg, and --c on each layer). */

@font-face {
	font-family: "Zalando Sans";
	src: url("/assets/fonts/ZalandoSans-latin.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--heading: #2E1A47;
	--accent: #7B4FBF;
	/* The gradient's two ends, on the light sections and on the dark ones. */
	--grad-a: #7B4FBF;
	--grad-b: #5B2A86;
	--grad-a-stage: #F1D48C;
	--grad-b-stage: #E0B04A;
	--tint: #EEE8F8;
	--soft: #EEE8F8;
	--page: #FFFFFF;
	--ink: #33303A;
	--muted: #625C6E;
	--line: rgba(46, 26, 71, 0.16);
	--stage: #2E1A47;
	--on-stage: #F7F4FC;
	--on-stage-muted: #B9ACCB;
	--stage-line: rgba(255, 255, 255, 0.12);
	--gradient: linear-gradient(180deg, var(--grad-a), var(--grad-b));
	--gradient-x: linear-gradient(90deg, var(--grad-a), var(--grad-b));
	--gutter: clamp(20px, 4vw, 48px);
	--section: clamp(80px, 11vw, 152px);
	--header: 68px;
	--radius: 24px;
}

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

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

body {
	margin: 0;
	font-family: "Zalando Sans", "Helvetica Neue", Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--page);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

img {
	height: auto;
}

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

ul,
ol {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
}

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

.defs {
	position: absolute;
}

.skip {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--heading);
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
}

.skip:focus {
	top: 12px;
}

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

/* Type */

h1,
h2 {
	color: var(--heading);
	font-weight: 300;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.75rem, 7.6vw, 6.5rem);
	line-height: 1;
	letter-spacing: -0.04em;
}

h2 {
	font-size: clamp(2.125rem, 4.3vw, 3.75rem);
	line-height: 1.06;
}

/* Words in a heading that stay on one line, such as the category name. */
.keep {
	white-space: nowrap;
}

h3 {
	color: var(--heading);
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.lead {
	font-size: clamp(1.1875rem, 1.7vw, 1.5rem);
	line-height: 1.42;
	color: var(--heading);
	letter-spacing: -0.012em;
}

.eyebrow,
.tag {
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--heading);
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.eyebrow::before {
	content: "";
	flex: none;
	width: 28px;
	height: 3px;
	background: var(--gradient-x);
}

.grad {
	background: var(--gradient-x);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.prose > * + * {
	margin-top: 1.1em;
}

.callout {
	position: relative;
	margin-top: 36px;
	padding-left: 24px;
	color: var(--heading);
	font-size: clamp(1.1875rem, 1.7vw, 1.5rem);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.012em;
}

.callout::before {
	content: "";
	position: absolute;
	inset: 2px auto 2px 0;
	width: 5px;
	background: var(--gradient);
}

/* The statement lines are quiet until their last phrase. */

.statement {
	max-width: 19em;
	color: #9C8FB3;
	font-size: clamp(2.125rem, 4.8vw, 4.25rem);
	line-height: 1.06;
}

.statement strong {
	color: var(--heading);
	font-weight: inherit;
}

/* Dark sections */

.stage {
	background: var(--stage);
	color: var(--on-stage-muted);
}

.stage h1,
.stage h2,
.stage h3 {
	color: var(--on-stage);
}

.stage .lead {
	color: #DCD3EC;
}

.stage .eyebrow {
	color: rgba(255, 255, 255, 0.78);
}

/* The gradient is lighter on the dark sections and in the header. */
.stage,
.site-header {
	--gradient: linear-gradient(180deg, var(--grad-a-stage), var(--grad-b-stage));
	--gradient-x: linear-gradient(90deg, var(--grad-a-stage), var(--grad-b-stage));
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	/* The header lies over the top of the hero, so the page opens dark edge to edge. */
	margin-bottom: calc(-1 * var(--header));
	/* Nearly opaque: a lighter tint turns grey over the light sections. */
	background: rgba(46, 26, 71, 0.94);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
	border-bottom-color: var(--stage-line);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	height: var(--header);
}

.logo {
	flex: none;
	margin-right: auto;
}

.logo img {
	width: auto;
	height: 34px;
}

.nav {
	display: flex;
	gap: clamp(18px, 2.2vw, 34px);
}

.nav a {
	position: relative;
	padding: 6px 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.875rem;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="true"] {
	color: #fff;
}

.nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--gradient-x);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.nav a:hover::after,
.nav a[aria-current="true"]::after {
	transform: scaleX(1);
}

/* The panel "Request information" opens. The layout follows Land Monkey's panel. */

.request-panel {
	position: fixed;
	top: calc(var(--header) + 8px);
	right: 20px;
	z-index: 60;
	width: min(460px, calc(100vw - 32px));
	max-height: calc(100vh - var(--header) - 24px);
	overflow-y: auto;
	padding: 16px 18px 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(46, 26, 71, 0.14);
	font-size: 0.875rem;
	line-height: 1.45;
}

.request-panel[hidden],
.request-panel [hidden],
.screenshot-picker [hidden] {
	display: none;
}

.request-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.request-panel h2 {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

.request-panel-close {
	display: inline-flex;
	padding: 4px;
	border: 0;
	border-radius: 6px;
	background: none;
	color: var(--muted);
	cursor: pointer;
}

.request-panel-close:hover {
	background: var(--tint);
	color: var(--heading);
}

.request-form {
	display: grid;
	gap: 10px;
}

.request-kinds {
	display: flex;
	gap: 4px;
}

.request-kinds button {
	padding: 6px 12px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--muted);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.request-kinds button[aria-pressed="true"] {
	background: var(--tint);
	color: var(--heading);
}

.request-form textarea,
.request-form input[type="text"],
.request-form input[type="email"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(46, 26, 71, 0.28);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font: inherit;
}

.request-form textarea {
	resize: vertical;
}

.request-form ::placeholder {
	color: var(--muted);
	opacity: 1;
}

.request-form textarea:focus-visible,
.request-form input[type="text"]:focus-visible,
.request-form input[type="email"]:focus-visible {
	outline-offset: 0;
	border-radius: 10px;
}

.request-shots {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.request-shots li {
	position: relative;
}

.request-shots img {
	width: 72px;
	height: 54px;
	object-fit: cover;
	border: 1px solid var(--line);
	border-radius: 6px;
}

.request-shots button {
	position: absolute;
	top: -6px;
	right: -6px;
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--heading);
	color: #fff;
	font: inherit;
	font-size: 0.8125rem;
	line-height: 1;
	cursor: pointer;
}

.request-recording {
	display: grid;
	grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
	gap: 12px;
	align-items: start;
}

.request-recording-meta {
	display: grid;
	gap: 4px;
	justify-items: start;
}

.request-video {
	display: block;
	width: 100%;
	max-height: 360px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #101517;
}

.request-form-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.text-button {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--heading);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.text-button:hover {
	text-decoration: underline;
}

.text-button:disabled,
.request-send:disabled {
	opacity: 0.45;
	cursor: default;
	text-decoration: none;
}

.request-send {
	margin-left: auto;
	padding: 9px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--heading);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.request-discard {
	margin-left: auto;
}

.request-discard:not([hidden]) + .request-send {
	margin-left: 0;
}

.request-error {
	color: #b3261e;
}

.request-fine {
	color: var(--muted);
	font-size: 0.8125rem;
}

.request-panel-note {
	margin-top: 10px;
}

.request-sent p {
	margin-bottom: 12px;
}

/* "Request information": the button in the header, the link in the footer, and the form they open (site.js). The
   form sits in a panel like the request panel's. The mission section ends on a larger button of its own
   (.mission-cta). */

.info-button {
	flex: none;
	padding: 7px 15px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--stage);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	cursor: pointer;
}

.info-button[aria-expanded="true"] {
	background: var(--gradient-x);
}

/* Only where a pointer can hover: after a tap, a phone leaves the button looking hovered. */
@media (hover: hover) {
	.info-button:hover {
		background: var(--gradient-x);
	}
}

.info-button:focus-visible {
	border-radius: 999px;
}

html:not(.js) [data-info-open] {
	display: none;
}

.info-form {
	gap: 14px;
}

.info-intro {
	color: var(--muted);
}

.info-form label {
	color: var(--heading);
	font-size: 0.8125rem;
	font-weight: 600;
}

.info-form label span {
	color: var(--muted);
	font-weight: 400;
}

/* 16px, so a phone does not zoom in when a field takes focus. */
.info-panel .info-form input,
.info-panel .info-form textarea {
	display: block;
	margin-top: 5px;
	font-size: 1rem;
	font-weight: 400;
}

.info-sent {
	padding-bottom: 6px;
	color: var(--ink);
	outline: 0;
}

.recording-pill {
	position: fixed;
	top: 10px;
	right: 16px;
	z-index: 80;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 5px 12px 5px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(46, 26, 71, 0.15);
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
}

.recording-pill small {
	color: var(--muted);
	font-size: inherit;
}

.recording-pill .request-send {
	margin-left: 0;
	padding: 5px 12px;
	border-radius: 999px;
}

.recording-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #c8432f;
	animation: recording-blink 1.4s ease-in-out infinite;
}

@keyframes recording-blink {
	50% {
		opacity: 0.35;
	}
}

/* Take screenshot: a crosshair over a still of the tab picks the area to attach. */

.screenshot-picker {
	position: fixed;
	inset: 0;
	z-index: 90;
	cursor: crosshair;
	user-select: none;
	touch-action: none;
}

.screenshot-picker img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	pointer-events: none;
}

.screenshot-picker-shade {
	position: absolute;
	inset: 0;
	background: rgba(16, 21, 23, 0.35);
	pointer-events: none;
}

.screenshot-picker-box {
	position: absolute;
	border: 1px solid #fff;
	box-shadow: 0 0 0 100vmax rgba(16, 21, 23, 0.35);
	pointer-events: none;
}

.screenshot-picker-hint {
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(46, 26, 71, 0.15);
	font-size: 0.8125rem;
	white-space: nowrap;
	cursor: default;
}

/* Hero */

.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	text-align: center;
}

/* A faint grid and a glow behind the object. */
.hero::before,
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.hero::before {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 72px 72px;
	background-position: center top;
	-webkit-mask-image: radial-gradient(70% 60% at 50% 68%, #000, transparent 78%);
	mask-image: radial-gradient(70% 60% at 50% 68%, #000, transparent 78%);
}

.hero::after {
	background:
		radial-gradient(46% 34% at 50% 80%, rgba(123, 79, 191, 0.34), transparent 72%),
		radial-gradient(30% 22% at 50% 70%, rgba(224, 176, 74, 0.10), transparent 72%);
}

.hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: calc(var(--header) + clamp(40px, 5vw, 72px));
	padding-bottom: clamp(24px, 4vw, 56px);
}

.hero h1 {
	max-width: 11.5em;
}

.hero .lead {
	max-width: 30em;
	margin-top: clamp(20px, 2.4vw, 32px);
}

/* One sentence to a line. The first says why the category exists, so it is the brightest. */
.hero .lead span {
	display: block;
}

.hero .lead-why {
	margin-bottom: 0.5em;
	color: var(--on-stage);
}

.hero-object {
	width: min(620px, 100%);
	margin-top: clamp(24px, 3vw, 40px);
}

/* The layered object: six slabs, drawn far to near. Each takes its colour from --c. */

.hero-object svg,
.stack-art svg {
	width: 100%;
	height: auto;
	overflow: visible;
}

.layer .base {
	fill: #1F1132;
}

.layer .top {
	fill: var(--c);
	fill-opacity: 0.1;
	stroke: var(--c);
	stroke-opacity: 0.45;
	stroke-width: 1;
	stroke-linejoin: round;
}

.layer .side-left {
	fill: var(--c);
	fill-opacity: 0.46;
}

.layer .side-right {
	fill: var(--c);
	fill-opacity: 0.26;
}

.layer .lit {
	opacity: 0;
	transition: opacity 0.35s ease;
}

.layer .etch * {
	fill: none;
	stroke: var(--c);
	stroke-opacity: 0.6;
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
	transition: stroke 0.35s ease, fill 0.35s ease;
}

.layer .etch .fill {
	fill: var(--c);
	fill-opacity: 0.42;
	stroke: none;
}

.layer .etch .dash {
	stroke-dasharray: 4 4;
}

.layer .rim,
.layer .foot {
	fill: none;
	stroke: var(--c);
	stroke-linejoin: round;
	stroke-linecap: round;
}

.layer .rim {
	stroke-width: 1.6;
}

.layer .foot {
	stroke-opacity: 0.4;
	stroke-width: 1;
}

.layer.is-active .lit {
	opacity: 0.96;
}

.layer.is-active .etch * {
	stroke: #1E102F;
	stroke-opacity: 0.62;
}

.layer.is-active .etch .fill {
	fill: #1E102F;
	fill-opacity: 0.5;
}

.layer .tag path {
	stroke: rgba(255, 255, 255, 0.3);
	stroke-width: 1;
}

.layer .tag text {
	fill: rgba(255, 255, 255, 0.5);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.1em;
	font-variant-numeric: tabular-nums;
	transition: fill 0.35s ease;
}

.layer.is-active .tag text {
	fill: var(--c);
}

/* Sections */

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

.section-soft {
	background: var(--soft);
}

.section-head {
	max-width: 46rem;
}

.section-head .lead {
	max-width: 34em;
	margin-top: 24px;
}

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

/* A long headline gets the wider column, so it runs to three or four lines beside its text. */
.split-wide {
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
}

/* Mission: the page closes the way it opens, dark and centred, with its headline at the hero's size. */

.mission {
	text-align: center;
}

/* "a nation of builders." stays together and takes a line of its own where it fits. */
.mission h2 .grad {
	display: inline-block;
}

.mission .container {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.mission h2 {
	max-width: 11.5em;
	font-size: clamp(2.75rem, 7.6vw, 6.5rem);
	line-height: 1;
	letter-spacing: -0.04em;
}

.mission-lines {
	display: grid;
	gap: clamp(20px, 2.4vw, 32px);
	/* In em, so each line breaks in two from tablet width up. */
	max-width: 30em;
	margin-top: clamp(40px, 5vw, 72px);
	color: #DCD3EC;
	font-size: clamp(1.1875rem, 1.9vw, 1.625rem);
	line-height: 1.4;
	letter-spacing: -0.012em;
	text-wrap: balance;
}

/* The commitment is the last thing said, so it is the brightest. */
.mission-lines p:last-child {
	color: var(--on-stage);
	font-weight: 500;
}

.mission-cta {
	margin-top: clamp(36px, 4.4vw, 60px);
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--stage);
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

@media (hover: hover) {
	.mission-cta:hover {
		background: var(--gradient-x);
	}
}

.mission-cta:focus-visible {
	border-radius: 999px;
}

/* Product: the object opens into its six layers as the section scrolls in (site.js sets --spread). */

.product {
	padding-top: clamp(40px, 6vw, 88px);
	/* The glow behind the object is wider than its column. */
	overflow-x: clip;
}

.stack {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
	margin-top: clamp(40px, 5vw, 72px);
}

.stack-art {
	position: relative;
	isolation: isolate;
}

.stack-art::before {
	content: "";
	position: absolute;
	inset: 8% -6% 4%;
	z-index: -1;
	background: radial-gradient(50% 50% at 46% 52%, rgba(123, 79, 191, 0.22), transparent 72%);
}

.stack-art svg {
	--spread: 1;
	max-width: 560px;
	margin-inline: auto;
}

.stack-art .layer {
	transform: translateY(calc(var(--i) * var(--spread) * 46px));
}

.stack-art .tag {
	opacity: var(--spread);
}

.specs li {
	position: relative;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	padding: 20px 0 20px 22px;
	border-top: 1px solid var(--stage-line);
}

.specs li:last-child {
	border-bottom: 1px solid var(--stage-line);
}

.specs li::before {
	content: "";
	position: absolute;
	inset: -1px auto -1px 0;
	width: 2px;
	background: var(--c);
	transform: scaleY(0);
	transition: transform 0.3s ease;
}

.specs li.is-active::before {
	transform: scaleY(1);
}

.spec-num {
	padding-top: 7px;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	font-variant-numeric: tabular-nums;
	transition: color 0.3s ease;
}

.specs li.is-active .spec-num {
	color: var(--c);
}

.specs h3 {
	font-size: clamp(1.375rem, 1.9vw, 1.625rem);
}

.specs p {
	grid-column: 2;
	margin-top: 4px;
	font-size: 1rem;
	line-height: 1.5;
}

/* What the market offers against what Substrate delivers: two columns built the same way (a label and a heading,
   a rule, what sits under it, a closing line). They share their rows (subgrid), so the rules, the bodies and the
   closing lines of the two sit level. */

.ledger {
	--ledger-pad: clamp(24px, 3vw, 40px);
	--ledger-caption: calc(14px + 0.8125rem * 1.6);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: clamp(32px, 6vw, 96px);
	margin-top: clamp(48px, 6vw, 88px);
}

.ledger-col {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
}

/* Like the heads of a table, both headings sit on the rule below them: the shorter one starts lower. */
.ledger-head {
	align-self: end;
	padding-bottom: var(--ledger-pad);
}

/* The product's heading ends on the same line as the quotation, above the line its credit takes. */
.ledger-product .ledger-head {
	padding-bottom: calc(var(--ledger-pad) + var(--ledger-caption));
}

.ledger .tag {
	color: var(--muted);
}

.ledger h3,
.ledger-quote blockquote {
	margin-top: 12px;
	color: var(--heading);
	font-size: clamp(2rem, 3.4vw, 3rem);
	font-weight: 300;
	line-height: 1.12;
	letter-spacing: -0.03em;
}

/* The opening quotation mark hangs in the margin, so the words start level with the label above. */
.ledger-quote blockquote {
	text-indent: -0.44em;
	text-wrap: balance;
}

.ledger-quote figcaption {
	margin-top: 14px;
	line-height: 1.6;
}

/* The product's heading takes three lines: the company, the category, and the product. */
.ledger-product h3 {
	max-width: 11em;
}

/* The pieces a site needs, each one a separate thing to secure: word bubbles that fill each line of the column.
   A bubble grows only so far, so one left alone on a line sits in the middle of it instead of spanning it. */
.pieces {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	justify-content: center;
	gap: 10px 8px;
	padding-top: clamp(24px, 3vw, 36px);
	border-top: 1px solid var(--line);
}

.pieces li {
	flex: 1 1 auto;
	max-width: 17.5em;
	padding: 7px 14px;
	border: 1px solid rgba(46, 26, 71, 0.22);
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.9375rem;
	line-height: 1.3;
	text-align: center;
}

/* The product is three bubbles beside the market's twenty-seven: the same shape, filled and large. They share the
   height of the pieces. */
.ledger-rows {
	position: relative;
	display: grid;
	grid-auto-rows: 1fr;
	gap: 10px;
	padding-top: clamp(24px, 3vw, 36px);
	border-top: 1px solid var(--line);
}

.ledger-rows li {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px clamp(28px, 3.6vw, 52px);
	border-radius: 999px;
	background: var(--heading);
	color: #fff;
	font-size: clamp(1.375rem, 2.1vw, 1.625rem);
	line-height: 1.25;
	letter-spacing: -0.015em;
	text-align: center;
	text-wrap: balance;
}

/* Both columns open on a rule laid over the hairline: plain for the market, the brand's for the product. */
.pieces::before,
.ledger-rows::before {
	content: "";
	position: absolute;
	inset: -2px 0 auto;
	height: 3px;
	background: var(--heading);
}

.ledger-rows::before {
	background: var(--gradient-x);
}

.ledger-note {
	max-width: 23em;
	margin-top: clamp(28px, 3.4vw, 44px);
	color: var(--muted);
	font-size: clamp(1.1875rem, 1.7vw, 1.5rem);
	line-height: 1.42;
	letter-spacing: -0.012em;
}

.ledger-product .tag,
.ledger-product h3,
.ledger-product .ledger-note {
	color: var(--heading);
}

/* Advantage: three principles as ruled rows on the page's two columns, each principle on the left and what it means
   on the right, the two sharing a baseline. The rows open on the brand's rule, like the product stack's column in
   the section above. */

.principles {
	margin-top: clamp(40px, 5vw, 72px);
	border-top: 3px solid;
	border-image: var(--gradient-x) 1;
}

.principles li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: clamp(32px, 6vw, 96px);
	align-items: baseline;
	padding-block: clamp(24px, 2.8vw, 40px);
	border-bottom: 1px solid var(--stage-line);
}

.principles h3 {
	font-size: clamp(1.75rem, 3.1vw, 2.75rem);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.principles p {
	font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
	line-height: 1.5;
}

/* Built for */

.segments {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 20px;
	margin-top: clamp(40px, 5vw, 72px);
}

.segments li {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 190px;
	padding: 28px;
	border-radius: var(--radius);
	background: var(--soft);
}

.segments h3 {
	max-width: 14em;
	font-size: 1.25rem;
}

.icon {
	width: 80px;
	height: 80px;
	margin-bottom: 20px;
	fill: none;
	stroke: url(#icon-grad);
	stroke-width: 0.95;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Footer */

.site-footer {
	padding-block: 40px;
	/* The mission above is dark too, so a rule marks where the page ends and the footer starts. */
	border-top: 1px solid var(--stage-line);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.875rem;
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 40px;
}

.footer-inner img {
	width: auto;
	height: 30px;
}

.footer-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-left: auto;
}

.footer-nav a {
	text-decoration: none;
}

.footer-nav button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.footer-nav a:hover,
.footer-nav button:hover {
	color: #fff;
}

.copyright {
	flex-basis: 100%;
	padding-top: 20px;
	border-top: 1px solid var(--stage-line);
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
	.js .reveal {
		opacity: 0;
		transform: translateY(20px);
		transition: opacity 0.7s ease, transform 0.7s ease;
	}

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

	/* The hero object starts as six separate layers and closes into one. */
	.hero-object .layer {
		animation: assemble 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
	}

	@keyframes assemble {
		from {
			opacity: 0;
			transform: translateY(calc((var(--i) - 2.5) * 30px));
		}
	}

	.hero .eyebrow,
	.hero h1,
	.hero .lead {
		animation: arrive 0.9s ease both;
	}

	.hero h1 {
		animation-delay: 0.08s;
	}

	.hero .lead {
		animation-delay: 0.16s;
	}

	@keyframes arrive {
		from {
			opacity: 0;
			transform: translateY(16px);
		}
	}
}

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

	.recording-dot {
		animation: none;
	}
}

/* Narrow screens */

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

/* The three crown jewels: three columns built the same way (a label, a statement, what it means, the edge). They
   share their rows (subgrid), so the statements, the bodies, and the edges of the three sit level. */

/* The headline gives the three a line of their own, at a size that keeps them on one line on a desktop. */
.jewels-title {
	font-size: clamp(2.125rem, 4.4vw, 4rem);
}

.jewels-title strong {
	display: block;
}

.jewels {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: clamp(28px, 4.4vw, 72px);
	margin-top: clamp(48px, 6vw, 88px);
}

.jewels li {
	display: grid;
	grid-row: span 4;
	grid-template-rows: subgrid;
	padding-top: 22px;
	border-top: 3px solid;
	border-image: var(--gradient-x) 1;
}

.jewels .tag {
	color: var(--muted);
}

.jewels h3 {
	margin-top: 14px;
	font-size: clamp(1.5rem, 2.25vw, 2rem);
	font-weight: 300;
	line-height: 1.16;
	letter-spacing: -0.025em;
}

.jewel-body {
	margin-top: 20px;
	font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
	line-height: 1.5;
}

.jewel-edge {
	margin-top: clamp(24px, 2.6vw, 36px);
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.jewel-edge p + p {
	margin-top: 8px;
	color: var(--heading);
	line-height: 1.5;
}

@media (max-width: 900px) {
	.split,
	.stack,
	.ledger {
		grid-template-columns: minmax(0, 1fr);
	}

	.ledger-product {
		margin-top: 56px;
	}

	.ledger-product .ledger-head {
		padding-bottom: var(--ledger-pad);
	}

	.ledger-product h3 {
		max-width: none;
	}

	.stack-art svg {
		max-width: 440px;
	}

	.principles li {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 10px;
	}

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

	.jewels {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 48px;
	}

	.jewels li {
		display: block;
	}

	.footer-nav {
		margin-left: 0;
	}
}

@media (max-width: 640px) {
	:root {
		--header: 60px;
	}

	.logo img {
		height: 26px;
	}

	.segments {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: auto;
	}

	.segments li {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 20px;
		min-height: 0;
		padding: 20px 22px;
	}

	.icon {
		flex: none;
		width: 56px;
		height: 56px;
		margin-bottom: 0;
	}

	.specs li {
		grid-template-columns: 40px minmax(0, 1fr);
		padding-left: 16px;
	}
}

/* A phone's header has room for the logo, a shorter "Request info", and the version number. The footer keeps the
   full link on the narrowest screens, where the button does not fit. */

@media (max-width: 480px) {
	.header-inner {
		gap: 16px;
	}

	.info-button span {
		display: none;
	}

	.info-panel {
		right: 16px;
	}
}

@media (max-width: 350px) {
	.keep {
		white-space: normal;
	}

	.info-button {
		display: none;
	}
}

/* The trap field in the "Request information" form: in the page for programs, out of sight and reach for people. */
.info-trap {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
