/* Handspan Labs design tokens.
   Two themes of one design: Night (the default for every visitor) and Day (a light version, on paper white).
   Only colours change between them. The theme is set on <html data-theme="day">; see site.js.
   Each page has one contrasting band (.paper, the Fair work band): light in Night, dark in Day.
   Ground and type are neutral (black, graphite, near-white), so the only colour on a page is the five threads:
   one for each finger of the hand in the art (rose, marigold, verdigris, sky, lilac). Each recorded stream keeps
   one of them wherever it appears. Sections take one as their tone (.tone-1 to .tone-5 in site.css), for small
   marks only. Buttons are never coloured: they are the page's own ink.
   Type: Wix Madefor Display for headlines and Wix Madefor Text for everything else, one family cut for two sizes,
   the way Apple pairs SF Pro Display and SF Pro Text. Newsreader italic is kept for one thing only: a worker's own
   words. All fonts are self-hosted and under the SIL Open Font Licence. */

@font-face {
  font-family: "Wix Madefor Display";
  src: url("../fonts/wix-madefor-display-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Wix Madefor Text";
  src: url("../fonts/wix-madefor-text-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Wix Madefor Text";
  src: url("../fonts/wix-madefor-text-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  /* a worker's narration only: a tiny subset */
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-quotes.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---------- Night: black ground, graphite tiles, near-white type. Colour comes only from the five threads ---------- */
:root,
:root[data-theme="day"] .paper {
  color-scheme: dark;
  --bg: #000000;               /* ground */
  --bg-2: #161617;             /* tiles */
  --bg-3: #1d1d1f;             /* inputs and inner wells */
  --fg: #f5f5f7;               /* text and traces, 19.3:1 */
  --fg-2: #a1a1a6;             /* secondary text, 8.2:1 */
  --fg-3: #86868b;             /* captions, 5.8:1 on the ground and 5.0:1 on a tile */
  --fg-rgb: 245 245 247;
  /* the five threads (thumb to little finger), 9:1 or more on the ground */
  --c1: #f7a1b6; --c1-rgb: 247 161 182;   /* rose */
  --c2: #f7c066; --c2-rgb: 247 192 102;   /* marigold */
  --c3: #78d6b9; --c3-rgb: 120 214 185;   /* verdigris */
  --c4: #86c1f4; --c4-rgb: 134 193 244;   /* sky */
  --c5: #c1a9ee; --c5-rgb: 193 169 238;   /* lilac */
  --accent: #f7a1b6;           /* rose: the kept mistake, the worker in the pay drawing, and form errors. Not buttons. */
  --accent-rgb: 247 161 182;
  --accent-tint: rgba(247, 161, 182, 0.12);
  --accent-line: rgba(247, 161, 182, 0.7);
  --btn-bg: #f5f5f7;           /* the one solid button: the page's own ink, never a colour */
  --btn-bg-hover: #ffffff;
  --btn-ink: #000000;
  --btn-quiet: rgba(255, 255, 255, 0.1);        /* the quiet button: a tint of the ground */
  --btn-quiet-hover: rgba(255, 255, 255, 0.16);
  --theme-thumb: rgba(255, 255, 255, 0.16);   /* the thumb of the Night and Day switch */
  --btn-bar: #333336;          /* the header's button: Apple's dark grey, so it is not one more white box */
  --btn-bar-hover: #424245;
  --btn-bar-ink: #f5f5f7;
  --focus: #86c1f4;            /* keyboard focus: sky */
  --rule: rgba(255, 255, 255, 0.1);
  --rule-2: rgba(255, 255, 255, 0.18);
  --rule-3: rgba(255, 255, 255, 0.32);
  --rule-rgb: 255 255 255;
  --field-line: rgba(255, 255, 255, 0.4);    /* form field edges: 3:1 or more against the field and the tile */
  --field-line-hover: rgba(255, 255, 255, 0.62);
  --panel-solid: #161617;
  --head-bg: rgba(0, 0, 0, 0.72);
  --menu-bg: #000000;          /* the open phone menu: opaque, so nothing shows through */
  --strand-glow: drop-shadow(0 0 5px rgba(245, 245, 247, 0.2));
  --strand-a: 0.9;             /* small drawings: how strongly the thread colours show */
  /* the rig figure: a rendered picture (tools/rig), and the few colours the drawing over it needs */
  --rig-img: url("../img/rig-night.webp");
  --rig-ground: var(--bg-2);          /* the tile the figure sits on */
  --rig-glint: rgba(255, 255, 255, 0.9);
  --rig-bench: rgba(255, 255, 255, 0.26);
  /* signature art: read by assets/js/span.js and the drawn strands */
  --art-far: #2d2d33;          /* distance haze */
  --art-f1: #ff8bb0;           /* thumb: rose (the art's light is a little richer than the text colours) */
  --art-f2: #ffbb49;           /* index: marigold */
  --art-f3: #5bdfb7;           /* middle: verdigris */
  --art-f4: #6fbeff;           /* ring: sky */
  --art-f5: #bc9cfe;           /* little finger: lilac */
  --art-gain: 1.6;             /* coloured light reads dimmer than white at the same strength */
  --art-point: #f5f5f7;
  --art-blend: lighter;        /* light adds up on night */
  --art-glow: 1;
  --art-halo: rgba(245, 245, 247, 0.07); /* soft light around drawn fingertips (none on paper) */
  --art-soft: rgba(245, 245, 247, 0.34); /* drawn fingertips: a soft light at night, a clear disc by day */
  /* the hands at the head of the inner pages (templates/hand.mjs), shaded as span.js shades the hero's:
     a point's strength is dot-0 + dot-1 x how far it faces the light, so a lit point is brighter at night */
  --art-dot-0: 0.616;
  --art-dot-1: 0.264;
  --art-tint: 80%;             /* how far a fingertip's points take its colour */
  --art-line: 0.55;            /* the hairlines from the fingertips */
}

/* ---------- Day: paper. A paper-white ground with a hint of beige, warm white tiles, warm graphite type, and the
   same five threads as dyes. Every grey here leans the way the paper does, so nothing on it looks cold. ---------- */
:root[data-theme="day"],
:root:not([data-theme="day"]) .paper {
  color-scheme: light;
  --bg: #f7f4ec;               /* paper white, a hint of beige */
  --bg-2: #fffdf8;             /* tiles: a lighter sheet on the paper */
  --bg-3: #fffdf8;
  --fg: #1c1b19;               /* warm graphite, 15.7:1 */
  --fg-2: #524f4a;             /* 7.4:1 */
  --fg-3: #6d6962;             /* 5.0:1 on the ground, 5.4:1 on a tile */
  --fg-rgb: 28 27 25;
  /* the five threads as dyes, 4.9:1 or more on the ground and on a tile */
  --c1: #a43459; --c1-rgb: 164 52 89;     /* madder */
  --c2: #935f1a; --c2-rgb: 147 95 26;     /* turmeric */
  --c3: #1c7360; --c3-rgb: 28 115 96;     /* verdigris */
  --c4: #2b61a3; --c4-rgb: 43 97 163;     /* indigo */
  --c5: #6f4797; --c5-rgb: 111 71 151;    /* lac */
  --accent: #a43459;           /* 6.0:1 */
  --accent-rgb: 164 52 89;
  --accent-tint: rgba(164, 52, 89, 0.08);
  --accent-line: rgba(164, 52, 89, 0.62);
  --btn-bg: #1c1b19;
  --btn-bg-hover: #000000;
  --btn-ink: #fffdf8;
  --btn-quiet: rgba(0, 0, 0, 0.06);          /* black over the paper stays as warm as the paper */
  --btn-quiet-hover: rgba(0, 0, 0, 0.1);
  --theme-thumb: #fffdf8;
  --btn-bar: #e9e5db;          /* the header's button: a warm grey, a step down from the paper */
  --btn-bar-hover: #dedacf;
  --btn-bar-ink: #1c1b19;
  --focus: #2b61a3;
  --rule: rgba(0, 0, 0, 0.1);
  --rule-2: rgba(0, 0, 0, 0.16);
  --rule-3: rgba(0, 0, 0, 0.34);
  --rule-rgb: 0 0 0;
  --field-line: rgba(0, 0, 0, 0.5);
  --field-line-hover: rgba(0, 0, 0, 0.72);
  --panel-solid: #fffdf8;
  --head-bg: rgba(247, 244, 236, 0.8);
  --menu-bg: #f7f4ec;
  --strand-glow: none;
  --strand-a: 1;
  --rig-img: url("../img/rig-day.webp");
  --rig-ground: var(--bg-2);
  --rig-glint: rgba(255, 255, 255, 0.9);
  --rig-bench: rgba(0, 0, 0, 0.22);
  --art-far: #beb9ae;          /* far hairlines fade toward the paper */
  --art-f1: #a43459;
  --art-f2: #935f1a;
  --art-f3: #1c7360;
  --art-f4: #2b61a3;
  --art-f5: #6f4797;
  --art-point: #1c1b19;
  --art-blend: source-over;    /* ink lies on paper */
  --art-strands: 8;            /* fewer, darker hairlines read cleaner on a light ground (span.js) */
  --art-gain: 1.95;
  --art-glow: 0.3;
  --art-halo: transparent;
  --art-soft: #f7f4ec;
  --art-dot-0: 1;              /* on paper a lit point carries less ink */
  --art-dot-1: -0.28;
  --art-tint: 90%;
  --art-line: 0.85;
}

:root {
  /* type: one family, two cuts (display for headlines, text for the rest), and a serif italic for workers' words */
  --f-display: "Wix Madefor Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-text: "Wix Madefor Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-label: var(--f-text);
  --f-voice: "Newsreader", "Iowan Old Style", Georgia, serif;
  /* sizes: Apple's steps (80, 56, 40, 28, 21, 17, 14), fluid between phone and desktop */
  --t-h1: clamp(2.6rem, 1.3rem + 4.5vw, 5.25rem);
  --t-h1-page: clamp(2.35rem, 1.2rem + 3.1vw, 4rem);
  --t-h2: clamp(2rem, 1.25rem + 2.4vw, 3.5rem);
  --t-h3: clamp(1.3rem, 1.18rem + 0.45vw, 1.6rem);
  --t-lead: clamp(1.08rem, 1rem + 0.35vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-label: 0.875rem;

  /* space */
  --gutter: clamp(20px, 5.2vw, 80px);
  --max: 1240px;
  --section: clamp(64px, 7.6vw, 116px);     /* sections are parted by space alone, so less of it is needed */
  --radius: 28px;              /* tiles */
  --radius-s: 12px;            /* buttons, fields and small wells */
  --head-h: 76px;

  /* motion: one family of curves. Things arrive once, over a short distance, and settle (see "motion" in site.css) */
  --ease: cubic-bezier(.2, .7, .2, 1);          /* a small change under the pointer */
  --ease-rise: cubic-bezier(.16, .84, .28, 1);  /* arriving: quick off the mark, then a long soft landing */
  --ease-io: cubic-bezier(.5, 0, .2, 1);        /* travelling: a line being drawn, a sheet opening */
  --ease-even: cubic-bezier(.45, .05, .55, .95);/* a steady hand: a line drawn at one speed, eased only at its ends */
  --rise: 24px;                                 /* how far a block rises as it arrives */
}

/* Handspan Labs: components. Every colour, face and size comes from tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.5;
  letter-spacing: -0.006em;
  font-feature-settings: "kern", "liga", "calt";
  hanging-punctuation: first;      /* Safari: an opening quote hangs outside the text edge */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgb(var(--tone-rgb, var(--c4-rgb)) / 0.36); color: var(--fg); }   /* selected text takes its section's thread colour */
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 60;
  background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.016em;
  font-kerning: normal;
  text-wrap: balance;
}
/* tracking tightens as the size grows, the way SF Pro Display is set on Apple's pages */
h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -0.03em; max-width: 12em; }
h2 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.024em; max-width: 18em; }
/* a headline's phrases (parts.mjs ln()): each starts a new line, so big type never breaks mid-phrase.
   A phrase too long for a phone wraps inside itself, still balanced. */
.ln { display: block; }
h3 { font-size: var(--t-h3); line-height: 1.2; font-weight: 600; letter-spacing: -0.012em; }
h4 { font-family: var(--f-text); font-size: 1.0625rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.lead { font-size: var(--t-lead); line-height: 1.45; letter-spacing: -0.008em; color: var(--fg-2); max-width: 34em; text-wrap: pretty; }
p, li, dd { text-wrap: pretty; }   /* no single word left alone on a paragraph's last line */
.muted { color: var(--fg-2); }
.small { font-size: var(--t-small); }
.label {
  font-family: var(--f-text); font-size: var(--t-label); line-height: 1.4; font-weight: 600; font-synthesis: none;
  letter-spacing: -0.005em; color: var(--fg-3); font-variant-numeric: tabular-nums;
}
/* a page's name above its headline: the headline's own ink, one size down. Sections carry no label. */
.eyebrow {
  display: block; margin-bottom: clamp(8px, 1vw, 14px);
  font-family: var(--f-display); font-size: clamp(1.3125rem, 1.08rem + 0.85vw, 1.75rem); line-height: 1.15; font-weight: 600; font-synthesis: none;
  letter-spacing: -0.012em; color: var(--fg);
}
/* the words to land on inside a grey paragraph */
.hi { color: var(--fg); }
.prose p + p { margin-top: 1em; }
.prose a, .inline-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule-3); transition: text-decoration-color .25s ease; }
.prose a:hover, .inline-link:hover { text-decoration-color: currentColor; }

