/*
 * samaritan-systems.com — Samaritan Liquid Glass, Dark (owner decision 31-10-2026: dark, Aqua Jade / Midnight Abyss; accent Ice Blue since 05-11-2026, was Baby Pink).
 *
 * Tokens are copied from the application's Dark Glass (src/app/app/liquid-glass.css, `.lg`), so the
 * public site and the app cannot read as two brands. Dark only (owner 31-10-2026; was Light only, 22-10-2026).
 * Type stays Jost (owner choice 22-10-2026): the site speaks as the brand, the app as the tool; glass, colour
 * and controls carry the family resemblance. System settings still win: reduced transparency turns glass solid,
 * increased contrast strengthens edges and ink, reduced motion stops the mark animation.
 *
 * Layout is the owner's approved homepage of 04-11-2026, rebuilt as flow and grid. Page spacing comes
 * from one scale — 8, 16, 24, 40, 64, 96 — and a clamp between two of those has both ends on it. See
 * the scale below for the two kinds of value that are deliberately outside it.
 */
@font-face {
  font-family: "Jost";
  src: url("/site/fonts/jost.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* --- Colour: DESIGN.md tokens (owner 25-11-2026: the app palette everywhere, light and dark follow the
   * system setting). Every colour below is a role token from design-system/tokens.css, which build.mjs copies
   * to /site/tokens.css and loads before this file; the old navy, periwinkle and cyan are gone. Shadows
   * are DESIGN.md elevation tokens; the glass effects switch with the mode in the dark block after this rule. --- */
  --ground: var(--color-background); --ground-2: var(--color-background);
  --glow-a: transparent; --glow-b: color-mix(in srgb, var(--color-accent) 8%, transparent); --glow-c: transparent; --streak: transparent;
  --glass: var(--color-surface); --glass-strong: var(--color-surface); --content: var(--color-surface);
  --raised: var(--color-surface-solid); --solid: var(--color-surface-solid);
  --edge: var(--color-border); --edge-strong: color-mix(in srgb, var(--color-text) 22%, transparent);
  --frame-edge: var(--color-border); --content-edge: var(--color-border); --hair: var(--color-border);
  --rim: linear-gradient(140deg, color-mix(in srgb, var(--color-text) 16%, transparent), color-mix(in srgb, var(--color-accent) 22%, transparent) 50%, color-mix(in srgb, var(--color-text) 8%, transparent));
  --ink: var(--color-heading); --ink-2: var(--color-text); --ink-3: var(--color-text-muted); --ink-4: var(--color-text-muted);
  --ink-phrase: var(--color-heading);
  --accent: var(--color-focus); --accent-ink: var(--color-accent-foreground); --accent-tint: color-mix(in srgb, var(--color-accent) 13%, transparent);
  /* The call to action is the one primary per screen: dark in light mode, light in dark mode. */
  --primary: var(--color-primary); --primary-ink: var(--color-primary-foreground);
  /* The site's state colour (step dots, pills, section numbers, links) is the accent. */
  --sam: var(--color-link); --sam-tint: color-mix(in srgb, var(--color-accent) 15%, transparent); --sam-edge: color-mix(in srgb, var(--color-accent) 34%, transparent);
  --iris: linear-gradient(115deg, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent);
  --cyan: var(--color-accent); --cyan-tint: color-mix(in srgb, var(--color-accent) 13%, transparent);
  /* A form answer the intake refused is an error: red (owner 25-11-2026), never grey or the accent. */
  --warn: var(--color-danger); --warn-tint: color-mix(in srgb, var(--color-danger) 10%, transparent);
  /* Glass effects, light mode. Highlights are the solid surface (white) and every shadow is a DESIGN.md
   * elevation token (shadow-sm/md/lg); nothing here is a literal colour or shadow recipe. */
  --highlight: color-mix(in srgb, var(--color-surface-solid) 70%, transparent);
  --sheen: linear-gradient(180deg, color-mix(in srgb, var(--color-surface-solid) 35%, transparent), transparent 34%);
  --sheen-soft: linear-gradient(180deg, color-mix(in srgb, var(--color-surface-solid) 20%, transparent), transparent 30%);
  --ctl: var(--color-surface-solid);
  --ctl-shadow: 0 0 0 .5px var(--color-border), var(--shadow-sm);
  --ctl-press: 0 0 0 .5px var(--color-border);
  --track: var(--color-surface-sunken); --track-shadow: inset 0 0 0 .5px var(--color-border);
  --primary-glow: var(--shadow-lg);
  --elev-1: 0 0 0 .5px var(--color-border), var(--shadow-md);
  --elev-2: 0 0 0 .5px var(--color-border), var(--shadow-lg);
  --elev-3: 0 0 0 .5px var(--color-border), var(--shadow-lg);
  --blur: blur(28px) saturate(150%);
  --edge-w: 1px;
  --dur: .18s;

  /* --- the one spacing scale (owner 04-11-2026) ---
   * Every distance between things on a page comes from here, and a clamp between two of them has
   * both ends on it. Two kinds of value deliberately do not: the padding inside a control, which is
   * carried over from the app's Liquid Glass bar, buttons, nav pills, skip link and step medallions
   * and belongs to the control rather than to the page (20px, 14px, 26px, 22px, 18px, 11px, 9px,
   * 7px, 3px, 2px, and the 10px a narrow screen restates some of them at); two derived distances -
   * the bar's 10/14px float inset above the glass, and the 70px that clears a 46px step medallion by
   * one step of the scale; and a handful of optical values that are measured rather than chosen - a
   * 1px hairline, the -8px and 5.5px that centre a rule and a hairline on what they belong to, and
   * the 12px derived in the inline-link rule below. */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 40px; --s-5: 64px; --s-6: 96px;
  --s-3-5: clamp(24px, 3vw, 40px);
  --s-4-5: clamp(40px, 5vw, 64px);
  --s-5-6: clamp(64px, 7vw, 96px);

  /* --- site layout scale --- */
  --wrap: 1320px;
  --wrap-hero: 1432px;
  /* The hero's two side columns are the same fixed width, which is what centres the globe on the page
   * rather than between two blocks of unequal length. The width is derived, not guessed: "Ready for
   * your customer." measures 358.4px at 34px in Jost 500 with -0.02em tracking (measured in Chrome on
   * this build), i.e. 10.54px of width per px of type. The phrase's own size is 20.32px + 0.95vw up to
   * 34px, so the width it needs is 214px + 10.0vw; this carries about 4% more than that at every width
   * down to where the hero stacks, so a one-line phrase never runs out of column. */
  --hero-side: clamp(260px, calc(222px + 10.5vw), 384px);
  /* The drawn sphere, which is also the width of the action row beneath it. */
  --sphere: 520px;
  /* The hero's three columns, declared once: the grid in `.hero-row` and the action row under it
   * must use the SAME middle track, or the buttons stop lining up with the sphere's edges. */
  --hero-cols: var(--hero-side) minmax(0, 1fr) var(--hero-side);
  /*
   * The *minimum* width of one call to action - what it draws when its label is narrower. Owner
   * 06-11-2026 answering Q1 (the buttons could not line up with the globe on a mid-sized laptop):
   * "narrower". Each button draws `max(--action-btn, its own label)`, so this token is the lever only
   * while it is the larger of the two, and the label is the lever below that. First whole-pixel
   * window width at which the row's edges meet the sphere's, bisected on the built site in a real
   * browser with the served stylesheet asserted, English then Dutch:
   *
   *   200px  1336  1361   (before)
   *   182px  1285  1336
   *   181px  1282  1335
   *   180px  1280  1333   (this value)
   *   177px  1276  1329
   *   176px  1274  1328
   *   170px  1266  1328
   *   160px  1252  1328
   *   128px  1210  1328
   *     0px  1210  1328
   *
   * 180px is as low as this token goes while the two English buttons stay within half a pixel of each
   * other, and 1280px - a very common window - is the width the question was about. It is NOT the
   * lowest crossover the token reaches: the table above shows 128px and below reaching 1210px. It is
   * NOT the last value at which the two English buttons draw the same width: 181px is, at exactly
   * 181px each, and it costs 2px of crossover in each language. 180px draws 180px against the
   * secondary's own 180.5px natural, so the real trade was half a pixel of asymmetry for two pixels
   * of band, and the band won. Below 180px that asymmetry opens a pixel at a time - 160px draws 160px
   * against 180.5px - and buys much less than the table suggests at a glance: 160px is 28px of
   * English band, not 70px, and the full 70px arrives only once the token is under the primary's own
   * 130.6px, where the asymmetry has reached 49.9px.
   *
   * Dutch stops improving at **176px**, not at 160px, and the label that explains it is the Dutch
   * PRIMARY: "Plan een gesprek" is 176.6px natural, so below that the token sets neither Dutch button
   * and the floor is fixed at 466.95px. (The 218.4px secondary is a constant in every row and so
   * cannot explain a knee. What it does explain is the size of the whole Dutch gain: it is pinned by
   * its own text rather than by the token, so only one of the two Dutch halves can move, and Dutch
   * gains 28px of band against English's 56px.)
   *
   * Nothing is ever clipped by this number, whatever its value: `min-width` pads and does not
   * truncate. Two consequences of 180px worth knowing because they are not visible in the band the
   * question was about. Above 1336px, and 1361px in Dutch - where the row was already correct before
   * this change - the English buttons are narrower by 20px and 19.5px, and the hairline between them
   * absorbs the whole 39.5px the English floor lost: exactly 39.5px at every width from 1336px up,
   * measured 24.6px -> 64.1px at 1336px where the edges first met and 72px -> 111.5px from 1403px
   * up, where the row reaches its 520px cap and both figures stop moving. DUTCH DIFFERS, by the same
   * mechanism as the knee above: its secondary was already label-bound at 200px and does not narrow
   * at all, so the Dutch floor lost 20px rather than 39.5px and its hairline gains only 2.2px at
   * 1336px, then exactly 20px from 1362px up (24.0 -> 26.2, 24.7 -> 44.7, and 53.6 -> 73.6 at the
   * cap). A real proportion change on the commonest desktop widths, not a defect. And the
   * symmetry is now font- and text-size-dependent in a way 200px was not, because 180px sits half a
   * pixel UNDER the English secondary rather than 19px over it: at a 125% browser base font the
   * English pair measures 180px against 214.1px here, where 200px measured 200px against the same
   * 214.1px - so an asymmetry that already existed at enlarged text widens from 14.1px to 34.1px. */
  --action-btn: 180px;
  --gutter: clamp(16px, 4vw, 56px);
  --r-panel: 28px; --r-card: 20px;
  /* Owner 05-11-2026: controls are rounded, not pills — "neutral, safe" rather than playful. */
  --r-bar: 20px; --r-control: 12px;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.45rem, 1.2rem + .9vw, 1.9rem);
  /* 28px small, 44px at 1440 — the design's section heading. */
  --step-3: clamp(1.75rem, 1.38rem + 1.52vw, 2.75rem);
  /* 24px small, 34px at 1440 — the two hero phrases, each on one line at every width. */
  --step-hero: clamp(1.25rem, 1.27rem + .95vw, 2.125rem);
  color-scheme: light dark;
}

