/* 22nd Mind: page styles on top of the design kit (public/assets).
   The kit gives the system (grid, type scale, buttons, menu, footer, hover layer). This file holds
   only what is 22nd Mind's own: the brand marks, the opening sequence, and the pictures inside
   sections. Colours and fonts are the tokens set in app/layout.tsx (Midnight and Signal). */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ------------------------------------------------------------------ the name and the mark */
/* "22nd Mind": the nd is always a small raised superscript */
sup.nd { font-size: 0.5em; line-height: 0; position: relative; top: -0.78em; vertical-align: baseline; letter-spacing: 0; margin-left: 0.04em; font-weight: inherit; }
.tm { font-size: 0.42em; line-height: 0; position: relative; top: -1.1em; vertical-align: baseline; margin-left: 0.12em; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.warm { color: var(--warm); }
.cool { color: var(--cool); }

/* the Twin 2s: copper and ice-cyan, joined at the base. Always on its own, with a small TM */
.twin { display: block; height: 1em; width: auto; overflow: visible; }
.twin path { fill: none; stroke-width: 10; stroke-linejoin: round; stroke-linecap: butt; }
.twin__l { stroke: var(--warm); }
.twin__r { stroke: var(--cool); }
.logo { position: relative; display: inline-flex; line-height: 1; }
.logo__tm { position: absolute; left: 100%; top: 0; margin-left: 3px; font: 500 9px/1 var(--font-display); letter-spacing: 0; color: var(--muted); }
.nav__logo .twin { height: 30px; }
.footer__mark .twin { height: 56px; }
.footer__mark .logo__tm { font-size: 11px; margin-left: 4px; }
/* the menu's logo locks together once, as the site arrives */
html[data-intro="done"] .twin--lock .twin__l { animation: lock-left 900ms var(--ease-out) both; }
html[data-intro="done"] .twin--lock .twin__r { animation: lock-right 900ms var(--ease-out) both; }
html[data-intro="done"] .twin--lock .twin__j { animation: lock-join 500ms var(--ease-out) 520ms both; }
@keyframes lock-left { from { transform: translateX(-18px); opacity: 0; } }
@keyframes lock-right { from { transform: translateX(18px); opacity: 0; } }
@keyframes lock-join { from { opacity: 0; } }

/* ------------------------------------------------------------------ menu */
button.nav__link { appearance: none; background: none; border: 0; cursor: pointer; }
/* a laptop (1024 to 1339px): the bar is too narrow to keep the words dead centre beside the login and the
   main button, so they sit in the room between the logo and the buttons instead of running into them */
@media (min-width: 1024px) and (max-width: 1339px) { .nav--centre .nav__bar { grid-template-columns: auto minmax(0, 1fr) auto; } }

/* ------------------------------------------------------------------ the opening sequence */
/* Black, "Hello", "Welcome to the 22nd Century", then the site. It covers the page only when scripts
   run, and clears itself after 11 s if a script fails. */
.intro { display: none; }
html.js:not(.no-intro) .intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: #000; color: #f4f0ea; cursor: pointer;
  transition: opacity 1000ms var(--ease-out);
  animation: intro-failsafe 700ms linear 11s forwards;
}
.intro[hidden] { display: none !important; }
.intro.is-leaving { opacity: 0; pointer-events: none; }
.intro.is-skipped { transition-duration: 260ms; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
/* the page under the opening does not scroll: the cover takes the wheel and the touch (Intro.tsx) */
html.js:not(.no-intro) .intro { touch-action: none; overscroll-behavior: contain; }
.intro__line {
  grid-area: 1 / 1; margin: 0; padding-inline: 24px; text-align: center;
  font: 400 clamp(30px, 4.6vw, 68px)/1.1 var(--font-display); letter-spacing: -0.035em;
  opacity: 0; filter: blur(12px); transform: scale(0.985);
  transition: opacity 650ms ease, filter 650ms ease, transform 650ms ease;
}
.intro__line.is-on { opacity: 1; filter: blur(0); transform: none; transition: opacity 1100ms var(--ease-out), filter 1100ms var(--ease-out), transform 2600ms var(--ease-out); }
.intro__line--hello { font-size: clamp(40px, 6vw, 92px); }
.intro__nw { white-space: nowrap; }
.intro__22 { background: linear-gradient(90deg, var(--warm) 10%, var(--cool) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro__rule {
  grid-area: 1 / 1; align-self: center; width: min(46vw, 520px); height: 1px; margin-top: clamp(96px, 13vw, 170px);
  background: linear-gradient(90deg, transparent, var(--warm) 30%, var(--cool) 70%, transparent);
  transform: scaleX(0); opacity: 0; transition: transform 650ms ease, opacity 650ms ease;
}
.intro[data-step="3"] .intro__rule { transform: scaleX(1); opacity: 0.9; transition: transform 2200ms var(--ease-out) 300ms, opacity 1200ms ease 300ms; }
.intro__skip { position: absolute; left: 0; right: 0; bottom: max(28px, 5vh); text-align: center; font: 400 13px/1.4 var(--font-text); color: #7a848e; }

/* ------------------------------------------------------------------ the first screen: two flocks, one mind */
.hero--flock { isolation: isolate; overflow: hidden; }
/* a little warm light low on the left and cool light low on the right: where the flocks come from */
.hero--flock::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 44% at 12% 76%, color-mix(in oklab, var(--warm) 14%, transparent), transparent 72%),
    radial-gradient(46% 44% at 88% 72%, color-mix(in oklab, var(--cool) 12%, transparent), transparent 72%);
}
/* the field: the one 3D scene, fixed behind the whole page (components/Field.tsx, lib/field.ts). Its canvas is .bgfield
   (the kit's .field is a form field). It draws its own ground,
   in the page's colour, so it has no edge; when it is live the first screen's CSS lights step aside for it */
.bgfield { position: fixed; inset: 0 0 auto 0; z-index: -1; display: block; width: 100%; height: 100lvh; pointer-events: none; }
html.field-on .hero--flock::before { content: none; }
/* the logo's place: whatever height the words leave. The field draws the mark here; the drawn mark is for a page
   without scripts or WebGL (html.field-off) */
.hero--flock .flock-anchor { flex: 1 1 0; min-height: clamp(120px, 22svh, 300px); display: grid; place-items: center; }
.hero--flock .flock-anchor .twin { height: min(78%, 360px); max-width: 62%; }
html.js:not(.field-off) .hero--flock .flock-anchor .twin { visibility: hidden; }
/* more of the first screen goes to the mark: about twice its old size on a laptop */
@media (min-width: 640px) {
  main > .hero.hero--flock { --hgap: 12px; --hpadb: 24px; }
  main > .hero.hero--flock > .wrap { row-gap: 24px; }
}
.hero--flock .hero__c { max-width: 1040px; gap: var(--s-4); flex: none; padding-top: var(--s-3); }
.hero--flock h1 { max-width: none; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.06; }
.hero--flock .hero__lead { max-width: 60ch; color: var(--muted); }
.hero-eyebrow { margin: 0; font-size: var(--t-small); line-height: 1.5; color: var(--muted); text-wrap: balance; }
.hero-eyebrow__sep { margin-inline: 6px; }
.hero-eyebrow .name { font: 500 15px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.hero-eyebrow__what { font: 400 14px/1.4 var(--font-mono); letter-spacing: 0; color: color-mix(in oklab, var(--ink) 86%, transparent); }
.hero-fact { position: relative; margin: 0; font-size: var(--t-small); color: var(--muted); }
.hero-fact svg { position: absolute; right: 100%; top: 0.2em; margin-right: var(--s-2); width: 16px; height: 16px; fill: none; stroke: var(--cool); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* the words stand from the first paint; they step back only for the flight (.is-held, one frame, set by the script) and then arrive.
   With the opening skipped (?intro=0) they wait from the first paint instead (html.hero-wait, set in the head) */
.hero--flock.is-held [data-rise], html.hero-wait .hero--flock [data-rise] { opacity: 0; transform: translateY(var(--rise, 10px)); }
.hero--flock.is-in [data-rise] {
  transition:
    opacity var(--d, 600ms) var(--ease-out) calc(var(--delay, 0ms) + var(--text-delay, 0ms)),
    transform var(--d, 600ms) var(--ease-out) calc(var(--delay, 0ms) + var(--text-delay, 0ms));
}

/* the first screen has no strip under it now (the logos moved to "What we do"): one row, so the mark takes the room.
   A small button in its lower right corner pauses the moving symbol */
main > .hero.hero--flock > .wrap { position: relative; grid-template-rows: minmax(0, 1fr); }
.hero-pause { position: absolute; z-index: 1; right: -14px; bottom: -14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.hero--flock.is-in .hero-pause { transition: opacity 600ms var(--ease-out) calc(var(--delay, 0ms) + var(--text-delay, 0ms)), color 150ms ease, scale 160ms var(--ease-out); }
.hero-pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-pause[aria-pressed="true"] svg { fill: currentColor; }
.hero-pause:active { scale: 0.94; }
@media (hover: hover) and (pointer: fine) { .hero-pause:hover { color: var(--ink); } }

@media (max-width: 639px) {
  /* the first screen's paragraph is long on a phone: the symbol gives up some height so everything still fits one screen */
  .hero--flock .flock-anchor { min-height: clamp(104px, 15svh, 200px); }
  .hero--flock h1 { font-size: clamp(31px, 8.6vw, 40px); }
  .hero-fact { text-wrap: balance; padding-inline: var(--s-5); }
  .hero-fact svg { position: static; display: inline-block; vertical-align: -3px; margin-right: 4px; }
}

/* ------------------------------------------------------------------ client login */
dialog.login {
  width: min(440px, calc(100vw - 32px)); padding: var(--s-7) var(--s-6) var(--s-6);
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: var(--p-surface); color: var(--ink);
}
dialog.login::backdrop { background: rgb(0 0 0 / 0.8); }
dialog.login[open] { animation: login-in 220ms var(--ease-out); }
@keyframes login-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } }
.login__lead { margin: var(--s-3) 0 var(--s-5); color: var(--muted); }
.login .form { grid-template-columns: minmax(0, 1fr); }
.login .btn { width: 100%; }
.login__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color 150ms ease, transform 160ms var(--ease-out); }
.login__close:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .login__close:hover { color: var(--ink); } }

/* ------------------------------------------------------------------ reduced motion: everything rests */
@media (prefers-reduced-motion: reduce) {
  .intro__line, .intro__line.is-on { filter: none; transform: none; transition: opacity 500ms ease; }
  .intro__rule, .intro[data-step="3"] .intro__rule { transform: scaleX(1); transition: opacity 500ms ease; }
  html[data-intro="done"] .twin--lock path { animation: none; }
  .hero--flock [data-rise] { transform: none; }
  .hero--flock.is-in [data-rise] { transition-property: opacity; }
  /* the field rests: one still picture of the finished mark, which scrolls away with the first screen */
  .bgfield { position: absolute; }
  .hero-pause { display: none; }
  dialog.login[open] { animation: none; }
}

/* a phone: the name on its own line above what the company does, no loose dot */
@media (max-width: 639px) {
  .hero-eyebrow__sep { display: none; }
  .hero-eyebrow__what { display: block; margin-top: 2px; }
}

/* ------------------------------------------------------------------ footer */
/* a narrow phone: the columns share the row evenly and a long address may break */
.footer .footer__col { min-width: 0; }
.footer .footer__col a[href^="mailto:"] { overflow-wrap: anywhere; }
/* the smallest phones (under 360px wide): six 44px social buttons share the row without pushing it wider */
@media (max-width: 359px) { .footer__legal .socials { width: 100%; gap: 0; justify-content: space-between; } }

/* ───────── 2. the problem: the rows picture, then today, with 22nd Mind, what you get ───────── */
/* The section opens onto the scene: the page's 3D field shows through and draws the seven rows in the place kept
   for them (.problem__lanes). Then the table sits on its own ground. The section's height follows its content:
   the kit's one-screen box is set aside here (the visual upgrade, step 2). */
main > section.problem { height: auto; min-height: 0; padding: 0; }
.problem__open { position: relative; padding-top: var(--padt); }
.problem__h { font-size: clamp(30px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
.problem__h .muted { display: block; }
/* what the two ends of the picture are: today on the left, with 22nd Mind on the right */
.problem__key { display: flex; justify-content: space-between; gap: var(--s-4); margin-top: clamp(28px, 5svh, 52px); color: var(--muted); }
.problem__key span { white-space: nowrap; }
.problem__key span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; vertical-align: middle; position: relative; top: -1px; background: var(--warm); }
.problem__key .problem__key-with::before { background: var(--cool); }
/* the place of the rows. The scene's rows take about two fifths of the screen's height, so this follows the screen */
.problem__lanes { position: relative; height: clamp(280px, 48svh, 560px); }
.problem__still { position: absolute; inset: 0; width: 100%; height: 100%; }
.problem__still circle { fill: var(--warm); }
.problem__gate { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; opacity: 0.85; }
/* the scene draws the rows; the still drawing is for a browser that rests motion or cannot draw the scene */
@media (prefers-reduced-motion: no-preference) { html.js:not(.field-off) .problem__still { visibility: hidden; } }

/* the table's ground (the kit's band, in the brand's own second tone: a dark panel lit warm from one corner).
   Its top and bottom edges are soft, so the picture above sinks into it and it never meets a section as a hard cut */
.problem__ground.bg-band {
  padding: clamp(96px, 14svh, 150px) 0 clamp(88px, 12svh, 120px); margin-bottom: -40px;
  --g-noise-soft: none; --tone: var(--p-surface); --tone-ink: var(--p-ink); --g-hi: color-mix(in oklab, var(--warm) 34%, var(--p-surface)); --muted: var(--p-muted); --surface: #171c23; --card: #171c23; --accent: var(--p-accent); --accent-ink: var(--p-accent-ink); --action: var(--p-action); --action-ink: var(--p-action-ink); --line: color-mix(in oklab, var(--p-ink) 12%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 clamp(72px, 11svh, 120px), #000 calc(100% - clamp(64px, 9svh, 96px)), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 clamp(72px, 11svh, 120px), #000 calc(100% - clamp(64px, 9svh, 96px)), transparent);
}
.cmp__row { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); }
/* the heading row is a bar of its own, so the three column names stand apart from the rows under them: display type
   in full ink on a lifted plate, each with its mark (copper for today, ice-cyan for the system, the tick for the result).
   The marks hang in the bar's padding and in the gap between columns, so each name starts where its column's words start */
.cmp__row--head { min-height: 52px; margin: 0 -20px var(--s-2); padding-inline: 20px; border: 1px solid color-mix(in oklab, var(--ink) 16%, transparent); border-radius: var(--r-md, 12px); background: color-mix(in oklab, var(--ink) 6%, transparent); }
.cmp__row--head > * { font: 600 15px/1.2 var(--font-display); letter-spacing: 0; color: var(--ink); white-space: nowrap; }
.cmp__row--head > *::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 5px 0 -12px; border-radius: 50%; vertical-align: middle; position: relative; top: -1px; background: var(--warm); }
.cmp__row--head > :nth-child(2)::before { background: var(--cool); }
.cmp__row--head > :nth-child(3)::before { content: none; }
.cmp__row--head svg { display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px; fill: none; stroke: var(--cool); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* a row as it stands when done: today's line struck through in copper, the answer in full, the result ticked */
.cmp__today { color: var(--muted); text-decoration-line: line-through; text-decoration-thickness: 1px; text-decoration-color: color-mix(in oklab, var(--warm) 62%, transparent); transition: color 480ms var(--ease-out) 240ms, text-decoration-color 480ms var(--ease-out) 240ms; }
.cmp__with { font-weight: 500; }
.cmp__get { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--cool); }
.cmp__get svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.cmp__k { display: none; }
/* each row changes as it is reached (only when the script armed the table): until then today's line stands in
   full and the answer waits, dimmed. Then a band of light crosses the row from today to done, a line runs under
   it, today's line is struck through, the answer steps in and the tick draws */