/* a link that stands on its own: words and a chevron, underlined only under the pointer */
/* (the underline is always there and only its colour changes, so it can fade in and out) */
.textlink { color: var(--fg); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 1px; transition: text-decoration-color .25s ease; }
.textlink__end { white-space: nowrap; }
.chev { display: inline-block; width: 0.42em; height: 0.72em; margin-left: 0.34em; vertical-align: -0.02em; transition: transform .3s var(--ease); }
.textlink:hover { text-decoration-color: currentColor; }
.textlink:hover .chev { transform: translateX(3px); }
.textlink:active .chev { transform: translateX(5px); }
.links { display: flex; flex-wrap: wrap; gap: 14px 36px; }

/* ---------- buttons ---------- */
/* Two buttons, both words only. The solid one is the page's own ink (never a colour); the quiet one is a tint
   of the ground. Corners are softly squared, and drawn as continuous curves where the browser can. */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--h); padding: 0 20px; border-radius: var(--radius-s); border: 0; cursor: pointer;
  font: 600 1rem/1.1 var(--f-text); letter-spacing: -0.012em; text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color .2s ease, transform .2s var(--ease);
}
.btn:active { transform: scale(0.975); }
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn--primary:hover { background: var(--btn-bg-hover); }
.btn--quiet { background: var(--btn-quiet); color: var(--fg); }
.btn--quiet:hover { background: var(--btn-quiet-hover); }
.btn--sm { --h: 36px; padding: 0 14px; font-size: 0.875rem; border-radius: 10px; }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
@supports (corner-shape: squircle) {
  .btn { corner-shape: squircle; border-radius: 18px; }
  .btn--sm { border-radius: 15px; }
}

/* ---------- header ---------- */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 40; }
.js .site-head { position: fixed; transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease; border-bottom: 1px solid transparent; }
.js .site-head.is-scrolled, .js .site-head.is-open {
  background: var(--head-bg); border-bottom-color: var(--rule);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.site-head__bar { display: flex; align-items: center; gap: 28px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; color: var(--fg); margin-right: auto; text-decoration: none; padding: 6px 0; }
.brand svg { height: 28px; width: auto; }
@media (min-width: 1261px) { .brand svg { position: relative; top: -4px; } }   /* the wordmark sits on the menu's baseline */
.nav__links { display: flex; gap: 26px; list-style: none; }
.nav__links a { position: relative; color: var(--fg-2); text-decoration: none; font-size: 0.92rem; letter-spacing: -0.006em; transition: color .2s; padding: 6px 0; }
.nav__links a:hover, .nav__links a[aria-current="page"], .nav__links a.is-here { color: var(--fg); }
/* where you are: a short thread under the link, in the colour of the section on screen (site.js sets .is-here
   and data-tone as the page scrolls). On the other pages it marks the page itself, in the page's ink. */
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 1px;
  background: var(--here, var(--fg)); transform: scaleX(0); transform-origin: 100% 50%; opacity: 0.36;
  transition: transform .45s var(--ease), opacity .3s ease;
}
/* it grows from the left and, when the page moves on, leaves to the right: a thread passing through */
.nav__links a[aria-current="page"]::after, .nav__links a.is-here::after { transform: scaleX(1); transform-origin: 0 50%; opacity: 1; }
/* under the pointer the same thread runs in, faint: where you could go, beside where you are */
@media (hover: hover) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; } }
.nav__links a[data-tone="1"] { --here: var(--c1); }
.nav__links a[data-tone="2"] { --here: var(--c2); }
.nav__links a[data-tone="3"] { --here: var(--c3); }
.nav__links a[data-tone="4"] { --here: var(--c4); }
.nav__links a[data-tone="5"] { --here: var(--c5); }
.nav__actions { display: flex; align-items: center; gap: 18px; }
/* the header's own button is grey, so the solid ink button stays particular to the page below it */
.nav__actions .btn--primary { background: var(--btn-bar); color: var(--btn-bar-ink); }
.nav__actions .btn--primary:hover { background: var(--btn-bar-hover); }
.menu-btn, .menu-link { display: none; }
.menu-btn {
  align-items: center; gap: 10px; min-height: 40px; padding: 0 12px 0 14px; border-radius: 10px;
  border: 0; background: var(--btn-quiet); color: var(--fg); cursor: pointer; font-size: 0.94rem; font-weight: 400;
  transition: background-color .2s ease;
}
.menu-btn:hover { background: var(--btn-quiet-hover); }
.menu-btn__icon { position: relative; width: 16px; height: 10px; }
.menu-btn__icon::before, .menu-btn__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn__icon::before { top: 1px; }
.menu-btn__icon::after { top: 7.5px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon::before { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon::after { top: 4.25px; transform: rotate(-45deg); }
.menu-link { align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; background: var(--btn-quiet); text-decoration: none; font-size: 0.94rem; }
.menu {
  position: absolute; inset: var(--head-h) 0 auto 0; height: calc(100vh - var(--head-h)); height: calc(100dvh - var(--head-h));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--menu-bg); border-top: 1px solid var(--rule);
}
.menu__inner { padding: 12px 0 40px; display: grid; gap: 28px; }
.menu__list { list-style: none; }
.menu__list li { border-bottom: 1px solid var(--rule); }
.menu__list a { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 0; text-decoration: none; font-family: var(--f-display); font-size: 1.75rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.022em; }
.menu__list a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.menu__list a { transition: opacity .15s ease; }
.menu__list a:active { opacity: 0.6; }
.menu .btns { flex-direction: column; align-items: stretch; gap: 10px; max-width: 420px; }
.menu__workers { color: var(--fg-2); font-size: 1rem; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: max(760px, min(100svh, 1040px));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(48px, 6.5vh, 80px);
  background: var(--bg);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.hero__art { position: absolute; inset: 0; z-index: -1; }
.hero__art canvas { width: 100%; height: 100%; }
/* without JavaScript: a still of the finished exposure (rendered by tools/raster.mjs) */
.no-js .hero__art { background: url("../img/span-wide.jpg") 50% 0 / cover no-repeat; }
.no-js .hero__art canvas { display: none; }
.hero__inner { position: relative; z-index: 2; }
.hero h1 { margin-bottom: clamp(26px, 3vw, 44px); }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; }
.hero__copy { display: grid; gap: 18px; justify-items: start; }
.hero__actions { display: grid; gap: 16px; justify-items: start; }
.hero__note { font-size: 0.92rem; color: var(--fg-2); }
.hero__workers { font-size: 0.92rem; color: var(--fg-2); }
.hero__workers a { color: var(--fg); }

/* ---------- page heads (inner pages) ---------- */
.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--head-h) + clamp(56px, 8vw, 120px)) 0 clamp(64px, 8vw, 112px);
  background: var(--bg);
}
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr); gap: 40px 64px; align-items: center; }
.page-head h1 { font-size: var(--t-h1-page); line-height: 1.02; max-width: none; }
.page-head .lead { margin-top: 26px; }
.page-head__extra { margin-top: 32px; display: grid; gap: 16px; justify-items: start; }
.page-head__art { position: relative; }
.page-head__art svg { width: 100%; height: auto; overflow: visible; }
/* the page's hand: beside the headline, about 640 x 480, standing at the right-hand end of the page's width (on a
   very wide screen it stays with the column and does not drift out to the edge); its lines run left, toward the
   headline. Below 1081 px it becomes a strip above the page's name (see the 1080 px block). */
.page-head__grid { position: relative; }
.page-head__gesture {
  --gw: clamp(480px, 44vw, 640px);
  position: absolute; z-index: -1; pointer-events: none;
  width: var(--gw); right: max(calc((100% - 100vw) / 2 - 40px), -140px); top: calc(140px - 0.39 * var(--gw));
}
.page-head__gesture svg { display: block; width: 100%; height: auto; overflow: visible; }
.page-head__gesture .gesture--band { display: none; }
/* the hand itself (templates/hand.mjs): the hero's hand in fine points, and a few hairlines from each fingertip.
   A point is a zero-length stroke with a round cap. --a is its strength and --l how far it faces the light. */
