/* ============================================================
   Prototypes: A «Реестр» / B «Атлас»
   Mineral paper, graphite, lavender. Three type roles.
   ============================================================ */

@font-face {
	font-family: 'STIX Two Text';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/stix-two-text-cyrillic-400.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'STIX Two Text';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/stix-two-text-latin-400.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
		U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'STIX Two Text';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/stix-two-text-cyrillic-600.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'STIX Two Text';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/stix-two-text-latin-600.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
		U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/montserrat-cyrillic-400.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/montserrat-latin-400.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
		U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/montserrat-cyrillic-600.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('assets/fonts/montserrat-latin-600.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
		U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Source Code Pro';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/source-code-pro-cyrillic-400.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Source Code Pro';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/source-code-pro-latin-400.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
		U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Source Code Pro';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/source-code-pro-cyrillic-500.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Source Code Pro';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/source-code-pro-latin-500.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
		U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--paper: #e6e2d8;
	--paper-2: #ebe6dc;
	--paper-3: #ded9cd;
	--ink: #141411;
	--ink-soft: #2c2b25;
	--muted: #4a4840;
	--hair: rgba(20, 20, 16, 0.22);
	--hair-soft: rgba(20, 20, 16, 0.12);
	--graphite: #171715;
	--graphite-ink: #ece8df;
	--accent: #7c62da;
	--accent-soft: rgba(124, 98, 218, 0.14);
	--link: #556c96;
	--selection: rgba(85, 108, 150, 0.28);
	--grain: url('assets/img/paper-mineral-grain.webp');
	--display: 'STIX Two Text', 'Noto Serif', Georgia, serif;
	--body: 'Montserrat', 'Noto Sans', system-ui, sans-serif;
	--mono: 'Source Code Pro', 'Noto Sans Mono', 'Liberation Mono', ui-monospace, monospace;
	--ease: cubic-bezier(0.23, 1, 0.32, 1);
	--pad: 48px;
	color-scheme: light;
}

html[data-theme='dark'] {
	--paper: #131518;
	--paper-2: #1b1e23;
	--paper-3: #0d0f12;
	--ink: #eae6dd;
	--ink-soft: #cbc6bc;
	--muted: #9398a3;
	--hair: rgba(234, 230, 221, 0.2);
	--hair-soft: rgba(234, 230, 221, 0.11);
	--graphite: #e6e2d8;
	--graphite-ink: #141411;
	--accent: #cfc2ff;
	--accent-soft: rgba(147, 122, 232, 0.16);
	--link: #9db3d8;
	--selection: rgba(122, 146, 191, 0.34);
	--grain: url('assets/img/charcoal-grain.webp');
	color-scheme: dark;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding-top: 34px;
	background-color: var(--paper);
	background-image: var(--grain);
	background-repeat: repeat;
	background-size: 512px 512px;
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

::selection {
	background: var(--selection);
	color: var(--ink);
}

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

a.link {
	color: var(--link);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

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

button {
	font: inherit;
	color: inherit;
}

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

figure {
	margin: 0;
}

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

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

:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 3px;
}

.skip {
	position: fixed;
	top: -100px;
	left: 12px;
	z-index: 999;
	padding: 10px 14px;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--mono);
	font-size: 11px;
}
.skip:focus {
	top: 42px;
}

.mono {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.display {
	font-family: var(--display);
	font-weight: 600;
	line-height: 0.92;
	letter-spacing: -0.03em;
}

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

.hair {
	border-top: 1px solid var(--hair);
}

.wrap {
	width: min(100%, 1440px);
	margin: 0 auto;
	padding: 0 var(--pad);
}

.wrap-b {
	width: min(100%, 1360px);
	margin: 0 auto;
	padding: 0 var(--pad);
}

/* ---------- prototype-only bar ---------- */
.proto-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 200;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 16px;
	background: #141411;
	color: #ece8df;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.proto-bar a {
	text-decoration: underline;
	text-underline-offset: 2px;
}
.proto-bar .proto-switch {
	display: flex;
	gap: 12px;
}
.proto-bar .is-current {
	color: var(--accent);
}

/* ---------- header A ---------- */
.site-head {
	position: sticky;
	top: 34px;
	z-index: 100;
	background: var(--paper);
	border-bottom: 1px solid var(--hair);
}
.site-head .head-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}
.brand {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.brand b {
	font-family: var(--display);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
	text-transform: none;
}
.nav {
	display: flex;
	align-items: center;
	gap: 22px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.nav a {
	position: relative;
	padding-bottom: 4px;
}
.nav a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 180ms var(--ease);
}
.nav a:hover::after {
	transform: scaleX(1);
}
.head-tools {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.lang {
	display: flex;
	align-items: center;
	gap: 6px;
}
.lang .is-active {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.lang .is-disabled {
	color: var(--muted);
	opacity: 0.6;
}
.theme-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	border: 1px solid var(--hair);
	background: transparent;
	cursor: pointer;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.theme-btn:hover {
	border-color: var(--ink);
}
.clock {
	color: var(--muted);
	white-space: nowrap;
}

/* ---------- B rail ---------- */
.rail {
	display: none;
}
body[data-proto='b'] .site-head {
	display: none;
}
body[data-proto='b'] .rail {
	display: flex;
	position: fixed;
	top: 34px;
	left: 0;
	bottom: 0;
	z-index: 120;
	width: 72px;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0 20px;
	background: var(--paper);
	border-right: 1px solid var(--hair);
}
.rail .rail-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}
.rail .rail-brand b {
	font-family: var(--display);
	font-size: 20px;
	letter-spacing: -0.02em;
	text-transform: none;
}
.rail .rail-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.rail .rail-nav a {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	color: var(--muted);
}
.rail .rail-nav a:hover {
	color: var(--ink);
}
.rail .rail-tools {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.rail .theme-btn {
	width: 34px;
	height: 34px;
	justify-content: center;
	padding: 0;
}
body[data-proto='b'] main,
body[data-proto='b'] .site-foot {
	margin-left: 72px;
}
.mm-strip {
	display: none;
}
body[data-proto='b'] .mm-strip {
	display: block;
	position: fixed;
	top: 34px;
	right: 0;
	bottom: 0;
	width: 44px;
	z-index: 10;
	pointer-events: none;
	opacity: 0.45;
	background-image: linear-gradient(to right, var(--hair-soft) 1px, transparent 1px),
		linear-gradient(to bottom, var(--hair-soft) 1px, transparent 1px);
	background-size: 11px 11px;
	border-left: 1px solid var(--hair-soft);
}
.mm-strip .progress {
	position: absolute;
	top: 0;
	left: 21px;
	width: 1px;
	height: 100%;
	background: var(--accent);
	transform: scaleY(0);
	transform-origin: top;
}

/* ---------- hero ---------- */
.hero {
	padding: 84px 0 56px;
}
.hero-a {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr);
	gap: 64px;
	align-items: start;
}
.hero-b {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
	gap: 56px;
	align-items: start;
	position: relative;
	padding: 84px 0 56px;
}
.kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--muted);
	margin-bottom: 28px;
}
.kicker .rule {
	display: inline-block;
	width: 48px;
	height: 1px;
	background: var(--accent);
}
.hero h1 {
	max-width: 12ch;
}
.hero .role {
	margin-top: 24px;
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.hero .lede {
	margin-top: 20px;
	max-width: 58ch;
	font-size: clamp(18px, 1.4vw, 22px);
	line-height: 1.45;
	color: var(--ink-soft);
}
.hero .statusline {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin-top: 28px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.hero .statusline .open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ink);
}
.hero .statusline .open i {
	width: 7px;
	height: 7px;
	background: var(--accent);
	display: inline-block;
}
.cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 42px;
	padding: 10px 18px;
	border: 1px solid var(--ink);
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: background 160ms var(--ease), color 160ms var(--ease);
}
.btn.primary {
	background: var(--ink);
	color: var(--paper);
}
.btn.primary:hover {
	background: transparent;
	color: var(--ink);
}
.btn.ghost:hover {
	background: var(--ink);
	color: var(--paper);
}
.btn .arr {
	font-size: 14px;
	line-height: 1;
}
.now {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin-top: 28px;
	padding-top: 14px;
	border-top: 1px solid var(--hair-soft);
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--muted);
}
.now .k {
	color: var(--ink);
}
.hero-side {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.portrait-a {
	width: 100%;
	max-width: 220px;
	margin-left: auto;
	border: 1px solid var(--hair);
	background: var(--paper-2);
}
.portrait-a img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	filter: grayscale(1) contrast(1.04);
}
.portrait-a figcaption {
	padding: 10px 12px;
	border-top: 1px solid var(--hair);
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.facts {
	border-top: 1px solid var(--hair);
}
.facts .fact {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px solid var(--hair-soft);
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.facts .fact dt {
	color: var(--muted);
}
.facts .fact dd {
	text-align: right;
}

/* B hero */
.hero-b .display {
	font-size: clamp(64px, 9vw, 152px);
	max-width: 10ch;
	position: relative;
}
.hero-b .role {
	margin-top: 30px;
}
.hero-b .hero-side-b {
	position: relative;
	align-self: end;
	padding-bottom: 8px;
}
.portrait-b {
	position: relative;
	z-index: 2;
	width: min(100%, 430px);
	margin-left: auto;
	padding: 12px;
	background: var(--graphite);
	color: var(--graphite-ink);
	box-shadow: 18px 18px 0 var(--accent-soft);
}
.portrait-b img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
}
.portrait-b figcaption {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-top: 10px;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.hero-b .facts {
	margin-top: 32px;
}
.hero-trace {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	opacity: 0.5;
}
.hero-trace line,
.hero-trace path,
.hero-trace circle {
	stroke: var(--hair);
	fill: none;
	stroke-width: 0.75;
}
.hero-trace .accent {
	stroke: var(--accent);
	opacity: 0.7;
}
.cut-wrap {
	position: relative;
	display: inline-block;
	white-space: nowrap;
}
.cut-base {
	position: relative;
	z-index: 0;
}
.cut-slice {
	position: absolute;
	top: 0;
	bottom: 0;
	left: -0.08em;
	right: -0.08em;
	z-index: 1;
	display: block;
	overflow: hidden;
	background: #171715;
	color: #ece8df;
	clip-path: inset(57% 0 35% 0);
	pointer-events: none;
}
.cut-slice > span {
	display: block;
	margin-left: 0.08em;
	white-space: nowrap;
}
html[data-theme='dark'] .cut-slice {
	color: #ece8df;
}

/* ---------- what I do ---------- */
.what {
	border-top: 1px solid var(--hair);
	border-bottom: 1px solid var(--hair);
	padding: 26px 0;
}
.what-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
}
.what-item {
	padding: 4px 28px 4px 0;
	border-right: 1px solid var(--hair-soft);
}
.what-item:last-child {
	border-right: 0;
	padding-right: 0;
}
.what-item + .what-item {
	padding-left: 28px;
}
.what-item .n {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	color: var(--accent);
}
.what-item h3 {
	margin-top: 8px;
	font-family: var(--body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}
.what-item p {
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
}

/* ---------- sections ---------- */
.section {
	padding: 88px 0;
	border-top: 1px solid var(--hair);
	scroll-margin-top: 120px;
}
.section:first-of-type {
	border-top: 0;
}
.sec-head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: end;
	gap: 18px;
	margin-bottom: 44px;
}
.sec-index {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	color: var(--muted);
	white-space: nowrap;
	padding-bottom: 8px;
}
.sec-head h2 {
	font-size: clamp(34px, 4vw, 60px);
}
.sec-count {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	color: var(--muted);
	text-align: right;
	padding-bottom: 8px;
	white-space: nowrap;
}
.sec-head .rule {
	grid-column: 1 / -1;
	height: 1px;
	background: var(--hair);
	margin-top: 4px;
}
body[data-proto='b'] .sec-head {
	grid-template-columns: 90px 1fr auto;
	align-items: start;
	margin-bottom: 56px;
}
body[data-proto='b'] .sec-head h2 {
	font-size: clamp(44px, 5.4vw, 82px);
}
body[data-proto='b'] .sec-index {
	font-size: 12px;
	padding-top: 14px;
}

/* ---------- featured projects ---------- */
.feature {
	border-top: 1px solid var(--hair);
}
.feature:last-of-type {
	border-bottom: 1px solid var(--hair);
}
.feature > summary {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 40px;
	align-items: center;
	padding: 34px 0;
	cursor: pointer;
	list-style: none;
}
.feature > summary::-webkit-details-marker {
	display: none;
}
.feature > summary::marker {
	content: '';
}
.feature:nth-of-type(even) > summary .feature-plate {
	order: 2;
}
.feature:nth-of-type(even) > summary .feature-copy {
	order: 1;
}
.feature-copy {
	min-width: 0;
}
.feature-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin-bottom: 12px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.feature h3 {
	font-size: clamp(30px, 3vw, 48px);
}
.feature .hook {
	margin-top: 12px;
	max-width: 56ch;
	font-size: clamp(17px, 1.25vw, 20px);
	line-height: 1.45;
	color: var(--ink-soft);
}
.feature .stack {
	margin-top: 16px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.04em;
	color: var(--muted);
	line-height: 1.7;
}
.feature .more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.feature .more .plus {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border: 1px solid var(--hair);
	font-size: 13px;
	line-height: 1;
	transition: transform 180ms var(--ease);
}
.feature[open] .more .plus {
	transform: rotate(45deg);
}
.feature-body {
	padding: 0 0 40px;
	animation: bodyIn 220ms var(--ease);
}
.body-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	padding-top: 10px;
	border-top: 1px solid var(--hair-soft);
}
.body-grid h4 {
	margin-bottom: 10px;
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.body-grid p,
.body-grid li {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-soft);
}
.body-grid ul {
	display: grid;
	gap: 8px;
}
.body-grid li {
	position: relative;
	padding-left: 14px;
}
.body-grid li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 4px;
	height: 4px;
	background: var(--accent);
}
.links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--hair-soft);
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.links .private {
	color: var(--muted);
}
.links a {
	color: var(--link);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.links a:hover {
	color: var(--ink);
}

/* featured plates */
.plate {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border: 1px solid var(--hair);
	background: var(--graphite);
	color: var(--graphite-ink);
	isolation: isolate;
}
.plate::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: linear-gradient(to right, rgba(236, 232, 223, 0.08) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(236, 232, 223, 0.08) 1px, transparent 1px);
	background-size: 24px 24px;
	opacity: 0.7;
}
.plate .plate-index {
	position: absolute;
	top: 14px;
	right: 16px;
	z-index: 2;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.08em;
}
.plate .plate-label {
	position: absolute;
	left: 16px;
	bottom: 14px;
	z-index: 2;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.8;
}
.plate .glyph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--display);
	font-size: clamp(72px, 9vw, 150px);
	font-weight: 600;
	line-height: 1;
	opacity: 0.13;
	z-index: 1;
}
.plate-kwhale::after {
	content: '';
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 26%;
	height: 34%;
	z-index: 1;
	background-image: repeating-linear-gradient(
		90deg,
		rgba(236, 232, 223, 0.75) 0 2px,
		transparent 2px 9px
	);
	mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.plate-server {
	background: var(--paper-2);
	color: var(--ink);
}
.plate-server::before {
	background-image: linear-gradient(to right, var(--hair-soft) 1px, transparent 1px),
		linear-gradient(to bottom, var(--hair-soft) 1px, transparent 1px);
}
.plate-server::after {
	content: '';
	position: absolute;
	inset: 18% 12%;
	z-index: 1;
	background-image: radial-gradient(circle at 18% 30%, var(--accent) 0 3px, transparent 4px),
		radial-gradient(circle at 48% 18%, var(--ink) 0 3px, transparent 4px),
		radial-gradient(circle at 76% 34%, var(--ink) 0 3px, transparent 4px),
		radial-gradient(circle at 28% 68%, var(--ink) 0 3px, transparent 4px),
		radial-gradient(circle at 64% 78%, var(--accent) 0 3px, transparent 4px),
		radial-gradient(circle at 86% 62%, var(--ink) 0 3px, transparent 4px);
}
.plate-server .trace {
	position: absolute;
	inset: 18% 12%;
	z-index: 0;
	width: 76%;
	height: 64%;
}
.plate-server .trace line {
	stroke: var(--hair);
	stroke-width: 0.8;
	fill: none;
}
.plate-reality {
	background: var(--graphite);
}
.plate-reality .glyph {
	font-size: clamp(100px, 13vw, 210px);
	opacity: 0.16;
}

/* B featured grid */
body[data-proto='b'] .feature-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 24px;
}
body[data-proto='b'] .feature-grid .feature {
	border: 0;
	background: transparent;
	min-width: 0;
}
body[data-proto='b'] .feature-grid .feature:nth-child(1) {
	grid-column: span 7;
}
body[data-proto='b'] .feature-grid .feature:nth-child(2) {
	grid-column: span 5;
}
body[data-proto='b'] .feature-grid .feature:nth-child(3) {
	grid-column: span 12;
}
body[data-proto='b'] .feature-grid .feature > summary {
	display: block;
	padding: 0;
}
body[data-proto='b'] .feature-grid .feature .feature-plate {
	aspect-ratio: 16 / 11;
}
body[data-proto='b'] .feature-grid .feature .feature-copy {
	padding-top: 18px;
}
body[data-proto='b'] .feature-grid .feature h3 {
	font-size: clamp(28px, 2.6vw, 42px);
}
body[data-proto='b'] .feature-grid .feature .hook {
	font-size: 16px;
}
body[data-proto='b'] .feature-grid .feature-body {
	padding-top: 4px;
}
body[data-proto='b'] .feature-grid .feature:nth-child(3) > summary {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 32px;
	align-items: center;
	padding: 32px;
	background: var(--graphite);
	color: var(--graphite-ink);
}
body[data-proto='b'] .feature-grid .feature:nth-child(3) .feature-plate {
	order: 2;
	aspect-ratio: 16 / 10;
	border-color: rgba(236, 232, 223, 0.22);
}
body[data-proto='b'] .feature-grid .feature:nth-child(3) .feature-copy {
	order: 1;
	padding-top: 0;
}
body[data-proto='b'] .feature-grid .feature:nth-child(3) .feature-meta,
body[data-proto='b'] .feature-grid .feature:nth-child(3) .stack,
body[data-proto='b'] .feature-grid .feature:nth-child(3) .hook {
	color: var(--graphite-ink);
	opacity: 0.8;
}
body[data-proto='b'] .feature-grid .feature:nth-child(3) .more {
	color: var(--graphite-ink);
}
body[data-proto='b'] .feature-grid .feature:nth-child(3) .more .plus {
	border-color: rgba(236, 232, 223, 0.35);
}
body[data-proto='b'] .feature-grid .feature:nth-child(3) .feature-body {
	padding: 28px 32px 32px;
	background: var(--graphite);
	color: var(--graphite-ink);
}
body[data-proto='b'] .feature-grid .feature:nth-child(3) .body-grid {
	border-top-color: rgba(236, 232, 223, 0.2);
}
body[data-proto='b'] .feature-grid .feature:nth-child(3) .body-grid h4,
body[data-proto='b'] .feature-grid .feature:nth-child(3) .body-grid p,
body[data-proto='b'] .feature-grid .feature:nth-child(3) .body-grid li {
	color: var(--graphite-ink);
	opacity: 0.82;
}
body[data-proto='b'] .feature-grid .feature:nth-child(3) .links {
	border-top-color: rgba(236, 232, 223, 0.2);
}
body[data-proto='b'] .feature-grid .feature:nth-child(3) .links a {
	color: var(--accent);
}