.cmp__with, .cmp__get { transition: opacity 480ms var(--ease-out) 180ms, transform 480ms var(--ease-out) 180ms; }
.cmp__get { transition-delay: 320ms; }
.cmp__get svg path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 380ms var(--ease-out) 520ms; }
.cmp.is-armed .cmp__row:not(.cmp__row--head, .is-on) .cmp__today { color: var(--ink); text-decoration-color: transparent; transition: none; }
.cmp.is-armed .cmp__row:not(.cmp__row--head, .is-on) :is(.cmp__with, .cmp__get) { opacity: 0.26; transform: translateX(-10px); transition: none; }
.cmp.is-armed .cmp__row:not(.cmp__row--head, .is-on) .cmp__get svg path { stroke-dashoffset: 1; transition: none; }
.cmp__row:not(.cmp__row--head)::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 38%, color-mix(in oklab, var(--warm) 20%, transparent) 46%, color-mix(in oklab, var(--cool) 20%, transparent) 54%, transparent 62%) 100% 0 / 300% 100% no-repeat; }
.cmp__row.is-on::before { animation: cmp-light 900ms var(--ease-out) both; }
@keyframes cmp-light { from { background-position: 100% 0; } to { background-position: 0 0; } }
.cmp__row.is-on::after { animation: cmp-sweep 1000ms var(--ease-out); }
@keyframes cmp-sweep { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
/* the row answers the pointer: a warm-to-cool line runs under it, from today to done */
.cmp__row:not(.cmp__row--head)::after { content: ""; position: absolute; inset: auto 0 -1px; height: 1px; background: linear-gradient(90deg, var(--warm), var(--cool)); transform: scaleX(0); transform-origin: left; transition: transform 200ms ease-out; }
@media (hover: hover) and (pointer: fine) {
  .cmp__row:not(.cmp__row--head):hover::after { transform: scaleX(1); transition: transform 460ms var(--ease-out); }
  .cmp.cmp .cmp__row:hover .cmp__today { text-decoration-color: var(--warm); transition-delay: 0ms; }
  .cmp__row:hover .cmp__get svg { transform: scale(1.2); }
}
@media (min-width: 720px) and (max-width: 1023px) { .cmp__row:not(.cmp__row--head) { min-height: 78px; } }
@media (max-width: 719px) {
  .cmp__row--head { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cmp__row { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-3); align-items: start; padding-block: var(--s-5); }
  .cmp__row:first-of-type + .cmp__row { padding-top: 0; }
  .cmp__k { display: block; margin-bottom: 3px; font: 600 12px/1.4 var(--font-display); letter-spacing: 0.02em; color: var(--cool); }
  .cmp__today, .cmp__with { display: block; }
  /* the phone label of the first cell is drawn by CSS (the page reads the same at every width); the second needs its raised "nd", so it is real text.
     It is an inline block the full width of the cell, so the line through today's words does not run through the label too */
  .cmp__today::before { content: "Today"; display: inline-block; width: 100%; margin-bottom: 3px; font: 600 12px/1.4 var(--font-display); letter-spacing: 0.02em; color: var(--warm); }
}
/* motion rests: no band of light, no line; the table is simply whole */
@media (prefers-reduced-motion: reduce) { .cmp__row::before { content: none; } }

/* ───────── 3. what we do: three jobs beside the connected system ───────── */
/* at least one screen, and taller if a narrow or short screen needs it (the picture is never cut) */
main > section#what-we-do { height: auto; min-height: calc(var(--h, 1) * 100svh); overflow-x: clip; }
.what { display: grid; gap: var(--s-5); align-content: start; }
.what__rows > li { grid-template-columns: minmax(0, 1fr); }
.what__rows .rows__name { color: var(--ink); }
.what__rows > li:nth-child(1) .rows__name { color: var(--warm); }
.what__rows > li:nth-child(3) .rows__name { color: var(--cool); }
.what__map { align-self: center; min-width: 0; }

/* The connected system (components/SystemMap.tsx): tools in on the left, one layered panel, results out on
   the right. Dark glass on the page's own ground; copper on the side the work comes in, ice-cyan where it leaves. */
.sm { position: relative; isolation: isolate; perspective: 1400px; }
/* its ground: a fine dot grid that fades out at the edges, lit copper on the left and ice-cyan on the right */
.sm::before {
  content: ""; position: absolute; inset: -9% -5%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 48% at 24% 52%, color-mix(in oklab, var(--warm) 13%, transparent), transparent 72%),
    radial-gradient(40% 48% at 76% 48%, color-mix(in oklab, var(--cool) 11%, transparent), transparent 72%),
    radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--ink) 15%, transparent) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(62% 62% at 50% 50%, #000 28%, transparent 100%);
  mask-image: radial-gradient(62% 62% at 50% 50%, #000 28%, transparent 100%);
}
.sm__stage {
  position: relative; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(228px, 1.36fr) minmax(0, 1fr); column-gap: clamp(32px, 5.4vw, 80px);
  padding-block: var(--s-4);
  transform-style: preserve-3d; transform: rotateX(var(--rx, 3deg)) rotateY(var(--ry, -6deg));
  transition: transform 600ms var(--ease-out);
}
.sm__col { display: grid; gap: var(--s-3); align-content: center; min-width: 0; }
.sm__label { margin: 0 0 var(--s-1); font: 400 11px/1.4 var(--font-mono); letter-spacing: 0.02em; color: var(--muted); }
.sm__col--out .sm__label { text-align: right; }
.sm__name { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--ink); }
.sm__sub { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }

/* a tile: a tool on the left, a result on the right */
.sm__chip {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  background: linear-gradient(180deg, color-mix(in oklab, var(--ink) 7%, #0b0e12), color-mix(in oklab, var(--ink) 2.5%, #0b0e12));
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--ink) 8%, transparent), 0 18px 30px -20px rgb(0 0 0 / 0.9);
  transition: border-color 220ms var(--ease-out), translate 220ms var(--ease-out);
}
.sm__chip--out { justify-content: flex-start; min-height: 58px; padding-left: 16px; }
.sm__logo { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in oklab, var(--ink) 7%, transparent); }
.sm__logo img { width: 22px; height: 22px; object-fit: contain; }
/* a result lights as its light lands */
.sm__chip::after, .sm__layer::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0;
  border: 1px solid color-mix(in oklab, var(--tone, var(--cool)) 72%, transparent);
  background: color-mix(in oklab, var(--tone, var(--cool)) 8%, transparent);
  box-shadow: 0 0 26px -6px color-mix(in oklab, var(--tone, var(--cool)) 62%, transparent);
  transition: opacity 240ms var(--ease-out);
}
.sm__col--in .sm__chip { --tone: var(--warm); }

/* the panel: the system itself, nearer the viewer than the tiles, its edge lit copper on the way in and ice-cyan on the way out */
.sm__panel {
  position: relative; padding: 22px 10px 10px; border-radius: 24px; transform: translateZ(26px);
  background: linear-gradient(180deg, #141a21, #0c1015);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 9%, transparent), inset 0 1px 0 color-mix(in oklab, var(--ink) 10%, transparent), 0 44px 70px -36px rgb(0 0 0 / 0.95);
}
.sm__panel::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(98deg, color-mix(in oklab, var(--warm) 78%, transparent), transparent 36%, transparent 64%, color-mix(in oklab, var(--cool) 78%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.sm__head { display: grid; justify-items: center; gap: 5px; padding: 2px 8px 14px; text-align: center; }
/* the panel's name closes it, under the last layer: a fine copper-to-ice-cyan line, then the name */
.sm__foot { position: relative; margin: 14px 0 0; padding: 13px 8px 3px; text-align: center; }
.sm__foot::before { content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--warm), var(--cool), transparent); opacity: 0.7; }
.sm__head .twin { height: 32px; }
.sm__head .logo { margin-bottom: 8px; }
.sm__eyebrow { font: 400 11px/1.4 var(--font-mono); letter-spacing: 0.02em; color: var(--muted); }
.sm__title { font: 600 17px/1.2 var(--font-display); white-space: nowrap; letter-spacing: -0.01em; color: var(--ink); }
.sm__layers { display: grid; gap: 10px; }
.sm__layer {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 10px; border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--ink) 7%, transparent); background: color-mix(in oklab, var(--ink) 4%, transparent);
}
.sm__layer[data-tone="warm"] { --tone: var(--warm); }
.sm__layer[data-tone="cool"] { --tone: var(--cool); }
.sm__layer[data-tone="ink"] { --tone: var(--ink); }
.sm__glyph { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--tone); background: color-mix(in oklab, var(--tone) 12%, transparent); }
.sm__glyph svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* the lines: fine dashes at rest, with a short light that travels along each one */
.sm__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transform: translateZ(10px); }
.sm__wire { fill: none; stroke: color-mix(in oklab, var(--ink) 30%, transparent); stroke-width: 1.3; stroke-dasharray: 2 6; stroke-linecap: round; transition: stroke 240ms var(--ease-out); }
.sm__dot { fill: var(--warm); }
.sm__dot--out { fill: var(--cool); }
.sm__pulse { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.16 1.4; stroke-dashoffset: 0.17; opacity: 0; }
.sm__pulse--in { stroke: var(--warm); }
.sm__pulse--out { stroke: var(--cool); }
.sm__wires .is-hot .sm__wire { stroke: color-mix(in oklab, var(--ink) 62%, transparent); }

/* the light makes its trip only while the picture is on screen (.is-live, set by the script) and not paused */
.sm.is-live .sm__pulse { animation: sm-run var(--cycle, 7s) linear var(--at, 0s) infinite both; }
.sm.is-live .sm__layer::after, .sm.is-live .sm__chip--out::after { animation: sm-lit var(--cycle, 7s) var(--ease-out) var(--at, 0s) infinite both; }
.sm[data-paused] .sm__pulse, .sm[data-paused] .sm__layer::after, .sm[data-paused] .sm__chip--out::after { animation-play-state: paused; }
@keyframes sm-run {
  0% { stroke-dashoffset: 0.17; opacity: 0; }
  1.5% { opacity: 1; }
  12% { opacity: 1; }
  13.5% { stroke-dashoffset: -1; opacity: 0; }
  100% { stroke-dashoffset: -1; opacity: 0; }
}
@keyframes sm-lit { 0% { opacity: 0; } 3% { opacity: 1; } 11% { opacity: 1; } 19%, 100% { opacity: 0; } }

/* the pointer: a tile lifts, and a layer shows the line and the result that belong to it */
.sm__chip.is-hot::after, .sm__layer.is-hot::after { opacity: 1; animation: none; }
@media (hover: hover) and (pointer: fine) { .sm__chip:hover { translate: 0 -2px; border-color: color-mix(in oklab, var(--ink) 22%, transparent); } }

/* it arrives in the order the work flows: the tools, the system, the results, then the lines (only when the script armed it) */
.sm__col--in .sm__chip, .sm__col--out .sm__chip, .sm__label, .sm__wires { transition: opacity 620ms var(--ease-out), translate 620ms var(--ease-out), border-color 220ms var(--ease-out); }
.sm__panel { transition: opacity 700ms var(--ease-out) 260ms, translate 700ms var(--ease-out) 260ms; }
.sm__col--in .sm__chip { transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0ms; }
.sm__col--out .sm__chip { transition-delay: calc(560ms + var(--i, 0) * 70ms), calc(560ms + var(--i, 0) * 70ms), 0ms; }
.sm__col--out .sm__label { transition-delay: 520ms; }
.sm__wires { transition-delay: 900ms; }
.sm.is-armed:not(.is-in) :is(.sm__chip, .sm__label, .sm__panel, .sm__wires) { opacity: 0; transition: none; }
.sm.is-armed:not(.is-in) .sm__col--in :is(.sm__chip, .sm__label) { translate: -18px 0; }
.sm.is-armed:not(.is-in) .sm__col--out :is(.sm__chip, .sm__label) { translate: 18px 0; }
.sm.is-armed:not(.is-in) .sm__panel { translate: 0 18px; }

/* the pause button, as on the first screen's strip */
.sm__pause { position: absolute; right: -8px; bottom: -28px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.sm__pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sm__pause[aria-pressed="true"] svg { fill: currentColor; }
.sm__pause:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .sm__pause:hover { color: var(--ink); } }

/* a tablet: the same three parts, a little closer together */
@media (max-width: 1023px) { .sm__stage { column-gap: clamp(20px, 3.4vw, 36px); } }
/* a phone: the three parts stack, the tools and the results three across, and the lines run downward. Flat, no lean */
@media (max-width: 719px) {
  .sm { perspective: none; }
  .sm__stage { grid-template-columns: minmax(0, 1fr); row-gap: 52px; transform: none; }
  .sm__panel { transform: none; }
  .sm__wires { transform: none; }
  .sm__col { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
  .sm__label, .sm__col--out .sm__label { grid-column: 1 / -1; text-align: center; margin: 0; }
  .sm__col--out .sm__label { order: 2; }
  .sm__chip { flex-direction: column; justify-content: center; gap: 6px; min-height: 84px; padding: 10px 6px; text-align: center; }
  .sm__chip--out { min-height: 64px; padding-left: 6px; }
  .sm__name { font-size: 14px; }
  .sm__chip .sm__sub { font-size: 11.5px; }
  .sm__pause { right: -8px; bottom: -44px; }
}
/* motion rests: no lean, no travelling light, no pause button */
@media (prefers-reduced-motion: reduce) {
  .sm__stage { transform: none; transition: none; }
  .sm__panel, .sm__wires { transform: none; }
  .sm__pulse, .sm__pause { display: none; }
}
@media (max-width: 639px) {
  /* a phone: the words first, then the picture, each at its own height */
  #what-we-do .grid { row-gap: var(--s-8, 64px); }
}

/* "Integrates with" (components/Integrates.tsx): the tools our systems connect to, along the foot of the section.
   One row of real logos that keeps moving; several are in view at every width. Three copies end to end, moved by
   one copy's width, so the loop has no seam; the two ends fade out, so no logo is cut hard */
/* the lead: what we do in a quieter tone, then the promise in full ink */
.what__lead { max-width: 60ch; color: var(--muted); }
.what__lead strong { font-weight: inherit; color: var(--ink); }
.integ { --integ-gap: 64px; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--s-5); margin-top: clamp(40px, 7svh, 80px); padding-top: var(--s-4); border-top: 1px solid var(--line); }
/* the label takes two or three short lines beside the row, so the logos keep their width */
.integ__label { margin: 0; max-width: 17ch; font: 500 var(--t-label)/1.35 var(--font-text); color: var(--muted); text-wrap: balance; }
.integ__label strong { font-weight: 600; color: var(--ink); white-space: nowrap; }
.integ__view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent); }
.integ__track { display: flex; width: max-content; animation: integ-run 42s linear infinite; }
.integ__set { flex: none; display: flex; align-items: center; gap: var(--integ-gap); height: 64px; margin: 0; padding: 0 var(--integ-gap) 0 0; list-style: none; }
.integ__set li { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font: 500 16px/1 var(--font-display); letter-spacing: -0.01em; color: var(--ink); transition: opacity 220ms var(--ease-out); }
.integ__set img { display: block; flex: none; }
@keyframes integ-run { to { transform: translate3d(calc(-100% / 3), 0, 0); } }
.integ.is-off .integ__track, .integ[data-paused] .integ__track { animation-play-state: paused; }
/* under the pointer the row holds still, and the logo pointed at stands out from the rest */
@media (hover: hover) and (pointer: fine) {
  .integ__view:hover .integ__track { animation-play-state: paused; }
  .integ__view:hover li { opacity: 0.45; }
  .integ__view:hover li:hover { opacity: 1; }
}
.integ__pause { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -14px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color 150ms ease, scale 160ms var(--ease-out); }
.integ__pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.integ__pause[aria-pressed="true"] svg { fill: currentColor; }
.integ__pause:active { scale: 0.94; }
@media (hover: hover) and (pointer: fine) { .integ__pause:hover { color: var(--ink); } }
/* a phone: the label and the button on one line, the moving row under them at the full width */
@media (max-width: 639px) {
  .integ { --integ-gap: 44px; grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; margin-top: var(--s-8, 64px); padding-top: var(--s-2); }
  .integ__label { max-width: none; }
  .integ__view { grid-row: 2; grid-column: 1 / -1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
  .integ__set { height: 60px; }
  .integ__track { animation-duration: 34s; }
}
/* motion rests: all ten, still, in a wrapped row; no copies, no fade at the ends, no pause button */
@media (prefers-reduced-motion: reduce) {
  .integ { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-3); }
  .integ__label { max-width: none; }
  .integ__view { -webkit-mask-image: none; mask-image: none; }
  .integ__track { display: block; width: auto; animation: none; }
  .integ__set { flex-wrap: wrap; row-gap: var(--s-4); height: auto; padding: 0; }
  .integ__set + .integ__set, .integ__pause { display: none; }
}

/* ───────── 4. services: eight cards, each a small stage with depth ───────── */
/* A card is a stage (.svc-stage) with its own moving scene (.sc, .sc-floor: a different one for each service), its
   drawing floating above the scene (.svc-art), the words nearer still. The cell around it (.svc-cell) holds the grid place and the
   viewpoint, and never moves, so the card can lean inside it. Copper cards and ice-cyan cards alternate */
main > section#services { height: auto; min-height: calc(var(--h, 1) * 100svh); overflow-x: clip; }
.svc-head { position: relative; }
.svc-cell { --tone: var(--warm); display: flex; min-width: 0; perspective: 1100px; }
.svc-cell:nth-child(even) { --tone: var(--cool); }
.svc {
  --c-pad: var(--card-pad, 32px);
  position: relative; flex: 1 1 auto; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 700ms var(--ease-out), border-color 300ms ease, box-shadow 400ms ease;
  background: linear-gradient(180deg, #131920, #0b0f14);
  box-shadow: 0 34px 54px -38px rgb(0 0 0 / 0.95);
}
/* the light that follows the pointer: across the face of the card, and along its edge */
.svc::before, .svc::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 320ms var(--ease-out); }
.svc::before {
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--tone), transparent 72%);
  -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 exclude, linear-gradient(#000 0 0);
}
.svc::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--tone) 13%, transparent), transparent 62%); }

/* the stage: the top of the card. A glow at the horizon, a lit line along it, and lanes of light coming toward the viewer */
.svc-stage {
  position: relative; flex: none; height: 150px; margin: calc(-1 * var(--c-pad)) calc(-1 * var(--c-pad)) var(--s-4);
  border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0; overflow: hidden;
  perspective: 300px; perspective-origin: 50% 30%;
  background:
    radial-gradient(64% 70% at 50% 44%, color-mix(in oklab, var(--tone) 22%, transparent), transparent 72%),
    linear-gradient(180deg, color-mix(in oklab, var(--tone) 5%, transparent), transparent 46%);
}
.svc-stage::after { content: ""; position: absolute; left: 6%; right: 6%; top: 44%; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--tone) 90%, transparent) 30%, color-mix(in oklab, var(--tone) 90%, transparent) 70%, transparent); box-shadow: 0 0 16px 1px color-mix(in oklab, var(--tone) 55%, transparent); opacity: 0.75; }
.svc-stage--air::after { content: none; }

/* The scenes. Each service has its own (components/Services.tsx), so no two cards move alike. A scene on the floor
   (.sc-floor) lies flat and goes back to the horizon; the others (.sc) stand in the air behind the drawing.
   --u is one unit of a scene's size: 1px on a card, smaller on a phone's tile */
.svc-stage { --u: 1px; }
.sc, .sc-floor { position: absolute; pointer-events: none; opacity: 0.82; transition: opacity 400ms var(--ease-out); }
.sc { inset: 0; }
.sc-floor { left: -70%; right: -70%; top: 44%; height: 260%; transform-origin: 50% 0; transform: rotateX(76deg); overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 46%, transparent 78%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 46%, transparent 78%); }
.sc :is(i, b, em), .sc-floor :is(i, b, em) { position: absolute; display: block; }

/* 1. belts (process automation): work carried across on two sets of belts, the ice-cyan ones faster */
.sc-belts::before, .sc-belts::after { content: ""; position: absolute; inset: 0 -48px; -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 28px, transparent 28px 48px); mask-image: repeating-linear-gradient(90deg, #000 0 28px, transparent 28px 48px); }
.sc-belts::before { background: linear-gradient(0deg, color-mix(in oklab, var(--warm) 72%, transparent) 2px, transparent 2px) 0 0 / 100% 44px; }
.sc-belts::after { background: linear-gradient(0deg, color-mix(in oklab, var(--cool) 72%, transparent) 2px, transparent 2px) 0 22px / 100% 44px; }

/* 2. tiles (data analytics): a floor of dashboard tiles; three sets of them light and dim, each in its own time */
.sc-cells svg { position: absolute; left: 0; top: 0; width: 100%; height: 68%; }
.sc-cells__all { fill: color-mix(in oklab, var(--ink) 9%, transparent); }
.sc-cells__lit { fill: color-mix(in oklab, var(--cool) 62%, transparent); opacity: 0.5; }
.sc-cells__lit:nth-of-type(3) { fill: color-mix(in oklab, var(--warm) 62%, transparent); }

/* 3. the range ahead (forecasting): what has happened in copper, then the range of what may come opening out in ice-cyan */
.sc-cone { perspective: 320px; }
.sc-cone svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: 26% 64%; transform: rotateY(26deg) rotateX(8deg) scale(1.25); fill: none; stroke-linecap: round; }
.sc-cone path { vector-effect: non-scaling-stroke; }
.sc-cone__band { fill: color-mix(in oklab, var(--cool) 9%, transparent); }
.sc-cone__past { stroke: color-mix(in oklab, var(--warm) 80%, transparent); stroke-width: 1.6; }
.sc-cone__ray { stroke: color-mix(in oklab, var(--cool) 70%, transparent); stroke-width: 1.3; stroke-dasharray: 5 11; }
.sc-cone__ray:nth-of-type(odd) { stroke-dasharray: 2 9; }
.sc-cone__now { stroke: color-mix(in oklab, var(--ink) 34%, transparent); stroke-width: 1; stroke-dasharray: 2 5; }

