/* Klont (Pty) Ltd. Single stylesheet. All design choices live in the tokens below. */
:root {
  color-scheme: light dark;
  /* colour */
  --bg: #e8e1ca;
  --surface: #f1ecda;
  --surface-2: #dcd3b5;
  --ink: #13233f;
  --muted: #425068;
  --rule: #c4b998;
  --accent: #1f3f78;
  --on-accent: #f1ecda;
  --ok: #2f6b3f;
  --err: #a52a24;

  /* type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --t-sm: .875rem;
  --t-base: 1.0625rem;
  --t-lead: clamp(1.125rem, 1rem + .5vw, 1.3125rem);
  --t-h3: 1.25rem;
  --t-h2: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  --t-h1: clamp(2.5rem, 1.3rem + 4.6vw, 4.75rem);

  /* space and shape */
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 5rem; --s7: 7rem;
  --gutter: 1.25rem;
  --radius: 3px;
  --max: 72rem;
  --measure: 62ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13233f; --surface: #1a2d4d; --surface-2: #223760;
    --ink: #e8e1ca; --muted: #a7b0c2; --rule: #34496e;
    --accent: #cbb97f; --on-accent: #13233f; --ok: #7cc28f; --err: #f08a82;
  }
  :root .brand img, :root .foot-mark { filter: invert(1); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: var(--t-base)/1.6 var(--sans); overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-h1); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: var(--t-h2); letter-spacing: -.025em; line-height: 1.05; }
h3 { font-size: var(--t-h3); }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { font-size: var(--t-lead); color: var(--ink); }
.muted { color: var(--muted); }
.eyebrow { font: 600 var(--t-sm)/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s2); }

.skip { position: fixed; left: var(--s2); top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: var(--radius); }
.skip:focus { top: var(--s2); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem;
  padding: .6rem 1.25rem; border: 1.5px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(.92); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.quiet:hover { background: var(--surface-2); filter: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.small { min-height: 2.25rem; padding: .35rem .8rem; font-size: var(--t-sm); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s3); min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .6rem; font: 700 1.25rem/1 var(--serif); color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { width: 2rem; height: 2rem; }
.nav { display: flex; gap: var(--s3); }
.nav a { color: var(--ink); text-decoration: none; padding: .5rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="true"] { border-bottom-color: var(--accent); }
.menu-btn { display: none; }
@media (max-width: 52rem) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--rule); padding: var(--s1) var(--gutter) var(--s2); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
  .menu-btn { display: inline-flex; }
  .site-header .cta { display: none; }
}

/* sections */
section { padding-block: clamp(2.75rem, 5vw, 4rem); }
.band { background: var(--surface-2); }
.head { display: grid; gap: var(--s2); margin-bottom: var(--s4); }
@media (min-width: 52rem) { .head { grid-template-columns: 1fr 1.4fr; align-items: end; gap: var(--s5); } .head p { margin: 0; } }

/* hero */
.hero { padding-block: var(--s5) var(--s6); }
.hero-grid { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: var(--s6); } .hero { padding-top: var(--s6); } }
.hero h1 { margin-bottom: var(--s3); }
.hero .lead { max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }

/* chat demo */
.chat { border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); padding: .75rem 1rem; border-bottom: 1px solid var(--rule); }
.chat-head h2 { font: 700 1rem/1.2 var(--sans); }
.chat-head .tag { font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lang { margin-left: auto; display: flex; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--ink); padding: .3rem .7rem; min-height: 2rem; font: 600 var(--t-sm)/1 var(--sans); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.log { list-style: none; margin: 0; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; height: 19rem; overflow-y: auto; }
.msg { max-width: 85%; padding: .55rem .8rem; border-radius: var(--radius); font-size: .975rem; line-height: 1.45; }
.msg.bot { align-self: flex-start; background: var(--surface-2); }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1rem .75rem; }
.chips button { border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--radius); padding: .4rem .75rem; min-height: 2.25rem; font: 500 var(--t-sm)/1.2 var(--sans); cursor: pointer; }
.chips button:hover { background: var(--surface-2); }
.compose { display: flex; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid var(--rule); }
.compose input { flex: 1; min-width: 0; }
.chat-foot { display: flex; justify-content: space-between; gap: var(--s1); padding: .5rem 1rem .75rem; font-size: .8125rem; color: var(--muted); }
.chat-foot button { white-space: nowrap; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }

/* inputs */
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--ink);
  border-radius: var(--radius); padding: .6rem .75rem; min-height: 2.75rem;
}
textarea { min-height: 8rem; resize: vertical; }
.select-control { position: relative; }
.select-control select { appearance: none; padding-right: 2.75rem; }
.select-control::after { content: ""; position: absolute; right: 1rem; top: 50%; width: .5rem; height: .5rem; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
@media (forced-colors: active) { .select-control select { appearance: auto; } .select-control::after { display: none; } }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--err); }

/* services: ruled list */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.rows > li { display: grid; gap: var(--s1); padding-block: var(--s3); border-bottom: 1px solid var(--rule); }
.rows h3 { font-size: 1.375rem; }
.rows p { margin: 0; color: var(--muted); }
@media (min-width: 52rem) { .rows li { grid-template-columns: 1fr 1.4fr; gap: var(--s5); } }

/* process */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: var(--s4); }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.steps > li { counter-increment: step; border-top: 1.5px solid var(--ink); padding-top: var(--s2); }
.steps > li::before { content: counter(step); display: block; font: 600 2.25rem/1 var(--serif); color: var(--accent); margin-bottom: var(--s1); }
.steps h3 { margin-bottom: var(--s1); }
.steps p { color: var(--muted); margin: 0; }

/* company */
.company { display: grid; gap: var(--s5); }
@media (min-width: 52rem) { .company { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
dl { margin: 0; border-top: 1.5px solid var(--ink); }
.row { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding-block: .9rem; border-bottom: 1px solid var(--rule); }
dt { font-size: var(--t-sm); color: var(--muted); }
dd { margin: 0; }

/* faq */
#faq .head { grid-template-columns: 1fr; }
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding-block: 1.1rem; font: 600 1.125rem/1.35 var(--serif); list-style: none; display: flex; justify-content: space-between; gap: var(--s2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; max-width: none; }

/* contact */
.contact-grid { display: grid; gap: var(--s5); }
@media (min-width: 52rem) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: var(--s6); } }
.big-link { display: block; font: 600 clamp(1.25rem, 1rem + 1.2vw, 1.75rem)/1.3 var(--serif); overflow-wrap: anywhere; }
.field { margin-bottom: var(--s3); }
label, .label { display: block; font-weight: 600; font-size: var(--t-sm); margin-bottom: .35rem; }
.error { color: var(--err); font-size: var(--t-sm); margin: .35rem 0 0; min-height: 0; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .9375rem; }
.check input { width: 1.25rem; min-height: 1.25rem; height: 1.25rem; margin-top: .2rem; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.notice { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: var(--s3); background: var(--surface); }
.notice h3 { margin-bottom: var(--s1); }
.notice pre { white-space: pre-wrap; font: .9rem/1.5 var(--sans); background: var(--bg); padding: var(--s2); border-radius: var(--radius); border: 1px solid var(--rule); overflow-wrap: anywhere; }
.notice[hidden], form[hidden] { display: none; }
.form-error { color: var(--err); font-weight: 600; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: var(--s5); font-size: .9375rem; }
.foot { display: grid; gap: var(--s4); }
@media (min-width: 52rem) { .foot { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h2 { font: 600 var(--t-sm)/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s1); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .4rem; }
.foot a { color: var(--ink); }
.foot-mark { width: 3rem; height: 3rem; margin-bottom: var(--s1); }
.fine { margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--t-sm); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1); }

/* long-form pages (privacy, terms, 404) */
.doc { padding-block: var(--s5) var(--s6); }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); margin-bottom: var(--s1); }
.doc h2 { font-size: 1.5rem; margin: var(--s5) 0 var(--s1); }
.doc ul { padding-left: 1.2rem; max-width: var(--measure); }
.doc li { margin-bottom: .4rem; }
.draft { border-left: 4px solid var(--accent); background: var(--surface); padding: var(--s2) var(--s3); margin: var(--s3) 0; max-width: var(--measure); }
.doc table { border-collapse: collapse; width: 100%; font-size: .9375rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print { .site-header, .site-footer, .skip { display: none; } body { background: #fff; color: #000; } }

/* header tools */
.tools { display: flex; align-items: center; gap: .25rem; }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; background: transparent; color: var(--ink); border-radius: var(--radius); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* search */
.search { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--bg) 92%, transparent); display: none; padding: 5rem var(--gutter) var(--gutter); overflow-y: auto; }
.search.open { display: block; }
.search-box { width: min(40rem, 100%); margin-inline: auto; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius); }
.search-box .top { display: flex; gap: .5rem; padding: .75rem; border-bottom: 1px solid var(--rule); }
.search-box .top input { flex: 1; min-width: 0; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results a { display: block; padding: .8rem 1rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--rule); }
.search-results a:hover, .search-results a:focus-visible { background: var(--surface-2); outline-offset: -3px; }
.search-results .t { font-weight: 600; display: block; }
.search-results small { color: var(--muted); }
.search-results mark { background: transparent; color: var(--accent); font-weight: 700; }
.search-hint { padding: .8rem 1rem; color: var(--muted); font-size: var(--t-sm); margin: 0; }
kbd { font: .8em var(--sans); border: 1px solid var(--rule); border-radius: 2px; padding: 0 .3em; }

