/**
 * Echelon editorial layout system — long-form pages (About, For Advisors).
 *
 * Structure:
 *   .echelon-editorial__overture  — full-width manifesto opening
 *   .echelon-editorial__grid      — left rail + main column + right void
 *   .echelon-editorial__pull      — serif pull-quotes
 *   .echelon-editorial__section--parchment|bone|verde
 */

body.echelon-editorial-page {
	margin: 0;
	background: var(--echelon-parchment);
	color: var(--echelon-ink);
	font-family: var(--echelon-font-body);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.echelon-editorial-page *,
body.echelon-editorial-page *::before,
body.echelon-editorial-page *::after {
	box-sizing: border-box;
}

body.echelon-editorial-page::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 10000;
	pointer-events: none;
	opacity: 0.035;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-size: 220px 220px;
	background-repeat: repeat;
}

body.echelon-editorial-page .echelon-header {
	background: var(--echelon-parchment);
}

.echelon-editorial {
	--editorial-shell: 1180px;
	--editorial-rail: minmax(8.5rem, 26%);
	--editorial-main: minmax(0, 58%);
	--editorial-gutter: clamp(1.5rem, 3.2vw, 2.75rem);
	position: relative;
	width: 100%;
	background: var(--echelon-parchment);
}

.echelon-editorial__shell {
	box-sizing: border-box;
	max-width: var(--editorial-shell);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* —— Opening moment —— */
.echelon-editorial__overture {
	padding: 8.5rem 0 6.5rem;
	background: var(--echelon-parchment);
}

.echelon-editorial__overture--center {
	text-align: center;
}

.echelon-editorial__kicker {
	margin: 0 0 1.75rem;
	font-family: var(--echelon-font-body);
	font-weight: 500;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--echelon-slate);
}

.echelon-editorial__manifesto {
	margin: 0;
	max-width: 16.5em;
	font-family: var(--echelon-font-display);
	font-weight: 500;
	font-size: clamp(2.35rem, 4.8vw, 3.9rem);
	line-height: 1.16;
	letter-spacing: -0.02em;
	color: var(--echelon-ink);
	text-wrap: pretty;
}

.echelon-editorial__overture--center .echelon-editorial__manifesto {
	margin-left: auto;
	margin-right: auto;
}

.echelon-editorial__manifesto--extended {
	max-width: 21em;
	font-size: clamp(2.05rem, 4.2vw, 3.35rem);
}

.echelon-editorial__support {
	margin: 1.65rem auto 0;
	max-width: 38em;
	font-family: var(--echelon-font-display);
	font-weight: 400;
	font-size: clamp(1.15rem, 1.9vw, 1.4rem);
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: var(--echelon-slate);
	text-wrap: pretty;
}

.echelon-editorial__hairline {
	display: block;
	width: 3.25rem;
	height: 0;
	margin: 2.25rem 0 0;
	border: 0;
	border-top: 1px solid var(--echelon-gold);
}

/* —— Two-column body —— */
.echelon-editorial__section {
	padding: 7.5rem 0;
}

.echelon-editorial__section--parchment {
	background: var(--echelon-parchment);
}

.echelon-editorial__section--bone {
	background: var(--echelon-bone);
}

.echelon-editorial__section--verde {
	background: var(--echelon-verde);
	color: var(--echelon-parchment);
}

.echelon-editorial__grid {
	display: grid;
	grid-template-columns: var(--editorial-rail) var(--editorial-main) minmax(0, 1fr);
	column-gap: var(--editorial-gutter);
	row-gap: 0;
	align-items: start;
	justify-content: stretch;
}

.echelon-editorial__rail {
	grid-column: 1;
	margin: 0;
	padding-top: 0.28em;
	max-width: 14em;
	font-family: var(--echelon-font-body);
	font-weight: 500;
	font-size: 11px;
	line-height: 1.45;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--echelon-slate);
}

.echelon-editorial__main {
	grid-column: 2;
	min-width: 0;
	max-width: 65ch;
}

.echelon-editorial__aside {
	grid-column: 3;
	min-width: 0;
	min-height: 0;
}

.echelon-editorial__prose {
	margin: 0;
}

.echelon-editorial__prose p {
	margin: 0 0 1.4em;
	font-family: var(--echelon-font-body);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.7;
	color: var(--echelon-slate);
	overflow-wrap: break-word;
	text-wrap: pretty;
}

.echelon-editorial__prose p:last-child {
	margin-bottom: 0;
}

