/*
 * Our Story — static heritage/timeline page (Phase 10)
 * "Dark Forest / Imperial Gold / Cream"
 * Standalone lane, strict `.eh-*` scoping under `.eh-story` (same approach as
 * journal/home) — shared classes from the design bundle (container/btn/
 * hero-grain/arrow) are ported here with `.eh-` prefix to avoid collisions
 * with the Ecome parent theme. Loaded only on the `our-story` page.
 */

.eh-story {
	--eh-forest-900: #0d2a20;
	--eh-forest-800: #14392c;
	--eh-forest-700: #1b4332;
	--eh-herb-600: #2d6a4f;
	--eh-herb-500: #3b8466;
	--eh-gold-600: #b78712;
	--eh-gold-500: #d4a017;
	--eh-gold-400: #e6bf4f;
	--eh-cream-50: #faf7f1;
	--eh-cream-100: #f8f5f0;
	--eh-cream-200: #efe8d9;
	--eh-ink-900: #14201a;
	--eh-ink-700: #2f3a32;
	--eh-ink-500: #6b7368;
	--eh-line: rgba(20, 32, 26, 0.12);
	--eh-line-dark: rgba(243, 228, 182, 0.18);
	--eh-font-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
	--eh-font-body: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
	--eh-font-mono: "JetBrains Mono", ui-monospace, monospace;

	font-family: var(--eh-font-body);
	color: var(--eh-ink-700);
	background: var(--eh-cream-50);
}

.eh-story *,
.eh-story *::before,
.eh-story *::after { box-sizing: border-box; }

.eh-story img { max-width: 100%; height: auto; display: block; }
.eh-story a { color: inherit; text-decoration: none; }
.eh-story button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.eh-story h1, .eh-story h2, .eh-story h3, .eh-story h4 {
	font-family: var(--eh-font-display);
	color: var(--eh-forest-900);
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.1;
	margin: 0;
}

.eh-story .eh-container {
	max-width: 1360px;
	margin: 0 auto;
	padding: 0 40px;
}
@media (max-width: 720px) { .eh-story .eh-container { padding: 0 20px; } }

/* === Shared: buttons / arrow / grain === */
.eh-story .eh-btn {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 16px 28px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	border-radius: 0;
	border: 1px solid transparent;
	transition: all 0.25s ease;
	white-space: nowrap;
}
.eh-story .eh-btn-gold {
	background: var(--eh-gold-500);
	color: var(--eh-forest-900);
	border-color: var(--eh-gold-500);
}
.eh-story .eh-btn-gold:hover { background: var(--eh-gold-400); border-color: var(--eh-gold-400); transform: translateY(-1px); }
.eh-story .eh-btn-outline {
	background: transparent;
	color: var(--eh-forest-900);
	border-color: var(--eh-forest-700);
}
.eh-story .eh-btn-outline:hover { background: var(--eh-forest-700); color: var(--eh-cream-100); }
.eh-story .eh-arrow { width: 18px; height: 1px; background: currentColor; position: relative; transition: width .25s; }
.eh-story .eh-arrow::after {
	content: ""; position: absolute; right: 0; top: -3px;
	width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.eh-story .eh-btn:hover .eh-arrow { width: 26px; }

.eh-story .eh-hero-grain {
	position: absolute; inset: 0;
	opacity: 0.5;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.18'/></svg>");
	pointer-events: none;
}

/* === 01 · HERO HEAD === */
.eh-story .eh-story-head {
	background: var(--eh-forest-900);
	color: var(--eh-cream-100);
	padding: 96px 0 88px;
	position: relative;
	overflow: hidden;
}
.eh-story .eh-story-head::before {
	content: "";
	position: absolute; inset: 0;
	background:
		radial-gradient(ellipse 65% 80% at 82% 50%, rgba(45,106,79,0.42), transparent 58%),
		radial-gradient(ellipse 40% 55% at 8% 85%, rgba(212,160,23,0.07), transparent 55%),
		linear-gradient(180deg, rgba(13,42,32,0.5) 0%, rgba(13,42,32,0.9) 100%);
	pointer-events: none;
}
.eh-story .eh-story-head-inner { position: relative; z-index: 2; }
.eh-story .eh-os-breadcrumbs {
	font-size: 11px;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: rgba(243,228,182,0.5);
	margin-bottom: 26px;
	display: flex; align-items: center; gap: 10px;
}
.eh-story .eh-os-breadcrumbs a { color: var(--eh-gold-400); transition: color .2s; }
.eh-story .eh-os-breadcrumbs a:hover { color: var(--eh-gold-500); }
.eh-story .eh-os-breadcrumbs .eh-sep { opacity: 0.4; }
.eh-story .eh-head-kicker {
	font-size: 10px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--eh-gold-400);
	font-weight: 700;
	margin-bottom: 24px;
}
.eh-story .eh-story-head h1 {
	color: var(--eh-cream-100);
	font-size: clamp(60px, 9vw, 118px);
	line-height: 0.93;
	font-weight: 400;
	letter-spacing: -0.02em;
}
.eh-story .eh-story-head h1 em {
	font-style: italic;
	color: var(--eh-gold-400);
}
.eh-story .eh-head-byline {
	margin-top: 32px;
	display: flex; align-items: center; gap: 16px;
	font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
	color: rgba(243,228,182,0.42); font-weight: 700;
}
.eh-story .eh-head-byline::before { content: ""; width: 32px; height: 1px; background: var(--eh-gold-500); }

