:root {
	--navy: #0c0c0c;
	--navy-2: #141414;
	--ink: #f7f7f7;
	--muted: #a3a3a3;
	--faint: #8a8a8a;
	--line: #2a2a2a;
	--gold: #00d2ff;
	--gold-ink: #a4f4fd;
	--blue-deep: #0b5d82;
	--max: 1120px;
}

body {
	background: var(--navy);
	font-size: 16px;
}

html {
	color-scheme: dark;
	scroll-padding-top: 5rem;
}

body {
	overflow-wrap: break-word;
}

.skip-link {
	background: var(--ink);
	color: var(--navy);
}

:focus-visible {
	outline: 3px solid var(--gold-ink);
	outline-offset: 4px;
}

.site-header {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 1.35rem;
	min-height: 64px;
	background: rgb(12 12 12 / 78%);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgb(255 255 255 / 6%);
}

.brand strong {
	font-size: 0.95rem;
	font-weight: 600;
}

.brand div span {
	display: none;
}

.brand-mark {
	width: 32px;
	height: 32px;
	border-radius: 8px;
}

.nav {
	font-size: 0.86rem;
	gap: 1.35rem;
}

.nav a {
	color: rgb(255 255 255 / 72%);
}

.nav a:hover,
.nav a[aria-current="location"],
.nav a[aria-current="page"] {
	color: var(--gold-ink);
	border-bottom-color: var(--gold);
}

.lang {
	border: 0;
	padding: 0;
	gap: 0.1rem;
	margin-left: 0.35rem;
}

.lang button {
	min-width: 44px;
	min-height: 44px;
	color: var(--muted);
}

.lang button[aria-pressed="true"] {
	background: #1b2c31;
	color: var(--gold-ink);
}

.header-cta {
	margin-left: 0.45rem;
	min-height: 44px;
	padding: 0 0.95rem;
	font-size: 0.84rem;
}

.hero {
	position: relative;
	padding: 3.5rem 0 3rem;
	text-align: center;
}

/* Chart paper: a fine grid, only in the hero, masked so it fades before
   it reaches the type. The rest of the page stays clean black. */
.hero::before {
	content: "";
	position: absolute;
	inset: -64px 0 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		linear-gradient(to right, rgb(255 255 255 / 4%) 1px, transparent 1px),
		linear-gradient(to bottom, rgb(255 255 255 / 4%) 1px, transparent 1px);
	background-size:
		56px 56px,
		56px 56px;
	-webkit-mask-image: radial-gradient(
		ellipse 84% 72% at 50% 42%,
		#000 10%,
		rgb(0 0 0 / 40%) 56%,
		transparent 86%
	);
	mask-image: radial-gradient(
		ellipse 84% 72% at 50% 42%,
		#000 10%,
		rgb(0 0 0 / 40%) 56%,
		transparent 86%
	);
}

.hero > * {
	position: relative;
	z-index: 1;
}

/* the base of the hero reads as a chart axis: a hairline with tick marks,
   fading out at both ends. Decoration only, no values. */
.hero::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 1rem;
	transform: translateX(-50%);
	width: min(1120px, calc(100vw - 3rem));
	height: 14px;
	border-top: 1px solid rgb(255 255 255 / 9%);
	background-image:
		repeating-linear-gradient(
			to right,
			rgb(0 210 255 / 30%) 0 1px,
			transparent 1px 200px
		),
		repeating-linear-gradient(
			to right,
			rgb(255 255 255 / 14%) 0 1px,
			transparent 1px 40px
		);
	background-repeat: no-repeat;
	background-size:
		100% 12px,
		100% 6px;
	background-position:
		top left,
		top left;
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0%,
		#000 14%,
		#000 86%,
		transparent 100%
	);
	mask-image: linear-gradient(
		to right,
		transparent 0%,
		#000 14%,
		#000 86%,
		transparent 100%
	);
	pointer-events: none;
}

.kicker,
.section-label {
	letter-spacing: 0;
}

.hero .kicker {
	justify-content: center;
	margin-bottom: 1.35rem;
}

.kicker::before {
	display: none;
}

h1 {
	font-size: 3.75rem;
	line-height: 1.1;
	letter-spacing: 0;
	max-width: none;
	font-weight: 600;
}

.hero h1 span {
	display: block;
}

.hero-accent {
	color: var(--gold-ink);
}

.hero-statement {
	margin: 1.25rem 0 0;
	font-family: var(--display);
	font-size: 1.5rem;
	line-height: 1.5;
	text-wrap: balance;
}

.lede {
	max-width: 34rem;
	margin: 0.75rem auto 0;
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--muted);
}

.hero-actions {
	justify-content: center;
	gap: 0.7rem;
	margin-top: 1.75rem;
}

.btn {
	border-radius: 6px;
	min-height: 46px;
	padding: 0 1.2rem;
	font-weight: 600;
}