/* Glass effects, dark mode. Highlights are the text colour (near white) at low strength; shadows are the
 * DESIGN.md dark-glass elevation tokens (shadow-xs for controls, shadow-2xl and shadow-xl for panels). */
@media (prefers-color-scheme: dark) {
  :root {
    --highlight: color-mix(in srgb, var(--color-text) 8%, transparent);
    --sheen: linear-gradient(180deg, color-mix(in srgb, var(--color-text) 7.5%, transparent), transparent 34%);
    --sheen-soft: linear-gradient(180deg, color-mix(in srgb, var(--color-text) 4%, transparent), transparent 30%);
    --ctl: linear-gradient(180deg, color-mix(in srgb, var(--color-text) 14%, transparent), color-mix(in srgb, var(--color-text) 5%, transparent));
    --ctl-shadow: var(--shadow-xs);
    --primary-glow: var(--shadow-2xl);
    --elev-1: var(--shadow-2xl);
    --elev-2: var(--shadow-2xl);
    --elev-3: var(--shadow-xl);
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root { --glass: var(--solid); --glass-strong: var(--solid); --content: var(--solid); --raised: var(--solid); --blur: none; --rim: linear-gradient(var(--edge-strong), var(--edge-strong)); }
}
@media (prefers-contrast: more) {
  :root { --edge-w: 2px; --ink-2: var(--ink); --ink-3: var(--ink); --ink-4: var(--ink-3); --ink-phrase: var(--ink); --content: var(--solid); --raised: var(--solid); --edge: var(--edge-strong); --hair: var(--edge-strong); }
}
@media (prefers-reduced-motion: reduce) { :root { --dur: 0s; } }

*, *::before, *::after { box-sizing: border-box; }
/* The bar is sticky, so an in-page jump (the skip link, the three menu items that are home page
 * sections) must stop below it or the first line of the target lands behind the glass.
 *
 * The bar's height is content-driven, not fixed: a wider label makes the row wrap, and the Dutch
 * "Plan een gesprek" is wider than "Book a call". A literal per breakpoint therefore cannot be right
 * in both languages. --bar-h is written from the bar's measured height by bar-room.js; the literals
 * below are only the no-JavaScript fallback, each set to the taller of the two languages at that
 * width, measured in a browser on this build. */
:root { --bar-h: 76px; --bar-room: calc(var(--bar-h) + 14px); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ground); scroll-padding-top: var(--bar-room); }
body {
  margin: 0; position: relative; isolation: isolate; overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
  font-size: var(--step-0); line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
/* The app's atmosphere: three soft glows and a light streak over the Midnight ground. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 760px at 6% -14%, var(--glow-a), transparent 62%),
    radial-gradient(1000px 700px at 108% 8%, var(--glow-b), transparent 62%),
    radial-gradient(900px 640px at 64% 120%, var(--glow-c), transparent 62%),
    linear-gradient(116deg, var(--streak) 0, var(--streak) 18%, transparent 46%),
    linear-gradient(160deg, var(--ground), var(--ground-2));
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 500; letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-3); max-width: 20ch; letter-spacing: -.015em; }
h3 { font-size: var(--step-1); letter-spacing: -.01em; line-height: 1.3; font-weight: 500; }
p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 52ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 760px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 50; display: inline-flex; align-items: center; min-height: 44px; padding: var(--s-1) 14px; border-radius: var(--r-control); background: var(--raised); box-shadow: var(--elev-2); color: var(--ink); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- material tiers (as in the app) ---------- */
.bar-inner, .glass-float {
  position: relative;
  background: var(--sheen), linear-gradient(var(--glass-strong), var(--glass-strong));
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: var(--edge-w) solid transparent;
  box-shadow: inset 0 1px 0 var(--highlight), var(--elev-3);
}
.bar-inner::after, .glass-float::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--rim); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}

