/*
 * Base layer: the reset, page typography, and the handful of primitives that more than
 * one section uses. Anything that belongs to a single section lives in that section's
 * own stylesheet instead.
 */

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

html {
	scroll-behavior: smooth;
}

body {
	background: var(--w);
	color: var(--k);
	font-family: var(--font-body);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}

button {
	font-family: inherit;
	cursor: pointer;
}

a {
	color: inherit;
}

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

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ─── Scroll reveal ───
   Elements marked .rv start offset and fade up once they enter the viewport.
   The .in class is added by assets/js/reveal.js. */

.rv {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.rv.in {
	opacity: 1;
	transform: none;
}

/* Without JS nothing would ever gain .in, so the content must not depend on it. */
.no-js .rv {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.rv {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ─── The arrow mark ───
   A single inline SVG symbol, referenced by <use> wherever the mark appears. */

.arrow-mark {
	display: inline-block;
	flex-shrink: 0;
	line-height: 0;
}

.arrow-mark svg {
	display: block;
	width: 100%;
	height: 100%;
}

.arrow-sm {
	width: 28px;
	height: 28px;
}

/* ─── Section primitives ─── */

/* Eyebrow label above a section heading, e.g. "01 · Who We Are". */
.tag {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--dim);
}

.tag::before {
	content: "";
	width: 10px;
	height: 10px;
	background: var(--olive);
}

.tag.on-dark {
	color: rgba(255, 255, 255, 0.75);
}

.tag.on-dark::before {
	background: var(--sage);
}

/* Olive marker behind a run of headline text. box-decoration-break keeps the
   highlight intact when the phrase wraps across lines. */
.hl {
	background: var(--olive);
	color: var(--k);
	padding: 0 0.08em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.hl-ink {
	background: var(--k) !important;
	color: var(--paper) !important;
}

.mono {
	font-family: var(--font-mono);
}

h2.sec {
	margin-top: 20px;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(42px, 5.5vw, 76px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 36px;
	flex-wrap: wrap;
}

.sec-note {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.18em;
	line-height: 2;
	text-align: right;
	text-transform: uppercase;
}
