/* Konnex homepage v5 (HOMEPAGE-V5 Variation B, Matt design review 25 Oct 2026) — clean-fold hero + recheck sweep · evidence (coverage, What changed, Demand,
   More of the evidence base) · Founding Partner pilot, on the shared shell.
   Loads AFTER colors_and_type.css, styles.css and homepage.css, and ONLY on the homepage (template api/_lib/home.html). Every selector is scoped under
   body.kx-home so nothing here can reach the Ask Konnex page, the NSW profile or any other page that shares
   styles.css / homepage.css. Token names are the site's own (colors_and_type.css); the --kxh- tokens are new.
   Type roles: Fraunces 600 headings · Inter 600 tabular-nums for statistics (.kx-stat-num) · Inter body/nav/buttons ·
   DM Mono 500 labels, never below 12px · Lexend 700 wordmark (unchanged).
   Tier colours: Verified = terracotta, ABN-confirmed = #9C5530, Listed only = hatched (never colour alone: icon/word/pattern). */

.kx-home {
  /* new for this design */
  --kxh-text-on-dark-2: #D6D3D1;   /* body copy on dark panels (~11:1 on #1F1D1B); --panel-text-secondary stays for small meta */
  --kxh-terracotta-text: #A94418;  /* terracotta for SMALL text on linen/white (~5:1); #E8703A is ~3.1:1 there */
  --kxh-line-dark: #3A3633;        /* hairlines and card borders on dark */
  --kxh-line-warm: #E2DBD2;        /* hairlines and card borders on linen */
  --kxh-nav-h: 76px;               /* fixed nav height: clears the hero and sets the in-page scroll offset */
  background: var(--panel-bg); color: var(--panel-text); font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  overflow-x: hidden; -webkit-text-size-adjust: 100%;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.kx-home img, .kx-home svg { max-width: 100%; }
.kx-home section, .kx-home .card { scroll-margin-top: calc(var(--kxh-nav-h) + 8px); }
.kx-home a { color: inherit; }
.kx-home a:focus-visible, .kx-home button:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

.kx-home .wrap { max-width: var(--measure-grid); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- type roles ---------- */
.kx-home .display { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.kx-home .h1 { font-size: clamp(2.75rem, 5.4vw, 4.75rem); line-height: 1.02; }
.kx-home .h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; }
.kx-home .h3 { font-size: clamp(1.375rem, 1.8vw, 1.625rem); line-height: 1.22; }
/* changing statistics: Inter 600, tabular figures (the repo's Inter has tnum; its default digits are proportional) */
.kx-home .kx-stat-num { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1; }
.kx-home .label { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.kx-home .meta { font-family: var(--font-mono); font-weight: 500; font-size: 13px; }
.kx-home .eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--terracotta); margin: 0; }
.kx-home .lede { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; margin: 0; max-width: 34em; }
.kx-home .on-dark .lede { color: var(--kxh-text-on-dark-2); }
.kx-home .on-warm .lede { color: var(--fg2); }

/* ---------- evidence chips: icon + word, never colour alone ---------- */
.kx-home .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.kx-home .chip svg { width: 11px; height: 11px; flex: none; }
.kx-home .on-dark .chip { border-color: #6F6A65; color: var(--panel-text); }
.kx-home .on-dark .chip--verified { background: var(--terracotta); border-color: var(--terracotta); color: var(--fg1); }
.kx-home .chip--inferred { border-style: dashed !important; }

/* ---------- buttons: DARK text on terracotta (~5.6:1); white is ~3.1:1 ---------- */
.kx-home .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: var(--radius-sm); text-decoration: none; font-family: var(--font-body); font-weight: 600; font-size: 17px; }
.kx-home .btn svg { width: 18px; height: 18px; flex: none; }
.kx-home .btn--primary { background: var(--terracotta); color: var(--fg1); }
.kx-home .btn--primary:hover { background: #D4612E; }
.kx-home .btn--outline { border: 1px solid #6F6A65; color: var(--panel-text); padding: 0 24px; }
.kx-home .btn--outline:hover { border-color: var(--panel-text); }
.kx-home .textlink { font-size: 17px; text-underline-offset: 5px; padding: 10px 0; display: inline-block; }
.kx-home .on-dark .textlink { color: var(--panel-text); }

/* header + mobile menu rules live in v2/nav-dark-hero.css (body.kx-nav-dark), shared with the About page. */

/* ---------- 1. hero (HOMEPAGE-V5): eyebrow, H1, lede, one scroll cue + the recheck sweep. No buttons, no figures. ---------- */
.kx-home .hero { padding-top: var(--kxh-nav-h); background: var(--panel-bg); }
.kx-home .hero__grid { box-sizing: border-box; display: flex; align-items: center; gap: 48px 64px; min-height: min(calc(100svh - var(--kxh-nav-h)), 760px); padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(48px, 5vw, 64px); }
.kx-home .hero__copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.kx-home .hero__copy .h1 { max-width: 760px; letter-spacing: -0.025em; }
.kx-home .hero__copy .lede { max-width: 28em; font-size: clamp(1.125rem, 1.45vw, 1.3125rem); line-height: 1.55; }
.kx-home .hero__cue { align-self: flex-start; display: inline-flex; align-items: center; gap: 14px; min-height: 48px; margin-top: 12px; text-decoration: none; color: var(--panel-text); font-weight: 500; font-size: 16px; line-height: 1.35; }
.kx-home .hero__cue:hover { color: var(--terracotta); }
.kx-home .hero__cue-ring { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--terracotta); display: inline-flex; align-items: center; justify-content: center; color: var(--terracotta); animation: kx-nudge 1.8s ease-in-out infinite; }

/* recheck sweep: decorative (aria-hidden). A check line with a pulse, over a suburb x time dot grid a wave sweeps across; the odd dot is a change found. */
.kx-home .sweep { flex: 1 1 420px; min-width: 0; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 24px 8px; background: radial-gradient(closest-side, rgba(232,112,58,.09), transparent); }
.kx-home .checkline { width: 100%; max-width: 500px; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; color: var(--panel-text-secondary); }
.kx-home .checkline i { display: block; height: 1px; background: var(--kxh-line-dark); flex: 1; position: relative; overflow: hidden; }
.kx-home .checkline i.long { flex: 3; }
.kx-home .checkline b { display: block; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--terracotta); box-sizing: border-box; }
.kx-home .checkline b.on { background: var(--terracotta); animation: kx-ping 6s ease-out infinite; }
.kx-home .pulse { position: absolute; top: 0; left: -20%; width: 20%; height: 1px; background: linear-gradient(90deg, transparent, var(--terracotta), transparent); animation: kx-travel 6s linear infinite; }
.kx-home .sweep__field { width: 100%; max-width: 500px; display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); row-gap: 22px; justify-items: center; align-items: center; }
.kx-home .dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: #78716C; opacity: .22; animation: kx-sweep 6s ease-in-out infinite; }
.kx-home .dot.hit { animation-name: kx-hit; }
.kx-home .d0{animation-delay:0s}
.kx-home .d1{animation-delay:0.15s}
.kx-home .d2{animation-delay:0.3s}
.kx-home .d3{animation-delay:0.45s}
.kx-home .d4{animation-delay:0.6s}
.kx-home .d5{animation-delay:0.75s}
.kx-home .d6{animation-delay:0.9s}
.kx-home .d7{animation-delay:1.05s}
.kx-home .d8{animation-delay:1.2s}
.kx-home .d9{animation-delay:1.35s}
.kx-home .d10{animation-delay:1.5s}
.kx-home .d11{animation-delay:1.65s}
.kx-home .d12{animation-delay:1.8s}
.kx-home .d13{animation-delay:1.95s}
.kx-home .d14{animation-delay:2.1s}
.kx-home .d15{animation-delay:2.25s}
.kx-home .d16{animation-delay:2.4s}
.kx-home .d17{animation-delay:2.55s}
.kx-home .d18{animation-delay:2.7s}
.kx-home .d19{animation-delay:2.85s}
.kx-home .d20{animation-delay:3s}
.kx-home .d21{animation-delay:3.15s}
@keyframes kx-sweep { 0%, 100% { opacity: .22; transform: scale(1); } 8% { opacity: .95; transform: scale(1.5); } 18% { opacity: .22; transform: scale(1); } }
@keyframes kx-hit { 0%, 100% { opacity: .22; transform: scale(1); background: #78716C; } 8% { opacity: 1; transform: scale(2); background: #E8703A; } 45% { opacity: 1; transform: scale(1.4); background: #E8703A; } 70% { opacity: .22; transform: scale(1); background: #78716C; } }
@keyframes kx-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes kx-travel { 0% { left: -20%; opacity: 0; } 4% { opacity: 1; } 46% { opacity: 1; } 50% { left: 100%; opacity: 0; } 100% { left: 100%; opacity: 0; } }
@keyframes kx-ping { 0%, 46% { box-shadow: 0 0 0 0 rgba(232,112,58,0); } 52% { box-shadow: 0 0 0 6px rgba(232,112,58,.35); } 70%, 100% { box-shadow: 0 0 0 12px rgba(232,112,58,0); } }
@media (prefers-reduced-motion: reduce) {
  .kx-home .dot, .kx-home .dot.hit, .kx-home .hero__cue-ring, .kx-home .pulse, .kx-home .checkline b.on { animation: none; }
  .kx-home .pulse { display: none; }
  .kx-home .dot.hit { background: #E8703A; opacity: .9; }
}

/* tier bar + list (shared vocabulary with the NSW profile): Verified = terracotta, ABN-confirmed = #9C5530, Listed only = hatched */
.kx-home .tiers { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; }
.kx-home .tiers i { display: block; }
.kx-home .tiers i:nth-child(1) { background: var(--terracotta); }
.kx-home .tiers i:nth-child(2) { background: #9C5530; }
.kx-home .tiers i:nth-child(3) { background: repeating-linear-gradient(135deg, #57534E 0 3px, var(--panel-surface) 3px 6px); }
.kx-home .tierlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.kx-home .tierlist li { display: flex; align-items: center; gap: 12px; }
.kx-home .tierlist li > span:nth-of-type(1) { flex: 1; min-width: 0; }
.kx-home .tierlist__n { font-weight: 600; font-variant-numeric: tabular-nums; }
.kx-home .sw { display: block; flex: none; width: 12px; height: 12px; border-radius: 3px; }
.kx-home .sw--v { background: var(--terracotta); }
.kx-home .sw--a { background: #9C5530; }
.kx-home .sw--l { background: repeating-linear-gradient(135deg, var(--panel-text-tertiary) 0 2px, var(--panel-surface) 2px 4px); border: 1px solid #57534E; }

/* ---------- section scaffolding ---------- */
.kx-home .sec { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); display: flex; flex-direction: column; gap: 40px; }
.kx-home .sec__head { display: flex; flex-wrap: wrap; gap: 20px 64px; align-items: end; }
.kx-home .sec__head > .display, .kx-home .sec__head > .sec__title { flex: 1 1 460px; }
.kx-home .sec__title { display: flex; flex-direction: column; gap: 14px; }
.kx-home .sec__head > .lede { flex: 1 1 440px; }
.kx-home .sec__cta { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }

/* ---------- 2. built for the decisions (warm) ---------- */
.kx-home .audience { background: var(--warm-bg); color: var(--fg1); }
.kx-home .aud { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.kx-home .aud__card { background: var(--card-bg); border: 1px solid var(--kxh-line-warm); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kx-home .aud__label { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--kxh-terracotta-text); }
.kx-home .aud__title { margin: 0; font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600; font-size: 22px; line-height: 1.25; }
.kx-home .aud__qs { margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--kxh-line-warm); display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.45; color: var(--fg2); }

/* ---------- 3. the evidence, with its limits attached (dark) ---------- */
.kx-home .evidence { background: var(--nav-scrolled); border-top: 1px solid var(--panel-surface); }
.kx-home .evidence .sec { gap: 32px; }
.kx-home .legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding: 16px 20px; border: 1px solid var(--kxh-line-dark); border-radius: var(--radius); }
.kx-home .legend__item { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--kxh-text-on-dark-2); }
.kx-home .legend__link { margin-left: auto; padding: 10px 0; font-size: 15px; font-weight: 600; color: var(--panel-text); text-underline-offset: 4px; }

/* card row: Coverage + What changed (wide) + Demand. A lone card takes the full row; no cards, no row (fail closed). */
.kx-home .evrow { display: flex; flex-wrap: wrap; gap: 20px; }
.kx-home .evrow:empty { display: none; }
.kx-home .card { flex: 1 1 320px; min-width: 0; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.kx-home .on-dark .card { background: var(--panel-surface); border: 1px solid var(--kxh-line-dark); }
.kx-home .card--coverage { flex: 1 1 300px; }
.kx-home .card--changes { flex: 1.5 1 440px; gap: 20px; }
.kx-home .card--demand { flex: 1 1 300px; }
.kx-home .card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.kx-home .card__head .meta { color: var(--panel-text-secondary); }
.kx-home .card .kx-stat-num { font-size: 56px; overflow-wrap: anywhere; }
.kx-home .card__label { margin: 0; font-family: var(--font-body); font-weight: 400; font-size: 17px; line-height: 1.4; }
.kx-home .card__note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--panel-text-secondary); }
.kx-home .card .card__note .kx-stat-num { font-size: inherit; letter-spacing: 0; color: var(--kxh-text-on-dark-2); }
.kx-home .card__foot { margin: 0; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--kxh-line-dark); font-size: 14px; line-height: 1.5; color: var(--kxh-text-on-dark-2); }

/* What changed: the recheck window, then the result (the answer is the boxed pair) */
.kx-home .steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.kx-home .step { min-width: 0; border: 1px solid var(--kxh-line-dark); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.kx-home .step__when { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--panel-text-secondary); }
.kx-home .step__body { font-size: 15px; color: var(--kxh-text-on-dark-2); }
.kx-home .card .step__body .kx-stat-num { font-size: 22px; color: var(--panel-text); }
.kx-home .step--result { border: 2px solid var(--terracotta); }
.kx-home .result { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 16px 20px; width: 100%; }
.kx-home .result li { flex: 1 1 120px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.kx-home .card .result .kx-stat-num { font-size: 44px; color: var(--panel-text); }
.kx-home .result li > span:last-child { font-size: 15px; line-height: 1.4; }

/* Demand card sparkline */
.kx-home .spark { display: flex; align-items: end; gap: 4px; height: 48px; }
.kx-home .spark i { display: block; flex: 1; background: #57534E; border-radius: 2px; }
.kx-home .spark i.now { background: var(--terracotta); }
.kx-home .spark i.gap { background: transparent; } /* a month with no figure: a gap, never 0 */
.kx-home .spark__axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--panel-text-secondary); }

/* More of the evidence base (static, no figures) */
.kx-home .more { border: 1px solid var(--kxh-line-dark); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.kx-home .more__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.kx-home .more__note { margin: 0; font-size: 14px; color: var(--panel-text-secondary); }
.kx-home .more__cols { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.kx-home .more__col { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.kx-home .more__label { color: var(--terracotta); padding-bottom: 6px; }
.kx-home .more__list { margin: 0; padding: 0; list-style: none; }
.kx-home .more__item { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-top: 1px solid var(--kxh-line-dark); }
.kx-home .more__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kx-home .more__text b { font-weight: 600; font-size: 16px; }
.kx-home .more__text span { font-size: 14px; line-height: 1.5; color: var(--kxh-text-on-dark-2); }
.kx-home .more__item .chip { flex: none; }
.kx-home .more__item--ladder { flex-direction: column; align-items: stretch; gap: 10px; }
.kx-home .more__item--ladder > b { font-weight: 600; font-size: 16px; }
.kx-home .more__sub { font-size: 14px; line-height: 1.5; color: var(--kxh-text-on-dark-2); }
.kx-home .ladder { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.kx-home .ladder__step { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--panel-surface); border: 1px solid var(--kxh-line-dark); border-radius: var(--radius-sm); }
.kx-home .ladder__step > span { display: flex; flex-direction: column; line-height: 1.3; }
.kx-home .ladder__step b { font-weight: 600; font-size: 14px; }
.kx-home .ladder__step > span > span { font-size: 13px; color: var(--panel-text-secondary); }
.kx-home .ladder__step--top { border-color: var(--terracotta); }
.kx-home .ladder__arrow { display: flex; justify-content: center; color: var(--panel-text-secondary); }
.kx-home .ladder__arrow svg { width: 14px; height: 14px; transform: rotate(90deg); }
/* the one-line text form of the ladder is not shown: the ladder (desktop row, mobile stack) carries the sub-labels; kept in the markup as a no-CSS fallback */
.kx-home .ladder__line { display: none; }

/* ---------- 4. Founding Partner pilot (dark) ---------- */
.kx-home .pilot { background-color: var(--panel-bg); background-image: radial-gradient(rgba(250,250,248,.06) 1px, transparent 1px); background-size: 22px 22px; border-top: 1px solid var(--panel-surface); }
.kx-home .pilot__grid { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.kx-home .pilot__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.kx-home .pilot__copy .display { font-size: clamp(2.125rem, 3.6vw, 3.25rem); line-height: 1.06; }
.kx-home .thread { display: flex; align-items: center; gap: 10px; margin: 0; }
.kx-home .thread__dots { display: inline-flex; align-items: center; gap: 4px; }
.kx-home .thread__dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
.kx-home .thread__dots b { display: block; width: 16px; height: 1px; background: #57534E; }
.kx-home .thread__text { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--terracotta); }
.kx-home .pilot__body { margin: 0; font-size: 18px; line-height: 1.6; color: var(--kxh-text-on-dark-2); max-width: 34em; }
.kx-home .pilot__actions { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; padding-top: 6px; }
.kx-home .pilot__mail { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--panel-text-secondary); }
.kx-home .pilot__mail a { display: inline-block; padding: 10px 0; color: var(--panel-text); text-underline-offset: 3px; overflow-wrap: anywhere; }
.kx-home .pilot__note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--panel-text-secondary); max-width: 40em; }
.kx-home .pilot__panel { flex: 1 1 380px; min-width: 0; background: var(--panel-surface); border: 1px solid var(--kxh-line-dark); border-radius: var(--radius-lg); padding: 24px 26px; }
.kx-home .pilot__panel-label { margin: 0 0 6px; color: var(--panel-text-secondary); }
.kx-home .pilot__list { margin: 0; padding: 0; list-style: none; }
.kx-home .pilot__list li { display: flex; gap: 18px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--kxh-line-dark); font-weight: 600; font-size: 17px; }
.kx-home .pilot__list li:last-child { padding-bottom: 4px; }
.kx-home .pilot__n { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--terracotta); }

/* footer: no homepage rules; the one shared style is v2/site-footer.css (FOOTER-MATCH-01, Matt 9f2fa9cb) */


/* ================= <= 1100px — the hero stacks: copy, then the sweep ================= */
@media (max-width: 1100px) {
  .kx-home .hero__grid { flex-direction: column; align-items: stretch; }
  .kx-home .hero__copy { flex: none; }
  .kx-home .sweep { flex: none; align-self: center; width: 100%; }
}

/* ================= <= 767px — the mobile design ================= */
@media (max-width: 767px) {
  /* --kxh-lift: how far the dot map's top edge rises toward the nav (half the old gap under it, Matt 26 Oct). Row spacing takes it; grid padding rebalances the centring so headline, lede and cue stay put. 0 on short phones. */
  .kx-home { --kxh-nav-h: 60px; --kxh-lift: max(0px, calc(25svh - 161px)); }

  /* hero: fills the first screen (no evidence peeking in), content centred so there is a clear gap under the nav; sweep leads, scroll cue stays on the first screen */
  .kx-home .hero__grid { min-height: calc(100svh - var(--kxh-nav-h)); justify-content: center; padding-top: max(0px, calc(16px - var(--kxh-lift))); padding-bottom: calc(32px + max(0px, calc(var(--kxh-lift) - 16px))); gap: 0; }
  .kx-home .hero__copy { order: 2; gap: 16px; padding-top: 24px; }
  .kx-home .hero__copy .h1 { font-size: 42px; line-height: 1.04; }
  .kx-home .hero__copy .lede { font-size: 17px; line-height: 1.55; }
  .kx-home .hero__cue { gap: 12px; min-height: 48px; margin-top: 16px; font-size: 15px; }
  .kx-home .hero__cue-ring { width: 40px; height: 40px; }
  .kx-home .sweep { order: 1; gap: 24px; padding: 0 4px 20px; }
  .kx-home .sweep__field { grid-template-columns: repeat(14, minmax(0, 1fr)); row-gap: calc(22.5px + var(--kxh-lift) / 5); }
  .kx-home .dot { width: 5px; height: 5px; }
  .kx-home .sweep__field i:nth-child(20n+15), .kx-home .sweep__field i:nth-child(20n+16), .kx-home .sweep__field i:nth-child(20n+17),
  .kx-home .sweep__field i:nth-child(20n+18), .kx-home .sweep__field i:nth-child(20n+19), .kx-home .sweep__field i:nth-child(20n+20),
  .kx-home .sweep__field i:nth-child(n+121) { display: none; }
  .kx-home .asat { display: none; }

  .kx-home .sec { padding-top: 56px; padding-bottom: 56px; gap: 24px; }
  .kx-home .evidence .sec { gap: 20px; }
  .kx-home .sec__head { gap: 14px; }
  .kx-home .sec__head > .display, .kx-home .sec__head > .sec__title, .kx-home .sec__head > .lede { flex-basis: 100%; }
  .kx-home .sec__head > .lede { font-size: 16px; line-height: 1.55; }
  .kx-home .aud { gap: 14px; }
  .kx-home .aud__card { padding: 20px; gap: 12px; }
  .kx-home .aud__title { font-size: 20px; }
  .kx-home .legend { gap: 10px 16px; padding: 14px 16px; }
  .kx-home .legend__item { flex-wrap: wrap; gap: 6px 10px; }
  .kx-home .legend__link { margin-left: 0; }

  .kx-home .evrow { gap: 16px; }
  .kx-home .card, .kx-home .card--changes { flex-basis: 100%; padding: 20px; gap: 12px; }
  .kx-home .card .kx-stat-num { font-size: 46px; }
  .kx-home .card__label { font-size: 16px; }
  .kx-home .card .result .kx-stat-num { font-size: 36px; }
  .kx-home .result li { flex-basis: 130px; }

  .kx-home .more { padding: 20px; gap: 16px; }
  .kx-home .more__col { flex-basis: 100%; }
  .kx-home .more__item { gap: 12px; }
  .kx-home .more__item .chip { padding: 3px 8px; }

  .kx-home .btn { padding: 0 16px; font-size: 16px; text-align: center; }
  .kx-home .sec__cta { flex-direction: column; align-items: stretch; gap: 4px; }
  .kx-home .sec__cta .btn { width: 100%; min-height: 52px; }
  .kx-home .sec__cta .textlink { align-self: center; font-size: 16px; }

  .kx-home .pilot__grid { padding-top: 56px; padding-bottom: 56px; gap: 28px; }
  .kx-home .pilot__copy { gap: 16px; flex-basis: 100%; }
  .kx-home .pilot__body { font-size: 17px; }
  .kx-home .pilot__actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .kx-home .pilot__actions .btn { min-height: 52px; }
  .kx-home .pilot__mail { text-align: center; }
  .kx-home .pilot__panel { flex-basis: 100%; padding: 20px; }
  .kx-home .thread { gap: 8px; }

  /* the shared cookie banner (cookie-consent.js) on this page: tighter on phones so it never covers the hero CTA */
  .kx-home .cookie-banner-inner { padding: 20px; gap: 16px; }
}
/* short phones (e.g. iPhone SE 375x667): 4 sweep rows and tighter spacing so the scroll cue stays on the first screen, above the cookie sheet */
@media (max-width: 767px) and (max-height: 700px) {
  .kx-home { --kxh-nav-h: 56px; --kxh-lift: 0px; }
  .kx-home .sweep { gap: 14px; padding: 0 4px 16px; }
  .kx-home .sweep__field { row-gap: 16px; }
  .kx-home .sweep__field i:nth-child(n+81) { display: none; }
  .kx-home .hero__copy { gap: 12px; padding-top: 16px; }
  .kx-home .hero__copy .h1 { font-size: 36px; }
  .kx-home .hero__cue { margin-top: 8px; }
  .kx-home .cookie-banner-inner { padding: 14px 20px 16px; gap: 10px; }
  .kx-home .cookie-banner-title { margin-bottom: 4px; }
  .kx-home .cookie-banner-desc { margin-bottom: 4px; }
  .kx-home .cookie-btn { padding-top: 10px; padding-bottom: 10px; }
}
