/* ==========================================================================
   Above $65 an hour? — decision tree walkthrough
   Palette: the validated dataviz reference instance (light + dark steps).
   ========================================================================== */

:root {
  color-scheme: light;

  /* surfaces & ink */
  --page:        #f9f9f7;
  --surface:     #fcfcfb;
  --surface-2:   #f2f1ed;
  --ink:         #0b0b0b;
  --ink-2:       #52514e;
  --ink-muted:   #898781;
  --grid:        #e1e0d9;
  --axis:        #c3c2b7;
  --border:      rgba(11, 11, 11, 0.10);
  --border-firm: rgba(11, 11, 11, 0.16);

  /* categorical slots 1–2 (the only two this page needs) */
  --series-1:    #2a78d6;
  --series-2:    #eb6834;

  /* sequential blue ramp */
  --seq-100: #cde2fb;  --seq-250: #86b6ef;  --seq-400: #3987e5;
  --seq-150: #b7d3f6;  --seq-300: #6da7ec;  --seq-450: #2a78d6;
  --seq-200: #9ec5f4;  --seq-350: #5598e7;  --seq-500: #256abf;
  --seq-550: #1c5cab;  --seq-600: #184f95;  --seq-650: #104281;

  /* status */
  --good:     #0ca30c;
  --good-ink: #006300;
  --warning:  #fab219;
  --critical: #d03b3b;

  --shadow: 0 1px 2px rgba(11,11,11,.04), 0 8px 24px -12px rgba(11,11,11,.12);
  --radius: 14px;
  --wrap: 1140px;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page:        #0d0d0d;
    --surface:     #1a1a19;
    --surface-2:   #232322;
    --ink:         #ffffff;
    --ink-2:       #c3c2b7;
    --ink-muted:   #898781;
    --grid:        #2c2c2a;
    --axis:        #383835;
    --border:      rgba(255, 255, 255, 0.10);
    --border-firm: rgba(255, 255, 255, 0.18);
    --series-1:    #3987e5;
    --series-2:    #d95926;
    --good-ink:    #0ca30c;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page:        #0d0d0d;
  --surface:     #1a1a19;
  --surface-2:   #232322;
  --ink:         #ffffff;
  --ink-2:       #c3c2b7;
  --ink-muted:   #898781;
  --grid:        #2c2c2a;
  --axis:        #383835;
  --border:      rgba(255, 255, 255, 0.10);
  --border-firm: rgba(255, 255, 255, 0.18);
  --series-1:    #3987e5;
  --series-2:    #d95926;
  --good-ink:    #0ca30c;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0 0 1.1em; }
a { color: var(--series-1); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); padding: .12em .38em; border-radius: 5px; color: var(--ink); }
var { font-style: italic; }
:focus-visible { outline: 2px solid var(--series-1); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--series-1); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
  text-decoration: none; font-weight: 600;
}
.skip:focus { left: 0; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ------------------------------------------------------- theme toggle */
.theme-toggle-wrap { position: fixed; top: 14px; right: 16px; z-index: 60; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--border-firm);
  border-radius: 999px; padding: .4rem .8rem; cursor: pointer;
  box-shadow: var(--shadow);
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle__icon {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--series-1) 50%, var(--axis) 50%);
}

/* --------------------------------------------------------------- hero */
.hero { padding: 108px 0 56px; background: var(--page); }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 6.2vw, 4.15rem);
  letter-spacing: -0.032em; margin-bottom: .55em; max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--series-1); }
.lede { font-size: clamp(1.06rem, 1.9vw, 1.3rem); max-width: 62ch; color: var(--ink-2); }
.byline { font-size: 14.5px; color: var(--ink-muted); margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--border-firm); border-radius: 999px;
  padding: .62rem 1.35rem; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--axis); }
