@font-face {
	font-display: swap;
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 400 800;
	src: url('fonts/manrope-latin.woff2') format('woff2');
}

@font-face {
	font-display: swap;
	font-family: 'Space Grotesk';
	font-style: normal;
	font-weight: 300 700;
	src: url('fonts/space-grotesk-latin.woff2') format('woff2');
}

:root {
	--bg: #07080b;
	--ink: #f2f3ee;
	--muted: #a2a7b0;
	--line: rgba(255, 255, 255, 0.11);
	--card: rgba(15, 17, 23, 0.86);
	--glass: rgba(12, 14, 19, 0.66);
	--accent: #c6ff3a;
	--accent-ink: #c6ff3a;
	--on-accent: #0b0d05;
	--shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
	--display: 'Space Grotesk', system-ui, sans-serif;
	--body: 'Manrope', system-ui, sans-serif;
	--mono: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--gutter: clamp(20px, 5vw, 56px);
	color-scheme: dark;
}

:root[data-theme='light'] {
	--bg: #f2f1ec;
	--ink: #0d0f0b;
	--muted: #53584f;
	--line: rgba(0, 0, 0, 0.13);
	--card: rgba(255, 255, 255, 0.9);
	--glass: rgba(255, 255, 255, 0.7);
	--accent-ink: #3a6300;
	--shadow: 0 30px 80px -40px rgba(20, 30, 0, 0.35);
	color-scheme: light;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 84px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.65;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 72px 72px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 75%);
	opacity: 0.45;
	pointer-events: none;
}

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

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

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

a {
	color: inherit;
}

button {
	font: inherit;
	color: inherit;
}

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

::selection {
	background: var(--accent);
	color: var(--on-accent);
}

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

.skip {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 50;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 700;
	text-decoration: none;
	transform: translateY(-200%);
}

.skip:focus {
	transform: none;
}

#field {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 3px;
	z-index: 30;
}

.progress span {
	display: block;
	height: 100%;
	background: var(--accent-ink);
	transform: scaleX(var(--p, 0));
	transform-origin: left;
}

.wrap {
	width: min(1180px, 100% - var(--gutter) * 2);
	margin-inline: auto;
}

main,
.foot {
	position: relative;
	z-index: 1;
}

.bar {
	position: fixed;
	top: 14px;
	left: 50%;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: min(1180px, 100% - 24px);
	padding: 8px 8px 8px 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--glass);
	-webkit-backdrop-filter: blur(18px) saturate(1.4);
	backdrop-filter: blur(18px) saturate(1.4);
	transform: translateX(-50%);
}

.brand {
	font-family: var(--display);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.04em;
	text-decoration: none;
}

.brand span {
	color: var(--accent-ink);
}

.bar__nav {
	display: flex;
	gap: 2px;
}

.bar__nav a {
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s, background-color 0.2s;
}

.bar__nav a:hover {
	color: var(--ink);
}

.bar__nav a[aria-current='true'] {
	background: var(--accent);
	color: var(--on-accent);
}

.bar__tools {
	display: flex;
	gap: 6px;
}

.tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s;
}

.tool:hover {
	border-color: var(--accent-ink);
}

.tool svg {
	width: 18px;
	height: 18px;
	flex: none;
}

.flip {
	transform: scaleX(-1);
}

kbd {
	padding: 2px 7px;
	border: 1px solid var(--line);
	border-radius: 6px;
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.72rem;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--accent-ink);
	font-family: var(--mono);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.eyebrow__n {
	padding: 2px 8px;
	border: 1px solid currentColor;
	border-radius: 6px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--glass);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.25s;
}

.btn:hover {
	border-color: var(--accent-ink);
	transform: translateY(-2px);
}

.btn svg {
	width: 20px;
	height: 20px;
	transition: transform 0.25s var(--ease);
}

.btn:hover svg {
	transform: translateX(4px);
}

.btn--solid {
	border-color: transparent;
	background: var(--accent);
	color: var(--on-accent);
	box-shadow: 0 12px 40px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn--small {
	min-height: 44px;
	padding: 0 18px;
	font-size: 0.875rem;
}

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100svh;
	padding: 120px 0 90px;
}

