/* =========================================================================
   CUPM Theme — main.css
   Midnight Gold. Cinematic, CSS-driven motion. No build step.

   Contents
   ť 1. Design tokens (dark + light)
   ť 2. Reset / base / typography
   ť 3. Buttons & shared primitives
   ť 4. Header & navigation
   ť 5. Hero (animated)
   ť 6. Scroll reveal system
   ť 7. Homepage sections
   ť 8. Inner pages
   ť 9. Footer
   ť 10. Accessibility & reduced motion
   ========================================================================= */

/* ----------------------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------------------- */
:root {
	/* Brand constants (same in both schemes) */
	--navy-900: #081020;
	--navy-800: #0B1426;
	--navy-700: #122036;
	--navy-600: #1B3A6B;
	--navy-500: #274980;
	--gold: #D4A017;
	--gold-bright: #E8C766;
	--gold-deep: #A87B0F;
	--gold-grad: linear-gradient(100deg, #B8860B 0%, #E8C766 38%, #F6E3A1 50%, #E8C766 62%, #B8860B 100%);

	/* Typography */
	--font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--text-xs: 0.8125rem;
	--text-sm: 0.9375rem;
	--text-md: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	--text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
	--text-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
	--text-h2: clamp(1.9rem, 1.4rem + 2.2vw, 3.25rem);
	--text-h1: clamp(2.5rem, 1.6rem + 4.5vw, 5rem);

	/* Rhythm */
	--space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
	--container: 72rem;
	--radius: 1rem;
	--radius-lg: 1.5rem;
	--ease-out: cubic-bezier(0.22, 0.8, 0.3, 1);
	--header-h: 4.5rem;

	/* Dark scheme (default) */
	--bg: var(--navy-800);
	--bg-tint: #0E1A30;
	--bg-navy: linear-gradient(180deg, #0E1C38 0%, #0A1530 100%);
	--surface: rgba(255, 255, 255, 0.04);
	--surface-strong: rgba(255, 255, 255, 0.07);
	--border: rgba(213, 222, 240, 0.13);
	--border-gold: rgba(212, 160, 23, 0.38);
	--text: #EAF0F9;
	--text-muted: #A9B6CD;
	--text-faint: rgba(169, 182, 205, 0.55);
	--gold-text: var(--gold-bright);
	--shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
	--shadow-gold: 0 10px 40px -12px rgba(212, 160, 23, 0.35);
	--header-glass: rgba(8, 16, 32, 0.78);
	--ghost-num: rgba(213, 222, 240, 0.045);
}

[data-theme="light"] {
	--bg: #FAF7F1;
	--bg-tint: #F2EDE2;
	--bg-navy: linear-gradient(180deg, #14264A 0%, #0E1C38 100%);
	--surface: #FFFFFF;
	--surface-strong: #FFFFFF;
	--border: rgba(27, 58, 107, 0.14);
	--border-gold: rgba(168, 123, 15, 0.45);
	--text: #16243D;
	--text-muted: #4D5E7C;
	--text-faint: rgba(77, 94, 124, 0.55);
	--gold-text: var(--gold-deep);
	--shadow: 0 24px 60px -28px rgba(22, 36, 61, 0.28);
	--shadow-gold: 0 10px 36px -14px rgba(168, 123, 15, 0.4);
	--header-glass: rgba(250, 247, 241, 0.82);
	--ghost-num: rgba(27, 58, 107, 0.05);
}

/* Navy bands keep dark-surface tokens in BOTH schemes */
.section--navy,
.site-footer {
	--surface: rgba(255, 255, 255, 0.05);
	--surface-strong: rgba(255, 255, 255, 0.08);
	--border: rgba(213, 222, 240, 0.14);
	--text: #EAF0F9;
	--text-muted: #A9B6CD;
	--text-faint: rgba(169, 182, 205, 0.55);
	--gold-text: var(--gold-bright);
	--ghost-num: rgba(213, 222, 240, 0.05);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-md);
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	transition: background-color 0.35s ease, color 0.35s ease;
	overflow-x: clip;
}

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

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 0.6em;
	text-wrap: balance;
	letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--gold-text); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold); }
address { font-style: normal; }

.container { width: min(100% - 3rem, var(--container)); margin-inline: auto; }
.container.narrow { max-width: 46rem; }
.center { text-align: center; }

::selection { background: rgba(212, 160, 23, 0.35); }

