/*
	Global resets and shared primitives: eyebrow rows, pill buttons
	with rolling labels, section intros, reveal-on-scroll.
*/
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--fontSans);
	font-size: var(--textBody);
	line-height: 1.55;
	color: var(--colorBlack);
	background-color: var(--colorSnow);
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--colorBrandBlue);
	color: var(--colorBlack);
}

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

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

.visuallyHidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

section {
	width: var(--widthViewport);
	max-width: var(--widthContent);
	margin: 0 auto;
	padding: var(--sectionPadBlock) 0;
}

/* Eyebrow label + pill button row */
.eyebrowRow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.eyebrow {
	font-size: var(--textEyebrow);
	font-weight: 600;
	letter-spacing: 0.115em;
	text-transform: uppercase;
}

/* Pill button — black capsule, tiny uppercase label, rolling hover */
.pillButton {
	position: relative;
	display: inline-block;
	overflow: hidden;
	padding: 0.7rem 1.5rem;
	border: 1px solid var(--colorBlack);
	border-radius: var(--radiusPill);
	background: var(--colorBlack);
	color: var(--colorWhite);
	font-family: var(--fontSans);
	font-size: var(--textEyebrow);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
}

.pillButton--small {
	padding: 0.55rem 1.2rem;
}

.pillButton--inverted {
	background: var(--colorWhite);
	border-color: var(--colorWhite);
	color: var(--colorBlack);
}

.pillButton--outline {
	background: transparent;
	border-color: var(--colorLineOnBlack);
	color: var(--colorWhite);
}

.pillButton .rollLabel__face {
	display: block;
	transition: transform var(--durationRoll) var(--easeSnap);
}

.pillButton .rollLabel__face--ghost {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding: 0.7rem 1.5rem;
	transform: translateY(100%);
}

.pillButton--small .rollLabel__face--ghost {
	padding: 0.55rem 1.2rem;
}

.pillButton:hover .rollLabel__face {
	transform: translateY(-100%);
}

.pillButton:hover .rollLabel__face--ghost {
	transform: translateY(0);
}

/* Section intro — eyebrow row, huge bold title, lede paragraph */
.sectionIntro__title {
	font-size: var(--textSection);
	font-weight: 700;
	line-height: var(--leadingSection);
	letter-spacing: var(--trackingDisplay);
	margin-top: clamp(1.5rem, 5vh, 3rem);
}

.sectionIntro__lede {
	max-width: 30rem;
	margin-top: clamp(1.25rem, 3.5vh, 2rem);
	font-size: var(--textBody);
}

.sectionIntro--tight {
	padding-bottom: 0;
}

/* Reveal-on-scroll primitive — toggled by js/siteChrome.js */
[data-reveal] {
	opacity: 0;
	transform: translateY(1.6rem);
	transition:
		opacity var(--durationReveal) var(--easeOut) var(--reveal-delay, 0s),
		transform var(--durationReveal) var(--easeOut) var(--reveal-delay, 0s);
}

[data-reveal].isRevealed {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	[data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.pillButton .rollLabel__face,
	.pillButton .rollLabel__face--ghost {
		transition: none;
	}
}

@media (max-width: 720px) {
	section {
		width: min(100% - 2rem, var(--widthContent));
	}

	.pillButton {
		max-width: 100%;
	}
}