/* back to top */
.to-top { position: fixed; right: var(--gutter); bottom: var(--gutter); z-index: 55; width: 2.75rem; height: 2.75rem; display: none; place-items: center; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--bg); color: var(--ink); cursor: pointer; }
.to-top.show { display: grid; }
.to-top svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* misc restored */
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--s2); padding: 0; list-style: none; }
.tags li { font-size: var(--t-sm); color: var(--muted); border: 1px solid var(--rule); border-radius: var(--radius); padding: .1rem .6rem; }
.big-word { font: 700 clamp(2.5rem, 1.5rem + 4vw, 5rem)/1 var(--serif); letter-spacing: .04em; color: var(--surface-2); margin-top: var(--s4); user-select: none; overflow: hidden; }
.contact-line { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s1); }
.contact-line .big-link { display: inline-block; }

/* logo mark (mask, so it takes any colour) */
.mark { display: block; width: 100%; aspect-ratio: 1; background-color: currentColor; -webkit-mask: url(../assets/klont-mark-320.png) center / contain no-repeat; mask: url(../assets/klont-mark-320.png) center / contain no-repeat; }


/* hero background mark */
.hero { position: relative; overflow: hidden; }
.hero .hero-grid { position: relative; z-index: 1; }
.hero-mark { position: absolute; top: 2rem; right: -12vw; width: min(60vw, 40rem); color: var(--ink); opacity: .06; pointer-events: none; z-index: 0; will-change: transform; }
@media (max-width: 62rem) { .hero-mark { width: 90vw; right: -30vw; opacity: .05; } }

/* brand mark turns on hover */
.brand img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.brand:hover img { transform: rotate(120deg); }

