/* ─── Design tokens ──────────────────────────────────────────────────── */

:root {
	/* Palette — warm cream paper with oxblood ink */
	--paper: #ede3ce;
	--paper-alt: #e5d9bf;
	--paper-deep: #d8c9a8;
	--ink: #0f0e0c;
	--ink-soft: #1f1d18;
	--mute: #8c8370;
	--mute-soft: #b3a78e;
	--oxblood: #7a2818;
	--oxblood-deep: #5a1c0f;
	--gold: #b89552;
	--rule: rgba(15, 14, 12, 0.18);
	--rule-soft: rgba(15, 14, 12, 0.08);

	/* Type */
	--font-display: "Instrument Serif", "Cormorant Garamond", "Times New Roman",
		serif;
	--font-body: "EB Garamond", "Adobe Garamond Pro", Georgia, serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;

	/* Type scale — fluid clamps */
	--fs-display: clamp(5rem, 14vw, 15rem);
	--fs-h2: clamp(2.5rem, 5.5vw, 5rem);
	--fs-h3: clamp(1.5rem, 2.6vw, 2.25rem);
	--fs-body: clamp(1.0625rem, 1.15vw, 1.25rem);
	--fs-small: 0.8125rem;
	--fs-mono: 0.75rem;

	/* Rhythm */
	--rhythm: clamp(6rem, 12vh, 10rem);
	--gutter: clamp(1.5rem, 4vw, 4rem);

	/* Noise texture — base64 grain for atmosphere */
	--noise-url: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.055 0 0 0 0 0.047 0 0 0 0.14 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* ─── Reset + base ───────────────────────────────────────────────────── */

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

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.55;
	color: var(--ink);
	background: var(--paper);
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "kern", "liga", "onum";
}

/* Grain overlay — subtle paper texture over everything */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background-image: var(--noise-url);
	background-size: 200px 200px;
	opacity: 0.5;
	pointer-events: none;
	z-index: 1;
	mix-blend-mode: multiply;
}

/* Hide all content initially for reveal animation */
main,
section,
header,
footer {
	position: relative;
	z-index: 2;
}

::selection {
	background: var(--oxblood);
	color: var(--paper);
}

/* ─── Typography primitives ──────────────────────────────────────────── */

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: -0.02em;
	color: var(--ink);
}

h2 {
	font-size: var(--fs-h2);
	line-height: 1;
}

h3 {
	font-size: var(--fs-h3);
}

em {
	font-style: italic;
}

p {
	max-width: 62ch;
}

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

code {
	font-family: var(--font-mono);
	font-size: 0.875em;
	letter-spacing: -0.02em;
}

/* ─── Layout primitives ──────────────────────────────────────────────── */

.rule-top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--ink);
	z-index: 50;
	opacity: 0.4;
}