/* === 02 · BRAND INTRO === */
.eh-story .eh-brand-intro { background: var(--eh-cream-50); padding: 110px 0; }
.eh-story .eh-brand-intro-grid {
	display: grid;
	grid-template-columns: 1fr 0.88fr;
	gap: 100px;
	align-items: center;
}
@media (max-width: 960px) { .eh-story .eh-brand-intro-grid { grid-template-columns: 1fr; gap: 60px; } }

.eh-story .eh-bi-eyebrow {
	font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase;
	color: var(--eh-gold-600); font-weight: 700;
	display: inline-flex; align-items: center; gap: 12px;
	margin-bottom: 26px;
}
.eh-story .eh-bi-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--eh-gold-500); }

.eh-story .eh-brand-intro-text h2 {
	font-size: clamp(34px, 3.6vw, 52px);
	line-height: 1.08;
	margin-bottom: 34px;
}
.eh-story .eh-brand-intro-text h2 em { font-style: italic; color: var(--eh-gold-500); font-weight: 400; }
.eh-story .eh-brand-intro-text p {
	font-size: 16px; line-height: 1.84;
	color: var(--eh-ink-500);
	max-width: 560px;
	margin-bottom: 22px;
	text-wrap: pretty;
}
.eh-story .eh-brand-intro-text p:last-of-type { margin-bottom: 0; }
.eh-story .eh-brand-intro-text p .eh-botanical-name {
	font-family: var(--eh-font-display); font-style: italic;
	color: var(--eh-forest-900); font-size: 1.04em;
}

/* Bio visual */
.eh-story .eh-bio-visual { position: relative; padding: 0 16px 32px 0; }
.eh-story .eh-bio-img-wrap {
	position: relative;
	aspect-ratio: 3/4;
	border: 1px solid var(--eh-line);
	background: repeating-linear-gradient(
		45deg,
		var(--eh-cream-100) 0, var(--eh-cream-100) 2px,
		var(--eh-cream-200) 2px, var(--eh-cream-200) 14px
	);
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	gap: 16px; overflow: hidden;
}
.eh-story .eh-bio-img-wrap::before {
	content: "";
	position: absolute; inset: 12px;
	border: 1px solid rgba(212,160,23,0.22);
	pointer-events: none; z-index: 1;
}
.eh-story .eh-bio-img-wrap img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; z-index: 0;
}
.eh-story .eh-bio-img-wrap .eh-ph-icon { color: var(--eh-gold-600); opacity: 0.5; }
.eh-story .eh-bio-img-wrap .eh-ph-icon svg { width: 56px; height: 56px; }
.eh-story .eh-bio-img-wrap .eh-ph-label {
	font-family: var(--eh-font-mono);
	font-size: 11px; letter-spacing: 0.1em;
	color: var(--eh-ink-500); text-align: center;
	line-height: 1.65; opacity: 0.62;
	padding: 0 32px;
}
.eh-story .eh-bio-corner-badge {
	position: absolute;
	bottom: 12px; right: 0;
	background: var(--eh-gold-500);
	color: var(--eh-forest-900);
	padding: 20px 26px; z-index: 3;
}
.eh-story .eh-bio-corner-badge .eh-bc-tag {
	font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
	font-weight: 700; display: block; margin-bottom: 6px;
	color: var(--eh-forest-900); opacity: 0.65;
}
.eh-story .eh-bio-corner-badge .eh-bc-name {
	font-family: var(--eh-font-display); font-size: 24px;
	font-weight: 500; color: var(--eh-forest-900);
	line-height: 1.2; display: block;
}
.eh-story .eh-bio-corner-badge .eh-bc-sub {
	font-family: var(--eh-font-display); font-style: italic;
	font-size: 13px; color: rgba(13,42,32,0.6);
	margin-top: 4px; display: block;
}

