/* CHANUA KE: home page, Direction 1 ("Broadsheet in motion").
   Loaded on the home page only. Every rule is scoped under .hx, so no
   other page can change because of this file. Uses the site's own tokens,
   so light and dark themes follow the rest of the site.
   Motion is gated behind [data-motion="on"] (set by motion.js) and off
   under prefers-reduced-motion, same as everywhere else. */

.hx {
  --hx-data: #0b87a0;
  --hx-data-soft: rgba(11,135,160,.32);
  --hx-ramp: cubic-bezier(.16,1,.3,1);
  --hx-shadow: 0 1px 2px rgba(24,20,16,.05), 0 18px 40px -24px rgba(24,20,16,.35);
  --hx-mono: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace);
  --hx-display: var(--font-display, "Fraunces", Georgia, serif);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hx { --hx-data: #3fb3c9; --hx-data-soft: rgba(63,179,201,.38); --hx-shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -24px rgba(0,0,0,.7); }
}
:root[data-theme="dark"] .hx { --hx-data: #3fb3c9; --hx-data-soft: rgba(63,179,201,.38); --hx-shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -24px rgba(0,0,0,.7); }

/* --- shared bits --- */
.hx .hx-mono { font-family: var(--hx-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.hx .hx-clay { color: var(--clay); }
.hx .hx-dim { color: var(--ink-3); }
.hx .hx-thin { font-weight: 400; }
.hx .hx-small { font-size: .84rem; color: var(--ink-3); margin: 0; }
.hx .hx-italic { font-style: italic; }
.hx .hx-block { display: block; }
.hx .hx-accent { color: var(--clay); font-style: italic; font-weight: 500; }
.hx .hx-t-up { color: var(--up); } .hx .hx-t-down { color: var(--down); } .hx .hx-t-flat { color: var(--ink-3); }
.hx .hx-h2 { font-family: var(--hx-display); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.03; letter-spacing: -.034em; margin: .6rem 0 0; text-wrap: balance; }
.hx .hx-h2--xl { font-size: clamp(2.3rem, 5.4vw, 4.5rem); line-height: .99; }
.hx .hx-link { color: var(--clay); font-weight: 600; text-decoration: none; }
.hx .hx-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hx .hx-iconbtn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink); font-size: 1.05rem; cursor: pointer; transition: transform .1s ease-out, background-color .2s; }
.hx .hx-iconbtn.is-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hx .hx-iconbtn:active, .hx .hx-pill:active, .hx .hx-chip:active, .hx .hx-tile:active { transform: scale(.97); }
.hx .hx-btn-ink { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.hx .hx-btn-ink:hover { background: var(--ink-2); }
.hx .hx-btn-ghost { background: transparent; color: var(--on-dark); border: 1px solid rgba(246,241,232,.28); }
.hx .hx-btn-ghost:hover { border-color: var(--on-dark); }
.hx .hx-arrowbtn span, .hx .hx-toolchip__t span, .hx .hx-issue__go span { display: inline-block; transition: transform .45s var(--hx-ramp); }
@media (hover: hover) { .hx .hx-arrowbtn:hover span, .hx .hx-toolchip:hover .hx-toolchip__t span, .hx .hx-issue:hover .hx-issue__go span { transform: translateX(4px); } }
.hx .hx-tag { display: inline-block; border-radius: 999px; padding: .2rem .65rem; font-family: var(--hx-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--paper); }
.hx .hx-tag.is-an { background: transparent; color: var(--ink); border: 1px dashed var(--ink); }
.hx .hx-month .hx-tag { background: transparent; color: var(--ink-3); border: 1px solid var(--rule-strong); }
.hx .hx-month .hx-tag.is-law { color: var(--clay); border-color: var(--clay); }
/* Controls that only work with JS stay out of the way without it. */
html:not([data-hx="on"]) .hx .hx-js-only { display: none !important; }

/* --- hero --- */
.hx .hx-hero { padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
.hx .hx-h1 { font-family: var(--hx-display); font-weight: 600; font-size: clamp(2.6rem, 6.2vw, 5.25rem); line-height: .98; letter-spacing: -.038em; margin: 1rem 0 0; }
.hx .hx-line { display: block; overflow: hidden; padding-bottom: .08em; }
.hx .hx-line > span { display: block; }
.hx .hx-hero__grid { display: grid; gap: 2.5rem; margin-top: 2rem; align-items: start; }
@media (min-width: 64rem) { .hx .hx-hero__grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.hx .hx-lead { max-width: 36rem; margin: 0 0 1.6rem; }
.hx .hx-issue { display: block; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 1.5rem; box-shadow: var(--hx-shadow); transition: transform .5s var(--hx-ramp), border-color .3s; }
@media (hover: hover) { .hx .hx-issue:hover { transform: translateY(-4px); border-color: var(--clay); } }
.hx .hx-issue__meta { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-3); }
.hx .hx-issue__title { display: block; margin-top: .8rem; font-family: var(--hx-display); font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -.02em; }
.hx .hx-issue__list { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.hx .hx-issue__list li { display: grid; grid-template-columns: 2rem 1fr; border-top: 1px solid var(--rule); padding: .5rem 0; font-size: .95rem; color: var(--ink-2); }
.hx .hx-issue__list .hx-mono { line-height: 1.8; letter-spacing: .06em; }
.hx .hx-issue__go { display: inline-block; margin-top: 1rem; color: var(--clay); font-weight: 600; }

/* --- where Kenya stands --- */
.hx .hx-stands { margin-top: 2.5rem; }
.hx .hx-stands__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .75rem; }
.hx .hx-stands__head .eyebrow { margin: 0; }
.hx .hx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 64rem) { .hx .hx-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hx .hx-tile { display: block; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 1rem; box-shadow: var(--hx-shadow); cursor: pointer; transition: border-color .3s, transform .1s ease-out; }
@media (hover: hover) { .hx .hx-tile:hover { border-color: var(--hx-data); } }
.hx .hx-tile__label { display: block; font-size: .82rem; color: var(--ink-3); }
.hx .hx-tile__val { display: block; margin-top: .25rem; font-family: var(--hx-display); font-weight: 600; font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.hx .hx-tile__val small { margin-left: .15rem; font-family: var(--hx-mono); font-size: .85rem; font-weight: 500; letter-spacing: 0; }
.hx .hx-tile__chg { display: block; margin-top: .4rem; font-family: var(--hx-mono); font-size: .7rem; }
.hx .hx-spark { position: relative; display: block; height: 2.75rem; margin-top: .75rem; }
.hx .hx-spark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hx .hx-spark__area { fill: var(--hx-data); opacity: .1; }
.hx .hx-spark__line { fill: none; stroke: var(--hx-data); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.hx .hx-spark__dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--hx-data); transform: translate(-50%, -50%); box-shadow: 0 0 0 2.5px var(--surface); }
.hx .hx-spark__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--hx-data); opacity: 0; }

/* the drill-in */
.hx .hx-dialog { width: min(980px, calc(100vw - 32px)); max-height: 88vh; border: 1px solid var(--rule); border-radius: 24px; padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); }
.hx .hx-dialog::backdrop { background: rgba(24,20,16,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hx .hx-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.hx .hx-dialog__head .eyebrow { margin: 0; }
.hx .hx-dialog__title { font-family: var(--hx-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -.025em; margin: .25rem 0 0; }
.hx .hx-dialog__body { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
@media (min-width: 48rem) { .hx .hx-dialog__body { grid-template-columns: 1.7fr 1fr; } }
.hx .hx-dialog__chart { min-width: 0; }
.hx .hx-dialog__chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.hx .hx-dialog__val { font-family: var(--hx-display); font-size: 2.75rem; font-weight: 600; line-height: 1; letter-spacing: -.04em; margin: 0; font-variant-numeric: tabular-nums; }
.hx .hx-dialog__val small { font-family: var(--hx-mono); font-size: 1rem; margin-left: .25rem; letter-spacing: 0; }
.hx .hx-dialog__chg { margin: .5rem 0 0; letter-spacing: .02em; text-transform: none; }
.hx .hx-dialog__what { margin: 1rem 0; font-size: .95rem; line-height: 1.6; color: var(--ink-2); }
.hx .bc-grid { stroke: var(--rule); } .hx .bc-axis { fill: var(--ink-3); font-family: var(--hx-mono); font-size: 11px; }
.hx .bc-area { fill: var(--hx-data); opacity: .12; } .hx .bc-line { fill: none; stroke: var(--hx-data); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.hx .bc-end { fill: var(--hx-data); stroke: var(--surface); stroke-width: 2.5; }
.hx .bc-cross { stroke: var(--ink-3); stroke-dasharray: 3 3; } .hx .bc-hdot { fill: var(--surface); stroke: var(--hx-data); stroke-width: 2; }
.hx .bc-tip { fill: var(--ink); } .hx .bc-tiptext { fill: var(--paper); font-family: var(--hx-mono); font-size: 12px; }

/* --- the four steps --- */
.hx .hx-steps { padding: clamp(4rem, 9vw, 6rem) 0; }
.hx .hx-steps__head { max-width: 52rem; }
.hx .hx-steps__head .hx-h2 { max-width: 20ch; }
.hx .hx-who { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.hx .hx-pill { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink-2); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; transition: background-color .3s var(--hx-ramp), color .3s, border-color .3s, transform .1s ease-out; }
.hx .hx-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.hx .hx-steps__grid { margin-top: 2.5rem; }
.hx .hx-steps__aside { display: none; }
.hx .hx-steps__list { list-style: none; margin: 0; padding: 0; }
.hx .hx-step { border-top: 1px solid var(--rule); padding: 1.75rem 0; }
.hx .hx-step h3 { font-family: var(--hx-display); font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 600; line-height: 1.1; letter-spacing: -.026em; margin: .5rem 0 0; }
.hx .hx-step__for { max-width: 36rem; margin: .75rem 0 0; font-size: 1.15rem; line-height: 1.6; color: var(--ink); transition: opacity .25s, transform .35s var(--hx-ramp); }
.hx .hx-step__for.is-swap { opacity: 0; transform: translateY(8px); }
.hx .hx-step__ex { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin: 1rem 0 0; padding: .6rem .9rem; border-radius: 12px; background: var(--surface-alt); color: var(--ink-2); font-size: .95rem; }
.hx .hx-step__ex .hx-mono { font-size: .62rem; }
/* Pinned on wide screens, when JS has measured it. Only the number and the
   steps pin; the heading above scrolls normally, so it can never be cut off.
   The pinned area starts below the sticky masthead (--hx-top, set by home.js). */
@media (min-width: 64rem) {
  html[data-hx="on"] .hx .hx-steps.is-pinned { padding-bottom: 0; }
  html[data-hx="on"] .hx .is-pinned .hx-steps__track { height: 300vh; }
  html[data-hx="on"] .hx .is-pinned .hx-steps__pin { position: sticky; top: var(--hx-top, 5rem); height: calc(100vh - var(--hx-top, 5rem)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  html[data-hx="on"] .hx .is-pinned .hx-steps__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; margin-top: 0; }
  html[data-hx="on"] .hx .is-pinned .hx-steps__aside { display: block; }
  /* The numeral is one strip of 01 to 04 inside a window exactly one digit tall.
     Moving between steps slides the strip; two numbers can never overlap. */
  html[data-hx="on"] .hx .is-pinned .hx-steps__num { --h: clamp(120px, 15vh, 168px); height: var(--h); overflow: hidden; }
  html[data-hx="on"] .hx .is-pinned .hx-steps__strip { display: block; transform: translateY(calc(var(--i, 0) * -1 * var(--h))); transition: transform .8s var(--hx-ramp); will-change: transform; }
  html[data-hx="on"] .hx .is-pinned .hx-steps__strip span { display: block; height: var(--h); font-family: var(--hx-display); font-size: calc(var(--h) * 1.06); font-weight: 600; line-height: var(--h); letter-spacing: -.05em; color: var(--clay); font-variant-numeric: lining-nums tabular-nums; }
  html[data-hx="on"] .hx .is-pinned .hx-steps__name { margin: 1.25rem 0 0; font-family: var(--hx-display); font-size: 1.9rem; font-weight: 600; letter-spacing: -.025em; transition: opacity .25s; }
  html[data-hx="on"] .hx .is-pinned .hx-steps__name.is-swap { opacity: 0; }
  html[data-hx="on"] .hx .is-pinned .hx-steps__bar { margin-top: 1.5rem; height: 3px; border-radius: 3px; background: var(--rule); overflow: hidden; }
  html[data-hx="on"] .hx .is-pinned .hx-steps__bar i { display: block; height: 100%; background: var(--clay); transform-origin: left; transform: scaleX(var(--p, 0)); }
  html[data-hx="on"] .hx .is-pinned .hx-steps__hint { margin-top: .75rem; font-size: .66rem; }
  html[data-hx="on"] .hx .is-pinned .hx-steps__list { position: relative; height: min(400px, calc(100vh - var(--hx-top, 5rem) - 80px)); -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
  html[data-hx="on"] .hx .is-pinned .hx-step { position: absolute; inset: 0 0 auto; transform: translateY(calc(var(--o, 0) * 300px)) scale(.96); opacity: 0; filter: blur(2px); transition: transform .8s var(--hx-ramp), opacity .6s, filter .6s; pointer-events: none; }
  /* The next step peeks in as the current one leaves. Only the heading
     ghosts: it is 38px and passes 3:1 at this opacity. The small label and
     body would land near 2:1, so they wait rather than arrive unreadable. */
  html[data-hx="on"] .hx .is-pinned .hx-step.is-next { opacity: 1; }
  html[data-hx="on"] .hx .is-pinned .hx-step.is-next > h3 { opacity: .62; }
  html[data-hx="on"] .hx .is-pinned .hx-step.is-next > :not(h3) { opacity: 0; }
  html[data-hx="on"] .hx .is-pinned .hx-step.is-on { transform: translate(14px, 0); opacity: 1; filter: none; pointer-events: auto; }
}

/* --- the Long View --- */
.hx .hx-lv { padding: clamp(4rem, 9vw, 7rem) 0; }
.hx .hx-lv__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.hx .hx-lv__head > div:first-child { max-width: 48rem; }
.hx .hx-lv__ctl { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
@media (min-width: 48rem) { .hx .hx-lv__ctl { align-items: flex-end; } }
.hx .hx-key { display: flex; gap: 1rem; font-size: .84rem; color: var(--ink-2); }
.hx .hx-key span { display: inline-flex; align-items: center; gap: .45rem; }
.hx .hx-key i { width: 12px; height: 12px; border-radius: 50%; }
.hx .hx-key i.is-fact { background: var(--ink); } .hx .hx-key i.is-an { border: 2px dashed var(--ink); }
.hx .hx-track { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: 3rem; }
.hx .hx-track__rail { position: absolute; left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2); top: 15px; height: 3px; border-radius: 3px; background: var(--rule); }
.hx .hx-track__rail i { display: block; height: 100%; border-radius: 3px; background: var(--clay); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .9s var(--hx-ramp); }
.hx .hx-stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .2rem; background: none; border: 0; font: inherit; color: var(--ink-3); cursor: pointer; }
.hx .hx-stop__dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--rule-strong); background: var(--paper); box-shadow: 0 0 0 6px var(--paper); transition: background-color .4s, border-color .4s, transform .4s var(--hx-ramp); }
.hx .hx-stop.is-an .hx-stop__dot { border-style: dashed; }
.hx .hx-stop.is-past .hx-stop__dot { border-color: var(--ink); background: var(--ink); }
.hx .hx-stop.is-an.is-past .hx-stop__dot { background: var(--paper); }
.hx .hx-stop.is-on .hx-stop__dot { border-color: var(--clay); background: var(--clay); transform: scale(1.12); }
.hx .hx-stop__date { display: none; font-size: .64rem; letter-spacing: .1em; }
.hx .hx-stop__label { display: none; font-size: .88rem; font-weight: 600; text-align: center; line-height: 1.3; }
.hx .hx-stop.is-past .hx-stop__label { color: var(--ink); }
.hx .hx-stop.is-on .hx-stop__date, .hx .hx-stop.is-on .hx-stop__label { color: var(--clay); }
@media (min-width: 40rem) { .hx .hx-stop__date { display: block; } }
@media (min-width: 48rem) { .hx .hx-stop__label { display: block; } }
.hx .hx-lv__stage { position: relative; margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.hx .hx-panel { display: grid; gap: 2.5rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: var(--hx-shadow); }
@media (min-width: 64rem) { .hx .hx-panel { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; } }
html[data-hx="on"] .hx .hx-lv__stage { display: block; overflow: hidden; }
html[data-hx="on"] .hx .hx-panel { display: none; }
html[data-hx="on"] .hx .hx-panel.is-on { display: grid; }
.hx .hx-panel__text { display: flex; flex-direction: column; gap: 1rem; }
.hx .hx-panel__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 0; }
.hx .hx-panel h3 { font-family: var(--hx-display); font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 600; line-height: 1.06; letter-spacing: -.03em; margin: 0; }
.hx .hx-panel__body { font-size: 1.1rem; line-height: 1.65; color: var(--ink-2); margin: 0; }
.hx .hx-panel__src { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--rule); }
.hx .hx-panel__src .hx-mono { display: inline; font-size: .62rem; }
.hx .hx-panel__vis { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hx .hx-lv__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.hx .hx-lv__arrows { display: flex; gap: .6rem; }
/* stop visuals */
.hx .hx-v { display: grid; gap: 1rem; }
.hx .hx-v--gap { gap: 1.5rem; }
.hx .hx-v__big { font-family: var(--hx-display); font-size: clamp(3.4rem, 7vw, 5.75rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; margin: 0; }
.hx .hx-v__big small, .hx .hx-v__huge small { font-family: var(--hx-mono); font-size: .28em; font-weight: 500; letter-spacing: 0; }
.hx .hx-v__huge { font-family: var(--hx-display); font-size: clamp(6rem, 13vw, 10.5rem); font-weight: 600; line-height: .9; letter-spacing: -.05em; margin: 0; font-variant-numeric: tabular-nums; }
.hx .hx-v__mid { font-family: var(--hx-display); font-size: clamp(2.2rem, 4.4vw, 3.25rem); font-weight: 600; line-height: 1; letter-spacing: -.035em; margin: .3rem 0 0; }
.hx .hx-v__mid .hx-thin { font-size: .45em; }
.hx .hx-v__range { position: relative; height: 3.5rem; border-bottom: 1px solid var(--rule-strong); }
.hx .hx-v__range i { position: absolute; bottom: 0; top: .5rem; border-radius: 6px 6px 0 0; background: var(--hx-data); transform-origin: left; }
.hx .hx-v__axis { display: flex; justify-content: space-between; font-family: var(--hx-mono); font-size: .68rem; color: var(--ink-3); }
.hx .hx-kicker { font-family: var(--hx-display); font-style: italic; font-weight: 500; font-size: clamp(1.35rem, 2.4vw, 1.75rem); color: var(--clay); margin: 0; }
.hx .hx-bars__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; }
.hx .hx-bars__key { display: flex; gap: 1rem; font-size: .78rem; color: var(--ink-2); }
.hx .hx-bars__key span { display: inline-flex; align-items: center; gap: .4rem; }
.hx .hx-bars__key i { width: 14px; height: 10px; border-radius: 2px; background: var(--hx-data); }
.hx .hx-bars__key i.is-soft { background: var(--hx-data-soft); }
.hx .hx-bars { display: grid; grid-template-columns: minmax(84px, 130px) 1fr 1fr; align-items: center; row-gap: .75rem; }
.hx .hx-bars__name { font-size: .88rem; font-weight: 600; }
.hx .hx-bars__neg, .hx .hx-bars__pos { display: flex; align-items: center; gap: .5rem; height: 1.75rem; }
.hx .hx-bars__neg { justify-content: flex-end; }
.hx .hx-bars__pos { border-left: 1px solid var(--ink); }
.hx .hx-bars b { font-family: var(--hx-mono); font-size: .72rem; font-weight: 500; color: var(--hx-data); white-space: nowrap; }
.hx .hx-bars em { font-style: normal; font-size: .75rem; color: var(--ink-3); padding-left: .5rem; }
.hx .hx-bars i { display: block; height: 1.5rem; background: var(--hx-data); border-radius: 0 4px 4px 0; transform-origin: left; }
.hx .hx-bars i.is-soft { background: var(--hx-data-soft); }
.hx .hx-bars i.hx-grow--r { border-radius: 4px 0 0 4px; transform-origin: right; }
.hx .hx-bars i.is-est { background: transparent; border: 2px dashed var(--hx-data); }
.hx .hx-chain { gap: 0; }
.hx .hx-chain__join { display: block; width: 2px; height: 1.25rem; margin-left: 1.75rem; background: var(--clay); }
.hx .hx-chain__box { border: 2px dashed var(--rule-strong); border-radius: 16px; padding: .9rem 1rem; font-size: 1rem; }
.hx .hx-chain__box.is-last { border: 2px solid var(--ink); font-weight: 600; }
.hx .hx-chain__box .hx-mono { display: inline; margin-right: .35rem; font-size: .68rem; letter-spacing: .06em; }
.hx .hx-tl { gap: 1.5rem; border-left: 2px solid var(--rule); padding-left: 1.75rem; }
.hx .hx-tl__ev { position: relative; }
.hx .hx-tl__dot { position: absolute; left: calc(-1.75rem - 10px); top: .2rem; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); }
.hx .hx-tl__ev.is-last .hx-tl__dot { border-color: var(--clay); background: var(--clay); }
.hx .hx-tl__ev .hx-mono { color: var(--ink-3); font-size: .68rem; }
.hx .hx-tl__ev.is-last .hx-mono { color: var(--clay); font-weight: 600; }
.hx .hx-tl__text { font-family: var(--hx-display); font-size: 1.35rem; line-height: 1.35; margin: .25rem 0 0; }
.hx .hx-tl__ev.is-last .hx-tl__text { font-size: 1.7rem; font-weight: 600; }
.hx .hx-quote { font-family: var(--hx-display); font-style: italic; font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.15; letter-spacing: -.03em; margin: 0; }
.hx .hx-qcard { border-radius: 16px; padding: 1.5rem; background: var(--ink-block); color: var(--on-dark); }
.hx .hx-qcard .hx-mono { font-size: .6rem; color: var(--clay-on-ink, #e8845c); }
.hx .hx-qcard__q { font-family: var(--hx-display); font-size: 1.25rem; line-height: 1.35; margin: .5rem 0; }
.hx .hx-qcard .hx-small { color: var(--on-dark-2); }
/* the shelf */
.hx .hx-shelf { margin-top: 4rem; }
.hx .hx-shelf__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.hx .hx-shelf__grid { display: grid; gap: .75rem; margin-top: 1rem; }
@media (min-width: 40rem) { .hx .hx-shelf__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .hx .hx-shelf__grid { grid-template-columns: repeat(3, 1fr); } }
.hx .hx-shelf__item { border: 1px dashed var(--rule-strong); border-radius: 16px; padding: 1rem 1.25rem; }
.hx a.hx-shelf__item--link { display: block; border-style: solid; color: inherit; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.hx a.hx-shelf__item--link:hover, .hx a.hx-shelf__item--link:focus-visible { border-color: var(--clay, currentColor); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .hx a.hx-shelf__item--link { transition: none; } .hx a.hx-shelf__item--link:hover { transform: none; } }
.hx .hx-shelf__item p:last-child { font-family: var(--hx-display); font-size: 1.1rem; font-weight: 600; line-height: 1.3; margin: .25rem 0 0; }

/* --- the money year --- */
.hx .hx-year { padding: clamp(4rem, 9vw, 6rem) 0; background: var(--paper-sunk); }
.hx .hx-year__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.hx .hx-year__head .hx-h2 { max-width: 22ch; font-size: clamp(1.9rem, 4.2vw, 3.25rem); }
.hx .hx-year__head .hx-small { max-width: 22rem; }
.hx .hx-year__grid { display: grid; gap: 2rem; margin-top: 1.5rem; align-items: center; }
@media (min-width: 64rem) { .hx .hx-year__grid { grid-template-columns: 1.3fr 1fr; } }
.hx .hx-orbit__svg { display: block; width: 100%; height: auto; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.hx .hx-orbit__svg.is-drag { cursor: grabbing; }
.hx .hx-orbit__svg text { font-family: var(--hx-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; fill: var(--ink-3); }
.hx .hx-orbit__svg text.is-on { fill: var(--ink); font-size: 13px; }
.hx .hx-orbit__svg .o-ring, .hx .hx-orbit__svg .o-tick { stroke: var(--rule-strong); fill: none; }
.hx .hx-orbit__svg .o-arc { stroke: var(--hx-data); fill: none; stroke-linecap: round; }
.hx .hx-orbit__svg .o-today { fill: var(--hx-data); }
.hx .hx-orbit__svg .o-law { fill: var(--clay); } .hx .hx-orbit__svg .o-free { fill: var(--ink-3); }
.hx .hx-orbit__svg .o-halo { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.hx .hx-orbit__svg .o-now { fill: var(--hx-data); }
.hx .hx-orbit__key { display: flex; justify-content: center; gap: 1.5rem; margin-top: .25rem; font-size: .66rem; }
.hx .hx-orbit__key span { display: inline-flex; align-items: center; gap: .5rem; }
.hx .hx-orbit__key i.is-arc { width: 24px; height: 3px; border-radius: 3px; background: var(--hx-data); }
.hx .hx-orbit__key i.is-law { width: 10px; height: 10px; border-radius: 50%; background: var(--clay); }
.hx .hx-year__detail { display: grid; gap: 2.5rem; }
.hx .hx-month__name { font-family: var(--hx-display); font-style: italic; font-weight: 500; font-size: clamp(3rem, 6vw, 4rem); line-height: 1; letter-spacing: -.04em; margin: .5rem 0 0; }
.hx .hx-month .hx-clay { margin-top: .75rem; letter-spacing: .08em; }
.hx .hx-month h3 { font-family: var(--hx-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; margin: 1rem 0 0; }
.hx .hx-month > p:not([class]) { font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); margin: .75rem 0 1rem; }
html[data-hx="on"] .hx .hx-year__detail { display: block; }
html[data-hx="on"] .hx .hx-month { display: none; }
html[data-hx="on"] .hx .hx-month.is-on { display: block; }
.hx .hx-year__btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.hx .hx-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: .375rem; margin: 2rem 0 .75rem; }
@media (min-width: 48rem) { .hx .hx-chips { grid-template-columns: repeat(12, 1fr); } }
.hx .hx-chip { min-height: 44px; border-radius: 12px; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink-2); font-family: var(--hx-mono); font-size: .7rem; letter-spacing: .1em; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .1s ease-out; }
.hx .hx-chip.is-now { border-color: var(--hx-data); color: var(--hx-data); }
.hx .hx-chip[aria-pressed="true"] { background: var(--clay); border-color: var(--clay); color: var(--hx-on-clay, #fff); }
/* In dark mode --clay lightens to #e8845c, where white text falls to
   2.66:1. Ink on that same clay clears 4.5:1. Light mode keeps white on the
   deeper #b4441f, where ink would itself fail. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hx { --hx-on-clay: #14110e; } }
:root[data-theme="dark"] .hx { --hx-on-clay: #14110e; }

/* --- Interview Edge (the one ink band) --- */
.hx .hx-edge { background: var(--ink-block); color: var(--on-dark); padding: clamp(4.5rem, 9vw, 7rem) 0; }
.hx .hx-edge .lead { color: var(--on-dark-2); }
.hx .hx-edge .hx-accent, .hx .hx-onink-clay { color: var(--clay-on-ink, #e8845c); }
.hx .hx-edge .hx-dim, .hx .hx-edge .hx-small { color: var(--on-dark-2); }
.hx .hx-edge__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 64rem) { .hx .hx-edge__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.hx .hx-btnrow { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hx .hx-clock { display: grid; grid-template-columns: 112px 1fr; gap: 1.5rem; align-items: center; padding: 1.75rem; border-radius: 24px; background: rgba(246,241,232,.05); border: 1px solid rgba(246,241,232,.1); }
@media (max-width: 30rem) { .hx .hx-clock { grid-template-columns: 1fr; } }
.hx .hx-clock__ring { position: relative; width: 112px; height: 112px; }
.hx .hx-clock__ring svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.hx .hx-clock__bg { fill: none; stroke: rgba(246,241,232,.12); stroke-width: 6; }
.hx .hx-clock__fg { fill: none; stroke: var(--clay-on-ink, #e8845c); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--left, 30) / 30 * 100); transition: stroke-dashoffset 1s linear; }
.hx .hx-clock__n { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--hx-display); font-size: 2.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hx .hx-clock__q { font-family: var(--hx-display); font-size: 1.3rem; line-height: 1.35; margin: .5rem 0; }
.hx .hx-clock .btn { margin-top: 1rem; }

/* --- the tools strip --- */
.hx .hx-tools { padding: clamp(3.5rem, 8vw, 5rem) 0; }
.hx .hx-tools__card { background: var(--surface); border: 1px solid var(--rule); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--hx-shadow); }
.hx .hx-tools__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.hx .hx-tools__head > div { max-width: 42rem; }
.hx .hx-tools__head .hx-h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.hx .hx-tools__head .lead { margin: .75rem 0 0; }
.hx .hx-tools__grid { display: grid; gap: .6rem; margin-top: 2rem; }
@media (min-width: 40rem) { .hx .hx-tools__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .hx .hx-tools__grid { grid-template-columns: repeat(5, 1fr); } }
.hx .hx-toolchip { display: grid; align-content: start; gap: .25rem; padding: .9rem 1rem; border-radius: 16px; border: 1px solid var(--rule); background: var(--surface-alt); color: var(--ink); text-decoration: none; transition: border-color .3s, background-color .3s; }
@media (hover: hover) { .hx .hx-toolchip:hover { border-color: var(--clay); background: var(--surface); } }
.hx .hx-toolchip__t { display: flex; justify-content: space-between; gap: .5rem; font-weight: 600; line-height: 1.3; }
.hx .hx-toolchip__t span { color: var(--clay); }

/* --- motion (on only when motion.js says so) --- */
@keyframes hx-rise { from { opacity: 0; transform: translateY(var(--y, 18px)); } to { opacity: 1; transform: none; } }
@keyframes hx-mask { from { transform: translateY(108%); } to { transform: none; } }
@keyframes hx-wipe { from { clip-path: inset(-20% 100% -20% -2%); } to { clip-path: inset(-20% -2% -20% -2%); } }
@keyframes hx-pop { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }
@keyframes hx-ping { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.8); } }
@keyframes hx-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hx-in-r { from { opacity: 0; transform: translateX(60px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hx-in-l { from { opacity: 0; transform: translateX(-60px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hx-blur-up { from { opacity: 0; transform: translateY(20px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
[data-motion="on"] .hx .hx-line > span { animation: hx-mask 1.15s var(--hx-ramp) var(--d, 0ms) both; }
[data-motion="on"] .hx .hx-up { animation: hx-rise 1s var(--hx-ramp) var(--d, 0ms) both; }
[data-motion="on"] .hx .hx-rise { --y: 32px; animation: hx-rise 1.1s var(--hx-ramp) var(--d, 0ms) both; }
[data-motion="on"] .hx .hx-tile .hx-spark svg { animation: hx-wipe 1.4s var(--hx-ramp) calc(var(--d, 0ms) + 200ms) both; }
[data-motion="on"] .hx .hx-spark__dot { animation: hx-pop .5s var(--hx-ramp) calc(var(--d, 0ms) + 1400ms) both; }
[data-motion="on"] .hx .hx-spark__dot::after { animation: hx-ping 1.1s ease-out calc(var(--d, 0ms) + 1650ms) 1 both; }
[data-motion="on"] .hx .hx-panel.is-on.from-r { animation: hx-in-r .55s var(--hx-ramp) both; }
[data-motion="on"] .hx .hx-panel.is-on.from-l { animation: hx-in-l .55s var(--hx-ramp) both; }
[data-motion="on"] .hx .hx-panel.is-on .hx-grow { animation: hx-grow .9s var(--hx-ramp) calc(var(--d, 0ms) + 250ms) both; }
[data-motion="on"] .hx .hx-panel.is-on .hx-fade { animation: hx-rise .6s var(--hx-ramp) calc(var(--d, 0ms) + 200ms) both; }
[data-motion="on"] .hx .hx-month.is-on { animation: hx-blur-up .55s var(--hx-ramp) both; }
@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; transition-duration: .01ms !important; }
}
.hx .hx-lv__head .lead, .hx .hx-steps__head .lead { margin-top: 1rem; }

/* ── The closing ask ──────────────────────────────────────────────────
   The page's last section. The hero signup asks before the page has
   earned anything; this one asks after the reader has had the whole of
   it, which is the better moment and was previously not used at all. */
.hx .hx-close { padding: var(--s8) 0 var(--s9); border-top: 1px solid var(--rule); }
.hx .hx-close__in { max-width: 62ch; }
.hx .hx-close__in .lead { margin-bottom: var(--s5); }
.hx .hx-close__in .signup { max-width: 34rem; }

/* ── The fold ticker ──────────────────────────────────────────────────
   Three live figures on one line, under the hero signup, on screens too
   narrow to fit the tiles in the first view. The tiles below say the
   same thing properly, so this is hidden from assistive tech and is a
   plain link down to them. */
.hx .hx-tick { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .5rem; margin: 0 0 1.4rem; padding: .5rem .7rem; border: 1px solid var(--rule); border-radius: 12px; color: var(--ink-2); text-decoration: none; font-family: var(--hx-mono); font-size: .71rem; letter-spacing: 0; line-height: 1.45; transition: border-color .3s, color .3s; }
.hx .hx-tick > span:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .55rem; }
@media (hover: hover) { .hx .hx-tick:hover { border-color: var(--clay); color: var(--ink); } }
.hx .hx-tick__k { color: var(--ink-3); }
.hx .hx-tick__v { color: var(--ink); font-weight: 600; }
.hx .hx-tick__d { color: var(--rule-strong); }
.hx .hx-tick__as { margin-left: auto; color: var(--ink-3); }
/* Shown at every width. Four tiles cannot be lifted into a 900px desktop
   view without shrinking the headline or the issue card, which is the
   approved Direction 1 hero, and a half-cut strip at the fold edge reads
   as a layout fault rather than an invitation. So the proof of life is
   this line, in the dead space the hero grid leaves under the signup,
   and the tiles stay the full treatment a scroll below. */
@media (min-width: 64rem) { .hx .hx-tick { margin-bottom: 1.6rem; font-size: .8rem; } }
/* On a short phone the ticker would push the email field below the fold,
   and the ask matters more than the proof. The tiles still carry the
   figures a scroll down. */
@media (max-width: 48rem) and (max-height: 47.5rem) { .hx .hx-tick { display: none; } }