/* ----------------------------------------------------------------------
   3. BUTTONS & PRIMITIVES
   ---------------------------------------------------------------------- */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.8rem 1.6rem;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	border: 1px solid transparent;
	overflow: hidden;
	white-space: nowrap;
	text-align: center;
	transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s ease, border-color 0.25s ease;
	will-change: transform;
}
.btn--lg { padding: 1.05rem 2.2rem; font-size: 1rem; }

.btn--gold {
	background: linear-gradient(120deg, #C29314 0%, var(--gold) 45%, #E3BC4D 100%);
	color: #1A1303;
	box-shadow: var(--shadow-gold);
}
.btn--gold::after {
	/* sheen sweep */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
	transform: translateX(-110%);
	transition: transform 0.6s var(--ease-out);
	pointer-events: none;
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(212, 160, 23, 0.5); color: #1A1303; }
.btn--gold:hover::after { transform: translateX(110%); }

.btn--ghost {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(234, 240, 249, 0.35);
	color: #EAF0F9;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--gold-bright); color: var(--gold-bright); }

.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
	border-radius: 4px;
}
.btn:focus-visible { border-radius: 999px; }

.kicker {
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-text);
	margin-bottom: 1.1rem;
}

.section { position: relative; padding-block: var(--space-section); }
.section--tint { background: var(--bg-tint); transition: background-color 0.35s ease; }
.section--navy { background: var(--bg-navy); color: var(--text); }

.section__title {
	font-size: var(--text-h2);
	text-align: center;
	margin-bottom: 0.5em;
}
.section__title--left { text-align: left; }
.section__subtitle {
	text-align: center;
	color: var(--text-muted);
	font-size: var(--text-lg);
	max-width: 38rem;
	margin: 0 auto 3rem;
}

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	clip: rect(0 0 0 0); clip-path: inset(50%);
	overflow: hidden; white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 200;
	padding: 0.7rem 1.2rem;
	background: var(--gold);
	color: #1A1303;
	border-radius: 0 0 0.5rem 0.5rem;
	font-weight: 600;
}
.skip-link:focus { top: 0; color: #1A1303; }

/* ----------------------------------------------------------------------
   4. HEADER & NAVIGATION
   ---------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--header-glass);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
	transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
/* Over the hero: start fully transparent, fixed so the hero sits underneath */
.site-header--overlay {
	position: fixed;
	inset-inline: 0;
	background: transparent;
	border-bottom-color: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
.site-header--overlay.is-scrolled {
	background: var(--header-glass);
	border-bottom-color: var(--border);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.5);
}
/* Text over the hero is always on dark imagery */
.site-header--overlay:not(.is-scrolled) { --text: #EAF0F9; --text-muted: #C3CDE0; }

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--header-h);
}

.site-brand__text { display: flex; align-items: center; gap: 0.7rem; color: var(--text); }
.site-brand__mark {
	display: grid;
	place-items: center;
	width: 2.4rem; height: 2.4rem;
	border-radius: 0.7rem;
	background: linear-gradient(135deg, var(--navy-600), var(--navy-500));
	border: 1px solid var(--border-gold);
	color: var(--gold-bright);
	flex: none;
}
.site-brand__mark svg { width: 1.25rem; height: 1.25rem; }
.site-brand__copy { display: flex; flex-direction: column; line-height: 1.25; }
.site-brand__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: 0.04em;
	color: var(--text);
}
.site-brand__tag { font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--text-muted); }
@media (max-width: 47.9rem) { .site-brand__tag { display: none; } }

.site-nav__list { display: flex; gap: 0.25rem; list-style: none; }
.site-nav__list a {
	position: relative;
	display: inline-block;
	padding: 0.45rem 0.85rem;
	color: var(--text-muted);
	font-size: var(--text-sm);
	font-weight: 500;
	border-radius: 999px;
	white-space: nowrap;
}
.site-nav__list a::after {
	content: "";
	position: absolute;
	left: 0.85rem; right: 0.85rem; bottom: 0.2rem;
	height: 1px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease-out);
}
.site-nav__list a:hover { color: var(--text); }
.site-nav__list a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.8rem; }