/* 4. the ledger (finance automation): a sheet of entries running past at an angle, a light passing down it, every line ticked */
.sc-ledger { perspective: 340px; }
.sc-ledger b { left: 12%; top: -4%; width: 104%; height: 250%; transform-origin: 28% 18%; transform: rotateX(56deg) rotateZ(-20deg); overflow: hidden; border-radius: 8px; background: color-mix(in oklab, var(--ink) 4%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 10%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 62%); mask-image: linear-gradient(to bottom, #000 30%, transparent 62%); }
.sc-ledger b::before, .sc-ledger b::after { content: ""; position: absolute; inset: 0 0 -36px; }
.sc-ledger b::before {
  background: linear-gradient(90deg, transparent 0 6%, color-mix(in oklab, var(--ink) 34%, transparent) 6% 36%, transparent 36% 44%, color-mix(in oklab, var(--ink) 34%, transparent) 44% 60%, transparent 60% 82%, color-mix(in oklab, var(--cool) 80%, transparent) 82% 89%, transparent 89%);
  -webkit-mask-image: repeating-linear-gradient(180deg, transparent 0 7px, #000 7px 10px, transparent 10px 36px); mask-image: repeating-linear-gradient(180deg, transparent 0 7px, #000 7px 10px, transparent 10px 36px);
}
.sc-ledger b::after {
  background: linear-gradient(90deg, transparent 0 6%, color-mix(in oklab, var(--ink) 34%, transparent) 6% 26%, transparent 26% 44%, color-mix(in oklab, var(--ink) 34%, transparent) 44% 68%, transparent 68% 82%, color-mix(in oklab, var(--cool) 80%, transparent) 82% 89%, transparent 89%);
  -webkit-mask-image: repeating-linear-gradient(180deg, transparent 0 25px, #000 25px 28px, transparent 28px 36px); mask-image: repeating-linear-gradient(180deg, transparent 0 25px, #000 25px 28px, transparent 28px 36px);
}
.sc-ledger i { left: 0; right: 0; top: 6%; height: 18px; background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--warm) 60%, transparent) 16%, color-mix(in oklab, var(--warm) 60%, transparent) 84%, transparent); opacity: 0.3; }

/* 5. a voice (AI agents): rings spreading out across the floor, copper then ice-cyan */
.sc-ripples i { left: 50%; top: 22%; width: calc(300 * var(--u)); height: calc(300 * var(--u)); margin: calc(-150 * var(--u)) 0 0 calc(-150 * var(--u)); border-radius: 50%; border: 2px solid color-mix(in oklab, var(--warm) 80%, transparent); opacity: 0.45; transform: scale(calc(0.3 + var(--k) * 0.34)); }
.sc-ripples i:nth-child(even) { border-color: color-mix(in oklab, var(--cool) 80%, transparent); }

/* 6. orbits (systems integration): separate systems, each on its own ring, all round one centre */
.sc-orbits { perspective: 380px; }
.sc-orbits i { left: 50%; top: 50%; width: calc(var(--s) * var(--u)); height: calc(var(--s) * var(--u)); margin: calc(var(--s) * var(--u) / -2) 0 0 calc(var(--s) * var(--u) / -2); transform-style: preserve-3d; transform: rotateY(var(--ty)) rotateX(72deg); }
.sc-orbits i:nth-child(1) { --s: 236; --ty: 0deg; --d: 13s; --c: var(--cool); }
.sc-orbits i:nth-child(2) { --s: 176; --ty: 34deg; --d: 9s; --c: var(--warm); }
.sc-orbits i:nth-child(3) { --s: 118; --ty: -34deg; --d: 6.5s; --c: var(--cool); }
.sc-orbits b { inset: 0; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--c) 56%, transparent); }
.sc-orbits b::before { content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }

/* 7. the watch (managed support): a beam sweeping round on the floor, and one copper point that needs a look */
.sc-radar i, .sc-radar b { left: 50%; top: 22%; border-radius: 50%; }
.sc-radar b { width: calc(330 * var(--u)); height: calc(330 * var(--u)); margin: calc(-165 * var(--u)) 0 0 calc(-165 * var(--u)); background: conic-gradient(from 0deg, transparent 0 70%, color-mix(in oklab, var(--tone) 46%, transparent) 99.5%, transparent 100%); }
.sc-radar i { width: calc(330 * var(--u)); height: calc(330 * var(--u)); margin: calc(-165 * var(--u)) 0 0 calc(-165 * var(--u)); border: 1.5px solid color-mix(in oklab, var(--tone) 46%, transparent); }
.sc-radar i + i { width: calc(170 * var(--u)); height: calc(170 * var(--u)); margin: calc(-85 * var(--u)) 0 0 calc(-85 * var(--u)); }
.sc-radar em { left: calc(50% + 62 * var(--u)); top: calc(22% - 34 * var(--u)); width: calc(13 * var(--u)); height: calc(13 * var(--u)); border-radius: 50%; background: var(--cool); box-shadow: 0 0 16px var(--cool); opacity: 0.8; }
.svc-cell:nth-child(even) .sc-radar em { background: var(--warm); box-shadow: 0 0 16px var(--warm); }

/* 8. the road ahead (strategy and training): one road to the horizon, its centre line and its milestones coming up */
.sc-road::before, .sc-road::after { content: ""; position: absolute; left: 50%; width: calc(150 * var(--u)); margin-left: calc(-75 * var(--u)); }
.sc-road::before { top: 0; bottom: 0; border-inline: 2px solid color-mix(in oklab, var(--tone) 66%, transparent); }
.sc-road::after {
  top: calc(-84 * var(--u)); bottom: 0;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--ink) 62%, transparent) 0 calc(16 * var(--u)), transparent calc(16 * var(--u))) 50% 0 / 3px calc(28 * var(--u)) repeat-y,
    linear-gradient(180deg, color-mix(in oklab, var(--warm) 80%, transparent) 0 3px, transparent 3px) 0 0 / 100% calc(84 * var(--u)) repeat-y;
}
.svc-no { position: absolute; right: 14px; top: 12px; font: 400 11px/1 var(--font-mono); letter-spacing: 0.04em; color: color-mix(in oklab, var(--tone) 78%, var(--ink)); opacity: 0.85; }