.echelon-editorial__prose--drop > p:first-of-type::first-letter {
	float: left;
	margin: 0.08em 0.12em 0 0;
	padding-top: 0.04em;
	font-family: var(--echelon-font-display);
	font-weight: 500;
	font-size: 3.15em;
	line-height: 0.78;
	color: var(--echelon-ink);
}

.echelon-editorial__close {
	margin: 2rem 0 0;
	font-family: var(--echelon-font-display);
	font-weight: 400;
	font-size: 1.375rem;
	line-height: 1.5;
	letter-spacing: -0.01em;
	color: var(--echelon-ink);
	text-wrap: pretty;
}

.echelon-editorial__lede {
	margin: 0 0 1.75rem;
	font-family: var(--echelon-font-display);
	font-weight: 400;
	font-size: clamp(1.45rem, 2.2vw, 1.75rem);
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--echelon-ink);
	text-wrap: pretty;
}

.echelon-editorial__headline {
	margin: 0 0 1.75rem;
	font-family: var(--echelon-font-display);
	font-weight: 400;
	font-size: clamp(1.65rem, 2.6vw, 2.2rem);
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--echelon-ink);
	text-wrap: pretty;
}

/* —— Pull-quotes —— */
.echelon-editorial__pull {
	grid-column: 2;
	max-width: 22em;
	margin: 2.85rem 0 2.6rem;
	padding: 0;
	border: 0;
	font-family: var(--echelon-font-display);
	font-weight: 400;
	font-size: clamp(1.65rem, 2.5vw, 2.2rem);
	line-height: 1.28;
	letter-spacing: -0.015em;
	color: var(--echelon-ink);
	text-wrap: pretty;
}

.echelon-editorial__pull p {
	margin: 0;
}

.echelon-editorial__pull--bleed {
	grid-column: 1 / 3;
	max-width: 28em;
}

/* —— Founder / byline moment —— */
.echelon-editorial__byline {
	margin: 0 0 2.15rem;
}

.echelon-editorial__byline-name {
	margin: 0 0 0.45rem;
	font-family: var(--echelon-font-display);
	font-weight: 400;
	font-size: clamp(2rem, 3.1vw, 2.7rem);
	line-height: 1.12;
	letter-spacing: -0.018em;
	color: var(--echelon-ink);
}

.echelon-editorial__byline-meta {
	margin: 0;
	font-family: var(--echelon-font-body);
	font-weight: 500;
	font-size: 11px;
	line-height: 1.5;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--echelon-slate);
}

/* —— Rubric (numbered criteria) —— */
.echelon-editorial__rubric {
	margin: 2.5rem 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--echelon-border);
}

.echelon-editorial__rubric-item {
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	column-gap: 1rem;
	margin: 0;
	padding: 2.15rem 0;
	border-bottom: 1px solid var(--echelon-border);
}

.echelon-editorial__rubric-num {
	display: block;
	padding-top: 0.45em;
	font-family: var(--echelon-font-display);
	font-weight: 400;
	font-size: 13px;
	line-height: 1;
	letter-spacing: 0.16em;
	color: var(--echelon-sage);
}

.echelon-editorial__rubric-body {
	min-width: 0;
}

.echelon-editorial__rubric-name {
	margin: 0 0 0.55rem;
	font-family: var(--echelon-font-display);
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--echelon-ink);
}

.echelon-editorial__rubric-desc {
	margin: 0;
	max-width: 52ch;
	font-family: var(--echelon-font-body);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.65;
	color: var(--echelon-slate);
}

/* —— Verde section inversions —— */
.echelon-editorial__section--verde .echelon-editorial__rail {
	color: var(--echelon-sage);
}

.echelon-editorial__section--verde .echelon-editorial__lede,
.echelon-editorial__section--verde .echelon-editorial__close,
.echelon-editorial__section--verde .echelon-editorial__pull {
	color: var(--echelon-parchment);
}

.echelon-editorial__section--verde .echelon-editorial__prose p {
	color: #f3efe6;
}

.echelon-editorial__section--verde .echelon-editorial__hairline {
	border-top-color: var(--echelon-gold);
}

/* —— Links —— */
.echelon-editorial a:not(.echelon-editorial__cta) {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	text-decoration-color: var(--echelon-gold);
}

.echelon-editorial a:not(.echelon-editorial__cta):hover {
	color: var(--echelon-ink);
}

.echelon-editorial__section--verde a:not(.echelon-editorial__cta):hover {
	color: var(--echelon-parchment);
}

