/* ============================================================
   Asked — v2
   White ground · saturated categorical palette · legible type
   Colours live here only; the canvas modules read them back.
   ============================================================ */

:root{
  /* ---- palette · Viridis, cut where it stops being visible on white ----
     everything past the teal is under 3:1 against the page, so the yellow
     end of the ramp is never used. The trio clears the CVD, contrast and
     lightness checks in the dataviz validator, all pairs. */
  --c-work:#414487;   --c-work-d:#2f3268;
  --c-pers:#1f9e89;   --c-pers-d:#12705f;
  --c-school:#440154; --c-school-d:#2e0039;
  /* the one sequential ramp, used wherever colour repeats a position */
  --c-ramp:#440154,#414487,#2a788e,#1f9e89;

  /* ---- neutrals: white ground, cool ink ---- */
  --c-paper:#ffffff;
  --c-tint:#f3f6f9;
  --c-ink:#14171c;
  --c-soft:#3b414b;
  --c-mute:#5c636e;
  --c-mark:#3d4859;        /* an undifferentiated task dot */
  --c-mark-soft:#98a1af;   /* a task pushed to the background */
  --c-mark-pale:#c6ccd5;   /* observed, but publishes no magnitude */
  --c-line:#dbe0e6;
  --c-line-soft:#eceff3;
  --c-grid:#e6eaef;
  --c-band:#fbe7e3;

  --font-body:'Public Sans',system-ui,-apple-system,sans-serif;
  --wrap:1000px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--c-paper);color:var(--c-ink);font-family:var(--font-body);font-size:17px;
  line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden;
  font-variant-numeric:tabular-nums}
::selection{background:#ffe0da}
a{color:var(--c-pers-d);text-underline-offset:2px}
button,input{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--c-work);outline-offset:2px}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 22px}
.wrap-narrow{max-width:740px}
.wrap-wide{max-width:1140px}

h1,h2,h3{font-family:var(--font-body);font-weight:700;letter-spacing:-.018em;line-height:1.15;
  text-wrap:balance}
.u{font-weight:700;color:var(--c-pers-d)}

/* ---------- section furniture ---------- */
.sec{padding:5rem 0}
.sec--tint{border-top:1px solid var(--c-line)}
.sec-head{max-width:680px;margin:0 auto 2.4rem;text-align:center}
.sec-no{font-size:.82rem;font-weight:700;letter-spacing:.02em;color:var(--c-pers-d);margin-bottom:.5rem}
.sec-head h2{font-size:clamp(1.5rem,3.4vw,2.05rem);margin-bottom:.65rem}
.sec-head p{font-size:1rem;color:var(--c-soft);text-wrap:pretty}
/* a pinned caveat, in the manner of a field guide's margin note: the rule and
   the hand mark it as "read this before you believe the picture" */
.note{max-width:66ch;margin:2rem auto 0;font-size:.94rem;line-height:1.65;color:var(--c-soft);
  text-align:left;text-wrap:pretty;border-left:2px solid var(--c-pers);padding:.1rem 0 .1rem 1.15rem}
.note::before{content:'☞ ';color:var(--c-pers-d);font-weight:700}
.note strong{color:var(--c-ink);font-weight:700}