/* the drawing floats above the floor, in the card's own depth, so it slides against the floor as the card leans */
.svc-art {
  position: absolute; left: var(--c-pad); top: 20px; width: calc(100% - 2 * var(--c-pad)); height: 108px; overflow: visible;
  transform: translateZ(34px); transition: transform 600ms var(--ease-out);
  fill: none; stroke: color-mix(in oklab, var(--ink) 64%, transparent); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 12px 10px rgb(0 0 0 / 0.6));
}
.svc-art rect:not([class]), .svc-art circle:not([class]) { fill: color-mix(in oklab, #0b0f14 78%, transparent); }
.svc-art .w { stroke: var(--warm); }
.svc-art .c { stroke: var(--cool); }
.svc-art .fi { fill: color-mix(in oklab, var(--ink) 52%, transparent); stroke: none; }
.svc-art .fw { fill: var(--warm); stroke: none; }
.svc-art .fc { fill: var(--cool); stroke: none; }
.svc-art .a-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.svc-art .a-grow, .svc-art .a-pop, .svc-art .a-level, .svc-art .a-ring { transform-box: fill-box; }
.svc-art .a-grow { transform-origin: 50% 100%; }
.svc-art .a-pop, .svc-art .a-level, .svc-art .a-ring { transform-origin: 50% 50%; }
.svc-art .a-ring { opacity: 0; }
.svc > h3 { transform: translateZ(20px); transition: transform 600ms var(--ease-out); }
.svc > p { transform: translateZ(10px); transition: transform 600ms var(--ease-out); }
@media (min-width: 1024px) { .svc > h3 { min-height: 2.6em; } }

/* the pause button, as on the other moving pictures */
.svc-pause { position: absolute; right: -14px; bottom: -6px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color 150ms ease, scale 160ms var(--ease-out); }
.svc-pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-pause[aria-pressed="true"] svg { fill: currentColor; }
.svc-pause:active { scale: 0.94; }
@media (hover: hover) and (pointer: fine) { .svc-pause:hover { color: var(--ink); } }

@media (prefers-reduced-motion: no-preference) {
  /* arriving: each card rises out of depth as it is reached, the four of a row one after another */
  .svc-grid.is-armed .svc-cell:not(.is-in) > .svc { opacity: 0; }
  .svc-cell.is-in > .svc { animation: svc-in 950ms var(--ease-out) calc(var(--col, 0) * 90ms) backwards; }
  /* on screen: the floor runs toward the viewer, the drawing hovers, and each card's drawing plays in its turn */
  /* each scene's own movement */
  .svc-grid.is-live .sc-belts::before { animation: sc-across 2.7s linear infinite; }
  .svc-grid.is-live .sc-belts::after { animation: sc-across 1.5s linear infinite; }
  .svc-grid.is-live .sc-cells__lit { animation: sc-lit calc(2.3s + var(--k) * 0.9s) ease-in-out calc(var(--k) * -1.3s) infinite alternate; }
  .svc-grid.is-live .sc-cone__ray { animation: sc-ray calc(1.1s + var(--k) * 0.12s) linear infinite; }
  .svc-grid.is-live .sc-ledger b::before, .svc-grid.is-live .sc-ledger b::after { animation: sc-sheet 2.2s linear infinite; }
  .svc-grid.is-live .sc-ledger i { animation: sc-check 3.8s ease-in-out infinite; }
  .svc-grid.is-live .sc-ripples i { animation: sc-ripple 4.4s cubic-bezier(0.2, 0.6, 0.3, 1) calc(var(--k) * 1.1s) infinite backwards; }
  .svc-grid.is-live .sc-orbits b { animation: sc-turn var(--d) linear infinite; }
  .svc-grid.is-live .sc-orbits i:nth-child(2) b { animation-direction: reverse; }
  .svc-grid.is-live .sc-radar b { animation: sc-turn 4.4s linear infinite; }
  .svc-grid.is-live .sc-radar em { animation: sc-blip 4.4s linear infinite; }
  .svc-grid.is-live .sc-road::after { animation: sc-ahead 2.6s linear infinite; }
  .svc-grid.is-live .svc-art { animation: svc-hover 6.5s ease-in-out calc(var(--n, 0) * -0.8s) infinite; }
  .svc-grid.is-live .a-draw { animation: svc-draw-loop 8s var(--ease-out) calc(var(--n, 0) * -1s + var(--i, 0) * 0.12s) infinite; }
  .svc-grid.is-live .a-grow { animation: svc-grow-loop 8s var(--ease-out) calc(var(--n, 0) * -1s + var(--i, 0) * 0.08s) infinite; }
  .svc-grid.is-live .a-pop { animation: svc-pop-loop 8s var(--ease-out) calc(var(--n, 0) * -1s + var(--i, 0) * 0.12s) infinite; }
  .svc-grid.is-live .a-level { animation: svc-level 700ms ease-in-out calc(var(--i, 0) * -70ms) infinite alternate; }
  .svc-grid.is-live .a-ring { animation: svc-ring 2600ms var(--ease-out) infinite; }
  .svc-grid[data-paused] :is(.svc-art, .svc-art *) { animation-play-state: paused; }
  .svc-grid[data-paused] .svc-stage :is(*, *::before, *::after) { animation-play-state: paused; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* under the pointer: the card follows it closely, lifts, lights, and its drawing comes forward and plays at once */
  .svc-cell:hover > .svc { transition-duration: 140ms, 300ms, 400ms; border-color: color-mix(in oklab, var(--tone) 34%, transparent); box-shadow: 0 46px 70px -34px rgb(0 0 0 / 1), 0 0 60px -24px color-mix(in oklab, var(--tone) 60%, transparent); }
  .svc-cell:hover > .svc::before, .svc-cell:hover > .svc::after { opacity: 1; }
  .svc-cell:hover .svc-art { transform: translateZ(64px); }
  .svc-cell:hover .svc > h3 { transform: translateZ(34px); }
  .svc-cell:hover .svc > p { transform: translateZ(18px); }
  .svc-cell:hover .svc-stage > :is(.sc, .sc-floor) { opacity: 1; }
  .svc-cell:hover .a-draw { animation: svc-draw 620ms var(--ease-out) calc(var(--i, 0) * 110ms) both; }
  .svc-cell:hover .a-grow { animation: svc-grow 560ms var(--ease-out) calc(var(--i, 0) * 70ms) both; }
  .svc-cell:hover .a-pop { animation: svc-pop 360ms var(--ease-out) calc(var(--i, 0) * 110ms) both; }
  .svc-cell:hover .a-ring { animation: svc-ring 1200ms var(--ease-out) infinite; }
}
@keyframes svc-in { from { opacity: 0; transform: translate3d(0, 56px, -140px) rotateX(-22deg); } }
@keyframes sc-across { to { transform: translateX(48px); } }
@keyframes sc-lit { from { opacity: 0.08; } to { opacity: 0.85; } }
@keyframes sc-ray { to { stroke-dashoffset: -16; } }
@keyframes sc-sheet { to { transform: translateY(-36px); } }
@keyframes sc-check { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 0.34; } 88% { opacity: 0.34; } 100% { transform: translateY(calc(150 * var(--u))); opacity: 0; } }
@keyframes sc-ripple { 0% { transform: scale(0.06); opacity: 0; } 12% { opacity: 0.95; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes sc-turn { to { rotate: 360deg; } }
@keyframes sc-blip { 0%, 100% { opacity: 0.18; scale: 1; } 30% { opacity: 0.18; scale: 1; } 36% { opacity: 1; scale: 1.5; } 70% { opacity: 0.3; scale: 1; } }
@keyframes sc-ahead { to { transform: translateY(calc(84 * var(--u))); } }
@keyframes svc-hover { 50% { translate: 0 -5px; } }
@keyframes svc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes svc-grow { from { transform: scaleY(0.3); } to { transform: none; } }
@keyframes svc-pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes svc-level { from { transform: scaleY(0.45); } to { transform: none; } }
@keyframes svc-ring { from { transform: none; opacity: 0.9; } to { transform: scale(2.3); opacity: 0; } }
/* the loops: play, hold the finished picture, then draw back, so the loop has no jump */
@keyframes svc-draw-loop { 0% { stroke-dashoffset: 1; } 10%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
@keyframes svc-grow-loop { 0% { transform: scaleY(0.3); } 9%, 93% { transform: none; } 100% { transform: scaleY(0.3); } }
@keyframes svc-pop-loop { 0% { transform: scale(0.4); opacity: 0; } 6%, 94% { transform: none; opacity: 1; } 100% { transform: scale(0.4); opacity: 0; } }
/* a tablet: two cards to a row (the kit's two-up rule looks for the card itself as the grid's child; here that is the cell) */
@media (min-width: 640px) and (max-width: 1023px) { .svc-grid > .svc-cell { grid-column: auto / span 6; } }
/* a phone: the stage is a tile beside the words, flat (no lean without a pointer); the floor and the drawing still move */
@media (max-width: 639px) {
  #services { --hm: 2; }
  #services .grid { row-gap: 56px; }
  .svc-cell { perspective: none; }
  .svc { display: grid; grid-template-columns: 124px minmax(0, 1fr); column-gap: var(--s-4); align-items: start; padding: 0; border: 0; background: none; box-shadow: none; transform: none; }
  .svc-stage { --u: 0.48px; grid-row: 1 / span 2; width: 124px; height: 112px; margin: 0; border-radius: var(--r-md, 12px); box-shadow: inset 0 0 0 1px var(--line); }
  .sc-belts, .sc-cells { left: -190%; right: -190%; transform: rotateX(76deg) scale(0.5); }
  .svc-art { left: 12px; top: 14px; width: 100px; height: 72px; transform: none; filter: none; }
  .svc-no { right: 8px; top: 8px; font-size: 10px; }
  .svc > h3, .svc > p { transform: none; }
  @keyframes svc-in { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
}
/* motion rests: no lean, no moving floor, no pause button; every drawing is its finished picture */
@media (prefers-reduced-motion: reduce) {
  .svc, .svc-art, .svc > h3, .svc > p { transform: none; transition: none; }
  .svc-pause { display: none; }
}

/* ───────── 5. how we work: one process board in 3D, held while the five steps happen to it ───────── */
/* components/Method.tsx. The section is tall and its stage sticks, so the page scrolls as it always does. The script
   writes how far through the stage the page is into one number, --p (0 to 5 and a little over: one for each step),
   and everything below is worked out from it. At rest (no scripts, reduced motion, or a screen too short to hold the
   stage) --p is its last value: the board stands as it ends and the five steps are all in full.
   Sizes that depend on the screen's height use svh, which a phone's address bar does not change as it hides */
main > section#method { --p: 5.3; display: block; height: auto; min-height: 0; padding: 0; }
main > section#method.is-pinned { height: 420svh; }
.method__probe { position: fixed; top: 0; left: 0; width: 0; height: 100svh; visibility: hidden; pointer-events: none; }
.method__pin { padding: var(--padt) 0 var(--padb); }
.method.is-pinned .method__pin { position: sticky; top: 0; display: grid; height: 100svh; padding: calc(var(--nav) + 16px) 0 20px; overflow: clip; }
.method__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); min-height: 0; }

/* the words: the heading, the five steps, and the promise */
.method__text { display: grid; gap: var(--s-5); align-content: center; min-width: 0; }
.method__steps { position: relative; display: grid; margin: 0; padding: 0; list-style: none; }
.method__step { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); column-gap: 10px; padding: 9px 0 9px 18px; border-left: 1px solid var(--line); }
.method__no { font: 400 12px/2 var(--font-mono); color: var(--muted); transition: color 260ms ease; }
.method__name { font: 500 var(--t-lead)/1.3 var(--font-text); letter-spacing: -0.01em; color: var(--ink); transition: color 260ms ease; }
.method__line { grid-column: 2; }
.method__line p { margin: 4px 0 0; max-width: 42ch; color: var(--muted); }
.method__promise { margin: 0; font: 600 clamp(26px, 2.7vw, 42px)/1.08 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.method__promise span { display: block; color: var(--warm); }
/* held: only the step in hand is open; a line runs down beside the steps as far as the story has got */
.method.is-pinned .method__steps::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: linear-gradient(180deg, var(--warm), var(--cool)); transform-origin: 50% 0; transform: scaleY(clamp(0, calc(var(--p) / 5), 1)); }
.method.is-pinned :is(.method__name, .method__no) { color: var(--muted); }
.method.is-pinned .method__line { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 380ms var(--ease-out); }
.method.is-pinned .method__line p { min-height: 0; margin: 0; overflow: hidden; opacity: 0; transition: opacity 240ms ease; }
.method.is-pinned[data-stage="0"] .method__step:nth-child(1) .method__name, .method.is-pinned[data-stage="1"] .method__step:nth-child(2) .method__name, .method.is-pinned[data-stage="2"] .method__step:nth-child(3) .method__name, .method.is-pinned[data-stage="3"] .method__step:nth-child(4) .method__name, .method.is-pinned[data-stage="4"] .method__step:nth-child(5) .method__name { color: var(--ink); }
.method.is-pinned[data-stage="0"] .method__step:nth-child(1) .method__no, .method.is-pinned[data-stage="1"] .method__step:nth-child(2) .method__no, .method.is-pinned[data-stage="2"] .method__step:nth-child(3) .method__no, .method.is-pinned[data-stage="3"] .method__step:nth-child(4) .method__no, .method.is-pinned[data-stage="4"] .method__step:nth-child(5) .method__no { color: var(--cool); }
.method.is-pinned[data-stage="0"] .method__step:nth-child(1) .method__line, .method.is-pinned[data-stage="1"] .method__step:nth-child(2) .method__line, .method.is-pinned[data-stage="2"] .method__step:nth-child(3) .method__line, .method.is-pinned[data-stage="3"] .method__step:nth-child(4) .method__line, .method.is-pinned[data-stage="4"] .method__step:nth-child(5) .method__line { grid-template-rows: 1fr; }
.method.is-pinned[data-stage="0"] .method__step:nth-child(1) .method__line p, .method.is-pinned[data-stage="1"] .method__step:nth-child(2) .method__line p, .method.is-pinned[data-stage="2"] .method__step:nth-child(3) .method__line p, .method.is-pinned[data-stage="3"] .method__step:nth-child(4) .method__line p, .method.is-pinned[data-stage="4"] .method__step:nth-child(5) .method__line p { padding-top: 4px; opacity: 1; transition-delay: 120ms; }
/* the promise comes in with the fourth step and goes as the fifth begins */
.method.is-pinned .method__promise { --on: clamp(0, min(calc((var(--p) - 3.12) * 3.4), calc((4.24 - var(--p)) * 3.4)), 1); opacity: var(--on); transform: translateY(calc((1 - var(--on)) * 14px)); }

/* the board's side: a small caption over it (what it is, whose it is, and where the story has got to) */
.method__view { position: relative; isolation: isolate; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-3); min-width: 0; min-height: 0; }
.method__view::before { content: ""; position: absolute; inset: -8% -12%; z-index: -1; pointer-events: none; background: radial-gradient(44% 50% at 54% 56%, color-mix(in oklab, var(--cool) 12%, transparent), transparent 72%), radial-gradient(38% 44% at 22% 72%, color-mix(in oklab, var(--warm) 10%, transparent), transparent 72%); }
.method__hud { display: flex; align-items: baseline; gap: 12px; margin: 0; font: 400 12px/1.4 var(--font-mono); color: var(--muted); white-space: nowrap; }
.method:not(.is-pinned) .method__hud { flex-wrap: wrap; }
.method__hud-t { font: 600 14px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.method__note { margin-left: auto; color: var(--cool); font-variant-numeric: tabular-nums; }
.method__key { display: inline-flex; align-items: center; gap: 7px; margin-left: 14px; }
.method__key i { width: 8px; height: 8px; border-radius: 2px; background: var(--warm); }
.method__key i + i { margin-left: 8px; background: var(--cool); }
.method.is-pinned .method__key { display: none; margin-left: auto; }
.method.is-pinned[data-stage="3"] .method__key { display: inline-flex; }
.method.is-pinned[data-stage="3"] .method__note { display: none; }

/* a tile's own progress through the story, from --p and its turn:
   --a arrived, --e scored, --o set aside, --c priced, --g the last step */
.pt {
  --a: clamp(0, calc(var(--p) * 1.5 - var(--i) * 0.032), 1);
  --e: clamp(0, calc((var(--p) - 1) * 1.5 - var(--i) * 0.032), 1);
  --o: clamp(0, calc((var(--p) - var(--out-at)) * 3.2), 1);
  --c: clamp(0, calc((var(--p) - 3) * 1.7 - var(--j) * 0.05), 1);
  --g: clamp(0, calc((var(--p) - 4) * 1.5), 1);
}

/* the board, flat (a phone): a row for each department under its name, every tile named. A tile carries its
   name, and under it its score, which gives way to its two costs once it is priced */
.pb { --rx: 0deg; --rz: 0deg; min-height: 0; }
.pb__plane { position: relative; display: grid; gap: clamp(6px, 1.2svh, 10px); }
.pb__col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; }
.pb__dept { grid-column: 1 / -1; font: 400 clamp(10px, 1.6svh, 11px)/1.2 var(--font-mono); color: var(--muted); }
.pb__ring, .pt__ground, .pt__bar i { display: none; }
.pt { position: relative; height: clamp(38px, 6.4svh, 58px); border-radius: 10px; transform: translateY(calc((1 - var(--a)) * 8px)) scale(calc(1 - 0.03 * var(--o))); }
.pt__plate { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(150deg, #1e2832, #111820); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 13%, transparent); opacity: calc(0.2 + 0.8 * var(--a) * (1 - 0.62 * var(--o))); }
.pt--first .pt__plate::after { content: ""; position: absolute; inset: -1px; padding: 1.5px; border-radius: inherit; background: linear-gradient(120deg, var(--warm), var(--cool)); -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 exclude, linear-gradient(#000 0 0); opacity: var(--g); }
.pt__name { position: absolute; left: 9px; right: 9px; top: clamp(5px, 1.05svh, 9px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 12px/14px var(--font-display); letter-spacing: -0.01em; color: var(--ink); opacity: calc(var(--a) * (1 - 0.4 * var(--o))); }
.pt__pips { --gone: min(1, var(--c) * 4); position: absolute; left: 9px; bottom: clamp(6px, 1.2svh, 10px); display: flex; gap: 3px; opacity: calc(var(--a) * (1 - var(--gone) * var(--keep)) * (1 - 0.5 * var(--o))); }
.pt__pips i { position: relative; width: 7px; height: 7px; border-radius: 2px; background: color-mix(in oklab, var(--ink) 18%, transparent); }
.pt__pips i.is-on::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--cool); opacity: clamp(0, calc(var(--e) * 4.6 - var(--n) + 1), 1); }
.pt__bars { position: absolute; left: 9px; right: 46px; bottom: clamp(5px, 1.1svh, 9px); display: grid; gap: 3px; }
.pt__bar { height: 3px; border-radius: 2px; background: var(--warm); width: calc(var(--c) * var(--v) * 1% * (1 - var(--o)) * (1 - var(--g) * (0.45 + 0.55 * var(--first)))); }
.pt__bar--system { background: var(--cool); }
.pt__tag { position: absolute; right: 6px; bottom: clamp(4px, 0.8svh, 7px); padding: 3px 6px; border-radius: 999px; font: 500 10px/1 var(--font-mono); color: var(--cool); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--cool) 50%, transparent); opacity: var(--g); }
.pt__tag--live { color: #07090b; background: linear-gradient(90deg, var(--warm), var(--cool)); box-shadow: none; }

/* a phone or a tablet, held: the heading, the step in hand, the board, and the promise at the foot */
@media (max-width: 1023px) {
  .method.is-pinned .method__pin { padding: calc(var(--nav) + 12px) 0 0; }
  .method.is-pinned .method__in { grid-template-rows: auto minmax(0, 1fr); gap: var(--s-3); }
  .method.is-pinned .method__text { gap: 10px; align-content: start; }
  .method.is-pinned .method__text h2 { font-size: clamp(24px, 6.4vw, 34px); line-height: 1.08; }
  .method.is-pinned .method__steps { min-height: clamp(78px, 12svh, 104px); align-content: start; }
  .method.is-pinned .method__steps::before { content: none; }
  .method.is-pinned .method__step { border-left: 0; padding: 0; }
  .method.is-pinned:not([data-stage="0"]) .method__step:nth-child(1), .method.is-pinned:not([data-stage="1"]) .method__step:nth-child(2), .method.is-pinned:not([data-stage="2"]) .method__step:nth-child(3), .method.is-pinned:not([data-stage="3"]) .method__step:nth-child(4), .method.is-pinned:not([data-stage="4"]) .method__step:nth-child(5) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .method.is-pinned .method__view { padding-bottom: clamp(70px, 11.5svh, 104px); grid-template-rows: auto auto; align-content: start; }
  .method.is-pinned .method__promise { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(12px, 2.4svh, 24px); font-size: clamp(20px, min(6vw, 3.6svh), 32px); }
  .method.is-pinned .method__promise span { display: inline; }
  .method__hud { gap: 8px; font-size: 11px; }
  .method__hud-t { font-size: 13px; }
  .method__key { gap: 5px; }
}
/* a phone at rest (nothing held): the tiles need not be squeezed to fit one screen */
@media (max-width: 639px) { .method:not(.is-pinned) .pt { height: 54px; } }

/* a tablet and wider: the board stands in 3D. It turns a little as the story goes; each tile is a plate that lifts
   off the board; the names and labels stand upright and face the reader, so they read at their true size */
@media (min-width: 640px) {
  .pb { --rx: calc(55deg - var(--p) * 1.4deg); --rz: calc(-37deg + var(--p) * 2.4deg); display: grid; place-items: center; margin-inline: -24px; font-size: clamp(10px, min(1.7vw, 1.75svh), 19px); perspective: 130em; }
  .method:not(.is-pinned) .pb { padding-block: 5em 2em; }
  .method.is-pinned .method__view { grid-template-rows: auto auto; align-content: center; }
  .method.is-pinned .pb { padding-block: 3em 2.5em; }
  /* under the words (a tablet) the board runs the full width of the screen and is seen from a little higher */
  @media (max-width: 1023px) { .pb { --rx: calc(49deg - var(--p) * 1.2deg); margin-inline: calc(-1 * var(--gut)); font-size: clamp(10px, min(1.9vw, 1.5svh), 19px); } }
  .pb__plane { grid-template-columns: repeat(5, 7.4em); gap: 1em; padding: 1.5em 1.5em 3em; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateZ(var(--rz)); }
  .pb__plane::before { content: ""; position: absolute; inset: 0; border-radius: 1.6em; background: linear-gradient(160deg, color-mix(in oklab, var(--ink) 7%, transparent), color-mix(in oklab, var(--ink) 2%, transparent)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 11%, transparent); }
  .pb__col { position: relative; grid-template-columns: none; gap: 1em; transform-style: preserve-3d; }
  /* a department's name stands at the near end of its column, where no plate or cost column can stand in front of it */
  .pb__dept { position: absolute; left: 0.4em; top: calc(100% + 1.15em); white-space: nowrap; font-size: max(11px, 0.72em); transform-origin: 0 0; transform: translateZ(0.2em) rotateZ(calc(-1 * var(--rz))) rotateX(calc(-1 * var(--rx))) translate(0, -50%); }

  .pt {
    --lift: calc(0.12em + (1 - var(--a)) * 2.6em + var(--e) * var(--score) * 0.17em * (1 - var(--o)) + var(--g) * var(--first) * 1.5em);
    width: 7.4em; height: 6.2em; border-radius: 0.8em;
    transform-style: preserve-3d; transform: translateZ(var(--lift));
  }
  /* what stays on the board under a plate: the empty place before a process is mapped, then the plate's shadow */
  .pt__ground { display: block; position: absolute; inset: 0; border-radius: inherit; transform: translateZ(calc(-1 * var(--lift))); }
  .pt__ground::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px dashed color-mix(in oklab, var(--ink) 22%, transparent); opacity: calc(1 - var(--a)); }
  .pt__ground::after { content: ""; position: absolute; inset: 0.25em; border-radius: inherit; background: rgb(0 0 0 / 0.62); filter: blur(0.5em); opacity: calc(var(--a) * 0.9); }
  .pt__plate { opacity: calc(var(--a) * (1 - 0.6 * var(--o))); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 14%, transparent), inset 0 1px 0 color-mix(in oklab, var(--ink) 16%, transparent); }
  .pt--first .pt__plate { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 14%, transparent), 0 0 calc(var(--g) * 2.6em) calc(var(--g) * 0.1em) color-mix(in oklab, var(--cool) 46%, transparent), calc(var(--g) * -0.8em) 0 calc(var(--g) * 2.2em) calc(var(--g) * -0.2em) color-mix(in oklab, var(--warm) 60%, transparent); }
  .pt__pips { --gone: var(--c); left: 0.8em; top: 0.8em; bottom: auto; gap: 0.26em; transform: translateZ(1px); }
  .pt__pips i { width: 0.64em; height: 0.64em; border-radius: 0.16em; }
  /* the two costs: a copper column for today and an ice-cyan one for a system, standing at the back of the plate */
  .pt__bars { display: contents; }
  .pt__bar {
    --h: calc(var(--c) * var(--v) * 0.04em * (1 - var(--o)) * (1 - var(--g) * (0.5 + 0.5 * var(--first))));
    position: absolute; top: 0.6em; right: 1.9em; width: 1em; height: 1em; border-radius: 0; background: none; transform-style: preserve-3d;
  }
  .pt__bar--system { right: 0.55em; background: none; }
  .pt__bar i { display: block; position: absolute; }
  .pt__bar i:nth-child(1) { inset: 0; transform: translateZ(var(--h)); opacity: clamp(0, calc(var(--c) * 9 * (1 - var(--o))), 1); background: color-mix(in oklab, var(--warm), #fff 16%); }
  .pt__bar i:nth-child(2) { left: 0; top: 100%; width: 100%; height: var(--h); transform-origin: 50% 0; transform: rotateX(90deg); background: color-mix(in oklab, var(--warm) 80%, #000); }
  .pt__bar i:nth-child(3) { top: 0; right: 100%; width: var(--h); height: 100%; transform-origin: 100% 50%; transform: rotateY(90deg); background: color-mix(in oklab, var(--warm) 56%, #000); }
  .pt__bar--system i:nth-child(1) { background: color-mix(in oklab, var(--cool), #fff 16%); }
  .pt__bar--system i:nth-child(2) { background: color-mix(in oklab, var(--cool) 76%, #000); }
  .pt__bar--system i:nth-child(3) { background: color-mix(in oklab, var(--cool) 50%, #000); }
  .pt__name { left: 36%; right: auto; top: 74%; overflow: visible; font-size: max(12px, 0.84em); line-height: 1.15; text-shadow: 0 1px 8px rgb(0 0 0 / 0.95), 0 0 2px rgb(0 0 0 / 0.9); transform-origin: 0 0; transform: translateZ(0.6em) rotateZ(calc(-1 * var(--rz))) rotateX(calc(-1 * var(--rx))) translate(-50%, -50%); }
  /* the tag stands at the plate's near edge, so on screen it sits under the name and the plate never covers it */
  .pt__tag { right: auto; bottom: auto; left: 19%; top: 101%; font-size: max(10px, 0.66em); white-space: nowrap; background: #0c1116; transform-origin: 0 0; transform: translateZ(0.6em) rotateZ(calc(-1 * var(--rz))) rotateX(calc(-1 * var(--rx))) translate(-50%, -50%); }
  .pt__tag--live { background: linear-gradient(90deg, var(--warm), var(--cool)); }
  /* as the first system goes live a ring of both colours runs out across the board from it */
  .pb__ring { --gg: clamp(0, calc((var(--p) - 4.05) * 1.25), 1); display: block; position: absolute; left: 5.2em; top: 4.6em; width: 6em; height: 6em; margin: -3em 0 0 -3em; border-radius: 50%; background: conic-gradient(var(--warm), var(--cool), var(--warm)); -webkit-mask: radial-gradient(closest-side, transparent 90%, #000 91%); mask: radial-gradient(closest-side, transparent 90%, #000 91%); transform: translateZ(1px) scale(calc(0.4 + var(--gg) * 4.2)); opacity: calc(var(--gg) * (1 - var(--gg)) * 3.4); }
}

/* a wide screen: the words stand beside the board, which may run past the page's right-hand margin so it can be
   as large as the screen allows. On a short laptop screen the words draw in, so nothing is cut off */
@media (min-width: 1024px) {
  .method__in { grid-template-columns: minmax(0, 3.8fr) minmax(0, 8.2fr); column-gap: var(--s-6); align-items: center; }
  .method.is-pinned .method__in { align-items: stretch; }
  .method__view { align-self: stretch; }
  .method.is-pinned .method__view { grid-template-rows: auto minmax(0, 1fr); align-content: normal; }
  .method.is-pinned .pb { padding-block: 0; }
  .method.is-pinned .method__text { gap: min(var(--s-5), 2.6svh); }
  .method.is-pinned .method__text h2 { font-size: min(var(--t-h2), 5.4svh); }
  .method.is-pinned .method__step { padding-block: min(9px, 1svh); }
  .method.is-pinned .method__promise { font-size: clamp(24px, min(2.7vw, 4.6svh), 42px); }
  .pb { margin-inline: 0 calc(24px - (100vw - min(100vw - 2 * var(--gut), var(--container))) / 2); font-size: clamp(10px, min(1.17vw, 2.2svh), 24px); }
}

/* ───────── 6. signed off by a person: a working sheet with four tabs ───────── */
/* Sections 6 and 7 may grow past one screen, and a tilted window may overhang its column */
main > :is(section#sign-off, section#insight) { height: auto; min-height: calc(var(--h, 1) * 100svh); overflow-x: clip; }
/* the working sheet's section is as tall as its content, so no empty band is left under the window */
main > section#sign-off { min-height: 0; }

/* a product window that tilts in depth and levels as it is reached (lib/level.ts writes --lv, 0 to 1, on the
   box; its child takes the tilt, so the box that is measured never moves). At rest --lv is 1: level */
.depth { --lv: 1; perspective: 1500px; }
.depth > * { position: relative; transform-origin: 50% 100%;
  transform: translateY(calc((1 - var(--lv)) * 56px)) rotateX(calc((1 - var(--lv)) * 17deg)) scale(calc(0.92 + 0.08 * var(--lv)));
  box-shadow: 0 calc(12px + var(--lv) * 28px) 90px -40px rgb(0 0 0 / 0.75); }
.depth--side > * { transform-origin: 0 60%;
  transform: translateY(calc((1 - var(--lv)) * 40px)) rotateY(calc((1 - var(--lv)) * -16deg)) rotateX(calc((1 - var(--lv)) * 7deg)) scale(calc(0.93 + 0.07 * var(--lv))); }
/* the glass catches the light once as it levels */
.depth.is-live > *::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / 0.07) 50%, transparent 62%);
  transform: translateX(calc((var(--lv) * 2 - 1) * 100%)); opacity: calc(4 * var(--lv) * (1 - var(--lv))); }

.signoff__head { display: grid; gap: var(--s-4) var(--gutter); margin-bottom: var(--head-gap, var(--s-7)); }
.signoff__head > p { max-width: 38ch; color: var(--muted); }
@media (min-width: 1024px) {
  .signoff__head { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .signoff__head > h2 { grid-column: 1 / span 7; }
  .signoff__head > p { grid-column: 9 / span 4; padding-bottom: 0.35em; }
}
/* the window: cool is what the systems matched, warm is what waits for a person (and the person's own mark) */
.sheet { --sh-line: color-mix(in oklab, var(--ink) 9%, transparent); --sh-text: color-mix(in oklab, var(--ink) 86%, var(--surface));
  position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: clip; font-size: 14px; line-height: 20px; text-align: left; }
.sheet :where(p, dl, dd) { margin: 0; }
.sheet__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--sh-line); }
.sheet__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.sheet__title svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.3; }
.sheet__co { font-weight: 400; color: var(--muted); }
/* how many sheets still wait for a person; the number drops as each is signed */
.sheet__count { display: inline-flex; align-items: center; gap: 6px; height: 26px; margin-right: auto; padding: 0 10px; border-radius: 999px; font-size: 13px; line-height: 1; white-space: nowrap;
  color: var(--warm); background: color-mix(in oklab, var(--warm) 13%, transparent); transition: color 320ms ease, background-color 320ms ease; }
.sheet__count-n { display: inline-block; min-width: 1ch; font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: center; }
.sheet__count-n.is-drop { animation: so-drop 440ms var(--ease-out); }
@keyframes so-drop { from { opacity: 0; transform: translateY(-80%); filter: blur(2px); } }
.sheet__count[data-left="0"] { color: var(--ink); background: color-mix(in oklab, var(--ink) 9%, transparent); }
.sheet__count[data-left="0"] .sheet__count-n { display: none; }
.sheet__tabs { gap: 6px; }
.sheet__tabs .tab { display: inline-flex; align-items: center; gap: 7px; }
.tab__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--warm); transition: background-color 320ms ease 300ms, scale 320ms var(--ease-out) 300ms; }
.tab[data-signed] .tab__dot { background: color-mix(in oklab, currentColor 38%, transparent); scale: 0.8; }
.sheet__body { display: grid; grid-template-columns: minmax(0, 1fr); }
.sheet__body[hidden] { display: none; }
.sheet__lines { --row-h: 56px; --m-cycle: 3.6s; --m-still: 0.8; --m-safe: 0px; position: relative; min-width: 0; padding: 2px 20px 6px; }
.sheet__row { display: grid; grid-template-columns: minmax(0, 1.2fr) 128px 64px minmax(0, 1fr) 132px; align-items: center; column-gap: 12px; min-height: var(--row-h);
  margin-inline: -20px; padding-inline: 20px; border-bottom: 1px solid var(--sh-line); }
.sheet__row:last-child { border-bottom: 0; }
.sheet__row--head { min-height: 40px; font-size: 13px; color: var(--muted); }
.sheet__src { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sheet__name { font-size: 15px; color: var(--ink); }
.sheet__sub { font-size: 13px; color: var(--muted); white-space: nowrap; }
.sheet__amt { font-family: var(--font-mono); font-size: 13px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--ink); }
.sheet__row--head .sheet__amt { font-family: inherit; letter-spacing: 0; color: inherit; }
.sheet__to { color: var(--sh-text); }
.sheet__row--head .sheet__to { color: inherit; }
.sheet__status { display: grid; justify-items: end; }
.sheet__status > .chip { grid-area: 1 / 1; }
/* the join between a line and what it was matched to: dashed while open, drawn in cool once matched */
.sheet__link { position: relative; height: 1px; background: linear-gradient(90deg, color-mix(in oklab, var(--ink) 26%, transparent) 50%, transparent 0) 0 0 / 6px 1px; }
.sheet__row--head .sheet__link { background: none; }
.sheet__link i { position: absolute; inset: 0; background: var(--cool); }
.sheet__link i::after { content: ""; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--cool); }
/* the exception: a warm wash on its line, and a join that stays open until a person closes it (then it is drawn in ink) */
.sheet__row--flag { position: relative; isolation: isolate; }
.sheet__row--flag::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in oklab, var(--warm) 11%, transparent), transparent 70%); transition: opacity 260ms ease; }
.sheet__row--flag .sheet__link i { background: linear-gradient(color-mix(in oklab, var(--ink) 60%, transparent) 0 0) no-repeat 0 0 / 0% 100%; transition: background-size 200ms ease; }
.sheet__row--flag .sheet__link i::after { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--warm); transition: background-color 200ms ease, box-shadow 200ms ease; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 13px; line-height: 1; font-weight: 500; white-space: nowrap; }
.chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip--ok { color: var(--cool); background: color-mix(in oklab, var(--cool) 10%, transparent); }
.chip--wait { color: var(--muted); background: color-mix(in oklab, var(--ink) 6%, transparent); }
.chip--flag { color: var(--warm); background: color-mix(in oklab, var(--warm) 14%, transparent); transition: opacity 160ms ease, visibility 0s; }
.chip--signed { visibility: hidden; opacity: 0; transform: scale(0.9); color: var(--ink); background: color-mix(in oklab, var(--ink) 10%, transparent); transition: opacity 160ms ease, transform 160ms ease, visibility 0s 160ms; }
.chip__mark { width: 6px; height: 6px; margin: 0 3px; border-radius: 50%; background: currentColor; }
.chip__spin { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--ink) 20%, transparent); border-top-color: var(--ink); animation: so-spin 1s linear infinite; }
/* the two lines that match as you watch: one cycle, the kit pauses it and holds it at its finished frame */
.sheet__row--soon { animation: so-glow-soon var(--m-cycle) linear infinite; }
.sheet__row--late { animation: so-glow-late var(--m-cycle) linear infinite; }
.sheet__row--soon .chip--wait { animation: so-wait-soon var(--m-cycle) linear infinite; }
.sheet__row--late .chip--wait { animation: so-wait-late var(--m-cycle) linear infinite; }
.sheet__row--soon :is(.chip--ok, .sheet__link i) { animation: so-ok-soon var(--m-cycle) linear infinite; }
.sheet__row--late :is(.chip--ok, .sheet__link i) { animation: so-ok-late var(--m-cycle) linear infinite; }
@keyframes so-spin { to { transform: rotate(360deg); } }
@keyframes so-wait-soon { 0%, 30% { opacity: 1; } 32%, 95% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes so-ok-soon { 0%, 30% { opacity: 0; } 32%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes so-wait-late { 0%, 56% { opacity: 1; } 58%, 95% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes so-ok-late { 0%, 56% { opacity: 0; } 58%, 95% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes so-glow-soon { 0%, 30% { background-color: transparent; } 33% { background-color: color-mix(in oklab, var(--cool) 10%, transparent); } 50%, 100% { background-color: transparent; } }
@keyframes so-glow-late { 0%, 56% { background-color: transparent; } 59% { background-color: color-mix(in oklab, var(--cool) 10%, transparent); } 76%, 100% { background-color: transparent; } }

/* the beam: once the window is nearly level, a band of warm light runs down the lines and lands on the exception.
   Until then (while the script is watching) the exception is one more quiet line. It plays again when a tab opens */
.sheet__lines::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: var(--row-h); pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, color-mix(in oklab, var(--warm) 32%, transparent), color-mix(in oklab, var(--warm) 9%, transparent) 62%, transparent);
  box-shadow: 0 0 34px color-mix(in oklab, var(--warm) 34%, transparent), inset 0 1px 0 color-mix(in oklab, var(--warm) 60%, transparent), inset 0 -1px 0 color-mix(in oklab, var(--warm) 60%, transparent); }
.depth.is-live:not([data-landed]) .sheet__row--flag::before { opacity: 0; }
.depth.is-live:not([data-landed]) .chip--flag { opacity: 0; }
.depth[data-landed] .sheet__lines::after { animation: so-beam 1600ms cubic-bezier(0.22, 1, 0.36, 1) 150ms both; }
.depth[data-landed] .sheet__row--flag::before { animation: so-wash 500ms ease 950ms backwards; }
.depth[data-landed] .chip--flag { animation: so-pop 380ms var(--ease-out) 1050ms backwards; }
@keyframes so-beam { 0% { opacity: 0; transform: translateY(-460%); } 14% { opacity: 1; } 60% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(0); } }
@keyframes so-wash { from { opacity: 0; } }
@keyframes so-pop { from { opacity: 0; transform: scale(0.82); } }

/* the exception and its reviewer */
.sheet__review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; column-gap: var(--s-6); padding: 18px 64px 20px 20px; border-top: 1px solid var(--sh-line); background: color-mix(in oklab, var(--ink) 2.5%, transparent); }
.sheet__review > * { grid-column: 1; }
.sheet__label { font-size: 13px; font-weight: 500; color: var(--warm); }
.sheet__label-done { display: none; color: var(--ink); }
.sheet__case { margin-top: 6px; font-size: 17px; line-height: 24px; font-weight: 500; color: var(--ink); }
.sheet__note { margin-top: 2px; color: var(--sh-text); }
.sheet__evidence { grid-column: 2; grid-row: 1 / span 5; align-self: start; display: grid; border-top: 1px solid var(--sh-line); }
.sheet__evidence > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sh-line); }
.sheet__evidence dt { color: var(--muted); }
.sheet__evidence dd { font-family: var(--font-mono); font-size: 13px; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
/* where the reviewer signs: a line to sign on with the role under it. Signing draws the signature in warm ink
   (a person's hand), then the role is stamped beside it */
.sheet__signature { position: relative; margin-top: 10px; padding-top: 36px; }
.sheet__ink { position: absolute; left: 0; top: 0; width: 132px; height: 40px; overflow: visible; fill: none; stroke: var(--warm); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sheet__ink path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 140ms ease; }
.sheet__who { padding-top: 6px; border-top: 1px solid color-mix(in oklab, var(--ink) 24%, transparent); font-size: 13px; color: var(--muted); }
.sheet__stamp { position: absolute; right: 0; top: 0; display: grid; gap: 3px; padding: 6px 10px 7px; border: 1.5px solid var(--warm); border-radius: 6px; color: var(--warm);
  font: 600 11px/1 var(--font-display); letter-spacing: 0.09em; text-transform: uppercase; text-align: center; white-space: nowrap;
  opacity: 0; transform: rotate(-7deg) scale(1.45); transition: opacity 120ms linear, transform 140ms ease; }
.sheet__stamp b { font: 500 12px/1.2 var(--font-text); letter-spacing: 0; text-transform: none; }
.sheet__sign { justify-self: start; display: inline-flex; align-items: center; height: 40px; margin-top: 14px; padding: 0 16px; border: 0; border-radius: var(--r-btn); background: var(--ink); color: var(--p-bg);
  font: 500 14px/1 var(--font-text); cursor: pointer; transition: transform 90ms var(--ease-out), background-color 150ms ease, box-shadow 150ms ease; }
.sheet__sign:active { transform: scale(0.97); }
.sheet__sign:focus-visible { outline: 2px solid var(--action, var(--ink)); outline-offset: 2px; }
.sheet__sign-done { display: none; align-items: center; gap: 6px; }
.sheet__sign-done svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sheet__sign[aria-pressed="true"] { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sheet__sign[aria-pressed="true"] .sheet__sign-open { display: none; }
.sheet__sign[aria-pressed="true"] .sheet__sign-done { display: inline-flex; }
@media (hover: hover) and (pointer: fine) {
  .sheet__sign:hover { background: color-mix(in oklab, var(--ink) 86%, var(--p-bg)); }
  .sheet__sign[aria-pressed="true"]:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
}
@media (pointer: coarse) { .sheet__sign { height: 44px; } }
/* signed off, in about 0.8 seconds: the signature is drawn, the stamp lands, the line closes in ink and its chip
   changes; the count in the bar drops as the stamp lands (the script). Taking it back is quick and plain */
.sheet__body[data-signed] .sheet__ink path { stroke-dashoffset: 0; transition: stroke-dashoffset 560ms cubic-bezier(0.45, 0, 0.2, 1); }
.sheet__body[data-signed] .sheet__stamp { opacity: 1; transform: rotate(-7deg) scale(1); transition: opacity 90ms linear 460ms, transform 280ms var(--ease-out) 460ms; }
.sheet__body[data-signed] .sheet__lines::after { animation: none; }
.sheet__body[data-signed] .sheet__row--flag::before { opacity: 0; animation: none; }
.sheet__body[data-signed] .chip--flag { visibility: hidden; opacity: 0; animation: none; transition: opacity 160ms ease, visibility 0s 160ms; }
.sheet__body[data-signed] .chip--signed { visibility: visible; opacity: 1; transform: none; transition: opacity 220ms ease 520ms, transform 280ms var(--ease-out) 520ms, visibility 0s 520ms; }
.sheet__body[data-signed] .sheet__row--flag .sheet__link i { background-size: 100% 100%; transition: background-size 420ms var(--ease-out) 300ms; }
.sheet__body[data-signed] .sheet__row--flag .sheet__link i::after { background: var(--ink); box-shadow: none; transition: background-color 200ms ease 640ms, box-shadow 200ms ease 640ms; }
.sheet__body[data-signed] .sheet__label-open { display: none; }
.sheet__body[data-signed] .sheet__label-done { display: inline; }
/* a wide screen: the reviewer sits beside the lines */
@media (min-width: 1200px) {
  .sheet__body { grid-template-columns: minmax(0, 1fr) 332px; }
  .sheet__review { grid-template-columns: minmax(0, 1fr); padding: 20px 22px 22px; border-top: 0; border-left: 1px solid var(--sh-line); }
  .sheet__evidence { grid-column: 1; grid-row: auto; margin-top: 12px; }
}
/* a tablet: the reference goes under the name and the matched line may take two lines */
@media (max-width: 1023px) {
  .signoff__head > p { max-width: 52ch; }
  .sheet__row { grid-template-columns: minmax(0, 1.1fr) 120px 28px minmax(0, 1fr) 124px; }
  .sheet__sub { line-height: 16px; }
  .sheet__src { display: grid; gap: 0; }
}
/* a phone: four lines (one matched, the two that match, the exception), each with its amount and a mark; the
   four tabs are one row that scrolls sideways; the signature appears once the sheet is signed */
@media (max-width: 639px) {
  .sheet__bar { padding: 12px 12px 10px 16px; }
  .sheet__tabs { flex: 1 1 100%; flex-wrap: nowrap; min-width: 0; margin-inline: -16px -12px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .sheet__tabs::-webkit-scrollbar { display: none; }
  .sheet__tabs .tab { flex: none; }
  .sheet__lines { padding-inline: 16px; }
  .sheet__row { grid-template-columns: minmax(0, 1fr) auto 26px; column-gap: 10px; margin-inline: -16px; padding-inline: 16px; }
  .sheet__row--head, .sheet__row:nth-child(3), .sheet__link, .sheet__to { display: none; }
  .sheet__src { display: grid; gap: 0; }
  .sheet__status .chip { width: 26px; padding: 0; justify-content: center; }
  .sheet__status .chip > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sheet__review { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s-4); padding: 14px 16px 16px; }
  .sheet__evidence { display: none; }
  .sheet__sign { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .sheet__signature { display: none; grid-column: 1 / -1; margin-top: 12px; }
  .sheet__body[data-signed] .sheet__signature { display: block; }
  .sheet__body[data-signed] .sheet__ink path { animation: so-ink 560ms cubic-bezier(0.45, 0, 0.2, 1) backwards; }
  .sheet__body[data-signed] .sheet__stamp { animation: so-stamp 280ms var(--ease-out) 460ms backwards; }
}
@keyframes so-ink { from { stroke-dashoffset: 1; } }
@keyframes so-stamp { from { opacity: 0; transform: rotate(-7deg) scale(1.45); } }
/* motion rests: no beam and no ceremony; signing still changes everything it changes, at once */
@media (prefers-reduced-motion: reduce) {
  .sheet__lines::after { display: none; }
  .sheet :is(.chip--flag, .chip--signed, .sheet__stamp, .sheet__ink path, .sheet__row--flag .sheet__link i, .tab__dot, .sheet__count-n) { transition: none !important; animation: none !important; }
  .sheet__row--flag .sheet__link i::after { transition: none !important; }
}

/* ───────── 7. insight: the portal (a demo company's dashboard) beside its words ───────── */
.insight__text { display: grid; gap: var(--s-5); align-content: start; }
.insight__points { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.insight__points li { display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--line); }
.insight__points svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--cool); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.insight__login { justify-self: start; }
/* the portal's name, small, over the headline */
.insight__name { display: block; margin-bottom: var(--s-4); font: 500 var(--t-small)/1.4 var(--font-text); letter-spacing: 0; color: var(--cool); }
.insight__visual { position: relative; container: dash / inline-size; }
/* Colour in the window: copper is the finance side (actuals, today, what waits for a person); ice-cyan is the
   system's side (the forecast, the AI's note and what it flagged). Neither is ever "good" or "bad" */
.dash { --sh-line: color-mix(in oklab, var(--ink) 9%, transparent); --sh-text: color-mix(in oklab, var(--ink) 86%, var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: clip; font-size: 14px; line-height: 20px; text-align: left; }
.dash :where(p) { margin: 0; }
.dash__bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--sh-line); white-space: nowrap; }
.dash__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.dash__title svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.3; }
.dash__co { color: var(--muted); }
/* the switch: the whole group, or one branch */
.dash__scope { display: flex; gap: 6px; padding: 10px 20px; border-bottom: 1px solid var(--sh-line); overflow-x: auto; scrollbar-width: none; }
.dash__scope::-webkit-scrollbar { display: none; }
.dash__pick { flex: none; height: 30px; margin: 0; padding: 0 12px; border: 0; border-radius: 999px; background: none; font: 400 13px/1 var(--font-text); color: var(--sh-text); box-shadow: inset 0 0 0 1px var(--sh-line); cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, scale 120ms var(--ease-out); }
.dash__pick[aria-pressed="true"] { background: var(--ink); color: var(--p-bg); box-shadow: none; }
.dash__pick:active { scale: 0.96; }
.dash__pick:focus-visible { outline: 2px solid var(--cool); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .dash__pick:not([aria-pressed="true"]):hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); } }
@media (pointer: coarse) { .dash__pick { height: 40px; padding: 0 14px; } }
.dash__label { font-size: 13px; line-height: 18px; color: var(--muted); }
.dash__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--sh-line); }
.dash__kpi { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 14px 12px 14px 20px; }
.dash__kpi + .dash__kpi { border-left: 1px solid var(--sh-line); }
.dash__value { font-family: var(--font-mono); font-size: 24px; line-height: 30px; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.dash__delta { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--sh-text); animation: dash-in 360ms var(--ease-out); }
.dash__kpi--up .dash__delta::before, .dash__kpi--down .dash__delta::before { content: ""; flex: none; border: 4px solid transparent; }
.dash__kpi--up .dash__delta::before { border-top: 0; border-bottom: 6px solid var(--sh-text); }
.dash__kpi--down .dash__delta::before { border-bottom: 0; border-top: 6px solid var(--sh-text); }
.dash__kpi--flag .dash__value { color: var(--warm); }
@keyframes dash-in { from { opacity: 0; transform: translateY(4px); } }
/* the chart: actuals in warm up to today, the forecast in cool with its range */
.dash__chart { padding: 14px 20px 10px; border-bottom: 1px solid var(--sh-line); }
.dash__chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dash__key { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--sh-text); }
.dash__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--warm); }
.dash__dot--cool { margin-left: 8px; background: var(--cool); }
.dash__plot { position: relative; height: clamp(130px, 18svh, 176px); touch-action: pan-y; cursor: crosshair; }
.dash__plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dash__plot path { fill: none; }
.dash__grid { stroke: var(--sh-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dash__today { stroke: color-mix(in oklab, var(--ink) 30%, transparent); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.dash__plot .dash__range { fill: color-mix(in oklab, var(--cool) 11%, transparent); }
.dash__plot .dash__area { fill: url(#dash-area); }
.dash__actual, .dash__forecast { stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.dash__actual { stroke: var(--warm); }
.dash__forecast { stroke: var(--cool); }
.dash__now { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--warm); pointer-events: none; }
.dash__low { position: absolute; transform: translate(-50%, 10px); padding: 2px 8px; border-radius: 999px; background: color-mix(in oklab, var(--cool) 15%, var(--surface)); color: var(--cool); font-size: 12px; line-height: 16px; white-space: nowrap; pointer-events: none; }
.dash__months { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.dash__months > span { flex: 0 0 0; display: flex; justify-content: center; white-space: nowrap; transition: color 120ms ease; }
.dash__months > .is-hot { color: var(--ink); }
/* pointing along the chart reads off a month */
.dash__hair { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; background: color-mix(in oklab, var(--ink) 34%, transparent); pointer-events: none; }
.dash__at { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 3px color-mix(in oklab, var(--warm) 30%, transparent); pointer-events: none; }
.dash__at.is-ahead { background: var(--cool); box-shadow: 0 0 0 3px color-mix(in oklab, var(--cool) 30%, transparent); }
.dash__tip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 14px)); display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 8px;
  background: color-mix(in oklab, var(--ink) 12%, var(--surface)); box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.7), inset 0 0 0 1px var(--sh-line);
  font-family: var(--font-mono); font-size: 13px; line-height: 18px; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; pointer-events: none; }
.dash__tip b { font: 500 13px/18px var(--font-text); letter-spacing: 0; color: var(--muted); }
.dash__tip i { font: 400 12px/18px var(--font-text); letter-spacing: 0; color: var(--muted); }
.dash__tip.is-start { transform: translate(-14px, calc(-100% - 14px)); }
.dash__tip.is-end { transform: translate(calc(-100% + 14px), calc(-100% - 14px)); }
.dash__plot:has(.dash__tip) .dash__low { visibility: hidden; }
.dash__foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.dash__sites { display: grid; gap: 8px; align-content: start; padding: 14px 20px 18px; }
.dash__site { display: grid; grid-template-columns: 68px minmax(0, 1fr) 48px; align-items: center; gap: 10px; color: var(--sh-text); transition: color 200ms ease; }
.dash__track { height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--ink) 8%, transparent); }
.dash__track i { display: block; width: calc(var(--v) * 1%); height: 100%; border-radius: 3px; background: color-mix(in oklab, var(--ink) 40%, transparent); transform-origin: 0 50%; transition: background-color 200ms ease; }
.dash__pct { font-family: var(--font-mono); font-size: 13px; letter-spacing: -0.03em; text-align: right; }
/* the site the AI's note is about, in the note's colour; and the branch the switch is on */
.dash__site.is-on { color: var(--ink); }
.dash__site.is-on .dash__track i { background: color-mix(in oklab, var(--ink) 82%, transparent); }
.dash__site.is-flag { color: var(--ink); }
.dash__site.is-flag .dash__track i { background: var(--cool); }
.dash__site.is-flag .dash__pct { color: var(--cool); }
.dash__note { display: grid; gap: 6px; align-content: start; padding: 14px 56px 18px 20px; border-left: 1px solid var(--sh-line); background: linear-gradient(160deg, color-mix(in oklab, var(--cool) 9%, transparent), transparent 70%); }
.dash__label--ai { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--cool); }
.dash__label--ai svg { width: 12px; height: 12px; fill: var(--cool); }
.dash__note p { font-size: 15px; line-height: 22px; color: var(--ink); animation: dash-in 360ms var(--ease-out); }
.dash__meta { font-size: 13px; line-height: 18px; color: var(--muted); }

