/*
 * The Axis · component + animation styles
 * ---------------------------------------
 * Component-level CSS that depends on the tokens defined in tokens.css.
 * Keep this lean. Anything reusable across components belongs in tokens.css.
 */

/* ---------- 0. Reset (lightweight, scoped to what we ship) ------------- */

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--text-body);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

/* AAA reading measure. Wrap long-form prose in .axis-prose. */
.axis-prose {
	max-width: var(--width-read);
	margin-inline: auto;
}

/* ---------- 1. Skip link ---------------------------------------------- */

.skip-link {
	position: absolute;
	top: var(--s2);
	left: var(--s2);
	padding: 12px 16px;
	background: var(--ink);
	color: var(--yellow);
	font-family: var(--font-display);
	font-size: 14px;
	letter-spacing: 0.04em;
	text-transform: lowercase;
	text-decoration: none;
	border: var(--rule);
	transform: translateY(-200%);
	transition: transform 150ms var(--ease-axis);
	z-index: 100;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 2. Focus ring (2.4.13, AAA) ------------------------------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--focus-ring);
	outline-offset: var(--focus-offset);
}

/* ---------- 3. Header --------------------------------------------------- */

.axis-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s3);
	padding: var(--s3) var(--s4);
	background: var(--paper);
	border-bottom: var(--rule);
	max-width: var(--width-full);
	margin-inline: auto;
}
.axis-header__brand {
	display: inline-flex;
	align-items: center;
	gap: var(--s2);
	color: var(--ink);
	text-decoration: none;
	font-family: var(--font-display);
	font-size: 18px;
	letter-spacing: -0.02em;
	text-transform: lowercase;
}
.axis-header__brand svg { width: 28px; height: 28px; flex: 0 0 auto; }
.axis-header__nav {
	display: flex;
	gap: var(--s4);
	font-family: var(--font-display);
	font-size: 14px;
	letter-spacing: -0.01em;
	text-transform: lowercase;
}
.axis-header__nav a {
	color: var(--ink);
	text-decoration: none;
	min-height: var(--target-min);
	display: inline-flex;
	align-items: center;
	padding-inline: var(--s2);
}
.axis-header__nav a[aria-current="page"] {
	border-bottom: 4px solid var(--ink);
}
.axis-header__nav a:hover { color: var(--red-deep); }

/* ---------- 4. Hero (the "gentle" animated reveal) -------------------- */

.axis-hero {
	max-width: var(--width-full);
	margin-inline: auto;
	padding: var(--s6) var(--s4);
	display: grid;
	gap: var(--s3);
}
.axis-hero__eyebrow {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink);
}
.axis-hero__title {
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 6vw + 1rem, 6rem);
	line-height: 0.95;
	letter-spacing: -0.04em;
	text-transform: lowercase;
	color: var(--ink);
	margin: 0;
}
.axis-hero__lede {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: clamp(1.125rem, 1vw + 1rem, 1.5rem);
	line-height: 1.45;
	max-width: 60ch;
	color: var(--ink);
}
.axis-hero__rule {
	display: block;
	height: 2px;
	background: var(--ink);
	width: 100%;
	max-width: 240px;
}

/* Gentle reveal: translateY slide only, no opacity fade. The "rise"
 * conveys "gentle" without changing color at any point, and the brand
 * guide's no-opacity rule keeps automated AAA contrast scanners clean. */
@media (prefers-reduced-motion: no-preference) {
	.axis-hero > * {
		animation: axis-rise 0.6s var(--ease-axis) both;
	}
	.axis-hero > *:nth-child(1) { animation-delay: 0.05s; }
	.axis-hero > *:nth-child(2) { animation-delay: 0.15s; }
	.axis-hero > *:nth-child(3) { animation-delay: 0.25s; }
	.axis-hero > *:nth-child(4) { animation-delay: 0.35s; }
	.axis-hero__rule {
		transform-origin: left;
		animation: axis-rule 0.8s ease 0.35s both;
	}
}
@keyframes axis-rise {
	from { transform: translateY(8px); }
	to   { transform: none; }
}
@keyframes axis-rule {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
	.axis-hero > *, .axis-hero__rule { animation: none; transform: none; }
}

/* ---------- 5. Buttons -------------------------------------------------- */

.axis-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--target-min);
	min-width: var(--target-min);
	padding: 0 22px;
	background: var(--red-deep);
	color: var(--paper);
	font-family: var(--font-display);
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: lowercase;
	text-decoration: none;
	border: var(--rule);
	cursor: pointer;
}
.axis-btn:hover { background: var(--paper); color: var(--ink); }
.axis-btn--secondary { background: var(--blue-dark); }
.axis-btn--secondary:hover { background: var(--paper); color: var(--ink); }
.axis-btn--ghost { background: var(--paper); color: var(--ink); }
.axis-btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- 6. Tour facade (click-to-load) ---------------------------- */