.btn-primary {
	background: #f4f5f2;
	color: #121413;
}

.btn-primary:hover {
	background: #ffffff;
	box-shadow: none;
}

.btn-quiet {
	border-color: rgb(255 255 255 / 16%);
	background: transparent;
	color: var(--ink);
}

.btn-quiet:hover {
	background: rgb(255 255 255 / 6%);
}

section {
	padding: 5.25rem 0;
}

#desk .section-label {
	display: block;
}

#desk .section-label,
#desk h2,
#desk .section-intro,
#desk .caption,
#layers .section-label,
#layers h2,
#layers .section-intro,
#agent .section-label,
#agent > .wrap > h2,
#agent > .wrap > .section-intro {
	text-align: center;
	margin-inline: auto;
}

#desk h2,
#layers h2,
#agent > .wrap > h2 {
	font-size: 2.25rem;
	letter-spacing: 0;
	line-height: 1.3;
	text-wrap: balance;
}

.section-intro {
	max-width: 38rem;
	font-size: 0.98rem;
	line-height: 1.7;
}

#desk > .wrap {
	width: min(1440px, calc(100% - 2rem));
}

.desk {
	margin-top: 0.5rem;
	border-color: rgb(255 255 255 / 10%);
	border-radius: 8px;
	box-shadow: none;
}

.desk-top {
	background: #121212;
	padding-inline: 0.85rem;
	gap: 0.35rem;
	min-height: 3.25rem;
}

.desk-top button {
	border-radius: 4px;
}

.desk-top button[aria-selected="true"] {
	background: #132a36;
	box-shadow: inset 0 -2px var(--gold);
	color: #f7f7f5;
}

.desk-top button:hover {
	color: #ffffff;
}

.capture {
	margin: 0;
	border-bottom: 0;
	background: #0c0c0c;
}

.capture img {
	width: 100%;
	height: 100%;
	aspect-ratio: 6014 / 3082;
	object-fit: contain;
	object-position: center;
}

.capture figcaption {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.5rem;
	padding: 0.75rem 1rem 0.9rem;
	justify-content: center;
	font: 0.75rem/1.6 var(--mono);
	color: var(--faint);
	letter-spacing: 0;
}

.capture figcaption a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--gold-ink);
	text-underline-offset: 0.2em;
}

.caption {
	max-width: 40rem;
	margin-top: 1.1rem;
	font-size: 0.82rem;
	color: var(--faint);
}

#layers {
	background: transparent;
}

.section-label {
	color: var(--gold);
	margin-bottom: 0.85rem;
}

.pillars {
	display: grid;
	grid-template-columns: 1fr;
	margin: 2.75rem 0 0;
	border-top: 1px solid var(--line);
}

.pillar,
.pillar + .pillar {
	display: grid;
	grid-template-columns: 9.5rem minmax(0, 1fr);
	column-gap: 2rem;
	align-items: start;
	border-left: 0;
	border-top: 0;
	border-bottom: 1px solid var(--line);
	padding: 1.7rem 0;
	min-width: 0;
}

.pillar .number {
	grid-column: 1;
	grid-row: 1 / span 4;
	font: 0.72rem var(--mono);
	color: var(--gold);
	letter-spacing: 0;
	padding-top: 0.35rem;
}

.pillar h3,
.pillar p,
.pillar ul,
.pillar .repo-link {
	grid-column: 2;
}

.pillar h3 {
	font-size: 1.35rem;
	margin: 0;
	font-weight: 500;
}

.pillar p {
	font-size: 0.95rem;
	color: var(--muted);
	min-height: 0;
	margin: 0.45rem 0 0;
	max-width: 42rem;
}

.pillar ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	padding: 0;
	margin: 0.85rem 0 0;
	list-style: none;
}

.pillar li {
	border: 0;
	padding: 0;
	font: 0.72rem var(--mono);
	color: #c5d4dc;
}

.repo-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: 0.85rem;
	color: var(--gold-ink);
	font: 0.72rem var(--mono);
	text-decoration: none;
}

.repo-link:hover {
	text-decoration: underline;
}

.pipeline {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.85rem 1.25rem;
	margin-top: 1.75rem;
	padding: 0.4rem 0 0;
	border: 0;
	font: 0.75rem var(--mono);
	color: var(--faint);
}

.pipeline strong {
	color: var(--ink);
	font-weight: 500;
}

.foundation {
	display: grid;
	grid-template-columns: 0.72fr 1.28fr;
	gap: 3.5rem;
	margin-top: 2.75rem;
	text-align: left;
}

.foundation-intro p {
	color: var(--muted);
	font-size: 0.95rem;
}

.foundation-list {
	display: grid;
}

.foundation-item {
	display: grid;
	grid-template-columns: 11.5rem minmax(0, 1fr);
	gap: 1rem;
	border-top: 1px solid var(--line);
	padding: 1.35rem 0;
}