/* reached: before, the figures stand at zero and nothing is drawn; then the actual line draws up to today, the
   forecast carries on from there, its range and its lowest month follow, and the site bars grow (the figures are
   counted up by the script). It happens once */
.dash[data-phase="armed"] :is(.dash__actual, .dash__forecast) { stroke-dashoffset: 1; opacity: 0; }
.dash[data-phase="armed"] :is(.dash__range, .dash__area, .dash__low, .dash__now) { opacity: 0; }
.dash[data-phase="armed"] .dash__track i { transform: scaleX(0); }
.dash[data-phase="live"] .dash__actual { transition: stroke-dashoffset 900ms cubic-bezier(0.4, 0, 0.2, 1) 150ms, opacity 60ms linear 150ms; }
.dash[data-phase="live"] .dash__area { transition: opacity 700ms ease 550ms; }
.dash[data-phase="live"] .dash__now { transition: opacity 200ms ease 1000ms; }
.dash[data-phase="live"] .dash__forecast { transition: stroke-dashoffset 1100ms cubic-bezier(0.4, 0, 0.2, 1) 1050ms, opacity 60ms linear 1050ms; }
.dash[data-phase="live"] .dash__range { transition: opacity 700ms ease 1750ms; }
.dash[data-phase="live"] .dash__low { transition: opacity 300ms ease 2150ms; }
.dash[data-phase="live"] .dash__track i { transition: transform 900ms var(--ease-out) 350ms, background-color 200ms ease; }