/* === 03 · WHEN WE STARTED (origins) === */
.eh-story .eh-origins-section {
	background: var(--eh-forest-900);
	padding: 96px 0;
	position: relative; overflow: hidden;
}
.eh-story .eh-origins-section::before {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(ellipse 70% 65% at 18% 55%, rgba(45,106,79,0.28), transparent 55%),
		radial-gradient(ellipse 50% 50% at 85% 30%, rgba(212,160,23,0.06), transparent 50%);
	pointer-events: none;
}
.eh-story .eh-origins-inner {
	position: relative; z-index: 2;
	max-width: 820px; margin: 0 auto; text-align: center;
}
.eh-story .eh-origins-inner .eh-oi-eyebrow {
	font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase;
	color: var(--eh-gold-400); font-weight: 700;
	display: inline-flex; align-items: center; gap: 12px;
	margin-bottom: 28px;
	justify-content: center;
}
.eh-story .eh-origins-inner .eh-oi-eyebrow::before,
.eh-story .eh-origins-inner .eh-oi-eyebrow::after {
	content: ""; width: 28px; height: 1px; background: var(--eh-gold-400);
}
.eh-story .eh-origins-inner h2 {
	color: var(--eh-cream-100);
	font-size: clamp(34px, 4vw, 56px);
	margin-bottom: 28px;
}
.eh-story .eh-origins-inner h2 em { font-style: italic; color: var(--eh-gold-400); font-weight: 400; }
.eh-story .eh-origins-inner p {
	font-size: 17px; line-height: 1.84;
	color: rgba(243,228,182,0.62);
	text-wrap: pretty;
}
.eh-story .eh-origins-deco {
	margin-top: 52px;
	display: flex; align-items: center; justify-content: center; gap: 16px;
	color: var(--eh-gold-500); opacity: 0.3;
}
.eh-story .eh-origins-deco .eh-od-line { width: 52px; height: 1px; background: var(--eh-gold-500); }
.eh-story .eh-origins-deco svg { width: 28px; height: 28px; flex-shrink: 0; }

/* === 04 · TIMELINE === */
.eh-story .eh-timeline-section { background: var(--eh-cream-100); padding: 120px 0 130px; }

.eh-story .eh-tl-head {
	text-align: center;
	margin-bottom: 88px;
}
.eh-story .eh-tl-head .eh-tl-eyebrow {
	font-size: 10px; letter-spacing: 0.36em; text-transform: uppercase;
	color: var(--eh-gold-600); font-weight: 700;
	display: inline-flex; align-items: center; gap: 12px;
	margin-bottom: 22px; justify-content: center;
}
.eh-story .eh-tl-head .eh-tl-eyebrow::before,
.eh-story .eh-tl-head .eh-tl-eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--eh-gold-500); }
.eh-story .eh-tl-head h2 {
	font-size: clamp(38px, 4.5vw, 62px);
	margin: 0;
}
.eh-story .eh-tl-head h2 em { font-style: italic; color: var(--eh-gold-500); font-weight: 400; }

/* Timeline spine */
.eh-story .eh-v-timeline {
	position: relative;
	max-width: 1080px;
	margin: 0 auto;
}
.eh-story .eh-v-timeline::before {
	content: "";
	position: absolute;
	left: 50%; top: 0; bottom: 0;
	transform: translateX(-50%);
	width: 1px;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(212,160,23,0.45) 6%,
		rgba(212,160,23,0.45) 94%,
		transparent 100%
	);
}