.hand-pts path { fill: none; stroke: var(--art-point); stroke-width: var(--w); stroke-linecap: round; opacity: calc(var(--a) * (var(--art-dot-0) + var(--art-dot-1) * var(--l))); }
.hand-art .hf1 { --f: var(--art-f1); } .hand-art .hf2 { --f: var(--art-f2); } .hand-art .hf3 { --f: var(--art-f3); } .hand-art .hf4 { --f: var(--art-f4); } .hand-art .hf5 { --f: var(--art-f5); }
.hand-pts .ht1 { stroke: color-mix(in srgb, var(--art-point), var(--f) calc(var(--art-tint) / 3)); }
.hand-pts .ht2 { stroke: color-mix(in srgb, var(--art-point), var(--f) calc(var(--art-tint) * 2 / 3)); }
.hand-pts .ht3 { stroke: color-mix(in srgb, var(--art-point), var(--f) var(--art-tint)); }
.hand-lines { fill: none; stroke-width: 0.7; stroke-linecap: round; stroke-linejoin: round; opacity: var(--art-line); }
/* a hairline's light, by distance from its fingertip: faint where the lines still share one line, then full, then gone */
.hand-art stop { stop-color: var(--f); }
.hl-a { stop-opacity: 0.3; } .hl-b { stop-opacity: 1; } .hl-c { stop-opacity: 0; }
/* on this page: a plain row of words */
.jump { display: flex; flex-wrap: wrap; gap: 0 28px; list-style: none; }
.jump a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; text-decoration-thickness: 1px; font-size: 1rem; color: var(--fg-2); transition: color .2s ease, text-decoration-color .25s ease; }
.jump a:hover { color: var(--fg); text-decoration-color: currentColor; }

/* ---------- sections ---------- */
.section { position: relative; padding-block: var(--section); }
/* sections are parted by space alone. One hairline is kept, above the footer, as wide as the text column. */
.site-foot::before { content: ""; position: absolute; top: 0; left: 50%; width: min(var(--max), 100% - 2 * var(--gutter)); height: 1px; transform: translateX(-50%); background: var(--rule); }
.section--tight { padding-block: clamp(72px, 8vw, 120px); }
.head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; align-items: last baseline; margin-bottom: clamp(52px, 6vw, 88px); }
.head--stack { grid-template-columns: minmax(0, 1fr); }
.head--stack { align-items: start; }
.sub { margin-top: clamp(64px, 7vw, 104px); }
.sub__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 20px; }
.sub__head .muted { max-width: 34em; text-wrap: balance; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.split--wide-right { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.split > .split__text > h3 { margin-bottom: 20px; }

/* ledger: rows of term and text, parted by space */
.ledger { display: grid; gap: 22px; }
.ledger > div { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 4px 24px; }
.ledger dt { font-weight: 600; color: var(--fg); }
.ledger dd { color: var(--fg-2); }

/* plain lists: a small round bullet hung in the margin, and space between the lines */
.dash { list-style: none; display: grid; gap: 16px; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.45; }
.dash li { position: relative; padding-left: 1.3em; }
.dash li::before { content: ""; position: absolute; left: 0.15em; top: 0.62em; width: 0.28em; height: 0.28em; border-radius: 50%; background: var(--fg-3); }

/* ---------- why now ---------- */
.compare { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare th { text-align: left; vertical-align: bottom; padding: 0 24px 18px 0; font-weight: 500; }
.compare th .label { display: block; margin-top: 14px; }
.compare th svg { width: 100%; max-width: 340px; height: 56px; overflow: visible; }
.compare td { padding: 20px 24px 20px 0; border-top: 1px solid var(--rule); vertical-align: top; font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.4; }
.compare tr:last-child td { border-bottom: 1px solid var(--rule); }
.compare td:first-child { color: var(--fg-3); }
.compare td:last-child { color: var(--fg); }
.compare th + th, .compare td + td { padding-left: 28px; }
.cmp-short { stroke: var(--fg-3); stroke-width: 1.1; stroke-linecap: round; }
.cmp-long { fill: none; stroke: rgb(var(--fg-rgb) / 0.62); stroke-width: 1.1; stroke-linecap: round; }
.cmp-pt { fill: var(--fg); }

/* ---------- why handspan ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(36px, 5vw, 72px); }
.why__item { display: grid; gap: 14px; grid-template-rows: auto auto 1fr auto; }
.why__item p { color: var(--fg-2); max-width: 30em; }
.why__item .textlink { margin-top: 8px; justify-self: start; align-self: end; }
.why__fig { height: 116px; margin-bottom: 8px; }
.why__fig svg { width: 100%; height: 100%; overflow: visible; filter: var(--strand-glow); }
.st { fill: none; stroke: rgb(var(--fg-rgb) / 0.62); stroke-width: 1.1; stroke-linecap: round; }
.st-pt { fill: var(--fg); }

/* ---------- vignettes: shared ---------- */
.vignette { margin: 0; }
.vignette__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
/* a tile: one flat fill and a wide corner. No border, no shadow, no gradient. */
.panel {
  position: relative; border-radius: var(--radius);
  background: var(--bg-2);
  padding: clamp(20px, 2.8vw, 40px);
}
.panel svg { width: 100%; height: auto; }
.panel__foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; font-size: 0.9rem; color: var(--fg-2); }
.caption { margin-top: 14px; color: var(--fg-3); font-size: 0.9rem; max-width: 60em; }
.caption-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; }
.checks-row { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; color: var(--fg); }
.checks-row li, .tick-item { display: inline-flex; align-items: center; gap: 9px; }
.tick, .panel .tick, .flow__panel .tick { width: 14px; height: 14px; flex: none; }
.tick path { fill: none; stroke: var(--fg); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* timeline */
.timeline text { font-family: var(--f-text); font-weight: 400; }
.tl-narrow, .tl-legend { display: none; }
/* label sizes in drawing units: the wide drawing shows from 1100 px up (about 10 px and more there), the narrow one below */
.tl-grid { stroke: rgb(var(--rule-rgb) / 0.07); stroke-width: 1; }
.tl-lab { font-size: 13.5px; fill: var(--fg-3); }
.tl-ruler { stroke: rgb(var(--fg-rgb) / 0.3); stroke-width: 1; }
.tl-ruler-minor { stroke: rgb(var(--fg-rgb) / 0.16); stroke-width: 1; }
.tl-time { font-size: 12.5px; fill: var(--fg-3); font-variant-numeric: tabular-nums; }
.tl-step { fill: none; stroke: rgb(var(--fg-rgb) / 0.42); stroke-width: 2; stroke-linecap: round; }
.tl-step.is-kept { stroke: var(--accent); }
.tl-stepnum { font-size: 11px; fill: var(--fg-3); }
.tl-steptext { font-family: var(--f-text) !important; font-weight: 400 !important; font-size: 15px; fill: var(--fg); }
.tl-band { fill: rgb(var(--fg-rgb) / 0.035); stroke: rgb(var(--fg-rgb) / 0.16); stroke-width: 1; }
.tl-cells path { fill: var(--fg); }
.tl-hands { stroke: var(--fg); stroke-width: 1.5; fill: none; opacity: 0.9; }
.tl-area { fill: rgb(var(--c2-rgb) / 0.12); }
.tl-base { stroke: rgb(var(--fg-rgb) / 0.16); stroke-width: 1; }
.tl-line { fill: none; stroke: var(--c2); stroke-width: 1.4; stroke-linejoin: round; }
.tl-voice { stroke: rgb(var(--c5-rgb) / 0.9); stroke-width: 1.2; stroke-linecap: round; }
.tl-quote { font-family: var(--f-voice) !important; font-style: italic; font-weight: 400 !important; font-size: 16px; fill: var(--fg); paint-order: stroke; stroke: var(--panel-solid); stroke-width: 6px; stroke-linejoin: round; }
.tl-kept { fill: var(--accent-tint); }
.tl-kept-edge { stroke: var(--accent-line); stroke-width: 1; }
.tl-kept-label { font-size: 13.5px; font-weight: 600 !important; fill: var(--accent); }
.tl-kept-detail { font-family: var(--f-text) !important; font-weight: 400 !important; font-size: 14px; fill: var(--fg-2); }
.tl-play { stroke: var(--fg); stroke-width: 1; }
.tl-head { fill: var(--fg); }
.tl-headtext { font-size: 12px; font-weight: 600 !important; fill: var(--bg); font-variant-numeric: tabular-nums; }
.tl-dot { fill: var(--bg-2); stroke: var(--fg); stroke-width: 1.5; }
.tl-narrow .tl-lab, .tl-narrow .tl-time, .tl-narrow .tl-kept-label, .tl-narrow .tl-headtext { font-size: 11.5px; }
.tl-narrow .tl-stepnum { font-size: 12.5px; }
.tl-legend { list-style: none; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); gap: 10px; }
.tl-legend li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 0.94rem; color: var(--fg-2); }
.tl-legend .n { font-family: var(--f-text); font-size: 0.875rem; font-weight: 600; color: var(--fg-3); padding-top: 1px; }
.tl-legend .is-kept { color: var(--fg); }
.tl-legend .is-kept .n { color: var(--accent); }
.tl-legend .kept { display: block; margin-top: 4px; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.tl-legend .detail { display: block; margin-top: 2px; color: var(--fg-2); }
.tl-legend q { display: block; margin-top: 4px; font-family: var(--f-voice); font-style: italic; color: var(--fg); quotes: "\201C" "\201D"; }

/* rig table */
.rigs { width: 100%; border-collapse: collapse; }
.rigs th { text-align: left; font-weight: 500; padding: 0 24px 12px 0; }
.rigs td, .rigs tbody th { padding: 20px 24px 20px 0; border-top: 1px solid var(--rule); vertical-align: top; text-align: left; }
.rigs tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }
.rigs tbody th { width: 15%; font-family: var(--f-display); font-size: 1.35rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.012em; color: var(--fg); white-space: nowrap; }
.rigs .r-rec { width: 38%; color: var(--fg); }
.rigs .r-str { width: 24%; color: var(--fg-2); }
.rigs .r-use { color: var(--fg-2); padding-right: 0; }
.rigs__foot { margin-top: 16px; color: var(--fg-3); font-size: 0.9rem; }
/* the row under the pointer reads at full strength */
@media (hover: hover) {
  .rigs .r-str, .rigs .r-use { transition: color .25s ease; }
  .rigs tbody tr:hover .r-str, .rigs tbody tr:hover .r-use { color: var(--fg); }
}

/* rig figure (templates/rig.mjs). The wearer and the equipment are one picture, rendered ahead of time as a lit
   solid scene (tools/rig) and shown as the drawing's background: --rig-img is the Night or the Day picture
   (tokens.css), and the drawing itself says where the picture sits (--rg-size, --rg-at). The ring, the threads,
   the clock and the labels are drawn over it. */