.hero__grid {
	display: grid;
	gap: 22px;
	justify-items: start;
}

.hero__name {
	font-family: var(--display);
	font-size: clamp(2.7rem, min(12vw, 14vh), 8.6rem);
	font-weight: 700;
	line-height: 0.92;
	letter-spacing: -0.055em;
}

.hero__name .word {
	display: block;
	perspective: 700px;
	white-space: nowrap;
}

.hero__name .word:last-child {
	color: transparent;
	-webkit-text-stroke: 1.5px var(--ink);
}

.hero__name .ch {
	display: inline-block;
	transform-origin: 50% 100%;
	animation: ch 0.9s var(--ease) both;
	animation-delay: calc(var(--n) * 45ms + 150ms);
}

@keyframes ch {
	from {
		opacity: 0;
		transform: translateY(0.4em) rotateX(-90deg);
	}
}

.hero__tag {
	max-width: 22ch;
	font-family: var(--display);
	font-size: clamp(1.3rem, min(2.6vw, 3.4vh), 2rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.hero__sum {
	max-width: 52ch;
	color: var(--muted);
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 6px;
}

.stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 44px;
	margin-top: 12px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.stat {
	display: flex;
	flex-direction: column-reverse;
}

.stat dt {
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.stat dd {
	font-family: var(--display);
	font-size: clamp(2rem, 4vw, 2.9rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.hero__scroll {
	position: absolute;
	bottom: 26px;
	left: 50%;
	width: 26px;
	height: 44px;
	border: 1px solid var(--muted);
	border-radius: 999px;
	transform: translateX(-50%);
}

.hero__scroll span {
	position: absolute;
	top: 8px;
	left: 50%;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	border-radius: 4px;
	background: var(--accent-ink);
	animation: wheel 1.8s var(--ease) infinite;
}

@keyframes wheel {
	60%,
	100% {
		opacity: 0;
		transform: translateY(18px);
	}
}

.sec {
	padding: clamp(90px, 14vh, 170px) 0;
}

.sec--last {
	padding-bottom: clamp(110px, 18vh, 220px);
}

.sec__head {
	display: grid;
	gap: 18px;
	margin-bottom: clamp(36px, 6vw, 64px);
}

.sec__head--center {
	justify-items: center;
	text-align: center;
}

.sec__head h2 {
	max-width: 16ch;
	font-family: var(--display);
	font-size: clamp(2.1rem, 5.4vw, 4rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.lead {
	max-width: 46ch;
	color: var(--muted);
	font-size: 1.125rem;
}

.card {
	display: block;
	padding: clamp(24px, 3vw, 36px);
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--card);
	box-shadow: var(--shadow);
}

.tilt {
	--rx: 0deg;
	--ry: 0deg;
	--gx: 50%;
	--gy: 50%;
	position: relative;
	transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
	transform-style: preserve-3d;
	transition: transform 0.5s var(--ease), border-color 0.3s;
}

.tilt.is-live {
	transition: transform 0.08s linear, border-color 0.3s;
}

.tilt:hover {
	border-color: color-mix(in srgb, var(--accent-ink) 55%, transparent);
}

.tilt::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(380px circle at var(--gx) var(--gy), color-mix(in srgb, var(--accent-ink) 20%, transparent), transparent 62%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}

.tilt:hover::after {
	opacity: 1;
}

.pop {
	transition: transform 0.5s var(--ease);
}

.tilt.is-live .pop {
	transform: translateZ(34px);
}

.pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}

.pillars .card {
	display: grid;
	gap: 14px;
	align-content: start;
	height: 100%;
}

.card__n {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--accent);
	color: var(--on-accent);
	font-family: var(--mono);
	font-weight: 700;
}

.card h3 {
	font-family: var(--display);
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.card p {
	color: var(--muted);
}

.split {
	display: grid;
	gap: 28px;
}

.story {
	display: grid;
	gap: 20px;
	max-width: 62ch;
	margin-bottom: clamp(48px, 8vw, 90px);
	font-size: 1.125rem;
}

.story p:first-child::first-letter {
	float: left;
	margin: 6px 12px 0 0;
	color: var(--accent-ink);
	font-family: var(--display);
	font-size: 4.2rem;
	font-weight: 700;
	line-height: 0.8;
}

.tl {
	position: relative;
	display: grid;
	gap: 16px;
	max-width: 680px;
	padding-left: 40px;
}

.tl::before,
.tl__fill {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 9px;
	width: 2px;
	background: var(--line);
}

.tl__fill {
	background: var(--accent-ink);
	box-shadow: 0 0 18px var(--accent-ink);
	transform: scaleY(var(--p, 0));
	transform-origin: top;
}

.tl__item {
	position: relative;
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--card);
}

.tl__item::before {
	content: '';
	position: absolute;
	top: 28px;
	left: -37px;
	width: 14px;
	height: 14px;
	border: 2px solid var(--muted);
	border-radius: 50%;
	background: var(--bg);
	transition: border-color 0.4s, background-color 0.4s, box-shadow 0.4s;
}

.tl__item.in::before {
	border-color: var(--accent-ink);
}

.tl__item.is-now.in::before {
	background: var(--accent-ink);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-ink) 22%, transparent);
}

.tl__when {
	color: var(--accent-ink);
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
}

.tl__item h3 {
	margin-top: 6px;
	font-family: var(--display);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.tl__where {
	margin-bottom: 8px;
	font-weight: 700;
}

.tl__item p:last-child {
	color: var(--muted);
	font-size: 0.98rem;
}

.tl__item--origin {
	justify-self: start;
	padding: 12px 20px;
	font-size: 1.6rem;
	line-height: 1;
}

.tl__item--origin::before {
	top: 18px;
}

.ring {
	--w: clamp(190px, 52vw, 290px);
	display: grid;
	justify-items: center;
	gap: 18px;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.ring__scene {
	width: 100%;
	height: calc(var(--w) * 4 / 3 + 40px);
	display: grid;
	place-items: center;
	perspective: 1200px;
	cursor: grab;
}

.ring__scene:active {
	cursor: grabbing;
}

.ring__stage {
	position: relative;
	width: var(--w);
	height: calc(var(--w) * 4 / 3);
	transform: translateZ(calc(var(--w) * -0.8)) rotateY(var(--angle, 0deg));
	transform-style: preserve-3d;
	transition: transform 0.8s var(--ease);
}

.ring__stage.is-live {
	transition: none;
}

.ring__item {
	position: absolute;
	inset: 0;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: var(--card);
	overflow: hidden;
	cursor: inherit;
	transform: rotateY(calc(var(--i) * 72deg)) translateZ(calc(var(--w) * 0.8));
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	box-shadow: var(--shadow);
}

.ring__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) brightness(0.55);
	transition: filter 0.6s;
	pointer-events: none;
}

.ring__item.is-front {
	cursor: zoom-in;
}

.ring__item.is-front img {
	filter: none;
}

.ring__ctrl {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ring__status {
	min-width: 5ch;
	font-family: var(--mono);
	font-size: 0.85rem;
	text-align: center;
}

.ring__hint {
	color: var(--muted);
	font-size: 0.85rem;
	text-align: center;
}

.social {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 18px;
}

.social__card {
	display: grid;
	gap: 10px;
	justify-items: start;
	text-decoration: none;
}

.social__card svg {
	width: 38px;
	height: 38px;
	fill: var(--accent-ink);
}

.social__card span {
	font-family: var(--display);
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.social__card small {
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.8rem;
	overflow-wrap: anywhere;
}

.foot {
	padding: 34px 0 44px;
	border-top: 1px solid var(--line);
	background: var(--glass);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	color: var(--muted);
	font-size: 0.9rem;
}

.foot strong {
	color: var(--ink);
	font-family: var(--display);
	font-size: 1.15rem;
}

.foot__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
}

.foot__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--ink);
}

dialog {
	padding: 0;
	border: 1px solid var(--line);
	color: var(--ink);
}

dialog::backdrop {
	background: rgba(0, 0, 0, 0.6);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.palette {
	width: min(580px, 100% - 24px);
	margin-top: 12vh;
	border-radius: 20px;
	background: var(--bg);
	box-shadow: var(--shadow);
}

.palette[open] {
	animation: drop 0.25s var(--ease);
}

@keyframes drop {
	from {
		opacity: 0;
		transform: translateY(-14px) scale(0.98);
	}
}

.palette__field {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 16px;
	border-bottom: 1px solid var(--line);
}

.palette__field svg {
	width: 20px;
	height: 20px;
	flex: none;
	color: var(--muted);
}

.palette__field input {
	flex: 1;
	min-width: 0;
	height: 52px;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	outline: none;
}

.palette__list {
	max-height: min(52vh, 420px);
	padding: 8px;
	overflow-y: auto;
}

.palette__group {
	padding: 10px 12px 4px;
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.palette__opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 46px;
	padding: 0 12px;
	border-radius: 12px;
	font-weight: 600;
	cursor: pointer;
}

.palette__opt small {
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.72rem;
	font-weight: 400;
}

.palette__opt[aria-selected='true'] {
	background: var(--accent);
	color: var(--on-accent);
}

.palette__opt[aria-selected='true'] small {
	color: inherit;
}

.palette__empty {
	padding: 22px;
	color: var(--muted);
	text-align: center;
}

.lightbox {
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	border: 0;
	background: transparent;
}

.lightbox[open] {
	display: grid;
	place-items: center;
}

.lightbox img {
	max-width: min(92vw, 900px);
	max-height: 84dvh;
	border-radius: 18px;
	box-shadow: var(--shadow);
}

.lightbox .tool {
	position: fixed;
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(10, 12, 16, 0.75);
	color: #fff;
}

.lightbox__close {
	top: 16px;
	right: 16px;
}

.lightbox__prev,
.lightbox__next {
	bottom: 20px;
}

.lightbox__prev {
	right: calc(50% + 6px);
}

.lightbox__next {
	left: calc(50% + 6px);
}

.nf {
	position: relative;
	z-index: 1;
	display: grid;
	align-content: center;
	justify-items: start;
	gap: 20px;
	min-height: 100svh;
	padding-block: 60px;
}

.nf__code {
	color: transparent;
	font-family: var(--display);
	font-size: clamp(6rem, 30vw, 18rem);
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.06em;
	-webkit-text-stroke: 2px var(--accent-ink);
}

.nf h1 {
	font-family: var(--display);
	font-size: clamp(1.8rem, 5vw, 3rem);
	line-height: 1.05;
	letter-spacing: -0.04em;
}

.nf p {
	color: var(--muted);
}

.js [data-reveal] {
	opacity: 0;
	transform: perspective(900px) translateY(36px) rotateX(-14deg);
	transform-origin: 50% 0;
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
	transition-delay: var(--d, 0ms);
}

.js [data-reveal].in {
	opacity: 1;
	transform: none;
}

:root[data-motion='off'] *,
:root[data-motion='off'] *::before,
:root[data-motion='off'] *::after {
	animation-duration: 0.01ms !important;
	animation-delay: 0s !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0.01ms !important;
	transition-delay: 0s !important;
	scroll-behavior: auto !important;
}

@media (min-width: 900px) {
	.split {
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: 60px;
	}

	.split--gallery {
		grid-template-columns: 0.9fr 1.1fr;
	}
}

@media (max-width: 899px) {
	.bar__nav,
	.tool--wide span,
	.tool--wide kbd {
		display: none;
	}

	.tool--wide {
		padding: 0;
	}
}

@media (max-width: 520px) {
	.hero__cta .btn {
		flex: 1 1 100%;
	}

	.stats {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}

	.stat dt {
		font-size: 0.62rem;
	}

	.tl__item {
		padding: 18px;
	}
}