/* a laptop's column: the four KPIs still fit in a row with a slightly smaller label, so the portal fits one screen */
@container dash (max-width: 600px) { .dash__kpi .dash__label { font-size: 12px; } .dash__kpi { padding-left: 16px; } }
/* narrower: the KPIs two by two */
@container dash (max-width: 552px) {
  .dash__kpi .dash__label { font-size: 13px; }
  .dash__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash__kpi:nth-child(3) { border-left: 0; }
  .dash__kpi:nth-child(n+3) { border-top: 1px solid var(--sh-line); }
}
/* narrower still (a phone): the note under the chart, the sites left out */
@container dash (max-width: 520px) {
  .dash__foot { grid-template-columns: minmax(0, 1fr); }
  .dash__sites { display: none; }
  .dash__note { border-left: 0; }
}
@container dash (max-width: 400px) {
  .dash__bar, .dash__scope { padding-inline: 16px; }
  .dash__scope { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .dash__kpi { padding: 12px 10px 12px 16px; }
  .dash__value { font-size: 22px; }
  .dash__chart { padding-inline: 16px; }
  .dash__months > :nth-child(even):not(.is-hot) { visibility: hidden; }
  .dash__note { padding-left: 16px; }
}
@media (max-width: 639px) {
  /* a phone: the words take the first screen, the portal the second */
  #insight { --hm: 1; }
  #insight .insight { row-gap: var(--s-7); }
}
@media (prefers-reduced-motion: reduce) { .dash__delta, .dash__note p { animation: none; } }

/* ═════════ The sections after Insight (built 5 December 2026, in the visual upgrade's language) ═════════ */
/* Each is as tall as its content (no one-screen box), opens onto the scene's dust, and has its own picture and
   its own way of arriving. Shared here: the section box, and the small pause button of a moving picture */
main > section:is(#products, #impact, #about, #game, #founders, #security, #clients, #news, #faq) { height: auto; min-height: 0; padding: clamp(72px, 11svh, 128px) 0; overflow-x: clip; }
.loop-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -14px -8px 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color 150ms ease, scale 160ms var(--ease-out); }
.loop-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.loop-btn[aria-pressed="true"] svg { fill: currentColor; }
.loop-btn:active { scale: 0.94; }
@media (hover: hover) and (pointer: fine) { .loop-btn:hover { color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .loop-btn { display: none; } }

/* the main button brightens under the pointer (it used to dim), with a little of both colours under it */
.btn--primary { transition: background-color 200ms var(--ease-out), box-shadow 300ms var(--ease-out), transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #fff; box-shadow: -10px 10px 30px -14px color-mix(in oklab, var(--warm) 80%, transparent), 10px 10px 30px -14px color-mix(in oklab, var(--cool) 80%, transparent); }
}
/* the menu shows where the reader is: a fine two-colour line under the link of the section in view */
.nav__link[aria-current="location"]::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 3px; height: 1px; border-radius: 1px; background: linear-gradient(90deg, var(--warm), var(--cool)); }
.nav.is-open .nav__link[aria-current="location"]::after { content: none; }
.login__new { margin: var(--s-4) 0 0; font-size: var(--t-small); color: var(--muted); }
.login__new a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.login__new a:hover { text-decoration-color: currentColor; }

/* ───────── 8. products: three wide panels, each with its own flow from what goes in to what comes out ───────── */
.prod-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--head-gap); }
.prod-head h2 .muted { display: block; }
.prods { display: grid; gap: var(--s-5); margin: 0; padding: 0; list-style: none; }
.prod-cell { perspective: 1700px; }
.prod {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 4.4vw, 72px);
  padding: clamp(22px, 3vw, 44px); border-radius: var(--r-lg);
  border: 1px solid color-mix(in oklab, var(--ink) 9%, transparent);
  background: linear-gradient(180deg, color-mix(in oklab, #131920 88%, transparent), color-mix(in oklab, #0b0f14 88%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--ink) 7%, transparent), 0 40px 60px -44px rgb(0 0 0 / 0.95);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 700ms var(--ease-out), border-color 300ms ease;
}
.prod::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 320ms var(--ease-out); background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--cool) 9%, transparent), transparent 62%); }
@media (hover: hover) and (pointer: fine) {
  .prod:hover { transition-duration: 160ms, 300ms; border-color: color-mix(in oklab, var(--ink) 20%, transparent); }
  .prod:hover::after { opacity: 1; }
}
.prod__text { display: grid; gap: var(--s-3); min-width: 0; }
.prod__meta { display: flex; align-items: center; gap: 14px; margin: 0; font: 400 12px/1.4 var(--font-mono); color: var(--muted); }
.prod__status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.prod__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cool); box-shadow: 0 0 10px var(--cool); }
.prod__status.is-making::before { background: var(--warm); box-shadow: 0 0 10px var(--warm); }
.prod h3 { font: 600 clamp(26px, 2.7vw, 40px)/1.05 var(--font-display); letter-spacing: -0.03em; }
.prod__line { max-width: 54ch; color: var(--muted); }

