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

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

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

@font-face {
	font-family: "IBM Plex Mono";
	src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "IBM Plex Mono";
	src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

:root {
	--ink: #10181e;
	--ink-deep: #0b1115;
	--paper: #f6f3ec;
	--paper-deep: #efeae1;
	--text: #e7eef2;
	--muted: #c3d0d6;
	--mint: #b6f3cb;
	--mint-deep: #17362c;
	--sky: #9fd4f5;
	--line: rgba(182, 243, 203, 0.2);
	--ink-text: #172229;
	--header: 4.6rem;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--sans: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
	--shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.65;
	background: var(--ink);
	color: var(--text);
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4 {
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.15;
	text-wrap: balance;
}

h1,
h2,
h3,
h4,
p {
	margin-top: 0;
}

p {
	text-wrap: pretty;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 2px solid #e7b008;
	outline-offset: 3px;
}

::selection {
	background: var(--mint);
	color: #102018;
}

.skip {
	position: absolute;
	left: 1rem;
	top: 0;
	transform: translateY(-120%);
	z-index: 80;
	background: var(--mint);
	color: #102018;
	padding: 0.6rem 0.9rem;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
}

.skip:focus {
	transform: translateY(0.8rem);
}

.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;
}

.wrap {
	width: min(1080px, calc(100% - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--header);
	padding: 0.7rem 1.1rem;
	padding-top: calc(0.7rem + env(safe-area-inset-top));
	background: rgba(12, 18, 22, 0.92);
	color: var(--text);
	color-scheme: dark;
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
	border-bottom-color: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(16px);
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	color: white;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: -0.03em;
	flex-shrink: 0;
}

.brand-mark,
.patch {
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #f4f0e6;
}

.brand-mark {
	width: 2.15rem;
	height: 2.15rem;
	box-shadow: 0 0 0 4px rgba(182, 243, 203, 0.16);
}

.brand-mark img {
	width: 78%;
}

.brand-name {
	white-space: nowrap;
}

.nav-toggle {
	display: none;
	width: 2.75rem;
	height: 2.75rem;
	place-items: center;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: transparent;
	color: white;
	cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block;
	width: 1.05rem;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle-bars::before {
	top: -6px;
}

.nav-toggle-bars::after {
	top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
	top: 0;
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
	top: 0;
	transform: rotate(-45deg);
}

#site-nav {
	display: flex;
	align-items: center;
	gap: 0.35rem 0.8rem;
}

.nav-main,
.nav-tools,
.chips,
.social,
.focus {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-main,
.nav-tools {
	display: flex;
	align-items: center;
	gap: 0.15rem;
}

.nav-main a,
.nav-tools a,
.site-footer a {
	text-decoration: none;
}

.nav-main a {
	display: inline-flex;
	align-items: center;
	min-height: 2.4rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.95rem;
}

.nav-main a:hover,
.nav-main a.is-active {
	color: var(--mint);
}

.nav-tools a {
	display: inline-flex;
	align-items: center;
	min-height: 2.15rem;
	padding: 0.15rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--text);
}

.nav-tools a:hover {
	border-color: var(--mint);
	color: var(--mint);
}

.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	color-scheme: dark;
	background:
		radial-gradient(880px 460px at 86% 12%, rgba(159, 212, 245, 0.2), transparent 60%),
		radial-gradient(680px 420px at 0% 100%, rgba(182, 243, 203, 0.13), transparent 55%),
		var(--ink);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	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: 56px 56px;
	mask-image: radial-gradient(ellipse at 70% 40%, #000 15%, transparent 72%);
	pointer-events: none;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.7fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	min-height: calc(100svh - var(--header));
	padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
}

.prompt,
.kicker,
.alias,
.lightbox-count,
.nav-tools a,
.shot span,
figcaption,
label {
	font-family: var(--mono);
}

.prompt {
	margin-bottom: 0.8rem;
	color: var(--muted);
	font-size: 0.82rem;
}

.prompt .cmd {
	color: var(--mint);
}

.hello {
	display: block;
	font-size: clamp(4.6rem, 12vw, 8.4rem);
	line-height: 0.84;
	letter-spacing: -0.07em;
}

.hello::after {
	content: "";
	display: inline-block;
	width: 0.55rem;
	height: 0.62em;
	margin-left: 0.08em;
	background: var(--mint);
	border-radius: 2px;
	vertical-align: baseline;
	animation: blink 1.05s steps(2, end) infinite;
}

.name {
	display: block;
	margin-top: 0.75rem;
	font-size: clamp(1.45rem, 3vw, 2.15rem);
	font-weight: 500;
	letter-spacing: -0.04em;
}

.role,
.status {
	color: var(--muted);
}

.role {
	margin: 0.85rem 0 1.1rem;
	font-size: 1.05rem;
}

.status {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 1.15rem;
	font-size: 0.95rem;
}

.led {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: #3ddc84;
	box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7);
	animation: pulse 2.4s ease-out infinite;
}

.hero-copy p {
	max-width: 42rem;
}

.hero strong {
	color: var(--mint);
	font-weight: 700;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin: 1.5rem 0 1.2rem;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.85rem;
	padding: 0.65rem 1.2rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-decoration: none;
	cursor: pointer;
}

.button-mint {
	background: var(--mint);
	color: #10241a;
}

.button-mint:hover {
	background: #d7ffe6;
}

.button-ghost {
	background: transparent;
	color: var(--text);
	border-color: rgba(231, 238, 242, 0.32);
}

.button-ghost:hover {
	background: rgba(255, 255, 255, 0.06);
}

.button-ink {
	background: var(--mint-deep);
	color: #f3fff7;
}

.button-ink:hover {
	background: #214a3b;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.chips li {
	padding: 0.28rem 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.86rem;
}

.orb {
	position: relative;
	width: min(320px, 100%);
	aspect-ratio: 1;
	margin-inline: auto;
	display: grid;
	place-items: center;
}

.orbit {
	position: absolute;
	inset: 6%;
	border: 1.5px dashed rgba(182, 243, 203, 0.55);
	border-radius: 50%;
	animation: spin 28s linear infinite;
}

.orbit-2 {
	inset: 20%;
	border-style: solid;
	border-color: rgba(159, 212, 245, 0.35);
	animation-duration: 18s;
	animation-direction: reverse;
}

.patch {
	position: relative;
	width: 48%;
	aspect-ratio: 1;
	box-shadow:
		0 0 0 12px rgba(244, 240, 230, 0.06),
		0 18px 40px rgba(0, 0, 0, 0.35);
	animation: float 7s ease-in-out infinite;
}

.patch img {
	width: 76%;
}

.panel {
	padding: clamp(3.4rem, 8vw, 6.2rem) 0;
	scroll-margin-top: calc(var(--header) + 0.6rem);
}

.panel-paper {
	background:
		linear-gradient(180deg, var(--paper), var(--paper-deep));
	color: var(--ink-text);
	color-scheme: light;
}

.panel-ink {
	background: #122028;
	color: var(--text);
	color-scheme: dark;
}

.kicker {
	margin: 0 0 0.7rem;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: lowercase;
	color: #1d6b4a;
}

.panel-ink .kicker {
	color: var(--mint);
}

.kicker span {
	margin-right: 0.45rem;
}

.panel h2 {
	margin-bottom: 0.8rem;
	font-size: clamp(2rem, 4vw, 3.1rem);
}

.about {
	display: grid;
	grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: center;
}

.portrait-frame {
	margin: 0;
}

.portrait {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: center 18%;
	border-radius: 28px;
	box-shadow: 14px 14px 0 var(--mint-deep);
}

.portrait-frame figcaption {
	margin-top: 0.8rem;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: #3d515b;
}

.prose a,
.prose a:visited {
	color: #0c6b45;
}

.panel-ink .prose a,
.panel-ink .prose a:visited {
	color: #c8f8da;
}

.prose a {
	text-underline-offset: 0.16em;
}

.prose ul {
	padding-left: 1.15rem;
}

.prose li {
	margin: 0.35rem 0;
}

.prose li::marker {
	color: #1d8a5b;
}

.prose h3 {
	margin: 2.1rem 0 0.6rem;
	font-size: 1.45rem;
}

.prose h4 {
	margin: 1.4rem 0 0.4rem;
	font-size: 1.05rem;
}

.lead {
	font-size: 1.15rem;
	max-width: 40rem;
}

.focus {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-top: 1.8rem;
	border: 1px solid var(--line);
	border-radius: 22px;
	overflow: hidden;
}

.focus li {
	padding: 1.35rem 1.3rem 1.45rem;
	border-bottom: 1px solid var(--line);
}

.focus li:nth-child(odd) {
	border-right: 1px solid var(--line);
}

.focus li:nth-last-child(-n + 2) {
	border-bottom: 0;
}

.focus-index {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.85rem;
	color: var(--mint);
	font-family: var(--mono);
	font-size: 0.78rem;
}

.focus-index svg {
	width: 1.55rem;
	height: 1.55rem;
}

.focus h3 {
	margin: 0;
	max-width: 18ch;
	font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.shots {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0.8rem;
	margin-top: 1.6rem;
}

.shot {
	position: relative;
	display: block;
	grid-column: span 2;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: 18px;
	background: #d9d3c8;
	cursor: zoom-in;
}

.shot:nth-child(1),
.shot:nth-child(2),
.shot:nth-child(6),
.shot:nth-child(7) {
	grid-column: span 3;
}

.shot img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.shot:hover img,
.shot:focus-visible img {
	transform: scale(1.045);
}

.shot span {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 2rem 0.85rem 0.75rem;
	background: linear-gradient(transparent, rgba(8, 12, 16, 0.78));
	color: white;
	font-size: 0.78rem;
	letter-spacing: 0.01em;
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}

.form-card {
	position: relative;
	padding: clamp(1.1rem, 2vw, 1.5rem);
	border-radius: 24px;
	background: var(--paper);
	color: var(--ink-text);
	color-scheme: light;
	box-shadow: var(--shadow);
}

.banner {
	scroll-margin-top: calc(var(--header) + 0.8rem);
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border-radius: 14px;
	font-weight: 500;
}

.banner:not(:target) {
	display: none;
}

.banner-ok {
	background: #e5f8ec;
	color: #0f5132;
}

.banner-bad {
	background: #fde8e6;
	color: #7a1f16;
}

.note {
	margin-bottom: 1rem;
	color: #3d515b;
	font-size: 0.95rem;
}

form {
	display: grid;
	gap: 0.9rem;
}

.field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.9rem;
}

label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.74rem;
	letter-spacing: 0.04em;
}

