/* ==========================================================================
   MAGE — design system
   45% minimalism · 30% Swiss design · 15% modernism · 10% luxury minimalism

   Rules enforced in this file:
   - No gradient functions. Not linear-, radial-, conic-, or repeating-.
     Every surface is a flat colour. Every rule is a 1px flat line.
   - One accent colour, used as punctuation rather than decoration.
   - Motion is transform + opacity only, and always opt-out safe.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
	/* Surfaces */
	--paper: #f5f4f0; /* bone, warmer than white */
	--paper-2: #efeee8;
	--paper-3: #e8e7e0;
	--ink: #121211; /* near-black, never pure */
	--ink-2: #1c1c1a;

	/* Text */
	--text: #121211;
	--text-2: #4a4a45;
	--text-3: #75746d;
	--text-invert: #f5f4f0;
	--text-invert-2: #a3a19a;

	/* Lines */
	--rule: #d9d8d0;
	--rule-strong: #c3c2b8;
	--rule-invert: #2e2e2b;

	/* Accent — signal red, borrowed from Swiss print */
	--accent: #bf3f24;
	--accent-ink: #ffffff;

	/* Type */
	--font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

	/* Rhythm */
	--gutter: 1.5rem;
	--header-h: 4.5rem;

	/* Motion */
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--dur-1: 0.4s;
	--dur-2: 0.7s;
	--dur-3: 1.1s;
}

@media (min-width: 1024px) {
	:root {
		--gutter: 2.5rem;
		--header-h: 5rem;
	}
}

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

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

body {
	margin: 0;
	background-color: var(--paper);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.6;
	font-feature-settings:
		'kern' 1,
		'liga' 1,
		'cv05' 1,
		'ss03' 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

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

button {
	font: inherit;
	color: inherit;
}

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

/* Visible, high-contrast focus for keyboard users only. */
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 1px;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 200;
	padding: 0.75rem 1.25rem;
	background-color: var(--ink);
	color: var(--text-invert);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: top var(--dur-1) var(--ease-out);
}

.skip-link:focus {
	top: 1rem;
}

/* --------------------------------------------------------------------------
   3. Typography scale
   -------------------------------------------------------------------------- */

/* Display: tight, optically corrected, Swiss-grotesque proportions. */
.display {
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 0.92;
	text-wrap: balance;
}

.display-xl {
	font-size: clamp(2.75rem, 11.5vw, 10.5rem);
}

.display-l {
	font-size: clamp(2.25rem, 6.5vw, 5.25rem);
}

.display-m {
	font-size: clamp(1.75rem, 3.6vw, 2.2rem);
	letter-spacing: -0.025em;
	line-height: 1.02;
}

/* Label: the Swiss caption. Mono, uppercase, wide. */
.label {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--text-3);
}

.label--ink {
	color: var(--text);
}

.label--accent {
	color: var(--accent);
}

.label--invert {
	color: var(--text-invert-2);
}

.mono {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
}

/* Body copy inside legal documents and long sections. */
.prose {
	max-width: 68ch;
	color: var(--text-2);
}

.prose > * + * {
	margin-top: 1.15em;
}

.prose h2 {
	margin-top: 3.25rem;
	margin-bottom: 0.35rem;
	color: var(--text);
	font-size: 1.375rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.25;
	text-wrap: balance;
}

.prose h3 {
	margin-top: 2rem;
	margin-bottom: 0.25rem;
	color: var(--text);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.prose p,
.prose li {
	font-size: 0.9375rem;
	line-height: 1.72;
}

/* Explicit list styles: Tailwind's preflight strips markers by default. */
.prose ul,
.prose ol {
	margin-top: 0.85em;
	padding-left: 1.15rem;
	list-style-position: outside;
}

.prose ul {
	list-style-type: disc;
}

.prose ol {
	list-style-type: decimal;
}

.prose li + li {
	margin-top: 0.5em;
}

.prose li::marker {
	color: var(--rule-strong);
}

.prose a {
	color: var(--text);
	border-bottom: 1px solid var(--rule-strong);
	transition: border-color var(--dur-1) var(--ease-out);
}

.prose a:hover {
	border-color: var(--accent);
}

.prose strong {
	color: var(--text);
	font-weight: 600;
}

.prose--legal > h2:first-child {
	margin-top: 0;
}

.prose code {
	padding: 0.1em 0.35em;
	background-color: var(--paper-3);
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 0.8125em;
}

/* Legal tables: hairline rules only, no fills. */
.prose table {
	width: 100%;
	margin-top: 1.5em;
	border-collapse: collapse;
	border-top: 1px solid var(--rule-strong);
	font-size: 0.8125rem;
	text-align: left;
}

.prose caption {
	margin-bottom: 0.75em;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-3);
	text-align: left;
}