.schematic--rig, .schematic--worker { background: var(--rig-img) var(--rg-at, 50% 0) / var(--rg-size, contain) no-repeat; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rg-hit { fill: none; pointer-events: all; }
.rg-trace { fill: none; stroke: var(--c2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rg-glint { fill: var(--rig-glint); }
.rg-led { fill: var(--c4); }
.rg-ring { fill: none; stroke: var(--c4); stroke-width: 1.5; stroke-linecap: round; }
.rg-ring--far { opacity: 0.45; }
.rg-bench { fill: none; stroke-width: 1; }
.rg-work rect, .rg-work path { fill: none; stroke: var(--fg-3); stroke-width: 1; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rg-thread { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.rg-thread--sky { stroke: var(--c4); }
.rg-thread--verd { stroke: var(--c3); }
.rg-thread--mari { stroke: var(--c2); }
.rg-end { stroke: var(--rig-ground); stroke-width: 1.5; }
.rg-end--sky { fill: var(--c4); }
.rg-end--verd { fill: var(--c3); }
.rg-end--mari { fill: var(--c2); }
.rg-face { fill: var(--rig-ground); stroke: var(--fg); stroke-width: 1.5; }
.rg-tick { fill: none; stroke: var(--fg-3); stroke-width: 1; stroke-linecap: round; }
.rg-hand { fill: none; stroke: var(--fg); stroke-width: 1.9; stroke-linecap: round; }
.rg-sec { fill: none; stroke: var(--fg-2); stroke-width: 1; stroke-linecap: round; transform: rotate(204deg); }
.rg-pin { fill: var(--fg); }
.rg-lead { fill: none; stroke: var(--rule-3); stroke-width: 1; }
.rg-dot { fill: var(--fg); stroke: var(--rig-ground); stroke-width: 1.2; }
.rg-t { font-family: var(--f-text); font-weight: 600; font-size: 15.5px; letter-spacing: -0.012em; fill: var(--fg); }
.rg-s { font-family: var(--f-text); font-weight: 400; font-size: 14px; fill: var(--fg-2); }
.rg-num { display: none; }
.rg-num--on { display: inline; }
.rg-num circle { fill: var(--fg); }
.rg-num text { font-family: var(--f-text); font-weight: 600; font-size: 14.5px; fill: var(--rig-ground); font-variant-numeric: tabular-nums; }
/* When the drawing comes into view the rig switches on, once: the camera's light comes up, the ring is drawn
   round it and the phone's trace is drawn; then a pulse leaves every device at the same moment and reaches the
   clock at the same moment. The first three only where the drawing waited at rest below the first screen
   (.will-run), so a drawing already on screen never loses a line it had. Without motion, or without script, the
   drawing is simply still. */
.rg-pulse { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 5 100; stroke-dashoffset: 6; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .will-run .rg-ring, .will-run .rg-trace { stroke-dasharray: 1.1 1.3; stroke-dashoffset: 1.2; }
  .will-run .rg-led { opacity: 0.2; }
  .will-run.is-seen .rg-led { animation: rg-led 1.1s ease-out 0.3s 1 both; }
  .will-run.is-seen .rg-ring, .will-run.is-seen .rg-trace { animation: rg-draw 0.35s var(--ease-io) 0.4s 1 both; }
  .will-run.is-seen .rg-ring--near { animation-delay: 0.7s; }
  .will-run.is-seen .rg-trace { animation-duration: 0.7s; animation-delay: 0.5s; }
  .is-seen .rg-pulse { animation: rg-pulse 1.5s cubic-bezier(.45, .05, .35, 1) 1s 1 both; }
  .is-seen .rg-sec { animation: rg-sweep 2.2s cubic-bezier(.3, 0, .2, 1) 2.4s 1 both; }
  .is-seen .rg-end { animation: rg-arrive 0.5s ease-out 2.45s 1 both; transform-box: fill-box; transform-origin: 50% 50%; }
  .schematic--rig [data-k] { transition: opacity .25s ease; }
}
@keyframes rg-led { 0% { opacity: 0.2; } 30% { opacity: 1; } 55% { opacity: 0.45; } 100% { opacity: 1; } }
@keyframes rg-draw { from { stroke-dashoffset: 1.2; } to { stroke-dashoffset: 0; } }
@keyframes rg-pulse { 0% { stroke-dashoffset: 6; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { stroke-dashoffset: -98; opacity: 0; } }
@keyframes rg-sweep { from { transform: rotate(204deg); } to { transform: rotate(564deg); } }
@keyframes rg-arrive { 0% { transform: scale(1); } 40% { transform: scale(1.7); } 100% { transform: scale(1); } }
/* point at a part or its label and the rest of the rig steps back */
@media (hover: hover) {
  .schematic--rig:has([data-k="cam"]:hover) [data-k]:not([data-k="cam"]),
  .schematic--rig:has([data-k="phone"]:hover) [data-k]:not([data-k="phone"]),
  .schematic--rig:has([data-k="wrist"]:hover) [data-k]:not([data-k="wrist"]),
  .schematic--rig:has([data-k="clock"]:hover) [data-k]:not([data-k="clock"]) { opacity: 0.32; }
}
.rg-legend { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.rg-legend li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 0.94rem; color: var(--fg-2); }
.rg-legend b { font-weight: 600; color: var(--fg); }
.rg-legend .n { width: 22px; height: 22px; border-radius: 50%; background: var(--fg); color: var(--bg-2); display: grid; place-items: center; font-family: var(--f-text); font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 761px) { .rg-legend { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } }

/* clip record */
.record__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.record__grid > div { display: contents; }
.record__grid dt, .record__grid dd { padding: 10px 0; border-top: 1px solid var(--rule); }
.record__grid dt { font-size: 0.875rem; color: var(--fg-3); padding-top: 10px; padding-right: 12px; }
.record__grid dd { font-size: 0.94rem; color: var(--fg); }
.record__grid .id { font-size: 0.94rem; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.record__grid .note { color: var(--fg-3); font-size: 0.86rem; }
.record__streams { display: grid; gap: 5px; margin-top: 8px; max-width: 220px; }
.record__streams span { display: block; height: 2px; border-radius: 2px; background: var(--c4); opacity: 0.85; }
.record__streams span:nth-child(2), .record__streams span:nth-child(3) { background: var(--c3); }  /* the stream colours of the timeline */
.record__streams span:nth-child(4) { background: var(--c2); }
.record__streams span:nth-child(5) { background: var(--c5); }
.record__chain { position: relative; }
.record__grid .is-chain dt, .record__grid .is-chain dd { border-top-color: transparent; padding-top: 4px; padding-bottom: 4px; }
.record__grid .is-chain dt { padding-left: 16px; }
.record__grid > div:first-child dt, .record__grid > div:first-child dd { border-top: 0; padding-top: 0; }
.record__grid .is-last { padding-bottom: 12px !important; }

/* pipeline */
/* the pipeline: one band of five lines through six stations, each step's words in an open column under its
   station. From 1181 px the band runs across; below that it runs down the left edge (two columns on tablets),
   and five CSS lines carry it on below each station drawing to the next one. */
.pipe { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; }
.pipe li { min-width: 0; }
.pipe__fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.pipe__v { display: none !important; }
.pipe__text { display: grid; gap: 10px; align-content: start; padding: 22px 22px 0 0; }
.pipe h3 { font-size: 1.35rem; }
.pipe p { color: var(--fg-2); font-size: 0.94rem; line-height: 1.5; }
.pipe .label { color: var(--fg-3); }
.pl { fill: none; stroke: rgb(var(--fg-rgb) / 0.62); stroke-width: 1; stroke-linecap: round; }
.pl-clock { stroke: rgb(var(--fg-rgb) / 0.4); stroke-width: 1; stroke-dasharray: 2 3; }
.pl-blur { fill: rgb(var(--fg-rgb) / 0.06); stroke: rgb(var(--fg-rgb) / 0.22); stroke-width: 1; }
.pl-gate { stroke: var(--fg); stroke-width: 1.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pl-eye { fill: var(--bg); stroke-width: 1.3; }
.pl-cut { stroke: rgb(var(--fg-rgb) / 0.5); stroke-width: 1; stroke-dasharray: 1 2.5; }
.pl-tag { fill: var(--fg); }
.pl-lab { fill: rgb(var(--fg-rgb) / 0.5); }
.pl-pt { fill: var(--fg); }

/* quality checks */
.qc { display: grid; gap: 0; }
.qc__hour { margin-bottom: 8px; }
.qc__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); }
.qc__row .bar { height: 2px; border-radius: 2px; background: rgb(var(--fg-rgb) / 0.3); }
.qc__row .st8 { font-size: 0.875rem; font-weight: 600; color: var(--fg); display: inline-flex; gap: 8px; align-items: center; }
.qc__result { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0 2px; border-top: 1px solid var(--rule-2); }
.qc__result strong { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; color: var(--fg); letter-spacing: -0.014em; }
.qc__result .tick { width: 18px; height: 18px; }
.qh-seg { fill: rgb(var(--fg-rgb) / 0.24); }
.qh-txt { font-family: var(--f-text); font-weight: 400; font-size: 11px; fill: var(--fg-3); font-variant-numeric: tabular-nums; }

/* datasets and buying */
/* three ways to work with us: a three-row ledger, like "What arrives with each clip" */
.ledger--buy > div { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); padding: 22px 0; align-items: baseline; }
.ledger--buy dt { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); line-height: 1.2; letter-spacing: -0.012em; }
.ledger--buy dd { max-width: 36em; }
.buy__cta { margin-top: 28px; }

/* how it works: four steps on one span */
.span4 { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; padding-top: 34px; }
.span4::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: var(--rule-3); }
.span4 li { position: relative; padding-right: 32px; display: grid; gap: 10px; align-content: start; }
.span4 li::after { content: ""; position: absolute; left: -4px; top: -30px; width: 9px; height: 9px; border-radius: 50%; background: var(--tone, var(--fg)); box-shadow: 0 0 0 4px var(--bg); }
.span4 p { color: var(--fg-2); }
.how__note { position: relative; margin-top: 40px; color: var(--fg); max-width: 100%; }
/* the pilot: one tile. The seven things agreed in writing are set as the clause they are: large, one to a line,
   with their own semicolons, and no bullets or rules. */
.pilot {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); grid-template-areas: "intro terms" "end terms";
  gap: 40px clamp(40px, 6vw, 104px); padding: clamp(28px, 4.6vw, 68px); border-radius: var(--radius); background: var(--bg-2);
}
.pilot__intro { grid-area: intro; }
.pilot__intro h3 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem); line-height: 1.08; letter-spacing: -0.022em; }
.pilot__intro p { margin-top: 18px; color: var(--fg-2); font-size: var(--t-lead); line-height: 1.4; max-width: 21em; }
.pilot__terms { grid-area: terms; list-style: none; align-self: center; }
.pilot__terms li { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 1.02rem + 0.85vw, 1.75rem); line-height: 1.22; letter-spacing: -0.016em; color: var(--fg); text-wrap: balance; }
.pilot__terms li + li { margin-top: 0.58em; }
.pilot__end { grid-area: end; align-self: end; display: grid; gap: 22px; justify-items: start; }
.pilot__end p { color: var(--fg-2); max-width: 24em; }
/* where we can record: seven names in an open grid */
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px clamp(24px, 3vw, 48px); list-style: none; padding-top: 8px; }
.sectors li { display: grid; gap: 6px; align-content: start; }
/* seven sectors and, in the eighth cell, what to do if yours is not among them */
.sectors__ask { color: var(--fg-2); font-size: 0.94rem; }
.sectors__ask .textlink { justify-self: start; margin-top: 4px; font-size: 1rem; }
.sectors h4 { font-family: var(--f-display); font-weight: 600; font-size: 1.3125rem; letter-spacing: -0.014em; line-height: 1.2; }
.sectors p { color: var(--fg-2); font-size: 0.94rem; }


