/* Workshape homepage prototype.
   Tokens, type and motion follow ci/index.html. Everything that moves lives under html.motion;
   without that class the page is complete and static. */

/* ---------- Fonts (SIL Open Font License, self-hosted) ---------- */

@font-face { font-family: "Newsreader"; src: url("https://cdn.vivd.studio/media/workshape/workshape-site/01817351be3edfc1714fe6d60ddea6a22a169a5ebd033b50c7f9495e5d9c386a.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("https://cdn.vivd.studio/media/workshape/workshape-site/a99fb127682b9af538780d21420037452197b0d37dfd273eb108f8a3665d5501.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("https://cdn.vivd.studio/media/workshape/workshape-site/f24c43e585a15688ea1fd865c133dd564bf64ee0c8a16b10659bbe23bca25fe7.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("https://cdn.vivd.studio/media/workshape/workshape-site/18de3e03e923c87e6070691fd5b3667212d61e8f543c7b6f3f5263a87c611cf7.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("https://cdn.vivd.studio/media/workshape/workshape-site/c36f509c0a8f9f85f29cb44bc8701d8a9e0b14c499e77a884f789ead7093a7ac.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("https://cdn.vivd.studio/media/workshape/workshape-site/a76f53ca6612e7b3828eec2311098675b7f9849ae4169a8bcef6302aec02a6c0.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("https://cdn.vivd.studio/media/workshape/workshape-site/2665f5fbbb334780fa135c7f1dc6e2459061a2d6d44c32b7c1fdbc34cde65ede.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- Tokens ---------- */

:root {
  --paper: #F7F6F2;
  --paper-2: #EFEDE6;
  --ink: #171614;
  --ink-2: #4A4741;
  --ink-3: #6F6B64;
  --mute: #8E897F;               /* hollow "not yet" squares, 3.2:1 */
  --rule: rgba(23, 22, 20, .14);
  --rule-strong: rgba(23, 22, 20, .30);
  --signal: #E2531B;             /* graphics only: where a person decides */
  --signal-ink: #B43F12;         /* the same meaning as text, 5.3:1 */
  --ink-hover: #36332E;
  --band-bg: #141311;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --quick: 140ms;
  --std: 280ms;
  --reveal: 700ms;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.19, 1, .22, 1);

  --header: 64px;
  --margin: clamp(20px, 4vw, 64px);
  --gutter: 24px;
  --max: 1360px;
  --section: clamp(96px, 13.3vw, 192px);

  color-scheme: light;
}

/* The dark chapters keep dark tokens in both themes, and so does the header while it sits on the hero. */
.band, .site-header.is-dark {
  --paper: var(--band-bg);
  --paper-2: #1C1B18;
  --ink: #EDEAE3;
  --ink-2: #B9B4AA;
  --ink-3: #8E897F;
  --mute: #6A665F;
  --rule: rgba(237, 234, 227, .14);
  --rule-strong: rgba(237, 234, 227, .30);
  --signal: #F06A2E;
  --signal-ink: #F4875A;
  --ink-hover: #FFFFFF;
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 24px);
}
/* Smooth only for links within the page; set after load, so a link to a section opens there at once. */
html.motion.smooth { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }

h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: inherit; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 1px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 16px; border-radius: 2px;
  font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */

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

.section { padding-top: var(--section); }

/* ---------- Type ---------- */

.h1 {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(44px, 5.7vw, 88px);
  line-height: .98;
  letter-spacing: -.024em;
}
.h1__ln { display: block; }
.h1__ln--soft { font-style: italic; font-weight: 320; color: var(--ink-2); letter-spacing: -.018em; }

.h2 {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(32px, 3.75vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  max-width: 21ch;
  text-wrap: balance;
}
.h2 .soft { color: var(--ink-3); }

.h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.1;
  letter-spacing: -.014em;
}

.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
}

.body { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 34em; }

.eyebrow {
  display: flex; gap: 14px; align-items: baseline;
  font: 500 15px/1.4 var(--sans);
  color: var(--ink-2);
}
.eyebrow__n { color: var(--ink-3); font-variant-numeric: tabular-nums; }

.fig-no {
  font: 500 12px/1.2 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Notation squares */
.sq { display: inline-block; flex: none; width: 10px; height: 10px; }
.sq--done { background: var(--ink); }
.sq--todo { box-shadow: inset 0 0 0 1px var(--mute); }
.sq--wait { box-shadow: inset 0 0 0 2px var(--signal); }
.sq--signed { background: var(--signal); }
.ln { display: inline-block; flex: none; width: 10px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat; }

/* ---------- Wordmark ---------- */

.wm {
  display: inline-flex; align-items: baseline;
  font-size: 23px; line-height: 1;
  letter-spacing: -.012em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wm__w { font-family: var(--sans); font-weight: 600; }
.wm__s {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-variation-settings: "opsz" 72;
  letter-spacing: -.005em;
  margin-left: .02em;
}
.wm__sq { display: inline-block; width: .15em; height: .15em; margin-left: .06em; background: var(--signal); }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 48px; padding: 0 20px;
  border-radius: 2px;
  font: 500 15.5px/1 var(--sans);
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease);
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-hover); }
.btn__sq { flex: none; width: 7px; height: 7px; background: #E2531B; } /* the light-theme signal holds 3:1 on both button colours */
.btn--sm { min-height: 40px; padding: 0 15px; font-size: 14.5px; gap: 10px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px;
  font: 500 15.5px/1.2 var(--sans);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: .32em;
  transition: text-decoration-color var(--quick) var(--ease);
}
.link-arrow:hover { text-decoration-color: currentColor; }

.ico {
  flex: none; width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: square;
  transition: transform var(--quick) var(--ease);
}
.link-arrow:hover .ico { transform: translate(2px, 0); }
.link-arrow[href^="#"]:hover .ico { transform: translate(0, 2px); }
.link-arrow[href^="http"]:hover .ico { transform: translate(1.5px, -1.5px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--std) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
/* At fractional pixel ratios, such as 125 or 130 percent, Chrome left a hairline of page text visible above the sticky header. */
.site-header::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 8px; background: var(--paper); }

.site-header__in { height: var(--header); display: flex; align-items: center; gap: 32px; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 30px; }
.nav a {
  display: inline-block; padding: 10px 0;
  font: 500 15px/1 var(--sans); white-space: nowrap;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--quick) var(--ease);
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 8px; }