.theme-toggle {
	display: grid;
	place-items: center;
	width: 2.5rem; height: 2.5rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out);
}
.theme-toggle:hover { color: var(--gold-text); border-color: var(--border-gold); transform: rotate(15deg); }
[data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__sun { display: none; }

.nav-toggle { display: none; }

@media (max-width: 59.9rem) {
	.header-cta { display: none; }
	.nav-toggle {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 2.5rem; height: 2.5rem;
		background: transparent;
		border: 1px solid var(--border);
		border-radius: 0.6rem;
		cursor: pointer;
		padding: 0 0.55rem;
	}
	.nav-toggle__bar {
		display: block;
		height: 2px;
		width: 100%;
		background: var(--text);
		border-radius: 2px;
		transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
	}
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		background: var(--header-glass);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
		border-bottom: 1px solid var(--border);
		padding: 0.75rem 1.5rem 1.25rem;
		display: none;
	}
	.site-nav.is-open { display: block; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list a { display: block; padding: 0.8rem 0.5rem; font-size: 1.05rem; color: var(--text); }
	.site-nav__list a::after { display: none; }
}

/* ----------------------------------------------------------------------
   5. HERO — the animated centerpiece.
   Every effect here is CSS-only (transform/opacity), GPU-friendly,
   and disabled under prefers-reduced-motion (section 10).
   ---------------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	overflow: hidden;
	color: #EAF0F9;
	padding-block: calc(var(--header-h) + 3rem) 5.5rem;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: 55% 40%;
	animation: cupm-kenburns 32s ease-in-out infinite alternate;
	will-change: transform;
}
@keyframes cupm-kenburns {
	from { transform: scale(1.02) translate3d(0, 0, 0); }
	to   { transform: scale(1.12) translate3d(-1.5%, 1.2%, 0); }
}

.hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(8, 16, 32, 0.55) 0%, rgba(8, 16, 32, 0.25) 35%, rgba(11, 20, 38, 0.82) 88%, var(--navy-800) 100%),
		radial-gradient(110% 90% at 18% 38%, rgba(8, 16, 32, 0.66) 0%, rgba(8, 16, 32, 0.12) 60%);
}

/* Soft drifting glow fields (pre-blurred radial gradients; cheap to animate) */
.hero__aurora {
	position: absolute;
	width: 60vmax; height: 60vmax;
	border-radius: 50%;
	opacity: 0.5;
	pointer-events: none;
	will-change: transform;
}
.hero__aurora--gold {
	right: -18vmax; top: -22vmax;
	background: radial-gradient(circle at center, rgba(212, 160, 23, 0.32) 0%, rgba(212, 160, 23, 0.08) 38%, transparent 68%);
	animation: cupm-aurora-a 21s ease-in-out infinite alternate;
}
.hero__aurora--blue {
	left: -24vmax; bottom: -28vmax;
	background: radial-gradient(circle at center, rgba(39, 73, 128, 0.5) 0%, rgba(39, 73, 128, 0.12) 42%, transparent 70%);
	animation: cupm-aurora-b 27s ease-in-out infinite alternate;
}
@keyframes cupm-aurora-a {
	from { transform: translate3d(0, 0, 0) scale(1); }
	to   { transform: translate3d(-9vmax, 7vmax, 0) scale(1.18); }
}
@keyframes cupm-aurora-b {
	from { transform: translate3d(0, 0, 0) scale(1.1); }
	to   { transform: translate3d(8vmax, -6vmax, 0) scale(0.95); }
}

/* Floating gold dust */
.hero__dust i {
	position: absolute;
	bottom: -2vh;
	width: 4px; height: 4px;
	border-radius: 50%;
	background: var(--gold-bright);
	opacity: 0;
	animation: cupm-dust 13s linear infinite;
	will-change: transform, opacity;
}
@keyframes cupm-dust {
	0%   { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
	8%   { opacity: 0.7; }
	60%  { opacity: 0.35; }
	100% { transform: translate3d(2.5rem, -105vh, 0) scale(1.1); opacity: 0; }
}
.hero__dust i:nth-child(1)  { left: 6%;  animation-delay: 0s;    animation-duration: 14s; }
.hero__dust i:nth-child(2)  { left: 14%; animation-delay: 2.2s;  animation-duration: 17s; width: 3px; height: 3px; }
.hero__dust i:nth-child(3)  { left: 23%; animation-delay: 5s;    animation-duration: 12s; }
.hero__dust i:nth-child(4)  { left: 31%; animation-delay: 1.4s;  animation-duration: 19s; width: 2px; height: 2px; }
.hero__dust i:nth-child(5)  { left: 42%; animation-delay: 7s;    animation-duration: 15s; }
.hero__dust i:nth-child(6)  { left: 52%; animation-delay: 3.5s;  animation-duration: 13s; width: 3px; height: 3px; }
.hero__dust i:nth-child(7)  { left: 61%; animation-delay: 9s;    animation-duration: 18s; }
.hero__dust i:nth-child(8)  { left: 69%; animation-delay: 0.8s;  animation-duration: 16s; width: 2px; height: 2px; }
.hero__dust i:nth-child(9)  { left: 77%; animation-delay: 6s;    animation-duration: 14s; }
.hero__dust i:nth-child(10) { left: 84%; animation-delay: 4.2s;  animation-duration: 20s; width: 3px; height: 3px; }
.hero__dust i:nth-child(11) { left: 91%; animation-delay: 8s;    animation-duration: 13s; }
.hero__dust i:nth-child(12) { left: 96%; animation-delay: 2.8s;  animation-duration: 17s; width: 2px; height: 2px; }

.hero__content { position: relative; z-index: 1; max-width: 56rem; }

/* Entrance choreography */
.hero__kicker {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--gold-bright);
	margin-bottom: 1.6rem;
	animation: cupm-fade-up 0.9s var(--ease-out) 0.15s both;
}
.hero__kicker-line {
	width: 2.6rem; height: 1px;
	background: linear-gradient(90deg, var(--gold), transparent);
	flex: none;
	transform-origin: left;
	animation: cupm-grow-x 0.8s var(--ease-out) 0.1s both;
}

.hero__headline {
	font-size: var(--text-h1);
	font-weight: 700;
	margin-bottom: 0;
	line-height: 1.06;
	letter-spacing: -0.015em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__line-inner {
	display: inline-block;
	transform: translateY(112%);
	animation: cupm-line-up 1s var(--ease-out) 0.3s forwards;
	will-change: transform;
}
.hero__line:nth-child(2) .hero__line-inner { animation-delay: 0.48s; }
.hero__line-inner--gold {
	font-style: italic;
	background: var(--gold-grad);
	background-size: 220% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	animation: cupm-line-up 1s var(--ease-out) 0.48s forwards, cupm-shimmer 7s linear 1.8s infinite;
}
@keyframes cupm-line-up { to { transform: translateY(0); } }
@keyframes cupm-shimmer { to { background-position: 220% center; } }

.hero__rule {
	display: block;
	width: 6.5rem; height: 2px;
	margin: 1.9rem 0 1.6rem;
	background: linear-gradient(90deg, var(--gold), rgba(212, 160, 23, 0.1));
	transform-origin: left;
	animation: cupm-grow-x 0.9s var(--ease-out) 0.95s both;
}
@keyframes cupm-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__subhead {
	font-size: var(--text-lg);
	color: #C7D1E4;
	max-width: 36rem;
	margin-bottom: 2.2rem;
	animation: cupm-fade-up 0.9s var(--ease-out) 0.85s both;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	animation: cupm-fade-up 0.9s var(--ease-out) 1.05s both;
}

@keyframes cupm-fade-up {
	from { opacity: 0; transform: translateY(22px); }
	to   { opacity: 1; transform: translateY(0); }
}

.hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	list-style: none;
	margin-top: 3.2rem;
	animation: cupm-fade-up 0.9s var(--ease-out) 1.25s both;
}
.hero__stat {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.85rem 1.4rem;
	border-radius: 0.9rem;
	background: rgba(11, 20, 38, 0.45);
	border: 1px solid rgba(213, 222, 240, 0.16);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.hero__stat:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.hero__stat-value {
	font-family: var(--font-display);
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--gold-bright);
	line-height: 1.2;
}
.hero__stat-label { font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: #AAB7CE; }

/* Scroll cue */
.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 1.6rem;
	transform: translateX(-50%);
	z-index: 1;
	width: 1.65rem; height: 2.7rem;
	border: 1.5px solid rgba(234, 240, 249, 0.45);
	border-radius: 999px;
	display: flex;
	justify-content: center;
	padding-top: 0.5rem;
	animation: cupm-fade-up 1s var(--ease-out) 1.6s both;
	transition: border-color 0.3s ease;
}
.hero__scroll:hover { border-color: var(--gold-bright); }
.hero__scroll-dot {
	width: 4px; height: 8px;
	border-radius: 999px;
	background: var(--gold-bright);
	animation: cupm-scroll-dot 2s ease-in-out infinite;
}
@keyframes cupm-scroll-dot {
	0%   { transform: translateY(0); opacity: 1; }
	60%  { transform: translateY(0.85rem); opacity: 0; }
	61%  { transform: translateY(0); opacity: 0; }
	100% { opacity: 1; }
}

/* ----------------------------------------------------------------------
   6. SCROLL REVEAL SYSTEM (js adds .is-visible; .stagger children get --d)
   ---------------------------------------------------------------------- */
.js .reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
	transition-delay: var(--d, 0s);
	will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------------------------------------------------------
   7. HOMEPAGE SECTIONS
   ---------------------------------------------------------------------- */

/* Chapters — giant ghost numerals give each act its own identity */
.chapter__ghost {
	position: absolute;
	top: 0.5rem;
	right: clamp(0.5rem, 4vw, 4rem);
	font-family: var(--font-display);
	font-size: clamp(8rem, 18vw, 17rem);
	font-weight: 700;
	line-height: 1;
	color: var(--ghost-num);
	pointer-events: none;
	user-select: none;
}
.chapter__title { font-size: var(--text-h2); max-width: 18ch; }
.chapter--problem .chapter__title,
.chapter--solution .chapter__title,
.chapter--freedom .chapter__title { max-width: 22ch; }
.chapter__text { color: var(--text-muted); font-size: var(--text-lg); max-width: 44rem; }
.kicker--num::before { content: "— "; color: var(--text-faint); }

.pain-list { list-style: none; margin-top: 2.4rem; display: grid; gap: 0.9rem; }
.pain-list__item {
	position: relative;
	padding: 1.05rem 1.3rem 1.05rem 3.1rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.pain-list__item:hover { transform: translateX(4px); border-color: var(--border-gold); }
.pain-list__item::before {
	content: "";
	position: absolute;
	left: 1.2rem; top: 50%;
	width: 0.55rem; height: 0.55rem;
	transform: translateY(-50%) rotate(45deg);
	border: 1.5px solid var(--gold);
	border-left: 0; border-bottom: 0;
}

/* Solution chapter gets a quiet gold left rail */
.chapter--solution .container { border-left: 2px solid rgba(212, 160, 23, 0.5); padding-left: clamp(1.5rem, 4vw, 3rem); }

/* Transformation stages */
.stages {
	list-style: none;
	counter-reset: stage;
	display: grid;
	gap: 1.4rem;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 3rem;
	position: relative;
}
.stages::before {
	/* connecting thread */
	content: "";
	position: absolute;
	top: 2.6rem;
	left: 8%; right: 8%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--border-gold) 20%, var(--border-gold) 80%, transparent);
}
@media (max-width: 47.9rem) {
	.stages { grid-template-columns: 1fr; }
	.stages::before { display: none; }
}
.stage {
	position: relative;
	padding: 2rem 1.6rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
}
.stage:hover { transform: translateY(-6px); border-color: var(--border-gold); box-shadow: var(--shadow); }
.stage:nth-child(3) {
	border-color: var(--border-gold);
	background: linear-gradient(160deg, rgba(212, 160, 23, 0.1), var(--surface) 55%);
}
.stage__num {
	display: inline-grid;
	place-items: center;
	width: 2.6rem; height: 2.6rem;
	border-radius: 999px;
	border: 1px solid var(--border-gold);
	background: var(--bg);
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--gold-text);
	margin-bottom: 1.1rem;
}
.stage__label {
	display: block;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-text);
	margin-bottom: 0.4rem;
}
.stage__title { font-size: var(--text-h3); margin-bottom: 0.4em; }
.stage__text { color: var(--text-muted); font-size: var(--text-sm); }
.stage__text p:last-child { margin-bottom: 0; }