/* ---------- the light section ---------- */
/* the contrasting band: its colour tokens are swapped in tokens.css (light in Night, dark in Day) */
.paper { background: var(--bg); color: var(--fg); }
.section.paper::before, .paper + .section::before { content: none; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(36px, 5vw, 72px); }
.three > div { display: grid; gap: 12px; align-content: start; }
.three p { color: var(--fg-2); }
.flow { margin: 0; }
.flow__panel { background: var(--bg-2); border-radius: var(--radius); padding: clamp(20px, 2.8vw, 40px); }
.flow__panel svg { width: 100%; height: auto; }
.flow--narrow { display: none; }
.flow__note { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--fg-2); }
.flow .caption { color: var(--fg-2); }
.pf-line { fill: none; stroke: var(--fg); stroke-width: 1.5; }
.pf-pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 2 18; stroke-linecap: round; }
/* the dashes drift once (4.5 s, under the 5 s limit) when the drawing comes into view; site.js adds .is-seen.
   -120 is six dash periods, so the last frame matches the still. */
.flow.is-seen .pf-pulse { animation: pf-drift 4.5s linear 1 forwards; }
@keyframes pf-drift { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -120; } }
.pf-arrow { fill: none; stroke: var(--fg); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pf-node { fill: var(--fg); }
.pf-node.is-worker { fill: var(--accent); }
.pf-ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.6; transform-box: fill-box; transform-origin: 50% 50%; }
.pf-hs { fill: var(--bg-2); stroke: var(--fg); stroke-width: 1.5; }
.pf-name { font-family: var(--f-display); font-weight: 600; font-size: 21px; fill: var(--fg); letter-spacing: -0.012em; }
.pf-sub { font-family: var(--f-text); font-size: 14px; fill: var(--fg-2); }
.fair__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px clamp(48px, 6vw, 104px); align-items: center; }
.fair__grid h2 { max-width: 12em; }
.fair__copy { display: grid; gap: 26px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(48px, 6vw, 104px); align-items: end; }
.about__head { grid-column: 1 / -1; margin-bottom: clamp(8px, 2vw, 24px); }
.about__text { display: grid; gap: 18px; color: var(--fg-2); font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.15rem); line-height: 1.6; }
.about__text p:first-child { color: var(--fg); }
.about__fig { max-width: 560px; }
.about__fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.ab-palm { fill: rgb(var(--fg-rgb) / 0.5); }

/* ---------- forms ---------- */
.forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.form-panel { border-radius: var(--radius); background: var(--bg-2); padding: clamp(24px, 3.4vw, 48px); }
.form-panel h3 { font-size: clamp(1.6rem, 1.35rem + 0.9vw, 2.1rem); font-weight: 600; letter-spacing: -0.02em; }
.form-panel > p { color: var(--fg-2); margin-top: 12px; }
.hs-form { margin-top: 30px; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { font-weight: 500; font-size: 0.98rem; padding: 0; }
.field legend { margin-bottom: 8px; }
.req { font-weight: 400; font-size: 0.875rem; color: var(--fg-3); margin-left: 6px; }
.help { font-size: 0.86rem; color: var(--fg-3); margin-top: -2px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-s);
  border: 1px solid var(--field-line); background: var(--bg-3); color: var(--fg); font-size: 1rem; line-height: 1.4;
  caret-color: var(--tone, var(--fg));   /* the caret takes its section's thread colour, as selected text does */
  transition: border-color .2s ease, background-color .2s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); color: var(--fg); }
.field ::placeholder { color: var(--fg-3); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--field-line-hover); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; border-radius: var(--radius-s); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 0.96rem; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--field-line); border-radius: 5px; background: var(--bg-3); display: grid; place-items: center; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.check:hover input { border-color: var(--field-line-hover); }
.check input::after { content: ""; width: 5px; height: 10px; border: solid var(--btn-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px) scale(0.6); opacity: 0; transition: opacity .12s ease, transform .2s var(--ease); }
.check input:checked { background: var(--btn-bg); border-color: var(--btn-bg); }
.check input:checked::after { opacity: 1; transform: rotate(45deg) translate(-1px, -1px); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--accent); }
.err { font-size: 0.88rem; font-weight: 500; color: var(--accent); }
.summary { border: 1px solid var(--accent); border-radius: var(--radius-s); padding: 14px 16px; background: rgb(var(--accent-rgb) / 0.08); color: var(--fg); }
.summary:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.summary p { font-weight: 600; }
.summary ul { margin: 8px 0 0 18px; }
.summary a { color: var(--accent); }
.note, .privacy-line, .alt-email { font-size: 0.88rem; color: var(--fg-3); }
.alt-email a, .note a { color: var(--fg); }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; border-radius: var(--radius-s); border: 1px solid var(--rule-2); background: var(--bg-3); font-size: 0.94rem; }
.noscript { padding: 12px 14px; border-radius: var(--radius-s); border: 1px dashed var(--rule-3); font-size: 0.94rem; }
.noscript a { color: var(--fg); }
.form-after { margin-top: 18px; }
.hs-form .btn { justify-self: start; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.copy-out { width: 100%; padding: 12px 14px; border-radius: var(--radius-s); border: 1px solid var(--field-line); background: var(--bg-3); color: var(--fg); font: 0.92rem/1.5 var(--f-text); resize: vertical; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px clamp(48px, 6vw, 104px); align-items: start; }
.faq-grid .head { margin-bottom: 0; position: sticky; top: calc(var(--head-h) + 32px); }
.qa { border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 20px; align-items: center; padding: 20px 0; cursor: pointer; font-size: clamp(1.06rem, 1rem + 0.25vw, 1.2rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--fg); }
.qa .pm { position: relative; width: 14px; height: 14px; justify-self: end; }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 6.25px; height: 1.5px; border-radius: 1px; background: var(--fg-2); transition: transform .4s var(--ease), background-color .2s; }
.qa .pm::after { transform: rotate(90deg); }
.qa details[open] .pm::after { transform: rotate(0deg); }
.qa details.is-closing .pm::after { transform: rotate(90deg); }
.qa summary { transition: color .2s ease; }
.qa summary:hover .pm::before, .qa summary:hover .pm::after { background: var(--fg); }
.qa .ans { padding: 0 40px 22px 0; color: var(--fg-2); max-width: 44em; }
.qa .ans .textlink { margin-top: 10px; color: var(--fg); }

/* ---------- footer ---------- */
.site-foot { position: relative; overflow: hidden; margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(64px, 7vw, 104px); background: var(--bg); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.foot__tag { font-family: var(--f-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 600; letter-spacing: -0.024em; line-height: 1.1; max-width: 12em; text-wrap: balance; }
.foot__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 32px 28px; }
.foot__groups .mail { white-space: nowrap; overflow-wrap: normal; }
.foot__groups h3 { font-family: var(--f-text); font-size: 0.875rem; font-weight: 600; letter-spacing: -0.005em; color: var(--fg); margin-bottom: 12px; }
.foot__groups ul { list-style: none; display: grid; gap: 8px; }
.foot__groups a { color: var(--fg-2); text-decoration: none; font-size: 0.95rem; transition: color .2s; overflow-wrap: anywhere; }
.foot__groups a:hover { color: var(--fg); }
.foot__groups .sub-l { display: block; margin-top: 6px; color: var(--fg-3); font-size: 0.88rem; }
.foot__art { position: relative; margin-top: clamp(40px, 6vw, 88px); }
.foot__art svg { width: 100%; height: auto; overflow: visible; }
.fa-st { fill: none; stroke-linecap: round; }
.fa-mark { fill: var(--fg); }
/* each thread once more, unseen at rest: when a pointer comes near, a pulse runs along it into the mark (site.js) */
.fa-pulse { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 2.4 100; stroke-dashoffset: 3; opacity: 0; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0 32px; border-top: 1px solid var(--rule); color: var(--fg-3); font-size: 0.88rem; }
.foot__bottom a { color: var(--fg-2); text-underline-offset: 0.25em; text-decoration-thickness: 1px; transition: color .2s ease; }
.foot__bottom a:hover { color: var(--fg); }
.foot__clock { font-variant-numeric: tabular-nums; }
.foot--short .foot__top { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.foot--short .foot__links { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; }
.foot--short .foot__links a { color: var(--fg-2); text-decoration: none; transition: color .2s ease; }
.foot--short .foot__links a:hover { color: var(--fg); }
.foot--short .foot__mail { margin-top: 14px; }
.foot--short .foot__mail a { color: var(--fg); }

/* ---------- inner pages ---------- */
.block { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px clamp(40px, 6vw, 104px); align-items: start; }
.block > .head { margin-bottom: 0; }
.block h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.2rem); }
.block .lead { margin-bottom: 22px; }
.steps-n { list-style: none; counter-reset: s; display: grid; gap: 34px; }
.steps-n li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.steps-n li::before { content: counter(s); font-family: var(--f-display); font-size: 1.45rem; line-height: 1.2; font-weight: 600; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.steps-n h3 { font-size: 1.45rem; margin-bottom: 6px; }
.steps-n p { color: var(--fg-2); }
.wins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wins > div { padding: 26px; border-radius: 18px; background: var(--bg-2); display: grid; gap: 10px; align-content: start; }
.wins p { color: var(--fg-2); }
.after-note { margin-top: 18px; color: var(--fg-3); font-size: 0.92rem; }
.page-end { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 88px); }
.page-end .links { margin-bottom: 18px; }
.page-end p { color: var(--fg-2); }
.page-end p a { color: var(--fg); }
.legal { padding-bottom: clamp(56px, 8vw, 120px); }
.legal .prose { max-width: 40em; color: var(--fg-2); font-size: 1.1rem; display: grid; gap: 14px; margin-top: 28px; }

