/* ==========================================================================
   Joel Montpetit — thème sombre éditorial
   ========================================================================== */

:root {
	--bg: #0b0b0c;
	--bg-2: #131315;
	--bg-3: #1a1a1d;
	--line: rgba(255, 255, 255, 0.1);
	--line-strong: rgba(255, 255, 255, 0.22);
	--text: #ededea;
	--muted: #8d8d93;
	--accent: #ffffff;
	--accent-ink: #0b0b0c;

	--sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

	--gutter: clamp(16px, 4vw, 48px);
	--max: 1360px;
	--header-h: 72px;
	--admin-bar: var(--wp-admin--admin-bar--height, 0px);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	color-scheme: dark;
}

/* Base ------------------------------------------------------------------- */

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

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

.mono {
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.container {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

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

/* Buttons ---------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.85em 1.4em;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	font-weight: 500;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn span { transition: transform 0.25s var(--ease); }
.btn:hover span { transform: translateX(4px); }

.btn--accent {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
}
.btn--accent:hover { background: #d6d6d3; border-color: #d6d6d3; }

.btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.04); }

.btn--lg { font-size: 1.05rem; padding: 1em 1.7em; }

/* Header ----------------------------------------------------------------- */

.site-header {
	position: fixed;
	inset: var(--admin-bar) 0 auto 0;
	z-index: 50;
	height: var(--header-h);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s var(--ease);
}
/* Le flou est porté par un calque : posé sur l'en-tête lui-même, backdrop-filter
   deviendrait le repère du menu mobile (position: fixed) et l'écraserait à 72 px. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0;
	background: rgba(11, 11, 12, 0.78);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	transition: opacity 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before { opacity: 1; }

.site-header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.brand__mark {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	background: var(--accent);
	color: var(--accent-ink);
	font-family: var(--mono);
	font-size: 0.8rem;
	font-weight: 500;
	border-radius: 4px;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; }
.nav__link {
	position: relative;
	text-decoration: none;
	font-size: 0.95rem;
	color: var(--muted);
	transition: color 0.2s var(--ease);
}
.nav__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -4px;
	height: 1px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.85rem;
	transition: border-color 0.2s var(--ease);
}
.lang-switch:hover { border-color: var(--accent); }
.lang-switch__code { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); }

.nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	background: none;
	border: 0;
	color: var(--text);
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
}
.nav-toggle__icon {
	position: relative;
	width: 22px;
	height: 10px;
}
.nav-toggle__icon::before, .nav-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 1.5px;
	background: currentColor;
	transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 859px) {
	.brand__name { display: none; }
	.nav-toggle { display: inline-flex; }

	.nav {
		position: fixed;
		inset: calc(var(--header-h) + var(--admin-bar)) 0 0 0;
		flex-direction: column;
		align-items: flex-start;
		justify-content: space-between;
		gap: 40px;
		padding: 32px var(--gutter) 40px;
		background: var(--bg);
		border-top: 1px solid var(--line);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav__list { flex-direction: column; gap: 4px; width: 100%; }
	.nav__link {
		display: block;
		padding: 12px 0;
		font-size: 2.2rem;
		font-weight: 500;
		letter-spacing: -0.03em;
		color: var(--text);
		border-bottom: 1px solid var(--line);
	}
	.nav__link::after { display: none; }
	body.nav-open { overflow: hidden; }
	body.nav-open .site-header { background: var(--bg); }
}

/* Hero ------------------------------------------------------------------- */

.hero {
	position: relative;
	padding-top: calc(var(--header-h) + clamp(48px, 9vw, 120px));
	padding-bottom: clamp(48px, 7vw, 96px);
	isolation: isolate;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 60% 50% at 85% 10%, rgba(255, 255, 255, 0.06), transparent 70%),
		linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 120px;
	mask-image: linear-gradient(to bottom, #000 40%, transparent);
	-webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
	opacity: 0.6;
}

.hero__grid {
	display: grid;
	gap: 48px;
	align-items: end;
}
@media (min-width: 960px) {
	.hero__grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 64px; }
}

.hero__roles {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-bottom: 28px;
	color: var(--muted);
}
.hero__roles li { display: inline-flex; align-items: center; gap: 14px; }
.hero__roles li + li::before {
	content: "";
	width: 4px;
	height: 4px;
	background: var(--accent);
	border-radius: 50%;
}

.hero__name {
	display: flex;
	flex-direction: column;
	font-size: clamp(3.1rem, 9vw, 8.5rem);
	font-weight: 700;
	line-height: 0.88;
	letter-spacing: -0.055em;
	text-transform: uppercase;
	margin-left: -0.04em;
}
.hero__name-last {
	color: transparent;
	-webkit-text-stroke: 1.5px var(--text);
}

.hero__lead {
	max-width: 40ch;
	margin-top: 36px;
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
	line-height: 1.45;
	color: #c9c9c6;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}

.hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 36px;
	color: var(--muted);
}

.status { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.status__dot {
	position: relative;
	width: 8px;
	height: 8px;
	background: var(--accent);
	border-radius: 50%;
}
.status__dot::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--accent);
	animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
	from { transform: scale(1); opacity: 0.7; }
	to { transform: scale(3); opacity: 0; }
}

