/* =========================================================
   Design tokens
   ========================================================= */
:root {
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

	--radius-sm: 10px;
	--radius: 18px;
	--radius-lg: 28px;

	--ease-out: cubic-bezier(.22, 1, .36, 1);
	--dur: .5s;

	--wrap: 1120px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--header-h: 68px;
}

[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0b1020;
	--bg-soft: #10162a;
	--surface: rgba(255, 255, 255, .04);
	--surface-hover: rgba(255, 255, 255, .07);
	--border: rgba(255, 255, 255, .09);
	--text: #e8ebf5;
	--muted: #9aa3bd;
	--accent: #8b9dff;
	--accent-2: #c084fc;
	--accent-3: #f9a8d4;
	--header-bg: rgba(11, 16, 32, .6);
	--shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
	--star: #fff;
}

[data-theme="light"] {
	color-scheme: light;
	--bg: #f7f8fc;
	--bg-soft: #eef0f8;
	--surface: rgba(255, 255, 255, .75);
	--surface-hover: #fff;
	--border: rgba(15, 23, 42, .09);
	--text: #0f172a;
	--muted: #5b6478;
	--accent: #4f5fe8;
	--accent-2: #9333ea;
	--accent-3: #db2777;
	--header-bg: rgba(247, 248, 252, .7);
	--shadow: 0 20px 50px -24px rgba(30, 41, 90, .25);
	--star: #4f5fe8;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background:
		radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
		radial-gradient(900px 500px at -10% 10%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 60%),
		var(--bg);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	transition: background-color .3s, color .3s;
}

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

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

h1, h2, h3 {
	font-family: var(--font-display);
	line-height: 1.1;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }

::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

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

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }

.page { flex: 1; }

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 100;
	padding: .6rem 1rem;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: #fff;
}
.skip-link:focus { top: 1rem; }

.gradient-text {
	background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--header-h);
	background: var(--header-bg);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, background-color .3s;
	view-transition-name: site-header;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.05rem;
	letter-spacing: -.01em;
}
.brand-mark {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent);
}

.site-nav { margin-left: auto; }
.site-nav ul {
	display: flex;
	align-items: center;
	gap: .25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav a {
	display: block;
	padding: .45rem .9rem;
	border-radius: 999px;
	font-size: .95rem;
	font-weight: 500;
	color: var(--muted);
	transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-hover); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.site-nav .nav-cta {
	color: var(--text);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent);
	margin-left: .35rem;
}
.site-nav .nav-cta:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }

.header-actions { display: flex; gap: .4rem; }

.icon-btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 50%;
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
	transition: background-color .2s, transform .2s var(--ease-out);
}
.icon-btn:hover { background: var(--surface-hover); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.theme-toggle svg { transition: transform .5s var(--ease-out), opacity .3s; }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { grid-area: 1 / 1; }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.5); }

.nav-toggle { display: none; }
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
	display: block;
	width: 16px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -5px; }
.nav-toggle .bars::after { top: 5px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 760px) {
	.nav-toggle { display: grid; }
	.header-actions { margin-left: auto; }
	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		margin: 0;
		padding: 1rem var(--gutter) 1.5rem;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
		opacity: 0;
		transform: translateY(-8px);
		pointer-events: none;
		visibility: hidden;
		transition: opacity .25s, transform .3s var(--ease-out), visibility 0s .3s;
	}
	.nav-open .site-nav {
		opacity: 1;
		transform: none;
		pointer-events: auto;
		visibility: visible;
		transition: opacity .25s, transform .3s var(--ease-out);
	}
	.site-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
	.site-nav a { padding: .8rem 1rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
	.site-nav .nav-cta { margin: .5rem 0 0; text-align: center; }
}