/* ---------- hero ---------- */
.hero{position:relative;min-height:100svh;overflow:hidden;padding:2.4rem 22px 1.8rem;
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
#heroCv{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:0}
.hero-lock{position:relative;z-index:1;max-width:600px;margin:auto 0}
.hero h1{font-weight:700;font-size:clamp(3.4rem,12vw,7.5rem);line-height:.9;letter-spacing:-.05em;
  margin-bottom:.45rem}
.hero-line{font-size:clamp(1.06rem,2.7vw,1.4rem);font-weight:600;color:var(--c-pers-d);
  letter-spacing:-.012em;margin-bottom:1.1rem}
.lede{font-size:1.08rem;line-height:1.58;color:var(--c-soft);max-width:38em;margin:0 auto;text-wrap:pretty}
.lede strong{color:var(--c-ink);font-weight:700}
.hero-foot{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;
  gap:.85rem;padding-top:2rem}
.hero-key{display:flex;flex-wrap:wrap;justify-content:center;gap:.35rem 1.3rem;font-size:.86rem;
  color:var(--c-soft)}
.hero-key i{width:10px;height:10px;border-radius:50%;display:inline-block;margin-right:.45rem;
  vertical-align:-1px}
.scope{font-size:.9rem;color:var(--c-mute);max-width:36em;margin:0 auto;line-height:1.55}

/* ---------- primer ---------- */
.primer-grid{display:grid;grid-template-columns:1fr 330px;gap:38px;align-items:center;
  max-width:880px;margin:0 auto}
.primer-dots{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;
  background:var(--c-paper);border:1px solid var(--c-line);border-radius:5px;padding:26px 14px;min-height:210px}
.pdot{border:0;background:none;cursor:pointer;padding:7px;line-height:0;border-radius:50%}
.pdot i{display:block;border-radius:50%;transition:transform .18s}
.pdot:hover i,.pdot.on i{transform:scale(1.1)}
.primer-side h3{font-size:1.1rem;margin-bottom:.5rem}
.key{display:flex;flex-direction:column;gap:.5rem;font-size:.9rem;color:var(--c-soft);line-height:1.4}
.key i{width:12px;height:12px;border-radius:50%;display:inline-block;margin-right:.55rem;vertical-align:-1px;flex:none}
.key span{display:flex;align-items:flex-start}
.key i{margin-top:.28em}

/* ---------- the shared task card ---------- */
.card{background:var(--c-paper);border:1px solid var(--c-line);border-radius:5px;padding:13px 15px;
  box-shadow:0 10px 26px -14px rgba(20,23,28,.35);text-align:left}
.card-name{font-size:.92rem;line-height:1.4;font-weight:700;color:var(--c-ink);margin-bottom:.55rem}
.card-rows{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;font-size:.84rem;color:var(--c-mute)}
.card-rows b{color:var(--c-ink);font-weight:700;text-align:right;white-space:nowrap}
.card-lean{display:flex;height:7px;border-radius:4px;overflow:hidden;margin-top:.6rem}
.card-lean span{display:block;height:100%}
.card-foot{font-size:.8rem;color:var(--c-mute);margin-top:.5rem;line-height:1.45}

/* ---------- the field ---------- */
.scrolly{position:relative;max-width:1200px;margin:0 auto;padding:0 22px;
  display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:46px;align-items:start}
.stage{position:sticky;top:0;height:100vh;min-width:0;overflow:hidden;display:flex;flex-direction:column;
  justify-content:center;background:var(--c-paper);z-index:3}
.stage-tools{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.srch{flex:1;position:relative}
.srch input{width:100%;background:var(--c-paper);border:1px solid var(--c-line);border-radius:4px;
  padding:7px 28px 7px 11px;font-size:.88rem;color:var(--c-ink)}
.srch input::placeholder{color:var(--c-mute)}
.srch input:focus{outline:none;border-color:var(--c-work);box-shadow:0 0 0 2px rgba(29,63,191,.15)}
.srch-clear{position:absolute;right:5px;top:50%;transform:translateY(-50%);border:0;background:none;
  cursor:pointer;color:var(--c-mute);font-size:1rem;padding:2px 6px;display:none}
.srch.has .srch-clear{display:block}
.hits{font-size:.85rem;color:var(--c-soft);white-space:nowrap;font-weight:600}
#fieldCv{width:100%;display:block;flex:1 1 0;min-height:130px;max-height:600px;touch-action:pan-y}
.cap{font-size:.95rem;color:var(--c-soft);text-align:center;margin-top:.6rem;min-height:3em;
  padding:0 8px;line-height:1.45}
.cap b{color:var(--c-ink);font-weight:700}
.lensbar{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin-top:.6rem;min-width:0}
.lensbar button{border:1px solid var(--c-line);background:var(--c-paper);color:var(--c-soft);
  border-radius:100px;padding:4px 12px;font-size:.84rem;cursor:pointer;transition:.15s;white-space:nowrap}
.lensbar button:hover{border-color:var(--c-work);color:var(--c-ink)}
.lensbar button.on{background:var(--c-work);border-color:var(--c-work);color:#fff;font-weight:600}
/* number and label are separate elements only so the phone rail can drop the
   label; on a pointer they read as one string, exactly as before */
.lensbar b{font-weight:inherit}
.lensbar b::after{content:'. '}

.field-foot{padding-top:2.5rem;padding-bottom:3rem}
.steps{padding:38vh 0}
.step{min-height:78vh;display:flex;flex-direction:column;justify-content:center;opacity:.34;transition:opacity .35s}
.step.on{opacity:1}
.step .no{font-size:.86rem;font-weight:700;color:var(--c-pers-d);margin-bottom:.5rem;letter-spacing:.04em}
.step h2{font-size:1.6rem;line-height:1.2;margin-bottom:.7rem}
.step h2 em{font-style:normal;color:var(--c-pers-d)}
.step p{font-size:1rem;line-height:1.6;color:var(--c-soft);text-wrap:pretty}
.step p+p{margin-top:.7rem}
.step p strong{color:var(--c-ink);font-weight:700}
/* the step-side caveat, set as a margin note against the chart it qualifies */
.step .fine{font-size:.92rem;color:var(--c-mute);line-height:1.55;margin-top:.85rem;
  border-left:2px solid var(--c-line);padding:.05rem 0 .05rem 1rem}
.step .fine::before{content:'☞ ';color:var(--c-pers-d);font-weight:700}

.tip{position:fixed;z-index:40;width:270px;pointer-events:none;opacity:0;transition:opacity .12s}
.tip.on{opacity:1}
.tapcard{display:none}

/* ---------- waffle (what it hands back) ---------- */
.toggle{display:flex;gap:6px;justify-content:center;margin-bottom:1.3rem;flex-wrap:wrap}
.toggle button{border:1px solid var(--c-line);background:var(--c-paper);color:var(--c-soft);
  border-radius:100px;padding:5px 15px;font-size:.86rem;cursor:pointer;transition:.15s}
.toggle button:hover{border-color:var(--c-work)}
.toggle button.on{background:var(--c-ink);border-color:var(--c-ink);color:#fff;font-weight:600}
.waffle{display:grid;grid-template-columns:repeat(25,1fr);gap:5px;max-width:560px;margin:0 auto}
.waffle i{display:block;width:100%;aspect-ratio:1;border-radius:50%;background:var(--c-mark-soft);
  transition:background .3s,transform .15s,opacity .3s;cursor:pointer}
.waffle i.dim{opacity:.2}
.waffle i.hi{transform:scale(1.35)}
.wf-scale{max-width:560px;margin:.7rem auto 0;font-size:.86rem;color:var(--c-mute);text-align:center}
.wf-key{display:flex;flex-wrap:wrap;gap:.45rem 1.4rem;justify-content:center;margin:1.1rem auto 0;
  max-width:640px;font-size:.9rem;color:var(--c-soft)}
.wf-key span{display:flex;align-items:center;white-space:nowrap}
.wf-key i{width:12px;height:12px;border-radius:50%;display:inline-block;margin-right:.45rem}
.wf-key b{font-weight:700;color:var(--c-ink);margin-left:.35rem}
.wf-read{max-width:560px;margin:1.1rem auto 0;min-height:4.4em;text-align:center}
.wf-read .n{font-size:1.9rem;font-weight:700;color:var(--c-pers-d);line-height:1.1}
.wf-read .t{font-size:.98rem;color:var(--c-ink)}
.wf-read .s{font-size:.88rem;color:var(--c-mute);margin-top:.15rem}

/* ---------- dumbbells (two machines) ---------- */
.duel{max-width:800px;margin:0 auto}
.duel-key{display:flex;gap:1.8rem;justify-content:center;font-size:.92rem;color:var(--c-soft);margin-bottom:.6rem;flex-wrap:wrap}
.duel-key i{width:12px;height:12px;border-radius:50%;display:inline-block;margin-right:.45rem;vertical-align:-1px}
.axis-title{font-size:.88rem;color:var(--c-mute);text-align:center;margin-bottom:1.1rem}
.dbl{display:grid;grid-template-columns:210px 1fr;gap:16px;align-items:center;padding:8px;
  border-radius:4px;cursor:default;transition:background .15s}
.dbl:hover,.dbl:focus-visible{background:var(--c-tint)}
.dbl-lab{font-size:.92rem;color:var(--c-ink);text-align:right;line-height:1.3}
.dbl-track{position:relative;height:24px}
.dbl-track:before{content:'';position:absolute;left:0;right:0;top:11.5px;height:1px;background:var(--c-line)}
.dbl-line{position:absolute;top:10.5px;height:3px;background:var(--c-line);border-radius:2px}
.dbl-pt{position:absolute;top:50%;width:13px;height:13px;border-radius:50%;transform:translate(-50%,-50%);
  box-shadow:0 0 0 2px var(--c-paper)}
.dbl-pt.chat{background:var(--c-pers)}
.dbl-pt.api{background:var(--c-work)}
.dbl-v{position:absolute;top:50%;transform:translateY(-50%);font-size:.84rem;font-weight:700;
  white-space:nowrap}
/* the phone layout lifts both values onto their own line; on a pointer the
   values sit at the dots and this never renders */
.dbl-vals{display:none;grid-column:1/-1}
.dbl-gloss{grid-column:1/-1;font-size:.9rem;color:var(--c-mute);line-height:1.5;
  max-height:0;overflow:hidden;transition:max-height .22s}
.dbl:hover .dbl-gloss,.dbl:focus-visible .dbl-gloss,.dbl.open .dbl-gloss{max-height:6em;padding-top:.45rem}
.axis-ends{display:grid;grid-template-columns:210px 1fr;gap:16px;font-size:.84rem;color:var(--c-mute);
  padding:0 8px;margin-top:.2rem}
.axis-ends span:last-child{display:flex;justify-content:space-between}

/* ---------- ratio dot rows (workforce) ---------- */
.rows{max-width:860px;margin:0 auto}
.rrow{display:grid;grid-template-columns:270px 1fr 66px;gap:14px;align-items:center;
  padding:4px 6px;border-radius:4px;cursor:default}
.rrow:hover,.rrow:focus-visible{background:var(--c-tint)}
.rrow-lab{font-size:.9rem;color:var(--c-ink);text-align:right;line-height:1.3}
.rrow-track{position:relative;height:18px}
.rrow-track:before{content:'';position:absolute;left:0;right:0;top:8.5px;height:1px;background:var(--c-line-soft)}
.rrow-mid{position:absolute;top:0;bottom:0;width:1px;background:var(--c-mute)}
.rrow-pt{position:absolute;top:50%;width:12px;height:12px;border-radius:50%;transform:translate(-50%,-50%);
  box-shadow:0 0 0 2px var(--c-paper)}
.rrow-v{font-size:.86rem;font-weight:700;color:var(--c-ink)}
.rrow-detail{grid-column:1/-1;font-size:.86rem;color:var(--c-mute);max-height:0;overflow:hidden;transition:max-height .2s}
.rrow:hover .rrow-detail,.rrow:focus-visible .rrow-detail{max-height:3.4em;padding-top:.3rem}
.scale-lab{display:grid;grid-template-columns:270px 1fr 66px;gap:14px;font-size:.82rem;color:var(--c-mute);
  padding:0 6px;margin-top:.3rem}
.scale-lab .t{position:relative;height:1.4em}
.scale-lab .t span{position:absolute;transform:translateX(-50%);white-space:nowrap}
.scale-lab .t span.mid{font-weight:700;color:var(--c-ink)}

/* ---------- scatter blocks (countries, stability) ---------- */
.plot{position:relative;max-width:900px;margin:0 auto}
.plot canvas{width:100%;display:block;cursor:crosshair}
.plot-tip{position:absolute;pointer-events:none;width:250px;opacity:0;transition:opacity .12s;z-index:5}
.plot-tip.on{opacity:1}
.mini{display:flex;gap:.5rem 1.5rem;justify-content:center;font-size:.9rem;color:var(--c-soft);
  margin-top:.9rem;flex-wrap:wrap;align-items:center}
.mini span{display:flex;align-items:center;white-space:nowrap}
.mini i{width:12px;height:12px;border-radius:50%;display:inline-block;margin-right:.42rem}
.mini .sz{display:inline-flex;align-items:center;gap:4px;margin-right:.42rem}
.mini .sz i{margin:0;background:var(--c-mark-soft)}
.mini .sz i:nth-child(1){width:6px;height:6px}
.mini .sz i:nth-child(2){width:11px;height:11px}
.mini .sz i:nth-child(3){width:17px;height:17px}
.mini .ramp-key{gap:.4rem}
.mini .ramp-key b{color:var(--c-ink);font-weight:600;margin-right:.15rem}
.mini .ramp{display:inline-block;width:92px;height:11px;border-radius:6px;margin:0 .45rem;
  background:linear-gradient(90deg,var(--c-ramp))}

/* ---------- bloom ---------- */
.bloom-sec{padding:5rem 0 4.5rem;border-top:1px solid var(--c-line)}
.bloom-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:40px;align-items:center;
  max-width:1060px;margin:0 auto;padding:0 22px}
#bloom{width:100%;display:block;cursor:crosshair}
.bloom-side h3{font-size:1.05rem;margin-bottom:.5rem;color:var(--c-ink)}
.bloom-side p{font-size:.94rem;color:var(--c-soft);line-height:1.55}
.bloom-key{display:flex;flex-direction:column;gap:.85rem;margin-bottom:1.4rem}
.bloom-key li{list-style:none;display:grid;grid-template-columns:26px 1fr;gap:10px;align-items:start;
  font-size:.94rem;color:var(--c-soft);line-height:1.35}
.bloom-key b{display:block;color:var(--c-ink);font-weight:700}
.bloom-key .sw{width:22px;height:22px;border-radius:50%;margin-top:1px}
.bloom-key .sw.dot{width:12px;height:12px;margin:5px 0 0 5px}
.bloom-key .sw.pale{background:var(--c-mark-pale);box-shadow:0 0 0 1px var(--c-mark-soft)}
.bloom-key .sw.ring{background:none;border:2.5px solid var(--c-pers-d);width:22px;height:22px}

/* ---------- register ---------- */
.reg-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:center;margin-bottom:.8rem}
.reg-controls .srch{max-width:360px;flex:1 1 260px}
.sorts{display:flex;gap:5px;flex-wrap:wrap}
.sorts button{border:1px solid var(--c-line);background:var(--c-paper);color:var(--c-soft);
  border-radius:100px;padding:4px 12px;font-size:.84rem;cursor:pointer}
.sorts button:hover{border-color:var(--c-work)}
.sorts button.on{background:var(--c-work);border-color:var(--c-work);color:#fff;font-weight:600}
.reg-count{text-align:center;font-size:.88rem;color:var(--c-mute);margin-bottom:.9rem}
.reg-head,.reg-row{display:grid;grid-template-columns:1fr 92px 104px 92px;gap:12px;align-items:center}
.reg-head{font-size:.8rem;color:var(--c-mute);padding:0 10px .55rem;border-bottom:1px solid var(--c-line)}
.reg-head span+span,.reg-row span+span{text-align:right}
.reg-list{list-style:none}
.reg-row{width:100%;background:none;border:0;border-bottom:1px solid var(--c-line-soft);
  padding:9px 10px;text-align:left;cursor:pointer;font-size:.9rem;color:var(--c-soft)}
.reg-row:hover{background:var(--c-tint)}
.reg-row .nm{color:var(--c-ink);line-height:1.35}
.reg-row .v{font-weight:600}
.reg-open{background:var(--c-tint);padding:14px 12px 18px;border-bottom:1px solid var(--c-line-soft)}
.reg-open .card{border:0;box-shadow:none;background:none;padding:0}
.reg-foot{font-size:.86rem;color:var(--c-mute);margin-top:.8rem;line-height:1.5}
.reg-foot strong{color:var(--c-soft);font-weight:700}
.reg-row sup{font-size:.7em;color:var(--c-mute)}
.reg-more{text-align:center;margin-top:1.5rem}
.btn{border:1px solid var(--c-line);background:var(--c-paper);border-radius:100px;padding:7px 20px;
  font-size:.88rem;cursor:pointer;color:var(--c-soft)}
.btn:hover{border-color:var(--c-work);color:var(--c-ink)}
.linkish{border:0;background:none;color:var(--c-work);font-size:.86rem;cursor:pointer;font-weight:600;
  text-decoration:underline;text-underline-offset:3px;padding:0;margin-top:.7rem}

/* ---------- colophon ---------- */
.colo{padding:4.5rem 0 5rem;border-top:1px solid var(--c-line)}
.colo h2{font-size:1.4rem;text-align:center;margin-bottom:2.2rem}
.colo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2.2rem}
.colo-grid h3{font-size:.86rem;color:var(--c-pers-d);font-weight:700;margin-bottom:.5rem}
.colo-grid p{font-size:.92rem;line-height:1.6;color:var(--c-soft)}
.colo-foot{text-align:center;font-size:.88rem;color:var(--c-mute);margin-top:2.8rem;line-height:1.6}

/* ---------- the dustincoledata signature ----------
   The same mark every project wears. The letters take this page's ink; the
   period stays brand blue, the one part of the mark that never localises. */
.dcd-footer{display:flex;justify-content:center;
  padding:1.4rem 0 calc(.25rem + env(safe-area-inset-bottom,0px))}
.dcd-mark{display:inline-flex;align-items:center;gap:8px;padding:7px 12px 7px 10px;
  border-radius:999px;border:1px solid var(--c-line);text-decoration:none;line-height:1;
  opacity:.9;transition:opacity .2s ease,transform .2s ease,border-color .2s ease}
.dcd-mark:hover{opacity:1;transform:translateY(-1px);border-color:var(--c-mark-soft)}
.dcd-mark-logo{height:13px;width:24.7px;flex:none;display:block;color:var(--c-ink)}
.dcd-mark-dot{fill:#3B5BDB}
.dcd-mark-rule{width:1px;height:13px;flex:none;background:var(--c-line)}
.dcd-mark-words{display:inline-flex;align-items:baseline;gap:7px}
.dcd-mark-name{font-weight:600;font-size:13px;letter-spacing:-.01em;color:var(--c-ink)}
.dcd-mark-suffix{font-family:ui-monospace,'Cascadia Code','Segoe UI Mono',Menlo,monospace;
  font-weight:500;font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:var(--c-mute)}
@media print{.dcd-mark{display:none}}

/* "Hover" on a pointer, "Tap" on a touchscreen — the instruction has to be true */
.tp{display:none}
@media(hover:none){.hv{display:none}.tp{display:inline}}

/* ---------- responsive ---------- */
@media(max-width:900px){
  .primer-grid{grid-template-columns:1fr;gap:22px}
  .bloom-grid{grid-template-columns:1fr;gap:24px}
  .bloom-side{max-width:520px;margin:0 auto}
  .colo-grid{grid-template-columns:1fr;gap:1.8rem}
  .dbl,.axis-ends{grid-template-columns:130px 1fr}
  .dbl-lab{font-size:.86rem}
  .rrow,.scale-lab{grid-template-columns:150px 1fr 56px;gap:10px}
  .rrow-lab{font-size:.84rem}
}
/* ============================================================
   PHONE
   Not the desktop layout scaled down. The desktop page is a wide
   two-column read: a chart pinned on the left, its story scrolling
   past on the right. Folded onto one column that becomes a chart
   sitting *on top of* its own story, and the two fight over the
   same 844 pixels. So on a phone:
     · the pinned block carries the chart and nothing else
     · the search moves up out of it, into the section head
     · the caption shortens to one line that the story doesn't
       already say, and stays with the chart
     · the lens bar becomes a rail that fits, instead of a
       sideways scroller cut off at the edge
     · every row chart puts its label on its own line and gives
       the track the full width
   ============================================================ */
@media(max-width:760px){
  body{font-size:16px}
  .sec{padding:3.4rem 0}
  .wrap{padding-left:max(20px,env(safe-area-inset-left));
    padding-right:max(20px,env(safe-area-inset-right))}
  .sec-head{margin-bottom:1.9rem}
  .sec-head h2{font-size:clamp(1.45rem,6.2vw,1.8rem)}
  .sec-head p{font-size:.97rem}
  .note{margin-top:1.7rem;font-size:.93rem;padding-left:1rem}

  /* ---- hero ---- */
  .hero{padding:2rem max(20px,env(safe-area-inset-left))
    calc(1.4rem + env(safe-area-inset-bottom,0px))}
  .hero .lede{font-size:1rem}
  .hero-foot{gap:.7rem;padding-top:1.4rem}

  /* ---- primer ---- */
  .primer-dots{min-height:170px;padding:20px 12px}

  /* ---- the field: pinned chart, story underneath ---- */
  .scrolly{grid-template-columns:minmax(0,1fr);gap:0;padding:0}
  /* svh, not vh: iOS collapses the URL bar mid-scroll and vh would resize
     the pinned block under the reader's thumb */
  .stage{top:0;height:46svh;min-height:290px;max-height:440px;
    padding:6px 0 0;justify-content:stretch;
    box-shadow:0 14px 16px -16px rgba(20,23,28,.5)}
  #fieldCv{max-height:none;min-height:150px}
  /* the search is a before-you-dive-in tool, not a permanent tenant of the
     pinned block — main.js moves it up under the section head */
  .field-tools{max-width:520px;margin:0 auto 1.6rem;padding:0 2px}
  .field-tools .srch input{padding:10px 30px 10px 12px;font-size:.92rem}
  .field-tools .hits{margin-left:10px}
  .cap{font-size:.87rem;line-height:1.4;margin:.5rem 0 0;min-height:2.4em;
    padding:0 16px;color:var(--c-mute)}
  .cap b{color:var(--c-soft)}

  /* seven numbered stops. The active one names itself; the step heading
     directly below carries the same number, so the rail reads as a place
     in the sequence rather than a menu of jargon. */
  .lensbar{flex-wrap:nowrap;overflow:visible;justify-content:center;gap:2px;
    margin:.15rem 0 0;padding-bottom:2px}
  .lensbar button{width:40px;height:44px;padding:0;border:0;background:none;
    color:var(--c-mute);font-weight:700;font-size:.84rem;position:relative;
    border-radius:8px;display:flex;align-items:center;justify-content:center}
  .lensbar button::after{content:'';position:absolute;left:9px;right:9px;bottom:7px;
    height:2px;border-radius:2px;background:var(--c-line);transition:background .2s}
  .lensbar button.on{background:var(--c-work);color:#fff}
  .lensbar button.on::after{background:rgba(255,255,255,.55)}
  .lensbar button:hover{border:0}
  .lensbar b{font-weight:inherit}
  .lensbar b::after{content:none}
  /* the label stays in the accessibility tree, out of the picture */
  .lensbar span{position:absolute;width:1px;height:1px;overflow:hidden;
    clip-path:inset(50%);white-space:nowrap}

  /* the reading column: one story per screenful, and no dead run-out at the
     end — the caveat that closes the section follows straight on */
  /* no run-out under the last step: the caveat that closes the section follows
     straight on, still under the pinned chart it qualifies */
  .steps{padding:1.4rem 20px 1.4rem}
  .field-foot{padding-top:.4rem;padding-bottom:2.4rem}
  .step{min-height:auto;padding:1.9rem 0;opacity:1}
  .step .no{font-size:.8rem;margin-bottom:.35rem}
  .step h2{font-size:1.33rem;margin-bottom:.6rem}
  .step p{font-size:.98rem}
  .step .fine{font-size:.88rem;margin-top:.75rem;padding-left:.85rem}

  /* ---- task cards ---- */
  .tip{display:none}
  .tapcard{display:block;position:fixed;left:10px;right:10px;z-index:40;
    bottom:calc(10px + env(safe-area-inset-bottom,0px));
    opacity:0;pointer-events:none;transition:opacity .15s}
  .tapcard.on{opacity:1;pointer-events:auto}
  .tapcard .card-close{position:absolute;top:2px;right:4px;border:0;background:none;
    color:var(--c-mute);font-size:1.3rem;cursor:pointer;padding:6px 10px}

  /* ---- waffle ---- */
  .toggle{gap:7px}
  .toggle button{padding:9px 15px;font-size:.85rem}
  .waffle{grid-template-columns:repeat(20,1fr);gap:4px;max-width:360px}
  .wf-key{gap:.4rem 1.2rem;font-size:.88rem}
  .wf-read .n{font-size:1.6rem}

  /* ---- legends: a legend that runs off the screen is not a legend ---- */
  .mini{gap:.55rem 1.1rem;font-size:.88rem}
  .mini span{white-space:normal;align-items:flex-start;text-align:left}
  .mini i,.mini .sz,.mini .ramp{margin-top:.25em;flex:none}
  .mini .ramp-key{flex-wrap:wrap;align-items:center}
  .mini .ramp{width:76px}

  /* ---- two machines: label on its own line, track full width, both values
          on a line of their own so a tight pair can never stack ---- */
  .duel-key{flex-direction:column;align-items:flex-start;gap:.3rem;
    max-width:320px;margin:0 auto .7rem}
  .axis-title{font-size:.87rem;text-align:left;margin-bottom:1rem;text-wrap:pretty}
  .dbl{grid-template-columns:1fr;gap:2px;padding:9px 4px 11px}
  .dbl-lab{text-align:left;font-size:.95rem;font-weight:600}
  .dbl-track{height:20px}
  .dbl-v{display:none}
  .dbl-vals{display:flex;gap:1.1rem;font-size:.85rem;color:var(--c-mute);margin-top:2px}
  .dbl-vals b{font-weight:700}
  .dbl-vals .chat{color:var(--c-pers-d)}
  .dbl-vals .api{color:var(--c-work-d)}
  .dbl-gloss{font-size:.88rem}
  .dbl:hover .dbl-gloss,.dbl:focus-visible .dbl-gloss{max-height:0;padding-top:0}
  .dbl.open .dbl-gloss{max-height:9em;padding-top:.5rem}
  .axis-ends{grid-template-columns:1fr;padding:0 4px;margin-top:.5rem}

  /* ---- workforce: the point is three orders of magnitude, so the track
          gets the whole width and the label gets its own line ---- */
  .rrow{grid-template-columns:1fr auto;gap:0 10px;padding:5px 4px 7px;
    grid-template-areas:"lab val" "trk trk" "det det"}
  .rrow-lab{grid-area:lab;text-align:left;font-size:.88rem;line-height:1.25}
  .rrow-v{grid-area:val;font-size:.88rem}
  .rrow-track{grid-area:trk;height:18px}
  .rrow-detail{grid-area:det;font-size:.83rem;line-height:1.4}
  .rrow:hover .rrow-detail,.rrow:focus-visible .rrow-detail{max-height:0;padding-top:0}
  .rrow.open .rrow-detail{max-height:5em;padding-top:.3rem}
  .scale-lab{grid-template-columns:1fr;padding:0 4px}
  .scale-lab span:empty{display:none}
  .scale-lab .t{font-size:.76rem;height:1.6em}

  /* ---- register: name on one line, its numbers on the next ---- */
  .reg-controls{gap:9px}
  .sorts button{padding:8px 13px}
  .reg-head,.reg-row{grid-template-columns:repeat(3,1fr);gap:1px 9px}
  .reg-head{font-size:.72rem;line-height:1.3;padding-bottom:.5rem}
  .reg-head span:first-child{display:none}
  .reg-head span+span{text-align:left}
  .reg-row{padding:11px 8px}
  .reg-row .nm{grid-column:1/-1;margin-bottom:5px;font-size:.94rem}
  .reg-row .v{text-align:left;font-size:.88rem}
  .reg-foot{font-size:.84rem}

  /* ---- colophon ---- */
  .colo{padding:3.4rem 0 1rem}
  .colo-foot{margin-top:2rem}
}

/* very narrow phones: the lens rail is the one row that cannot wrap */
@media(max-width:359px){
  .lensbar button{width:34px}
  .wrap{padding-left:16px;padding-right:16px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition-duration:.01ms!important}
}