/* Timeline item */
.eh-story .eh-v-tl-item {
	display: grid;
	grid-template-columns: 1fr 60px 1fr;
	align-items: start;
	margin-bottom: 64px;
	position: relative;
}
.eh-story .eh-v-tl-item:last-child { margin-bottom: 0; }

/* Node column */
.eh-story .eh-v-tl-node {
	display: flex; align-items: flex-start; justify-content: center;
	padding-top: 24px;
	position: relative; z-index: 3;
}
.eh-story .eh-node-ring {
	width: 14px; height: 14px;
	background: var(--eh-gold-500);
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(212,160,23,0.18), 0 0 0 8px rgba(212,160,23,0.07);
	flex-shrink: 0;
}
.eh-story .eh-node-ring.eh-node-active {
	background: var(--eh-gold-400);
	box-shadow: 0 0 0 5px rgba(212,160,23,0.28), 0 0 0 11px rgba(212,160,23,0.09);
	animation: eh-node-pulse 2.4s ease-in-out infinite;
}
@keyframes eh-node-pulse {
	0%, 100% { box-shadow: 0 0 0 5px rgba(212,160,23,0.28), 0 0 0 11px rgba(212,160,23,0.09); }
	50% { box-shadow: 0 0 0 5px rgba(212,160,23,0.45), 0 0 0 14px rgba(212,160,23,0.04); }
}

/* Card areas */
.eh-story .eh-v-tl-left { padding-right: 44px; text-align: right; position: relative; }
.eh-story .eh-v-tl-right { padding-left: 44px; text-align: left; position: relative; }
.eh-story .eh-v-tl-spacer { /* intentionally empty */ }

/* Horizontal connector lines */
.eh-story .eh-v-tl-left::after {
	content: "";
	position: absolute;
	right: 0; top: 30px;
	width: 44px; height: 1px;
	background: rgba(212,160,23,0.35);
}
.eh-story .eh-v-tl-right::before {
	content: "";
	position: absolute;
	left: 0; top: 30px;
	width: 44px; height: 1px;
	background: rgba(212,160,23,0.35);
}

/* The card */
.eh-story .eh-v-tl-card {
	background: var(--eh-cream-50);
	border: 1px solid var(--eh-line);
	padding: 36px 36px 40px;
	position: relative; overflow: hidden;
	transition: border-color .3s, box-shadow .3s, transform .3s;
}
.eh-story .eh-v-tl-card:hover {
	border-color: rgba(212,160,23,0.45);
	box-shadow: 0 16px 40px rgba(13,42,32,0.08);
	transform: translateY(-3px);
}
.eh-story .eh-v-tl-card::after {
	content: "";
	position: absolute; top: 0; right: 0; left: 0;
	height: 2px; background: var(--eh-gold-500);
	transform: scaleX(0); transform-origin: left;
	transition: transform .35s;
}
.eh-story .eh-v-tl-left .eh-v-tl-card::after { transform-origin: right; }
.eh-story .eh-v-tl-card:hover::after { transform: scaleX(1); }

.eh-story .eh-v-tl-card .eh-card-era {
	font-family: var(--eh-font-display); font-style: italic;
	font-size: 15px; color: var(--eh-gold-600);
	display: block; margin-bottom: 10px;
}
.eh-story .eh-v-tl-card h3 {
	font-size: clamp(21px, 2vw, 27px);
	color: var(--eh-forest-900); margin-bottom: 14px;
	line-height: 1.15; font-weight: 500;
}
.eh-story .eh-v-tl-card p {
	font-size: 14px; line-height: 1.76;
	color: var(--eh-ink-500); margin: 0; text-wrap: pretty;
}
.eh-story .eh-card-year-ghost {
	font-family: var(--eh-font-display); font-style: italic;
	font-size: 70px; line-height: 1;
	color: var(--eh-cream-200);
	position: absolute; bottom: -10px; right: 14px;
	pointer-events: none; user-select: none;
	transition: color .3s;
}
.eh-story .eh-v-tl-left .eh-card-year-ghost { right: auto; left: 14px; }
.eh-story .eh-v-tl-card:hover .eh-card-year-ghost { color: rgba(212,160,23,0.1); }

