:root {
	--ink: #1d1d1f;
	--gray: #86868b;
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	background: #fff;
	color: var(--ink);
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
	text-decoration: none;
}

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

/* ---------- fade-in utility ---------- */

@keyframes fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in {
	opacity: 0;
	animation: fade-in 1s ease forwards;
	animation-delay: var(--delay, 0s);
}

/* ---------- hero background image ---------- */

.hero-bg-desktop {
	display: none;
}

.hero-bg-mobile {
	width: 100%;
	display: flex;
	justify-content: center;
	opacity: 0;
	animation: fade-in 1.2s ease 0.3s forwards;
}

.hero-bg-mobile .hero-img {
	width: 100%;
	height: auto;
	max-height: 45vh;
	object-fit: contain;
}

@media (min-width: 768px) {
	.hero-bg-desktop {
		display: block;
		position: fixed;
		right: 0;
		bottom: 0;
		width: 55%;
		height: 100vh;
		z-index: 0;
		pointer-events: none;
		opacity: 0;
		animation: fade-in 1.2s ease 0.3s forwards;
	}

	.hero-bg-desktop .hero-img {
		position: absolute;
		right: 0;
		bottom: 0;
		width: 100%;
		height: auto;
		max-height: 90vh;
		object-fit: contain;
		object-position: bottom right;
	}

	.hero-bg-mobile {
		display: none;
	}
}

/* ---------- page shell ---------- */

.page {
	position: relative;
}

.site-header,
.hero-copy,
.body-copy {
	position: relative;
	z-index: 10;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

@media (min-width: 768px) {
	.site-header,
	.hero-copy,
	.body-copy {
		padding-left: 4rem;
		padding-right: 4rem;
		max-width: 50%;
	}
}

@media (min-width: 1024px) {
	.site-header,
	.hero-copy,
	.body-copy {
		padding-left: 6rem;
		padding-right: 6rem;
	}
}

/* ---------- header / logo ---------- */

.site-header {
	padding-top: 2rem;
}

@media (min-width: 768px) {
	.site-header {
		padding-top: 4rem;
	}
}

.logo {
	position: relative;
	display: inline-block;
	cursor: default;
}

.logo-default {
	transition: opacity 0.5s ease;
}

.logo:hover .logo-default {
	opacity: 0;
}

.logo-line {
	display: block;
	font-size: 10px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gray);
}

.logo-sub {
	color: rgba(134, 134, 139, 0.6);
}

@media (min-width: 768px) {
	.logo-line {
		font-size: 11px;
	}
}

.logo-hover-wrap {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.logo:hover .logo-hover-wrap {
	opacity: 1;
}

.logo-hover {
	font-size: 10px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gray);
}

.logo-hover sup {
	font-size: 8px;
}

@media (min-width: 768px) {
	.logo-hover {
		font-size: 11px;
	}
}

/* ---------- hero copy ---------- */

.hero-copy {
	padding-top: 2rem;
}

@media (min-width: 768px) {
	.hero-copy {
		padding-top: 4rem;
	}
}

.headline {
	margin: 0;
	font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	font-weight: 700;
	font-size: 2.25rem;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

@media (min-width: 768px) {
	.headline {
		font-size: clamp(2rem, 5vw, 4rem);
	}
}

.tagline {
	margin: 1.5rem 0 0;
	color: var(--gray);
	font-size: 1rem;
	font-weight: 300;
	max-width: 28rem;
}

@media (min-width: 768px) {
	.tagline {
		margin-top: 2rem;
		font-size: 1.125rem;
	}
}

/* ---------- body copy ---------- */

.body-copy {
	padding-top: 3.5rem;
	padding-bottom: 1rem;
	font-size: 15px;
	line-height: 1.7;
	font-weight: 300;
	color: rgba(29, 29, 31, 0.85);
}

@media (min-width: 768px) {
	.body-copy {
		padding-top: 7rem;
		font-size: 17px;
	}
}

.stack {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.stack {
		gap: 2rem;
	}
}

.stack p {
	margin: 0;
	color: inherit;
}

.stack p:first-child {
	color: var(--ink);
}

.strong {
	font-weight: 500;
}

.closing .emphasis {
	color: var(--ink);
	font-weight: 500;
}

/* ---------- diagram / orchestrator ---------- */

.diagram-block {
	margin: 3.5rem 0;
}

@media (min-width: 768px) {
	.diagram-block {
		margin: 5rem 0;
	}
}

.label {
	font-size: 10px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gray);
	margin: 0 0 2rem;
	text-align: center;
}

@media (min-width: 768px) {
	.label {
		margin-bottom: 2.5rem;
		text-align: left;
	}
}

.label-left {
	text-align: left;
}

.orchestrator-wrap {
	width: 100%;
	max-width: 460px;
	margin: 0 auto;
	color: var(--ink);
}

.orchestrator-svg {
	width: 100%;
	height: auto;
}

.orbit {
	opacity: 0;
	animation: diagram-fade 1s ease 0.1s forwards;
}

