/* Ecotheta's public site behaves like an industrial ledger: records enter,
 * decisions leave, and the working remains available for inspection. */
.masthead {
	min-height: 0;
	display: block;
	padding-block: clamp(46px, 5.5vh, 64px) 0;
	border: 0;
	background: #17251e;
	color: var(--white);
	box-shadow: 0 0 0 100vmax #17251e;
	clip-path: inset(0 -100vmax);
}
.hero-copy { width: 100%; }
.masthead h1 {
	font-size: clamp(68px, 6.9vw, 96px);
	line-height: .94;
	letter-spacing: -.052em;
	max-width: none;
}
.masthead h1 > span {
	display: block;
	font-size: .72em;
	line-height: 1;
	letter-spacing: -.035em;
	color: #fffdfa;
}
.masthead h1 em {
	display: block;
	margin-top: .1em;
	font-style: normal;
	color: #fffdfa;
	white-space: nowrap;
}
.masthead h1 strong {
	font: inherit;
	color: #23a96b;
}
.masthead-intro {
	display: grid;
	grid-template-columns: minmax(0, 590px) auto;
	justify-content: space-between;
	gap: 60px;
	align-items: end;
	margin-top: clamp(32px, 4.5vh, 46px);
}
.masthead-intro > p {
	font-size: 18px;
	line-height: 1.52;
	color: #d2dcd2;
	max-width: 55ch;
	border-left: 2px solid #23a96b;
	padding-left: 20px;
}
.masthead-actions { gap: 28px; }
.masthead-actions .button { background: #e7efdf; border-color: #e7efdf; color: #17251e; }
.masthead-actions .button:hover { background: white; }
.masthead-actions .text-link { color: #e7efdf; border: 0; font-size: 13px; }
.masthead-actions .text-link:hover { color: white; }

/* A visible, honest process signal. Labels move; claimed results do not. */
.hero-flow {
	min-height: 94px;
	display: grid;
	grid-template-columns: 185px minmax(180px, 1fr) auto;
	align-items: stretch;
	position: relative;
	margin-top: clamp(40px, 5vh, 58px);
	border-top: 1px solid #4b5d51;
}
.flow-label,
.flow-output {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.flow-label { border-right: 1px solid #4b5d51; padding-right: 24px; }
.flow-label span,
.flow-output span {
	font-size: 9px;
	line-height: 1.7;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #9fb09f;
}
.flow-label strong { font-size: 12px; font-weight: 500; color: #f3f5ef; margin-top: 4px; }
.flow-window {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	min-width: 0;
	container-type: inline-size;
	mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
}
.flow-window::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: #52655a;
}
.flow-track {
	display: flex;
	align-items: center;
	gap: 12px;
	width: max-content;
	animation: none;
}
.flow-track span {
	position: relative;
	z-index: 1;
	background: #17251e;
	border: 1px solid #617366;
	color: #d9e1d7;
	padding: 8px 13px;
	font-size: 10px;
	letter-spacing: .045em;
	white-space: nowrap;
}
.flow-window i {
	position: absolute;
	z-index: 2;
	top: calc(50% - 4px);
	left: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #b9d1ae;
	box-shadow: 0 0 0 6px #b9d1ae21;
	opacity: 0;
	animation: none;
}
.flow-output {
	min-width: 152px;
	padding-left: 28px;
	gap: 1px;
}
.flow-output span { color: #e7efdf; }
.site-motion-toggle {
	position: absolute;
	right: 0;
	top: auto;
	bottom: calc(100% + 4px);
	min-height: 44px;
	border: 0;
	background: transparent;
	padding: 7px 0;
	color: #aebcaf;
	font: 400 10px/1.4 var(--sans);
	cursor: pointer;
}
.site-motion-toggle:hover { color: white; }
.site-motion-toggle[hidden] { display: none; }

.record-section { padding-top: 74px; padding-bottom: 104px; }
.record-heading {
	align-items: end;
	border: 0;
	padding: 0;
	margin-bottom: 38px;
}
.record-heading .eyebrow { display: block; margin-bottom: 14px; }
.record-heading h2 {
	font: 400 clamp(39px, 4.2vw, 58px)/1.05 var(--serif);
	letter-spacing: -.035em;
}
.record-heading h2 sub { font-size: .5em; }
.record-intro {
	max-width: 43ch;
	font-size: 15px;
	line-height: 1.7;
	color: var(--muted);
}
.source-paper { transform: rotate(-1.5deg); }
.report-sheet { box-shadow: 0 18px 60px #1f29230c; }
.report-sheet::before { display: none; }
.working-record .evidence-thread { stroke-width: 1; }
.working-record .trail-base { opacity: .22; }
.working-record .trail-active { opacity: .9; stroke-width: 1.5; }
.record-number strong { letter-spacing: -.055em; }

.outcomes-section { padding-top: 20px; padding-bottom: 82px; }
.outcomes-section > .section-heading { margin-bottom: 42px; }
.outcomes-section h2 { font-size: clamp(42px, 4.7vw, 64px); max-width: 16ch; }
.section-intro { max-width: 38ch; }
.outcome-row { padding-block: 44px; gap: 42px; }
.outcome-copy h3 {
	font: 400 clamp(28px, 2.8vw, 38px)/1.12 var(--serif);
	letter-spacing: -.025em;
	max-width: 18ch;
}
.outcome-copy p { max-width: 42ch; }
.product-detail { background: transparent; border-left: 1px solid var(--line); padding-left: 30px; }

.coverage-section { background: var(--paper); color: var(--ink); padding-block: 78px 96px; }
.coverage-grid { border-top: 1px solid var(--ink); padding-top: 62px; gap: 100px; align-items: start; }
.coverage-section .eyebrow { color: var(--green); }
.coverage-section h2 { font-size: clamp(42px, 4.5vw, 62px); }
.coverage-section h2 em { color: var(--green); }
.coverage-grid > div > p:not(.eyebrow) { color: var(--muted); max-width: 49ch; }
.coverage-section .text-link:hover { color: var(--green); }
.coverage-section :focus-visible { outline-color: var(--green); }
.map-source { border: 1px solid var(--ink); background: var(--white); padding: 21px 20px; }
.map-symbol { color: var(--green); }
.map-source div > span { color: var(--muted); }
.map-outputs { border-color: var(--green); padding-top: 22px; gap: 0; }
.map-outputs > a { border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 18px 0 20px 10px; }
.map-outputs > a::before { background: var(--green); transform: scaleX(0); transform-origin: left; }
.map-outputs > a:hover { border-color: var(--green); }
.map-outputs .small-label, .map-outputs > a > span:last-child { color: var(--muted); }
.map-outputs strong { font-size: 22px; }

.investment-section { background: #17251e; color: var(--white); padding-block: 105px; }
.investment-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 76px; align-items: center; }
.investment-copy .eyebrow { color: #b9d1ae; margin-bottom: 27px; }
.investment-copy h2 { font-size: clamp(48px, 5vw, 68px); line-height: 1.01; letter-spacing: -.04em; }
.investment-copy > p:not(.eyebrow) { font-size: 15px; line-height: 1.7; color: #d2dcd2; margin-top: 28px; max-width: 41ch; }
.investment-copy > .investment-caution { font-size: 11px !important; color: #b7c5b8 !important; margin-top: 15px !important; }
.investment-copy .text-link { margin-top: 26px; font-size: 13px; }
.investment-copy .text-link:hover { color: #b9d1ae; }
.investment-section :focus-visible { outline-color: #d7e9ce; }
.masthead :focus-visible { outline-color: #d7e9ce; }
.investment-product { margin: 0; min-width: 0; }
.planner-figure { background: #f7f4ec; color: var(--ink); padding: 26px 28px 19px; }
.planner-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.planner-chart { height: 400px; position: relative; overflow: hidden; background-image: linear-gradient(#d8dbd130 1px, transparent 1px); background-size: 100% 25%; }
.planner-axis-label { position: absolute; top: 20px; left: 0; font-size: 10px; color: var(--muted); }
.planner-zero { position: absolute; left: 0; top: calc(50% - 18px); font-size: 10px; color: var(--muted); }
.planner-baseline { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--ink); transform-origin: left; }
.planner-bar { position: absolute; width: calc(50% - 18px); height: 124px; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px; font-size: 11px; transition: transform 1s cubic-bezier(.22,.68,0,1); }
.planner-bar strong { font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.planner-saving { left: 0; top: 50%; background: #2f674a; color: white; transform-origin: top; }
.planner-cost { right: 0; top: calc(50% - 124px); background: #8b672c; color: white; transform-origin: bottom; }
.planner-volume { position: absolute; left: 0; right: 0; bottom: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; font-size: 10px; color: var(--muted); text-align: center; }
.investment-product figcaption { font-size: 10px; line-height: 1.6; color: var(--muted); margin-top: 15px; }
.investment-product figcaption strong { font-weight: 400; }

.control-section { padding-block: 105px; gap: 100px; }
.control-copy h2 { font-size: clamp(43px, 4.6vw, 62px); line-height: 1.04; max-width: 14ch; }
.correction-example { box-shadow: none; transform: none; }
.demo-section { padding-block: 92px; }
.demo-copy h2 { max-width: 13ch; }

.subpage-header { padding-top: 76px; }
.subpage-header h1 { max-width: 20ch; }
.subpage-header .lede { max-width: 64ch; }
.trust-item h2 { font-family: var(--sans); font-size: 21px; letter-spacing: -.02em; }
.site-footer { padding-bottom: 24px; }

/* Reveals are progressive enhancement: content stays visible if JavaScript fails. */
.motion-ready [data-reveal] { opacity: 0; transform: translateY(30px); }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); transition: opacity .8s ease, transform .95s cubic-bezier(.22,.68,0,1); }
.motion-ready .hero-copy h1 > span,
.motion-ready .hero-copy h1 > em { display: block; opacity: 0; transform: translateY(34px); animation: hero-rise .95s cubic-bezier(.22,.68,0,1) forwards; }
.motion-ready .masthead-intro { opacity: 0; transform: translateY(34px); animation: hero-rise .95s cubic-bezier(.22,.68,0,1) forwards; }
.motion-ready .hero-copy h1 > em { animation-delay: .09s; }
.motion-ready .masthead-intro { display: grid; animation-delay: .18s; }
.motion-ready:not(.motion-reduced):not(.motion-suspended) .hero-flow:not(.is-offscreen) .flow-track { animation: ledger-travel 28s linear infinite; }
.motion-ready:not(.motion-reduced):not(.motion-suspended) .hero-flow:not(.is-offscreen) .flow-window i { animation: signal-pass 5.5s cubic-bezier(.45, 0, .55, 1) infinite; }
.motion-ready .planner-baseline { transform: scaleX(0); }
.motion-ready .planner-bar { transform: scaleY(0); }
.motion-ready .planner-figure.is-visible .planner-baseline { animation: baseline-draw .85s .2s cubic-bezier(.22,.68,0,1) forwards; }
.motion-ready .planner-figure.is-visible .planner-bar { transform: scaleY(1); }
.motion-ready .planner-figure.is-visible .planner-cost { transition-delay: .18s; }
.motion-ready .report-map.is-visible .map-outputs > a::before { animation: line-draw .55s forwards; }
.motion-ready .report-map.is-visible .map-outputs > a:nth-child(2)::before { animation-delay: .12s; }
.motion-ready .report-map.is-visible .map-outputs > a:nth-child(3)::before { animation-delay: .24s; }
.motion-ready .correction-example.is-visible .correction-row { animation: row-mark .6s both; }
.motion-ready .correction-example.is-visible .correction-row:nth-child(3) { animation-delay: .12s; }
.motion-ready .correction-example.is-visible .correction-row:nth-child(4) { animation-delay: .24s; }

@keyframes ledger-travel { to { transform: translateX(calc(-50% - 6px)); } }
@keyframes signal-pass { 0%, 8% { transform: translateX(-20px); opacity: 0; } 14% { opacity: 1; } 82% { opacity: 1; } 92%, 100% { transform: translateX(calc(100cqw - 10px)); opacity: 0; } }
@keyframes hero-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes baseline-draw { to { transform: scaleX(1); } }
@keyframes line-draw { to { transform: scaleX(1); } }
@keyframes row-mark { from { opacity: .25; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }

.motion-reduced *, .motion-reduced *::before, .motion-reduced *::after { animation: none !important; transition-duration: .01ms !important; }
.motion-reduced [data-reveal], .motion-reduced .hero-copy h1 > span, .motion-reduced .hero-copy h1 > em, .motion-reduced .masthead-intro { opacity: 1 !important; transform: none !important; }
.motion-reduced .planner-baseline { transform: scaleX(1) !important; }
.motion-reduced .planner-bar { transform: scaleY(1) !important; }
.motion-reduced .map-outputs > a::before { transform: scaleX(1) !important; }
.motion-reduced .flow-track,
.motion-reduced .flow-window i,
.motion-suspended .flow-track,
.motion-suspended .flow-window i,
.hero-flow.is-offscreen .flow-track,
.hero-flow.is-offscreen .flow-window i { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
	.flow-track, .flow-window i { animation: none !important; }
	[data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 1100px) {
	.masthead-intro { gap: 38px; }
	.masthead-intro > p { font-size: 16px; }
	.masthead h1 em { white-space: normal; }
	.hero-flow { grid-template-columns: 155px minmax(120px, 1fr) 130px; }
	.investment-layout { gap: 45px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
	.investment-copy h2 { font-size: 49px; }
	.coverage-grid { gap: 55px; }
}
@media (max-width: 850px) {
	.masthead { padding-top: 58px; }
	.masthead h1 { font-size: clamp(53px, 8vw, 68px); max-width: none; }
	.masthead-intro { grid-template-columns: 1fr; gap: 28px; }
	.hero-flow { margin-top: 60px; grid-template-columns: 140px 1fr; }
	.flow-output { display: none; }
	.record-heading { align-items: start; }
	.record-intro { max-width: 38ch; }
	.investment-layout { grid-template-columns: 1fr; gap: 45px; }
	.investment-copy { max-width: 640px; }
	.investment-copy > p:not(.eyebrow) { max-width: 60ch; }
	.planner-figure { max-width: 680px; width: 100%; }
}
@media (max-width: 640px) {
	.masthead { padding-top: 40px; }
	.masthead h1 { font-size: clamp(42px, 11.5vw, 52px); line-height: .98; max-width: none; }
	.masthead h1 > span { font-size: .78em; }
	.masthead-intro { margin-top: 30px; }
	.masthead-intro > p { font-size: 15px; padding-left: 14px; }
	.masthead-actions { display: flex; flex-wrap: wrap; gap: 6px 20px; }
	.masthead-actions .text-link { font-size: 12px; }
	.hero-flow { min-height: 82px; grid-template-columns: 100px 1fr; margin-top: 38px; }
	.flow-label { padding-right: 10px; }
	.flow-label strong { font-size: 10px; line-height: 1.3; }
	.motion-ready:not(.motion-reduced):not(.motion-suspended) .hero-flow:not(.is-offscreen) .flow-track { animation-duration: 22s; }
	.flow-track span { font-size: 9px; padding: 7px 10px; }
	.site-motion-toggle { font-size: 9px; }
	.record-section { padding-top: 66px; padding-bottom: 72px; }
	.record-heading { display: block; margin-bottom: 26px; }
	.record-heading h2 { max-width: 11ch; font-size: 39px; }
	.record-intro { margin-top: 18px; font-size: 14px; }
	.source-paper { transform: none; }
	.outcomes-section { padding: 8px 0 48px; }
	.outcomes-section h2 { font-size: 41px; }
	.outcome-row { padding-block: 34px; gap: 18px; }
	.outcome-copy h3 { font-size: 30px; }
	.product-detail { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
	.coverage-section { padding-block: 58px 70px; }
	.coverage-grid { padding-top: 42px; gap: 38px; }
	.coverage-section h2 { font-size: 42px; }
	.investment-section { padding-block: 68px; }
	.investment-copy h2 { font-size: 43px; max-width: 10ch; }
	.investment-copy > p:not(.eyebrow) { font-size: 14px; }
	.planner-figure { padding: 18px 16px 14px; }
	.planner-head { display: block; }
	.planner-head span { display: block; }
	.planner-head span + span { margin-top: 4px; }
	.planner-chart { height: 320px; }
	.planner-bar { height: 94px; width: calc(50% - 7px); padding: 10px; }
	.planner-bar strong { font-size: 16px; }
	.planner-cost { top: calc(50% - 94px); }
	.planner-volume { gap: 14px; }
	.control-section { padding-block: 72px; }
	.control-copy h2 { font-size: 42px; }
	.demo-section { padding-block: 66px; }
	.subpage-header h1 { font-size: 48px; }
}