.btn--primary { background: var(--series-1); border-color: var(--series-1); color: #fff; }
.btn--primary:hover { background: var(--seq-550); border-color: var(--seq-550); color: #fff; }
.btn--small { font-size: 13.5px; padding: .45rem 1rem; }

/* -------------------------------------------------------------- tocbar */
.tocbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--border);
}
.tocbar__inner { display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none; }
.tocbar__inner::-webkit-scrollbar { display: none; }
.tocbar a {
  flex: none; padding: .85rem 0; font-size: 14px; font-weight: 500;
  color: var(--ink-muted); text-decoration: none; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tocbar a:hover { color: var(--ink); }
.tocbar a.is-active { color: var(--ink); border-bottom-color: var(--series-1); }

/* ------------------------------------------------------------ sections */
.section { padding: 84px 0; border-top: 1px solid var(--border); }
.section--alt { background: var(--surface); }
.kicker {
  font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--series-1); margin-bottom: .8rem;
}
.section h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); max-width: 24ch; margin-bottom: .7em; }
.section-lede { font-size: 1.08rem; max-width: 68ch; margin-bottom: 2.4rem; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.cols--wide-left { grid-template-columns: 1.35fr 1fr; }
.cols--wide-right { grid-template-columns: 1fr 1.3fr; }
@media (max-width: 900px) { .cols, .cols--wide-left, .cols--wide-right { grid-template-columns: 1fr; gap: 2.2rem; } }

.big-statement { font-size: 1.28rem; color: var(--ink); line-height: 1.5; margin-bottom: 1.2em; }
.big-statement strong { font-weight: 600; }
.aside-note { font-size: 15px; color: var(--ink-muted); border-left: 2px solid var(--grid); padding-left: 1rem; }

/* ---------------------------------------------------------------- card */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow);
}
.section--alt .card { background: var(--page); }
.card--quiet { box-shadow: none; background: var(--surface-2); border-color: transparent; }
.card__title { font-size: 1rem; margin-bottom: .8em; }
.card__title--spaced { margin-top: 1.6em; }
.card__note { font-size: 14.5px; color: var(--ink-muted); }
.card__note--flag {
  margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--border);
  margin-bottom: 0;
}
.card__note--flag strong { color: var(--ink); }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: .6rem; font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--series-1);
}
.ticks--minus li::before { background: var(--axis); }

/* ------------------------------------------------------------ KPI row */
.kpi-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 2.8rem;
}
.kpi { background: var(--surface); padding: 1.3rem 1.4rem; }
.section--alt .kpi { background: var(--page); }
.kpi__label { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-muted); margin: 0 0 .45rem; }
.kpi__value { font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1.05; margin: 0; }
.kpi__note { font-size: 13px; color: var(--ink-muted); margin: .45rem 0 0; }
.kpi--flag .kpi__value { color: var(--critical); }
.kpi--good .kpi__value { color: var(--good-ink); }