.masthead {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 1.25rem var(--gutter);
	border-bottom: 1px solid var(--rule);
	font-family: var(--font-mono);
	font-size: var(--fs-small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink);
	z-index: 40;
	position: sticky;
	top: 0;
	background: var(--paper);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.masthead__left,
.masthead__right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.masthead__right {
	justify-content: flex-end;
}

.masthead__mark {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.3em;
	color: var(--oxblood);
	text-transform: none;
	line-height: 0;
}

.masthead__title {
	font-family: var(--font-display);
	font-size: 1.1em;
	text-transform: none;
	letter-spacing: 0;
	font-style: italic;
}

.masthead__center {
	font-family: var(--font-display);
	font-style: italic;
	text-transform: none;
	letter-spacing: 0;
	font-size: 1em;
	color: var(--mute);
}

.masthead__sep {
	color: var(--mute-soft);
}

/* ─── Hero ───────────────────────────────────────────────────────────── */

.hero {
	position: relative;
	min-height: 95vh;
	padding: clamp(4rem, 12vh, 10rem) var(--gutter) clamp(3rem, 8vh, 6rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	border-bottom: 1px solid var(--rule);
}

.hero__bond {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-30%);
	width: 100%;
	height: auto;
	color: var(--oxblood);
	opacity: 0.18;
	pointer-events: none;
	z-index: 0;
}

.bond-spine,
.bond-rgroups line {
	stroke-dasharray: 3000;
	stroke-dashoffset: 3000;
	animation: draw 4s ease-out 0.4s forwards;
}

.bond-nodes circle,
.bond-rtips circle {
	opacity: 0;
	animation: fadeIn 0.8s ease-out forwards;
}

.bond-nodes circle:nth-child(1) {
	animation-delay: 0.6s;
}
.bond-nodes circle:nth-child(2) {
	animation-delay: 0.8s;
}
.bond-nodes circle:nth-child(3) {
	animation-delay: 1s;
}
.bond-nodes circle:nth-child(4) {
	animation-delay: 1.2s;
}
.bond-nodes circle:nth-child(5) {
	animation-delay: 1.4s;
}
.bond-nodes circle:nth-child(6) {
	animation-delay: 1.6s;
}
.bond-nodes circle:nth-child(7) {
	animation-delay: 1.8s;
}
.bond-nodes circle:nth-child(8) {
	animation-delay: 2s;
}
.bond-nodes circle:nth-child(9) {
	animation-delay: 2.2s;
}
.bond-nodes circle:nth-child(10) {
	animation-delay: 2.4s;
}
.bond-nodes circle:nth-child(n + 11) {
	animation-delay: 2.6s;
}

.bond-rtips circle:nth-child(1) {
	animation-delay: 2.2s;
}
.bond-rtips circle:nth-child(2) {
	animation-delay: 2.4s;
}
.bond-rtips circle:nth-child(3) {
	animation-delay: 2.6s;
}
.bond-rtips circle:nth-child(4) {
	animation-delay: 2.8s;
}
.bond-rtips circle:nth-child(5) {
	animation-delay: 3s;
}
.bond-rtips circle:nth-child(6) {
	animation-delay: 3.2s;
}
.bond-rtips circle:nth-child(7) {
	animation-delay: 3.4s;
}

@keyframes draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes fadeIn {
	to {
		opacity: 1;
	}
}

.hero__inner {
	position: relative;
	z-index: 3;
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
}

.hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-mono);
	font-size: var(--fs-small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin-bottom: clamp(2rem, 5vh, 4rem);
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--rule);
	background: rgba(237, 227, 206, 0.6);
	backdrop-filter: blur(4px);
	opacity: 0;
	animation: slideUp 0.9s ease-out 0.2s forwards;
}

.hero__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--oxblood);
	flex-shrink: 0;
}

.hero__title {
	font-size: var(--fs-display);
	line-height: 0.85;
	letter-spacing: -0.04em;
	margin-bottom: clamp(2rem, 5vh, 3rem);
	display: flex;
	flex-direction: column;
}

.hero__word {
	display: block;
	opacity: 0;
	transform: translateY(40px);
	animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__word--1 {
	animation-delay: 0.3s;
}

.hero__word--2 {
	font-size: 0.35em;
	color: var(--oxblood);
	letter-spacing: 0;
	margin-top: 0.3em;
	margin-left: 0.1em;
	font-family: var(--font-display);
	animation-delay: 0.6s;
}

.hero__word--2 em {
	font-style: italic;
}

.hero__lede {
	max-width: 52ch;
	font-size: clamp(1.25rem, 1.8vw, 1.75rem);
	line-height: 1.35;
	color: var(--ink-soft);
	font-feature-settings: "onum";
	margin-bottom: clamp(3rem, 6vh, 5rem);
	opacity: 0;
	animation: slideUp 1s ease-out 0.9s forwards;
}

.hero__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 2rem;
	max-width: 720px;
	padding-top: 2rem;
	border-top: 1px solid var(--rule);
	margin-bottom: clamp(3rem, 6vh, 5rem);
	opacity: 0;
	animation: slideUp 1s ease-out 1.1s forwards;
}

.hero__meta-col {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.hero__meta-label {
	font-family: var(--font-mono);
	font-size: var(--fs-small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mute);
}

.hero__meta-val {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.35rem;
	color: var(--ink);
}

.hero__scroll {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-mono);
	font-size: var(--fs-small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink);
	padding: 0.75rem 1.25rem;
	border: 1px solid var(--ink);
	border-radius: 0;
	background: transparent;
	opacity: 0;
	animation: slideUp 1s ease-out 1.3s forwards;
	transition: background 0.3s, color 0.3s;
	align-self: flex-start;
	width: fit-content;
}