/* ---------- ledger ---------- */
.ledger {
	border-top: 1px solid var(--hair);
}
.ledger-head {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 140px 230px 28px;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--hair);
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.row {
	border-bottom: 1px solid var(--hair);
}
.row > summary {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 140px 230px 28px;
	gap: 16px;
	align-items: center;
	padding: 18px 0;
	cursor: pointer;
	list-style: none;
	transition: background 160ms var(--ease);
}
.row > summary::-webkit-details-marker {
	display: none;
}
.row > summary::marker {
	content: '';
}
.row > summary:hover {
	background: rgba(20, 20, 16, 0.035);
}
html[data-theme='dark'] .row > summary:hover {
	background: rgba(234, 230, 221, 0.04);
}
.row-index {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--muted);
}
.row-title {
	min-width: 0;
}
.row-title strong {
	display: block;
	font-family: var(--display);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.01em;
}
.row-title em {
	display: block;
	margin-top: 4px;
	font-style: normal;
	font-size: 13px;
	line-height: 1.45;
	color: var(--muted);
}
.row-status {
	justify-self: start;
}
.row-stack {
	font-family: var(--mono);
	font-size: 9px;
	line-height: 1.6;
	letter-spacing: 0.03em;
	color: var(--muted);
}
.row-more {
	justify-self: end;
	font-family: var(--mono);
	font-size: 16px;
	line-height: 1;
	color: var(--muted);
	transition: transform 180ms var(--ease);
}
.row[open] .row-more {
	transform: rotate(45deg);
}
.row-body {
	padding: 2px 0 26px 68px;
	animation: bodyIn 220ms var(--ease);
}
.row-body .body-grid {
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
}
.row-body .links {
	margin-top: 18px;
}
.row-body .thumb {
	display: none;
}