@media (prefers-reduced-motion: no-preference) {
  .hero-mark .mark { animation: drift 12s ease-in-out infinite; }
  .notfound .mark { animation: spin 8s linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .brand img { transition: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { 50% { transform: rotate(14deg) scale(1.04); } }
.notfound { display: flex; align-items: center; gap: var(--s2); }
.notfound .mark { width: .8em; flex: none; color: var(--accent); }

/* motion: word-by-word headline, scroll reveals, rotating badge. Only with motion allowed and JS running. */
.badge { position: relative; width: 7.5rem; height: 7.5rem; margin-top: var(--s4); color: var(--ink); }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge text { font: 600 9.5px var(--sans); letter-spacing: .12em; fill: currentColor; text-transform: uppercase; }
.badge .mark { position: absolute; inset: 30%; width: 40%; color: var(--accent); }
@media (max-width: 62rem) { .badge { width: 6rem; height: 6rem; } }
@media (prefers-reduced-motion: no-preference) {
  .badge svg { animation: spin 22s linear infinite; }
  .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
  .split .w > span { display: inline-block; transform: translateY(110%); animation: rise .8s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { to { transform: none; } }


/* ---- second pass: bigger type, dark band, statement, sticky process ---- */
.dark-band { --bg: #0a1424; --surface: #111f38; --surface-2: #1a2b4a; --ink: #e8e1ca; --muted: #a7b0c2; --rule: #2d4163; --accent: #cbb97f; --on-accent: #0e1a2e; background: var(--bg); color: var(--ink); }
.dark-band .rows { border-top-color: var(--ink); }
.dark-band .rows > li { padding-block: var(--s3); }
.dark-band .rows h3 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); letter-spacing: -.02em; }
.dark-band .rows > li:hover h3 { color: var(--accent); }
.dark-band .rows p { font-size: 1.125rem; }
.dark-band .head h2 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem); }

.statement { padding-block: clamp(3rem, 5vw, 4rem); }
.statement-text { font: 600 clamp(1.9rem, 1rem + 3.6vw, 4.25rem)/1.12 var(--serif); letter-spacing: -.03em; max-width: none; margin: 0; text-wrap: balance; }
.statement-text.scrub .sw { color: color-mix(in srgb, var(--ink) 28%, var(--bg)); }
.statement-text.scrub .sw.lit { color: var(--ink); }

.process { display: grid; gap: var(--s4); }
.process-head p { margin: 0; }
/* stairs with the Klont figure; geometry matches the 300 x 258 viewBox used in site.js */
.stairs { position: relative; aspect-ratio: 300 / 258; }
.stairs svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stairs path, .stairs circle { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.fig { position: absolute; left: 0; top: 2.326%; width: 33.333%; aspect-ratio: 100 / 110; transform-origin: 0 0; will-change: transform; }
.fig .body path, .fig .pose path, .fig .pose circle { stroke-width: 3; vector-effect: none; }
.fig .pose .prop { stroke: var(--accent); stroke-width: 2.4; }
.fig .pose .thin { stroke-width: 1.6; }
.fig .pose .teeth { stroke-width: 5; stroke-dasharray: 5 6.78; stroke-linecap: butt; }
/* legs and swinging arms pivot at hip and shoulder; site.js drives them while he walks, these are the standing angles */
.fig .leg, .fig .swing { transform-box: view-box; transform-origin: 38px 74px; }
.fig .swing { transform-origin: 38px 48px; }
.fig .leg.a { transform: rotate(13.2deg); }
.fig .leg.b { transform: rotate(-13.2deg); }
.fig .swing.a { transform: rotate(24deg); }
.fig .swing.b { transform: rotate(-24deg); }
/* poses cross-fade: props are set down as he leaves and picked up as he lands */
.fig .pose { opacity: 0; transition: opacity .22s ease; }
.fig[data-pose="plan"] .plan, .fig[data-pose="build"] .build, .fig[data-pose="care"] .care, .fig[data-pose="move"] .move { opacity: 1; transition-duration: .32s; transition-delay: .06s; }
.fig .mark { position: absolute; left: 21%; top: 4.545%; width: 34%; color: var(--accent); }
@media (min-width: 52rem) {
  .process, .process-head { grid-template-columns: 1fr 1.1fr; column-gap: clamp(2rem, 5vw, 4rem); align-items: start; }
  .process-side { position: sticky; top: 6rem; align-self: start; }
  .stairs { width: min(100%, 24rem, calc((100svh - 9rem) * 1.163)); }
  .steps { display: block; }
  .steps > li { min-height: clamp(13rem, 26svh, 18rem); padding-top: var(--s3); padding-bottom: var(--s4); }
  .steps > li:last-child { min-height: 0; padding-bottom: 0; }
  .steps > li::before { display: none; }
  .steps h3 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); letter-spacing: -.02em; }
  .steps p { font-size: 1.1875rem; }
}
@media (max-width: 51.99rem) {
  /* single column: the stairs stay pinned under the header while the steps scroll past */
  .process { gap: var(--s3); }
  .process-side { display: contents; }
  .stairs { position: sticky; top: 5.25rem; z-index: 2; width: min(100%, 11rem, 26svh); margin: 0 auto; background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(-1.25rem -100vmax -1rem); }
  .steps > li::before { display: none; }
  .steps { gap: var(--s3); }
  .steps > li { padding-bottom: var(--s1); }
  .steps h3 { font-size: 1.5rem; }
}
.hero { padding-block: var(--s6); }
@media (min-width: 62rem) { .hero { padding-block: 6rem 5.5rem; } }

/* the figure keeps busy at each stage */
@media (prefers-reduced-motion: no-preference) {
  .fig .arm, .fig .gear, .fig .teeth { transform-box: view-box; }
  .fig .plan .arm { transform-origin: 38px 48px; animation: fig-point 1.6s ease-in-out infinite; }
  .fig .build .arm { animation: fig-type .32s ease-in-out infinite alternate; }
  .fig .build .arm.b { animation-delay: -.16s; }
  .fig .care .arm { transform-origin: 38px 48px; animation: fig-crank 1.4s ease-in-out infinite; }
  .fig .care .teeth, .fig .care .gear { transform-origin: 80px 62px; animation: fig-turn 1.4s ease-in-out infinite; }
}
@keyframes fig-point { 50% { transform: rotate(-9deg); } }
@keyframes fig-type { to { transform: translateY(1.6px); } }
@keyframes fig-crank { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
@keyframes fig-turn { 50% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .fig .pose { transition: none; } }