input,
textarea {
	width: 100%;
	padding: 0.8rem 0.9rem;
	border: 1px solid #d5d0c6;
	border-radius: 12px;
	background: white;
	color: var(--ink-text);
	font: inherit;
}

textarea {
	resize: vertical;
	min-height: 9rem;
}

input:focus,
textarea:focus {
	border-color: #1d8a5b;
	outline: 3px solid rgba(29, 138, 91, 0.22);
}

input:user-invalid,
textarea:user-invalid {
	border-color: #b42318;
}

.toc {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 1.2rem 0 0.4rem;
}

.toc a {
	padding: 0.35rem 0.7rem;
	border: 1px solid #d5d0c6;
	border-radius: 999px;
	font-family: var(--mono);
	font-size: 0.75rem;
	text-decoration: none;
	color: var(--mint-deep);
}

.toc a:hover {
	border-color: var(--mint-deep);
}

.privacy {
	max-width: 46rem;
}

.responsible {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.responsible img {
	width: 2.4rem;
	height: 2.4rem;
	padding: 0.25rem;
	border-radius: 50%;
	background: #f4f0e6;
	box-shadow: 4px 4px 0 var(--mint-deep);
}

.site-footer {
	padding: 1.6rem 0 calc(1.8rem + env(safe-area-inset-bottom));
	background: var(--ink-deep);
	color: var(--muted);
	color-scheme: dark;
}

.footer-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.8rem 1.5rem;
	align-items: center;
}