/* ---------- header: a floating glass bar, like the app's top bar ----------
 * Concentric (owner 05-11-2026: rounded, not pill): the bar is 20px round with 8px padding, so the
 * button inside it is 12px (20 - 8) and the nav track 12px with its links at 9px (12 - 3). */
.bar { position: sticky; top: 0; z-index: 10; padding: 14px var(--gutter) 0; }
.bar-inner {
  max-width: calc(var(--wrap) - 2 * var(--gutter) + 40px); margin: 0 auto;
  min-height: 60px; padding: var(--s-1) var(--s-1) var(--s-1) 20px; border-radius: var(--r-bar);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
  box-shadow: inset 0 1px 0 var(--highlight), var(--elev-2);
}
.brand { flex: none; display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand .mark-svg { width: 28px; height: auto; }
.brand .wordmark-svg { width: 112px; height: auto; }
.nav { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-control); background: var(--track); box-shadow: var(--track-shadow); }
.nav a { height: 34px; padding: 0 14px; border-radius: 9px; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink-3); font-size: .9rem; font-weight: 500; white-space: nowrap; transition: background var(--dur), color var(--dur); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ctl); color: var(--ink); box-shadow: var(--ctl-shadow); }
/* The language switch is navigation, not the call to action. Ice Blue is reserved for "Book a
 * call", which sits in the same bar a few pixels away; two blues there and neither one is the
 * thing to press. A hairline marks it as a switch rather than a fifth page. */
.nav .lang { color: var(--ink-3); margin-left: 7px; }
.nav .lang::before { content: ""; align-self: stretch; width: 1px; margin: 9px 12px 9px -8px; background: var(--edge-strong); }

/* ---------- buttons and links: the app's tactile controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  min-height: 50px; padding: 0 26px; border-radius: var(--r-control); border: 0;
  background: var(--primary); color: var(--primary-ink);
  box-shadow: var(--primary-glow);
  font-weight: 600; font-size: 1rem; text-decoration: none; letter-spacing: -.005em; white-space: nowrap;
  transition: box-shadow var(--dur), transform .08s, filter var(--dur);
}
.btn:hover { filter: brightness(1.06); box-shadow: var(--primary-glow), 0 0 0 1px var(--edge-strong); }
.btn:active { transform: translateY(.5px); box-shadow: var(--ctl-press); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: .92rem; }
.link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: var(--r-control);
  background: none; border: 1px solid var(--edge-strong); color: var(--ink); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: box-shadow var(--dur), border-color var(--dur), transform .08s;
}
.link:hover { border-color: var(--edge-strong); box-shadow: inset 0 1px 0 var(--highlight), var(--elev-2); }
.link:active { box-shadow: var(--ctl-press); transform: translateY(.5px); }
/* An inline link inside running text stays text, not a button - but it is still a tap target, and
 * the contact page's email address is the conversion path. Vertical padding on an inline box grows
 * the pressable area without entering the line box, so the hit area reaches 44px while the sentence
 * it sits in does not move a pixel. `min-height` cannot do it here: it has no effect on an inline
 * box, which is why cancelling it was the right half of this rule and dropping the target was not.
 * It covers one link in a sentence; two on consecutive lines would overlap, so a page whose point is
 * to send the reader elsewhere states its actions as actions (see the 404 in build.mjs).
 *
 * 12px, not 11px, and the difference is the whole claim. Jost's inline content area is 24.5px, so
 * 11px above and below reaches 46.5px - but the sheet sets font-display: swap, and the system
 * fallback's content area is 20px, which 11px takes to 42px. The fallback is what is painted during
 * the font's load window on every cold visit, and permanently if the font fails to arrive. 12px
 * gives 44px in the fallback and 48.5px in Jost; the paragraph's height and position are identical
 * at every value, measured. */
