/* Elite Advisors page. Brand tokens (--kmj-*) and Cotoris come from style.css. */

.kmj-ea {
	--ea-gold: var(--kmj-gold, #dfcba3);
	--ea-gold-deep: #b8996a;
	--ea-cream: #f7f2ea;
	--ea-burgundy: var(--kmj-burgundy, #581e2d);
	--ea-burgundy-deep: #2e0c15;
	--ea-ink: var(--kmj-ink, #2b1d22);
	--ea-muted: #6f6064;
	--ea-line: #e9dfd0;
	--ea-radius: 20px;
	--ea-shadow: 0 1px 2px rgba(46, 12, 21, 0.05), 0 14px 36px rgba(46, 12, 21, 0.08);
	--ea-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--ea-serif: "CotorisW01", Georgia, serif;

	color: var(--ea-ink);
	font-family: var(--ea-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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

.kmj-ea img { display: block; max-width: 100%; height: auto; }

.kmj-ea p,
.kmj-ea figure,
.kmj-ea blockquote { margin: 0; }

.kmj-ea h1,
.kmj-ea h2,
.kmj-ea h3 {
	margin: 0;
	font-family: var(--ea-serif) !important;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.kmj-ea-wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.kmj-ea-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Shared type */

.kmj-ea-eyebrow {
	margin-bottom: 14px !important;
	color: var(--ea-gold-deep);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.kmj-ea .kmj-ea-h2 {
	color: var(--ea-burgundy);
	font-size: clamp(30px, 4.4vw, 48px);
	line-height: 1.1;
}

.kmj-ea .kmj-ea-h3 {
	color: var(--ea-burgundy);
	font-size: 22px;
	line-height: 1.2;
}

.kmj-ea-body {
	color: var(--ea-muted);
	font-size: 16px;
	line-height: 1.65;
}

.kmj-ea-head {
	max-width: 640px;
	margin-bottom: 40px;
}

.kmj-ea-terms {
	margin-top: 24px !important;
	color: var(--ea-muted);
	font-size: 13px;
}

/* Button */

.kmj-ea-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 28px;
	border-radius: 999px;
	background: var(--ea-gold);
	color: var(--ea-burgundy-deep) !important;
	font-family: var(--ea-sans);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none !important;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.kmj-ea-btn svg { transition: transform 0.2s ease; }

.kmj-ea-btn:hover,
.kmj-ea-btn:focus-visible {
	background: #ead9b6;
	transform: translateY(-1px);
}

.kmj-ea-btn:hover svg { transform: translateX(3px); }

.kmj-ea-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Hero */

.kmj-ea-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(82vh, 760px);
	padding: 96px 0;
	background: var(--ea-burgundy-deep);
	color: #fff;
	isolation: isolate;
}

.kmj-ea-hero__bg,
.kmj-ea-cta__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.kmj-ea-hero__bg { object-position: 60% 62%; }

.kmj-ea-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(20, 6, 10, 0.94) 0%, rgba(20, 6, 10, 0.84) 40%, rgba(20, 6, 10, 0.35) 72%, rgba(20, 6, 10, 0.1) 100%),
		linear-gradient(0deg, rgba(20, 6, 10, 0.5) 0%, rgba(20, 6, 10, 0) 40%);
}

.kmj-ea-hero__inner { max-width: 1200px; }

.kmj-ea-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 28px !important;
	padding: 8px 16px;
	border: 1px solid rgba(223, 203, 163, 0.45);
	border-radius: 999px;
	background: rgba(223, 203, 163, 0.08);
	color: var(--ea-gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
}

.kmj-ea .kmj-ea-hero__title {
	max-width: 640px;
	color: #fff;
	font-size: clamp(40px, 6.4vw, 76px);
	line-height: 1.02;
}

.kmj-ea .kmj-ea-hero__title span,
.kmj-ea .kmj-ea-cta__title span {
	display: block;
	color: var(--ea-gold);
}

.kmj-ea-hero__lead {
	max-width: 520px;
	margin: 24px 0 36px !important;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(16px, 1.6vw, 18px);
	line-height: 1.65;
}

/* Why limited */

.kmj-ea-why {
	padding: 104px 0;
	background: var(--ea-cream);
}

.kmj-ea-why__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: center;
	gap: 72px;
}

.kmj-ea-why__media img,
.kmj-ea-why__video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-position: 62% center;
	object-fit: cover;
	border-radius: var(--ea-radius);
	box-shadow: var(--ea-shadow);
}

.kmj-ea-why__copy .kmj-ea-h2 {
	margin-bottom: 24px;
	font-size: clamp(34px, 5vw, 56px);
}

.kmj-ea-why__copy .kmj-ea-body {
	max-width: 480px;
	font-size: 18px;
}

.kmj-ea-why__copy .kmj-ea-body + .kmj-ea-body {
	margin-top: 16px;
	color: var(--ea-ink);
	font-weight: 600;
}

/* Offer */

.kmj-ea-offer {
	padding: 104px 0;
	background: #fff;
}

.kmj-ea-money {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.kmj-ea-money__card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 340px;
	padding: 36px;
	border-radius: var(--ea-radius);
	overflow: hidden;
	color: #fff;
	isolation: isolate;
}

.kmj-ea-money__card--split {
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(223, 203, 163, 0.18) 0%, rgba(223, 203, 163, 0) 55%),
		linear-gradient(160deg, #6b2638 0%, var(--ea-burgundy) 45%, var(--ea-burgundy-deep) 100%);
}

.kmj-ea-money__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.kmj-ea-money__card--spa::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgba(20, 6, 10, 0.88) 0%, rgba(20, 6, 10, 0.45) 55%, rgba(20, 6, 10, 0.1) 100%);
}