.prose th,
.prose td {
	padding: 0.75rem 1rem 0.75rem 0;
	border-bottom: 1px solid var(--rule);
	vertical-align: top;
	line-height: 1.5;
}

.prose thead th {
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-3);
	white-space: nowrap;
}

.prose tbody tr:last-child th,
.prose tbody tr:last-child td {
	border-bottom-color: var(--rule-strong);
}

.prose td:first-child {
	color: var(--text);
}

/* Long tables scroll rather than overflow on small screens. */
@media (max-width: 640px) {
	.prose table {
		display: block;
		overflow-x: auto;
		white-space: normal;
	}
}

/* --------------------------------------------------------------------------
   4. Layout — the grid
   -------------------------------------------------------------------------- */
.shell {
	width: 100%;
	max-width: 90rem;
	margin: 0 auto;
	padding-inline: var(--gutter);
}

/* Flat 1px rules. The whole design is drawn with these. */
.rule-t {
	border-top: 1px solid var(--rule);
}

.rule-b {
	border-bottom: 1px solid var(--rule);
}

.rule-l {
	border-left: 1px solid var(--rule);
}

.rule-r {
	border-right: 1px solid var(--rule);
}

.on-ink {
	background-color: var(--ink);
	color: var(--text-invert);
}

.on-ink .rule-t,
.on-ink .rule-b,
.on-ink .rule-l,
.on-ink .rule-r {
	border-color: var(--rule-invert);
}

/* Decorative vertical grid lines, drawn as flat 1px elements. */
.grid-lines {
	position: absolute;
	inset: 0;
	pointer-events: none;
	display: flex;
	justify-content: space-between;
	z-index: 0;
}

.grid-lines span {
	display: block;
	width: 1px;
	background-color: var(--rule);
	opacity: 0.75;
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 1.4s var(--ease-out);
}

.grid-lines span:nth-child(2) {
	transition-delay: 0.08s;
}
.grid-lines span:nth-child(3) {
	transition-delay: 0.16s;
}
.grid-lines span:nth-child(4) {
	transition-delay: 0.24s;
}
.grid-lines span:nth-child(5) {
	transition-delay: 0.32s;
}

.is-ready .grid-lines span {
	transform: scaleY(1);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: var(--paper);
	border-bottom: 1px solid transparent;
	transition: border-color var(--dur-1) var(--ease-out);
}

.site-header.is-stuck {
	border-bottom-color: var(--rule);
}

.wordmark {
	display: inline-flex;
	align-items: center;
	/* The letterspacing above already leaves a trailing gap after the E, so
	   the dot needs less of its own than it looks like it should. */
	gap: 0.1875rem;
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	line-height: 1;
}

.wordmark__dot {
	width: 5px;
	height: 5px;
	background-color: var(--accent);
	border-radius: 50%;
	flex: none;
	transition: transform var(--dur-2) var(--ease-out);
}

.wordmark:hover .wordmark__dot {
	transform: scale(1.9);
}

/* Nav link: rule grows from the left, no colour circus. */
.nav-link {
	position: relative;
	padding-block: 0.35rem;
	color: var(--text-2);
	transition: color var(--dur-1) var(--ease-out);
}

.nav-link::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background-color: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dur-2) var(--ease-out);
}

.nav-link:hover,
.nav-link.is-active {
	color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
	transform: scaleX(1);
}

/* Scroll progress: a single 1px accent line. */
.scroll-progress {
	position: absolute;
	left: 0;
	bottom: -1px;
	height: 1px;
	width: 100%;
	background-color: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	will-change: transform;
}