.social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
}

.social a:hover {
	color: var(--mint);
}

.lightbox {
	width: min(960px, calc(100vw - 1.5rem));
	max-height: calc(100vh - 1.5rem);
	padding: 0.75rem;
	border: 0;
	border-radius: 20px;
	background: #10181e;
	color: white;
	color-scheme: dark;
	box-shadow: var(--shadow);
}

.lightbox::backdrop {
	background: rgba(6, 10, 12, 0.84);
}

.lightbox img {
	display: block;
	width: 100%;
	max-height: calc(100vh - 9rem);
	object-fit: contain;
	border-radius: 14px;
	background: #0b1115;
}

.lightbox figcaption,
.lightbox-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1rem;
}

.lightbox figcaption {
	justify-content: space-between;
	margin-top: 0.7rem;
	font-size: 0.85rem;
}

.lightbox-controls {
	margin-top: 0.8rem;
}

.lightbox-controls button {
	min-height: 2.5rem;
	padding: 0.4rem 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: transparent;
	color: white;
	font: inherit;
	cursor: pointer;
}

.lightbox-controls button:hover {
	border-color: var(--mint);
	color: var(--mint);
}

section[id] {
	scroll-margin-top: calc(var(--header) + 0.4rem);
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes float {
	50% {
		transform: translateY(-10px);
	}
}

@keyframes pulse {
	70% {
		box-shadow: 0 0 0 8px rgba(61, 220, 132, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(61, 220, 132, 0);
	}
}

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

	.js .nav-toggle {
		display: grid;
	}

	.site-header {
		flex-wrap: wrap;
	}

	#site-nav {
		display: flex;
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0.2rem;
		padding-bottom: 0.7rem;
	}

	.js #site-nav {
		display: none;
	}

	.js #site-nav.is-open {
		display: flex;
		max-height: calc(100svh - var(--header));
		overflow: auto;
	}

	.nav-main,
	.nav-tools {
		flex-direction: column;
		align-items: stretch;
	}

	.nav-main a,
	.nav-tools a {
		justify-content: flex-start;
		padding: 0.7rem 0.3rem;
	}

	.nav-tools {
		flex-direction: row;
		padding-top: 0.3rem;
	}
}