.hero__photo {
	position: relative;
	aspect-ratio: 4 / 5;
	max-width: 460px;
	width: 100%;
	justify-self: end;
	border-radius: 6px;
	overflow: hidden;
	background: var(--bg-2);
	border: 1px solid var(--line);
}
.hero__photo::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 64px;
	height: 64px;
	background: var(--accent);
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
	transition: filter 0.6s var(--ease), transform 0.8s var(--ease);
}
.hero__photo:hover img { transform: scale(1.02); }

.hero__monogram {
	display: grid;
	place-items: center;
	height: 100%;
	background:
		linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
		linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
		var(--bg-2);
}
.hero__monogram span {
	font-size: clamp(6rem, 16vw, 12rem);
	font-weight: 700;
	letter-spacing: -0.06em;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--accent);
}

@media (max-width: 959px) {
	.hero__photo { justify-self: start; max-width: 360px; }
}

/* Stats ------------------------------------------------------------------ */

.stats {
	display: grid;
	gap: 0;
	margin-top: clamp(56px, 8vw, 104px);
	border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
	.stats { grid-template-columns: repeat(3, 1fr); }
	.stats__item + .stats__item { border-left: 1px solid var(--line); padding-left: 32px; }
}
.stats__item {
	display: flex;
	align-items: baseline;
	gap: 20px;
	padding: 28px 0;
	border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
	.stats__item { flex-direction: column; gap: 8px; border-bottom: 0; }
}
.stats__value {
	font-size: clamp(3rem, 5vw, 4.5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.05em;
	color: var(--accent);
	min-width: 1.6ch;
}
.stats__label { color: var(--muted); max-width: 26ch; }

/* Marquee ---------------------------------------------------------------- */

.marquee {
	overflow: hidden;
	border-block: 1px solid var(--line);
	background: var(--bg-2);
	padding: 18px 0;
}
.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee 50s linear infinite;
}
.marquee__item {
	display: inline-flex;
	align-items: center;
	padding-inline: 28px;
	font-family: var(--mono);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	white-space: nowrap;
}
.marquee__item::after {
	content: "✦";
	margin-left: 56px;
	color: var(--accent);
	font-size: 0.7rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections --------------------------------------------------------------- */

.section {
	padding-block: clamp(80px, 12vw, 160px);
	border-top: 1px solid var(--line);
}
.marquee + .section { border-top: 0; }

.section__grid { display: grid; gap: 24px 48px; }
@media (min-width: 960px) {
	.section__grid { grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr); }
}