.site-header__end { display: flex; align-items: center; gap: 12px; }
.show-sm { display: none; }

.menu-btn {
  display: none;
  align-items: center; gap: 10px;
  min-height: 40px; padding: 0 4px 0 10px;
  background: none; border: 0; cursor: pointer;
  font: 500 14.5px/1 var(--sans); color: var(--ink);
}
.menu-btn__ico { position: relative; width: 16px; height: 9px; }
.menu-btn__ico i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform var(--std) var(--ease); }
.menu-btn__ico i:first-child { top: 0; }
.menu-btn__ico i:last-child { bottom: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__ico i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__ico i:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--header);
  background: var(--paper);
  border-top: 1px solid var(--rule);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu__in { padding: 12px 0 40px; }
.menu__list a {
  display: flex; gap: 16px; align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  font: 380 30px/1.1 var(--serif);
  letter-spacing: -.012em;
  text-decoration: none;
}
.menu__n { min-width: 26px; font: 500 14px/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.menu__foot { margin-top: 32px; }
.menu__foot .pref { margin-top: 28px; }

/* ---------- Language ---------- */

.lang { display: flex; align-items: center; padding-left: 10px; border-left: 1px solid var(--rule); }
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; min-height: 40px; padding: 0 4px;
  font: 500 14.5px/1 var(--sans); color: var(--ink-3);
  text-decoration: none;
  transition: color var(--quick) var(--ease);
}
.lang a:hover, .lang a[aria-current] { color: var(--ink); }
.lang a[aria-current] { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 8px; }

/* ---------- Hero ---------- */

/* A dark band in both themes: a plane of symbols with one orange block on it, drawn by hero-field.js. */
.hero.band { margin-top: 0; }
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--header));
  display: flex; align-items: center;
}
.hero__media { position: absolute; inset: 0; display: block; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, var(--paper) 0%, rgba(12, 11, 10, 0) 12%),
    linear-gradient(0deg, var(--paper) 0%, rgba(12, 11, 10, 0) 16%);
}
/* The square is a real button; the canvas leaves its place free and starts the waves there. */
.hero__block {
  position: absolute; z-index: 1; top: 50%; right: max(var(--margin), 9vw);
  width: clamp(128px, 15vw, 208px); aspect-ratio: 1; transform: translateY(-50%);
  background: none; border: 0; padding: 0; border-radius: 4px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hero__block:focus-visible { outline: 2px solid var(--ink); outline-offset: 8px; }
/* The grid lies over the field; only the copy takes the pointer, so the block stays reachable. */
.hero__grid { pointer-events: none; }
.hero__copy { pointer-events: auto; }
.hero__grid { position: relative; width: min(100% - 2 * var(--margin), var(--max)); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.hero__copy { grid-column: 1 / span 7; padding: clamp(56px, 9vh, 120px) 0; }

.hero__copy .h1 { margin-top: 26px; }
.h1__ln { text-wrap: balance; }
.hero__lead { margin-top: 30px; max-width: 29em; }
.hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }

/* ---------- 01 Real work ---------- */

.work__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.work__copy { grid-column: 1 / span 5; }
.work__copy .h2 { margin-top: 22px; }
.work__copy .body { margin-top: 28px; }
.work__copy .body + .body { margin-top: 14px; color: var(--ink); }
.work__fig { grid-column: 7 / -1; }

/* ---------- Figure 1: the run ---------- */

.run { width: 100%; max-width: 620px; margin-left: auto; border-top: 1px solid var(--ink); }

.run__top { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: baseline; padding: 14px 0 14px; }
.run__name { font: 400 19px/1.2 var(--serif); letter-spacing: -.004em; }
.run__id { font: 500 12px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.run__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font: 500 12px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase;
}
.run__status { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); transition: color var(--std) var(--ease); }
.run__status-sq { width: 10px; height: 10px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); transition: background-color var(--quick) var(--ease), box-shadow var(--quick) var(--ease); }
.run__status[data-status="running"] .run__status-sq { background: transparent; }
.run__status[data-status="wait"] { color: var(--signal-ink); }
.run__status[data-status="wait"] .run__status-sq { background: transparent; box-shadow: inset 0 0 0 2px var(--signal); }
.run__clock { display: inline-flex; gap: 10px; font-variant-numeric: tabular-nums; }
.run__k { color: var(--ink-3); }

.run__body { position: relative; }
.run__path { position: absolute; left: 4.5px; width: 1px; top: 23px; bottom: 33px; background: var(--rule-strong); }
.run__path i { position: absolute; inset: 0; background: var(--ink); transform-origin: 50% 0; transform: scaleY(var(--fill, 1)); transition: transform var(--std) var(--ease); }

.step {
  position: relative;
  display: grid; grid-template-columns: 10px 22px minmax(0, 1fr) auto 78px; column-gap: 14px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.mark { position: relative; z-index: 1; width: 10px; height: 10px; margin-top: 6px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--mute); }
.mark i {
  position: absolute; inset: 0; background: var(--ink);
  transform: scale(0); transform-origin: 50% 100%;
  transition: transform var(--quick) var(--ease), background-color var(--quick) var(--ease);
}
.step__n { font: 500 12px/22px var(--mono); letter-spacing: .04em; color: var(--ink-3); }
.step__text { display: flex; flex-direction: column; min-width: 0; }
.step__name { font: 500 15.5px/22px var(--sans); color: var(--ink); transition: color var(--std) var(--ease); }
.step__detail { font: 400 14px/20px var(--sans); color: var(--ink-2); transition: color var(--std) var(--ease); }
.step__sys { font: 500 11.5px/22px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); text-align: right; white-space: nowrap; }
.step__dur { font: 500 12px/22px var(--mono); letter-spacing: .02em; color: var(--ink-2); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color var(--std) var(--ease); }