/* Stats band */
.stats__grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
	text-align: center;
}
@media (max-width: 47.9rem) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
.stat { position: relative; padding: 1rem 0.5rem; }
.stat:not(:first-child)::before {
	content: "";
	position: absolute;
	left: -1rem; top: 20%;
	height: 60%; width: 1px;
	background: var(--border);
}
@media (max-width: 47.9rem) { .stat:nth-child(3)::before { display: none; } }
.stat__value {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 2rem + 3vw, 4.2rem);
	font-weight: 700;
	line-height: 1.05;
	background: var(--gold-grad);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
.stat__label {
	display: block;
	margin-top: 0.5rem;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-muted);
}

/* Cards (benefits / reviews / team) */
.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.4rem;
}
@media (max-width: 59.9rem) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .card-grid { grid-template-columns: 1fr; } }

.card {
	position: relative;
	margin: 0;
	padding: 1.9rem 1.7rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
}
.card::before {
	/* gold hairline that lights up on hover */
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	opacity: 0;
	transition: opacity 0.35s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-gold); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card__icon {
	display: grid;
	place-items: center;
	width: 3rem; height: 3rem;
	margin-bottom: 1.2rem;
	border-radius: 0.9rem;
	background: linear-gradient(135deg, rgba(212, 160, 23, 0.16), rgba(212, 160, 23, 0.04));
	border: 1px solid var(--border-gold);
	color: var(--gold-text);
	transition: transform 0.35s var(--ease-out);
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }
.card:hover .card__icon { transform: scale(1.08) rotate(-3deg); }
.card__title { font-size: var(--text-h3); margin-bottom: 0.35em; }
.card__text { color: var(--text-muted); font-size: var(--text-sm); }
.card__text p:last-child { margin-bottom: 0; }