.hero__scroll:hover {
	background: var(--ink);
	color: var(--paper);
}

.hero__scroll-arrow {
	display: inline-block;
	animation: bob 2.4s ease-in-out infinite;
}

@keyframes slideUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes bob {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(3px);
	}
}

/* ─── Chapter base ───────────────────────────────────────────────────── */

.chapter {
	padding: var(--rhythm) var(--gutter);
	border-bottom: 1px solid var(--rule);
	position: relative;
	max-width: 1600px;
	margin: 0 auto;
}

.chapter__head {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: baseline;
	margin-bottom: clamp(3rem, 6vh, 5rem);
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--rule-soft);
}

.chapter__num {
	font-family: var(--font-mono);
	font-size: clamp(0.75rem, 1vw, 0.875rem);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--oxblood);
	padding-top: 0.5em;
	align-self: start;
}

.chapter__title {
	max-width: 22ch;
}

.chapter__title em {
	color: var(--oxblood);
	font-style: italic;
}

.chapter__intro {
	font-size: clamp(1.15rem, 1.4vw, 1.35rem);
	line-height: 1.5;
	color: var(--ink-soft);
	font-style: italic;
	max-width: 58ch;
	margin-bottom: clamp(3rem, 6vh, 5rem);
}

.chapter__body {
	max-width: 1400px;
}

.grid-two {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

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

.prose p + p {
	margin-top: 1.25em;
	text-indent: 1.5em;
}

.prose p {
	font-feature-settings: "onum";
}

.dropcap::first-letter {
	font-family: var(--font-display);
	font-size: 4.5em;
	line-height: 0.85;
	float: left;
	padding: 0.05em 0.15em 0 0;
	color: var(--oxblood);
	font-style: italic;
}

/* ─── Spec sidebar ───────────────────────────────────────────────────── */

.spec {
	background: var(--paper-alt);
	border: 1px solid var(--rule);
	padding: 2rem;
	position: sticky;
	top: 6rem;
}

.spec__head {
	font-family: var(--font-mono);
	font-size: var(--fs-small);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--oxblood);
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--rule);
	margin-bottom: 1.25rem;
}

.spec__list {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.spec__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	border-bottom: 1px dotted var(--rule);
	padding-bottom: 0.75rem;
}

.spec__row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.spec__row dt {
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--ink);
}

.spec__row dd {
	font-family: var(--font-mono);
	font-size: var(--fs-small);
	color: var(--ink-soft);
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.spec__foot {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--rule);
	font-family: var(--font-body);
	font-style: italic;
	font-size: 0.9rem;
	color: var(--mute);
}

/* ─── Movements (How They Work) ─────────────────────────────────────── */

.movements {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: clamp(1.5rem, 3vw, 3rem);
	counter-reset: movement;
}

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

.movement {
	position: relative;
	padding-top: 4rem;
	border-top: 1px solid var(--ink);
}

.movement__num {
	position: absolute;
	top: 0.75rem;
	left: 0;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 2.5rem;
	line-height: 1;
	color: var(--oxblood);
}

.movement__title {
	font-size: clamp(1.75rem, 2.5vw, 2.25rem);
	font-family: var(--font-display);
	font-style: italic;
	margin-bottom: 1rem;
}

.movement__body {
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--ink-soft);
	max-width: 36ch;
}

/* ─── Categories ─────────────────────────────────────────────────────── */

.categories {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(1.5rem, 2.5vw, 2.5rem);
	max-width: 1400px;
}

.category {
	position: relative;
	padding: 2rem 0;
	border-top: 1px solid var(--ink);
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category:hover {
	transform: translateY(-4px);
}

.category__num {
	font-family: var(--font-mono);
	font-size: var(--fs-small);
	letter-spacing: 0.15em;
	color: var(--mute);
	margin-bottom: 1rem;
}

.category__name {
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	font-family: var(--font-display);
	line-height: 1;
	margin-bottom: 1rem;
	color: var(--ink);
}

.category__desc {
	font-size: 1rem;
	line-height: 1.5;
	color: var(--ink-soft);
}

/* ─── Specimens ──────────────────────────────────────────────────────── */

.chapter--specimens {
	background: linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%);
}