/* workers: one idea per line, readable on a phone, and each section in the form its job needs */
.wk { font-size: 1.08rem; }
.wk main li, .wk main p { text-wrap: pretty; }
.wk .section { padding-block: clamp(56px, 7vw, 96px); }
.wk-h2 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.9rem); max-width: none; margin-bottom: clamp(22px, 3vw, 36px); }
.wk-list { list-style: none; display: grid; gap: 18px; }
.wk-list li { padding-left: 1.3em; position: relative; }
.wk-list li::before { content: ""; position: absolute; left: 0.15em; top: 0.62em; width: 0.28em; height: 0.28em; border-radius: 50%; background: var(--fg-3); }
/* your choice: the first line large, the rest plain under it */
.wk-say { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 1.05rem + 2.4vw, 3.1rem); line-height: 1.1; letter-spacing: -0.026em; text-wrap: balance; }
.wk-choice { margin-top: clamp(28px, 4vw, 52px); }
.wk-plain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(32px, 4vw, 56px); color: var(--fg-2); }
.wk-fig--choice { display: none; }
/* pay: the four points beside the drawing */
.wk-pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 40px clamp(40px, 6vw, 104px); align-items: start; }
.flow--compact .flow--narrow { display: block; }
/* what we record, and what we never do: one table, ticks on the left and crosses on the right */
.wk-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wk-two { gap: 0 clamp(40px, 6vw, 96px); }
.wk-marks { list-style: none; display: grid; gap: 18px; }
.wk-marks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 14px; }
.wk-marks svg { width: 16px; height: 16px; margin-top: 0.32em; }
.cross path { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; }
/* what you can always do: two columns of short lines */
.wk-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }
/* questions: the answers open */
.wk-qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px clamp(32px, 5vw, 80px); }
.wk-qa h3 { font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem); }
.wk-qa p { margin-top: 10px; color: var(--fg-2); max-width: 36em; }
/* questions or complaints: a panel, like the form panels */
.wk-panel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4px clamp(32px, 5vw, 80px); align-items: start; border-radius: var(--radius); background: var(--bg-2); padding: clamp(24px, 4.4vw, 64px); }
.wk-panel .wk-h2 { margin-bottom: 0; }
.wk-panel__body { display: grid; gap: 14px; justify-items: start; }
.wk-panel__body .textlink { margin-top: 6px; }
.wk-callouts { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.wk-callouts li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; color: var(--fg-2); font-size: 0.96rem; }
.wk-callouts .k { width: 22px; height: 22px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-family: var(--f-text); font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wk-fig { --rig-ground: var(--bg); }   /* this drawing sits on the page, not on a tile */
.wk-fig svg { width: 100%; height: auto; overflow: visible; }

/* 404 */
.nf-art svg { width: 100%; height: auto; }
.nf-band { fill: rgb(var(--band) / 0.07); stroke: rgb(var(--band) / 0.45); stroke-width: 1; }

/* ---------- theme toggle: a moon and a sun in one small track; the thumb sits under the look that is on.
   It is still a button that says "Day mode" to a screen reader, pressed when Day is on. ---------- */
.theme-btn {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0; flex: none;
  border-radius: 999px; border: 0; background: transparent; color: var(--fg-3); cursor: pointer;
}
.theme-btn__track {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center;
  width: 54px; height: 28px; padding: 0 2px; border-radius: 999px; background: var(--btn-quiet); transition: background-color .2s ease;
}
.theme-btn:hover .theme-btn__track { background: var(--btn-quiet-hover); }
.theme-btn__track::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 25px; height: 24px; border-radius: 999px;
  background: var(--theme-thumb); transition: transform .32s var(--ease-io);
}
.theme-btn svg { position: relative; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: color .2s ease; }
.theme-btn[aria-pressed="false"] .theme-btn__moon, .theme-btn[aria-pressed="true"] .theme-btn__sun { color: var(--fg); }
.theme-btn[aria-pressed="true"] .theme-btn__track::before { transform: translateX(25px); }
.menu__theme { padding-top: 22px; border-top: 1px solid var(--rule); }
.theme-btn--menu { min-height: 44px; }
.theme-btn--menu .theme-btn__track { width: 66px; height: 34px; }
.theme-btn--menu .theme-btn__track::before { width: 31px; height: 30px; }
.theme-btn--menu[aria-pressed="true"] .theme-btn__track::before { transform: translateX(31px); }
.theme-btn--menu svg { width: 16px; height: 16px; }

/* ---------- drawn strands (page heads, footer) ---------- */
.gesture, .schematic { width: 100%; height: auto; overflow: visible; }
.g-glow { opacity: var(--art-glow); }
.g-pt { fill: var(--fg); }
.foot-art-narrow { display: none; }
.fa-halo { fill: var(--art-halo); transform-box: fill-box; transform-origin: 50% 50%; }
.vignette__top--end { justify-content: flex-end; }
.three--leadin p { font-size: 1.125rem; line-height: 1.6; }
.three--leadin strong { font-weight: 600; color: var(--fg); } /* run-in: the copy reads on from the bold words */
.jump-btns { display: none; }

/* ---------- the five thread colours ---------- */
/* a section's tone: its name above the headline, its list dashes and its step marks. Sections take the five
   colours in turn down every page (sky, rose, marigold, verdigris, lilac); a .tone-N class can fix one. */
main > section:nth-of-type(5n + 1) { --tone: var(--c4); --tone-rgb: var(--c4-rgb); }
main > section:nth-of-type(5n + 2) { --tone: var(--c1); --tone-rgb: var(--c1-rgb); }
main > section:nth-of-type(5n + 3) { --tone: var(--c2); --tone-rgb: var(--c2-rgb); }
main > section:nth-of-type(5n + 4) { --tone: var(--c3); --tone-rgb: var(--c3-rgb); }
main > section:nth-of-type(5n + 5) { --tone: var(--c5); --tone-rgb: var(--c5-rgb); }
main > section.tone-1, .tone-1 { --tone: var(--c1); --tone-rgb: var(--c1-rgb); }
main > section.tone-2, .tone-2 { --tone: var(--c2); --tone-rgb: var(--c2-rgb); }
main > section.tone-3, .tone-3 { --tone: var(--c3); --tone-rgb: var(--c3-rgb); }
main > section.tone-4, .tone-4 { --tone: var(--c4); --tone-rgb: var(--c4-rgb); }
main > section.tone-5, .tone-5 { --tone: var(--c5); --tone-rgb: var(--c5-rgb); }
/* each strand of a small drawing in its finger's colour, thumb (s1) to little finger (s5) */
.s1 { stroke: rgb(var(--c1-rgb) / var(--strand-a)); }
.s2 { stroke: rgb(var(--c2-rgb) / var(--strand-a)); }
.s3 { stroke: rgb(var(--c3-rgb) / var(--strand-a)); }
.s4 { stroke: rgb(var(--c4-rgb) / var(--strand-a)); }
.s5 { stroke: rgb(var(--c5-rgb) / var(--strand-a)); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  /* the pipeline runs down the left edge: two columns of three stations */
  .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: clamp(32px, 5vw, 64px); }
  .pipe li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; }
  .pipe__fig { position: relative; }
  .pipe__h { display: none !important; }
  .pipe__v { display: block !important; }
  .pipe__text { padding: 4px 0 36px; }
  /* below each station drawing (151 px tall at 56 px wide), the five lines carry on to the next station */
  .pipe li:not(:last-child) .pipe__fig::after {
    content: ""; position: absolute; left: 0; right: 0; top: 150px; bottom: 0;
    background:
      linear-gradient(rgb(var(--c1-rgb) / var(--strand-a)), rgb(var(--c1-rgb) / var(--strand-a))) 12.4px 0 / 1px 100% no-repeat,
      linear-gradient(rgb(var(--c2-rgb) / var(--strand-a)), rgb(var(--c2-rgb) / var(--strand-a))) 20px 0 / 1px 100% no-repeat,
      linear-gradient(rgb(var(--c3-rgb) / var(--strand-a)), rgb(var(--c3-rgb) / var(--strand-a))) 27.5px 0 / 1px 100% no-repeat,
      linear-gradient(rgb(var(--c4-rgb) / var(--strand-a)), rgb(var(--c4-rgb) / var(--strand-a))) 35.1px 0 / 1px 100% no-repeat,
      linear-gradient(rgb(var(--c5-rgb) / var(--strand-a)), rgb(var(--c5-rgb) / var(--strand-a))) 42.6px 0 / 1px 100% no-repeat;
  }
  /* three columns: the first takes the whole row, and the other six fill two rows (rows start at 1, 2, 5 ...) */
  .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rigs .r-str { width: 20%; }
}
/* the header: below 1261 px the five links, two buttons and the theme switch no longer fit on one line,
   so the menu button takes over (the page layout below changes at 1080 px) */
@media (max-width: 1260px) {
  .nav, .nav__actions .theme-btn { display: none; }
  .js .menu-btn { display: inline-flex; }
  .no-js .menu-link { display: inline-flex; }
  .site-head__bar { gap: 10px; }
}
@media (max-width: 1080px) {
  :root { --head-h: 68px; }
  .why { grid-template-columns: 1fr; gap: 56px; }
  .why__item { grid-template-columns: 220px minmax(0, 1fr); column-gap: 40px; }
  .why__item > * { grid-column: 2; }
  .why__item .why__fig { grid-column: 1; grid-row: 1 / span 5; }
  .head, .split, .split--wide-right, .fair__grid, .about, .faq-grid, .block, .foot__top, .page-head__grid { grid-template-columns: minmax(0, 1fr); }
  .pilot { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "terms" "end"; gap: 32px; }
  .head .lead { justify-self: start; }
  .hero__row { gap: 28px 48px; }
  .jump-btns { display: flex; gap: 10px; }
  .faq-grid .head { position: static; }
  .forms { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-inline: auto; }
  .vignette--rig { width: 100%; max-width: 640px; justify-self: center; margin-inline: auto; }
  .three { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .wins { grid-template-columns: minmax(0, 1fr); }
  .page-head__art { max-width: 560px; }
  /* the strip: as tall as the box and kept to the right, so a narrow screen shows its right-hand end */
  .page-head__gesture { position: relative; z-index: 0; order: -1; top: auto; right: auto; width: auto; height: clamp(168px, 22vw, 200px); margin: calc(-1 * clamp(24px, 5vw, 56px)) calc((100% - 100vw) / 2) 4px 0; display: flex; justify-content: flex-end; overflow: hidden; }
  .page-head__gesture .gesture--wide { display: none; }
  .page-head__gesture .gesture--band { display: block; flex: none; width: auto; max-width: none; height: 100%; aspect-ratio: 4 / 1; }
  .flow { max-width: 720px; }
  .foot__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* workers: the camera drawing moves from the page head to after "Your choice" */
  .wk .page-head__art { display: none; }
  .wk-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 5vw, 64px); align-items: start; }
  .wk-fig--choice { display: block; }
  .wk-plain { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wk-pay { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
}
/* the pipeline on tablets: the band breaks between its two columns, after the third station */
@media (min-width: 761px) and (max-width: 1180px) {
  .pipe li:nth-child(3) .pipe__fig::after { content: none; }
}
/* the timeline: the narrow drawing and its step list below 1100 px; side by side on tablets */
@media (max-width: 1099px) {
  .tl-wide { display: none; }
  .tl-narrow { display: block; }
  .tl-legend { display: grid; }
}
@media (min-width: 761px) and (max-width: 1099px) {
  .panel--tl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 48px); align-items: center; }
  .panel--tl .tl-narrow { max-width: 360px; }
  .panel--tl .tl-legend { margin-top: 0; padding-top: 0; border-top: 0; }
  .panel--tl .panel__foot { grid-column: 1 / -1; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; padding-top: calc(var(--head-h) + 190px); }
}
/* the hero between a phone and a small laptop: beside the buttons its paragraph was a narrow column of nine
   lines, so here it takes the full width and the buttons follow it, in the phone's order */