.foundation-item h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
}

.foundation-item p {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
}

.close-stage {
	padding-top: 0.5rem;
	padding-bottom: 4.5rem;
}

.close-frame {
	border-top: 1px solid var(--line);
	padding: 3.5rem 0 2rem;
	text-align: center;
}

.close-frame h2 {
	max-width: 12em;
	margin: 0 auto 0.85rem;
	font-size: 2.5rem;
	line-height: 1.3;
	letter-spacing: 0;
	text-wrap: balance;
}

.close-frame p {
	max-width: 34rem;
	margin: 0 auto 1.6rem;
	color: var(--muted);
	font-size: 1rem;
}

footer {
	background: transparent;
	padding: 0 1.25rem 1.5rem;
	font-size: 0.75rem;
}

footer .wrap {
	width: min(1120px, 100%);
	padding: 1rem 0;
}

footer p {
	margin: 0.2rem 0;
	color: var(--faint);
}

footer a {
	color: var(--gold-ink);
}

@media (max-width: 860px) {
	html {
		scroll-padding-top: 8rem;
	}

	.site-header {
		min-height: 60px;
		padding-inline: 0.85rem;
	}

	.header-cta {
		display: none;
	}

	.hero {
		padding-top: 3.25rem;
	}

	h1 {
		font-size: 3.25rem;
	}

	.pillar,
	.pillar + .pillar {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}

	.pillar .number {
		grid-row: auto;
	}

	.pillar h3,
	.pillar p,
	.pillar ul,
	.pillar .repo-link {
		grid-column: 1;
	}

	.foundation {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.foundation-item {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}

	.capture img {
		object-position: top;
	}
}

@media (max-width: 540px) {
	.site-header {
		gap: 0.25rem 0.5rem;
	}

	.brand {
		flex: 1;
		min-width: 0;
	}

	.brand strong {
		max-width: 8rem;
		line-height: 1.3;
	}

	.nav {
		justify-content: space-between;
		gap: 0.5rem;
	}

	.hero {
		padding: 2rem 0 2.5rem;
	}

	h1 {
		font-size: 2.25rem;
	}

	.hero-statement {
		font-size: 1.125rem;
	}

	#desk h2,
	#layers h2,
	#agent > .wrap > h2,
	.close-frame h2 {
		font-size: 1.75rem;
	}

	.hero::after {
		bottom: 0.75rem;
		width: calc(100vw - 2.4rem);
	}

	section {
		padding: 3.25rem 0;
	}

	.close-frame {
		padding: 2.4rem 0 2rem;
	}

	.desk-top {
		flex-wrap: nowrap;
		gap: 0.25rem;
		padding: 0.4rem;
	}

	.desk-top button {
		flex: 1;
		min-width: 0;
		padding-inline: 0.25rem;
	}

	.preview-label {
		display: none;
	}
}

/* Launch strip: the Desk App is in beta prep. One line of copy above the
   header, so the beta notice reads before the page starts. */
.launch-banner {
	position: relative;
	z-index: 21;
	display: flex;
	justify-content: center;
	padding: 0.6rem 1.35rem;
	background: linear-gradient(
		90deg,
		rgb(0 210 255 / 8%),
		rgb(11 93 130 / 20%) 52%,
		rgb(0 210 255 / 6%)
	);
	border-bottom: 1px solid rgb(0 210 255 / 18%);
	font-size: 0.84rem;
	text-align: center;
}

.launch-text {
	margin: 0;
	color: var(--muted);
}

.launch-text strong {
	margin-right: 0.7rem;
	color: var(--ink);
	font-weight: 600;
}

.btn-launch {
	gap: 0.55rem;
}

.btn-signal {
	display: inline-flex;
	align-items: center;
	gap: 0.32rem;
	padding: 0.14rem 0.45rem;
	border: 1px solid rgb(0 210 255 / 32%);
	border-radius: 999px;
	background: rgb(0 210 255 / 10%);
	color: var(--gold-ink);
	font-family: var(--mono);
	font-size: 0.62rem;
	font-weight: 500;
	letter-spacing: 0.08em;
}

.launch-dot {
	flex: none;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--gold);
	animation: launch-pulse 2.4s ease-out infinite;
}

@keyframes launch-pulse {
	0% {
		box-shadow: 0 0 0 0 rgb(0 210 255 / 55%);
	}
	70% {
		box-shadow: 0 0 0 6px rgb(0 210 255 / 0%);
	}
	100% {
		box-shadow: 0 0 0 0 rgb(0 210 255 / 0%);
	}
}

@media (max-width: 540px) {
	.launch-banner {
		padding: 0.5rem 0.85rem;
		font-size: 0.78rem;
		line-height: 1.45;
	}

	.launch-text strong {
		display: block;
		margin-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.launch-dot {
		animation: none;
	}
}