/* Service rows — editorial, numbered */
.service-row {
	display: grid;
	grid-template-columns: 5rem 1fr 1.2fr;
	gap: clamp(1rem, 3vw, 3rem);
	align-items: start;
	padding-block: 2.8rem;
	border-top: 1px solid var(--border);
}
.service-row:last-child { border-bottom: 1px solid var(--border); }
@media (max-width: 47.9rem) { .service-row { grid-template-columns: 1fr; gap: 0.6rem; } }
.service-row__index {
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--gold-text);
}
.service-row__title { font-size: var(--text-h3); margin: 0; max-width: 18ch; }
.service-row__text { color: var(--text-muted); }
.service-row__text p:last-child { margin-bottom: 0; }

/* Technology */
.tech__grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.1rem;
}
@media (max-width: 59.9rem) { .tech__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 40rem) { .tech__grid { grid-template-columns: 1fr; } }
.tech__item {
	position: relative;
	padding: 1.25rem 1.4rem 1.25rem 3rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-weight: 500;
	transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.tech__item:hover { border-color: var(--border-gold); transform: translateY(-3px); }
.tech__item::before {
	content: "";
	position: absolute;
	left: 1.15rem; top: 1.55rem;
	width: 0.85rem; height: 0.45rem;
	border-left: 2px solid var(--gold);
	border-bottom: 2px solid var(--gold);
	transform: rotate(-45deg);
}

/* Before / After */
.ba__cols {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.4rem;
	margin-top: 3rem;
}
@media (max-width: 47.9rem) { .ba__cols { grid-template-columns: 1fr; } }
.ba__vs {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	display: grid;
	place-items: center;
	width: 3.2rem; height: 3.2rem;
	border-radius: 999px;
	background: var(--bg);
	border: 1px solid var(--border-gold);
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 600;
	color: var(--gold-text);
	box-shadow: var(--shadow);
}
@media (max-width: 47.9rem) { .ba__vs { display: none; } }
.ba__col {
	padding: 2.2rem 2rem;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.ba__col:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ba__col--before { background: var(--surface); }
.ba__col--after {
	background: linear-gradient(165deg, rgba(212, 160, 23, 0.13), var(--surface) 60%);
	border-color: var(--border-gold);
}
.ba__col-title { font-size: var(--text-h3); margin-bottom: 1.2rem; }
.ba__col--after .ba__col-title { color: var(--gold-text); }
.ba__col ul { list-style: none; display: grid; gap: 0.85rem; }
.ba__col li { position: relative; padding-left: 2rem; color: var(--text-muted); }
.ba__col--before li::before {
	content: "";
	position: absolute;
	left: 0.2rem; top: 0.62em;
	width: 0.75rem; height: 0.75rem;
	background:
		linear-gradient(45deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%),
		linear-gradient(-45deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%);
	color: var(--text-faint);
}
.ba__col--after li { color: var(--text); }
.ba__col--after li::before {
	content: "";
	position: absolute;
	left: 0.1rem; top: 0.45em;
	width: 0.8rem; height: 0.45rem;
	border-left: 2px solid var(--gold);
	border-bottom: 2px solid var(--gold);
	transform: rotate(-45deg);
}

/* Out-of-State — copy + animated orbit map */
.oos__grid {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}
@media (max-width: 59.9rem) { .oos__grid { grid-template-columns: 1fr; } }
.oos__locations {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.6rem;
}
.oos__loc {
	padding: 0.45rem 1.1rem;
	border-radius: 999px;
	border: 1px solid var(--border-gold);
	background: var(--surface);
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--gold-text);
}
.oos__map svg { width: 100%; height: auto; }
.oos-map__ring { fill: none; stroke: var(--border-gold); stroke-opacity: 0.5; stroke-dasharray: 3 6; }
.oos-map__path {
	fill: none;
	stroke: var(--gold);
	stroke-width: 1.2;
	stroke-dasharray: 4 5;
	opacity: 0.55;
}
.js .reveal.is-visible .oos-map__path {
	stroke-dashoffset: 200;
	animation: cupm-path-flow 14s linear infinite;
}
@keyframes cupm-path-flow { to { stroke-dashoffset: 0; } }
.oos-map__dot { fill: var(--gold); }
.oos-map__pulse, .oos-map__hub-pulse {
	fill: none;
	stroke: var(--gold);
	stroke-width: 1.5;
	opacity: 0;
	transform-origin: center;
	transform-box: fill-box;
}
.js .reveal.is-visible .oos-map__pulse { animation: cupm-pulse 3.2s ease-out var(--pd, 0s) infinite; }
.js .reveal.is-visible .oos-map__hub-pulse { animation: cupm-pulse 2.4s ease-out infinite; }
@keyframes cupm-pulse {
	0%   { opacity: 0.9; transform: scale(1); }
	70%  { opacity: 0; transform: scale(3.2); }
	100% { opacity: 0; transform: scale(3.2); }
}
.oos-map__hub-dot { fill: var(--gold-bright); stroke: var(--bg); stroke-width: 2; }
.oos__map text {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	fill: var(--text-muted);
	text-anchor: middle;
}
.oos-map__hub text { fill: var(--gold-text); font-size: 14px; }

/* Reviews */
.review { display: flex; flex-direction: column; gap: 1.2rem; }
.review::after {
	content: "\201C";
	position: absolute;
	top: 0.4rem; right: 1.2rem;
	font-family: var(--font-display);
	font-size: 5rem;
	line-height: 1;
	color: var(--border-gold);
	pointer-events: none;
}
.review__quote { margin: 0; font-size: var(--text-md); color: var(--text); font-style: italic; }
.review__quote::before { content: "\201C"; color: var(--gold-text); }
.review__quote::after { content: "\201D"; color: var(--gold-text); }
.review__meta { display: flex; flex-direction: column; margin-top: auto; padding-top: 0.4rem; border-top: 1px solid var(--border); }
.review__name { font-weight: 600; }
.review__detail { font-size: var(--text-xs); color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }

/* Team */
.card-grid--team .member { padding: 0 0 1.6rem; text-align: center; }
.member__photo {
	width: 100%;
	aspect-ratio: 5 / 6;
	object-fit: cover;
	margin-bottom: 1.3rem;
	transition: transform 0.5s var(--ease-out);
}
.member:hover .member__photo { transform: scale(1.035); }
.member__name { font-size: var(--text-h3); margin: 0 1rem 0.15em; }
.member__title { color: var(--gold-text); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 1rem 0.7rem; }
.member__bio { color: var(--text-muted); font-size: var(--text-sm); margin-inline: 1.4rem; }
.member__bio p:last-child { margin-bottom: 0; }

/* Story */
.story__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}
@media (max-width: 59.9rem) { .story__grid { grid-template-columns: 1fr; } }
.story__media { position: relative; }
.story__media::before {
	content: "";
	position: absolute;
	inset: 1.4rem -1.4rem -1.4rem 1.4rem;
	border: 1px solid var(--border-gold);
	border-radius: var(--radius-lg);
	pointer-events: none;
}
.story__media img {
	position: relative;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	width: 100%;
	object-fit: cover;
}