/* --------------------------------------------------------------- table */
.table-scroll { overflow-x: auto; margin-bottom: 1.5rem; }
.datatable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.datatable caption { text-align: left; font-size: 13px; color: var(--ink-muted); padding-bottom: .7rem; }
.datatable th, .datatable td { text-align: left; padding: .62rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.datatable thead th { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.datatable tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.datatable td { color: var(--ink-2); }
.datatable .num { text-align: right; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------- factor list */
.factor-list { margin: 0 0 0 1.1rem; padding: 0; }
.factor-list li { margin-bottom: .75rem; font-size: 15px; }
.factor-list strong { color: var(--ink); font-weight: 600; display: block; }
.factor-list span { font-size: 13.5px; color: var(--ink-muted); }

/* --------------------------------------------------------- split bar */
.split-note { margin-top: 3rem; padding-top: 2.4rem; border-top: 1px solid var(--border); }
.split-note p { max-width: 68ch; }
.splitbar { display: flex; gap: 2px; height: 42px; margin: 1.4rem 0 .9rem; }
.splitbar__seg { display: flex; align-items: center; justify-content: center; border-radius: 3px; overflow: hidden; }
.splitbar__seg span { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; padding-inline: .4rem; }
.splitbar__seg--train { background: var(--series-1); }
.splitbar__seg--test { background: var(--series-2); }
.splitbar__seg--unused { background: var(--axis); }
.splitbar__key { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: 13.5px; color: var(--ink-muted); }
.key { display: inline-flex; align-items: center; gap: .45rem; }
.sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.sw--train { background: var(--series-1); }
.sw--test { background: var(--series-2); }
.sw--unused { background: var(--axis); }

/* --------------------------------------------------------- stack grid */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tool { background: var(--surface); padding: 1.5rem; }
.tool h3 { font-size: 1rem; margin-bottom: .4em; }
.tool p { font-size: 14.5px; margin: 0; color: var(--ink-2); }

/* =====================================================  PREDICTOR  ===== */
.predictor { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 900px) { .predictor { grid-template-columns: 1fr; } }

.controls {
  background: var(--page); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.7rem;
}
.modelpick { border: 0; padding: 0; margin: 0 0 1.6rem; }
.modelpick legend {
  padding: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: .7rem;
}
.segmented { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 3px; }
.segmented button {
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  background: transparent; border: 0; border-radius: 8px; padding: .42rem .9rem; cursor: pointer;
}
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.modelpick__note { font-size: 13px; color: var(--ink-muted); margin: .7rem 0 0; }

.field { margin-bottom: 1.5rem; }
.field:last-child { margin-bottom: 0; }
.field__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.field__label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.field__value { font-size: 14.5px; font-weight: 600; color: var(--series-1); font-variant-numeric: tabular-nums; }
.field__hint { font-size: 12.5px; color: var(--ink-muted); margin: .4rem 0 0; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -7px;
  border-radius: 50%; background: var(--series-1); border: 2px solid var(--surface); box-shadow: var(--shadow);
}
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--series-1); border: 2px solid var(--surface); }

.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choices button {
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--border-firm); border-radius: 8px;
  padding: .4rem .85rem; cursor: pointer; min-width: 44px;
}
.choices button:hover { border-color: var(--axis); color: var(--ink); }
.choices button[aria-checked="true"] { background: var(--series-1); border-color: var(--series-1); color: #fff; }

.controls__actions { display: flex; gap: .6rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }

/* ------------------------------------------------------------- result */
.result { position: sticky; top: 82px; display: grid; gap: 1rem; }
@media (max-width: 900px) { .result { position: static; } }
.verdict {
  background: var(--page); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; text-align: center;
}
.verdict__label { font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 .6rem; }
.verdict__value { font-size: clamp(1.9rem, 4.6vw, 2.7rem); font-weight: 600; line-height: 1.1; color: var(--ink); margin: 0; letter-spacing: -0.02em; }
.verdict__value.is-high { color: var(--good-ink); }
.verdict__value.is-low { color: var(--series-2); }
.verdict__sub { font-size: 14px; color: var(--ink-muted); margin: .8rem 0 0; }

.leafstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.leafstat { background: var(--page); padding: .95rem .6rem; text-align: center; }
.leafstat__label { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink-muted); margin: 0 0 .3rem; }
.leafstat__value { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin: 0; }

/* --------------------------------------------------------------- path */
.pathwrap { margin-top: 2.4rem; }
.pathwrap__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.pathwrap__head h3 { font-size: 1.15rem; margin: 0; }
.pathwrap__count { font-size: 13.5px; color: var(--ink-muted); margin: 0; }

.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.step {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 1rem; align-items: center;
  background: var(--page); border: 1px solid var(--border); border-radius: 10px;
  padding: .8rem 1rem; font-size: 14.5px;
}
.step__n {
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2);
  color: var(--ink-2); font-size: 12px; font-weight: 600;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.step__q { color: var(--ink-2); }