.v-todo, .v-wait { display: none; }

/* Final states: no JavaScript, reduced motion, motion switched off */
.step[data-final="done"] .mark { box-shadow: inset 0 0 0 1px var(--ink); }
.step[data-final="done"] .mark i { transform: scale(1); }
.step[data-final="signed"] .mark { box-shadow: inset 0 0 0 1px var(--signal); }
.step[data-final="signed"] .mark i { transform: scale(1); background: var(--signal); }
.step[data-final="signed"] .step__detail,
.step[data-final="signed"] .step__dur { color: var(--signal-ink); }

/* Run states, set by the script */
.motion .step[data-s] .mark { box-shadow: inset 0 0 0 1px var(--mute); }
.motion .step[data-s] .mark i { transform: scale(0); background: var(--ink); }
.motion .step[data-s="todo"] .step__name,
.motion .step[data-s="todo"] .step__detail { color: var(--ink-3); }
.motion .step[data-s="todo"] .step__dur,
.motion .step[data-s="work"] .step__dur { visibility: hidden; }
.motion .step[data-s="work"] .mark { box-shadow: inset 0 0 0 1px var(--ink); }
.motion .step[data-s="work"] .mark i { transform: scaleY(var(--k, 0)); transition: none; }
.motion .step[data-s="done"] .mark { box-shadow: inset 0 0 0 1px var(--ink); }
.motion .step[data-s="done"] .mark i { transform: scale(1); }
.motion .step[data-s="wait"] .mark { box-shadow: inset 0 0 0 2px var(--signal); }
.motion .step[data-s="wait"] .step__detail,
.motion .step[data-s="wait"] .step__dur { color: var(--signal-ink); }
.motion .step[data-s="signed"] .mark { box-shadow: inset 0 0 0 1px var(--signal); }
.motion .step[data-s="signed"] .mark i { transform: scale(1); background: var(--signal); }
.motion .step[data-s="signed"] .step__detail,
.motion .step[data-s="signed"] .step__dur { color: var(--signal-ink); }
.motion .step--person[data-s="signed"] .step__dur { visibility: visible; }
.motion .step--person[data-s] .v-signed { display: none; }
.motion .step--person[data-s="todo"] .v-todo,
.motion .step--person[data-s="wait"] .v-wait,
.motion .step--person[data-s="signed"] .v-signed { display: inline; }
.motion .step--person[data-s="wait"] .step__dur { visibility: visible; }

.run__sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.run__sum > div { padding: 12px 0 13px; min-width: 0; }
.run__sum > div + div { padding-left: 14px; border-left: 1px solid var(--rule); }
.run__sum dt { font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.run__sum dd { margin-top: 7px; font: 500 15px/1.2 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

.run__legend { display: grid; gap: 7px; padding-top: 16px; }
.run__legend li { display: flex; align-items: center; gap: 12px; font: 400 14.5px/1.4 var(--sans); color: var(--ink-2); transition: color var(--std) var(--ease); }
.motion .run__legend[data-active] li { color: var(--ink-3); }
.motion .run__legend[data-active="1"] li[data-phase="1"],
.motion .run__legend[data-active="2"] li[data-phase="2"],
.motion .run__legend[data-active="3"] li[data-phase="3"],
.motion .run__legend[data-active="4"] li[data-phase="4"] { color: var(--ink); }

.run__cap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 46px; padding-top: 6px; font: italic 400 14px/1.4 var(--serif); color: var(--ink-3); }
.run__replay {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 36px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  font: 500 13.5px/1 var(--sans); color: var(--ink-2);
  transition: color var(--quick) var(--ease);
}
.run__replay:hover { color: var(--ink); }
.run__replay .ico { width: 14px; height: 14px; transition: transform var(--std) var(--ease); }
.run__replay:hover .ico { transform: rotate(-40deg); }

@media (min-width: 900px) {
  .run__legend { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 8px; }
}
/* Laptop heights: tighter rows */
@media (max-height: 860px) {
  .run__top { padding: 11px 0; }
  .run__bar { padding: 9px 0; }
  .step { padding: 8px 0; }
  .step__detail { font-size: 13.5px; line-height: 19px; }
  .run__sum > div { padding: 10px 0 11px; }
  .run__legend { padding-top: 13px; }
  .run__cap { padding-top: 2px; }
}
/* Short laptops and small phones: only the sign-off keeps its detail line */
@media (max-height: 720px) {
  .step:not(.step--person) .step__detail { display: none; }
  .step { padding: 7px 0; }
}

/* ---------- 02 The whole company, figure 2 ---------- */

.acc-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(48px, 6vw, 88px); }
.acc { grid-column: 4 / span 9; max-width: 860px; border-top: 1px solid var(--ink); }
.acc__top { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: baseline; padding: 14px 0; }
.acc__name { font: 400 19px/1.2 var(--serif); letter-spacing: -.004em; }
.acc__id { font: 500 12px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.acc__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.acc__table th, .acc__table td { padding: 11px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.acc__table thead th {
  padding: 10px 0 10px 12px; border-top: 1px solid var(--rule); border-bottom-color: var(--rule-strong);
  font: 500 12px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3);
}
.acc__table thead th:first-child { padding-left: 0; }
.acc__table col.acc__sys { width: 40%; }
.acc__table tbody th, .acc__table tfoot th { padding-right: 16px; font: 500 15.5px/22px var(--sans); color: var(--ink); }
.acc__table td { padding-left: 12px; font: 500 12px/22px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.acc__table td.is-w { color: var(--ink); }
.acc__none { display: inline-block; width: 14px; height: 1px; vertical-align: middle; background: var(--mute); }
.acc__table tfoot th, .acc__table tfoot td { padding-top: 13px; padding-bottom: 14px; border-bottom-color: var(--rule-strong); }
.acc__table tfoot td { font: 400 14.5px/22px var(--sans); letter-spacing: 0; text-transform: none; color: var(--signal-ink); }
.acc__table tfoot .sq { margin: 0 9px 0 0; vertical-align: -1px; }
.acc__cap { padding-top: 14px; font: italic 400 14px/1.4 var(--serif); color: var(--ink-3); }

/* ---------- Section heads ---------- */

.sec-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: baseline;
}
.sec-head .eyebrow { grid-column: 1 / span 3; }
.sec-head .h2 { grid-column: 4 / span 9; }
.sec-head__p { grid-column: 4 / span 6; margin-top: 28px; }

/* ---------- 01 Services ledger ---------- */

.ledger { margin-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--ink); }

