/* About page — mission mode toggle + founder story */

/* ═══════════════════════════════════════
   TEXT PAGES
   ═══════════════════════════════════════ */
.text-page {
	min-height: 100svh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-4xl) var(--space-xl);
	background: var(--bg);
	position: relative;
}

.text-page__inner {
	max-width: 580px;
	text-align: center;
}

.text-page__label {
	font-family: var(--serif-sc);
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--secondary);
	margin-bottom: var(--space-lg);
}

.text-page__line {
	width: 32px;
	height: 1px;
	/* Bake the fade into the color so `.reveal.in-view > *` bumping
	   opacity to 1 doesn't make this line look more solid than the
	   identical dividers on non-reveal pages (e.g. /contact). */
	background: var(--divider);
	margin: 0 auto var(--space-2xl);
}

.text-page__headline {
	font-size: 3rem;
	font-weight: 300;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--ink);
}

.text-page__lede {
	font-family: var(--serif);
	font-size: 1.65rem;
	font-weight: 300;
	line-height: 1.55;
	color: var(--ink);
	opacity: 0.65;
	letter-spacing: -0.01em;
}

/* Mission text stack — all three variants overlap in the same grid cell,
   each is centered vertically. Fade + scale + blur transition between them. */
.mission-stack {
	position: relative;
	display: grid;
	align-items: center;
	justify-items: center;
}

.mission-text {
	grid-area: 1 / 1;
	opacity: 0;
	transform: scale(0.97);
	filter: blur(6px);
	transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
		transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
		filter 0.6s cubic-bezier(0.23, 1, 0.32, 1);
	pointer-events: none;
	align-self: center;
}

.mission-text.active {
	opacity: 1;
	transform: scale(1);
	filter: blur(0);
	pointer-events: auto;
}

/* Inline links inside the esoteric mission — amber dotted underline,
   subtle scholarly footnote feel */
.mission-link {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dotted var(--amber);
	padding-bottom: 1px;
	transition: color 0.25s ease, border-color 0.25s ease;
}

.mission-link:hover {
	color: var(--amber);
	border-bottom-color: var(--amber);
	border-bottom-style: solid;
}

/* Mode toggle */
.mode-toggle {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: var(--space-2xl);
	padding: 10px 22px;
	border: 1px solid var(--border);
	border-radius: 100px;
}

.mode-toggle button {
	font-family: var(--serif-sc);
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--secondary);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	opacity: 0.55;
	transition: all 0.25s ease;
}

.mode-toggle button.active {
	color: var(--amber);
	opacity: 1;
}

.mode-toggle button:hover {
	opacity: 0.85;
}

.mode-toggle__sep {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--pencil);
}

/* ═══════════════════════════════════════
   FOUNDER SECTION
   ═══════════════════════════════════════ */
.founder {
	max-width: 660px;
	text-align: center;
}

.founder__name {
	font-family: var(--serif);
	font-size: 2.4rem;
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--ink);
	margin-bottom: var(--space-sm);
}

.founder__title {
	font-family: var(--serif-sc);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--amber);
	opacity: 0.7;
	margin-bottom: var(--space-2xl);
}

.founder__body {
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
}

.founder__body p {
	font-family: var(--serif);
	font-size: 1.05rem;
	line-height: 1.85;
	color: var(--ink);
	opacity: 0.7;
}

/* ═══════════════════════════════════════
   BELIEFS — list of italic statements
   ═══════════════════════════════════════ */
.beliefs {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.beliefs p {
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.2rem;
	line-height: 1.6;
	color: var(--ink);
	opacity: 0.65;
}

/* ═══════════════════════════════════════
   IMAGE PAGE
   ═══════════════════════════════════════ */
.image-page {
	height: var(--vh-stable, 100svh);
	overflow: hidden;
	padding: 0;
}

.image-page img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* ═══════════════════════════════════════
   CTA — newsletter signup
   ═══════════════════════════════════════ */
.cta {
	min-height: 100svh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-4xl) var(--space-xl);
	background: var(--bg);
	position: relative;
}

.cta__inner {
	max-width: 600px;
	text-align: center;
}

.cta__label {
	font-family: var(--serif-sc);
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--amber);
	margin-bottom: var(--space-lg);
}

.cta h2 {
	font-size: 2.6rem;
	line-height: 1.15;
	margin-bottom: 0;
}

.cta__line {
	width: 32px;
	height: 1px;
	background: var(--divider);
	margin: var(--space-xl) auto;
}

.cta__lede {
	color: var(--secondary);
	font-size: 1.05rem;
	line-height: 1.9;
	margin-bottom: var(--space-2xl);
}

.signup {
	display: flex;
	gap: 8px;
	max-width: 440px;
	margin: 0 auto;
}

.signup__input {
	flex: 1;
	padding: 14px 20px;
	border: 1px solid var(--border);
	border-radius: 100px;
	background: transparent;
	font-family: var(--serif);
	font-size: 0.9rem;
	color: var(--ink);
	transition: border-color 0.2s ease;
}

.signup__input::placeholder {
	color: var(--secondary);
	opacity: 0.5;
}

.signup__input:focus {
	outline: none;
	border-color: var(--amber);
}

.signup__btn {
	padding: 14px 28px;
	background: var(--ink);
	color: var(--bg);
	border: none;
	border-radius: 100px;
	font-family: var(--serif);
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.25s ease;
	white-space: nowrap;
}

.signup__btn:hover {
	background: #1e3a30;
	transform: translateY(-1px);
}

.cta__fineprint {
	margin-top: var(--space-lg);
	font-size: 0.8rem;
	color: var(--secondary);
	opacity: 0.6;
}

.cta__fineprint a {
	color: var(--amber);
	text-decoration: none;
}

.cta__fineprint a:hover {
	text-decoration: underline;
}

/* ═══════════════════════════════════════
   SCROLL-LINKED ANIMATIONS
   ═══════════════════════════════════════ */
@supports (animation-timeline: view()) {
	/* Fade IN on entry, then hold at full opacity through the rest of the
	   scroll range. No exit fade — previously dropped to 0.35 as the story
	   scrolled off the bottom, which made the last paragraphs hard to read
	   while the user was still actively reading them. */
	@keyframes fade-sweet-spot {
		0%   { opacity: 0.35; }
		40%, 100% { opacity: 1; }
	}

	.text-page__inner,
	.founder {
		animation: fade-sweet-spot linear both;
		animation-timeline: view();
		animation-range: entry 25% exit 75%;
	}

	/* Override the global reveal so it doesn't fight */
	.text-page__inner.reveal > *,
	.founder.reveal > * {
		opacity: 1;
		transition: none;
	}
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
	.text-page {
		padding: var(--space-3xl) var(--space-lg);
	}

	.text-page__headline {
		font-size: 2.2rem;
	}

	.text-page__lede {
		font-size: 1.25rem;
	}

	.founder__name {
		font-size: 2rem;
	}

	.founder__body p {
		font-size: 0.98rem;
	}

	.beliefs p {
		font-size: 1.05rem;
	}

	.cta {
		padding: var(--space-3xl) var(--space-lg);
	}

	.cta h2 {
		font-size: 1.8rem;
	}

	.signup {
		flex-direction: column;
		max-width: 320px;
	}

	.signup__btn {
		width: 100%;
	}
}