.section__label {
	color: var(--muted);
	padding-top: 0.6em;
}
.section__label span { color: var(--accent); margin-right: 8px; }

.section__title {
	max-width: 22ch;
	font-size: clamp(2rem, 1.4rem + 2.8vw, 4rem);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
.section__title--xl { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.5rem); max-width: 18ch; }

.section__intro {
	max-width: 56ch;
	margin-top: 28px;
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
	color: #b9b9b6;
}

/* About ------------------------------------------------------------------ */

.about__text {
	display: grid;
	gap: 24px;
	max-width: 62ch;
	margin-top: 40px;
	color: #b9b9b6;
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}
@media (min-width: 960px) {
	.about__text { grid-template-columns: 1fr 1fr; max-width: none; gap: 40px; }
}

/* Semantic specialty ----------------------------------------------------- */

.semantic { background: var(--bg-2); }

.tree {
	margin-top: clamp(48px, 7vw, 88px);
	padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px);
	border: 1px solid var(--line);
	border-radius: 6px;
	background:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 40px 40px,
		var(--bg);
}
.tree__root::after,
.tree__cluster::before,
.tree__pages::before,
.tree__clusters::before { opacity: 0.9; }

.tree__node {
	position: relative;
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid var(--line-strong);
	border-radius: 4px;
	background: var(--bg-3);
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
}
.tree__node--root {
	background: var(--text);
	border-color: var(--text);
	color: var(--bg);
	font-size: 1.15rem;
	font-weight: 600;
}
.tree__node--page {
	padding: 7px 14px;
	border-style: dashed;
	background: var(--bg);
	color: var(--muted);
	font-size: 0.72rem;
}

/* Connecteurs : racine → ligne horizontale → grappes → pages. */
.tree__root {
	position: relative;
	display: flex;
	justify-content: center;
	padding-bottom: 28px;
}
.tree__root::after,
.tree__cluster::before,
.tree__pages::before {
	content: "";
	position: absolute;
	left: 50%;
	width: 1px;
	background: var(--line-strong);
}
.tree__root::after { bottom: 0; height: 28px; }