body[data-proto='b'] .ledger-head {
	display: none;
}
body[data-proto='b'] .row > summary {
	grid-template-columns: 72px minmax(0, 1fr) 130px 28px;
	padding: 22px 0;
}
body[data-proto='b'] .row-index {
	font-size: 13px;
}
body[data-proto='b'] .row-title strong {
	font-size: clamp(24px, 2.2vw, 34px);
}
body[data-proto='b'] .row-title em {
	max-width: 70ch;
	font-size: 14px;
}
body[data-proto='b'] .row-stack {
	display: none;
}
body[data-proto='b'] .row-body {
	padding-left: 88px;
}

/* ---------- experience ---------- */
.exp {
	border-top: 1px solid var(--hair);
}
.exp-head {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) 230px 110px minmax(0, 1.2fr);
	gap: 18px;
	padding: 10px 0;
	border-bottom: 1px solid var(--hair);
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.exp-row {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) 230px 110px minmax(0, 1.2fr);
	gap: 18px;
	align-items: baseline;
	padding: 18px 0;
	border-bottom: 1px solid var(--hair-soft);
}
.exp-date {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.04em;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.exp-org {
	font-family: var(--display);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.15;
}
.exp-role {
	font-size: 14px;
	line-height: 1.4;
}
.exp-tag {
	justify-self: start;
	padding: 3px 7px;
	border: 1px solid var(--hair);
	font-family: var(--mono);
	font-size: 8px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
}
.exp-note {
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
}

/* B timeline */
body[data-proto='b'] .exp {
	border-top: 0;
}
body[data-proto='b'] .exp-head {
	display: none;
}
body[data-proto='b'] .exp-row {
	grid-template-columns: 150px 28px minmax(0, 1fr);
	gap: 0 16px;
	padding: 0;
	border-bottom: 0;
	position: relative;
}
body[data-proto='b'] .exp-row::before {
	content: '';
	position: absolute;
	left: 164px;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--hair);
}
body[data-proto='b'] .exp-row:first-child::before {
	top: 12px;
}
body[data-proto='b'] .exp-row:last-child::before {
	bottom: calc(100% - 12px);
}
body[data-proto='b'] .exp-date {
	padding-top: 22px;
	text-align: right;
}
body[data-proto='b'] .exp-row::after {
	content: '';
	position: absolute;
	left: 161px;
	top: 26px;
	width: 7px;
	height: 7px;
	background: var(--paper);
	border: 1px solid var(--ink);
	z-index: 1;
}
body[data-proto='b'] .exp-row:first-child::after {
	background: var(--accent);
	border-color: var(--accent);
}
body[data-proto='b'] .exp-main {
	padding: 18px 0 24px 16px;
}
body[data-proto='b'] .exp-org {
	font-size: 24px;
}
body[data-proto='b'] .exp-role {
	margin-top: 2px;
	font-size: 14px;
	color: var(--ink-soft);
}
body[data-proto='b'] .exp-tag {
	display: inline-block;
	margin-top: 8px;
}
body[data-proto='b'] .exp-note {
	margin-top: 8px;
	max-width: 62ch;
}