/* =========================================================
   Buttons & links
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .8rem 1.35rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: .98rem;
	border: 1px solid transparent;
	transition: transform .25s var(--ease-out), box-shadow .25s, background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-primary {
	color: #fff;
	background: linear-gradient(110deg, var(--accent), var(--accent-2));
	box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover { box-shadow: 0 16px 36px -10px color-mix(in srgb, var(--accent-2) 70%, transparent); }

.btn-ghost {
	color: var(--text);
	background: var(--surface);
	border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-hover); }

.text-link {
	display: inline-flex;
	gap: .35rem;
	font-weight: 600;
	color: var(--accent);
}
.text-link span { transition: transform .25s var(--ease-out); }
.text-link:hover span, a:hover .text-link span { transform: translateX(4px); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.eyebrow {
	display: inline-block;
	margin-bottom: 1rem;
	padding: .3rem .8rem;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent);
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.lead {
	font-size: clamp(1.08rem, 1.6vw, 1.25rem);
	color: var(--muted);
	max-width: 38rem;
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-portrait {
	position: relative;
	justify-self: center;
	width: min(320px, 70vw);
	aspect-ratio: 1;
}
.hero-portrait img {
	position: relative;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
	border-radius: 50%;
	border: 4px solid var(--bg);
	box-shadow:
		0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent),
		0 30px 80px -20px color-mix(in srgb, var(--accent-2) 55%, transparent);
}

.orbit {
	position: absolute;
	inset: -22px;
	border-radius: 50%;
	border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
	animation: spin 28s linear infinite;
}
.orbit span {
	position: absolute;
	top: 50%;
	left: -6px;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--accent-3));
	box-shadow: 0 0 16px var(--accent-2);
}

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

/* Starfield: layered tiny radial gradients drifting slowly */
.stars {
	position: absolute;
	inset: -50% 0 0 0;
	pointer-events: none;
	opacity: .55;
	background-image:
		radial-gradient(1px 1px at 20px 30px, var(--star), transparent),
		radial-gradient(1px 1px at 120px 80px, var(--star), transparent),
		radial-gradient(1.5px 1.5px at 200px 160px, var(--star), transparent),
		radial-gradient(1px 1px at 260px 40px, var(--star), transparent),
		radial-gradient(1px 1px at 320px 220px, var(--star), transparent),
		radial-gradient(1.5px 1.5px at 60px 260px, var(--star), transparent),
		radial-gradient(1px 1px at 380px 120px, var(--star), transparent);
	background-size: 400px 300px;
	mask-image: linear-gradient(to bottom, #000 40%, transparent);
	-webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
	animation: drift 120s linear infinite;
}
[data-theme="light"] .stars { opacity: .25; }

@keyframes drift { to { transform: translateY(300px); } }

.hero-404 { min-height: 70vh; display: grid; place-items: center; }

.page-hero {
	padding: clamp(3rem, 8vw, 5.5rem) 0 1rem;
}
.page-hero h1 { max-width: 16ch; }

/* =========================================================
   Sections & components
   ========================================================= */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-tight { padding-top: 1rem; }
.section-title { margin-bottom: 1.5rem; }

.quote {
	position: relative;
	margin: 0;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.quote::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
	pointer-events: none;
}
.quote p {
	position: relative;
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 2.6vw, 1.75rem);
	line-height: 1.35;
	letter-spacing: -.01em;
	margin-bottom: .75rem;
}
.quote cite { position: relative; color: var(--muted); font-style: normal; font-weight: 500; }
.quote cite::before { content: "— "; }

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

.card {
	position: relative;
	padding: 1.5rem;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	transition: transform .35s var(--ease-out), border-color .3s, background-color .3s, box-shadow .35s;
}
.card:hover {
	transform: translateY(-4px);
	background: var(--surface-hover);
	border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
	box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.card > p { color: var(--muted); }

.card-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 1rem;
	border-radius: 12px;
	color: var(--accent);
	background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.card-icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.split, .two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.5rem, 5vw, 4rem);
	align-items: start;
}
.stack { display: grid; gap: 1rem; }

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	list-style: none;
	margin: 1.25rem 0 1.75rem;
	padding: 0;
}
.chips li {
	padding: .45rem .9rem;
	border-radius: 999px;
	font-size: .92rem;
	font-weight: 500;
	background: var(--surface);
	border: 1px solid var(--border);
}

.contact-card {
	padding: clamp(1.75rem, 4vw, 2.5rem);
	border-radius: var(--radius-lg);
	background:
		linear-gradient(140deg, color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--accent-2) 14%, transparent)),
		var(--bg-soft);
	border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
	box-shadow: var(--shadow);
}
.contact-card p { color: var(--muted); }
.contact-card .btn { margin: .25rem .5rem 0 0; }
.contact-card.wide {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}
.contact-card.wide p { margin: 0; }

/* Timeline */
.timeline {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0 0 0 2rem;
}
.timeline::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}
.timeline li { position: relative; padding-bottom: 1rem; }
.timeline-dot {
	position: absolute;
	left: calc(-2rem + 1px);
	top: 1.6rem;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--bg);
	border: 3px solid var(--accent);
}
.timeline li:first-child .timeline-dot {
	background: var(--accent);
	box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent);
}
.timeline-card {
	padding: 1.25rem 1.5rem;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	transition: transform .35s var(--ease-out), border-color .3s;
}
.timeline-card:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.timeline-card h3 { margin-bottom: .25rem; }
.timeline-card p:last-child { margin: 0; color: var(--muted); }
.timeline-meta {
	margin: 0 0 .35rem;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--accent);
}