.echelon-editorial a:not(.echelon-editorial__cta):focus-visible {
	outline: 2px solid var(--echelon-gold);
	outline-offset: 3px;
}

/* —— Buttons —— */
.echelon-editorial__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 20px;
	margin: 2.25rem 0 0;
}

.echelon-editorial__actions--center {
	justify-content: center;
}

.echelon-editorial__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 28px;
	border-radius: 2px;
	font-family: var(--echelon-font-body);
	font-weight: 500;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}

.echelon-editorial__cta:hover {
	text-decoration: none;
}

.echelon-editorial__cta--primary {
	background: var(--echelon-verde);
	border: 1px solid var(--echelon-verde);
	color: var(--echelon-parchment);
}

.echelon-editorial__cta--primary:hover,
.echelon-editorial__cta--primary:focus-visible {
	background: #1c2923;
	border-color: #1c2923;
	color: var(--echelon-parchment);
	transform: translateY(-1px);
}

.echelon-editorial__cta--secondary {
	background: transparent;
	border: 1px solid var(--echelon-ink);
	color: var(--echelon-ink);
}

.echelon-editorial__cta--secondary:hover,
.echelon-editorial__cta--secondary:focus-visible {
	background: var(--echelon-ink);
	color: var(--echelon-parchment);
	text-decoration: none;
	transform: translateY(-1px);
}

.echelon-editorial__cta--ghost {
	background: transparent;
	border: 1px solid var(--echelon-parchment);
	color: var(--echelon-parchment);
}

.echelon-editorial__cta--ghost:hover,
.echelon-editorial__cta--ghost:focus-visible {
	background: var(--echelon-parchment);
	color: var(--echelon-verde);
	text-decoration: none;
	transform: translateY(-1px);
}

.echelon-editorial__section--verde .echelon-editorial__cta--primary {
	background: var(--echelon-parchment);
	border-color: var(--echelon-parchment);
	color: var(--echelon-verde);
}

.echelon-editorial__section--verde .echelon-editorial__cta--primary:hover,
.echelon-editorial__section--verde .echelon-editorial__cta--primary:focus-visible {
	background: var(--echelon-bone);
	border-color: var(--echelon-bone);
	color: var(--echelon-verde);
}

/* —— Scroll reveal —— */
.echelon-editorial [data-echelon-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.echelon-editorial [data-echelon-reveal].is-visible {
	opacity: 1;
	transform: none;
}

@media (max-width: 900px) {
	.echelon-editorial__overture {
		padding: 5.5rem 0 4rem;
	}

	.echelon-editorial__section {
		padding: 5rem 0;
	}

	.echelon-editorial__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0;
	}

	.echelon-editorial__rail,
	.echelon-editorial__main,
	.echelon-editorial__pull,
	.echelon-editorial__pull--bleed,
	.echelon-editorial__aside {
		grid-column: 1;
	}

	.echelon-editorial__rail {
		margin-bottom: 1.5rem;
		padding-top: 0;
	}

	.echelon-editorial__aside {
		display: none;
	}

	.echelon-editorial__main {
		max-width: none;
	}

	.echelon-editorial__pull,
	.echelon-editorial__pull--bleed {
		max-width: 22em;
		margin: 2.15rem 0 2rem;
	}

	.echelon-editorial__rubric-item {
		grid-template-columns: 1fr;
		row-gap: 0.7rem;
		padding: 1.75rem 0;
	}

	.echelon-editorial__rubric-num {
		padding-top: 0;
	}

	.echelon-editorial__rubric-name {
		font-size: 1.35rem;
	}
}

@media (max-width: 640px) {
	.echelon-editorial__manifesto,
	.echelon-editorial__manifesto--extended {
		font-size: clamp(1.85rem, 8.4vw, 2.45rem);
		max-width: none;
	}

	.echelon-editorial__prose--drop > p:first-of-type::first-letter {
		font-size: 2.65em;
	}

	.echelon-editorial__pull {
		font-size: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.echelon-editorial [data-echelon-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.echelon-editorial__cta,
	.echelon-editorial__cta--primary:hover,
	.echelon-editorial__cta--primary:focus-visible,
	.echelon-editorial__cta--secondary:hover,
	.echelon-editorial__cta--secondary:focus-visible,
	.echelon-editorial__cta--ghost:hover,
	.echelon-editorial__cta--ghost:focus-visible {
		transition: none;
		transform: none;
	}
}