/* the flow: what goes in | lines | the product | lines | what comes out */
.prod__flow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(28px, 4.6vw, 68px) auto clamp(28px, 4.6vw, 68px) minmax(0, 1fr); align-items: stretch; min-width: 0; }
.prod__ends { display: grid; grid-auto-rows: 1fr; margin: 0; padding: 0; list-style: none; min-width: 0; }
.prod__ends li { position: relative; align-self: center; display: flex; align-items: center; gap: 10px; min-height: 46px; margin-block: 5px; padding: 8px 14px; border-radius: 12px; border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent); background: color-mix(in oklab, var(--ink) 4%, transparent); font-size: 14px; line-height: 1.25; color: var(--ink); }
.prod__ends li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--warm); }
.prod__ends--out li::before { background: var(--cool); }
.prod__ends li::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; border: 1px solid color-mix(in oklab, var(--tone, var(--warm)) 70%, transparent); background: color-mix(in oklab, var(--tone, var(--warm)) 8%, transparent); box-shadow: 0 0 24px -8px var(--tone, var(--warm)); }
.prod__ends--out li { --tone: var(--cool); }
.prod__wires { display: block; width: 100%; height: 100%; min-height: 60px; overflow: visible; }
.prod__wire { fill: none; stroke: color-mix(in oklab, var(--ink) 30%, transparent); stroke-width: 1.2; stroke-dasharray: 2 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.prod__pulse { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 0.26 1.6; stroke-dashoffset: 0.27; opacity: 0; }
.prod__pulse--in { stroke: var(--warm); }
.prod__pulse--out { stroke: var(--cool); }
.prod__core { position: relative; align-self: center; display: grid; place-items: center; min-width: 104px; padding: 20px 16px; border-radius: 16px; background: linear-gradient(180deg, #171d25, #0c1015); box-shadow: 0 22px 34px -22px rgb(0 0 0 / 0.95); font: 600 15px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.prod__core::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(98deg, var(--warm), color-mix(in oklab, var(--ink) 14%, transparent) 42%, color-mix(in oklab, var(--ink) 14%, transparent) 58%, var(--cool)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.prod__core i { position: absolute; inset: -14px; border-radius: 26px; pointer-events: none; opacity: 0; background: radial-gradient(closest-side, color-mix(in oklab, var(--ink) 16%, transparent), transparent); }
.prod__core span { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  /* arriving: each panel rises out of depth as it is reached */
  .prod-cell.is-armed:not(.is-in) > .prod { opacity: 0; }
  .prod-cell.is-in > .prod { animation: prod-in 950ms var(--ease-out) backwards; }
  /* on screen: light goes in along every line, the product takes it, light goes out and each result lights */
  .prods.is-live .prod__pulse--in { animation: prod-run var(--cycle) linear calc(var(--at) + var(--i) * 0.14s) infinite both; }
  .prods.is-live .prod__ends--in li::after { animation: prod-lit var(--cycle) var(--ease-out) calc(var(--at) + var(--i) * 0.14s - 0.25s) infinite both; }
  .prods.is-live .prod__core i { animation: prod-core var(--cycle) var(--ease-out) calc(var(--at) + 0.9s) infinite both; }
  .prods.is-live .prod__pulse--out { animation: prod-run var(--cycle) linear calc(var(--at) + 1.7s + var(--i) * 0.14s) infinite both; }
  .prods.is-live .prod__ends--out li::after { animation: prod-lit var(--cycle) var(--ease-out) calc(var(--at) + 2.5s + var(--i) * 0.14s) infinite both; }
  .prods[data-paused] :is(.prod__pulse, .prod__core i, .prod__ends li::after) { animation-play-state: paused; }
}
@keyframes prod-in { from { opacity: 0; transform: translate3d(0, 52px, -150px) rotateX(-14deg); } }
@keyframes prod-run { 0% { stroke-dashoffset: 0.27; opacity: 0; } 2% { opacity: 1; } 16% { opacity: 1; } 18%, 100% { stroke-dashoffset: -1; opacity: 0; } }
@keyframes prod-lit { 0% { opacity: 0; } 5% { opacity: 1; } 22% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes prod-core { 0% { opacity: 0; scale: 0.8; } 8% { opacity: 1; scale: 1; } 30%, 100% { opacity: 0; scale: 1.25; } }
@media (max-width: 1023px) {
  .prod { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .prod__line { max-width: 68ch; }
}
/* a phone: the flow runs downward: what goes in, the product, what comes out. Flat, no lean */
@media (max-width: 639px) {
  .prod-cell { perspective: none; }
  .prod { transform: none; }
  .prod__flow { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 26px; }
  .prod__wires { display: none; }
  .prod__ends { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .prod__ends li { margin: 0; min-height: 40px; padding: 7px 12px; font-size: 13.5px; }
  .prod__core::after { content: ""; position: absolute; left: 50%; top: -22px; bottom: -22px; z-index: -1; width: 1px; background: linear-gradient(180deg, var(--warm), color-mix(in oklab, var(--ink) 20%, transparent) 40%, color-mix(in oklab, var(--ink) 20%, transparent) 60%, var(--cool)); }
}
@media (prefers-reduced-motion: reduce) { .prod { transform: none; transition: none; } }

/* ───────── 9. impact: the totals at display size, and the note on how they are counted ───────── */
.imp { display: grid; gap: clamp(36px, 6svh, 72px); }
.imp__h { color: var(--muted); }
.imp__totals { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-6) var(--s-7); margin: 0; }
.imp__totals > div { display: flex; flex-direction: column-reverse; gap: var(--s-3); }
.imp__totals dd { margin: 0; font: 500 clamp(52px, 7.4vw, 112px)/0.92 var(--font-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.imp__totals dt { font: 400 15px/1.3 var(--font-text); color: var(--muted); }
.imp__totals dt::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: linear-gradient(90deg, var(--warm), var(--cool)); }
.imp__unit { font-size: 0.56em; letter-spacing: -0.02em; color: var(--cool); vertical-align: 0.3em; margin-inline: 0.04em; }
.imp__note { padding: clamp(24px, 3.4svh, 40px) max(0px, 100% - 58ch) 0 0; border-top: 1px solid var(--line); font-size: var(--t-small); line-height: 1.55; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .imp.is-armed:not(.is-in) .imp__note { opacity: 0.4; }
  .imp__note { transition: opacity 700ms var(--ease-out) 300ms; }
}
@media (max-width: 639px) {
  .imp__totals { flex-direction: column; align-items: flex-start; gap: var(--s-6); }
  .imp__totals dd { font-size: clamp(56px, 17vw, 76px); }
}

/* ───────── 10. about: a short text, the founders' line as the page's largest type, the vision and the mission ───────── */
.abt__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; gap: var(--s-5) clamp(24px, 6vw, 112px); }
.abt__top h2 .muted { display: block; }
.abt__text { color: var(--muted); }
.abt__quote { --lv: 1; margin: clamp(64px, 13svh, 152px) 0; }
.abt__quote p { font: 500 clamp(34px, 6.3vw, 104px)/1.02 var(--font-display); letter-spacing: -0.045em; text-wrap: balance; color: var(--ink); }
/* each word lights in its turn as the quote climbs the screen: --lv is how far it has climbed, --i the word's place */
.abt__w { --on: clamp(0, calc(var(--lv) * (var(--n) + 6) - var(--i) - 0.5), 1); opacity: calc(0.14 + 0.86 * var(--on)); }
.abt__w--cool { color: var(--cool); }
.abt__w--warm { color: var(--warm); }
.abt__quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: clamp(20px, 3svh, 36px); font: 400 13px/1.4 var(--font-mono); color: var(--muted); }
.abt__quote figcaption::before { content: ""; width: 44px; height: 1px; background: linear-gradient(90deg, var(--warm), var(--cool)); }
/* the vision and the mission: two panes of glass, one from each side. lib/level.ts writes --lv (0 to 1) on each
   .aim as it climbs the screen; its pane takes the swing, so the box that is measured never moves. --draw is
   how far the pane's line has run. At rest (no scripts, reduced motion) --lv is 1: level, lines drawn */
.aims { display: grid; gap: clamp(20px, 3.4svh, 40px); }
.aim { --lv: 1; --draw: clamp(0, calc((var(--lv) - 0.42) * 2.1), 1); --tone: var(--cool); --side: 1; perspective: 1600px; scroll-margin-top: calc(var(--nav) + 24px); }
.aim--warm { --tone: var(--warm); --side: -1; }
.aim__pane { position: relative; display: grid; gap: clamp(16px, 2.2svh, 26px); overflow: hidden; padding: clamp(24px, 3.6vw, 60px); border-radius: var(--r-lg);
  background:
    radial-gradient(520px circle at var(--mx, calc(50% - 38% * var(--side))) var(--my, 0%), color-mix(in oklab, var(--tone) 13%, transparent), transparent 72%),
    color-mix(in oklab, #0b0f14 66%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 calc(14px + var(--lv) * 30px) 90px -44px rgb(0 0 0 / 0.8);
  opacity: calc(0.2 + 0.8 * var(--lv));
  transform-origin: calc(50% - 50% * var(--side)) 50%;
  transform: translate3d(calc((1 - var(--lv)) * -46px * var(--side)), calc((1 - var(--lv)) * 54px), 0) rotateY(calc((1 - var(--lv)) * 15deg * var(--side))) rotateX(calc((1 - var(--lv)) * 5deg)) scale(calc(0.93 + 0.07 * var(--lv))); }
/* its edge: the pane's colour on the side it hinges on, running out to a faint line */
.aim__pane::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(calc(90deg * var(--side)), color-mix(in oklab, var(--tone) 70%, transparent), color-mix(in oklab, var(--ink) 12%, transparent) 46%, color-mix(in oklab, var(--ink) 8%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* the glass catches the light once as it levels */
.aim.is-live .aim__pane::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / 0.07) 50%, transparent 62%);
  transform: translateX(calc((var(--lv) * 2 - 1) * 100% * var(--side))); opacity: calc(4 * var(--lv) * (1 - var(--lv))); }
.aim__tag { display: flex; align-items: center; gap: 10px; font: 400 13px/1.4 var(--font-mono); letter-spacing: 0.02em; color: var(--tone); }
.aim__tag::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 12px var(--tone); }

/* the line under the name */
.aim__line { position: relative; height: 44px; }
.aim__line i { position: absolute; border-radius: 50%; }
/* the vision: what has happened runs on from today into a forecast, and ends on a point of light */
.aim__line--ahead svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; clip-path: inset(-12px calc((1 - var(--draw)) * 100%) -12px 0); }
.aim__line--ahead path { fill: none; stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.aim__actual { stroke: color-mix(in oklab, var(--warm) 86%, transparent); }
.aim__forecast { stroke: var(--cool); stroke-dasharray: 5 7; }
.aim__now { left: 56%; top: 48.2%; width: 7px; height: 7px; margin: -3.5px; background: var(--ink); opacity: clamp(0, calc((var(--draw) - 0.52) * 14), 1); }
.aim__end { left: 99.4%; top: 12.5%; width: 9px; height: 9px; margin: -4.5px; background: var(--cool); box-shadow: 0 0 0 5px color-mix(in oklab, var(--cool) 18%, transparent), 0 0 22px var(--cool); opacity: clamp(0, calc((var(--draw) - 0.94) * 20), 1); }
/* the mission: a line with a gap in it, which closes */
.aim__line--gap .aim__half { top: 50%; width: 50%; height: 2px; margin-top: -1px; border-radius: 1px; transform: scaleX(calc(0.78 + 0.22 * var(--draw))); }
.aim__half--a { left: 0; background: linear-gradient(90deg, transparent, var(--warm) 34%); transform-origin: 0 50%; }
.aim__half--b { right: 0; background: linear-gradient(270deg, transparent, var(--cool) 34%); transform-origin: 100% 50%; }
.aim__join { left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; background: var(--ink); box-shadow: -7px 0 16px var(--warm), 7px 0 16px var(--cool); opacity: clamp(0, calc((var(--draw) - 0.94) * 20), 1); }
/* a ring goes out once from the end of each line as the pane settles */
.aim__end::after, .aim__join::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid currentColor; opacity: 0; }
.aim__end { color: var(--cool); }
.aim__join { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .aim[data-landed] :is(.aim__end, .aim__join)::after { animation: aim-ping 1400ms var(--ease-out) 120ms 1 both; }
}
@keyframes aim-ping { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(6); } }

/* the words: the paragraph that states it is set large, on the side its pane hinges on */
.aim__cols { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; gap: var(--s-5) clamp(28px, 5vw, 88px); }
.aim[data-lead="1"] .aim__cols { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.aim__col { display: grid; align-content: start; gap: var(--s-4); min-width: 0; }
.aim__lead { font: 500 clamp(24px, 2.7vw, 40px)/1.14 var(--font-display); letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.aim__p { max-width: 62ch; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; color: color-mix(in oklab, var(--ink) 76%, transparent); text-wrap: pretty; }
/* wide screens: the two panes step apart, one to each side */
@media (min-width: 1100px) {
  .aim--cool { margin-right: 7%; }
  .aim--warm { margin-left: 7%; }
}
@media (max-width: 899px) {
  .abt__top { grid-template-columns: minmax(0, 1fr); }
  .aim__cols, .aim[data-lead="1"] .aim__cols { grid-template-columns: minmax(0, 1fr); }
  /* one column: the panes lean back and rise instead of swinging in from the side; no glass over the moving scene */
  .aim__pane { -webkit-backdrop-filter: none; backdrop-filter: none; transform-origin: 50% 100%;
    background:
      radial-gradient(420px circle at var(--mx, calc(50% - 38% * var(--side))) var(--my, 0%), color-mix(in oklab, var(--tone) 13%, transparent), transparent 72%),
      rgb(11 15 20 / 0.92);
    transform: translateY(calc((1 - var(--lv)) * 48px)) rotateX(calc((1 - var(--lv)) * 12deg)) scale(calc(0.94 + 0.06 * var(--lv))); }
  .aim__line { height: 36px; }
}

/* ───────── 11. race the machine: a 20-second game ───────── */
.rtm {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); grid-template-areas: "head head" "you machine" "clock clock"; gap: var(--s-5) clamp(20px, 3vw, 44px);
  padding: clamp(20px, 3vw, 44px); border-radius: var(--r-lg);
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  background: linear-gradient(180deg, color-mix(in oklab, #131920 90%, transparent), color-mix(in oklab, #0a0e12 90%, transparent));
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--ink) 7%, transparent), 0 50px 70px -50px rgb(0 0 0 / 0.95);
}
.rtm__head { grid-area: head; display: grid; gap: var(--s-2); }
.rtm__tag { margin: 0; font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.02em; color: var(--cool); }
.rtm__how { max-width: 62ch; color: var(--muted); }
.rtm__you { grid-area: you; position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--s-3); min-width: 0; }
.rtm__machine { grid-area: machine; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--s-3); min-width: 0; padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); }
.rtm__side { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin: 0; font: 400 12px/1.4 var(--font-mono); color: var(--muted); }
.rtm__side b { font: 500 clamp(36px, 4.4vw, 60px)/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--warm); }
.rtm__machine .rtm__side b { color: var(--cool); }
.rtm__board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); transition: opacity 300ms ease, filter 300ms ease; }
.rtm:not([data-phase="play"]) .rtm__board { opacity: 0.28; filter: blur(2px); }
.rtm[data-phase="done"] .rtm__board { opacity: 0.1; }
.rtm__col { display: grid; gap: 8px; align-content: start; }
.rtm__label { margin: 0 0 2px; font: 400 11px/1.4 var(--font-mono); letter-spacing: 0.02em; color: var(--muted); }
.rtm__line { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; margin: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in oklab, var(--ink) 11%, transparent); background: color-mix(in oklab, var(--ink) 4%, transparent); color: var(--ink); font: 400 14px/1.25 var(--font-text); text-align: left; cursor: pointer; transition: border-color 140ms ease, background-color 140ms ease, transform 140ms var(--ease-out), opacity 200ms ease; }
.rtm__line b { font: 400 13px/1 var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtm__line:active { transform: scale(0.98); }
.rtm__line[aria-pressed="true"] { border-color: var(--warm); background: color-mix(in oklab, var(--warm) 13%, transparent); }
.rtm__line.is-gone { border-color: var(--cool); background: color-mix(in oklab, var(--cool) 16%, transparent); opacity: 0; transform: scale(0.96); transition-duration: 140ms, 140ms, 240ms, 240ms; }
.rtm__line.is-miss { animation: rtm-miss 300ms ease; border-color: color-mix(in oklab, var(--ink) 40%, transparent); }
@media (hover: hover) and (pointer: fine) { .rtm__line:hover { border-color: color-mix(in oklab, var(--ink) 30%, transparent); } }
@keyframes rtm-miss { 25% { translate: -5px 0; } 60% { translate: 4px 0; } 85% { translate: -2px 0; } }
.rtm__cover { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: var(--s-5); padding: var(--s-5); text-align: center; }
.rtm__result { max-width: 30ch; font: 500 clamp(20px, 2.1vw, 28px)/1.3 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; outline: none; }
.rtm__result b { font-weight: 600; color: var(--cool); }
.rtm__result b:first-of-type { color: var(--warm); }
.rtm__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
/* the machine's side: lines going by far faster than a hand can, while the game runs */
.rtm__stream { position: relative; display: grid; gap: 7px; align-content: center; min-height: 120px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.rtm__stream i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, color-mix(in oklab, var(--ink) 22%, transparent) 0 54%, transparent 54% 62%, color-mix(in oklab, var(--ink) 22%, transparent) 62% 84%, transparent 84% 90%, color-mix(in oklab, var(--cool) 80%, transparent) 90%); opacity: 0.5; }
.rtm[data-phase="play"] .rtm__stream i { animation: rtm-row 420ms linear calc(var(--i) * -47ms) infinite; }
@keyframes rtm-row { 0% { opacity: 0.15; translate: -14px 0; } 30% { opacity: 1; translate: 0 0; } 100% { opacity: 0.2; translate: 0 0; } }
.rtm__flag { margin: 0; font: 400 12px/1.4 var(--font-mono); color: var(--muted); }
.rtm__flag b { margin-right: 6px; font: 500 20px/1 var(--font-display); color: var(--warm); font-variant-numeric: tabular-nums; }
.rtm__clock { grid-area: clock; display: flex; align-items: center; gap: var(--s-4); }
.rtm__bar { flex: 1 1 auto; height: 4px; border-radius: 2px; overflow: hidden; background: color-mix(in oklab, var(--ink) 10%, transparent); }
.rtm__bar i { display: block; height: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, var(--warm), var(--cool)); transition: transform 120ms linear; }
.rtm__time { min-width: 4.2em; text-align: right; font: 400 13px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 899px) {
  .rtm { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "machine" "you" "clock"; }
  .rtm__machine { grid-template-rows: auto auto; padding: 0 0 var(--s-4); border-left: 0; border-bottom: 1px solid var(--line); }
  .rtm__stream { display: none; }
}
@media (max-width: 519px) {
  .rtm__board { gap: 8px; }
  .rtm__line { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 9px 11px; font-size: 13px; }
  .rtm__you { min-height: 330px; }
}