.specimens {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: clamp(1.5rem, 2vw, 2rem);
}

.specimen {
	background: var(--paper);
	border: 1px solid var(--ink);
	padding: clamp(1.75rem, 2.5vw, 2.5rem);
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	position: relative;
	transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.specimen:hover {
	transform: translateY(-6px);
	box-shadow: 10px 10px 0 var(--ink);
}

.specimen--featured {
	grid-column: span 2;
	background: var(--ink);
	color: var(--paper);
	border-color: var(--ink);
}

.specimen--featured:hover {
	box-shadow: 10px 10px 0 var(--oxblood);
}

@media (max-width: 800px) {
	.specimen--featured {
		grid-column: span 1;
	}
}

.specimen--featured .specimen__name,
.specimen--featured h4 {
	color: var(--paper);
}

.specimen--featured .specimen__id,
.specimen--featured .specimen__alias {
	color: var(--gold);
}

.specimen--featured .tier-label {
	color: var(--gold);
}

.specimen--featured .specimen__row dt {
	color: var(--paper-deep);
}

.specimen--featured .specimen__row dd {
	color: var(--paper);
}

.specimen--featured .specimen__claim p,
.specimen--featured .specimen__note p {
	color: var(--paper-deep);
}

.specimen--featured .specimen__row,
.specimen--featured .specimen__tier,
.specimen--featured .specimen__head {
	border-color: rgba(237, 227, 206, 0.18);
}

.specimen__head {
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--rule);
}

.specimen__id {
	font-family: var(--font-mono);
	font-size: var(--fs-small);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--oxblood);
	margin-bottom: 0.5rem;
}

.specimen__name {
	font-family: var(--font-display);
	font-size: clamp(2rem, 3vw, 2.75rem);
	line-height: 1;
	margin-bottom: 0.25rem;
	letter-spacing: -0.02em;
}

.specimen__alias {
	font-family: var(--font-display);
	font-style: italic;
	color: var(--mute);
	font-size: 1.1rem;
}

.specimen__data {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.specimen__row {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 1rem;
	align-items: baseline;
	padding-bottom: 0.75rem;
	border-bottom: 1px dotted var(--rule);
}

.specimen__row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.specimen__row dt {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mute);
}

.specimen__row dd {
	font-size: 0.95rem;
	color: var(--ink);
	line-height: 1.4;
}

.specimen__row dd code {
	font-family: var(--font-mono);
	font-size: 0.85em;
	word-break: break-word;
}

.specimen__claim h4,
.specimen__note h4 {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: var(--oxblood);
}

.specimen__claim p,
.specimen__note p {
	font-size: 1rem;
	line-height: 1.55;
	color: var(--ink-soft);
}

.specimen__tier {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 0.875rem 1rem;
	border: 1px solid;
	border-left-width: 4px;
	margin: 0.5rem 0;
}

.specimen__tier--t1 {
	border-color: var(--oxblood);
	background: rgba(122, 40, 24, 0.05);
}

.specimen__tier--t2 {
	border-color: var(--gold);
	background: rgba(184, 149, 82, 0.08);
}

.specimen__tier--t3 {
	border-color: var(--gold);
	background: rgba(184, 149, 82, 0.05);
}

.specimen__tier--t4 {
	border-color: var(--mute);
	background: rgba(140, 131, 112, 0.08);
}

.specimen--featured .specimen__tier {
	border-color: var(--gold);
	background: rgba(184, 149, 82, 0.12);
}