.step__q strong { color: var(--ink); font-weight: 600; }
.step__q .thr { font-variant-numeric: tabular-nums; }
.step__meta { font-size: 12.5px; color: var(--ink-muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.step__dir { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: 12.5px; padding: .12rem .5rem; border-radius: 999px; }
.step__dir--yes { color: var(--good-ink); background: color-mix(in srgb, var(--good) 12%, transparent); }
.step__dir--no { color: var(--series-2); background: color-mix(in srgb, var(--series-2) 12%, transparent); }
.step--leaf { border-color: var(--series-1); background: color-mix(in srgb, var(--series-1) 6%, var(--page)); }
.step--leaf .step__n { background: var(--series-1); color: #fff; }

/* ------------------------------------------------------------ formula */
.formula {
  font-family: var(--mono); font-size: 1.05rem; color: var(--ink);
  background: var(--surface-2); border-radius: 10px; padding: 1rem 1.2rem;
  text-align: center; margin-bottom: 1.3em;
}

/* ------------------------------------------------------------- charts */
.chartcard {
  margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.section--alt .chartcard { background: var(--page); }
.chartcard figcaption { padding: 1.4rem 1.5rem .2rem; }
.chartcard figcaption h3 { font-size: 1.02rem; margin-bottom: .35em; }
.chartcard figcaption p { font-size: 13.5px; color: var(--ink-muted); margin: 0; }
.chartcard__body { padding: 1rem 1.5rem 0; flex: 1; }
.chartcard__foot { padding: .5rem 1.5rem 1.1rem; }
.linkbtn {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-muted);
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.linkbtn:hover { color: var(--ink); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chartgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-bottom: 2.6rem; }
@media (max-width: 900px) { .chartgrid { grid-template-columns: 1fr; } }
.chartcard--tight .chartcard__body { padding-bottom: .5rem; }

.legend { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-bottom: .9rem; }
.legend__item { display: inline-flex; align-items: center; gap: .45rem; font-size: 13px; color: var(--ink-2); }
.legend__key { width: 14px; height: 3px; border-radius: 2px; }
.legend__key--dot { width: 11px; height: 11px; border-radius: 3px; }

.tableview table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tableview th, .tableview td { padding: .5rem .6rem; border-bottom: 1px solid var(--border); text-align: left; }
.tableview thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); }
.tableview td.num, .tableview th.num { text-align: right; font-variant-numeric: tabular-nums; }

.tooltip {
  position: fixed; z-index: 90; pointer-events: none;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border-firm); border-radius: 9px;
  padding: .55rem .75rem; font-size: 13px; line-height: 1.45;
  box-shadow: var(--shadow); max-width: 260px;
}
.tooltip b { display: block; font-size: 12.5px; margin-bottom: .2rem; }
.tooltip .t-row { display: flex; justify-content: space-between; gap: 1.2rem; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* ----------------------------------------------------------- callouts */
.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--axis);
  border-radius: 10px; padding: 1.5rem 1.7rem; margin-bottom: 2.6rem;
  background: var(--page); max-width: 78ch;
}
.callout h3 { font-size: 1.1rem; margin-bottom: .6em; }
.callout h4 { font-size: .98rem; margin-bottom: .7em; }
.callout p:last-child { margin-bottom: 0; }
.callout--critical { border-left-color: var(--critical); }
.callout--quiet { background: var(--surface-2); border-color: transparent; border-left-color: var(--series-1); margin-top: 1.8rem; margin-bottom: 0; }
.callout__foot { font-size: 14px; color: var(--ink-muted); }

/* -------------------------------------------------- seed-stability strip */
.seedstrip { margin: 1.4rem 0 1.1rem; }
.seedstrip svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------------------------------------------------------- tree shot */
.treeshot { margin: 3.4rem 0 0; }
.treeshot img {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; padding: 6px;
}
.treeshot figcaption { font-size: 14px; color: var(--ink-muted); margin-top: .9rem; max-width: 78ch; }
.treeshot figcaption strong { color: var(--ink-2); }

/* ------------------------------------------------------------ closing */
.closing { max-width: 70ch; font-size: 1.06rem; }
.closing__last { color: var(--ink); }

/* ------------------------------------------------------------- footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 60px 0 44px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2.6rem; margin-bottom: 2.6rem; }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer h3 { font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1rem; }
.footer p { font-size: 14.5px; }
.footer__names { color: var(--ink); }
.plainlist { list-style: none; margin: 0; padding: 0; }
.plainlist li { font-size: 14.5px; margin-bottom: .5rem; }
.plainlist--refs li { font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; }
.footer__fine { font-size: 13px; color: var(--ink-muted); border-top: 1px solid var(--border); padding-top: 1.6rem; margin: 0; max-width: 80ch; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 92px 0 44px; }
  .leafstats { grid-template-columns: 1fr; }
  .step { grid-template-columns: 28px 1fr; }
  .step__meta { grid-column: 2; text-align: left; }
}