@media (max-width: 940px) {
  .hero__row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__copy { display: contents; }
  .hero__row .lead { order: 1; }
  .hero__actions { order: 2; justify-items: start; width: 100%; }
  .hero__workers { order: 3; }
}
@media (max-width: 760px) {
  :root { --head-h: 64px; }
  body { font-size: 1rem; }
  .brand svg { height: 26px; }
  .nav__actions .btn--primary { --h: 40px; padding: 0 14px; }
  .hero { min-height: 100svh; padding-top: calc(var(--head-h) + 196px); padding-bottom: 26px; }
  .no-js .hero__art { background-image: url("../img/span-phone.jpg"); }
  .hero h1 { margin-bottom: 16px; }
  .hero .lead { font-size: 1rem; line-height: 1.5; }
  .hero__row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero__copy { display: contents; }
  .hero__row .lead { order: 1; }
  .hero__actions { order: 2; justify-items: start; width: 100%; gap: 14px; }
  .hero__actions .btns { gap: 14px 24px; }
  .hero__workers { order: 3; }
  .foot-art-wide { display: none; }
  .foot-art-narrow { display: block; }
  .why__item { grid-template-columns: minmax(0, 1fr); }
  .why__item .why__fig { grid-row: auto; height: 96px; }
  .why__item > * { grid-column: 1; }
  .panel, .flow__panel, .form-panel, .pilot, .wk-panel { border-radius: 20px; }
  .panel { padding: 18px 16px; }
  .qh-txt { display: none; }
  .rg-t, .rg-s { display: none; }
  .rg-num { display: inline; }
  .rg-crop { overflow: hidden; }
  .rg-crop .schematic { width: 149.4%; max-width: none; }
  .vignette__top { flex-wrap: wrap; }
  .compare th + th, .compare td + td { padding-left: 14px; }
  .compare th, .compare td { padding-right: 10px; }
  .compare td { font-size: 0.98rem; }
  .rigs thead { display: none; }
  .rigs, .rigs tbody, .rigs tr { display: block; }
  .rigs tr { padding: 18px 0; border-top: 1px solid var(--rule); }
  .rigs tbody tr:last-child { border-bottom: 1px solid var(--rule); }
  .rigs td, .rigs tbody th, .rigs tbody tr:last-child > * { display: block; border: 0; padding: 0; width: auto; }
  .rigs tbody th { margin-bottom: 6px; }
  .rigs .r-rec, .rigs .r-str { width: auto; }
  .rigs .r-str { margin: 8px 0 6px; font-size: 0.92rem; }
  .rigs .r-str::before { content: "Streams: "; color: var(--fg-3); }
  .rigs .r-use { font-size: 0.92rem; color: var(--fg-3); }
  .ledger > div { grid-template-columns: minmax(0, 1fr); }
  .pipe { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .ledger--buy > div { grid-template-columns: minmax(0, 1fr); }
  .span4 { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 30px; gap: 26px; }
  .span4::before { left: 8px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .span4 li { padding-right: 0; }
  .span4 li::after { left: -26px; top: 8px; }
  .sectors { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .flow--wide { display: none; }
  .flow--narrow { display: block; }
  .record__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .qc__row { grid-template-columns: minmax(0, 1fr) auto; }
  .qc__row .bar { display: none; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .foot__groups { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__groups > div:last-child { grid-column: 1 / -1; }
  .foot--short .foot__top { grid-template-columns: minmax(0, 1fr); align-items: start; }

  .qa .ans { padding-right: 0; }
  .wk { font-size: 1.05rem; }
  .wk-choice, .wk-pay, .wk-two, .wk-list--two, .wk-qa, .wk-panel { grid-template-columns: minmax(0, 1fr); }
  .wk-fig--choice { max-width: 420px; }
  .wk-pay .flow { max-width: 360px; }
  .wk-two > div + div { margin-top: 48px; }
  .wk-panel { gap: 18px; padding: 24px 20px; }
  .wk-panel .textlink { display: inline; } /* if the link wraps, the arrow follows its last word */
  .wk-panel .textlink svg { display: inline-block; vertical-align: -0.12em; }
}
@media (max-width: 420px) {
  .nav__actions { display: none; }
}

/* ---------- motion ----------
   Things arrive once, over a short distance, and settle. Nothing loops, bounces, pins or moves sideways.
   0. With a wheel or trackpad the page follows a little behind the hand and settles, and goes a little less far
      than the browser alone would take it, so there is time to see each block arrive (site.js, "the scroll").
   1. On load, the headline and what is under it rise into place while the art draws itself (CSS alone).
   2. Down the page, each block rises as it is reached. site.js arms only what starts below the first screen
      (.rv) and marks each one as it arrives (.is-in), a beat apart when several arrive together (--d). So nothing
      is hidden without the script, nothing already on screen blinks, and a block's natural style is its final one.
   3. Each drawing draws itself once: strands run in from the left, the pipeline's band passes station by station,
      the timeline's playhead runs to the kept mistake, the checks pass one by one (.will-run, .is-seen).
   4. Between pages the old page fades into the new one; the menu, the questions and the links ease.
   Visitors who ask for less motion get none of this: site.js arms nothing, and the block at the end of this
   section switches every transition and animation off. */

/* 1. on load */
@keyframes arrive { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
@keyframes appear { from { opacity: 0; } }
.hero__row .lead, .page-head h1 { --n: 1; }
.hero__workers, .page-head .lead, .legal .prose > p:nth-child(1) { --n: 2; }
.hero__actions .btns, .page-head__extra > :nth-child(1), .legal .prose > p:nth-child(2) { --n: 3; }
.hero__note, .page-head__extra > :nth-child(2) { --n: 4; }
.page-head__extra > :nth-child(3) { --n: 5; }
.page-head__extra > :nth-child(n + 4) { --n: 6; }
@media (max-width: 940px) {
  /* the order on a phone and a tablet: lead, buttons, note, then the line for workers */
  .hero__actions .btns { --n: 2; }
  .hero__note { --n: 3; }
  .hero__workers { --n: 4; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .hero h1, .hero__row .lead, .hero__workers, .hero__actions .btns, .hero__note,
  .page-head .eyebrow, .page-head h1, .page-head .lead, .page-head__extra > *, .legal .prose > p {
    animation: arrive .9s var(--ease-rise) calc(var(--n, 0) * 75ms + 80ms) backwards;
  }
  /* the sentence to land on lights up once the paragraph has risen */
  .hero__row .lead .hi { animation: light-up 1.2s ease 1.05s backwards; }
  .page-head__art, .page-head__gesture { animation: appear 1.2s ease .3s backwards; }
  /* the hand at the head of a page opens from where its arm comes in: first the hand, then the lines run out */
  .page-head__gesture .hand-art { animation: hand-open 1.9s cubic-bezier(.22, .5, .36, 1) .35s backwards; }
  /* the 404 page's empty tracks open from the playhead */
  .nf-band { transform-box: fill-box; transform-origin: 0 50%; animation: nf-open .9s var(--ease-io) calc(var(--q, 0) * 70ms + .45s) backwards; }
  .nf-band:nth-of-type(2) { --q: 1; } .nf-band:nth-of-type(3) { --q: 2; } .nf-band:nth-of-type(4) { --q: 3; } .nf-band:nth-of-type(5) { --q: 4; }
}
@keyframes nf-open { from { transform: scaleX(0); } }
@keyframes light-up { from { color: var(--fg-2); } }
@keyframes hand-open { from { clip-path: circle(0% at var(--ox, 85%) var(--oy, 90%)); } to { clip-path: circle(112% at var(--ox, 85%) var(--oy, 90%)); } }

/* the hero's art lets go as the page moves on: it thins out and lifts a little as the hero leaves the screen
   (tied to the scroll position itself, where the browser can; elsewhere it simply scrolls away) */
@keyframes hero-away { to { opacity: 0; transform: translate3d(0, -3%, 0); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__art { animation: hero-away linear both; animation-timeline: view(); animation-range: exit 2% exit 48%; }
  }
}

/* 2 and 3 are for the screen only: on paper nothing waits to arrive, whatever state the page was printed in
   (site.js also settles everything before printing) */
@media screen {
/* 2. arriving down the page */
.rv:not(.is-in) { opacity: 0; transform: translate3d(0, var(--rise), 0); transition: none; }
.rv.is-in { transition: opacity .8s var(--ease-rise) var(--d, 0ms), transform 1.05s var(--ease-rise) var(--d, 0ms); }
/* table rows and the like only fade: a row that moved would leave its rules behind */
.rv--fade:not(.is-in) { transform: none; }
.rv--fade.is-in { transition: opacity .8s ease var(--d, 0ms); }
/* a drawing's box stays put; what is inside it draws (below) */
.rv--draw:not(.is-in), .rv--pipe:not(.is-in) { opacity: 1; transform: none; }
/* the words to land on (.hi) arrive in the paragraph's own grey and light up a moment after it has landed */
.rv:not(.is-in) .hi { color: inherit; transition: none; }
.rv.is-in .hi { transition: color 1.1s ease calc(var(--d, 0ms) + .55s); }

/* 3. drawings */
/* strands run in from the left, thumb to little finger, and their points land last */
.s2 { --k: 1; } .s3 { --k: 2; } .s4 { --k: 3; } .s5 { --k: 4; }
.rv .st, .rv .cmp-long { stroke-dasharray: 1.1 1.3; }
.rv:not(.is-in) .st, .rv:not(.is-in) .cmp-long { stroke-dashoffset: 1.2; transition: none; }
.rv.is-in .st, .rv.is-in .cmp-long { transition: stroke-dashoffset 1.15s cubic-bezier(.35, 0, .15, 1) calc(var(--d, 0ms) + 60ms + var(--k, 0) * 60ms); }
.rv:not(.is-in) .st-pt, .rv:not(.is-in) .cmp-pt { opacity: 0; transition: none; }
.rv.is-in .st-pt, .rv.is-in .cmp-pt { transition: opacity .45s ease calc(var(--d, 0ms) + 1.1s); }
.rv:not(.is-in) .cmp--short { clip-path: inset(-4px 100% -4px 0); transition: none; }
.rv.is-in .cmp--short { clip-path: inset(-4px -4px -4px -4px); transition: clip-path 1.1s cubic-bezier(.35, 0, .15, 1) calc(var(--d, 0ms) + 60ms); }

/* the pipeline: the band passes through one station after another (site.js spaces them by the time one takes),
   and each step's words come up as the band reaches its station */
.rv--pipe:not(.is-in) .pipe__h { clip-path: inset(-12px 100% -12px 0); transition: none; }
.rv--pipe.is-in .pipe__h { clip-path: inset(-12px -1px -12px 0); transition: clip-path .27s linear var(--d, 0ms); }
.rv--pipe:not(.is-in) .pipe__v { clip-path: inset(0 -12px 100% -12px); transition: none; }
.rv--pipe.is-in .pipe__v { clip-path: inset(0 -12px -1px -12px); transition: clip-path .27s linear var(--d, 0ms); }
.pipe__fig::after { transform-origin: 50% 0; }
.rv--pipe:not(.is-in) .pipe__fig::after { transform: scaleY(0); transition: none; }
.rv--pipe.is-in .pipe__fig::after { transition: transform .3s linear calc(var(--d, 0ms) + .26s); }
.rv--pipe:not(.is-in) .pipe__text { opacity: 0; transform: translate3d(0, 14px, 0); transition: none; }
.rv--pipe.is-in .pipe__text { transition: opacity .6s var(--ease-rise) calc(var(--d, 0ms) + 120ms), transform .8s var(--ease-rise) calc(var(--d, 0ms) + 120ms); }

/* how it works: the span is drawn from its first step to its last, and each step lands as the line reaches it */
.span4::before { transform-origin: 0 50%; }
.span4 li:nth-child(2) { --q: 1; } .span4 li:nth-child(3) { --q: 2; } .span4 li:nth-child(4) { --q: 3; }
.span4.rv:not(.is-in)::before { transform: scaleX(0); transition: none; }
.span4.rv.is-in::before { transition: transform 1.25s var(--ease-even) var(--d, 0ms); }
.span4.rv:not(.is-in) li::after { transform: scale(0); transition: none; }
.span4.rv.is-in li::after { transition: transform .5s var(--ease-rise) calc(var(--d, 0ms) + var(--q, 0) * 290ms + 60ms); }
.span4.rv:not(.is-in) li > * { opacity: 0; transform: translate3d(0, 14px, 0); transition: none; }
.span4.rv.is-in li > * { transition: opacity .6s var(--ease-rise) calc(var(--d, 0ms) + var(--q, 0) * 290ms + 120ms), transform .8s var(--ease-rise) calc(var(--d, 0ms) + var(--q, 0) * 290ms + 120ms); }
@media (max-width: 760px) {
  .span4::before { transform-origin: 50% 0; }
  .span4.rv:not(.is-in)::before { transform: scaleY(0); }
}

/* about: the open hand grows from the palm point out to the five fingertips */
.about__fig.rv:not(.is-in) svg { clip-path: circle(0% at var(--ox, 50%) var(--oy, 94%)); transition: none; }
.about__fig.rv.is-in svg { clip-path: circle(var(--or, 100%) at var(--ox, 50%) var(--oy, 94%)); transition: clip-path 1.4s cubic-bezier(.4, .3, .3, 1) var(--d, 0ms); }

/* the clip record: its five streams run out along their lines */
.record__streams span { transform-origin: 0 50%; }
.record__streams span:nth-child(2) { --q: 1; } .record__streams span:nth-child(3) { --q: 2; } .record__streams span:nth-child(4) { --q: 3; } .record__streams span:nth-child(5) { --q: 4; }
.rv:not(.is-in) .record__streams span { transform: scaleX(0); transition: none; }
.rv.is-in .record__streams span { transition: transform .8s var(--ease-io) calc(var(--d, 0ms) + 420ms + var(--q, 0) * 70ms); }

/* the footer: the five threads run in from the left and turn down into the mark */
.foot__art.rv:not(.is-in) { clip-path: inset(-40px 100% -40px 0); transition: none; }
.foot__art.rv.is-in { clip-path: inset(-40px -40px -40px -40px); transition: clip-path 2s var(--ease-io) var(--d, 0ms); }
.foot__art.rv:not(.is-in) .fa-mark, .foot__art.rv:not(.is-in) .fa-halo { opacity: 0; transition: none; }
.foot__art.rv.is-in .fa-mark, .foot__art.rv.is-in .fa-halo { transition: opacity .8s ease calc(var(--d, 0ms) + 1.15s); }

/* ticks and crosses are drawn on, stroke by stroke, where their line arrives */
.rv:not(.is-in) > .tick path, .rv:not(.is-in) > .cross path { stroke-dasharray: 1.1 1.3; stroke-dashoffset: 1.2; transition: none; }
.rv.is-in > .tick path, .rv.is-in > .cross path { stroke-dasharray: 1.1 1.3; transition: stroke-dashoffset .5s var(--ease-io) calc(var(--d, 0ms) + 260ms); }

/* a figure that runs once when it is well on screen (site.js: .will-run while it waits below the first screen,
   then .is-seen). While it waits it is a drawing at rest, never an empty box. */
/* the timeline: the playhead starts at 00:00 and runs to the kept mistake (site.js moves it and sets .kept-on
   as it gets there and .is-done when it stops); then the three checks under it are ticked */
.will-run .tl-kept, .will-run .tl-kept-edge, .will-run .tl-kept-label, .will-run .tl-kept-detail, .will-run .tl-quote { opacity: 0; }
.will-run.kept-on .tl-kept, .will-run.kept-on .tl-kept-edge, .will-run.kept-on .tl-kept-label, .will-run.kept-on .tl-kept-detail, .will-run.kept-on .tl-quote { opacity: 1; transition: opacity .55s ease; }
.will-run.kept-on .tl-kept-detail { transition-delay: .12s; }
.will-run.kept-on .tl-quote { transition-delay: .3s; }
.checks-row li:nth-child(2) { --q: 1; } .checks-row li:nth-child(3) { --q: 2; }
.will-run .checks-row .tick path { stroke-dasharray: 1.1 1.3; stroke-dashoffset: 1.2; }
.will-run.is-done .checks-row .tick path { stroke-dashoffset: 0; transition: stroke-dashoffset .45s var(--ease-io) calc(var(--q, 0) * 150ms + 100ms); }

/* the quality checks: the hour is read block by block, each check passes in turn, and the hour is accepted */
@keyframes qc-read { 40% { fill: rgb(var(--fg-rgb) / 0.6); } }
@keyframes qc-bar { from { transform: scaleX(0); } }
@keyframes qc-pass { from { opacity: 0; transform: translate3d(-6px, 0, 0); } }
@keyframes draw-on { from { stroke-dashoffset: 1.2; } }
.qc__row .bar { transform-origin: 0 50%; }
.qc__row:nth-child(2) { --q: 1; } .qc__row:nth-child(3) { --q: 2; } .qc__row:nth-child(4) { --q: 3; }
.will-run:not(.is-seen) .qc__row .bar { transform: scaleX(0); }
.will-run:not(.is-seen) .qc__row .st8, .will-run:not(.is-seen) .qc__result > * { opacity: 0; }
.will-run .qc .tick path { stroke-dasharray: 1.1 1.3; }
.will-run.is-seen .qh-seg rect { animation: qc-read .65s ease calc(var(--d, 0ms) + .15s + var(--i, 0) * 40ms) backwards; }
.will-run.is-seen .qc__row .bar { animation: qc-bar .55s var(--ease-io) calc(var(--d, 0ms) + .6s + var(--q, 0) * 190ms) backwards; }
.will-run.is-seen .qc__row .st8 { animation: qc-pass .5s var(--ease-rise) calc(var(--d, 0ms) + .98s + var(--q, 0) * 190ms) backwards; }
.will-run.is-seen .qc__row .tick path { animation: draw-on .4s var(--ease-io) calc(var(--d, 0ms) + 1.06s + var(--q, 0) * 190ms) backwards; }
.will-run.is-seen .qc__result > * { animation: arrive .7s var(--ease-rise) calc(var(--d, 0ms) + 1.85s) backwards; }
.will-run.is-seen .qc__result .tick path { animation: draw-on .5s var(--ease-io) calc(var(--d, 0ms) + 2.1s) backwards; }
/* asked again by the pointer (site.js, "drawings that answer the pointer"): the hour is read once more */
.is-reading .qh-seg rect { animation: qc-read .65s ease calc(var(--i, 0) * 40ms) backwards; }
}

/* 4. between pages, and small things */
/* a jump to a section of the same page travels there: site.js carries the page itself (under "the scroll")
   and marks the root .is-gliding for as long as it takes. The Back button, find-in-page and a page opened at
   a section still land at once. */

/* the phone menu: the sheet fades in under the bar and its lines come up one after another; it leaves in one piece.
   The hidden attribute still decides what is open: only the picture is eased, and only where the browser can
   (@starting-style and display in a transition). Elsewhere it opens and closes at once, as before. */
.menu__list li:nth-child(2) { --i: 1; } .menu__list li:nth-child(3) { --i: 2; } .menu__list li:nth-child(4) { --i: 3; }
.menu__list li:nth-child(5) { --i: 4; } .menu__list li:nth-child(n + 6) { --i: 5; }
.menu__inner > .btns { --i: 6; } .menu__inner > p { --i: 7; } .menu__inner > .menu__theme { --i: 8; }
@media (prefers-reduced-motion: no-preference) {
  .menu { transition: opacity .22s ease, display .22s allow-discrete; }
  .menu[hidden] { opacity: 0; pointer-events: none; transition-duration: .18s; }
  .menu__list li, .menu__inner > .btns, .menu__inner > p, .menu__inner > .menu__theme {
    transition: opacity .55s var(--ease-rise) calc(var(--i, 0) * 40ms + 90ms), transform .7s var(--ease-rise) calc(var(--i, 0) * 40ms + 90ms);
  }
  @starting-style {
    .menu:not([hidden]) { opacity: 0; }
    .menu:not([hidden]) .menu__list li, .menu:not([hidden]) .menu__inner > .btns, .menu:not([hidden]) .menu__inner > p, .menu:not([hidden]) .menu__inner > .menu__theme { opacity: 0; transform: translate3d(0, 12px, 0); }
  }
  /* an error message, the list of fields to check and the sent note settle in rather than snap on */
  .err, .summary, .form-status, .copy-out { transition: opacity .3s ease, transform .4s var(--ease-rise); }
  @starting-style {
    .err:not([hidden]), .summary:not([hidden]), .form-status:not(:empty), .copy-out:not([hidden]) { opacity: 0; transform: translate3d(0, -4px, 0); }
  }
}

/* a theme switch is instant: site.js sets this class for one frame (design finding 17) */
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }
/* all but the switch's own thumb, which slides across to the look that was chosen */
@media (prefers-reduced-motion: no-preference) {
  .theme-switching .theme-btn .theme-btn__track::before { transition: transform .32s var(--ease-io) !important; }
}
/* Night to Day and back: the whole page cross-fades as one picture (site.js marks it with data-vt="theme") */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: ease; }
/* from one page to the next: the old page fades quickly into the new one, whose headline then rises (1, above).
   Both pages share their ground and their header, so only what differs is seen to change. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  :root:not([data-vt])::view-transition-old(root) { animation-duration: .18s; animation-timing-function: ease-out; }
  :root:not([data-vt])::view-transition-new(root) { animation-duration: .32s; animation-timing-function: ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-head, .hero__art, .page-head__gesture, .menu, .foot__art { display: none !important; }
  body { background: #fff; color: #000; }
}

/* form trap for spam bots: kept out of sight and out of the keyboard order */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