/* Process timeline */
.timeline {
	list-style: none;
	position: relative;
	margin-top: 3.4rem;
	display: grid;
	gap: 2.6rem;
	max-width: 44rem;
	margin-inline: auto;
	padding-left: 3.4rem;
}
.timeline::before {
	content: "";
	position: absolute;
	left: 1.25rem;
	top: 0.4rem; bottom: 0.4rem;
	width: 1px;
	background: linear-gradient(180deg, var(--gold) 0%, var(--border-gold) 60%, transparent 100%);
}
.timeline__step { position: relative; }
.timeline__num {
	position: absolute;
	left: -3.4rem;
	top: -0.2rem;
	display: grid;
	place-items: center;
	width: 2.55rem; height: 2.55rem;
	border-radius: 999px;
	background: var(--bg-navy);
	border: 1px solid var(--border-gold);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--gold-bright);
}
.timeline__title { font-size: var(--text-h3); margin-bottom: 0.25em; }
.timeline__text { color: var(--text-muted); }
.timeline__text p:last-child { margin-bottom: 0; }

/* FAQ */
.faq__list { display: grid; gap: 0.9rem; margin-top: 2.6rem; }
.faq__item {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	overflow: hidden;
	transition: border-color 0.3s ease;
}
.faq__item[open] { border-color: var(--border-gold); }
.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.2rem 1.4rem;
	cursor: pointer;
	font-weight: 600;
	font-size: var(--text-md);
	list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__marker {
	position: relative;
	flex: none;
	width: 1.7rem; height: 1.7rem;
	border-radius: 999px;
	border: 1px solid var(--border-gold);
	transition: transform 0.35s var(--ease-out), background-color 0.3s ease;
}
.faq__marker::before, .faq__marker::after {
	content: "";
	position: absolute;
	left: 50%; top: 50%;
	width: 0.65rem; height: 1.5px;
	background: var(--gold-text);
	transform: translate(-50%, -50%);
	transition: transform 0.35s var(--ease-out);
}
.faq__marker::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__marker { transform: rotate(45deg); }
.faq__a { padding: 0 1.4rem 1.3rem; color: var(--text-muted); }
.js .faq__item[open] .faq__a { animation: cupm-fade-up 0.45s var(--ease-out); }
.faq__a p:last-child { margin-bottom: 0; }