.svc {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding: 28px 0 38px;
  border-bottom: 1px solid var(--rule);
}
.svc__rail { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 4px; }
.svc__n { font: 500 15px/1.5 var(--sans); font-variant-numeric: tabular-nums; }
.svc__meta { font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.svc__t { grid-column: 4 / span 3; padding-right: 12px; font: 380 clamp(24px, 2.05vw, 30px)/1.12 var(--serif); letter-spacing: -.012em; }
.svc__p { grid-column: 7 / -1; max-width: 34em; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.svc__list { grid-column: 10 / span 3; display: grid; gap: 7px; padding-top: 3px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* ---------- 02 How we work, figure 2 ---------- */

.how__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(56px, 7vw, 104px); }
.how__steps { grid-column: 1 / span 5; grid-row: 1; border-top: 1px solid var(--ink); }
.how__track { grid-column: 7 / -1; grid-row: 1; }

.how-step { padding: 28px 0 40px; border-bottom: 1px solid var(--rule); }
.how-step__n { font: 500 15px/1.5 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.how-step .h3 { margin-top: 10px; transition: color var(--std) var(--ease); }
.how-step__p { margin-top: 14px; max-width: 30em; color: var(--ink-2); transition: color var(--std) var(--ease); }
.how-step__meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; margin-top: 22px; font-size: 14.5px; line-height: 1.45; }
.how-step__meta div { display: contents; }
.how-step__meta dt { color: var(--ink-3); }
.how-step__meta dd { display: flex; align-items: center; gap: 10px; }

.eng { border-top: 1px solid var(--ink); }
.eng__top { display: flex; gap: 16px; align-items: baseline; padding-top: 14px; }
.eng__name { font: 400 19px/1.2 var(--serif); }
.eng__phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; }
.ph { display: flex; flex-direction: column; min-width: 0; }
.ph__n { font: 500 12px/1.2 var(--mono); letter-spacing: .05em; color: var(--ink-3); }
.ph__t { margin-top: 8px; padding-right: 12px; font: 380 23px/1.1 var(--serif); letter-spacing: -.01em; transition: color var(--std) var(--ease); }
.ph__d { margin-top: 6px; min-height: 2.8em; padding-right: 14px; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.ph__line { position: relative; height: 1px; margin-top: 22px; background: var(--rule-strong); }
.ph__line i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--f, 1)); }
.gate {
  position: absolute; right: 0; top: -5px; z-index: 1;
  width: 11px; height: 11px;
  background: var(--signal); box-shadow: inset 0 0 0 1px var(--signal);
  transition: background-color var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
}
.ph__g { margin-top: 18px; padding-left: 14px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); text-align: right; transition: color var(--std) var(--ease); }
.eng__cap { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--rule); font: italic 400 14px/1.4 var(--serif); color: var(--ink-3); }

.motion .ph[data-g] .gate { background: var(--paper); box-shadow: inset 0 0 0 1px var(--mute); }
.motion .ph[data-g="wait"] .gate { box-shadow: inset 0 0 0 2px var(--signal); }
.motion .ph[data-g="signed"] .gate { background: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.motion .ph[data-g] .ph__t { color: var(--ink-3); }
.motion .ph[data-g].is-active .ph__t { color: var(--ink); }
.motion .ph[data-g="signed"] .ph__g { color: var(--signal-ink); }

@media (min-width: 900px) {
  .motion .how-step { min-height: 54vh; }
  .motion .how__pin { position: sticky; top: calc(50vh - 170px); }
  .motion .how__steps[data-active] .how-step .h3,
  .motion .how__steps[data-active] .how-step__p { color: var(--ink-3); }
  .motion .how__steps[data-active] .how-step.is-active .h3 { color: var(--ink); }
  .motion .how__steps[data-active] .how-step.is-active .how-step__p { color: var(--ink-2); }
}

/* ---------- 03 Safety (dark band) and 06 Platform ---------- */

.band { background: var(--paper); color: var(--ink); margin-top: var(--section); }

.gov { position: relative; padding: var(--section) 0 clamp(96px, 10vw, 144px); overflow: hidden; }
.gov__media { position: absolute; top: 0; bottom: 0; right: 0; left: 44%; display: block; }
.gov__media img { width: 100%; height: 100%; object-fit: cover; object-position: 90% 50%; }
.gov__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--paper) 0%, rgba(20, 19, 17, .55) 26%, rgba(20, 19, 17, 0) 58%),
    linear-gradient(180deg, var(--paper) 0%, rgba(20, 19, 17, 0) 22%),
    linear-gradient(0deg, var(--paper) 0%, rgba(20, 19, 17, 0) 22%);
}
.gov__in { position: relative; }
.gov__head { max-width: 640px; }
.gov__head .h2 { margin-top: 22px; }
.gov__lead { margin-top: 28px; max-width: 31em; }
.gov__rows {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter);
  max-width: 700px; margin-top: 64px;
  border-top: 1px solid var(--rule-strong);
}
.gov__row { padding: 22px 0 28px; border-bottom: 1px solid var(--rule); }
.gov__t { font: 500 16.5px/1.3 var(--sans); }
.gov__row p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }

.products { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 56px; margin-top: clamp(56px, 7vw, 96px); }
.product { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 22px; border-top: 1px solid var(--ink); }
.product:nth-child(1) { grid-column: 4 / span 4; }
.product:nth-child(2) { grid-column: 9 / span 4; }
.product__brand { font: 700 30px/1.1 var(--sans); letter-spacing: -.024em; }
.product__vivd { font-weight: 700; }
.product__tag { font-size: 14px; color: var(--ink-3); }
.product__p { margin-top: 6px; color: var(--ink-2); font-size: 16.5px; line-height: 1.55; }
.product .link-arrow { margin-top: 6px; }
.endorse { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 64px; padding-left: calc((100% - 11 * var(--gutter)) / 12 * 3 + 3 * var(--gutter)); font-size: 14.5px; color: var(--ink-3); }
.wm--inline { font-size: 17px; }