p .link, .mail-line .link { display: inline; white-space: normal; min-height: 0; padding: 12px 0; background: none; border: 0; box-shadow: none; color: var(--sam); font-weight: 500; text-decoration: underline; text-decoration-color: var(--sam-edge); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
p .link:hover, .mail-line .link:hover { text-decoration-color: var(--sam); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-4); }

/* ---------- hero (OWNER design 04-11-2026) ----------
 * Left phrase, globe, right phrase, all on one row; the supporting paragraph and the two calls to
 * action centred underneath. The row is one grid and the two sides have no wrapper of their own, so
 * "Your goods." and "Ready for your customer." are literally in the same grid row and cannot drift
 * apart however their sentences below them wrap.
 *
 * Rows: 1 tagline, 2 flexible, 3 mark, 4 phrase, 5 note, 6 flexible. The globe spans rows 2 to 6.
 * Spanning flexible tracks is what keeps it out of the three text rows' sizing (CSS Grid 12.5: an
 * item that spans a flexible track contributes nothing to the intrinsic tracks it also spans), so
 * the mark, phrase and note keep their own heights and the two flexible rows centre them on the
 * sphere. Give the globe plain `auto` rows instead and its height is shared out between them, which
 * pushes the mark away from the phrase it belongs to.
 *
 * The side columns are one fixed derived width (`--hero-side`, derived above from the longest phrase),
 * which is both why the globe ends up centred on the page rather than between two blocks of unequal
 * length, and why the phrase can be `nowrap` without ever overflowing its column.
 */
.hero { padding: var(--s-4) 0 0; }
/* Set by optical.js so the empty space either side of the hero text is equal; 0 without script. */
.hero > .wrap { translate: var(--hero-optical, 0px) 0; }
.hero-row {
  max-width: var(--wrap-hero);
  display: grid;
  grid-template-columns: var(--hero-cols);
  grid-template-rows: auto 1fr auto auto auto 1fr;
  column-gap: var(--s-2);
  row-gap: var(--s-2);
  align-items: start;
}
.hero-tag { grid-column: 2; grid-row: 1; justify-self: center; margin-bottom: var(--s-3); max-width: none; font-size: 1.125rem; font-weight: 500; letter-spacing: .14em; color: var(--sam); text-align: center; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
.hero-stage { grid-column: 2; grid-row: 2 / 7; position: relative; container-type: inline-size; width: 100%; max-width: var(--sphere); justify-self: center; aspect-ratio: 1; }
.hero-mark-in { grid-column: 1; grid-row: 3; justify-self: end; }
.hero-phrase-in { grid-column: 1; grid-row: 4; justify-self: end; text-align: right; }
.hero-note-in { grid-column: 1; grid-row: 5; justify-self: end; text-align: right; }
.hero-mark-out { grid-column: 3; grid-row: 3; justify-self: start; }
.hero-phrase-out { grid-column: 3; grid-row: 4; justify-self: start; text-align: left; }
.hero-note-out { grid-column: 3; grid-row: 5; justify-self: start; text-align: left; }
.hero-mark { color: var(--ink-phrase); }
.hero-icon { width: 88px; height: 64px; }
/* One line while the hero is three columns. Not because this width sizes the side tracks - it does
 * not: `--hero-side` is a viewport clamp with no `auto`, `min-content`, `max-content` or
 * `fit-content` term in it, so no item contribution can reach those tracks, and replacing every
 * phrase with one character leaves the template unmoved. The real relationship is design-time and
 * runs the other way: the longest phrase is what bounded how far the clamp's constants could be cut
 * when the hero was laid out, which the comment above the base `.hero-foot` rule - the long one,
 * seventy lines down, not the three-line one inside the stacked block - sets out with both
 * directions of the probe: replacing every phrase with one character, and forcing the track wide.
 * Below 1100px it is allowed to wrap (see the stacked-hero block): the type scales down with the
 * viewport, but at a large text setting on a narrow phone it scales only so far, and a phrase that
 * cannot break takes the whole page sideways with it. */
.hero-phrase { max-width: none; white-space: nowrap; font-size: var(--step-hero); font-weight: 500; line-height: 1.05; letter-spacing: -.02em; color: var(--ink-phrase); }
.hero-note { max-width: 300px; font-size: var(--step-0); line-height: 1.6; color: var(--ink-2); }

.globe-svg { width: 100%; height: 100%; overflow: visible; }
.globe-svg .routes path { stroke-dasharray: 5 7; stroke: var(--color-primary); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--color-primary) 45%, transparent)); }
.globe-svg .hub { fill: var(--color-primary); stroke: var(--color-background); stroke-width: 1.5; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--color-primary) 60%, transparent)); }
.globe-svg .mesh, .globe-svg .ring { stroke: var(--color-accent); }
.globe-svg .nodes { fill: var(--color-accent); }
.globe-svg .core-stop { stop-color: var(--color-accent); }
.hero-knot { position: absolute; width: 22cqw; transform: translate(-50%, -50%); color: var(--accent); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--color-accent) 55%, transparent)); }
.hero-knot .mark-svg { width: 100%; height: auto; }
/* A label pill is centred on its own node: the node is the lamp inside the pill. */
/* The label scales with the sphere it rides, so its size has a floor, and that floor is the
 * smallest text on this site: 12px. 2.9cqw crosses 12px at a 414px sphere, which is a 1254px
 * window, so from 1101 to 1253 - the band that holds a 1200px window - the four labels sit on the
 * floor and nothing else does. At .72rem they sat at 11.52px there.
 *
 * What stops the floor going higher is the knot at the centre of the globe, not the phrases beside
 * it. Measured at 1101px, the tightest width the three-column hero reaches, over every visible
 * element of the hero except the globe the labels ride - its mesh and nodes are drawn under them by
 * design, and at this width a node sits inside the Compliance label's box:
 *     floor    Sort & Send -> knot    Compliance -> "Your goods."
 *     11.52      4.3px                 10.5px
 *     12         3.0px                  9.3px
 *     13         0.4px                  6.7px
 *     14        -2.3px (overlap)        4.1px
 * So 12px spends about a third of a clearance that was already small, 13px all but closes it, and
 * 14px draws the label on the knot. At 12px nothing wraps, nothing scrolls sideways, and nothing
 * overlaps that is not meant to. */