.tier-label {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.tier-value {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.1rem;
	color: var(--ink);
}

.specimen--featured .tier-value {
	color: var(--paper);
}

/* ─── Pyramid ────────────────────────────────────────────────────────── */

.pyramid {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	max-width: 460px;
	margin-left: auto;
}

.pyramid__tier {
	display: grid;
	grid-template-columns: 40px 1fr;
	align-items: center;
	padding: 0.9rem 1.25rem;
	border: 1px solid var(--ink);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pyramid__tier:hover {
	transform: translateX(-4px);
}

.pyramid__tier--1 {
	width: 100%;
	background: var(--oxblood);
	color: var(--paper);
	border-color: var(--oxblood);
}

.pyramid__tier--2 {
	width: 92%;
	background: var(--oxblood-deep);
	color: var(--paper);
	border-color: var(--oxblood-deep);
}

.pyramid__tier--3 {
	width: 82%;
	background: var(--gold);
	color: var(--ink);
	border-color: var(--gold);
}

.pyramid__tier--4 {
	width: 70%;
	background: var(--paper-deep);
	color: var(--ink);
}

.pyramid__tier--5 {
	width: 56%;
	background: var(--paper-alt);
	color: var(--ink);
}

.pyramid__tier--6 {
	width: 42%;
	background: var(--paper);
	color: var(--mute);
	border-color: var(--mute);
}

.pyramid__num {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	font-weight: 500;
}

.pyramid__label {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-style: italic;
	line-height: 1.2;
}

/* ─── Cautions ───────────────────────────────────────────────────────── */

.cautions {
	list-style: none;
	max-width: 62ch;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.cautions li {
	padding: 1.25rem 0 1.25rem 2.5rem;
	border-top: 1px solid var(--rule);
	position: relative;
	font-size: 1.1rem;
	line-height: 1.55;
	color: var(--ink-soft);
	counter-increment: caution;
}

.cautions {
	counter-reset: caution;
}

.cautions li::before {
	content: counter(caution, upper-roman) ".";
	position: absolute;
	left: 0;
	top: 1.25rem;
	font-family: var(--font-display);
	font-style: italic;
	color: var(--oxblood);
	font-size: 1.25rem;
}

.cautions strong {
	font-weight: 500;
	color: var(--ink);
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.25em;
	margin-right: 0.5em;
	letter-spacing: -0.01em;
}

/* ─── Colophon ───────────────────────────────────────────────────────── */

.colophon {
	background: var(--ink);
	color: var(--paper);
	padding: clamp(5rem, 10vh, 8rem) var(--gutter);
	position: relative;
}

.colophon__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 3rem;
	max-width: 1400px;
	margin: 0 auto;
}

.colophon__col h4 {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--gold);
	font-weight: 500;
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid rgba(237, 227, 206, 0.2);
}

.colophon__col p {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--paper-deep);
}

.colophon__col em {
	color: var(--paper);
	font-style: italic;
}

.colophon__rule {
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		var(--paper-deep) 20%,
		var(--paper-deep) 80%,
		transparent
	);
	margin: clamp(4rem, 8vh, 6rem) auto 2rem;
	max-width: 1400px;
}

.colophon__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	font-family: var(--font-display);
	font-style: italic;
	color: var(--mute-soft);
	font-size: 1.1rem;
	letter-spacing: 0.02em;
}

.colophon__mark span:nth-child(2n + 1) {
	color: var(--gold);
	font-size: 1.5em;
	line-height: 0;
}

/* ─── Scroll reveal classes (driven by JS) ──────────────────────────── */

.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.reveal--delay-1 {
	transition-delay: 0.1s;
}

.reveal--delay-2 {
	transition-delay: 0.2s;
}

.reveal--delay-3 {
	transition-delay: 0.3s;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 640px) {
	.masthead {
		grid-template-columns: 1fr auto;
		gap: 0.5rem;
		font-size: 0.7rem;
	}

	.masthead__center {
		display: none;
	}

	.hero__bond {
		opacity: 0.1;
	}

	.specimen {
		padding: 1.5rem;
	}

	.specimen__row {
		grid-template-columns: 90px 1fr;
	}

	.pyramid {
		margin-left: 0;
	}

	.dropcap::first-letter {
		font-size: 3.5em;
	}

	.prose p + p {
		text-indent: 0;
	}
}

/* ─── Reduced motion ─────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}

	.bond-spine,
	.bond-rgroups line {
		stroke-dashoffset: 0;
	}

	.bond-nodes circle,
	.bond-rtips circle {
		opacity: 1;
	}
}