/* Mobile menu */
.menu-toggle span {
	display: block;
	width: 18px;
	height: 1px;
	background-color: var(--text);
	transition:
		transform var(--dur-1) var(--ease-out),
		opacity var(--dur-1) var(--ease-out);
}

.menu-toggle span + span {
	margin-top: 5px;
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) {
	transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded='true'] span:nth-child(3) {
	transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu {
	display: grid;
	grid-template-rows: 0fr;
	overflow: hidden;
	background-color: var(--paper);
	transition: grid-template-rows var(--dur-2) var(--ease-in-out);
}

.mobile-menu[data-open='true'] {
	grid-template-rows: 1fr;
}

.mobile-menu > div {
	min-height: 0;
	overflow: hidden;
}

.mobile-menu a {
	opacity: 0;
	transform: translateY(-0.5rem);
	transition:
		opacity var(--dur-2) var(--ease-out),
		transform var(--dur-2) var(--ease-out);
}

.mobile-menu[data-open='true'] a {
	opacity: 1;
	transform: translateY(0);
}

.mobile-menu[data-open='true'] a:nth-child(1) {
	transition-delay: 0.06s;
}
.mobile-menu[data-open='true'] a:nth-child(2) {
	transition-delay: 0.12s;
}
.mobile-menu[data-open='true'] a:nth-child(3) {
	transition-delay: 0.18s;
}
.mobile-menu[data-open='true'] a:nth-child(4) {
	transition-delay: 0.24s;
}

/* --------------------------------------------------------------------------
   6. Buttons — two flat variants, nothing else
   -------------------------------------------------------------------------- */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 0.9375rem 1.5rem;
	border: 1px solid var(--ink);
	background-color: var(--ink);
	color: var(--text-invert);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
	transition:
		color var(--dur-2) var(--ease-out),
		border-color var(--dur-2) var(--ease-out);
}

/* Flat colour wipe on hover. A solid block sliding up — not a gradient. */
.btn::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--accent);
	transform: translateY(101%);
	transition: transform var(--dur-2) var(--ease-out);
}

.btn:hover::before,
.btn:focus-visible::before {
	transform: translateY(0);
}

.btn:hover,
.btn:focus-visible {
	border-color: var(--accent);
	color: var(--accent-ink);
}

.btn__arrow {
	transition: transform var(--dur-2) var(--ease-out);
}

.btn:hover .btn__arrow {
	transform: translateX(4px);
}

.btn--ghost {
	background-color: transparent;
	color: var(--text);
	border-color: var(--rule-strong);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
	color: var(--accent-ink);
}

.btn--invert {
	background-color: var(--paper);
	border-color: var(--paper);
	color: var(--ink);
}

.btn--block {
	width: 100%;
}

.btn[disabled],
.btn[aria-disabled='true'] {
	opacity: 0.45;
	pointer-events: none;
}

/* Text link with an animated rule. */
.link-rule {
	position: relative;
	display: inline-block;
	padding-bottom: 2px;
}

.link-rule::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background-color: currentColor;
	transform-origin: right;
	transition: transform var(--dur-2) var(--ease-out);
}

.link-rule:hover::after {
	transform: scaleX(0);
}

/* --------------------------------------------------------------------------
   7. Reveal animations
   -------------------------------------------------------------------------- */

/* Word / line mask reveal for headlines. */
.reveal-text {
	display: block;
}

/* Padding + negative margin stops the mask clipping descenders (g, y, p). */
.reveal-text .rt-line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.12em;
	margin-bottom: -0.12em;
}

.reveal-text .rt-inner {
	display: block;
	transform: translateY(105%);
	transition: transform var(--dur-3) var(--ease-out);
	transition-delay: var(--rt-delay, 0s);
}

.reveal-text.is-in .rt-inner {
	transform: translateY(0);
}

/* Generic scroll reveal. */
[data-reveal] {
	opacity: 0;
	transform: translateY(1.5rem);
	transition:
		opacity var(--dur-2) var(--ease-out),
		transform var(--dur-2) var(--ease-out);
	transition-delay: var(--reveal-delay, 0s);
}

[data-reveal='fade'] {
	transform: none;
}