.pill {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
  display: inline-flex; align-items: center;
  padding: var(--s-1) clamp(8px, 3.1cqw, 16px); border-radius: 10px;
  font-size: clamp(.75rem, 2.9cqw, .97rem); font-weight: 500; color: var(--ink);
  background: var(--sheen), linear-gradient(var(--glass-strong), var(--glass-strong));
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 var(--highlight), 0 0 0 .5px var(--edge-strong), var(--elev-2);
}
.pill::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: clamp(8px, 1.9cqw, 16px); border-radius: 50%; background: var(--sam); flex: none; box-shadow: 0 0 8px var(--sam); }
/* The core service carries Ice Blue, as in the design: one pill is the subject, three are context. */
.pill-lead { background: var(--primary); color: var(--primary-ink); font-weight: 600; box-shadow: var(--primary-glow), 0 0 0 .5px var(--edge); }
.pill-lead::before { background: var(--primary-ink); box-shadow: none; }
/* Each label opens its page (OWNER 05-11-2026). The drawn pill keeps its designed size; the hit area
 * grows to 44px around it, centred, so a finger reaches it without the pill changing shape. */
a.pill { text-decoration: none; transition: filter var(--dur), box-shadow var(--dur); }
a.pill::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, 44px); transform: translateY(-50%); }
a.pill:hover { filter: brightness(1.12); box-shadow: inset 0 1px 0 var(--highlight), 0 0 0 1px var(--sam-edge), var(--elev-2); }
a.pill.pill-lead:hover { box-shadow: var(--primary-glow), 0 0 0 1px var(--edge-strong); }
a.pill:focus-visible { border-radius: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .globe-svg .routes path { animation: flow 2.4s linear infinite; }
  .globe-svg .hub { animation: pulse 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .globe-svg .hub:nth-child(2n) { animation-delay: -1.4s; }
  @keyframes flow { to { stroke-dashoffset: -24; } }
  @keyframes pulse { 50% { transform: scale(1.35); opacity: .75; } }
  .hero-knot .mark-svg {
    -webkit-mask-image: conic-gradient(from 200deg, #000 var(--sweep), transparent 0);
    mask-image: conic-gradient(from 200deg, #000 var(--sweep), transparent 0);
    animation: draw 2.2s cubic-bezier(.65, 0, .35, 1) .15s both;
  }
  @keyframes draw { from { --sweep: 0deg; } to { --sweep: 360deg; } }
}
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 360deg; }

/* The paragraph and the two actions sit under the globe. The action row has to be exactly as wide
 * as the *drawn* sphere for "Book a call" to line up under its left edge and "See what changes"
 * under its right, with the hairline taking whatever is left between them - and the sphere is
 * `min(middle track, --sphere)`, not `--sphere`. So this row is placed in the hero grid's own middle
 * track (hence the same `--hero-cols` and `--wrap-hero` as `.hero-row`) and sized from it, rather
 * than from this element's own width: a sibling with its own `max-width` stayed 520px wide while the
 * sphere had been squeezed to 306px by the side tracks, and the buttons hung 107px past it on each
 * side. `min-width: max-content` is the floor: narrower than its own two buttons, the gaps and the
 * hairline, the row cannot be the sphere's width without its contents spilling out of it - and that
 * floor has to come from the labels rather than a number, because the Dutch "Bekijk wat er verandert"
 * is 218.4px, wider than the 180px minimum, and a constant sized for English let the Dutch row
 * overflow to one side and hang 101px past the sphere on the right against 83px on the left.
 *
 * The floor is `max(--action-btn, primary label) + max(--action-btn, secondary label) + 3 x --s-3`,
 * which is NOT `2 x --action-btn` at the current 180px: the English secondary's own 180.5px natural
 * exceeds it, so the row's floor is 432.5px in English and 470.4px in Dutch. The edges meet the
 * sphere's from 1280px up in English and 1333px up in Dutch. Owner 06-11-2026 answered Q1
 * "narrower", which moved those two from 1336px and 1361px. He settled the token's VALUE, not the
 * band: below 1280/1333 the row still overhangs, and the next paragraph is where that is recorded.
 * Every value measured is tabulated in the comment above `--action-btn` itself.
 *
 * Between 1101px and there the three-column hero still has no width at which both can hold, and the
 * reason is `--hero-side`, not the phrases: the side tracks are a viewport clamp (337.6px at
 * 1101px), so the middle track gets whatever is left, 305.8px. The phrases do not size those tracks
 * - replacing every one of them with a single character leaves the template at
 * `337.594px 305.75px 337.594px` and the sphere at 305.75px - but they do bound how far the clamp
 * could be cut, because the longest is 324.4px against that 337.6px track and it may not wrap.
 * Giving the row even its reduced 432.5px floor at 1101px would need sides of 274px - measured, not
 * derived: forcing `--hero-side: 274px` at 1101px gives a 432.94px track and zero overhang, 275px
 * gives 430.94px and 0.78px of it - and at 274px the 324.4px phrase then overflows its own track
 * by 50px on one line rather than wrapping, which is the thing that may not happen. So the row
 * stays its own minimum there, centred, and at 1101px it overhangs by 63.4px per side in English
 * and 82.3px in Dutch, down from 83.1px and 92.3px. Closing the rest still means one of three
 * things, and all three are the owner's to choose: stacking earlier, lowering the floor further at
 * the cost of the two buttons' symmetry, or accepting the overhang.
 *
 * At the shipped 180px the token is the lever for each PRIMARY label and the label itself is the
 * lever for each secondary, because 180px is under the English secondary's 180.5px and well under
 * the Dutch secondary's 218.4px. So shortening a secondary's text is worth real floor where the
 * token is not - up to 38.4px in Dutch, about 54px of window. Shortening the phrases either side
 * of the globe is a different thing and would still move nothing: the side tracks are the viewport
 * clamp above, and the phrase and the track are independent functions of the width - forcing the
 * track to 500px leaves the longest phrase at 324.359px, unmoved. */
.hero-foot { display: grid; grid-template-columns: var(--hero-cols); column-gap: var(--s-2); max-width: var(--wrap-hero); justify-items: center; row-gap: var(--s-4); margin-top: var(--s-4); }
.hero-lead { grid-column: 1 / -1; max-width: 600px; text-align: center; font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); }
.hero-actions { grid-column: 2; display: flex; align-items: center; gap: var(--s-3); width: min(100%, var(--sphere)); min-width: max-content; }
.hero-actions .btn, .hero-actions .link { flex: none; min-width: var(--action-btn); }
.hero-rule { flex: 1 1 auto; min-width: var(--s-3); height: 1px; background: var(--edge-strong); }

/* ---------- the numbered bands: 01 core service, 02 how we work, 03 the portal ----------
 * Editorial, not cards: a hairline, an ice-blue number on the left, the content on the right. The items
 * under each heading are columns separated by their own hairline, with no box around them. */
.band { padding-top: var(--s-5-6); }
.band-inner {
  display: grid; grid-template-columns: minmax(0, 336px) minmax(0, 1fr);
  column-gap: var(--s-5); row-gap: var(--s-4);
  padding-top: var(--s-4); border-top: 1px solid var(--hair);
}
.band-no { grid-column: 1; max-width: none; font-size: .875rem; letter-spacing: .06em; color: var(--sam); }
.band-body { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--s-3); }
.band-body h2 { max-width: 18ch; }
.band-lead { font-size: 1.1875rem; line-height: 1.6; max-width: 56ch; }
.band-items { display: grid; column-gap: var(--s-4); row-gap: var(--s-4); margin-top: var(--s-2); }
.band-items.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.band-items.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* The three disciplines run the full width of the page, under both columns. */
.band-items.wide { grid-column: 1 / -1; margin-top: var(--s-3); }
.band-item { display: grid; row-gap: var(--s-1); align-content: start; padding-top: var(--s-3); border-top: 1px solid var(--edge-strong); }
.band-item h3 { color: var(--ink); }
.band-items.three .band-item h3 { font-size: 1.375rem; }
.band-kicker { font-size: .875rem; color: var(--ink-3); }
.band-item p { max-width: 42ch; }