@media (max-width: 800px) {
	.hero-grid,
	.about,
	.contact-grid,
	.focus {
		grid-template-columns: 1fr;
	}

	.hero-grid {
		position: relative;
		min-height: 0;
	}

	.orb {
		position: absolute;
		top: 4.2rem;
		right: 0;
		width: 7.4rem;
		margin: 0;
	}

	.hello,
	.name {
		max-width: calc(100% - 8.2rem);
	}

	.portrait-frame {
		max-width: 280px;
	}

	.focus li:nth-child(odd) {
		border-right: 0;
	}

	.focus li:nth-last-child(-n + 2) {
		border-bottom: 1px solid var(--line);
	}

	.focus li:last-child {
		border-bottom: 0;
	}

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

	.shot,
	.shot:nth-child(n) {
		grid-column: auto;
	}

	.field-row {
		grid-template-columns: 1fr;
	}
}

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

	.hello {
		font-size: clamp(3.6rem, 20vw, 4.8rem);
	}
}

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

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

@media print {
	.site-header,
	.orb,
	.actions,
	.lightbox,
	.nav-toggle {
		display: none !important;
	}

	body,
	.hero,
	.panel-ink,
	.site-footer {
		background: white !important;
		color: black !important;
	}

	.shot img {
		position: static;
		height: auto;
	}
}