.kmj-ea-money__big {
	margin-bottom: 10px !important;
	color: var(--ea-gold);
	font-family: var(--ea-serif);
	font-size: clamp(48px, 6vw, 72px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}

.kmj-ea-money__text {
	max-width: 360px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 17px;
	line-height: 1.55;
}

.kmj-ea-support {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.kmj-ea-support__card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--ea-line);
	border-radius: var(--ea-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--ea-shadow);
}

.kmj-ea-support__card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.kmj-ea-support__body { padding: 26px 26px 30px; }

.kmj-ea-support__body .kmj-ea-h3 { margin-bottom: 10px; }

.kmj-ea-support__body .kmj-ea-body { font-size: 15px; }

/* Comparison */

.kmj-ea-compare {
	padding: 104px 0;
	background:
		radial-gradient(80% 60% at 100% 0%, rgba(223, 203, 163, 0.1) 0%, rgba(223, 203, 163, 0) 60%),
		var(--ea-burgundy-deep);
	color: #fff;
}

.kmj-ea-compare .kmj-ea-h2 { color: #fff; }

.kmj-ea-compare .kmj-ea-eyebrow { color: var(--ea-gold); }

.kmj-ea-compare .kmj-ea-terms { color: rgba(255, 255, 255, 0.55); }

.kmj-ea-table {
	border: 1px solid rgba(223, 203, 163, 0.22);
	border-radius: var(--ea-radius);
	overflow: hidden;
}

.kmj-ea-table__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
}

.kmj-ea-table__row + .kmj-ea-table__row { border-top: 1px solid rgba(223, 203, 163, 0.14); }

.kmj-ea-table__row > span {
	padding: 22px 28px;
	font-size: 16px;
	line-height: 1.45;
}

.kmj-ea-table__row > span:nth-child(1) {
	color: rgba(255, 255, 255, 0.92);
	font-weight: 600;
}

.kmj-ea-table__row > span:nth-child(2) { color: rgba(255, 255, 255, 0.55); }

.kmj-ea-table__row > span:nth-child(3) {
	background: rgba(223, 203, 163, 0.08);
	color: var(--ea-gold);
	font-weight: 600;
}

.kmj-ea-table__row--head > span {
	padding-top: 18px;
	padding-bottom: 18px;
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.kmj-ea-table__row--head > span:nth-child(2) { color: rgba(255, 255, 255, 0.5); }

.kmj-ea-table__row--head > span:nth-child(3) {
	background: var(--ea-gold);
	color: var(--ea-burgundy-deep);
}

/* Leadership */

.kmj-ea-leaders {
	padding: 104px 0;
	background: var(--ea-cream);
}

.kmj-ea-leaders__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.kmj-ea-leader {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	grid-template-areas:
		"photo quote"
		"photo who";
	align-content: start;
	column-gap: 28px;
	row-gap: 20px;
	padding: 32px;
	border: 1px solid var(--ea-line);
	border-radius: var(--ea-radius);
	background: #fff;
	box-shadow: var(--ea-shadow);
}

.kmj-ea-leader__photo {
	grid-area: photo;
	width: 168px;
	height: 210px !important;
	object-fit: cover;
	object-position: center 15%;
	border-radius: 14px;
	background: var(--ea-cream);
}

.kmj-ea-leader__quote {
	grid-area: quote;
	padding: 0;
	border: 0;
}

.kmj-ea-leader__quote p {
	color: var(--ea-ink);
	font-family: var(--ea-serif);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

.kmj-ea-leader__who {
	grid-area: who;
	align-self: end;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-top: 16px;
	border-top: 1px solid var(--ea-line);
}

.kmj-ea-leader__who a {
	color: var(--ea-burgundy) !important;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none !important;
}

.kmj-ea-leader__who a:hover { text-decoration: underline !important; }

.kmj-ea-leader__who span {
	color: var(--ea-muted);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Final CTA */

.kmj-ea-cta {
	position: relative;
	padding: 140px 0;
	background: var(--ea-burgundy-deep);
	color: #fff;
	text-align: center;
	isolation: isolate;
}

.kmj-ea-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(10, 14, 30, 0.78) 0%, rgba(10, 14, 30, 0.45) 55%, rgba(10, 14, 30, 0.7) 100%);
}

.kmj-ea-cta__bg { object-position: center 60%; }

.kmj-ea-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 36px;
}

.kmj-ea .kmj-ea-cta__title {
	color: #fff;
	font-size: clamp(38px, 6vw, 68px);
	line-height: 1.05;
}