/* ---------- closing call ---------- */
.close { padding: var(--s-5-6) 0 var(--s-5); }
.close-inner { display: grid; justify-items: center; text-align: center; row-gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--hair); }
.close-inner h2 { max-width: 20ch; }
.close-inner p { max-width: 52ch; font-size: 1.125rem; }
.close-inner .btn { margin-top: var(--s-2); }
.close-inner .actions { justify-content: center; margin-top: var(--s-2); }
.close-inner .actions .btn { margin-top: 0; }
/* Call-back form: one glass card under the call to action. 24px card padding around 14px fields. */
.lead-form { width: 100%; max-width: 640px; margin-top: var(--s-4); padding: var(--s-4); border-radius: 28px; text-align: left; display: grid; row-gap: var(--s-2);
  background: var(--sheen), linear-gradient(var(--glass), var(--glass)); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 var(--highlight), 0 0 0 .5px var(--edge-strong), var(--elev-2); }
.lead-form h3 { font-size: 1.375rem; color: var(--ink); }
.lead-form > p { font-size: 1rem; color: var(--ink-2); max-width: none; }
.lead-form .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-1); }
.lead-form .field { display: grid; row-gap: 6px; font-size: .875rem; color: var(--ink-3); }
.lead-form .field-wide { grid-column: 1 / -1; }
.lead-form input:not([type="checkbox"]), .lead-form textarea, .lead-form select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--edge-strong);
  background: var(--color-surface-sunken); color: var(--ink); font: inherit; font-size: 1rem; }
.lead-form textarea { resize: vertical; min-height: 96px; }
.lead-form select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.lead-form select option { background: var(--solid); color: var(--ink); }
.lead-form .field-wide > .field { display: grid; }
.lead-form .lead-promise { font-size: 1.0625rem; color: var(--ink); }
.page-head .lead-form { margin-top: var(--s-4); }
.page-head .lead-form p { margin-top: 0; }
.lead-form .lead-status:empty { display: none; }
.lead-form input:focus-visible, .lead-form textarea:focus-visible, .lead-form select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 14px; }
/* A field the intake refused, and the sentence that says what to change, in the one colour the site
   keeps for exactly this. The focus ring stays Aqua Jade on top of it, so "where you are" and "what
   is wrong" remain two separate signals. */
.lead-form input[aria-invalid="true"], .lead-form select[aria-invalid="true"] { border-color: var(--warn); background: var(--warn-tint); }
.lead-form.is-correcting .lead-status { color: var(--warn); }
.lead-form .lead-noscript { font-size: .95rem; color: var(--ink-2); }
.lead-form .check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-top: var(--s-1); font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.lead-form .check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--sam); }
.lead-form .btn { justify-self: start; margin-top: var(--s-1); }
.lead-form .btn:disabled { opacity: .6; cursor: progress; }
.lead-form .lead-status { min-height: 1.5em; font-size: .95rem; color: var(--ink-2); }
.lead-form.is-done .lead-status { color: var(--accent); }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* "Plan a call" as a conversation (lead-chat.js). The plain fields stay in the page for visitors without
 * JavaScript; with it they are hidden and filled from the answers. The planner speaks on glass, the visitor's
 * answers carry the accent, and every choice is a tap target of at least 44px. */