/* Final CTA */
.final-cta { overflow: hidden; }
.final-cta__glow {
	position: absolute;
	left: 50%; top: -42%;
	width: 64rem; height: 34rem;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(212, 160, 23, 0.22) 0%, transparent 62%);
	pointer-events: none;
}
.final-cta__title { font-size: var(--text-h2); }
.final-cta .chapter__text { margin-inline: auto; }

/* ----------------------------------------------------------------------
   8. INNER PAGES
   ---------------------------------------------------------------------- */
.page-hero {
	position: relative;
	padding: calc(var(--header-h) * 0.5 + 3.5rem) 0 3.5rem;
	background: var(--bg-navy);
	color: #EAF0F9;
	overflow: hidden;
}
.page-hero::after {
	content: "";
	position: absolute;
	right: -12rem; top: -14rem;
	width: 34rem; height: 34rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(212, 160, 23, 0.16) 0%, transparent 65%);
	pointer-events: none;
}
.page-hero .kicker { color: var(--gold-bright); }
.page-hero__title { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.8rem); margin: 0; }

.page-content { padding-block: 3.5rem; }
.page-content .container > * { max-width: 46rem; }
.page-content h2 { font-size: var(--text-h3); margin-top: 1.6em; }
.page-content a { text-decoration: underline; text-underline-offset: 3px; }