/* ---------- 05 Academy ---------- */

.ledger--compact { margin-top: clamp(48px, 6vw, 88px); }
.ws {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: baseline;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--rule);
}
.ws__code { grid-column: 1 / span 3; font: 500 15px/1.4 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ws__t { grid-column: 4 / span 3; padding-right: 12px; font: 380 23px/1.2 var(--serif); letter-spacing: -.01em; }
.ws__p { grid-column: 7 / span 6; max-width: 36em; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

.program {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  margin-top: 88px; padding-top: 26px;
  border-top: 1px solid var(--ink);
}
.program__head { grid-column: 1 / span 6; display: grid; grid-template-columns: subgrid; }
.program__tag { grid-column: 1 / span 3; font: 500 15px/1.5 var(--sans); color: var(--ink-2); }
.program__head .h3 { grid-column: 4 / span 3; }
.program__body { grid-column: 7 / span 6; color: var(--ink-2); }
.program__body > p { max-width: 32em; }
.program__list { display: grid; gap: 8px; margin: 20px 0 14px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.45; }

/* ---------- 06 About ---------- */

.founders { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 64px; margin-top: clamp(56px, 7vw, 104px); }
.founder:nth-child(1) { grid-column: 4 / span 4; }
.founder:nth-child(2) { grid-column: 9 / span 4; }
.founder__ph { position: relative; }
.founder__ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-2); }
.founder__ph figcaption { margin-top: 10px; font: italic 400 14px/1.4 var(--serif); color: var(--ink-3); }
.founder__name { margin-top: 26px; font: 380 30px/1.1 var(--serif); letter-spacing: -.012em; }
.founder__role { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); }
.founder__bio { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; line-height: 1.55; }

.beliefs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(96px, 11vw, 160px); }
.beliefs__title { grid-column: 1 / span 3; font: 500 15px/1.5 var(--sans); color: var(--ink-2); }
.beliefs__list { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); border-top: 1px solid var(--ink); }
.beliefs__list li { padding: 22px 32px 30px 0; border-bottom: 1px solid var(--rule); }
.beliefs__n { font: 500 14px/1.4 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.beliefs__t { margin-top: 6px; font: 380 23px/1.2 var(--serif); letter-spacing: -.01em; }
.beliefs__list li p:last-child { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* ---------- 07 Contact ---------- */

.contact { padding-bottom: var(--section); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(48px, 6vw, 88px); }
.contact__mail { grid-column: 4 / -1; font: 320 clamp(36px, 5.6vw, 84px)/1 var(--serif); letter-spacing: -.024em; }
.contact__mail a { text-decoration: underline; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1px; text-underline-offset: .14em; transition: text-decoration-color var(--quick) var(--ease); }
.contact__mail a:hover { text-decoration-color: currentColor; }
.contact__note { grid-column: 4 / span 5; margin-top: 32px; color: var(--ink-2); }
.contact__cta { grid-column: 4 / -1; margin-top: 32px; }
.contact__form, .contact__done { grid-column: 4 / span 7; margin-top: 40px; }
.contact__form { display: grid; gap: 20px; }
.contact__form[hidden] { display: none; }
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__err { max-width: 34em; font-size: 14.5px; line-height: 1.5; color: var(--signal-ink); }
.contact__done { padding-top: 24px; border-top: 1px solid var(--ink); }
.contact__done:focus { outline: none; }
.contact__done .book__note { margin-top: 10px; }
.contact__facts { grid-column: 4 / -1; display: flex; flex-wrap: wrap; gap: 20px 56px; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 15px; }
.contact__facts dt { color: var(--ink-3); font-size: 13.5px; }
.contact__facts dd { margin-top: 4px; }
.contact__facts a { text-decoration-color: var(--rule-strong); }
.contact__facts a:hover { text-decoration-color: currentColor; }

/* ---------- Footer ---------- */

.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--rule); font-size: 14.5px; line-height: 1.5; }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; }
.foot__brand { grid-column: 1 / span 3; }
.foot__brand p { margin-top: 14px; max-width: 16em; color: var(--ink-3); }
.foot__col:nth-child(2) { grid-column: 4 / span 2; }
.foot__col:nth-child(3) { grid-column: 6 / span 2; }
.foot__col:nth-child(4) { grid-column: 8 / span 2; }
.foot__prefs { grid-column: 10 / span 3; }
.foot__h { margin-bottom: 12px; font: 500 13.5px/1.4 var(--sans); color: var(--ink-3); }
.foot__col ul { display: grid; gap: 7px; color: var(--ink-2); }
.foot__col a { color: var(--ink-2); text-decoration: none; transition: color var(--quick) var(--ease); }
.foot__col a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); }

.pref { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.pref:first-of-type { border-top: 1px solid var(--rule); }
.pref__k { color: var(--ink-2); }
.switch, .seg { display: inline-flex; padding: 3px; border: 1px solid var(--rule-strong); border-radius: 2px; background: transparent; }
.switch { cursor: pointer; }
.switch__t, .seg button, .seg a {
  padding: 5px 10px; border: 0; border-radius: 1px; background: transparent;
  font: 500 13px/1.2 var(--sans); color: var(--ink-3); cursor: pointer;
  text-decoration: none;
  transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease);
}
.switch[aria-checked="true"] [data-on],
.switch[aria-checked="false"] [data-off],
.seg button[aria-pressed="true"], .seg a[aria-current] { background: var(--ink); color: var(--paper); }
.seg button:hover[aria-pressed="false"], .seg a:hover:not([aria-current]), .switch:hover .switch__t { color: var(--ink); }
.foot__col .seg a { color: var(--ink-3); }
.foot__col .seg a[aria-current] { color: var(--paper); text-decoration: none; }
.foot__col .seg a:hover:not([aria-current]) { color: var(--ink); text-decoration: none; }
.switch:hover [data-on], .switch:hover [data-off] { color: var(--ink); }
.switch[aria-checked="true"]:hover [data-on], .switch[aria-checked="false"]:hover [data-off] { color: var(--paper); }