[data-reveal='left'] {
	transform: translateX(-1.5rem);
}

[data-reveal='scale'] {
	transform: scale(0.97);
}

[data-reveal].is-in {
	opacity: 1;
	transform: none;
}

/* Horizontal rule that draws itself. */
[data-draw] {
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dur-3) var(--ease-out);
	transition-delay: var(--reveal-delay, 0s);
}

[data-draw].is-in {
	transform: scaleX(1);
}

/* Blur-in for small metadata blocks. */
[data-reveal='blur'] {
	filter: blur(6px);
	transform: none;
}

[data-reveal='blur'].is-in {
	filter: blur(0);
}

/* --------------------------------------------------------------------------
   8. Marquee
   -------------------------------------------------------------------------- */
.marquee {
	display: flex;
	overflow: hidden;
	user-select: none;
}

.marquee__track {
	display: flex;
	flex: none;
	align-items: center;
	gap: 0;
	min-width: 100%;
	animation: marquee-scroll var(--marquee-duration, 45s) linear infinite;
}

.marquee:hover .marquee__track {
	animation-play-state: paused;
}

.marquee__item {
	display: inline-flex;
	align-items: center;
	gap: 1.75rem;
	padding-inline: 1.75rem;
	white-space: nowrap;
}

.marquee__item::after {
	content: '';
	width: 4px;
	height: 4px;
	background-color: var(--accent);
	border-radius: 50%;
	flex: none;
	opacity: 0.9;
}

@keyframes marquee-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */

/* Capability / plan cell: a hairline draws across the top on hover. */
.cell {
	position: relative;
	background-color: transparent;
	transition: background-color var(--dur-2) var(--ease-out);
}

.cell::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dur-2) var(--ease-out);
}

.cell:hover::before,
.cell:focus-within::before {
	transform: scaleX(1);
}

.cell:hover {
	background-color: var(--paper-2);
}

.cell__index {
	transition: color var(--dur-2) var(--ease-out);
}

.cell:hover .cell__index {
	color: var(--accent);
}

.cell__title {
	transition: transform var(--dur-2) var(--ease-out);
}

@media (min-width: 768px) {
	.cell:hover .cell__title {
		transform: translateX(0.375rem);
	}
}

/* Pricing plan */
.plan {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: transparent;
	transition: background-color var(--dur-2) var(--ease-out);
}

.plan:hover {
	background-color: var(--paper-2);
}

.plan--featured {
	background-color: var(--ink);
	color: var(--text-invert);
}

.plan--featured:hover {
	background-color: var(--ink-2);
}

.plan--featured .label {
	color: var(--text-invert-2);
}

.plan__check {
	flex: none;
	width: 9px;
	height: 1px;
	margin-top: 0.7rem;
	background-color: var(--rule-strong);
}

.plan--featured .plan__check {
	background-color: var(--accent);
}

/* Step marker */
.step {
	position: relative;
}

.step__num {
	transition: color var(--dur-2) var(--ease-out);
}

.step:hover .step__num {
	color: var(--accent);
}

/* Sticky progress spine for the process section. */
.spine {
	position: relative;
	width: 1px;
	background-color: var(--rule);
}

.spine__fill {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 100%;
	background-color: var(--accent);
	transform: scaleY(0);
	transform-origin: top;
	will-change: transform;
}

/* --------------------------------------------------------------------------
   10. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.acc__trigger {
	display: flex;
	width: 100%;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1.5rem;
	background: none;
	border: 0;
	text-align: left;
	cursor: pointer;
}

.acc__q {
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.4;
	transition: color var(--dur-1) var(--ease-out);
}

@media (min-width: 768px) {
	.acc__q {
		font-size: 1.125rem;
	}
}

.acc__trigger:hover .acc__q,
.acc__trigger[aria-expanded='true'] .acc__q {
	color: var(--accent);
}

/* Plus / minus drawn from two flat 1px rules. */
.acc__icon {
	position: relative;
	flex: none;
	width: 13px;
	height: 13px;
	margin-top: 0.35rem;
}

.acc__icon::before,
.acc__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	width: 13px;
	height: 1px;
	background-color: currentColor;
	transition: transform var(--dur-2) var(--ease-out);
}