/* Blog */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 820px; }
.post-card {
	display: block;
	padding: 1.75rem;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--border);
	transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s;
}
.post-card:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
	box-shadow: var(--shadow);
}
.post-card time, .post-header time { font-size: .9rem; color: var(--muted); }
.post-card h2 { font-size: 1.5rem; margin: .35rem 0 .5rem; }
.post-card p { color: var(--muted); }

.back-link {
	display: inline-flex;
	gap: .4rem;
	margin-bottom: 2rem;
	color: var(--muted);
	font-weight: 500;
	transition: color .2s;
}
.back-link:hover { color: var(--text); }
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: .5rem; }
.prose { font-size: 1.125rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }

/* =========================================================
   Gallery
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.filter {
	padding: .5rem 1rem;
	border-radius: 999px;
	font: inherit;
	font-size: .92rem;
	font-weight: 500;
	color: var(--muted);
	background: var(--surface);
	border: 1px solid var(--border);
	cursor: pointer;
	transition: color .2s, background-color .2s, border-color .2s;
}
.filter:hover { color: var(--text); }
.filter.is-active {
	color: #fff;
	background: linear-gradient(110deg, var(--accent), var(--accent-2));
	border-color: transparent;
}

.masonry { columns: 3 260px; column-gap: 1rem; }

.photo {
	position: relative;
	margin: 0 0 1rem;
	break-inside: avoid;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-soft);
	transition: opacity .35s, transform .35s var(--ease-out);
}
.photo.is-hidden { display: none; }
.photo a { display: block; cursor: zoom-in; }
.photo img {
	width: 100%;
	transition: transform .7s var(--ease-out), filter .4s;
}
.photo:hover img { transform: scale(1.05); }
.photo figcaption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 2.5rem 1rem .85rem;
	font-size: .9rem;
	font-weight: 500;
	color: #fff;
	background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .3s, transform .4s var(--ease-out);
	pointer-events: none;
}
.photo:hover figcaption, .photo:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) {
	.photo figcaption { opacity: 1; transform: none; }
}

/* Lightbox */
.lightbox {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(5, 8, 18, .92);
	color: #fff;
	opacity: 0;
	transition: opacity .3s, overlay .3s allow-discrete, display .3s allow-discrete;
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }

.lb-figure {
	grid-column: 2;
	margin: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 4rem 0 2rem;
	touch-action: pan-y;
}
.lb-img {
	max-width: 100%;
	max-height: calc(100vh - 9rem);
	width: auto;
	border-radius: var(--radius-sm);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
	transition: opacity .25s, transform .35s var(--ease-out);
}
.lb-img.is-loading { opacity: 0; transform: scale(.98); }
.lb-caption { margin-top: 1rem; text-align: center; color: rgba(255, 255, 255, .85); font-weight: 500; }

.lb-btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin: 0 1rem;
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s, transform .2s var(--ease-out);
}
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-btn:active { transform: scale(.94); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }
.lb-close { position: absolute; top: 1rem; right: 0; z-index: 1; }

@media (max-width: 640px) {
	.lb-prev, .lb-next { position: absolute; bottom: 1.25rem; margin: 0; }
	.lb-prev { left: 1.25rem; }
	.lb-next { right: 1.25rem; }
	.lb-figure { grid-column: 1 / -1; padding: 4rem .75rem 5.5rem; }
	.lb-img { max-height: calc(100vh - 12rem); }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
	margin-top: 3rem;
	border-top: 1px solid var(--border);
}
.footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.75rem;
}
.footer-inner p { margin: 0; color: var(--muted); font-size: .92rem; }
.social { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--muted);
	border: 1px solid var(--border);
	transition: color .2s, border-color .2s, transform .25s var(--ease-out);
}
.social a:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   Motion: scroll reveal & page transitions
   ========================================================= */
.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
	transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .25s ease both; }
::view-transition-new(root) { animation: vt-in .4s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.js .reveal { opacity: 1; transform: none; }
	@view-transition { navigation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
	.hero-inner { grid-template-columns: 1fr; text-align: left; }
	.hero-portrait { order: -1; width: min(220px, 55vw); justify-self: start; margin: 1rem 0 1rem 22px; }
	.split, .two-col { grid-template-columns: 1fr; }
}