.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 32px; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }
.foot__legal p:last-child { margin-left: auto; }

/* ---------- One precise reveal: ledger rows ---------- */

.motion [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--reveal) var(--ease-out), transform var(--reveal) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */

/* The German nav is a third longer; tighter gaps keep it on one line down to 900 px. */
@media (min-width: 900px) and (max-width: 1099px) {
  .site-header__in { gap: 24px; }
  .nav__list { gap: 20px; }
}


@media (max-width: 1099px) {
  .svc__t { grid-column: 4 / -1; }
  .svc__p { grid-column: 4 / -1; margin-top: 12px; }
  .svc__list { grid-column: 9 / -1; margin-top: 12px; }
  .ws__t { grid-column: 4 / span 4; }
  .ws__p { grid-column: 8 / -1; }
  .product:nth-child(1) { grid-column: 1 / span 6; }
  .product:nth-child(2) { grid-column: 7 / span 6; }
  .endorse { padding-left: 0; }
  .founder:nth-child(1) { grid-column: 1 / span 6; }
  .founder:nth-child(2) { grid-column: 7 / span 6; }
  .foot__brand { grid-column: 1 / span 4; }
  .foot__col:nth-child(2) { grid-column: 5 / span 2; }
  .foot__col:nth-child(3) { grid-column: 7 / span 3; }
  .foot__col:nth-child(4) { grid-column: 10 / span 3; }
  .foot__prefs { grid-column: 1 / span 6; }
}

/* ---------- Phones and narrow tablets ---------- */

@media (max-width: 899px) {
  :root { --header: 58px; --gutter: 16px; }

  .nav, .hide-sm, .site-header .lang { display: none; }
  .show-sm { display: inline-flex; }
  .menu-btn { display: inline-flex; }
  .site-header__end { margin-left: auto; gap: 6px; }
  .wm { font-size: 21px; }

  /* Phones: the block above, the copy below, one dark screen. */
  .hero { flex-direction: column; align-items: stretch; }
  .hero__media { position: relative; inset: auto; aspect-ratio: 4 / 3; max-height: 42svh; width: 100%; }
  .hero__block { right: 50%; width: 116px; transform: translate(50%, -50%); }
  .hero__media::after { background: linear-gradient(0deg, var(--paper) 0%, rgba(12, 11, 10, 0) 45%); }
  .hero__grid { flex: 1; align-items: center; margin-inline: auto; }
  .hero__copy { grid-column: 1 / -1; padding: 8px 0 48px; }
  .h1 { font-size: clamp(38px, 11.6vw, 72px); line-height: 1; }
  .run { max-width: none; }

  .work__copy, .work__fig { grid-column: 1 / -1; }
  .work__fig { margin-top: 44px; }

  .acc { grid-column: 1 / -1; }

  .sec-head .eyebrow, .sec-head .h2, .sec-head__p { grid-column: 1 / -1; }
  .sec-head .h2 { margin-top: 18px; }
  .sec-head__p { margin-top: 22px; }

  .svc { padding: 24px 0 30px; }
  .svc__rail { grid-column: 1 / -1; flex-direction: row; gap: 14px; align-items: baseline; }
  .svc__t, .svc__p, .svc__list { grid-column: 1 / -1; }
  .svc__t { margin-top: 10px; }
  .svc__list { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }

  .how__steps, .how__track { grid-column: 1 / -1; }
  .how__track { grid-row: 1; }
  .how__steps { grid-row: 2; }
  .how__pin { margin-bottom: 32px; }

  .gov { padding-top: 0; }
  .gov__media { position: relative; left: auto; display: block; aspect-ratio: 4 / 3; margin-bottom: 8px; }
  .gov__media img { object-position: 78% 42%; }
  .gov__media::after {
    background:
      linear-gradient(0deg, var(--paper) 0%, rgba(20, 19, 17, 0) 38%),
      linear-gradient(90deg, rgba(20, 19, 17, .35) 0%, rgba(20, 19, 17, 0) 50%);
  }
  .gov__rows { grid-template-columns: 1fr; margin-top: 48px; }

  .products .product { grid-column: 1 / -1; }

  .ws { padding: 18px 0 20px; }
  .ws__code, .ws__t, .ws__p { grid-column: 1 / -1; }
  .ws__t { margin-top: 4px; }
  .ws__p { margin-top: 6px; }

  .program__head, .program__body { grid-column: 1 / -1; }
  .program__head { display: block; }
  .program__head .h3 { margin-top: 8px; }
  .program__body { margin-top: 18px; }

  .founder:nth-child(1), .founder:nth-child(2) { grid-column: 1 / -1; }
  .founder__ph { max-width: 300px; }
  .beliefs__title, .beliefs__list { grid-column: 1 / -1; }
  .beliefs__list { margin-top: 18px; grid-template-columns: 1fr; }
  .beliefs__list li { padding-right: 0; }

  .contact__mail, .contact__note, .contact__cta, .contact__form, .contact__done, .contact__facts { grid-column: 1 / -1; }

  .foot__brand { grid-column: 1 / -1; }
  .foot__col:nth-child(2), .foot__col:nth-child(3), .foot__col:nth-child(4) { grid-column: span 6; }
  .foot__prefs { grid-column: 1 / -1; max-width: 360px; }
  .foot__legal p:last-child { margin-left: 0; }
}