/* ───────── 12. founders: two portrait panels, mirrored like the two 2s; 13. credentials at their foot ───────── */
.fnd-head { display: grid; gap: var(--s-4); max-width: 880px; margin-bottom: var(--head-gap); }
.fnd-grid { display: grid; gap: var(--s-5); }
.fnd {
  --tone: var(--warm); --side: 0%;
  position: relative; display: grid; grid-template-columns: clamp(250px, 29%, 372px) minmax(0, 1fr); overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid color-mix(in oklab, var(--ink) 9%, transparent);
  background: radial-gradient(70% 120% at var(--side) 50%, color-mix(in oklab, var(--tone) 9%, transparent), transparent 70%), linear-gradient(180deg, #131920, #0b0f14);
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--ink) 7%, transparent), 0 40px 60px -44px rgb(0 0 0 / 0.95);
  transition: border-color 300ms ease;
}
.fnd--cool { --tone: var(--cool); }
.fnd:nth-child(even) { --side: 100%; grid-template-columns: minmax(0, 1fr) clamp(250px, 29%, 372px); }
.fnd:nth-child(even) .fnd__photo { order: 2; }
.fnd__photo { position: relative; min-height: 340px; overflow: hidden; background: #0b0f14; }
.fnd__photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: grayscale(0.9) contrast(1.05) brightness(0.9); transition: transform 1100ms var(--ease-out), filter 700ms ease; }
/* the card's own light across the photo, and the photo's inner edge sinking into the card */
.fnd__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 62%, #0f141a), linear-gradient(200deg, color-mix(in oklab, var(--tone) 26%, transparent), transparent 55%); }
.fnd:nth-child(even) .fnd__photo::after { background: linear-gradient(270deg, transparent 62%, #0f141a), linear-gradient(160deg, color-mix(in oklab, var(--tone) 26%, transparent), transparent 55%); }
@media (hover: hover) and (pointer: fine) {
  .fnd:hover { border-color: color-mix(in oklab, var(--tone) 34%, transparent); }
  .fnd:hover .fnd__photo img { transform: scale(1.05); filter: grayscale(0) contrast(1) brightness(1); }
}
.fnd__body { display: grid; gap: var(--s-3); align-content: center; min-width: 0; padding: clamp(22px, 3vw, 44px); }
.fnd__role { margin: 0; font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.02em; color: var(--tone); }
.fnd h3 { font: 600 clamp(26px, 2.5vw, 36px)/1.08 var(--font-display); letter-spacing: -0.03em; }
.fnd__cred { margin-top: -4px; font-size: var(--t-small); font-weight: 500; color: var(--ink); }
.fnd__story { max-width: 56ch; color: var(--muted); }
.fnd h4 { margin-top: var(--s-2); font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.02em; color: var(--muted); }
.fnd__brings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px var(--s-5); margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.35; }
.fnd__brings li { position: relative; padding-left: 16px; text-wrap: balance; }
.fnd__brings li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); }
.fnd__aside { font-size: var(--t-small); color: var(--muted); }
.fnd__link { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--t-small); font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: text-decoration-color 160ms ease; }
.fnd__link .icon-mono { width: 16px; height: 16px; }
.fnd__link:hover { text-decoration-color: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .fnd.is-armed:not(.is-in) { opacity: 0; }
  .fnd.is-in { animation: fnd-in 1000ms var(--ease-out) backwards; }
  .fnd.is-in .fnd__photo img { animation: fnd-photo 1600ms var(--ease-out) backwards; }
  .fnd:nth-child(even).is-in { animation-name: fnd-in-r; }
}
@keyframes fnd-in { from { opacity: 0; transform: translate3d(-40px, 24px, 0); } }
@keyframes fnd-in-r { from { opacity: 0; transform: translate3d(40px, 24px, 0); } }
@keyframes fnd-photo { from { transform: scale(1.14); } }
.cred { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-5) clamp(24px, 5vw, 80px); margin-top: var(--s-5); padding: clamp(20px, 2.6vw, 36px); border-radius: var(--r-lg); border: 1px solid var(--line); scroll-margin-top: calc(var(--nav) + 24px); }
.cred h3 { margin-bottom: var(--s-3); font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.02em; color: var(--muted); }
.cred__who { display: flex; align-items: center; gap: var(--s-4) var(--s-5); flex-wrap: wrap; }
/* SAICA's own logo, in its own colours, on the light plate it is made for */
.cred__logo { flex: none; display: grid; place-items: center; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -26px rgb(0 0 0 / 0.9); }
.cred__logo img { display: block; width: 172px; height: auto; }
.cred__who > div { flex: 1 1 15em; min-width: 0; }
.cred__name { font: 600 var(--t-lead)/1.3 var(--font-display); letter-spacing: -0.01em; }
.cred__line { margin-top: var(--s-2); font-size: var(--t-small); color: var(--muted); }
.cred__std ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.cred__std li { display: grid; gap: 2px; padding: 12px 16px; border-radius: 12px; border: 1px solid color-mix(in oklab, var(--ink) 9%, transparent); background: color-mix(in oklab, var(--ink) 3.5%, transparent); }
.cred__std b { font: 600 15px/1.3 var(--font-display); letter-spacing: -0.01em; }
.cred__std span { font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (max-width: 899px) {
  .fnd, .fnd:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .fnd:nth-child(even) .fnd__photo { order: 0; }
  .fnd__photo { min-height: 0; aspect-ratio: 16 / 11; }
  .fnd__photo::after, .fnd:nth-child(even) .fnd__photo::after { background: linear-gradient(180deg, transparent 58%, #0f141a), linear-gradient(200deg, color-mix(in oklab, var(--tone) 26%, transparent), transparent 55%); }
  .cred { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 519px) {
  .fnd__photo { aspect-ratio: 5 / 4; }
  .fnd__brings, .cred__std ul { grid-template-columns: minmax(0, 1fr); }
}

/* ───────── 14. security: a shield of three plates in depth, and seven practices that light in turn ───────── */
.sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--s-7) clamp(32px, 6vw, 112px); }
.sec__art { position: relative; display: grid; place-items: center; min-height: 440px; perspective: 1100px; }
.sec__art::before { content: ""; position: absolute; inset: 6% 0; pointer-events: none; background: radial-gradient(40% 46% at 38% 54%, color-mix(in oklab, var(--warm) 15%, transparent), transparent 72%), radial-gradient(40% 46% at 62% 46%, color-mix(in oklab, var(--cool) 15%, transparent), transparent 72%); }
.sec__stack { position: relative; width: min(74%, 300px); aspect-ratio: 120 / 136; transform-style: preserve-3d; transform: rotateX(calc(9deg + var(--rx, 0deg))) rotateY(calc(-26deg + var(--ry, 0deg))); transition: transform 600ms var(--ease-out); }
.sec__plate { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: transform 1100ms var(--ease-out) 500ms; }
.sec__plate--back { --tone: var(--warm); transform: translateZ(-78px); }
.sec__plate--mid { --tone: color-mix(in oklab, var(--ink) 46%, transparent); transform: translateZ(0); }
.sec__plate--front { --tone: var(--cool); transform: translateZ(78px); }
.sec__fill { fill: color-mix(in oklab, #0c1116 78%, transparent); }
.sec__plate--back .sec__fill { fill: color-mix(in oklab, var(--warm) 9%, #0b0f14); }
.sec__plate--front .sec__fill { fill: color-mix(in oklab, var(--cool) 7%, color-mix(in oklab, #0c1116 62%, transparent)); }
.sec__edge { fill: none; stroke: var(--tone); stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1300ms var(--ease-in-out); filter: drop-shadow(0 0 6px var(--tone)); }
.sec__tick { fill: none; stroke: var(--cool); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 520ms var(--ease-out) 1500ms; filter: drop-shadow(0 0 8px var(--cool)); }
.sec__text { display: grid; gap: var(--s-5); min-width: 0; }
.sec__tag { margin: 0 0 calc(-1 * var(--s-2)); font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.02em; color: var(--muted); }
.sec__text h2 { max-width: 20ch; }
.sec__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sec__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--muted); transition: opacity 500ms var(--ease-out) calc(700ms + var(--i) * 150ms); }
.sec__list b { font-weight: 600; color: var(--ink); }
.sec__list svg { width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: var(--cool); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sec__list path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 420ms var(--ease-out) calc(820ms + var(--i) * 150ms); }
.sec__note { padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--muted); }
.sec.is-armed:not(.is-in) .sec__plate { transform: translateZ(0); transition: none; }
.sec.is-armed:not(.is-in) :is(.sec__edge, .sec__tick, .sec__list path) { stroke-dashoffset: 1; transition: none; }
.sec.is-armed:not(.is-in) .sec__list li { opacity: 0.3; transition: none; }
@media (max-width: 899px) {
  .sec { grid-template-columns: minmax(0, 1fr); }
  .sec__art { min-height: 300px; }
  .sec__stack { width: min(46%, 200px); }
  .sec__plate--back { transform: translateZ(-52px); }
  .sec__plate--front { transform: translateZ(52px); }
}
@media (prefers-reduced-motion: reduce) { .sec__stack { transition: none; } }

/* ───────── 15. businesses we work with: the businesses on light plates, in a row that keeps moving ───────── */
.cl-head { display: grid; gap: var(--s-4); max-width: 820px; margin-bottom: var(--head-gap); }
.cl { --cl-gap: 20px; position: relative; }
.cl__view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.cl__track { display: flex; width: max-content; animation: cl-run 52s linear infinite; }
.cl__set { flex: none; display: flex; align-items: center; gap: var(--cl-gap); margin: 0; padding: 6px var(--cl-gap) 6px 0; list-style: none; }
.cl__set li { flex: none; display: grid; place-items: center; width: 196px; height: 104px; padding: 0 18px; border-radius: 16px; background: #f1ede7; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5), 0 24px 34px -26px rgb(0 0 0 / 0.9); transition: opacity 220ms var(--ease-out), transform 300ms var(--ease-out); }
.cl__set img { display: block; max-width: 132px; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.cl__set img[src$=".svg"] { width: 92px; }
.cl__set span { font: 600 16px/1.2 var(--font-display); letter-spacing: -0.02em; text-align: center; color: #07090b; }
@keyframes cl-run { from { transform: translate3d(calc(-100% / 3), 0, 0); } to { transform: translate3d(0, 0, 0); } }
.cl.is-off .cl__track, .cl[data-paused] .cl__track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .cl__view:hover .cl__track { animation-play-state: paused; }
  .cl__view:hover li { opacity: 0.5; }
  .cl__view:hover li:hover { opacity: 1; transform: translateY(-4px); }
}
.cl__foot { display: flex; justify-content: flex-end; }
.cl__foot .loop-btn { margin-bottom: -20px; }
@media (max-width: 639px) {
  .cl { --cl-gap: 12px; }
  .cl__set li { width: 148px; height: 84px; padding: 0 12px; }
  .cl__set img { max-width: 104px; max-height: 48px; }
  .cl__set img[src$=".svg"] { width: 72px; }
  .cl__set span { font-size: 14px; }
  .cl__track { animation-duration: 40s; }
}
@media (prefers-reduced-motion: reduce) {
  .cl__view { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gut); }
  .cl__track { display: block; width: auto; animation: none; }
  .cl__set { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .cl__set + .cl__set { display: none; }
}

/* ───────── 16. what's new in AI: four cards and the chips that filter them ───────── */
.nws-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--head-gap); }
.nws-head > div:first-child { display: grid; gap: var(--s-3); }
.nws-chips { display: flex; gap: 6px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.nws-chip { min-height: 36px; margin: 0; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 14px/1 var(--font-text); cursor: pointer; transition: color 160ms ease, background-color 160ms ease; }
.nws-chip[aria-pressed="true"] { background: var(--ink); color: #07090b; }
@media (hover: hover) and (pointer: fine) { .nws-chip:hover { color: var(--ink); } }
.nws-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.nws {
  --tone: var(--cool);
  position: relative; display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; padding: clamp(18px, 1.8vw, 26px); border-radius: var(--r-lg);
  border: 1px solid color-mix(in oklab, var(--ink) 9%, transparent);
  background: linear-gradient(180deg, color-mix(in oklab, #131920 88%, transparent), color-mix(in oklab, #0b0f14 88%, transparent));
  box-shadow: 0 34px 50px -40px rgb(0 0 0 / 0.95);
  transition: transform 320ms var(--ease-out), border-color 300ms ease, box-shadow 400ms ease;
  animation: nws-in 480ms var(--ease-out) calc(var(--i) * 60ms) backwards;
}
.nws--warm { --tone: var(--warm); }
.nws::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px; background: var(--tone); transform: scaleX(0.14); transform-origin: 0 50%; transition: transform 520ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .nws:hover { transform: translateY(-6px); border-color: color-mix(in oklab, var(--tone) 34%, transparent); box-shadow: 0 44px 60px -36px rgb(0 0 0 / 1), 0 0 50px -26px var(--tone); }
  .nws:hover::before { transform: none; }
}
@keyframes nws-in { from { opacity: 0; transform: translateY(14px); } }
.nws__meta { display: flex; justify-content: space-between; gap: var(--s-3); margin: 0; font: 400 12px/1.4 var(--font-mono); color: var(--muted); }
.nws__meta span { color: var(--tone); }
.nws h3 { font: 600 clamp(17px, 1.35vw, 20px)/1.3 var(--font-text); letter-spacing: -0.01em; text-wrap: balance; }
.nws__means { font-size: 15px; line-height: 1.5; color: var(--muted); }
.nws__means span { display: block; margin-bottom: 4px; font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.02em; color: color-mix(in oklab, var(--ink) 72%, transparent); }
.nws__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: auto 0 -10px; font-size: var(--t-small); font-weight: 500; color: var(--ink); }
.nws__link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: translate 200ms var(--ease-out); }
.nws__link:hover svg { translate: 2px -2px; }
/* the whole card is the link's target */
.nws__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
@media (max-width: 1099px) { .nws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .nws-grid { grid-template-columns: minmax(0, 1fr); } }

/* ───────── 17. questions ───────── */
.qa-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-6) clamp(24px, 6vw, 112px); align-items: start; }
.qa-head { position: sticky; top: calc(var(--nav) + 32px); display: grid; gap: var(--s-4); }
.qa-head a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.qa-head a:hover { text-decoration-color: currentColor; }
.qa { interpolate-size: allow-keywords; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) 20px; align-items: center; gap: var(--s-3); min-height: 68px; padding: var(--s-4) 0; list-style: none; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa__no { font: 400 12px/1 var(--font-mono); color: var(--muted); transition: color 200ms ease; }
.qa__q { font: 500 clamp(18px, 1.5vw, 22px)/1.3 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.qa summary svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; transition: rotate 300ms var(--ease-out), stroke 200ms ease; }
.qa details[open] summary svg { rotate: 45deg; stroke: var(--cool); }
.qa details[open] .qa__no { color: var(--cool); }
@media (hover: hover) and (pointer: fine) { .qa summary:hover svg { stroke: var(--ink); } .qa summary:hover .qa__no { color: var(--ink); } }
.qa__a { padding: 0 36px var(--s-5) calc(2.6em + var(--s-3)); }
.qa__a p { max-width: 54ch; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .qa details::details-content { block-size: 0; overflow: clip; transition: block-size 340ms var(--ease-out), content-visibility 340ms allow-discrete; }
  .qa details[open]::details-content { block-size: auto; }
}
@media (max-width: 899px) {
  .qa-grid { grid-template-columns: minmax(0, 1fr); }
  .qa-head { position: static; }
  .qa__a { padding-left: 0; padding-right: 0; }
  .qa summary { grid-template-columns: 2em minmax(0, 1fr) 20px; }
}

/* ───────── 18. the close: the flocks form the mark again, large, behind the last words and the form ───────── */
/* components/Close.tsx. The 3D field draws the mark in .end__mark (data-field="close"); the drawn mark there is for a
   browser that rests motion or cannot draw the scene. The form stands on dark glass in front of it */
main > section#enquire { display: grid; align-items: center; height: auto; min-height: 100svh; padding: calc(var(--nav) + clamp(36px, 8svh, 96px)) 0 clamp(64px, 11svh, 128px); overflow: clip; }
/* the mark's place: sized from the text column (cqw), never from the text, and set so the two 2s stand on the
   line just under the lead (the scene draws the mark's foot 11% of this box's height above its lower edge), so
   the contact details below are clear of the points */
.end__say { container-type: inline-size; position: relative; display: grid; gap: var(--s-5); padding-bottom: clamp(44px, 4.4vw, 64px); }
.end__mark { --mw: min(136cqw, 1100px, 100svh); position: absolute; left: 50%; bottom: calc(var(--mw) * -0.073); z-index: -1; width: var(--mw); height: calc(var(--mw) / 1.5); display: grid; place-items: center; transform: translateX(-50%); pointer-events: none; }
.end__mark .twin { height: 82%; max-width: 100%; opacity: 0.42; }
@media (prefers-reduced-motion: no-preference) { html.js:not(.field-off) .end__mark .twin { visibility: hidden; } }
.end__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: var(--s-7) clamp(32px, 6vw, 104px); }
.end__text { position: relative; z-index: 0; display: grid; gap: var(--s-5); min-width: 0; text-shadow: 0 0 34px rgb(7 9 11 / 0.95), 0 0 10px rgb(7 9 11 / 0.8); }
.end__text h2 { font-size: clamp(40px, 5.6vw, 88px); line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
.end__text .t-lead { max-width: 34ch; }
.end__reach { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7); margin: 0; }
.end__reach dt { margin-bottom: 6px; font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.02em; color: var(--muted); }
.end__reach dd { margin: 0; font-size: var(--t-lead); }
.end__reach a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.end__reach a:hover { text-decoration-color: currentColor; }
.end__form {
  position: relative; padding: clamp(20px, 2.6vw, 36px); border-radius: var(--r-lg);
  background: color-mix(in oklab, #0b0f14 62%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--ink) 9%, transparent), 0 60px 90px -50px #000;
}
.end__form::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(120deg, color-mix(in oklab, var(--warm) 70%, transparent), color-mix(in oklab, var(--ink) 12%, transparent) 34%, color-mix(in oklab, var(--ink) 12%, transparent) 66%, color-mix(in oklab, var(--cool) 70%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.end__form { --error: color-mix(in oklab, #ff6b5e 80%, var(--ink)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.end__form > :is(.field--full, .btn-row, p) { grid-column: 1 / -1; }
@media (max-width: 519px) { .end__form { grid-template-columns: minmax(0, 1fr); } }
.end__form-h { grid-column: 1 / -1; margin-bottom: var(--s-2); font: 600 clamp(19px, 1.7vw, 24px)/1.25 var(--font-display); letter-spacing: -0.02em; }
.end__form .field :is(input, textarea) { background: rgb(7 9 11 / 0.62); scroll-margin-top: calc(var(--nav) + 56px); transition: border-color 160ms ease, box-shadow 160ms ease; }
.end__form .field :is(input, textarea):not([aria-invalid="true"]), dialog.login .field input:not([aria-invalid="true"]) { border-color: color-mix(in oklab, var(--ink) 42%, transparent); }
.end__form .field :is(input, textarea):focus-visible { outline: none; border-color: var(--cool); box-shadow: 0 0 0 3px color-mix(in oklab, var(--cool) 26%, transparent); }
.end__form .field textarea { min-height: 104px; }
.end__consent label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-weight: 400; line-height: 1.45; color: var(--muted); cursor: pointer; }
.end__consent input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--cool); cursor: pointer; }
.end__consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.end__send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.end__how { font-size: 13px; color: var(--muted); }
@media (max-width: 899px) {
  main > section#enquire { align-items: start; }
  .end__in { grid-template-columns: minmax(0, 1fr); }
  .end__mark { --mw: min(112cqw, 44svh); }
  /* without glass over a moving scene, a phone keeps its frames */
  .end__form { background: rgb(11 15 20 / 0.94); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* the footer's own ground: a soft top edge, so the close's scene sinks into it */
html footer.footer.foot { position: relative; z-index: 1; border-top: 0; padding-top: clamp(72px, 11svh, 120px); background: linear-gradient(180deg, transparent, var(--bg) 120px); }
@media (max-width: 639px) {
  .footer__lede { line-height: 1.3; }
  .footer__legal .socials .icon-mono { margin: auto; }
}

/* ───────── the Privacy notice and the 404 page: plain pages in the site's own dress ───────── */
.plain-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--nav); }
.plain-bar .nav__logo .twin { height: 30px; }
.plain-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--ink); }
.plain-back svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: translate 200ms var(--ease-out); }
.plain-back:hover svg { translate: -3px 0; }
.plain-main { position: relative; isolation: isolate; }
.plain-main::before { content: ""; position: absolute; inset: 0 0 auto; height: 70vh; z-index: -1; pointer-events: none; background: radial-gradient(46% 60% at 14% 0%, color-mix(in oklab, var(--warm) 11%, transparent), transparent 72%), radial-gradient(46% 60% at 86% 0%, color-mix(in oklab, var(--cool) 10%, transparent), transparent 72%); }
.doc { max-width: 760px; padding: clamp(40px, 8vh, 96px) 0 clamp(72px, 12vh, 128px); }
.doc h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; }
.doc__date { margin: var(--s-4) 0 var(--s-7); font: 400 13px/1.4 var(--font-mono); color: var(--muted); }
.doc h2 { margin: var(--s-7) 0 var(--s-3); font-size: clamp(20px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--muted); line-height: 1.65; }
.doc p + p { margin-top: var(--s-3); }
.doc ul { display: grid; gap: 8px; margin: var(--s-3) 0 0; padding-left: 1.2em; }
.doc strong { font-weight: 600; color: var(--ink); }
.doc a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.doc a:hover { text-decoration-color: currentColor; }
.lost { display: grid; align-content: center; justify-items: start; gap: var(--s-5); min-height: calc(100svh - var(--nav)); padding: var(--s-7) 0 var(--s-9); }
.lost .twin { height: clamp(96px, 16vw, 168px); }
.lost__code { margin: 0; font: 400 13px/1.4 var(--font-mono); color: var(--muted); }
.lost h1 { max-width: 14ch; font-size: clamp(40px, 6vw, 88px); line-height: 0.98; letter-spacing: -0.045em; }
.lost p { max-width: 46ch; color: var(--muted); }

/* ───────── from the design critique of 6 December 2026 ───────── */
/* the founders' opening line and the footer's slogan: shorter lines, a little more air */
.fnd-head > p { max-width: 58ch; }
.footer .footer__lede { line-height: 1.3; }
/* the first screen's trust line leads to the founders, where its proof is */
.hero-fact a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--ink) 26%, transparent); text-underline-offset: 4px; transition: color 160ms ease, text-decoration-color 160ms ease; }
.hero-fact a:active { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .hero-fact a:hover { color: var(--ink); text-decoration-color: currentColor; } }
/* the contact form: a field with an error no longer pushes its neighbour down; the copy buttons come after the message is written */
.end__form .field { align-content: start; }
.end__copy { gap: 10px; }
/* the game says its machine figures are an illustration */
.rtm__ill { display: block; margin-top: 6px; font: 400 12px/1.4 var(--font-mono); color: var(--muted); }
/* a finger gets 44px on the small switches (the dashboard's keeps its look; its touch area grows) */
@media (pointer: coarse) {
  .nws-chip { min-height: 44px; }
  .dash__pick { position: relative; }
  .dash__pick::after { content: ""; position: absolute; inset: -7px 0; }
}
/* the Mission's stating sentence is long: a phone sets both stating sentences a step smaller */
@media (max-width: 639px) { .aim__lead { font-size: 22px; line-height: 1.3; } }

/* a founder card whose name and photo are withheld (founder, 6 December 2026): the photo's place keeps its
   size and the card's own light, and says why it is empty */
.fnd__photo--withheld { display: grid; place-items: center; padding: var(--s-5);
  background: radial-gradient(80% 70% at 50% 40%, color-mix(in oklab, var(--tone) 14%, transparent), transparent 72%), #0b0f14; }
.fnd__withheld { position: relative; z-index: 1; max-width: 18ch; text-align: center; font: 400 12px/1.5 var(--font-mono);
  letter-spacing: 0.02em; color: color-mix(in oklab, var(--ink) 72%, transparent); }
