:root {
  --bg: #0e0e10;
  --surface: #151518;
  --surface-2: #1a1a1e;
  --text: #f7f7f2;
  --body: #dfdfd9;
  --muted: #a3a39d;
  --yellow: #ffd400;
  --red: #e84242;
  --line: rgba(255, 255, 255, .11);
  --shell: 1160px;
  --reading: 740px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.narrow { max-width: var(--reading); }

.skip-link {
  position: fixed; z-index: 100; top: 12px; left: 12px;
  transform: translateY(-160%); padding: 10px 16px;
  background: var(--yellow); color: #111; font-weight: 800;
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(14, 14, 16, .96); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark {
  flex: none; text-decoration: none; text-transform: uppercase;
  font-size: .98rem; font-weight: 900; letter-spacing: -.035em; line-height: 1;
}
.wordmark span { color: var(--yellow); }
.wordmark i { display: inline-block; margin-left: 7px; border-left: 7px solid var(--red); border-block: 4px solid transparent; }
.site-header nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 2vw, 28px); }
.site-header nav a { color: #c9c6ce; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--yellow); }
.youtube-link { border-left: 1px solid var(--line); padding-left: 24px; }
.header-tests-banner { min-height: 42px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.header-tests-banner a { padding: 5px 10px; border: 1px solid var(--yellow); color: var(--yellow); font-weight: 800; text-decoration: none; }
.header-tests-banner a:hover, .header-tests-banner a[aria-current="page"] { background: var(--yellow); color: var(--bg); }

.eyebrow { margin: 0 0 14px; color: var(--yellow); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.lead { max-width: 690px; margin: 0; color: var(--body); font-size: clamp(1.06rem, 1.5vw, 1.24rem); line-height: 1.65; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(52px, 8vw, 110px); align-items: center; padding-block: 74px 82px;
}
.hero-copy { max-width: 700px; }
.hero h1, .page h1, .articles-index h1, .article h1 {
  margin: 0 0 28px; font-size: clamp(3rem, 5vw, 4.75rem); line-height: .98;
  color: var(--text); letter-spacing: -.055em;
}
.hero h1 mark { display: block; color: var(--yellow); background: none; }
.hero h1 span { display: block; }
.actions, .page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  padding: 0 22px; border: 1px solid var(--yellow); background: transparent;
  border-radius: 6px; color: var(--text); font-weight: 800; text-decoration: none; cursor: pointer;
}
.button.primary { background: var(--yellow); color: #111; }
.button:hover { filter: brightness(1.07); }
.text-link { font-weight: 750; text-decoration-color: var(--yellow); }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 38px 0 0; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-facts div { min-width: 135px; }
.hero-facts dt { color: var(--muted); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.hero-facts dd { margin: 2px 0 0; font-size: .96rem; font-weight: 750; }

.author-figure { width: min(100%, 360px); margin: 0 0 0 auto; }
.author-figure img, .about-layout figure img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center 28%;
  border: 1px solid #3a3640; filter: none; image-rendering: auto;
}
.author-figure figcaption {
  margin: 0; padding: 17px 0 0; border-top: 3px solid var(--yellow);
  color: var(--muted); font-size: .92rem; line-height: 1.5;
}
.author-figure figcaption strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 1rem; }

.ruled-section { padding-block: 74px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-heading h2, .tool-band h2, .project-note h2 {
  margin: 0; font-size: clamp(2rem, 3.5vw, 3.35rem); line-height: 1.05; letter-spacing: -.045em;
}
.editorial-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: clamp(48px, 8vw, 100px); }
.feature-story { max-width: 650px; }
.story-meta, .article-meta, .article-feature span { color: var(--muted); font-size: .82rem; }
.feature-story h3 { margin: 10px 0 18px; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.06; letter-spacing: -.04em; }
.feature-story h3 a { text-decoration: none; }
.feature-story p { color: var(--body); font-size: 1.05rem; }
.side-stories { border-top: 1px solid var(--line); }
.side-stories a { display: grid; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.side-stories a:hover strong { color: var(--yellow); }
.side-stories span, .side-stories em { color: var(--muted); font-size: .74rem; font-style: normal; }
.side-stories strong { font-size: 1.16rem; line-height: 1.35; }

.video-placeholder {
  min-height: 320px; display: flex; flex-direction: column; justify-content: end;
  padding: clamp(28px, 5vw, 54px); border-left: 4px solid var(--yellow);
  background: var(--surface);
}
.video-placeholder span { color: var(--yellow); font-size: .78rem; font-weight: 850; }
.video-placeholder p { max-width: 630px; margin: 12px 0; font-size: clamp(1.2rem, 2vw, 1.48rem); }
.video-placeholder a { font-weight: 750; }
.video-wrap, .video-frame { aspect-ratio: 16 / 9; }
.video-frame { width: 100%; background: var(--surface); }
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
.video-fallback { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.video-fallback a { color: var(--text); font-weight: 750; }
.video-consent-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center;
  gap: 14px; padding: clamp(22px, 4vw, 42px); border-left: 4px solid var(--yellow);
  background: linear-gradient(135deg, #18181c, #101013); color: var(--body);
}
.video-consent-placeholder span { color: var(--yellow); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.video-consent-placeholder strong { max-width: 620px; color: var(--text); font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.12; }
.video-consent-placeholder p { max-width: 580px; margin: 0; color: var(--muted); }
.video-consent-placeholder .button { width: fit-content; margin-top: 4px; }
.latest-video-card {
  display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 70px); align-items: center;
}
.latest-video-copy { max-width: 520px; }
.latest-video-copy p { color: var(--muted); }
.latest-video-copy .actions { margin-top: 26px; }
.latest-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 42px); }
.latest-articles-grid article { padding-top: 22px; border-top: 1px solid var(--line); }
.latest-articles-grid h3 { margin: 10px 0 14px; color: var(--text); font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.18; letter-spacing: -.025em; }
.latest-articles-grid h3 a { text-decoration: none; }
.latest-articles-grid p { color: var(--muted); }
.latest-articles-grid time { display: block; margin: 18px 0 12px; color: var(--muted); font-size: .82rem; }

.tool-band { padding-block: 64px; border-block: 1px solid #322d3c; background: var(--surface); }
.tool-band-inner { display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.tool-band p { max-width: 620px; margin-bottom: 0; color: var(--muted); }
.project-note > div { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 9vw, 110px); }
.project-note > div > div { max-width: 620px; color: var(--body); }

.page { padding-block: 72px 100px; }
.page h1 { max-width: 900px; font-size: clamp(2.7rem, 4.5vw, 4.15rem); line-height: 1.02; }
.page h2, .article-body h2, .assumptions h2, .sources h2 {
  margin: 2.1em 0 .65em; font-size: clamp(1.65rem, 2.6vw, 2.25rem); line-height: 1.15; letter-spacing: -.035em;
}
.page h3, .article-body h3 { margin-top: 2em; font-size: 1.25rem; }
.page p, .page li, .article-body p, .article-body li { font-size: 1.04rem; }
.numbers-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 52px 0; border-block: 1px solid var(--line); }
.numbers-row div { padding: 24px 20px; border-right: 1px solid var(--line); }
.numbers-row div:last-child { border-right: 0; }
.numbers-row strong, .numbers-row span { display: block; }
.numbers-row strong { color: var(--yellow); font-size: 1.35rem; }
.numbers-row span { color: var(--muted); font-size: .8rem; }
.note, .disclaimer { margin: 42px 0; padding: 22px 25px; border-left: 3px solid var(--yellow); background: var(--surface); }
.note p, .disclaimer p { margin-bottom: 0; }
.about-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: clamp(52px, 9vw, 110px); align-items: start; }
.about-layout figure { position: sticky; top: 28px; width: 100%; margin: 0; }
.prose code, .muted code { color: var(--yellow); }
.muted { margin-top: 32px; color: var(--muted); }

.plan-page { max-width: 900px; }
.milestones { margin: 34px 0 52px; padding: 0; list-style: none; counter-reset: milestone; border-top: 1px solid var(--line); }
.milestones li { position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 30px; padding: 22px 0 22px 46px; border-bottom: 1px solid var(--line); counter-increment: milestone; }
.milestones li::before { content: counter(milestone, decimal-leading-zero); position: absolute; left: 0; top: 24px; color: var(--yellow); font-size: .72rem; font-weight: 850; letter-spacing: .08em; }
.milestones strong { color: var(--text); }
.milestones span { color: var(--muted); }
.plan-table-wrap { margin: 30px 0 0; overflow-x: auto; border-block: 1px solid var(--line); }
.plan-table { width: 100%; min-width: 690px; border-collapse: collapse; }
.plan-table th, .plan-table td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.plan-table tr:last-child td { border-bottom: 0; }
.plan-table th { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.plan-table td:first-child { color: var(--text); font-weight: 800; }
.plan-table td:last-child { color: var(--yellow); font-weight: 800; }
.table-note { margin: 13px 0 52px; color: var(--muted); font-size: .82rem !important; }
.plan-update { margin: 60px 0 0; padding: 30px 0; border-block: 1px solid var(--line); }
.plan-update h2 { margin-top: 0; }
.plan-update p:last-child { max-width: 680px; margin-bottom: 0; }
.change-log dl { margin: 24px 0 0; }
.change-log dl div { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 18px 0; border-top: 1px solid var(--line); }
.change-log dt { color: var(--yellow); font-size: .82rem; font-weight: 800; }
.change-log dd { margin: 0; color: var(--muted); }
.portfolio-page { max-width: 1040px; }
.portfolio-summary { display: grid; grid-template-columns: minmax(390px, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 5vw, 72px); align-items: end; margin-top: 28px; padding: 28px; border: 1px solid var(--yellow); background: rgba(255,215,0,.04); }
.portfolio-summary > div { min-width: 0; }
.portfolio-summary strong { display: block; color: var(--yellow); font-size: clamp(3rem,6vw,5.6rem); line-height: .9; white-space: nowrap; }
.portfolio-summary span { display: block; margin-top: 12px; font-weight: 700; }
.portfolio-summary > p { max-width: 560px; margin: 0; color: var(--muted); }
.portfolio-warning { max-width: 780px; margin: 34px 0; padding-left: 18px; border-left: 3px solid var(--yellow); color: var(--muted); }
.portfolio-explainer { margin: 38px 0 0; padding: 24px 26px; border: 1px solid var(--line); border-left: 4px solid var(--yellow); background: var(--surface); }
.portfolio-explainer h2 { margin: 0 0 12px; color: var(--yellow); font-size: 1.25rem; letter-spacing: -.02em; }
.portfolio-explainer p { max-width: 820px; margin: 8px 0 0; color: var(--body); font-size: .96rem; }
.portfolio-updated { color: var(--muted); font-size: .82rem !important; }
.index-grid { margin-top: 36px; border-top: 1px solid var(--line); }
.index-row { display: grid; grid-template-columns: 220px minmax(300px,1fr) 300px; gap: 34px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.index-row > div > strong { display: block; color: var(--yellow); font-size: 2.7rem; line-height: 1; }
.index-row > div > span { display: block; margin-top: 10px; color: var(--muted); font-size: .82rem; }
.category-details { display: inline-block; margin-top: 18px; color: var(--yellow); font-size: .78rem; font-weight: 800; }
.sleeve-note { margin: 16px 0 0; color: var(--muted); font-size: .76rem !important; line-height: 1.5; }
.portfolio-visitors { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 70px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem !important; }
.portfolio-visitors strong { color: var(--yellow); }
.index-row dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 0; }
.index-row dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.index-row dd { margin: 7px 0 0; font-size: .88rem; }
.index-chart-card { min-width: 0; min-height: 150px; display: grid; grid-template-rows: auto 1fr; margin: 0; padding: 14px 16px 12px; background: var(--surface); color: var(--yellow); }
.index-chart-card figcaption { color: var(--muted); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.index-chart { width: 100%; height: 112px; margin-top: 6px; overflow: visible; }
.index-chart.is-hidden { display: none; }
.index-chart-line { fill: none; stroke: currentColor; stroke-width: 2.25; vector-effect: non-scaling-stroke; }
.index-chart-area { fill: currentColor; fill-opacity: .1; stroke: none; }
.index-chart-card[data-trend="negative"] { color: #c89292; }
.index-chart-card[data-trend="flat"] { color: #d1b94b; }
.index-chart-empty { align-self: center; margin: 0; color: var(--muted); font-size: .82rem !important; }
.public-events { margin-top: 64px; }
.public-events ol { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.public-events li { display: grid; grid-template-columns: 150px 1fr; gap: 25px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.public-events time { color: var(--yellow); font-size: .8rem; }
.index-example { padding-left: 24px; border-left: 2px solid var(--line); }
.index-example li { margin: 10px 0; padding-left: 10px; }
.portfolio-teaser > div { display: grid; grid-template-columns: 1.3fr .7fr; gap: 70px; align-items: end; }
.portfolio-teaser h2 { margin: 0; font-size: clamp(2rem,3.5vw,3.35rem); line-height: 1.05; letter-spacing: -.045em; }
.portfolio-teaser p { color: var(--muted); }
.teaser-indexes { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.teaser-indexes span { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.portfolio-teaser .button { margin-top: 28px; }
.app-tests-teaser > div { display: flex; align-items: end; justify-content: space-between; gap: 48px; }
.app-tests-teaser h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.app-tests-teaser p { max-width: 700px; color: var(--muted); }
.app-tests-teaser .button { flex: none; }

.app-tests-page { max-width: 920px; }
.app-tests-intro { max-width: 760px; }
.data-use-note { padding-left: 18px; border-left: 3px solid var(--yellow); color: var(--body); }
.app-tests-form { margin-top: 48px; padding: clamp(24px, 5vw, 46px); border: 1px solid var(--line); border-top: 4px solid var(--yellow); background: var(--surface); }
.app-tests-form fieldset { margin: 30px 0; padding: 0; border: 0; }
.app-tests-form legend, .form-field { color: var(--text); font-weight: 800; }
.form-field { display: block; }
.form-field input { width: 100%; min-height: 52px; display: block; margin-top: 9px; padding: 11px 13px; border: 1px solid #5a5462; background: var(--bg); color: var(--text); font: inherit; }
.form-field input:focus, .app-tests-form input[type="checkbox"]:focus-visible, .app-tests-form button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.form-help, .form-footnote { color: var(--muted); font-size: .86rem !important; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.checkbox-grid label, .consent-field { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.checkbox-grid label { padding: 14px; border: 1px solid var(--line); }
.app-tests-form input[type="checkbox"] { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--yellow); }
.consent-field { margin: 32px 0 12px; line-height: 1.55; }
.consent-field a, .form-help a { color: var(--yellow); }
.app-tests-form .button { margin-top: 16px; }
.form-footnote { margin-bottom: 0; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.thank-you-page .actions { margin-top: 34px; }

.calculator-page { max-width: 960px; }
.calculator { margin-top: 44px; border-block: 1px solid var(--line); }
.scenario-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 18px 0; }
.scenario-bar span { margin-right: auto; color: var(--muted); font-size: .82rem; }
.scenario-bar button { padding: 8px 11px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.scenario-bar button.active { border-color: var(--yellow); color: var(--yellow); }
.calculator form { padding: clamp(24px, 4vw, 40px); background: var(--surface); }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field-grid label { font-size: .92rem; font-weight: 750; }
.field-grid label span { float: right; color: var(--muted); font-size: .72rem; font-weight: 500; }
.field-grid input { width: 100%; min-height: 50px; display: block; margin-top: 7px; padding: 10px 12px; border: 1px solid #4b4653; border-radius: 0; background: var(--bg); color: var(--text); }
.form-error { min-height: 1.6em; color: #ff8585; }
.results { padding: 32px 0; }
.result-lead { display: flex; align-items: baseline; gap: 16px; }
.result-lead strong { color: var(--yellow); font-size: clamp(2.2rem, 4.5vw, 3.8rem); line-height: 1; }
.result-lead span { color: var(--muted); }
.results dl { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; border-block: 1px solid var(--line); }
.results dl div { padding: 19px 18px 19px 0; }
.results dt { color: var(--muted); font-size: .76rem; }
.results dd { margin: 7px 0 0; font-size: 1.12rem; font-weight: 800; }
.chart-block { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.chart-block header { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.chart-block h2 { max-width: 560px; margin: 0; color: var(--text); font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.1; letter-spacing: -.035em; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 20px; color: var(--muted); font-size: .78rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-dot { width: 24px; height: 3px; display: inline-block; background: var(--yellow); }
.chart-dot.deposits { height: 2px; background: var(--muted); }
.capital-chart { width: 100%; height: auto; display: block; margin-top: 24px; overflow: visible; }
.chart-grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.chart-target { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 6 7; }
.chart-balance, .chart-deposits { fill: none; vector-effect: non-scaling-stroke; }
.chart-balance { stroke: var(--yellow); stroke-width: 3; }
.chart-deposits { stroke: var(--muted); stroke-width: 2; }
.chart-label { fill: var(--muted); font: 12px Inter, ui-sans-serif, system-ui, sans-serif; }
.chart-note { max-width: 680px; margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 8vw, 90px); }

.articles-index h1 { margin-bottom: 16px; }
.article-feature { display: grid; grid-template-columns: 1fr auto; gap: 30px; margin-top: 52px; padding: 42px 0; border-block: 1px solid var(--line); }
.article-feature h2 { margin: 10px 0 18px; font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.07; letter-spacing: -.04em; }
.article-feature h2 a { text-decoration: none; }
.article-list a { display: grid; grid-template-columns: 160px 1fr 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.article-list time, .article-list span { color: var(--muted); }
.article { max-width: 980px; padding-block: 72px 100px; }
.article > header { padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.article h1 { max-width: 900px; font-size: clamp(2.45rem, 4.2vw, 3.75rem); line-height: 1.02; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; }
.article-video { max-width: var(--reading); margin: 32px auto 0; }
.article-body { max-width: var(--reading); margin: 50px auto; color: var(--body); font-size: 1.08rem; line-height: 1.75; }
.article-body blockquote { margin: 32px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--yellow); font-size: 1.16rem; }
.article-body table { width: 100%; margin: 32px 0; border-collapse: collapse; }
.article-body th, .article-body td { padding: 13px 9px; border-bottom: 1px solid var(--line); text-align: left; }
.article-body th, .article-body a, .sources a { color: var(--yellow); }
.article-cta { margin: 54px 0 0; padding: 26px; border: 1px solid var(--line); border-left: 4px solid var(--yellow); background: var(--surface); }
.article-cta h2 { margin-top: 0; }
.article-cta p { max-width: 650px; }
.assumptions, .sources { max-width: var(--reading); margin: 48px auto; border-top: 1px solid var(--line); }
.disclaimer { max-width: var(--reading); margin-inline: auto; }

.site-footer { padding-block: 50px 24px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.footer-grid p { max-width: 450px; color: var(--muted); }
.footer-grid nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.footer-note { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.cookie-consent {
  position: fixed; z-index: 80; left: 50%; bottom: 18px; width: min(calc(100% - 32px), var(--shell));
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 20px 22px; border: 1px solid var(--line); border-left: 4px solid var(--yellow);
  background: rgba(21, 21, 24, .98); color: var(--body);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .44); transform: translateX(-50%);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent h2 { margin: 0 0 6px; color: var(--text); font-size: 1rem; line-height: 1.25; letter-spacing: 0; }
.cookie-consent p { max-width: 760px; margin: 0; color: var(--body); font-size: .92rem; line-height: 1.5; }
.cookie-consent a { display: inline-block; margin-top: 8px; color: var(--yellow); font-size: .88rem; font-weight: 750; }
.cookie-consent-actions { display: flex; align-items: center; flex: none; gap: 12px; }
.cookie-consent-actions .button { min-height: 44px; white-space: nowrap; }

@media (max-width: 900px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 16px; padding-block: 18px; }
  .site-header nav { width: 100%; justify-content: flex-start; gap: 18px; overflow-x: auto; padding-bottom: 4px; }
  .youtube-link { padding-left: 18px; }
  .header-tests-banner { justify-content: space-between; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: 48px; }
  .hero h1 { font-size: clamp(2.8rem, 7vw, 4rem); }
  .portfolio-summary { grid-template-columns: 1fr; gap: 28px; align-items: start; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 30px), var(--shell)); }
  .hero, .editorial-grid, .about-layout, .project-note > div { grid-template-columns: 1fr; }
  .hero { padding-block: 52px 62px; }
  .author-figure { width: min(100%, 320px); margin: 10px 0 0; }
  .tool-band-inner, .section-heading { align-items: flex-start; flex-direction: column; }
  .numbers-row, .results dl { grid-template-columns: 1fr; }
  .numbers-row div { border-right: 0; border-bottom: 1px solid var(--line); }
  .numbers-row div:last-child { border-bottom: 0; }
  .field-grid, .method-grid, .footer-grid { grid-template-columns: 1fr; }
  .index-row, .portfolio-teaser > div, .portfolio-summary { grid-template-columns: 1fr; }
  .app-tests-teaser > div { align-items: flex-start; flex-direction: column; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .index-row dl { grid-template-columns: 1fr 1fr; }
  .milestones li, .change-log dl div { grid-template-columns: 1fr; gap: 6px; }
  .chart-block header { align-items: flex-start; flex-direction: column; }
  .chart-legend { justify-content: flex-start; }
  .about-layout figure { position: static; max-width: 320px; }
  .article-feature { grid-template-columns: 1fr; }
  .article-list a { grid-template-columns: 1fr; gap: 5px; }
  .latest-video-card, .latest-articles-grid { grid-template-columns: 1fr; }
  .cookie-consent { align-items: stretch; flex-direction: column; bottom: 12px; padding: 18px; }
  .cookie-consent-actions { width: 100%; flex-wrap: wrap; }
  .cookie-consent-actions .button { flex: 1; }
  .footer-grid nav { grid-template-columns: 1fr 1fr; }
  .article-body table { width: max-content; min-width: 100%; max-width: 760px; display: block; overflow-x: auto; }
}

@media (max-width: 460px) {
  .hero h1 { font-size: 2.65rem; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .actions .button, .page-actions .button { width: 100%; }
  .scenario-bar { align-items: stretch; }
  .scenario-bar span { width: 100%; }
  .scenario-bar button { flex: 1; padding-inline: 5px; font-size: .76rem; }
  .calculator form { margin-inline: -15px; }
  .result-lead { display: block; }
  .video-consent-placeholder { min-height: 250px; }
  .video-consent-placeholder .button { width: 100%; }
  .cookie-consent-actions { flex-direction: column; }
  .cookie-consent-actions .button { width: 100%; }
  .footer-grid nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