/* Figure 2 as a compact strip on phones */
@media (max-width: 899px) {
  .motion .how__track { display: contents; }
  .motion .how__pin {
    grid-column: 1 / -1; grid-row: 1; align-self: start;
    position: sticky; top: var(--header); z-index: 5;
    margin: 0 calc(-1 * var(--margin)) 32px;
    padding: 0 var(--margin);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .motion .eng { border-top: 0; }
  .motion .eng__top, .motion .eng__cap, .motion .ph__t, .motion .ph__d, .motion .ph__g { display: none; }
  .motion .eng__phases { margin-top: 0; padding: 14px 0 18px; }
  .motion .ph__line { margin-top: 12px; }
}

@media (max-width: 599px) {
  html:not(.motion) .how__track { display: none; }

  .step { grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 12px; padding: 9px 0; }
  .step__n, .step__sys { display: none; }
  .step__name { font-size: 15px; }
  .step__detail { font-size: 13px; line-height: 18px; }
  .run__path { top: 21px; bottom: 29px; }
  .run__top { gap: 12px; padding: 12px 0; }
  .run__name { font-size: 17px; }
  .run__sum > div { padding: 10px 0 11px; }
  .run__sum > div + div { padding-left: 10px; }
  .run__sum dt { font-size: 10px; }
  .run__sum dd { font-size: 13px; }
  .run__legend { padding-top: 12px; }
  .run__legend li { font-size: 14px; }
  .run__cap { font-size: 13px; }

  .acc__table col.acc__sys { width: 34%; }
  .acc__table thead th { padding-left: 8px; font-size: 10.5px; letter-spacing: .02em; }
  .acc__table tbody th, .acc__table tfoot th { padding-right: 8px; font-size: 14px; line-height: 20px; }
  .acc__table td { padding-left: 8px; font-size: 10.5px; line-height: 20px; letter-spacing: .02em; }
  .acc__table tfoot td { font-size: 13px; line-height: 18px; }
  .acc__table tfoot .sq { display: block; margin: 4px 0 6px; }

  .gov__lead { font-size: 16.5px; }
  .contact__facts { gap: 18px 40px; }
}

/* At 360 px, "Rechnungen" and "Neue Lieferanten" need a few more pixels than a third of the rest. */
@media (max-width: 399px) {
  .acc__table col.acc__sys { width: 30%; }
  .acc__table thead th, .acc__table td { padding-left: 6px; }
}

/* Short screens: nothing pins */
@media (max-height: 560px) {
  .motion .how__pin { position: static; min-height: 0; }
}

@media print {
  .site-header, .menu, .foot__prefs { display: none !important; }
  .motion [data-reveal] { opacity: 1; transform: none; }
}

/* Each chapter fills at least one screen on desktop, with its content in the middle. */
@media (min-width: 900px) and (min-height: 640px) {
  main > .section, .gov {
    min-height: calc(100svh - var(--header));
    display: flex; flex-direction: column; justify-content: center;
    padding-top: calc(var(--section) / 2); padding-bottom: calc(var(--section) / 2);
  }
  .band { margin-top: 0; }
}

/* ---------- Workshop requests ---------- */

.btn--line { border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--rule-strong); color: var(--ink); cursor: pointer; }
button.btn { border: 0; cursor: pointer; }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* The whole row opens the request; the title link carries the name. */
.ws { position: relative; transition: background-color var(--quick) var(--ease); }
.ws__link { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em; text-decoration-thickness: 1px; transition: text-decoration-color var(--quick) var(--ease); }
.ws__link::after { content: ""; position: absolute; inset: 0; }
.ws__link:focus-visible { outline: none; }
.ws:has(.ws__link:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.ws__go {
  position: absolute; right: 0; top: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 14.5px/1.4 var(--sans); color: var(--ink-3);
  transition: color var(--quick) var(--ease);
}
.ws:hover .ws__link { text-decoration-color: var(--rule-strong); }
.ws:hover .ws__go { color: var(--ink); }
.ws:hover .ws__go .ico { transform: translate(2px, 0); }
@media (min-width: 900px) { .ws__p { padding-right: 112px; } }

/* Dialog */
.book {
  width: min(100% - 32px, 640px); max-height: min(100% - 32px, 920px);
  margin: auto; padding: 0;
  border: 1px solid var(--rule); border-radius: 3px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 64px rgba(12, 11, 10, .28);
  overscroll-behavior: contain;
}
.book::backdrop { background: rgba(12, 11, 10, .55); }
html:has(.book[open]) { overflow: hidden; }
.book__in { position: relative; padding: 36px 40px 40px; }
.book__x {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 2px; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: color var(--quick) var(--ease), background-color var(--quick) var(--ease);
}
.book__x:hover { color: var(--ink); background: var(--paper-2); }
.book__code { display: flex; gap: 12px; font: 500 14.5px/1.4 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.book__t { margin-top: 10px; padding-right: 40px; font: 360 clamp(28px, 3vw, 36px)/1.08 var(--serif); letter-spacing: -.018em; text-wrap: balance; }
.book__desc { margin-top: 12px; max-width: 34em; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.book__form { display: grid; gap: 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ink); }
.book__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.book__lbl { display: block; margin-bottom: 8px; padding: 0; font: 500 14.5px/1.4 var(--sans); color: var(--ink-2); }
.book__opt { font-weight: 400; color: var(--ink-3); }
.book__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book__field { display: block; min-width: 0; }
.book__field input, .book__field textarea {
  display: block; width: 100%; min-height: 46px; padding: 11px 12px;
  border: 1px solid var(--rule-strong); border-radius: 2px;
  background: var(--paper); color: var(--ink);
  font: 400 16px/1.4 var(--sans);
  transition: border-color var(--quick) var(--ease);
}
.book__field textarea { resize: vertical; min-height: 92px; }
.book__field input::placeholder, .book__field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.book__field input:hover, .book__field textarea:hover { border-color: var(--ink-3); }
.book__field input:focus, .book__field textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.book__field input[aria-invalid="true"] { border-color: var(--signal-ink); box-shadow: inset 0 0 0 1px var(--signal-ink); }
.seg-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-pick label { position: relative; }
.seg-pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg-pick span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 2px; box-shadow: inset 0 0 0 1px var(--rule-strong);
  font: 500 15px/1 var(--sans); color: var(--ink-2);
  transition: box-shadow var(--quick) var(--ease), color var(--quick) var(--ease), background-color var(--quick) var(--ease);
}
.seg-pick label:hover span { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.seg-pick input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.seg-pick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.book__foot { display: grid; gap: 14px; justify-items: start; margin-top: 4px; }
.book__note { max-width: 34em; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.book__done { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ink); }
.book__done:focus { outline: none; }
.book__done-t { font: 360 24px/1.25 var(--serif); letter-spacing: -.01em; }
.book__done .book__note { margin-top: 10px; }
.book__done-btn { margin-top: 24px; }
.book[data-kind="program"] [data-book-only="workshop"] { display: none; }

html.motion .book[open] { animation: book-in var(--std) var(--ease-out); }
html.motion .book[open]::backdrop { animation: book-fade var(--std) var(--ease-out); }
@keyframes book-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes book-fade { from { opacity: 0; } }

@media (max-width: 899px) {
  .ws { padding-right: 32px; }
  .ws__go { top: 20px; font-size: 0; gap: 0; }
}
@media (max-width: 599px) {
  .book { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; border-radius: 0; }
  .book__in { padding: 24px 20px 32px; }
  .book__x { top: 8px; right: 8px; }
  .book__row { grid-template-columns: 1fr; }
}

/* ---------- Footer links and legal pages ---------- */

.foot__links { display: flex; gap: 20px; }
.foot__links a, .foot__built a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: .25em; }
.foot__links a:hover, .foot__built a:hover { text-decoration-color: currentColor; }

.legal-page { background: var(--paper); color: var(--ink); }
.legal-top { border-bottom: 1px solid var(--rule); }
.legal-top__in { display: flex; align-items: center; justify-content: space-between; min-height: var(--header); }
.legal-top__lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font: 500 14.5px/1 var(--sans); color: var(--ink-2); text-decoration: none; }
.legal-top__lang:hover { color: var(--ink); }
.legal__in { max-width: 760px; padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 120px); }
.legal__h1 { font: 340 clamp(40px, 5vw, 64px)/1.02 var(--serif); letter-spacing: -.022em; }
.legal__upd { margin-top: 14px; font: 500 14.5px/1.4 var(--sans); color: var(--ink-3); }
.legal__body { margin-top: 48px; border-top: 1px solid var(--ink); }
.legal__body h2 { margin-top: 40px; font: 380 23px/1.25 var(--serif); letter-spacing: -.01em; }
.legal__body p { margin-top: 12px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; overflow-wrap: anywhere; }
.legal__body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: .2em; }
.legal__body a:hover { text-decoration-color: currentColor; }
.legal__body code { font: 400 .9em/1 var(--mono); }
.legal__addr { color: var(--ink) !important; }
.legal__back { margin-top: 56px; }
.legal-foot { border-top: 1px solid var(--rule); }
.legal-foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; padding-bottom: 32px; font-size: 14.5px; color: var(--ink-3); }
.legal-foot__in p:last-child { display: flex; gap: 20px; }
.legal-foot a { color: inherit; }

