/* ==========================================================================
   Lanson Van Dyke — site styles
   One stylesheet for every page. Colours and spacing live in the tokens
   below; change them here and the whole site follows.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--bg: #fbfaf7;
	--surface: #ffffff;
	--surface-2: #f3f1ec;
	--text: #1b1a18;
	--text-muted: #5f5b55;
	--border: #e6e2da;
	--accent: #c2410c;
	--accent-hover: #9a3412;
	--accent-soft: #fdeee4;
	--on-accent: #ffffff;
	--shadow: 0 1px 2px rgb(27 26 24 / 0.04), 0 8px 24px rgb(27 26 24 / 0.06);
	--shadow-lg: 0 2px 4px rgb(27 26 24 / 0.05), 0 18px 40px rgb(27 26 24 / 0.10);

	--font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
	--font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--gutter: clamp(16px, 4vw, 32px);
	--wide: 1120px;
	--prose: 700px;
	--header-h: 64px;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #121110;
		--surface: #1b1a18;
		--surface-2: #23211f;
		--text: #edeae4;
		--text-muted: #a8a299;
		--border: #2f2c29;
		--accent: #fb8b4b;
		--accent-hover: #fdab7c;
		--accent-soft: rgb(251 139 75 / 0.13);
		--on-accent: #1b1a18;
		--shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
		--shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 18px 40px rgb(0 0 0 / 0.4);
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--bg: #121110;
	--surface: #1b1a18;
	--surface-2: #23211f;
	--text: #edeae4;
	--text-muted: #a8a299;
	--border: #2f2c29;
	--accent: #fb8b4b;
	--accent-hover: #fdab7c;
	--accent-soft: rgb(251 139 75 / 0.13);
	--on-accent: #1b1a18;
	--shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
	--shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 18px 40px rgb(0 0 0 / 0.4);
	color-scheme: dark;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.15s ease;
}
a:hover { color: var(--accent-hover); }

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

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin: 0 0 0.5em;
	font-variation-settings: "opsz" 72;
}

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

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute;
	left: 16px; top: -100px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--accent);
	color: var(--on-accent);
	border-radius: var(--radius-sm);
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

.container {
	width: 100%;
	max-width: calc(var(--wide) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.site-header .container {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--header-h);
}

.brand {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.2rem;
	letter-spacing: -0.02em;
	color: var(--text);
	text-decoration: none;
	white-space: nowrap;
	margin-right: auto;
}
.brand:hover { color: var(--text); }
.brand span { color: var(--accent); }

.site-nav ul {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	display: block;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--text-muted);
	font-size: 0.94rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: 4px; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 38px; height: 38px;
	border-radius: 999px;
	border: 0;
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	transition: color 0.15s ease, background-color 0.15s ease;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle { display: none; }

@media (max-width: 820px) {
	.nav-toggle { display: inline-grid; }
	.header-actions .social { display: none; }

	.site-nav {
		position: absolute;
		top: var(--header-h);
		left: 0; right: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
		display: none;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul {
		flex-direction: column;
		padding: 8px var(--gutter) 16px;
	}
	.site-nav a { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 1rem; }
	.site-nav .nav-social { display: flex; }
}
.site-nav .nav-social { display: none; gap: 4px; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 8px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 999px;
	border: 1px solid transparent;
	font: 600 0.95rem/1.2 var(--font-sans);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }

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

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.link-arrow::after { content: "→"; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

.link-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text-muted);
	font-size: 0.92rem;
	font-weight: 500;
	text-decoration: none;
}
.link-back::before { content: "←"; transition: transform 0.15s ease; }
.link-back:hover { color: var(--text); }
.link-back:hover::before { transform: translateX(-3px); }

/* ---------- Tags ---------- */
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.5;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}
a.tag:hover { background: var(--accent); color: var(--on-accent); }

.chip {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	font-size: 0.9rem;
	font-weight: 500;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section + .section { padding-top: 0; }

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }

.eyebrow {
	display: inline-block;
	margin: 0 0 14px;
	color: var(--accent);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.page-head { padding-block: clamp(40px, 7vw, 80px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin-bottom: 14px; }
.page-head .lead { max-width: 640px; }

.lead {
	font-size: clamp(1.08rem, 1.6vw, 1.22rem);
	color: var(--text-muted);
	line-height: 1.6;
	margin: 0;
}

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(56px, 10vw, 120px) clamp(40px, 6vw, 72px); }

.hero h1 {
	font-size: clamp(2.8rem, 8vw, 5.4rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
	margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }

.hero .lead { max-width: 640px; margin-bottom: 28px; }
.hero .lead a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.hero .lead a:hover { color: var(--accent); }

.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }

.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	overflow: hidden;
}
.stat { padding: 22px 24px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat strong {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 3.4vw, 2.4rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
}
.stat span { color: var(--text-muted); font-size: 0.92rem; }

@media (max-width: 720px) {
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(3) { border-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---------- Post cards ---------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 24px;
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card[hidden] { display: none; }

.card-media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--surface-2);
	overflow: hidden;
}
.card-media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.card:hover .card-media img { transform: scale(1.03); }
.card-media.is-logo img { object-fit: contain; padding: 12%; }

.card-media.is-placeholder {
	display: grid;
	place-items: center;
	background:
		radial-gradient(120% 120% at 0% 0%, var(--accent-soft), transparent 60%),
		var(--surface-2);
	color: var(--accent);
	font-family: var(--font-display);
	font-size: 1.6rem;
	font-weight: 600;
	text-decoration: none;
}

.card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	padding: 20px 22px 22px;
}

.card-meta { margin: 0; color: var(--text-muted); font-size: 0.85rem; }

.card-title { font-size: 1.32rem; line-height: 1.25; margin: 0; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.96rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card .tags { margin-top: auto; padding-top: 6px; }

/* ---------- Blog toolbar (search + tag filter) ---------- */
.blog-toolbar {
	display: grid;
	gap: 16px;
	margin-bottom: 28px;
}

.search {
	position: relative;
	max-width: 520px;
}
.search svg {
	position: absolute;
	left: 16px; top: 50%;
	width: 18px; height: 18px;
	transform: translateY(-50%);
	color: var(--text-muted);
	pointer-events: none;
}
.search input {
	width: 100%;
	padding: 13px 48px 13px 46px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search input::placeholder { color: var(--text-muted); }
.search input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}
.search kbd {
	position: absolute;
	right: 14px; top: 50%;
	transform: translateY(-50%);
	padding: 1px 8px;
	border: 1px solid var(--border);
	border-radius: 6px;
	color: var(--text-muted);
	font: 500 0.8rem var(--font-mono);
}
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { display: none; }

.tag-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tag-filter a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-size: 0.88rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.tag-filter a:hover { border-color: var(--accent); color: var(--accent); }
.tag-filter a .count { color: var(--text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.tag-filter a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tag-filter a[aria-current="true"] .count { color: inherit; opacity: 0.8; }

.filter-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	min-height: 1.6em;
	margin: 0;
	color: var(--text-muted);
	font-size: 0.94rem;
}
.filter-status strong { color: var(--text); }
.filter-status button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.filter-status button:hover { text-decoration: underline; text-underline-offset: 3px; }

.empty-state {
	padding: 56px 24px;
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	text-align: center;
	color: var(--text-muted);
}
.empty-state h2 { font-size: 1.4rem; color: var(--text); }

/* ---------- Single post ---------- */
.post { padding-block: clamp(28px, 5vw, 56px) 24px; }

.post-header {
	max-width: var(--prose);
	margin: 0 auto;
}
.post-header .link-back { margin-bottom: 28px; }
.post-header h1 {
	font-size: clamp(2.1rem, 5.4vw, 3.4rem);
	line-height: 1.08;
	letter-spacing: -0.025em;
	margin: 16px 0 16px;
}
.post-meta { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.post-hero {
	max-width: 960px;
	margin: clamp(28px, 4vw, 44px) auto 0;
}
.post-hero img {
	width: 100%;
	max-height: 640px;
	object-fit: cover;
	border-radius: var(--radius-lg);
	background: var(--surface-2);
}
.post-hero.is-logo img { object-fit: contain; max-height: 280px; padding: 48px; border: 1px solid var(--border); background: #fff; }

.post-footer {
	max-width: var(--prose);
	margin: 56px auto 0;
	padding-top: 28px;
	border-top: 1px solid var(--border);
	display: grid;
	gap: 20px;
}
.post-footer h2 { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px; }

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.post-nav a {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.15s ease;
}
.post-nav a:hover { border-color: var(--accent); }
.post-nav small { display: block; color: var(--text-muted); font-size: 0.8rem; margin-bottom: 4px; }
.post-nav span { font-family: var(--font-display); font-weight: 600; line-height: 1.3; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) {
	.post-nav { grid-template-columns: 1fr; }
	.post-nav .next { grid-column: 1; }
}

/* ---------- Prose (long-form text) ---------- */
.prose {
	max-width: var(--prose);
	margin: clamp(32px, 5vw, 48px) auto 0;
	font-size: 1.1rem;
	line-height: 1.75;
}
.prose > * + * { margin-top: 1.25em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table, .prose figure { margin-bottom: 0; }
.prose h2 { font-size: 1.75rem; margin-top: 2.2em; margin-bottom: 0; }
.prose h3 { font-size: 1.35rem; margin-top: 1.9em; margin-bottom: 0; }
.prose h4 { font-family: var(--font-sans); font-size: 1.08rem; font-weight: 700; letter-spacing: 0; margin-top: 1.6em; margin-bottom: 0; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }

.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--accent); }

.prose strong { font-weight: 650; }

.prose blockquote {
	margin-left: 0; margin-right: 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--accent);
	color: var(--text-muted);
	font-style: italic;
}

.prose figure { margin-left: 0; margin-right: 0; }
.prose figure img, .prose li img { border-radius: var(--radius); margin-block: 0.4em; }
.prose figcaption { margin-top: 10px; color: var(--text-muted); font-size: 0.9rem; text-align: center; }

.prose code {
	padding: 0.15em 0.4em;
	border-radius: 6px;
	background: var(--surface-2);
	font: 0.88em var(--font-mono);
}
.prose pre {
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface-2);
	overflow-x: auto;
	font-size: 0.88rem;
	line-height: 1.6;
}
.prose pre code { padding: 0; background: none; font-size: inherit; white-space: pre; }

.prose .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; font-variant-numeric: tabular-nums; }
.prose .table-wrap table { margin: 0; }
.prose th, .prose td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.prose th { background: var(--surface-2); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.prose tbody tr:last-child td { border-bottom: 0; }

.prose .cta { font-weight: 600; color: var(--accent); }
.prose .small { color: var(--text-muted); font-size: 0.9rem; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 2.5em; }

/* ---------- Video ---------- */
.video {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	background: #000;
}
.video img, .video iframe {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	border: 0;
}
.video img { transition: transform 0.4s ease, opacity 0.2s ease; opacity: 0.92; }
.video:hover img { transform: scale(1.03); opacity: 1; }
.video .play {
	position: absolute;
	left: 50%; top: 50%;
	width: 68px; height: 68px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: rgb(255 255 255 / 0.92);
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
	transition: transform 0.2s ease, background-color 0.2s ease;
}
.video .play::after {
	content: "";
	position: absolute;
	left: 52%; top: 50%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent #c2410c;
}
.video:hover .play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }

.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 28px 24px;
}
.video-card h3 { font-size: 1.2rem; margin: 14px 0 6px; }
.video-card p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }
.video-card .num {
	display: inline-block;
	margin-right: 6px;
	color: var(--accent);
	font-family: var(--font-sans);
	font-size: 0.85rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.feature-video {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}
.feature-video h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.feature-video p { color: var(--text-muted); margin: 0; }
@media (max-width: 860px) { .feature-video { grid-template-columns: 1fr; } }

.level + .level { margin-top: 56px; }
.level h2 { font-size: 1.5rem; display: flex; align-items: baseline; gap: 12px; }
.level h2 small { font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }

/* ---------- Promo panels (home) ---------- */
.panels {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
@media (max-width: 760px) { .panels { grid-template-columns: 1fr; } }

.panel {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}
.panel h3 { font-size: 1.5rem; margin: 0; }
.panel p { margin: 0; color: var(--text-muted); }
.panel .link-arrow { margin-top: auto; }

/* ---------- About ---------- */
.about-grid {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px clamp(24px, 5vw, 64px);
	padding-block: 36px;
	border-top: 1px solid var(--border);
}
.about-grid > h2 { font-size: 1.5rem; margin: 0; }
.about-grid p { margin: 0 0 1em; font-size: 1.08rem; line-height: 1.75; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

.skills { display: grid; gap: 22px; margin: 0; }
.skills dt { font-weight: 600; margin-bottom: 8px; }
.skills dd { margin: 0; }
.skills ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }

.cta-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: clamp(24px, 4vw, 40px);
	border-radius: var(--radius-lg);
	background: var(--accent-soft);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 6px; }
.cta-band p { margin: 0; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
	margin-top: clamp(56px, 8vw, 96px);
	padding-block: 40px;
	border-top: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 0.92rem;
}
.site-footer .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
	.reveal { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.reveal-2 { animation-delay: 0.08s; }
	.reveal-3 { animation-delay: 0.16s; }
	.reveal-4 { animation-delay: 0.24s; }
	@keyframes rise {
		from { opacity: 0; transform: translateY(14px); }
		to { opacity: 1; transform: none; }
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