.lead-form.is-chat > .fields, .lead-form.is-chat > .check, .lead-form.is-chat > .btn { display: none; }
.lead-form .chat { display: grid; gap: 14px; margin-top: var(--s-1); }
.lead-form .chat-pinned { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.lead-form .chat-pinned .pin { font-size: .8125rem; color: var(--ink-2); padding: 4px 10px; border-radius: 8px; background: var(--sam-tint); box-shadow: inset 0 0 0 1px var(--sam-edge); }
.lead-form .chat-log { display: grid; gap: 10px; align-content: start; }
.lead-form .bubble { max-width: min(85%, 460px); padding: 11px 16px; border-radius: 20px; font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.lead-form .from-planner { justify-self: start; color: var(--ink); background: var(--ctl); box-shadow: var(--ctl-shadow); border-bottom-left-radius: 6px; }
.lead-form .from-visitor { justify-self: end; color: var(--primary-ink); background: var(--primary); box-shadow: var(--primary-glow); border-bottom-right-radius: 6px; }
.lead-form .bubble.is-typing .dots { letter-spacing: .2em; color: var(--ink-3); animation: chat-dots 1s ease-in-out infinite; }
@keyframes chat-dots { 50% { opacity: .35; } }
.lead-form .chat-reply { display: grid; gap: 10px; }
.lead-form .chat-choices { display: grid; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--hair); }
.lead-form .chat-choices-label { margin: 0; font-size: .8125rem; letter-spacing: .02em; color: var(--ink-3); text-align: right; }
.lead-form .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.lead-form .chip { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-control, 12px); font: inherit; font-size: .9375rem; color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--sam-edge); cursor: pointer; transition: transform var(--dur), background var(--dur); }
.lead-form .chip:hover { background: var(--sam-tint); }
.lead-form .chip:active { transform: scale(.97); box-shadow: var(--ctl-press); }
.lead-form .chip.is-quiet { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--hair); }
.lead-form .chip:focus-visible, .lead-form .summary-edit:focus-visible, .lead-form .composer-send:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lead-form .composer { display: flex; gap: 8px; align-items: center; }
.lead-form .composer input { flex: 1; min-width: 0; }
.lead-form .composer-send { flex: none; width: 48px; height: 48px; border: 0; border-radius: var(--r-control, 12px); font-size: 1.25rem; font-weight: 600; color: var(--primary-ink); background: var(--primary); box-shadow: var(--primary-glow); cursor: pointer; }
.lead-form .composer-error { font-size: .9rem; color: var(--ink); }
.lead-form .chat-summary { display: grid; gap: 0; padding: 6px 18px 18px; border-radius: 22px; background: var(--ctl); box-shadow: var(--ctl-shadow); }
.lead-form .summary-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--hair); }
.lead-form .summary-label { font-size: .875rem; color: var(--ink-3); }
.lead-form .summary-value { font-size: 1rem; color: var(--ink); overflow-wrap: anywhere; }
.lead-form .summary-edit { min-height: 44px; margin: -12px 0; padding: 0 4px; border: 0; background: none; font: inherit; font-size: .875rem; color: var(--sam); cursor: pointer; }
.lead-form .chat-summary .check { padding-top: var(--s-2); }
.lead-form .chat-summary .check.is-missing span { color: var(--ink); text-decoration: underline; text-decoration-color: var(--sam); text-underline-offset: 4px; }
.lead-form .chat-summary .btn { justify-self: start; margin-top: var(--s-1); }
.lead-form .chat-summary.is-sent .summary-edit, .lead-form .chat-summary.is-sent .check, .lead-form .chat-summary.is-sent .btn { display: none; }
.lead-form.is-chat .lead-status { display: none; }
.lead-form .chat-log:focus { outline: none; }
@media (max-width: 600px) { .lead-form .summary-row { grid-template-columns: minmax(0, 1fr) auto; } .lead-form .summary-label { grid-column: 1 / -1; margin-bottom: -8px; } .lead-form .chat-summary .btn { justify-self: stretch; } }
@media (prefers-reduced-motion: reduce) { .lead-form .bubble.is-typing .dots { animation: none; } }
@media (max-width: 600px) { .lead-form { padding: var(--s-3); border-radius: 24px; } .lead-form .fields { grid-template-columns: minmax(0, 1fr); } .lead-form .btn { justify-self: stretch; } }

/* ---------- inner pages ---------- */
.page-head { padding: var(--s-5-6) 0 var(--s-4-5); }
/* A page head followed by a numbered band stacks its own bottom padding on top of the band's: 160px
 * at 1440 and 104px at 390, against the 96px and 64px the home page leaves above its first hairline.
 * This drops the duplicate, so a page head meets a band at exactly the home page's distance.
 * `:has()` is unsupported in Firefox before 121; there the rule is ignored and the gap stays wide,
 * which is the harmless direction. The Contact page's head is followed by a step line, not a band,
 * so it keeps its own 64px at 1440 and 40px at 390 - measured, not assumed. */
.page-head:has(+ .band) { padding-bottom: 0; }
.page-head h1 { max-width: 16ch; }
.page-head .lead, .page-head p { margin-top: var(--s-3); }
.page-head .page-kicker { margin-top: 0; font-size: .875rem; letter-spacing: .06em; color: var(--sam); }
.page-head .page-kicker + h1 { margin-top: var(--s-2); }
.contact .mail-line { margin-top: var(--s-3); }
.prose h2 { font-size: var(--step-2); margin-top: var(--s-4); }
.prose h2 + p { margin-top: var(--s-2); }

/* three steps in order: numbered because they are a sequence */
.steps { padding: 0 0 var(--s-5-6); }
.steps h2 { margin-bottom: var(--s-4); }
.step-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4-5); counter-reset: step; position: relative; }
.step-line::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--edge-strong); }
.step-line li { counter-increment: step; position: relative; }
.step-line li::before {
  content: counter(step); display: grid; place-items: center; position: relative;
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: var(--s-3);
  background: var(--ctl); box-shadow: var(--ctl-shadow); color: var(--sam); font-weight: 600; font-variant-numeric: tabular-nums;
}
.step-line h3 + p { margin-top: var(--s-1); }

/* ---------- footer ---------- */
.foot { padding: 0 0 var(--s-4); }
.foot-inner {
  max-width: var(--wrap); margin: 0 auto; padding: var(--s-3) var(--gutter) 0;
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-2) var(--s-4); align-items: center;
  border-top: 1px solid var(--hair);
}
.foot-legal { font-size: .875rem; color: var(--ink-3); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-3); justify-content: flex-end; }
/* A footer link is a 24px line of text. Sized to the text it is a 24px target; the row gap is
 * dead space either way, so the link takes it and the whole 44px becomes pressable. */
.foot-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--ink-3); text-decoration: none; font-size: .875rem; }
.foot-nav a:hover { color: var(--ink); }