/* ---------- Offer: workshops behind a disclosure, why list as its own section ---------- */

.more { margin-top: 28px; }
.more > summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font: 500 15px/1.5 var(--sans); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: .25em; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; text-decoration: none; }
.more[open] > summary::after { content: "\2212"; }
.more > summary:hover { text-decoration-color: currentColor; }
.more .ledger { margin-top: 32px; }
.beliefs--solo { margin-top: clamp(56px, 7vw, 104px); }
.beliefs--solo .beliefs__list { grid-column: 4 / -1; }
.beliefs__list a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: .25em; }
.beliefs__list a:hover { text-decoration-color: currentColor; }

/* ---------- 02 Our software: three panels side by side, one symbol each ---------- */

.prods {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter);
  margin-top: clamp(56px, 7vw, 104px);
}
.prod { display: flex; flex-direction: column; min-width: 0; }
.prod:nth-child(2) { --i: 1; }
.prod:nth-child(3) { --i: 2; }
.prod__fig {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  color: var(--ink);
  background-color: var(--paper-2);
  background-image: radial-gradient(var(--rule-strong) 1px, transparent 1.5px);
  background-size: 18px 18px; background-position: 9px 9px;
  border: 1px solid var(--rule);
}
.prod__fig { position: relative; overflow: hidden; }
/* The whole panel is the link: the arrow link stretches over the card. */
.prod { position: relative; }
.prod .link-arrow::after { content: ""; position: absolute; inset: 0; }
.prod__fig { transition: border-color var(--std) var(--ease); }
.prod:hover .prod__fig { border-color: var(--rule-strong); }
.prod:hover .link-arrow { text-decoration-color: currentColor; }
.prod__fig.has-cv { background-image: none; }
.prod__fig.has-cv .prod__sym { display: none; }
.prod__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.prod__sym { display: block; width: 38%; max-width: 168px; height: auto; transition: transform 600ms var(--ease-out); }
.prod__sym rect:not(.sig) { fill: var(--paper-2); }
.prod__sym .thin { stroke: var(--rule-strong); }
.prod__sym .sig { fill: var(--signal); stroke: none; transform-box: fill-box; transform-origin: center; transition: transform 600ms var(--ease-out); }
.prod:hover .prod__sym { transform: translateY(-4px); }
.prod:hover .prod__sym .sig { transform: scale(1.18); }
.prod__head { margin-top: 28px; }
.prod__meta { font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.prod__t { margin-top: 4px; font: 360 clamp(28px, 2.5vw, 38px)/1.08 var(--serif); letter-spacing: -.018em; }
.prod__body { display: flex; flex-direction: column; flex: 1; margin-top: 14px; max-width: 30em; }
.prod__tag { font-size: 17px; line-height: 1.5; color: var(--ink); }
.prod__p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.prod__body .link-arrow { margin-top: auto; padding-top: 22px; align-self: flex-start; }
.motion .prod[data-reveal]:not(.is-in) .prod__sym .sig { transform: scale(.4); }
@media (max-width: 899px) {
  .prods { grid-template-columns: 1fr; gap: 56px; }
  .prod__fig { aspect-ratio: 16 / 9; }
  .prod__sym { width: 26%; }
}
@media (prefers-reduced-motion: reduce) { .prod__sym, .prod__sym .sig { transform: none !important; transition: none; } }