/* Mobile CV dock, toggled by the script in the template */

.kmj-ea-dock { display: none; }

/* Tablet */

@media (max-width: 991px) {
	.kmj-ea-wrap { padding: 0 24px; }

	.kmj-ea-why,
	.kmj-ea-offer,
	.kmj-ea-compare,
	.kmj-ea-leaders { padding: 80px 0; }

	.kmj-ea-why__grid { gap: 40px; }

	.kmj-ea-support { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.kmj-ea-support__card:last-child { grid-column: 1 / -1; flex-direction: row; }

	.kmj-ea-support__card:last-child img { width: 50%; aspect-ratio: auto; }

	.kmj-ea-support__card:last-child .kmj-ea-support__body { align-self: center; }

	.kmj-ea-leaders__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Phone */

@media (max-width: 767px) {
	.kmj-ea-wrap { padding: 0 16px; }

	.kmj-ea-hero {
		align-items: flex-end;
		min-height: min(88svh, 720px);
		padding: 120px 0 56px;
	}

	.kmj-ea-hero__bg { object-position: 62% center; }

	.kmj-ea-hero::before {
		background: linear-gradient(0deg, rgba(20, 6, 10, 0.96) 0%, rgba(20, 6, 10, 0.82) 45%, rgba(20, 6, 10, 0.25) 100%);
	}

	.kmj-ea-pill {
		margin-bottom: 20px !important;
		font-size: 11px;
		letter-spacing: 0.12em;
	}

	.kmj-ea-hero__lead { margin: 18px 0 28px !important; }

	.kmj-ea-btn { width: 100%; justify-content: center; }

	.kmj-ea-why,
	.kmj-ea-offer,
	.kmj-ea-compare,
	.kmj-ea-leaders { padding: 64px 0; }

	.kmj-ea-head { margin-bottom: 28px; }

	.kmj-ea-why__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }

	.kmj-ea-why__media img,
	.kmj-ea-why__video { aspect-ratio: 4 / 3; object-position: center; }

	.kmj-ea-why__copy .kmj-ea-body { font-size: 17px; }

	.kmj-ea-money { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }

	.kmj-ea-money__card { min-height: 260px; padding: 28px; }

	.kmj-ea-support { grid-template-columns: minmax(0, 1fr); gap: 16px; }

	.kmj-ea-support__card:last-child { flex-direction: column; }

	.kmj-ea-support__card:last-child img { width: 100%; aspect-ratio: 4 / 3; }

	.kmj-ea-support__body { padding: 22px 22px 26px; }

	/* Table becomes one card per row. */
	.kmj-ea-table { border: 0; border-radius: 0; overflow: visible; display: grid; gap: 12px; }

	.kmj-ea-table__row--head { display: none; }

	.kmj-ea-table__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		border: 1px solid rgba(223, 203, 163, 0.22) !important;
		border-radius: 16px;
		overflow: hidden;
	}

	.kmj-ea-table__row > span { padding: 14px 16px; font-size: 15px; }

	.kmj-ea-table__row > span:nth-child(1) {
		grid-column: 1 / -1;
		padding-bottom: 4px;
		color: #fff;
		font-family: var(--ea-serif);
		font-size: 18px;
		font-weight: 700;
	}

	.kmj-ea-table__row > span:nth-child(2) { padding-right: 8px; }

	.kmj-ea-table__row > span:nth-child(3) { background: transparent; }

	.kmj-ea-table__row > span[data-label]::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 4px;
		color: rgba(255, 255, 255, 0.45);
		font-size: 10px;
		font-weight: 600;
		letter-spacing: 0.14em;
		text-transform: uppercase;
	}

	.kmj-ea-table__row > span:nth-child(3)::before { color: var(--ea-gold-deep); }

	.kmj-ea-leader {
		grid-template-columns: 96px minmax(0, 1fr);
		grid-template-areas:
			"photo who"
			"quote quote";
		column-gap: 16px;
		padding: 24px;
	}

	.kmj-ea-leader__photo { width: 96px; height: 96px !important; border-radius: 50%; }

	.kmj-ea-leader__who { align-self: center; padding-top: 0; border-top: 0; }

	.kmj-ea-leader__quote p { font-size: 18px; }

	.kmj-ea-cta { padding: 96px 0; }

	.kmj-ea-cta__inner { gap: 28px; }

	.kmj-ea-dock {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1035;
		display: block;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		background: rgba(46, 12, 21, 0.92);
		border-top: 1px solid rgba(223, 203, 163, 0.25);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		transform: translateY(110%);
		visibility: hidden;
		transition: transform 0.3s ease, visibility 0s linear 0.3s;
	}

	.kmj-ea-dock.is-visible {
		transform: translateY(0);
		visibility: visible;
		transition: transform 0.3s ease, visibility 0s;
	}

	.kmj-ea-dock .kmj-ea-btn {
		min-height: 50px;
		box-shadow: none;
	}

	body.offcanvas-menu-open .kmj-ea-dock,
	body.modal-open .kmj-ea-dock { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.kmj-ea-btn,
	.kmj-ea-btn svg,
	.kmj-ea-dock { transition: none; }
}