/* ---------- stacked hero ----------
 * Below 1100px the three columns become one: Your goods, then the globe, then Ready for your
 * customer, each centred. The type scales with the viewport, and the phrases wrap if it cannot
 * scale far enough - here their width sizes nothing, so there is no reason to keep them on one
 * line and a good one not to. */
@media (max-width: 1100px) {
  /* One column rather than three, still a grid: every child's explicit placement is reset here, so
   * nothing keeps a row or a column it was given for the wide layout. The order is the DOM order,
   * which is already the order the owner asked for: Your goods, the globe, Ready for your customer. */
  .hero-row { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 0; text-align: center; }
  .hero-row > * { grid-column: 1; grid-row: auto; justify-self: center; text-align: center; }
  /* The foot loses the three columns with the row: once the hero is one column there is no middle
   * track to follow, so the action row goes back to being sized by its own width. */
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .hero-foot > * { grid-column: 1; }
  .hero-actions { width: min(100%, var(--sphere)); min-width: 0; }
  .hero-tag { margin-bottom: 0; }
  .hero-stage { margin: var(--s-3) auto; }
  .hero-mark-in { margin-top: var(--s-4); }
  .hero-mark-out { margin-top: var(--s-5); }
  /* Below this width the hero is one column, so a phrase's nowrap decides nothing but whether the
   * phrase can fit. It decided nothing about track width above this point either - the side tracks
   * are a viewport clamp - but there it at least kept the intended one-line shape beside the globe.
   * At 150% text on a 320px phone "Ready for your
   * customer." is 353px and pushed the whole page sideways. Wrapping changes nothing on any screen
   * where it already fits. */
  .hero-phrase { margin-top: var(--s-2); white-space: normal; }
  .hero-note { margin-top: var(--s-2); }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .band-inner { grid-template-columns: 1fr; row-gap: var(--s-3); }
  .band-no, .band-body { grid-column: 1; }
  .band-items.three { grid-template-columns: 1fr; }
  .band-items.wide { grid-column: 1; }
}
@media (max-width: 1000px) {
  /* The menu drops onto its own row under the wordmark: two rows of bar, measured on this build.
   * 1000px, not the 883px the menu and the brand actually need in Jost, because `font-display: swap`
   * paints the system fallback first on every cold visit and that is wider: measured with the font
   * blocked, the row stops fitting at 980 in Dutch and 961 in English. Below 1000 the menu is on its
   * own row by design either way, so the font swap can no longer move the bar. */
  :root { --bar-h: 122px; }
  .bar { padding-top: 10px; }
  .bar-inner { gap: 10px; padding: var(--s-1) var(--s-1) var(--s-1) var(--s-2); border-radius: var(--r-bar); }
  .brand .wordmark-svg { width: 96px; }
  /* Concentric: the bar's 20px minus its 8px padding, so the same 12px as everywhere else. */
  .nav { order: 3; width: 100%; flex-wrap: wrap; justify-content: center; row-gap: 2px; border-radius: var(--r-control); }
  .nav a { padding: 0 10px; font-size: .86rem; }
  .nav .lang { margin-left: 0; }
  .nav .lang::before { display: none; }
}
@media (max-width: 900px) {
  /* A finger gets 44px in the menu row below 900px, which makes the bar taller again. */
  :root { --bar-h: 132px; }
}
@media (max-width: 760px) {
  /* Still the two-row bar with 44px menu rows, restated here because this is the breakpoint the
   * regression test reads (tests/public-website-touch-targets.test.ts). */
  :root { --bar-h: 132px; }
  .band-items.two { grid-template-columns: 1fr; }
  .step-line { grid-template-columns: 1fr; }
  .step-line::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .step-line li { padding-left: 70px; }
  .step-line li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .foot-inner { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
}

/* Below about 525px the five menu items no longer fit on one row and the bar takes a third; below
 * about 350px a fourth.
 *
 * A bar that tall must not also be sticky: at 390pt it would hold 178px - a fifth of the screen -
 * in front of the reader for the whole page. It scrolls away instead, and the in-page jumps no
 * longer need to clear it, so the scroll padding goes back to one step of the scale. Both calls to
 * action stay in the page itself, at the top of the hero and again at the close.
 *
 * Which is also why the two --bar-h values below are the only ones that are not exact. The three
 * above them are measured heights of this build and they are the ones that matter, because they are
 * the widths where the bar is sticky and an in-page jump has to clear it: 76 above 1000, 122 from
 * 1000, 132 from 900. From 540 down the bar is static and --bar-room is overridden, so --bar-h is
 * read by nothing; these two keep the variable sane and over-reserve rather than under-reserve. */
@media (max-width: 540px) {
  :root { --bar-h: 178px; }
  .bar { position: static; }
  html { scroll-padding-top: var(--s-3); }
}
@media (max-width: 380px) {
  :root { --bar-h: 232px; }
}

/* Touch: a finger needs 44px, a cursor does not. Growing the hit areas only where a screen is
 * actually touched leaves the drawn desktop bar at the height it was designed at. */
@media (max-width: 900px), (any-pointer: coarse) {
  .brand { min-height: 44px; }
  .nav a { height: 44px; }
}

/* Wake Samaritan (src/wake.js): one quiet glass field, centred, no label. */
.wake { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: color-mix(in srgb, var(--color-background) 60%, transparent); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.wake-input { width: min(320px, calc(100vw - 32px)); padding: 14px 18px; border: 0; border-radius: var(--s-2); font: 500 17px/1.2 "Jost", system-ui, sans-serif; letter-spacing: .2em; text-align: center; color: var(--ink); background: var(--ctl); box-shadow: var(--ctl-shadow), var(--elev-2); outline: none; }
.wake-input:focus-visible { box-shadow: var(--ctl-shadow), var(--elev-2), 0 0 0 3px var(--sam-edge); }
@media (prefers-reduced-transparency: reduce) { .wake { background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Phone: the two calls to action stack, and the labels come off the globe — at this size a pill
 * covers more sphere than it explains. */
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn, .hero-actions .link { width: 100%; max-width: 320px; min-width: 0; }
  .hero-rule { display: none; }
  .pill { display: none; }
  .hero-stage { max-width: 420px; }
}