/* Dark card — "Today" */
.eh-story .eh-v-tl-card.eh-card-dark {
	background: var(--eh-forest-900); border-color: var(--eh-forest-900);
}
.eh-story .eh-v-tl-card.eh-card-dark::after { display: none; }
.eh-story .eh-v-tl-card.eh-card-dark .eh-card-era { color: var(--eh-gold-400); }
.eh-story .eh-v-tl-card.eh-card-dark h3 { color: var(--eh-cream-100); }
.eh-story .eh-v-tl-card.eh-card-dark p { color: rgba(243,228,182,0.62); }
.eh-story .eh-v-tl-card.eh-card-dark .eh-card-year-ghost { color: rgba(243,228,182,0.04); }
.eh-story .eh-v-tl-card.eh-card-dark:hover { border-color: var(--eh-gold-500); box-shadow: 0 16px 40px rgba(0,0,0,0.24); }
.eh-story .eh-v-tl-card.eh-card-dark:hover .eh-card-year-ghost { color: rgba(212,160,23,0.08); }

/* Mobile timeline */
@media (max-width: 860px) {
	.eh-story .eh-v-timeline::before { left: 16px; transform: none; }
	.eh-story .eh-v-tl-item { grid-template-columns: 40px 1fr; }
	.eh-story .eh-v-tl-spacer { display: none; }
	.eh-story .eh-v-tl-node { grid-column: 1; grid-row: 1; justify-content: center; padding-top: 20px; }
	.eh-story .eh-v-tl-left {
		grid-column: 2; grid-row: 1;
		padding-right: 0; padding-left: 20px; text-align: left;
	}
	.eh-story .eh-v-tl-left::after { display: none; }
	.eh-story .eh-v-tl-right { grid-column: 2; grid-row: 1; padding-left: 20px; }
	.eh-story .eh-v-tl-right::before { display: none; }
	.eh-story .eh-card-year-ghost { font-size: 52px; right: 10px !important; left: auto !important; }
}

/* === 05 · LEGACY / VALUES BAR === */
/* No mock numbers (CLAUDE.md §4) — each cell carries a value statement
   instead of a stat. */
.eh-story .eh-legacy-bar { background: var(--eh-forest-900); }
.eh-story .eh-legacy-inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}
.eh-story .eh-legacy-cell {
	padding: 54px 44px;
	border-right: 1px solid var(--eh-line-dark);
	text-align: center;
	display: flex; align-items: center; justify-content: center;
}
.eh-story .eh-legacy-cell:last-child { border-right: 0; }
.eh-story .eh-legacy-cell .eh-lg-statement {
	font-family: var(--eh-font-display);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(20px, 2.1vw, 28px);
	line-height: 1.35;
	color: var(--eh-gold-400);
}
@media (max-width: 720px) {
	.eh-story .eh-legacy-inner { grid-template-columns: 1fr; }
	.eh-story .eh-legacy-cell { border-right: 0; border-bottom: 1px solid var(--eh-line-dark); padding: 38px 24px; }
	.eh-story .eh-legacy-cell:last-child { border-bottom: 0; }
}

/* === 06 · CLOSING CTA === */
.eh-story .eh-story-cta-strip {
	background: var(--eh-cream-50);
	padding: 110px 0;
	text-align: center;
}
.eh-story .eh-story-cta-strip .eh-ornament-divider {
	display: flex; align-items: center; justify-content: center; gap: 18px;
	color: var(--eh-gold-500); margin-bottom: 50px;
}
.eh-story .eh-story-cta-strip .eh-ornament-divider .eh-od-l { width: 60px; height: 1px; background: var(--eh-gold-500); opacity: 0.45; }
.eh-story .eh-story-cta-strip .eh-ornament-divider svg { width: 28px; height: 28px; flex-shrink: 0; }
.eh-story .eh-story-cta-strip h2 {
	font-size: clamp(38px, 4.5vw, 62px); margin-bottom: 20px;
}
.eh-story .eh-story-cta-strip h2 em { font-style: italic; color: var(--eh-gold-500); font-weight: 400; }
.eh-story .eh-story-cta-strip .eh-cta-lede {
	font-size: 17px; line-height: 1.76;
	color: var(--eh-ink-500); max-width: 580px;
	margin: 0 auto 48px; text-wrap: pretty;
}
.eh-story .eh-story-cta-strip .eh-cta-btns {
	display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