.spoke {
	opacity: 0;
	animation: diagram-fade 0.9s ease forwards;
}

.spoke-0 { animation-delay: 0.3s; }
.spoke-1 { animation-delay: 0.42s; }
.spoke-2 { animation-delay: 0.54s; }
.spoke-3 { animation-delay: 0.66s; }
.spoke-4 { animation-delay: 0.78s; }
.spoke-5 { animation-delay: 0.9s; }

@keyframes diagram-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes diagram-pop {
	from {
		opacity: 0;
		transform: scale(0);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.node-g {
	transform-box: fill-box;
	transform-origin: center;
	opacity: 0;
	transform: scale(0);
	animation: diagram-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, diagram-fade 0.5s ease forwards;
}

.node-g-0 { animation-delay: 0.3s; }
.node-g-1 { animation-delay: 0.42s; }
.node-g-2 { animation-delay: 0.54s; }
.node-g-3 { animation-delay: 0.66s; }
.node-g-4 { animation-delay: 0.78s; }
.node-g-5 { animation-delay: 0.9s; }

.center-g {
	transform-box: fill-box;
	transform-origin: center;
	opacity: 0;
	transform: scale(0);
	animation: diagram-pop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, diagram-fade 0.4s ease forwards;
}

.tags {
	margin-top: 1rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.25rem;
	font-size: 9px;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--gray);
	opacity: 0;
	animation: diagram-fade 0.8s ease 1.2s forwards;
}

@media (min-width: 768px) {
	.tags {
		margin-top: 1.5rem;
		gap: 0.5rem 1.75rem;
		font-size: 10px;
	}
}

/* ---------- timeline ---------- */

.timeline-wrap {
	width: 100%;
	max-width: 28rem;
}

.timeline {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.timeline-line {
	position: absolute;
	left: 7px;
	top: 0.375rem;
	bottom: 0.375rem;
	width: 1px;
	background: rgba(29, 29, 31, 0.2);
	transform-origin: top;
	transform: scaleY(0);
	transition: transform 1.1s ease-out;
}

.timeline-line.visible {
	transform: scaleY(1);
}

.timeline-item {
	position: relative;
	padding-left: 2.5rem;
	padding-bottom: 1.75rem;
}

.timeline-item:last-child {
	padding-bottom: 0;
}

.node {
	position: absolute;
	left: 0;
	top: 0.25rem;
	width: 15px;
	height: 15px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--ink);
	display: block;
	transform: scale(0);
	transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
	transition-delay: calc(var(--i, 0) * 0.08s + 0.2s);
}

.node.visible {
	transform: scale(1);
}

.dot {
	position: absolute;
	inset: 3px;
	border-radius: 999px;
	background: var(--ink);
	opacity: 0;
	transition: opacity 0.4s ease;
	transition-delay: calc(var(--i, 0) * 0.08s + 0.45s);
}

.dot.visible {
	opacity: 1;
}

.reveal {
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	transition-delay: calc(var(--i, 0) * 0.08s + 0.28s);
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

.item-title {
	margin: 0 0 0.25rem;
	font-size: 15px;
	font-weight: 500;
	color: var(--ink);
	letter-spacing: -0.01em;
}

@media (min-width: 768px) {
	.item-title {
		font-size: 16px;
	}
}

.item-desc {
	margin: 0;
	font-size: 13px;
	color: var(--gray);
	font-weight: 300;
	line-height: 1.6;
}

@media (min-width: 768px) {
	.item-desc {
		font-size: 14px;
	}
}

/* ---------- footer spacer + footer ---------- */

.footer-spacer {
	height: 11rem;
}

@media (min-width: 768px) {
	.footer-spacer {
		height: 12rem;
	}
}

.site-footer {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 20;
	pointer-events: none;
}

.footer-gradient {
	background: linear-gradient(to top, #fff 60%, transparent 100%);
}

@media (min-width: 768px) {
	.footer-gradient {
		max-width: 50%;
	}
}

.footer-inner {
	padding: 2.5rem 1.5rem 1.25rem;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
}

@media (min-width: 768px) {
	.footer-inner {
		padding: 2.5rem 4rem 2.5rem;
		gap: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.footer-inner {
		padding-left: 6rem;
		padding-right: 6rem;
	}
}

.footer-copy {
	pointer-events: auto;
	margin: 0;
	font-size: 12px;
	font-weight: 300;
	line-height: 1.5;
	letter-spacing: -0.01em;
}

@media (min-width: 768px) {
	.footer-copy {
		font-size: 15px;
	}
}

.contact-btn {
	pointer-events: auto;
	flex-shrink: 0;
	padding: 0.5rem 1rem;
	background: var(--ink);
	color: #fff;
	font-size: 12px;
	border-radius: 999px;
	transition: background-color 0.2s ease;
	white-space: nowrap;
}

.contact-btn:hover {
	background: #000;
}

@media (min-width: 768px) {
	.contact-btn {
		padding: 0.625rem 1.25rem;
		font-size: 13px;
	}
}