/* ---------- study ---------- */
.study-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 56px;
}
.study-block h3 {
	margin-bottom: 18px;
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}
.study-row {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr);
	gap: 16px;
	padding: 13px 0;
	border-top: 1px solid var(--hair-soft);
}
.study-row:last-child {
	border-bottom: 1px solid var(--hair-soft);
}
.study-date {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.03em;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.study-main strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}
.study-main span {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--muted);
}
.edu-projects {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin-top: 56px;
	border-top: 1px solid var(--hair);
	border-bottom: 1px solid var(--hair);
}
.edu-card {
	padding: 22px 24px 24px 0;
	border-right: 1px solid var(--hair-soft);
}
.edu-card + .edu-card {
	padding-left: 24px;
}
.edu-card:last-child {
	border-right: 0;
	padding-right: 0;
}
.edu-card .n {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	color: var(--accent);
}
.edu-card h4 {
	margin-top: 10px;
	font-family: var(--display);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.01em;
}
.edu-card .meta {
	margin-top: 6px;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.edu-card p {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
}
.edu-card .pdf {
	display: inline-block;
	margin-top: 14px;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
body[data-proto='b'] .study-grid {
	gap: 72px;
}
body[data-proto='b'] .study-block h3 {
	font-size: 11px;
}
body[data-proto='b'] .edu-projects {
	margin-top: 72px;
}
body[data-proto='b'] .edu-card h4 {
	font-size: 28px;
}

/* ---------- contact ---------- */
.contact {
	padding: 92px 0 72px;
	border-top: 1px solid var(--hair);
	scroll-margin-top: 120px;
}
.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr);
	gap: 56px;
	align-items: start;
}
.contact-label {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 20px;
}
.contact-email {
	display: inline-block;
	font-family: var(--display);
	font-size: clamp(32px, 4.4vw, 64px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 8px;
	word-break: break-word;
}
.contact-email:hover {
	color: var(--link);
}
.contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	margin-top: 28px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.contact-links a {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.contact-links a:hover {
	color: var(--link);
}
.machine {
	display: grid;
	gap: 8px;
	padding-top: 18px;
	border-top: 1px solid var(--hair);
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.04em;
}
.machine .k {
	font-size: 9px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}
.machine a {
	color: var(--link);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.machine .pending {
	color: var(--muted);
}
.contact-side {
	padding-top: 4px;
}
.contact-side .note {
	font-size: 14px;
	line-height: 1.55;
	color: var(--muted);
}
.contact-side .facts {
	margin-top: 22px;
}

body[data-proto='b'] .contact {
	margin: 0;
	padding: 72px 0 64px;
	background: var(--graphite);
	color: var(--graphite-ink);
	border-top: 0;
}
body[data-proto='b'] .contact .contact-label,
body[data-proto='b'] .contact .contact-side .note,
body[data-proto='b'] .contact .contact-side .facts .fact dt,
body[data-proto='b'] .contact .machine .k,
body[data-proto='b'] .contact .machine .pending {
	color: var(--graphite-ink);
	opacity: 0.6;
}
body[data-proto='b'] .contact .contact-email,
body[data-proto='b'] .contact .contact-links a,
body[data-proto='b'] .contact .machine a {
	color: var(--graphite-ink);
}
body[data-proto='b'] .contact .contact-email:hover,
body[data-proto='b'] .contact .contact-links a:hover,
body[data-proto='b'] .contact .machine a:hover {
	color: var(--accent);
}
body[data-proto='b'] .contact .machine,
body[data-proto='b'] .contact .contact-side .facts,
body[data-proto='b'] .contact .contact-side .fact {
	border-color: rgba(236, 232, 223, 0.2);
}
body[data-proto='b'] .contact .contact-side .fact dd {
	color: var(--graphite-ink);
}

/* ---------- footer ---------- */
.site-foot {
	padding: 24px 0 34px;
	border-top: 1px solid var(--hair);
}
.foot-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.foot-inner a {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.foot-inner .foot-links {
	display: flex;
	gap: 16px;
}

/* ---------- animation ---------- */
@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes bodyIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
html.js .hero .kicker,
html.js .hero h1,
html.js .hero .role,
html.js .hero .lede,
html.js .hero .statusline,
html.js .hero .cta,
html.js .hero-side {
	animation: rise 700ms var(--ease) both;
}
html.js .hero h1 {
	animation-delay: 60ms;
}
html.js .hero .role {
	animation-delay: 140ms;
}
html.js .hero .lede {
	animation-delay: 200ms;
}
html.js .hero .statusline,
html.js .hero .cta {
	animation-delay: 260ms;
}
html.js .hero-side {
	animation-delay: 320ms;
}
html.js .reveal {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
html.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	html.js .hero .kicker,
	html.js .hero h1,
	html.js .hero .role,
	html.js .hero .lede,
	html.js .hero .statusline,
	html.js .hero .cta,
	html.js .hero-side,
	html.js .reveal {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.feature-body,
	.row-body {
		animation: none;
	}
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
	:root {
		--pad: 32px;
	}
	.hero-a,
	.hero-b {
		gap: 40px;
	}
	body[data-proto='b'] .mm-strip {
		display: none;
	}
	body[data-proto='b'] .feature-grid .feature:nth-child(1),
	body[data-proto='b'] .feature-grid .feature:nth-child(2) {
		grid-column: span 6;
	}
	.ledger-head,
	.row > summary {
		grid-template-columns: 44px minmax(0, 1fr) 120px 170px 24px;
	}
	.exp-head,
	.exp-row {
		grid-template-columns: 130px minmax(0, 1fr) 190px 96px minmax(0, 1.1fr);
	}
}

@media (max-width: 1024px) {
	.hero-a,
	.hero-b {
		grid-template-columns: minmax(0, 1fr);
	}
	.hero-side {
		display: grid;
		grid-template-columns: 220px minmax(0, 1fr);
		align-items: start;
		gap: 24px;
	}
	.portrait-a {
		margin-left: 0;
		max-width: 220px;
	}
	body[data-proto='b'] .rail {
		display: flex;
		position: sticky;
		top: 34px;
		left: auto;
		bottom: auto;
		width: auto;
		height: auto;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 10px 20px;
		border-right: 0;
		border-bottom: 1px solid var(--hair);
	}
	body[data-proto='b'] .rail .rail-brand {
		writing-mode: horizontal-tb;
		transform: none;
		flex-direction: row;
	}
	body[data-proto='b'] .rail .rail-nav {
		flex-direction: row;
		gap: 14px;
	}
	body[data-proto='b'] .rail .rail-nav a {
		writing-mode: horizontal-tb;
		transform: none;
	}
	body[data-proto='b'] .rail .rail-tools {
		flex-direction: row;
	}
	body[data-proto='b'] main,
	body[data-proto='b'] .site-foot {
		margin-left: 0;
	}
	.portrait-b {
		width: min(100%, 340px);
		margin-left: 0;
	}
	.feature > summary {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
		gap: 24px;
	}
	.body-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
	.body-grid > div:first-child {
		grid-column: span 2;
	}
	.study-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}
	.contact-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.contact-side {
		padding-top: 0;
	}
}

@media (max-width: 780px) {
	:root {
		--pad: 20px;
	}
	.site-head .head-inner {
		flex-wrap: wrap;
		gap: 10px 18px;
		padding: 12px 0;
		min-height: 0;
	}
	.nav {
		order: 3;
		width: 100%;
		gap: 14px;
		overflow-x: auto;
		padding-bottom: 2px;
	}
	.nav a {
		white-space: nowrap;
	}
	.head-tools .clock {
		display: none;
	}
	.hero {
		padding: 56px 0 48px;
	}
	.hero-b {
		padding: 64px 0 48px;
	}
	.hero-b .display {
		font-size: clamp(52px, 14vw, 92px);
	}
	.hero .statusline {
		flex-direction: column;
		gap: 6px;
	}
	.hero-side {
		grid-template-columns: minmax(0, 1fr);
	}
	.portrait-a {
		max-width: 220px;
	}
	.portrait-b {
		width: min(100%, 280px);
	}
	.what-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.what-item,
	.what-item + .what-item {
		padding: 14px 0;
		border-right: 0;
		border-bottom: 1px solid var(--hair-soft);
	}
	.what-item:last-child {
		border-bottom: 0;
	}
	.section {
		padding: 56px 0;
	}
	.sec-head,
	body[data-proto='b'] .sec-head {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 8px 12px;
	}
	.sec-count {
		grid-column: 2;
		text-align: left;
		padding-bottom: 0;
	}
	.sec-head .rule {
		grid-column: 1 / -1;
	}
	.feature > summary,
	body[data-proto='b'] .feature-grid .feature:nth-child(3) > summary {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		padding: 24px 0;
	}
	body[data-proto='b'] .feature-grid .feature:nth-child(3) > summary {
		padding: 22px;
	}
	.feature:nth-of-type(even) > summary .feature-plate,
	body[data-proto='b'] .feature-grid .feature:nth-child(3) .feature-plate {
		order: 0;
	}
	.feature:nth-of-type(even) > summary .feature-copy,
	body[data-proto='b'] .feature-grid .feature:nth-child(3) .feature-copy {
		order: 0;
	}
	body[data-proto='b'] .feature-grid .feature:nth-child(1),
	body[data-proto='b'] .feature-grid .feature:nth-child(2),
	body[data-proto='b'] .feature-grid .feature:nth-child(3) {
		grid-column: span 12;
	}
	body[data-proto='b'] .feature-grid .feature:nth-child(3) .feature-body {
		padding: 20px;
	}
	.body-grid,
	.row-body .body-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.body-grid > div:first-child {
		grid-column: auto;
	}
	.ledger-head {
		display: none;
	}
	.row > summary,
	body[data-proto='b'] .row > summary {
		grid-template-columns: 40px minmax(0, 1fr) 28px;
		gap: 10px;
		padding: 16px 0;
	}
	.row-title strong,
	body[data-proto='b'] .row-title strong {
		font-size: 22px;
	}
	.row-title em,
	body[data-proto='b'] .row-title em {
		font-size: 12px;
	}
	.row-status {
		grid-column: 2;
	}
	.row-stack {
		display: none;
	}
	.row-more {
		grid-column: 3;
		grid-row: 1 / span 2;
	}
	.row-body,
	body[data-proto='b'] .row-body {
		padding: 0 0 22px 50px;
	}
	.exp-head {
		display: none;
	}
	.exp-row,
	body[data-proto='b'] .exp-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 4px;
		padding: 16px 0;
	}
	body[data-proto='b'] .exp-row::before,
	body[data-proto='b'] .exp-row::after {
		display: none;
	}
	body[data-proto='b'] .exp-date {
		padding-top: 0;
		text-align: left;
	}
	body[data-proto='b'] .exp-main {
		padding: 0;
	}
	.exp-org,
	body[data-proto='b'] .exp-org {
		font-size: 20px;
	}
	.edu-projects {
		grid-template-columns: minmax(0, 1fr);
	}
	.edu-card,
	.edu-card + .edu-card {
		padding: 18px 0;
		border-right: 0;
		border-bottom: 1px solid var(--hair-soft);
	}
	.edu-card:last-child {
		border-bottom: 0;
	}
	.contact {
		padding: 56px 0 48px;
	}
	body[data-proto='b'] .contact {
		padding: 48px 0;
		margin: 0;
	}
	.contact-email {
		font-size: clamp(26px, 8vw, 40px);
		text-underline-offset: 5px;
	}
	.foot-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 600px) {
	.proto-bar {
		gap: 8px;
		padding: 0 10px;
		font-size: 9px;
	}
	.proto-bar > span:last-child {
		display: none;
	}
}

@media (max-width: 480px) {
	body[data-proto='b'] .rail .rail-brand span {
		display: none;
	}
	body[data-proto='b'] .rail .rail-tools .lang {
		display: none;
	}
	body[data-proto='b'] .rail .rail-nav {
		gap: 10px;
	}
	body[data-proto='b'] .rail .rail-nav a {
		font-size: 9px;
	}
}

@media (max-width: 420px) {
	.hero-a h1,
	.hero-b .display {
		font-size: clamp(44px, 15vw, 66px);
	}
	.feature h3,
	body[data-proto='b'] .feature-grid .feature h3 {
		font-size: 26px;
	}
	.sec-head h2,
	body[data-proto='b'] .sec-head h2 {
		font-size: 34px;
	}
}