.acc__icon::after {
	transform: rotate(90deg);
}

.acc__trigger[aria-expanded='true'] .acc__icon::after {
	transform: rotate(0deg);
}

.acc__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows var(--dur-2) var(--ease-in-out);
}

.acc__panel[data-open='true'] {
	grid-template-rows: 1fr;
}

.acc__panel > div {
	min-height: 0;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.field {
	position: relative;
}

.field__label {
	display: block;
	margin-bottom: 0.5rem;
}

.field__input,
.field__select,
.field__textarea {
	width: 100%;
	padding: 0.8125rem 0;
	border: 0;
	border-bottom: 1px solid var(--rule-strong);
	background-color: transparent;
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 0.9375rem;
	line-height: 1.5;
	border-radius: 0;
	appearance: none;
	transition: border-color var(--dur-1) var(--ease-out);
}

.field__textarea {
	min-height: 6.5rem;
	resize: vertical;
}

.field__input::placeholder,
.field__textarea::placeholder {
	color: var(--text-3);
	opacity: 0.7;
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
	outline: none;
	border-bottom-color: var(--accent);
}

.field__input:focus-visible,
.field__select:focus-visible,
.field__textarea:focus-visible {
	outline: none;
}

.field__select {
	cursor: pointer;
	padding-right: 1.75rem;
}

/* Flat caret drawn with a rotated square, no background image. */
.field__caret {
	position: absolute;
	right: 2px;
	bottom: 1.375rem;
	width: 6px;
	height: 6px;
	border-right: 1px solid var(--text-3);
	border-bottom: 1px solid var(--text-3);
	transform: rotate(45deg);
	pointer-events: none;
}

.field--error .field__input,
.field--error .field__select,
.field--error .field__textarea {
	border-bottom-color: var(--accent);
}

.field__error {
	display: block;
	margin-top: 0.5rem;
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
}

/* Square checkbox, drawn with borders. */
.check {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	cursor: pointer;
}

.check__box {
	position: relative;
	flex: none;
	width: 15px;
	height: 15px;
	margin-top: 0.1875rem;
	border: 1px solid var(--rule-strong);
	background-color: transparent;
	transition:
		border-color var(--dur-1) var(--ease-out),
		background-color var(--dur-1) var(--ease-out);
}

.check__box::after {
	content: '';
	position: absolute;
	left: 3px;
	top: 3px;
	width: 7px;
	height: 7px;
	background-color: var(--accent);
	transform: scale(0);
	transition: transform var(--dur-1) var(--ease-out);
}

.check input:checked + .check__box::after {
	transform: scale(1);
}

.check input:checked + .check__box {
	border-color: var(--accent);
}

.check input:focus-visible + .check__box {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.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;
}

/* Honeypot: off-canvas rather than display:none, which bots detect. */
.hp-field {
	position: absolute !important;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Notices */
.notice {
	border: 1px solid var(--rule-strong);
	padding: 1.25rem 1.5rem;
}

.notice--ok {
	border-color: var(--ink);
}

.notice--error {
	border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   12. Counters
   -------------------------------------------------------------------------- */
.counter {
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer-word {
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 0.78;
	font-size: clamp(3.5rem, 19vw, 17rem);
	color: var(--rule-invert);
	user-select: none;
}

.footer-link {
	position: relative;
	display: inline-block;
	color: var(--text-invert-2);
	transition: color var(--dur-1) var(--ease-out);
}

.footer-link:hover {
	color: var(--text-invert);
}

/* --------------------------------------------------------------------------
   14. Reduced motion — everything above degrades to static
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

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

	[data-reveal],
	.reveal-text .rt-inner,
	[data-draw],
	.grid-lines span {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}

	.marquee__track {
		animation: none !important;
	}
}

/* --------------------------------------------------------------------------
   15. Print — legal pages should print cleanly
   -------------------------------------------------------------------------- */
@media print {
	.site-header,
	.site-footer,
	.no-print {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	.prose {
		max-width: none;
	}

	a::after {
		content: ' (' attr(href) ')';
		font-size: 0.75em;
		color: #555;
	}
}