.axis-tour {
	position: relative;
	display: block;
	background: var(--ink);
	border: var(--rule);
	aspect-ratio: 16 / 9;
	overflow: hidden;
}
.axis-tour__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.axis-tour__button {
	position: absolute;
	inset: auto var(--s3) var(--s3) var(--s3);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s2);
	min-height: var(--target-min);
	padding: 0 22px;
	background: var(--yellow);
	color: var(--ink);
	border: var(--rule);
	font-family: var(--font-display);
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: lowercase;
	cursor: pointer;
}
.axis-tour__button:hover { background: var(--ink); color: var(--yellow); }
.axis-tour__meta {
	position: absolute;
	top: var(--s3);
	left: var(--s3);
	padding: 6px 10px;
	background: var(--ink);
	color: var(--yellow);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.axis-tour iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- 7. Card grid ---------------------------------------------- */

.axis-grid {
	display: grid;
	gap: var(--s4);
	max-width: var(--width-full);
	margin-inline: auto;
	padding: var(--s5) var(--s4);
}
.axis-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.axis-card {
	background: var(--paper);
	border: var(--rule);
	padding: var(--s3);
	display: flex;
	flex-direction: column;
	gap: var(--s2);
}
.axis-card__band { height: 48px; margin: calc(-1 * var(--s3)) calc(-1 * var(--s3)) var(--s3); border-bottom: var(--rule); }
.axis-card__band--red { background: var(--red-deep); }
.axis-card__band--yellow { background: var(--yellow); }
.axis-card__band--blue { background: var(--blue-dark); }
.axis-card__eyebrow {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--red-deep);
}
.axis-card__title {
	font-family: var(--font-display);
	font-size: 18px;
	color: var(--ink);
	text-transform: lowercase;
	letter-spacing: -0.01em;
	margin: 0;
}
.axis-card__body { color: var(--ink); }

/* ---------- 8. Section header ---------------------------------------- */

.axis-section {
	max-width: var(--width-full);
	margin-inline: auto;
	padding: var(--s5) var(--s4);
}
.axis-section__head {
	display: flex;
	align-items: baseline;
	gap: var(--s3);
	margin-bottom: var(--s4);
	padding-bottom: var(--s2);
	border-bottom: var(--rule);
}
.axis-section__num {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--red-deep);
}
.axis-section__title,
.wp-block-post-title.axis-section__title {
	font-family: var(--font-display);
	font-size: var(--text-h2);
	letter-spacing: -0.03em;
	text-transform: lowercase;
	color: var(--ink);
	line-height: 1;
	margin: 0;
}

/* ---------- 9. Forms (Contact) --------------------------------------- */

.axis-form { display: grid; gap: var(--s3); max-width: 560px; }
.axis-field { display: grid; gap: var(--s1); }
.axis-field__label {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink);
}
.axis-field__input, .axis-field__textarea {
	border: var(--rule);
	background: var(--white);
	padding: 11px 12px;
	font-family: var(--font-body);
	font-size: 16px;
	color: var(--ink);
	min-height: var(--target-min);
	width: 100%;
}
.axis-field__textarea { min-height: 144px; line-height: 1.5; resize: vertical; }
.axis-field__help { font-size: 12px; color: var(--graphite); }
.axis-field--error .axis-field__input,
.axis-field--error .axis-field__textarea {
	border-color: var(--red-deep);
	background: var(--red-pale);
}
.axis-field__error { font-size: 12px; color: var(--red-deep); font-weight: 500; }

/* ---------- 10. Footer ------------------------------------------------- */

.axis-footer {
	background: var(--ink);
	color: var(--paper);
	padding: var(--s5) var(--s4) 0;
	border-top: var(--rule);
}
.axis-footer__inner {
	max-width: var(--width-full);
	margin-inline: auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--s4);
	padding-bottom: var(--s5);
}
.axis-footer__title {
	font-family: var(--font-display);
	font-size: 14px;
	color: var(--yellow);
	text-transform: lowercase;
	letter-spacing: -0.01em;
	margin: 0 0 var(--s2);
}
.axis-footer ul { list-style: none; padding: 0; margin: 0; line-height: 1.9; }
.axis-footer a { color: var(--paper); text-decoration: none; }
.axis-footer a:hover { color: var(--yellow); text-decoration: underline; }
.axis-footer__base {
	background: var(--red-deep);
	color: var(--paper);
	padding: var(--s2) var(--s4);
	margin-inline: calc(-1 * var(--s4));
	display: flex;
	justify-content: space-between;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ---------- 11. Breadcrumb ------------------------------------------- */

.axis-breadcrumb {
	max-width: var(--width-full);
	margin: 0 auto;
	padding: var(--s3) var(--s4) 0;
}
.axis-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s2);
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--graphite);
}
.axis-breadcrumb li + li::before {
	content: "/";
	margin-right: var(--s2);
	color: var(--silver);
}
.axis-breadcrumb a {
	color: var(--graphite);
	text-decoration: none;
}
.axis-breadcrumb a:hover { color: var(--red-deep); }
.axis-breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- 12. Utility ------------------------------------------------ */

.axis-eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--red-deep);
}
.axis-quote {
	border-left: 6px solid var(--yellow-amber);
	border-top: var(--rule);
	border-right: var(--rule);
	border-bottom: var(--rule);
	background: var(--yellow-pale);
	padding: var(--s3);
	font-family: var(--font-display);
	font-size: var(--text-h3);
	text-transform: lowercase;
	letter-spacing: -0.02em;
	color: var(--ink);
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