.contact-card {
	margin-top: 2.5rem;
	padding: 2.4rem 2.2rem;
	max-width: 30rem;
	background: var(--surface);
	border: 1px solid var(--border-gold);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}
.contact-card h2 { margin-top: 0; }

/* Blog index cards (future content clusters) */
.page-content article { padding: 1.6rem 0; border-bottom: 1px solid var(--border); }
.page-content article h2 { margin: 0 0 0.3em; }

/* ----------------------------------------------------------------------
   9. FOOTER
   ---------------------------------------------------------------------- */
.site-footer {
	position: relative;
	background: var(--bg-navy);
	color: var(--text);
	padding: 4.5rem 0 2rem;
	margin-top: 0;
	overflow: hidden;
	border-top: 1px solid var(--border-gold);
}
.site-footer__glow {
	position: absolute;
	left: -10rem; bottom: -16rem;
	width: 36rem; height: 30rem;
	background: radial-gradient(ellipse, rgba(212, 160, 23, 0.1) 0%, transparent 65%);
	pointer-events: none;
}
.footer-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.4fr 1fr 0.8fr 1.1fr;
	gap: 2.5rem;
}
@media (max-width: 59.9rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 0.4rem; }
.footer-tagline { color: var(--gold-bright); font-style: italic; font-family: var(--font-display); }
.footer-col p { color: var(--text-muted); font-size: var(--text-sm); }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--gold-bright); }
.footer-nav__list { list-style: none; display: grid; gap: 0.45rem; }
.footer-nav__list a { font-size: var(--text-sm); }
.footer-legal {
	margin-top: 3.2rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--border);
}
.footer-legal p { font-size: var(--text-xs); color: var(--text-faint); margin: 0; }

/* ----------------------------------------------------------------------
   10. ACCESSIBILITY & REDUCED MOTION
   Full, calm, no-motion experience: everything visible, nothing moves.
   ---------------------------------------------------------------------- */
@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;
	}
	.hero__img { animation: none; }
	.hero__line-inner { transform: none; animation: none; }
	.hero__line-inner--gold { animation: none; }
	.hero__kicker, .hero__subhead, .hero__actions, .hero__stats, .hero__scroll { animation: none; opacity: 1; }
	.hero__rule, .hero__kicker-line { animation: none; transform: none; }
	.hero__dust, .hero__aurora { display: none; }
	.hero__scroll-dot { animation: none; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.oos-map__pulse, .oos-map__hub-pulse { opacity: 0.35; transform: none; animation: none !important; }
	.js .reveal.is-visible .oos-map__path { animation: none; }
}

@media print {
	.site-header, .hero__scroll, .theme-toggle, .nav-toggle { display: none; }
}