.tree__clusters {
	position: relative;
	display: grid;
	gap: 56px;
	padding-top: 28px;
}
.tree__cluster {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.tree__cluster::before { top: -28px; height: 28px; }

.tree__pages {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
}
.tree__pages::before { top: -24px; height: 24px; }

@media (min-width: 860px) {
	.tree__clusters { grid-template-columns: repeat(3, 1fr); gap: 24px; }
	.tree__clusters::before {
		content: "";
		position: absolute;
		top: 0;
		left: calc(100% / 6);
		right: calc(100% / 6);
		height: 1px;
		background: var(--line-strong);
	}
}

.tree__caption {
	margin-top: 40px;
	text-align: center;
	color: var(--muted);
	text-transform: none;
}

.workflow { margin-top: clamp(72px, 10vw, 128px); }
.workflow__title {
	max-width: 24ch;
	margin-top: 16px;
	font-size: clamp(1.7rem, 1.2rem + 2vw, 3rem);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
.workflow__steps {
	display: grid;
	gap: 0 32px;
	margin-top: clamp(40px, 6vw, 64px);
	counter-reset: wf;
}
@media (min-width: 640px) { .workflow__steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .workflow__steps { grid-template-columns: repeat(3, 1fr); } }
.workflow__step {
	counter-increment: wf;
	position: relative;
	padding: 28px 0 32px 56px;
	border-top: 1px solid var(--line);
}
.workflow__step::before {
	content: counter(wf, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 30px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--line-strong);
	border-radius: 50%;
	font-family: var(--mono);
	font-size: 0.72rem;
	color: var(--text);
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.workflow__step:hover::before { background: var(--text); color: var(--bg); }
.workflow__step-title {
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.3;
	padding-top: 4px;
}
.workflow__step-text { margin-top: 8px; color: #b9b9b6; font-size: 0.98rem; }

.pillars {
	display: grid;
	gap: 40px 32px;
	margin-top: clamp(56px, 8vw, 96px);
}
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }

.pillar {
	padding-top: 24px;
	border-top: 1px solid var(--line-strong);
}
.pillar__num { color: var(--muted); }
.pillar__title {
	margin-top: 28px;
	font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.025em;
}
.pillar__text { margin-top: 12px; color: #b9b9b6; }

/* Experience ------------------------------------------------------------- */

.job {
	margin-top: 32px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--bg-2);
	overflow: hidden;
}
.job__head {
	padding: clamp(28px, 4vw, 56px);
	border-bottom: 1px solid var(--line);
}
.job__period {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 12px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--text);
}
.job__role {
	max-width: 20ch;
	margin-top: 28px;
	font-size: clamp(2rem, 1.3rem + 3vw, 4.25rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.045em;
	text-wrap: balance;
}
.job__summary {
	max-width: 52ch;
	margin-top: 24px;
	font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
	color: #c9c9c6;
}

.job__groups { display: grid; }
@media (min-width: 960px) {
	.job__groups { grid-template-columns: repeat(3, 1fr); }
	.job__group + .job__group { border-left: 1px solid var(--line); }
}
.job__group {
	padding: clamp(24px, 3vw, 40px) clamp(28px, 3vw, 40px);
	border-bottom: 1px solid var(--line);
}
.job__group-title { color: var(--muted); font-weight: 700; }
.job__points {
	display: grid;
	gap: 14px;
	margin-top: 20px;
	color: #c9c9c6;
	font-size: 0.98rem;
}
.job__points li { position: relative; padding-left: 22px; }
.job__points li::before {
	content: "▸";
	position: absolute;
	left: 0;
	top: 0.15em;
	font-size: 0.8em;
	color: var(--text);
}
.job__footnote {
	padding: 20px clamp(28px, 3vw, 40px);
	color: var(--muted);
	text-transform: none;
}

/* Expertise -------------------------------------------------------------- */

.expertise__list {
	margin-top: clamp(48px, 7vw, 88px);
	border-top: 1px solid var(--line);
	counter-reset: none;
}
.expertise__item {
	display: grid;
	gap: 16px 32px;
	padding-block: clamp(28px, 4vw, 44px);
	border-bottom: 1px solid var(--line);
	transition: background-color 0.3s var(--ease);
}
@media (min-width: 960px) {
	.expertise__item {
		grid-template-columns: minmax(180px, 1fr) minmax(0, 1.5fr) minmax(0, 1.5fr);
		align-items: start;
	}
}
.expertise__num {
	color: var(--muted);
	padding-top: 0.5em;
	transition: color 0.3s var(--ease);
}
.expertise__title {
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.03em;
	transition: color 0.3s var(--ease);
}
.expertise__intro { margin-top: 10px; color: var(--muted); max-width: 36ch; }
.expertise__points { display: grid; gap: 8px; padding-top: 0.4em; }
.expertise__points li {
	position: relative;
	padding-left: 24px;
	color: #c9c9c6;
}
.expertise__points li::before {
	content: "—";
	position: absolute;
	left: 0;
	color: var(--muted);
}
.expertise__item:hover .expertise__num,
.expertise__item:hover .expertise__title { color: var(--accent); }

/* AI --------------------------------------------------------------------- */

.ai { background: var(--bg-2); }

.agents {
	display: grid;
	gap: 16px;
	margin-top: clamp(48px, 7vw, 88px);
}
@media (min-width: 860px) {
	.agents { grid-template-columns: repeat(3, 1fr); }
}
.agent {
	display: flex;
	flex-direction: column;
	padding: clamp(24px, 3vw, 36px);
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 6px;
	transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.agent:hover { border-color: var(--accent); transform: translateY(-4px); }
.agent__id { color: var(--accent); text-transform: none; }
.agent__name {
	margin-top: 40px;
	font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.025em;
}
.agent__points {
	display: grid;
	gap: 10px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	color: #b9b9b6;
	font-size: 0.98rem;
}
.agent__points li { position: relative; padding-left: 22px; }
.agent__points li::before {
	content: "▸";
	position: absolute;
	left: 0;
	color: var(--accent);
	font-size: 0.8em;
	top: 0.15em;
}

.process {
	margin-top: clamp(56px, 8vw, 104px);
	padding: clamp(24px, 3vw, 40px);
	border: 1px dashed var(--line-strong);
	border-radius: 6px;
}
.process__label { color: var(--muted); margin-bottom: 24px; }
.process__steps {
	display: grid;
	gap: 12px;
	counter-reset: step;
}
@media (min-width: 960px) {
	.process__steps { grid-template-columns: repeat(5, 1fr); gap: 0; }
}
.process__steps li {
	counter-increment: step;
	position: relative;
	display: flex;
	align-items: baseline;
	gap: 14px;
	font-size: 1.1rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}
.process__steps li::before {
	content: counter(step, decimal-leading-zero);
	font-family: var(--mono);
	font-size: 0.75rem;
	color: var(--accent);
}
@media (min-width: 960px) {
	.process__steps li { flex-direction: column; gap: 10px; padding-right: 40px; }
	.process__steps li:not(:last-child)::after {
		content: "→";
		position: absolute;
		right: 16px;
		top: 1.6em;
		color: var(--muted);
	}
}

/* Scale & stack ---------------------------------------------------------- */

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 32px;
}
.tag {
	padding: 8px 16px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	font-size: 0.95rem;
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.tags--mono .tag {
	font-family: var(--mono);
	font-size: 0.78rem;
	padding: 6px 12px;
	border-radius: 4px;
	color: var(--muted);
	background: var(--bg-2);
	border-color: var(--line);
}
.stack__label { margin-top: 64px; padding-top: 0; }

/* Contact ---------------------------------------------------------------- */

.contact { padding-bottom: clamp(96px, 14vw, 200px); }
.contact__title {
	max-width: 16ch;
	margin-top: 32px;
	font-size: clamp(2.6rem, 1.2rem + 6vw, 7rem);
	font-weight: 600;
	line-height: 0.95;
	letter-spacing: -0.05em;
	text-wrap: balance;
}
.contact__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 44px;
}

.admin-note {
	margin-top: 32px;
	padding: 14px 18px;
	border: 1px dashed var(--accent);
	border-radius: 4px;
	color: var(--accent);
	text-transform: none;
	max-width: 60ch;
}

/* Footer ----------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-block: 28px;
	color: var(--muted);
	font-size: 0.9rem;
}
.site-footer__top { text-decoration: none; transition: color 0.2s var(--ease); }
.site-footer__top:hover { color: var(--accent); }

/* Generic pages & 404 ---------------------------------------------------- */

.page__inner {
	padding-top: calc(var(--header-h) + clamp(64px, 10vw, 140px));
	padding-bottom: clamp(80px, 12vw, 160px);
	max-width: 860px;
}
.page__title {
	font-size: clamp(2.4rem, 1.4rem + 4vw, 4.5rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.045em;
	margin-bottom: 32px;
}
.page__title a { text-decoration: none; }
.entry + .entry { margin-top: 80px; }
.entry__content { color: #c9c9c6; }
.entry__content > * + * { margin-top: 1.2em; }
.entry__content a { color: var(--accent); }

.notfound__code {
	font-size: clamp(5rem, 20vw, 14rem);
	line-height: 1;
	letter-spacing: -0.06em;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--accent);
	margin-bottom: 16px;
}
.notfound .btn { margin-top: 40px; }

/* Reveal on scroll ------------------------------------------------------- */

.js .reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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