.page-template-default.page .ei-site-main:has(.ei-story-page),
.ei-story-page {
	background: linear-gradient(180deg, #090612 0%, #15071f 46%, #08050d 100%);
}

.ei-story-page {
	color: #f7ecd5;
	font-family: var(--ei-body-font);
}

.ei-story-container {
	width: min(100% - 28px, 1220px);
	margin-inline: auto;
}

.ei-story-hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: 620px;
	overflow: hidden;
	isolation: isolate;
}

.ei-story-hero img {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(1.04) contrast(1.04) brightness(0.82);
}

.ei-story-hero--founder img,
.ei-story-hero--overview img {
	object-position: center;
}

.ei-story-hero--sanctuary img {
	object-position: center;
}

.ei-story-hero--journal img {
	object-position: center 46%;
}

.ei-story-hero::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(7, 6, 18, 0.92), rgba(7, 6, 18, 0.56) 44%, rgba(7, 6, 18, 0.1)),
		linear-gradient(180deg, rgba(7, 6, 18, 0.04), rgba(7, 6, 18, 0.76));
}

.ei-story-hero__content {
	position: relative;
	z-index: 2;
	width: min(100% - 48px, 1220px);
	margin-inline: auto;
	padding: 128px 0 86px;
}

.ei-story-page .ei-kicker {
	margin: 0 0 10px;
	color: #d8a743;
	font-family: var(--ei-ui-font);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.ei-story-hero h1 {
	max-width: 760px;
	margin: 0;
	color: #f6d891;
	font-family: var(--ei-heading-font);
	font-size: 4.05rem;
	font-weight: 500;
	line-height: 1;
	text-shadow: 0 0 34px rgba(216, 167, 67, 0.16);
}

.ei-story-hero p:not(.ei-kicker) {
	max-width: 610px;
	margin: 20px 0 0;
	color: rgba(247, 236, 213, 0.9);
	font-size: 1.16rem;
	line-height: 1.46;
}

.ei-story-section {
	padding: 74px 0;
}

.ei-story-section--deep {
	border-top: 1px solid rgba(216, 167, 67, 0.2);
	border-bottom: 1px solid rgba(216, 167, 67, 0.2);
	background: linear-gradient(180deg, rgba(19, 8, 28, 0.92), rgba(9, 5, 14, 0.96));
}

.ei-story-intro {
	display: grid;
	grid-template-columns: 0.78fr 1.22fr;
	gap: 48px;
	align-items: start;
}

.ei-story-page h2 {
	margin: 0;
	color: #f3d490;
	font-family: var(--ei-heading-font);
	font-size: 2.55rem;
	font-weight: 500;
	line-height: 1.08;
}

.ei-story-page h3 {
	margin: 0 0 12px;
	color: #f3d490;
	font-family: var(--ei-heading-font);
	font-size: 1.32rem;
	font-weight: 600;
	line-height: 1.15;
}

.ei-story-page p {
	margin: 0;
	color: rgba(247, 236, 213, 0.84);
	font-size: 1.08rem;
	line-height: 1.58;
}

.ei-story-page p + p {
	margin-top: 16px;
}

.ei-story-paths {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.ei-story-path {
	position: relative;
	display: grid;
	gap: 12px;
	min-height: 210px;
	padding: 24px;
	overflow: hidden;
	border: 1px solid rgba(216, 167, 67, 0.48);
	border-radius: 8px;
	color: #f7ecd5;
	text-decoration: none;
	background: linear-gradient(180deg, rgba(31, 13, 42, 0.86), rgba(9, 5, 14, 0.94));
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
	transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.ei-story-path::after {
	position: absolute;
	right: 22px;
	bottom: 18px;
	color: rgba(216, 167, 67, 0.46);
	font-family: var(--ei-heading-font);
	font-size: 2rem;
	content: "→";
}

.ei-story-path span {
	max-width: 260px;
	color: #f7d891;
	font-family: var(--ei-heading-font);
	font-size: 1.55rem;
	line-height: 1.1;
}

.ei-story-path em {
	max-width: 290px;
	color: rgba(247, 236, 213, 0.78);
	font-size: 1rem;
	font-style: normal;
	line-height: 1.45;
}

.ei-story-path:hover,
.ei-story-path:focus-visible {
	border-color: rgba(246, 216, 145, 0.78);
	box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34), 0 0 28px rgba(216, 167, 67, 0.12);
	transform: translateY(-2px);
}

.ei-story-split,
.ei-founder-profile {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
	gap: 42px;
	align-items: center;
}

.ei-story-split--image {
	grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
}

.ei-story-split--image > img,
.ei-founder-profile figure,
.ei-founder-profile img {
	display: block;
	width: 100%;
}

.ei-story-split--image > img,
.ei-founder-profile figure {
	overflow: hidden;
	border: 1px solid rgba(216, 167, 67, 0.42);
	border-radius: 8px;
	background: #07040b;
	box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.ei-story-split--image > img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.ei-founder-profile {
	grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
}

.ei-founder-profile figure {
	margin: 0;
}

.ei-founder-profile img {
	aspect-ratio: 1;
	object-fit: cover;
}

.ei-story-panel {
	padding: 28px;
	border: 1px solid rgba(216, 167, 67, 0.42);
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(31, 13, 42, 0.84), rgba(11, 5, 17, 0.94));
}

.ei-story-panel ul {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ei-story-panel li {
	position: relative;
	padding-left: 26px;
	color: rgba(247, 236, 213, 0.86);
	font-size: 1rem;
	line-height: 1.35;
}

.ei-story-panel li::before {
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #d8a743;
	content: "";
	box-shadow: 0 0 16px rgba(216, 167, 67, 0.36);
}

.ei-founder-principles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.ei-founder-principles article {
	padding: 26px;
	border: 1px solid rgba(216, 167, 67, 0.42);
	border-radius: 8px;
	background: rgba(10, 5, 16, 0.72);
}

.ei-founder-principles .ei-icon {
	width: 36px;
	height: 36px;
	margin-bottom: 18px;
	color: #d8a743;
}

.ei-founder-principles p {
	font-size: 1rem;
	line-height: 1.48;
}

.ei-story-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	margin-top: 24px;
	padding: 11px 22px;
	border: 1px solid rgba(255, 231, 172, 0.52);
	border-radius: 7px;
	color: #1c0b14;
	font-family: var(--ei-ui-font);
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: none;
	background: linear-gradient(180deg, #f2c769, #b97925);
	transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.ei-story-button:hover,
.ei-story-button:focus-visible {
	color: #10060d;
	filter: brightness(1.08);
	transform: translateY(-1px);
	box-shadow: 0 18px 32px rgba(0, 0, 0, 0.34), 0 0 22px rgba(216, 167, 67, 0.18);
}

.ei-story-gallery {
	padding: 0 0 74px;
	background: #0b0610;
}

.ei-story-gallery__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.ei-story-gallery__grid img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 1px solid rgba(216, 167, 67, 0.38);
	border-radius: 8px;
	background: #07040b;
}

.ei-story-gallery__grid img:first-child {
	grid-column: span 2;
	grid-row: span 2;
	height: 100%;
}

.ei-journal-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
	gap: 42px;
	align-items: start;
}

.ei-journal-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.ei-journal-card {
	position: relative;
	display: grid;
	align-content: end;
	min-height: 310px;
	padding: 22px;
	overflow: hidden;
	border: 1px solid rgba(216, 167, 67, 0.48);
	border-radius: 8px;
	color: #f7ecd5;
	text-decoration: none;
	background: #07040b;
	box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.ei-journal-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(1.04) contrast(1.05) brightness(0.68);
	transition: transform 220ms ease, filter 220ms ease;
}

.ei-journal-card::after {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(180deg, rgba(7, 4, 11, 0.06), rgba(7, 4, 11, 0.9));
}

.ei-journal-card span,
.ei-journal-card em {
	position: relative;
	z-index: 1;
}

.ei-journal-card span {
	max-width: 240px;
	color: #f7d891;
	font-family: var(--ei-heading-font);
	font-size: 1.42rem;
	font-weight: 600;
	line-height: 1.08;
}

.ei-journal-card em {
	max-width: 270px;
	margin-top: 10px;
	color: rgba(247, 236, 213, 0.8);
	font-size: 1rem;
	font-style: normal;
	line-height: 1.42;
}

.ei-journal-card:hover,
.ei-journal-card:focus-visible {
	border-color: rgba(246, 216, 145, 0.76);
}

.ei-journal-card:hover img,
.ei-journal-card:focus-visible img {
	filter: saturate(1.1) contrast(1.08) brightness(0.78);
	transform: scale(1.035);
}

.ei-journal-note-heading {
	max-width: 720px;
	margin-bottom: 26px;
}

.ei-journal-note-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.ei-journal-note {
	min-height: 230px;
	padding: 24px;
	border: 1px solid rgba(216, 167, 67, 0.42);
	border-radius: 8px;
	background: linear-gradient(180deg, rgba(31, 13, 42, 0.84), rgba(11, 5, 17, 0.94));
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.ei-journal-note h3 {
	max-width: 330px;
	margin-top: 14px;
	font-size: 1.5rem;
	line-height: 1.12;
}

@media (max-width: 980px) {
	.ei-story-hero {
		min-height: 560px;
	}

	.ei-story-hero__content {
		padding-bottom: 68px;
	}

	.ei-story-hero h1 {
		font-size: 3rem;
	}

	.ei-story-intro,
	.ei-story-split,
	.ei-story-split--image,
	.ei-founder-profile,
	.ei-story-paths,
	.ei-founder-principles,
	.ei-journal-feature,
	.ei-journal-note-grid {
		grid-template-columns: 1fr;
	}

	.ei-story-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ei-journal-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ei-story-container,
	.ei-story-hero__content {
		width: min(100% - 20px, 1220px);
	}

	.ei-story-hero {
		min-height: 500px;
	}

	.ei-story-hero::after {
		background:
			linear-gradient(90deg, rgba(7, 6, 18, 0.92), rgba(7, 6, 18, 0.66)),
			linear-gradient(180deg, rgba(7, 6, 18, 0.06), rgba(7, 6, 18, 0.78));
	}

	.ei-story-hero__content {
		padding: 112px 0 54px;
	}

	.ei-story-hero h1 {
		font-size: 2.28rem;
	}

	.ei-story-hero p:not(.ei-kicker),
	.ei-story-page p {
		font-size: 1rem;
	}

	.ei-story-section {
		padding: 52px 0;
	}

	.ei-story-page h2 {
		font-size: 2rem;
	}

	.ei-story-path {
		min-height: 180px;
	}

	.ei-story-gallery__grid,
	.ei-story-gallery__grid img:first-child {
		display: grid;
		grid-template-columns: 1fr;
		grid-column: auto;
		grid-row: auto;
	}

	.ei-journal-grid {
		grid-template-columns: 1fr;
	}

	.ei-journal-card,
	.ei-journal-note {
		min-height: 220px;
	}

	.ei-journal-card span,
	.ei-journal-note h3 {
		font-size: 1.34rem;
	}
}
