/* Hallmark · pre-emit critique: P4 H5 E5 S5 R5 V4 · slop test 58/58 · hero: single left edge + layered scene (memo · dossier · outputs) */
/* Hallmark · genre: modern-minimal · macrostructure: Feature Stack · theme: custom (Apple-slick, one brand violet) · enrichment: Tier-A dossier card on stage + HTML app mockups in the bento · nav: N5 floating pill + N11 sector panel (was N1b) · footer: Ft5 statement (was Ft2)
 * tone: Apple-like SaaS, slick · audience: projectleiders first, directie second · action: Plan een demo
 * F2 knobs: pinned=left, content=document cards, steps=5 · F1 knobs: tiles=4, spans=irregular, border=none
 * N5 knobs: width=content column, backdrop=liquid glass (blur+saturate, lit rim), anchor=top · N11 knobs: columns=intro + 5-row index, feature cell=none, scrim=none · night glass over the dark act · phones: tall glass sheet, demo button at the bottom
 * Ft5 knobs: sentence width=30ch (two-tone, tagline + origin), wordmark position=base row, rule above meta=hairline · plus two link groups (sectors · company) on a paper-2 band
 * Shared by index.html and en/index.html. Tokens live in /tokens.css.
 */

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-height); }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--color-tag-bevestig); color: var(--color-ink); }

:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.on-night :focus-visible { outline-color: var(--color-focus-night); }

.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--page-gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-modal);
  transform: translateY(-200%);
  background: var(--color-ink); color: var(--color-paper);
  padding: var(--space-sm) var(--space-md); border-radius: var(--radius-pill);
  font-size: var(--text-xs); font-weight: 500; text-decoration: none;
}
.skip:focus { transform: none; }

/* ============ Type roles ============ */
.display {
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: var(--track-display);
  overflow-wrap: anywhere;
  min-width: 0;
}
.display span { display: block; text-wrap: balance; }
.h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: var(--track-head);
  max-width: 20ch;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}
.lede { font-size: var(--text-md); line-height: 1.4; color: var(--color-ink-2); max-width: 34rem; text-wrap: pretty; }
.small { font-size: var(--text-xs); line-height: 1.45; letter-spacing: 0; }
.mono { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* ============ Actions ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 44px;
  padding: var(--space-sm) var(--space-lg);
  border: 0;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  letter-spacing: var(--track-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn-primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-ink { background: var(--color-ink); color: var(--color-paper); }
.btn-sm { min-height: 2rem; padding: var(--space-2xs) var(--space-md); font-size: var(--text-xs); }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { background: var(--color-accent-hover); } .btn-ink:hover { background: var(--color-ink-hover); } }
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.link-chev {
  display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 44px;
  color: var(--color-accent);
  font-size: var(--text-base);
  text-decoration: none;
  white-space: nowrap;
}
.link-chev::after { content: "›"; font-size: 1.2em; line-height: 1; transform: translateY(-0.04em); transition: transform var(--dur-short) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-chev:hover { text-decoration: underline; text-underline-offset: 0.2em; }
  .link-chev:hover::after { transform: translate(2px, -0.04em); }
}
.link-chev:active { opacity: 0.7; }

/* ============ Nav: liquid-glass capsule (floats over the page, goes dark over the dark act) ============
 * The glass lives on .nav-inner::before, not on .nav-inner itself: an element with backdrop-filter
 * stops its children from blurring the page, and the sectors panel inside it is glass too. */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-sticky-nav);
  height: var(--nav-height);
  display: flex; align-items: center;
  pointer-events: none;   /* the clear strip around the capsule never blocks the page */
  color: var(--color-ink);
}
.nav-inner {
  position: relative; isolation: isolate; pointer-events: auto;
  width: calc(100% - 2 * var(--page-gutter));
  max-width: calc(var(--page-max) - 2 * var(--page-gutter));
  height: calc(var(--nav-height) - 2 * var(--space-xs));
  margin-inline: auto;
  padding-inline: var(--space-md) var(--space-xs);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-md);
  border-radius: var(--radius-pill);
  transition: color var(--dur-long) var(--ease-out);
}
/* The material: a thin tint, a strong blur, light on the top edge, a soft lift */
.nav-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, var(--color-glass-rim-soft), transparent 70%), var(--color-glass-fill);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(180%);
          backdrop-filter: blur(var(--blur-glass)) saturate(180%);
  box-shadow:
    inset 0 1px 0 var(--color-glass-rim),
    inset 0 -1px 0 var(--color-glass-rim-soft),
    0 0 0 var(--rule-hair) var(--color-glass-edge),
    0 10px 30px -14px var(--color-shadow-2);
  transition: background-color var(--dur-long) var(--ease-out), box-shadow var(--dur-long) var(--ease-out);
}
/* The rim: a lens-like highlight that runs bright top-left and fades round the curve */
.nav-inner::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  padding: var(--rule-hair);
  background: linear-gradient(115deg, var(--color-glass-rim), transparent 30%, transparent 68%, var(--color-glass-rim-soft));
  -webkit-mask: linear-gradient(var(--color-ink) 0 0) content-box, linear-gradient(var(--color-ink) 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(var(--color-ink) 0 0) content-box exclude, linear-gradient(var(--color-ink) 0 0);
}
.nav.is-scrolled .nav-inner::before {
  box-shadow:
    inset 0 1px 0 var(--color-glass-rim),
    inset 0 -1px 0 var(--color-glass-rim-soft),
    0 0 0 var(--rule-hair) var(--color-glass-edge),
    0 16px 40px -16px var(--color-shadow-2);
}
.nav.is-night { color: var(--color-night-ink); }
.nav.is-night :focus-visible { outline-color: var(--color-focus-night); }
.nav.is-night .nav-inner::before {
  background: linear-gradient(180deg, var(--color-glass-night-rim), transparent 70%), var(--color-glass-night-fill);
  box-shadow: inset 0 1px 0 var(--color-glass-night-rim), 0 0 0 var(--rule-hair) var(--color-glass-night-rim), 0 16px 40px -16px var(--color-shadow-night);
}
.nav.is-night .nav-inner::after { opacity: 0.35; }

.nav-brand { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
.nav-brand svg { width: 7rem; }
.logo .pl-st1 { fill: var(--color-logo-lav); }
.logo .pl-st2 { fill: var(--color-logo-pink); }
.logo .pl-st5 { fill: var(--color-logo-mint); }
.logo .pl-st6 { fill: var(--color-logo-navy); transition: fill var(--dur-long) var(--ease-out); }
.nav.is-night .logo .pl-st6 { fill: var(--color-night-ink); }

.nav-right { display: flex; align-items: center; gap: var(--space-xs); justify-self: end; }
.nav-lang, .nav-langs { display: none; }
.nav.is-night .btn-ink { background: var(--color-night-ink); color: var(--color-night); }
@media (max-width: 22.49rem) { .nav-right .btn { display: none; } }   /* 320 px phones: the sheet and the hero carry the demo button */

.nav-menu {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: none; border: 0; color: inherit; cursor: pointer; border-radius: var(--radius-pill);
}
.nav-menu span { display: grid; gap: var(--space-2xs); }
.nav-menu i { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform var(--dur-short) var(--ease-out); }
.nav.is-open .nav-menu i:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav.is-open .nav-menu i:last-child  { transform: translateY(-2.75px) rotate(-45deg); }
@media (hover: hover) and (pointer: fine) { .nav-menu:hover { background: var(--color-glass-hover); } .nav.is-night .nav-menu:hover { background: var(--color-glass-night-hover); } }
.nav-menu:active { transform: scale(0.94); }

/* The sectors list: name, what kind of work, and the document Punchlister makes for it */
.ns-intro { display: none; }
.ns-panel ul { display: grid; }
.ns-panel a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-3xs) var(--space-md);
  min-height: 48px; padding: var(--space-xs) 0;
  color: var(--color-ink); text-decoration: none;
}
.ns-name { grid-column: 1 / -1; grid-row: 1; font-weight: 500; white-space: nowrap; }
.ns-sub { grid-column: 1; grid-row: 2; font-size: var(--text-xs); color: var(--color-ink-2); }
.ns-doc {
  grid-column: 2; grid-row: 2; justify-self: end;
  padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-tag);
  background: var(--color-tag-bevestig); color: var(--color-tag-bevestig-ink);
  font-size: var(--text-xs); font-weight: 500; line-height: 1.4; letter-spacing: 0; white-space: nowrap;
}
.ns-panel a[aria-current="page"] .ns-name { font-weight: 600; }

/* ---------- Phones and tablets: the menu is a tall glass sheet under the capsule ---------- */
.nav-center {
  display: none;
  position: absolute; top: calc(100% + var(--space-xs)); left: 0; right: 0;
  max-height: calc(100vh - var(--nav-height) - var(--space-md));
  max-height: calc(100dvh - var(--nav-height) - var(--space-md));
  overflow-y: auto; overscroll-behavior: contain;
  flex-direction: column;
  padding: var(--space-sm) var(--space-lg) var(--space-lg);
  border-radius: var(--radius-stage);
  background: var(--color-glass-fill-strong);
  -webkit-backdrop-filter: blur(var(--blur-glass-strong)) saturate(180%);
          backdrop-filter: blur(var(--blur-glass-strong)) saturate(180%);
  box-shadow: inset 0 1px 0 var(--color-glass-rim), 0 0 0 var(--rule-hair) var(--color-glass-edge), 0 30px 60px -24px var(--color-shadow-2);
  color: var(--color-ink);
}
.nav.is-open .nav-center { display: flex; animation: sheet-in var(--dur-short) var(--ease-out); }
.nav.is-open { color: var(--color-ink); }
.nav.is-open .logo .pl-st6 { fill: var(--color-logo-navy); }
@media (max-width: 59.99rem) {
  html:has(.nav.is-open) { overflow: hidden; }   /* the page stays put behind the sheet */
  .nav.is-open .nav-right .btn { display: none; } /* the open sheet has its own, at the bottom */
  .nav.is-open::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--color-scrim); pointer-events: none; animation: fade-in var(--dur-short) var(--ease-out); }
  .nav-center { padding-inline: clamp(var(--space-md), 5vw, var(--space-lg)); }
  /* The bar button looks compact; an invisible margin keeps a 44 px touch target */
  .nav-right .btn-sm { position: relative; min-height: 2.25rem; }
  .nav-right .btn-sm::after { content: ""; position: absolute; inset: calc(-1 * var(--space-2xs)) 0; }
}
@keyframes fade-in { from { opacity: 0; } }
.nav-link, .nav-sectors > summary {
  display: flex; align-items: center; gap: var(--space-xs);
  min-height: 56px;
  font-size: var(--text-lg); font-weight: 600; letter-spacing: var(--track-head);
  color: inherit; text-decoration: none; white-space: nowrap;
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
  cursor: pointer;
}
.nav-link[aria-current="page"] { color: var(--color-accent); }
.nav-sectors > summary { list-style: none; }
.nav-sectors > summary::-webkit-details-marker { display: none; }
.nav-sectors > summary::after {
  content: ""; width: 0.32em; height: 0.32em; margin-left: var(--space-2xs);
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
  transition: transform var(--dur-short) var(--ease-out);
}
.nav-sectors[open] > summary::after { transform: translateY(0.1em) rotate(-135deg); }
.nav-sectors .ns-panel { padding-block: var(--space-2xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.nav-sheet-lang { min-height: 48px; font-size: var(--text-base); font-weight: 400; letter-spacing: var(--track-body); color: var(--color-ink-2); border-bottom: 0; }
.nav-sheet-cta { width: 100%; min-height: 48px; margin-top: var(--space-md); flex: none; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-6px) scale(0.99); } }

html:not(.js) .nav-menu { display: none; }
@media (max-width: 59.99rem) { html:not(.js) .nav-center { display: none; } }   /* without JS the footer carries every link */

/* ---------- Wide screens: links sit left, beside the logo; Sectoren opens a glass panel ---------- */
@media (min-width: 60rem) {
  .nav-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-lg); }
  .nav-menu, .nav-sheet-lang, .nav-sheet-cta { display: none; }
  .nav-center, html:not(.js) .nav-center {
    display: flex; position: static; flex-direction: row; align-items: center; gap: var(--space-3xs);
    max-height: none; overflow: visible; padding: 0;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-radius: 0;
    color: inherit; justify-self: start;
  }
  .nav-link, .nav-sectors > summary {
    min-height: 36px; padding-inline: var(--space-sm); border: 0; border-radius: var(--radius-pill);
    font-size: var(--text-xs); font-weight: 450; letter-spacing: 0;
    opacity: 0.82;
    transition: opacity var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
  }
  .nav-link[aria-current="page"] { color: inherit; opacity: 1; font-weight: 600; }
  .nav-sectors > summary { gap: 0; }
  .nav-sectors[open] > summary { opacity: 1; background: var(--color-glass-hover); }
  .nav.is-night .nav-sectors[open] > summary { background: var(--color-glass-night-hover); }

  .nav-langs { display: inline-flex; align-items: center; gap: var(--space-2xs); padding-inline: var(--space-xs); font-size: var(--text-xs); }
  .nav-lang-cur { font-weight: 600; }
  .nav-lang-sep { opacity: 0.35; }
  .nav-langs .nav-lang {
    display: inline-flex; align-items: center; min-height: 36px; padding-inline: var(--space-2xs);
    color: inherit; opacity: 0.6; text-decoration: none; white-space: nowrap;
    transition: opacity var(--dur-short) var(--ease-out);
  }
  .nav-lang {
    display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-xs);
    font-size: var(--text-xs); color: inherit; opacity: 0.72; text-decoration: none; white-space: nowrap;
    transition: opacity var(--dur-short) var(--ease-out);
  }

  /* The panel hangs from the capsule, full capsule width: a short intro, then the five sectors as an index */
  .nav-sectors .ns-panel {
    position: absolute; top: calc(100% + var(--space-xs)); left: 0; right: 0; z-index: var(--z-dropdown);
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-xl);
    padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-xl);
    border: 0; border-radius: var(--radius-stage);
    background: var(--color-glass-fill-strong);
    -webkit-backdrop-filter: blur(var(--blur-glass-strong)) saturate(180%);
            backdrop-filter: blur(var(--blur-glass-strong)) saturate(180%);
    box-shadow: inset 0 1px 0 var(--color-glass-rim), 0 0 0 var(--rule-hair) var(--color-glass-edge), 0 30px 60px -24px var(--color-shadow-2);
    color: var(--color-ink);
  }
  .nav-sectors[open] .ns-panel { animation: sheet-in var(--dur-short) var(--ease-out); }
  .ns-intro { display: grid; gap: var(--space-xs); align-content: start; padding-top: var(--space-xs); }
  .ns-intro strong { font-size: var(--text-md); font-weight: 600; letter-spacing: var(--track-head); line-height: 1.25; }
  .ns-intro span { color: var(--color-ink-2); max-width: 22rem; }
  .ns-panel a {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; column-gap: var(--space-lg);
    min-height: 52px; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-card);
    transition: background-color var(--dur-short) var(--ease-out);
  }
  .ns-panel li + li { border-top: var(--rule-hair) solid var(--color-rule-2); }
  .ns-name { grid-column: 1; grid-row: 1; }
  .ns-doc { justify-self: end; }
  .ns-sub { grid-column: 2; grid-row: 1; font-size: var(--text-xs); }
  .ns-doc { grid-column: 3; grid-row: 1; }
  .ns-panel a[aria-current="page"] { background: var(--color-glass-hover); }
}
@media (min-width: 60rem) and (hover: hover) and (pointer: fine) {
  .nav-link:hover, .nav-sectors > summary:hover { opacity: 1; background: var(--color-glass-hover); }
  .nav.is-night .nav-link:hover, .nav.is-night .nav-sectors > summary:hover { background: var(--color-glass-night-hover); }
  .nav-langs .nav-lang:hover, .nav-lang:hover { opacity: 1; }
  .ns-panel a:hover { background: var(--color-glass-hover); }
  .nav.is-night .btn-ink:hover { background: var(--color-night-ink-2); }
}
.nav-link:active, .nav-sectors > summary:active, .ns-panel a:active { opacity: 0.6; }

/* ============ Hero ============ */
.hero { padding-block: calc(var(--nav-height) + var(--space-sm)) var(--space-2xl); }
/* One framed canvas holds the copy and the product scene: pale logo tints + two soft lights */
.hero-frame {
  position: relative; isolation: isolate; overflow: hidden;
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  border-radius: var(--radius-stage);
  background:
    radial-gradient(58% 48% at 8% 0%, var(--color-glow-a), transparent 72%),
    radial-gradient(46% 42% at 100% 78%, var(--color-glow-b), transparent 72%),
    linear-gradient(165deg, var(--color-stage-a), var(--color-paper) 52%, var(--color-stage-b));
}
@media (min-width: 40rem) { .hero-frame { padding: var(--space-3xl) var(--space-2xl) var(--space-xl); border-radius: var(--radius-frame); } }
@media (min-width: 60rem) { .hero-frame { padding: var(--space-3xl) clamp(2.5rem, 5vw, 5rem) var(--space-xl); } }
/* One left edge: headline, intro, then the actions directly beneath it */
.hero-sub { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); margin-top: var(--space-lg); }
.hero-sub .lede { max-width: 40rem; }
.hero-cta { display: grid; gap: var(--space-sm); justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-lg); }
.hero-note { color: var(--color-ink-2); }
@media (min-width: 60rem) {
  .hero { padding-top: calc(var(--nav-height) + var(--space-md)); padding-bottom: var(--space-3xl); }
  .hero-sub { margin-top: var(--space-xl); }
  .hero .stage { margin-top: var(--space-3xl); }
}
/* Inside the frame the scene sits straight on the canvas: no second box */
.hero-frame .stage { padding: 0; background: none; border-radius: 0; }

.stage {
  position: relative;
  margin-top: var(--space-2xl);
  padding: clamp(1.25rem, 5vw, 4.5rem) clamp(0.75rem, 4vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--color-stage-a), var(--color-stage-b));
  border-radius: var(--radius-stage);
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-lg);
  transform-origin: 50% 0;
}
.stage-caption { color: var(--color-ink-2); }

/* The layered scene: voice memo in, dossier in front, what went out behind it */
.scene { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: var(--space-md); }
.scene .doc { position: relative; z-index: var(--z-raised); }
.sat { width: 100%; max-width: 40rem; padding: var(--space-md); box-shadow: 0 30px 60px -34px var(--color-shadow-2); }
.sat-head { display: flex; justify-content: space-between; gap: var(--space-sm); color: var(--color-ink-2); }
.sat-head span:first-child { color: var(--color-ink); font-weight: 600; }
.memo-sm { margin-top: var(--space-sm); padding: var(--space-xs); }
.memo-sm .memo-play { width: 1.75rem; height: 1.75rem; }
.memo-sm .memo-wave { height: 1.5rem; }
.sat-meta { margin-top: var(--space-2xs); color: var(--color-ink-2); }
.sat-out { width: 100%; max-width: 40rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
.sat-out .sat { max-width: none; }
.sat-row { display: flex; align-items: center; gap: var(--space-sm); }
.sat-ico { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--color-tag-bevestig); color: var(--color-tag-bevestig-ink); }
.sat-ico svg { width: 1.1rem; height: 1.1rem; }
.sat-ico-file { background: var(--color-tag-taak); color: var(--color-tag-taak-ink); }
.sat-title { font-weight: 600; line-height: 1.3; }
@media (min-width: 40rem) {
  .sat-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 72rem) {
  .scene { grid-template-columns: minmax(0, 1fr) minmax(0, 32rem) minmax(0, 1fr); align-items: start; justify-items: stretch; gap: 0; }
  .scene .doc { grid-column: 2; grid-row: 1; }
  /* Side cards tuck --space-lg under the dossier; their content stays clear of the overlap */
  .sat-memo {
    grid-column: 1; grid-row: 1; justify-self: end; z-index: var(--z-base);
    width: calc(100% + var(--space-lg)); max-width: 19rem;
    margin: var(--space-3xl) calc(-1 * var(--space-lg)) 0 0;
    padding-right: calc(var(--space-md) + var(--space-lg));
  }
  .sat-out {
    grid-column: 3; grid-row: 1; justify-self: start; z-index: var(--z-base);
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% + var(--space-lg)); max-width: 19.5rem;
    margin: 13rem 0 0 calc(-1 * var(--space-lg));
  }
  .sat-out .sat { padding-left: calc(var(--space-md) + var(--space-lg)); }
}

/* The dossier card */
.card {
  width: 100%;
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: 0 40px 80px -40px var(--color-shadow-2);
  color: var(--color-ink);
}
.doc { max-width: 40rem; padding: var(--space-lg); }
.doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2xs) var(--space-md); }
.doc-kind { color: var(--color-ink-2); font-weight: 500; }
.doc-date { color: var(--color-ink-2); }
.doc-title { width: 100%; margin-top: var(--space-2xs); font-size: var(--text-md); font-weight: 600; letter-spacing: var(--track-head); line-height: 1.2; }
.doc-sub { width: 100%; color: var(--color-ink-2); }

.memo { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-lg); padding: var(--space-sm); background: var(--color-paper-2); border-radius: var(--radius-pill); }
.memo-play { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); }
.memo-play svg { width: 0.7rem; margin-left: var(--space-3xs); }
.memo-wave { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-3xs); height: 1.75rem; overflow: hidden; }
.memo-wave i { display: block; flex: 1 1 0; max-width: 3px; min-width: 2px; height: var(--h); background: var(--color-ink); border-radius: var(--radius-pill); }
.memo-time { flex: none; color: var(--color-ink-2); padding-right: var(--space-xs); }

.doc-quote { margin-top: var(--space-md); color: var(--color-ink-2); }
.doc-items { margin-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule-2); }
.doc-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-md);
  align-items: start;
  padding-block: var(--space-md);
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
}
.doc-line { line-height: 1.4; }
.doc-line + .doc-line { margin-top: var(--space-2xs); }
.doc-note { margin-top: var(--space-2xs); color: var(--color-ink-2); }
.doc-val { font-weight: 600; white-space: nowrap; padding-top: var(--space-3xs); }
.tag {
  display: inline-flex; align-items: center; margin-bottom: var(--space-xs);
  padding: var(--space-3xs) var(--space-xs);
  border-radius: var(--radius-tag);
  font-size: var(--text-xs); font-weight: 500; line-height: 1.4; letter-spacing: 0;
}
.tag-meerwerk { background: var(--color-tag-meerwerk); color: var(--color-tag-meerwerk-ink); }
.tag-taak     { background: var(--color-tag-taak);     color: var(--color-tag-taak-ink); }
.tag-bevestig { background: var(--color-tag-bevestig); color: var(--color-tag-bevestig-ink); }

.doc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-md); margin-top: var(--space-md); }
.doc-foot > p:first-child { color: var(--color-ink-2); }
.status {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--color-tag-bevestig); color: var(--color-tag-bevestig-ink);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0; white-space: nowrap;
}
.status svg { width: 1rem; height: 1rem; }
@media (min-width: 40rem) { .doc { padding: var(--space-xl); } }

/* ============ Measured ============ */
.proof { padding-block: 0 var(--space-3xl); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
.proof-item { display: grid; gap: var(--space-xs); align-content: start; }
.proof-num { font-size: var(--text-display); font-weight: 700; line-height: 1; letter-spacing: var(--track-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-width: 0; }
.proof-item p:last-child { color: var(--color-ink-2); max-width: 26rem; }
/* Source line reads as the caption of both figures, not as a third column */
.proof-src { grid-column: 1 / -1; padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); }
@media (min-width: 48rem) { .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-2xl); } }

/* ============ The day (dark act) ============ */
.day { background: var(--color-night); color: var(--color-night-ink); padding-block: var(--space-3xl) var(--space-xl); }
.day .lede { color: var(--color-night-ink-2); }
.day-intro { display: grid; gap: var(--space-md); }
.day-note { color: var(--color-night-ink-2); }

.day-stage { padding-top: var(--space-xl); }
.day-steps { display: grid; grid-template-columns: minmax(0, 1fr); }
.step { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding-block: var(--space-xl); border-top: var(--rule-hair) solid var(--color-night-rule); }
.step-time { font-size: var(--text-display); font-weight: 700; line-height: 1; letter-spacing: var(--track-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-width: 0; }
.step-title { margin-block: var(--space-md) var(--space-xs); font-size: var(--text-md); font-weight: 600; line-height: 1.25; letter-spacing: var(--track-head); }
.step-copy { color: var(--color-night-ink-2); max-width: 28rem; }
.step-sheet { width: 100%; max-width: 32rem; margin: 0; box-shadow: 0 40px 80px -30px var(--color-shadow-night); }
@media (min-width: 60rem) {
  .step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; padding-block: var(--space-2xl); }
  .step-sheet { justify-self: center; }
}

.day-ruler { display: none; }
.day.is-pinned { padding-bottom: 0; }
.day.is-pinned .day-stage {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--nav-height) + var(--space-lg)) var(--space-lg);
}
.day.is-pinned .day-steps { grid-template-areas: "stack"; }
.day.is-pinned .step { grid-area: stack; border-top: 0; padding-block: 0; }
.day.is-pinned .day-ruler { display: block; }

.day-ruler { position: relative; height: 4.25rem; margin-top: var(--space-xl); }
.ruler-line { position: absolute; left: 0; right: 0; top: 1rem; height: 1px; background: var(--color-night-rule); }
.ruler-fill { position: absolute; left: 0; right: 0; top: calc(1rem - 1px); height: 3px; border-radius: var(--radius-pill); background: var(--color-accent-night); transform-origin: left center; transform: scaleX(0); }
.ruler-tick { position: absolute; top: calc(1rem - 5px); left: var(--x); width: 1px; height: 11px; background: var(--color-night-ink-2); }
.ruler-tick span { position: absolute; top: 18px; left: 0; transform: translateX(-50%); color: var(--color-night-ink-2); white-space: nowrap; }
.ruler-ghost { position: absolute; top: calc(1rem - 12px); left: var(--x); height: 25px; border-left: 1px dashed var(--color-ghost-night); }
.ruler-ghost span { position: absolute; top: 30px; right: 0; color: var(--color-ghost-night); white-space: nowrap; }
.ruler-span { position: absolute; bottom: calc(100% - 0.5rem); left: var(--x); color: var(--color-accent-night); white-space: nowrap; }
.ruler-marker { position: absolute; top: calc(1rem - 8px); left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--color-night-ink); box-shadow: 0 0 0 4px var(--color-night); }

/* Cards on the dark act */
.sheet-pad { padding: var(--space-lg); }
.sheet-head { display: flex; justify-content: space-between; gap: var(--space-md); padding-bottom: var(--space-sm); margin-bottom: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink-2); }
.sheet-head span:first-child { color: var(--color-ink); font-weight: 600; }
.sheet-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2xs) var(--space-md); margin-top: var(--space-md); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule-2); color: var(--color-ink-2); }

.sheet-photo { overflow: hidden; }
.sheet-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--color-paper-2); }
.sheet-photo figcaption { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) var(--space-md); color: var(--color-ink-2); }
.transcript { margin-top: var(--space-md); color: var(--color-ink-2); }

.off-row { display: grid; grid-template-columns: auto minmax(1rem, 1fr) auto; gap: var(--space-xs); align-items: baseline; padding-block: var(--space-2xs); }
.off-art { color: var(--color-ink-2); }
.off-row .lead { border-bottom: 1px dotted var(--color-rule); transform: translateY(-0.35em); }
.off-name { grid-column: 1 / -1; }
.off-excl { padding-block: var(--space-2xs) var(--space-sm); color: var(--color-ink-2); }
.off-hit { display: grid; gap: var(--space-xs); justify-items: start; margin-top: var(--space-xs); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule-2); }
.off-hit .tag { margin: 0; }
.off-hit .mono { color: var(--color-ink-2); }

.mail-field { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--space-xs); padding-block: var(--space-2xs); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.mail-field dt { color: var(--color-ink-2); padding-top: 0.15em; }
.mail-body { margin-top: var(--space-md); display: grid; gap: var(--space-sm); }

.log li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule-2); align-items: baseline; }
.log li > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-xs); }
.log li .tag { margin: 0; }
.log time { color: var(--color-ink-2); white-space: nowrap; }

/* ============ Product ============ */
.product { padding-block: var(--space-3xl); }
.product-head { display: grid; gap: var(--space-md); margin-bottom: var(--space-xl); }
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: var(--space-xl) var(--space-lg) 0;
  background: var(--color-paper-2);
  border-radius: var(--radius-stage);
}
.tile h3 { font-size: var(--text-md); font-weight: 600; line-height: 1.25; letter-spacing: var(--track-head); }
.tile p { margin-top: var(--space-xs); color: var(--color-ink-2); max-width: 26rem; }
.tile-media { margin-top: auto; padding-top: var(--space-xl); display: flex; justify-content: center; }
.tile-type { padding-bottom: var(--space-xl); justify-content: space-between; gap: var(--space-xl); }
.tile-big { font-size: var(--text-display); font-weight: 700; line-height: 1; letter-spacing: var(--track-display); overflow-wrap: anywhere; min-width: 0; }
.tile-big span { display: block; }
.tile-big span + span { margin-top: var(--space-2xs); }
@media (min-width: 48rem) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile-a, .tile-b { grid-column: span 3; }
  .tile-c { grid-column: span 4; }
  .tile-d { grid-column: span 2; }
}
@media (min-width: 60rem) { .tile { padding: var(--space-2xl) var(--space-2xl) 0; } .tile-type { padding-bottom: var(--space-2xl); } }
/* Wide: the home screen sits flush against the tile's right edge, like a window behind it. */
@media (min-width: 64rem) {
  .tile-c { flex-direction: row; gap: var(--space-lg); min-height: 30rem; padding-right: 0; }
  .tile-c .tile-text { flex: 1 1 0; padding-bottom: var(--space-2xl); }
  .tile-c .tile-media { position: relative; flex: 1.25 1 0; margin: 0; padding: 0; }
  .tile-c .ui { position: absolute; inset: 0; width: auto; height: auto; border-right: 0; border-radius: var(--radius-card) 0 0 0; -webkit-mask-image: none; mask-image: none; }
}

/* ---- App mockups: HTML recreations of real Punchlister screens (strings, colours and icons from the app) ---- */
.ui-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ui {
  display: flex; flex-direction: column;
  width: min(100%, 22rem); height: 25rem; overflow: hidden;
  background: var(--color-card); color: var(--ui-ink);
  border: var(--rule-hair) solid var(--ui-line-soft); border-bottom: 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  box-shadow: 0 24px 48px -28px var(--color-shadow-2);
  font-size: 0.8125rem; line-height: 1.4; letter-spacing: 0; text-align: left;
  user-select: none;
  container-type: inline-size;
  /* The tile crops each screen at its bottom edge; fade it out instead of slicing a line of text. */
  -webkit-mask-image: linear-gradient(#000 calc(100% - 2.5rem), transparent);
          mask-image: linear-gradient(#000 calc(100% - 2.5rem), transparent);
}
.ui-i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ui-body { display: flex; flex-direction: column; gap: 0.875rem; padding: 1.25rem; }
.ui-label { display: block; margin-bottom: var(--space-2xs); color: var(--ui-text-3); font-size: 0.625rem; font-weight: 600; text-transform: uppercase; }
.ui-select {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs);
  height: 2.25rem; padding: 0 var(--space-sm);
  border: var(--rule-hair) solid var(--ui-line); border-radius: 0.875rem;
  color: var(--ui-text); font-size: 0.78125rem; white-space: nowrap;
}
.ui-select span { overflow: hidden; text-overflow: ellipsis; }
.ui-select .ui-i { color: var(--ui-text-3); }
.ui-box { display: grid; place-items: center; flex: none; width: 0.875rem; height: 0.875rem; border-radius: 0.1875rem; background: var(--ui-violet); color: var(--color-card); }
.ui-box .ui-i { width: 0.625rem; height: 0.625rem; stroke-width: 3.5; }

/* Extra work: register decision */
.ui-mw-head { padding: var(--space-sm) 1.25rem var(--space-md); background: var(--ui-mw-tint); border-bottom: var(--rule-hair) solid var(--ui-mw-line); }
.ui-kind { display: flex; align-items: center; gap: var(--space-xs); color: var(--ui-mw-ink); font-size: 0.71875rem; white-space: nowrap; }
.ui-kind b { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.ui-kind span { overflow: hidden; text-overflow: ellipsis; }
.ui-kind .ui-i { width: 0.875rem; height: 0.875rem; }
.ui-kind .ui-kind-x { width: 1rem; height: 1rem; margin-left: auto; }
.ui-mw-title { margin-top: var(--space-2xs); color: var(--ui-mw-title); font-size: 0.9375rem; font-weight: 600; line-height: 1.375; }
.ui-choice { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.ui-opt {
  display: flex; align-items: center; justify-content: center; gap: var(--space-xs);
  padding: var(--space-sm) 0.875rem;
  border: var(--rule-hair) solid var(--ui-line); border-radius: 0.875rem;
  color: var(--ui-text-2); font-weight: 700;
}
.ui-opt .ui-i { width: 1rem; height: 1rem; }
.ui-opt.is-ok { border-color: var(--ui-ok); background: var(--ui-ok-tint); color: var(--ui-ok); }
.ui-confirm { display: flex; flex-direction: column; gap: var(--space-xs); padding-top: 0.875rem; border-top: var(--rule-hair) solid var(--ui-line); }
.ui-checkrow { display: flex; align-items: center; gap: var(--space-xs); color: var(--ui-text-2); font-size: 0.78125rem; }
.ui-torow { display: flex; align-items: center; gap: var(--space-xs); }
.ui-torow .ui-label { width: 2.5rem; margin: 0; }
.ui-torow .ui-select { flex: 1; min-width: 0; height: 2rem; padding: 0 var(--space-xs); }
.ui-textarea { padding: 0.625rem var(--space-sm); border: var(--rule-hair) solid var(--ui-line); border-radius: 0.875rem; color: var(--ui-text-2); font-size: 0.78125rem; line-height: 1.625; }

/* Punch list: send to a subcontractor */
.ui-pl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-sm); padding: 1.25rem 1.25rem 0; }
.ui-h2 { color: var(--color-logo-navy); font-size: 1rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.ui-close { display: grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border: var(--rule-hair) solid var(--ui-line-soft); border-radius: 0.875rem; color: var(--ui-text-2); }
.ui-seg { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xs); padding: var(--space-2xs); border-radius: var(--space-sm); background: var(--ui-fill-soft); }
.ui-seg span { display: flex; align-items: center; justify-content: center; gap: 0.375rem; padding: var(--space-xs) 0; border-radius: var(--space-xs); color: var(--ui-text-2); font-size: 0.84375rem; font-weight: 600; }
.ui-seg .ui-i { width: 1rem; height: 1rem; }
.ui-seg .is-on { background: var(--color-card); color: var(--ui-ink); box-shadow: 0 0 0 1px var(--ui-fill-soft), 0 1px 2px var(--ui-fill-soft); }
.ui-h3 { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-xs); font-weight: 600; }
.ui-status { display: inline-flex; align-items: center; gap: var(--space-2xs); color: var(--ui-text-3); font-size: 0.71875rem; font-weight: 400; }
.ui-status .ui-i { width: 0.75rem; height: 0.75rem; }
.ui-todos { display: flex; flex-direction: column; gap: 0.375rem; }
.ui-todo {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-xs) 0.875rem;
  border: var(--rule-hair) solid var(--ui-violet-line); border-radius: var(--space-sm);
  background: var(--ui-violet-tint);
  font-size: 0.84375rem; line-height: 1.375;
}
.ui-todo .ui-box { width: 1.125rem; height: 1.125rem; border-radius: var(--space-2xs); }
.ui-todo .ui-box .ui-i { width: 0.75rem; height: 0.75rem; }
.ui-todo-text { flex: 1; min-width: 0; }
.ui-due { color: var(--ui-text-3); font-size: 0.75rem; white-space: nowrap; }
.ui-wa { padding: var(--space-sm); border-radius: var(--space-md); background: var(--ui-wa-wall); }
.ui-bubble {
  width: 88%; margin-left: auto; padding: var(--space-sm) 0.875rem;
  border-radius: var(--space-sm); background: var(--ui-wa-bubble);
  box-shadow: 0 0 0 1px var(--ui-fill-soft), 0 1px 2px var(--ui-fill-soft);
  font-size: 0.84375rem; line-height: 1.625;
}

/* Home screen: process my day + can't wait */
.ui-dash { height: 24rem; padding: var(--space-lg) var(--space-lg) 0; background: var(--ui-shell); }
.ui-eyebrow { color: var(--color-logo-lav); font-family: var(--font-mono); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.ui-hero { margin-top: var(--space-xs); color: var(--color-logo-navy); font-size: clamp(1.375rem, 9cqi, 1.75rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
.ui-go {
  display: flex; align-items: center; gap: var(--space-md);
  margin-top: 1.25rem; padding: 1.125rem 1.25rem;
  border-radius: var(--space-md); background: var(--ui-violet); color: var(--color-card);
  box-shadow: 0 14px 32px var(--ui-violet-glow);
}
.ui-go-icon { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: var(--space-sm); background: var(--ui-on-violet-fill); }
.ui-go-icon .ui-i { width: 1.25rem; height: 1.25rem; }
.ui-go-text { flex: 1; min-width: 0; }
.ui-go-text b { display: block; font-size: 1.0625rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.ui-go-text span { display: block; margin-top: var(--space-2xs); color: var(--ui-on-violet); font-size: 0.78125rem; white-space: nowrap; }
.ui-go-btn { display: inline-flex; align-items: center; gap: 0.375rem; flex: none; padding: var(--space-xs) 0.875rem; border-radius: var(--space-sm); background: var(--ui-on-violet-fill); font-weight: 700; }
.ui-urgent {
  margin-top: var(--space-lg); padding: var(--space-md) 1.25rem 0;
  border: var(--rule-hair) solid var(--ui-line-soft); border-left: 3px solid var(--ui-amber);
  border-radius: var(--space-md); background: var(--color-card); box-shadow: var(--ui-shadow-card);
}
.ui-urgent-title { margin-bottom: 0.375rem; color: var(--ui-text); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ui-row { display: flex; flex-direction: column; gap: var(--space-2xs); padding-block: 0.625rem; }
.ui-row + .ui-row { border-top: var(--rule-hair) solid var(--ui-line-row); }
.ui-row-top { display: flex; align-items: center; gap: 0.625rem; color: var(--ui-text); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.ui-row-top b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ui-tag { flex: none; padding: var(--space-3xs) var(--space-xs); border-radius: var(--space-2xs); font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.025em; text-transform: uppercase; }
.ui-tag-deadline { background: var(--ui-amber-tint); color: var(--ui-amber-ink); }
.ui-tag-party { background: var(--ui-party-tint); color: var(--ui-party-ink); }
.ui-act { display: inline-flex; align-items: center; gap: var(--space-2xs); flex: none; margin-left: auto; color: var(--ui-violet); }
.ui-act .ui-i { width: 0.75rem; height: 0.75rem; }
.ui-row-text { color: var(--ui-text-2); font-size: 0.78125rem; line-height: 1.375; }

/* Narrow screens: drop what the app itself hides on a phone, so names never truncate. */
@container (max-width: 21rem) { .ui-go-icon { display: none; } }
@container (max-width: 20rem) { .ui-torow .ui-label { display: none; } }
@container (max-width: 17rem) {
  .ui-act, .ui-go-btn span { display: none; }
  .ui-go-btn { padding: var(--space-xs); }
}

/* ============ Distribution ============ */
.verdeling { padding-block: 0 var(--space-3xl); }
.verdeling-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
.verdeling-copy { display: grid; gap: var(--space-md); align-content: start; }
.v-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3xs) var(--space-md); align-items: baseline; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.v-row:first-child { border-top: var(--rule-hair) solid var(--color-rule); }
.v-who { font-weight: 600; }
.v-tool { grid-column: 1; color: var(--color-ink-2); }
.v-status { grid-row: 1; grid-column: 2; display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--space-2xs); white-space: nowrap; }
.v-status.is-live { color: var(--color-ink); }
.v-status.is-live svg { width: 1rem; height: 1rem; color: var(--color-accent); }
.v-status.is-soon { color: var(--color-ink-2); }
.v-group + .v-group { margin-top: var(--space-xl); }
.v-label { margin: 0; padding-bottom: var(--space-sm); font-weight: 600; color: var(--color-ink-2); }
@media (min-width: 40rem) {
  .v-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 8rem; }
  .v-tool { grid-column: 2; grid-row: 1; }
  .v-status { grid-column: 3; }
}
@media (min-width: 60rem) { .verdeling-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); } }

/* ============ For the board ============ */
.board { padding-block: var(--space-3xl); background: var(--color-paper-2); }
.board-head { display: grid; gap: var(--space-md); }
.ledger { display: block; width: 100%; margin-top: var(--space-2xl); border-collapse: collapse; }
.ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ledger tbody, .ledger tr, .ledger tbody th, .ledger td { display: block; }
.ledger tr { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.ledger tbody th, .ledger td { padding: var(--space-2xs) 0; text-align: left; vertical-align: top; }
.ledger td::before { content: attr(data-label); display: block; font-size: var(--text-xs); color: var(--color-ink-2); }
.ledger tbody th { font-weight: 600; }
.ledger .was { color: var(--color-ink-2); }
.ledger .now { color: var(--color-ink); }
.ledger .now span { display: inline-flex; gap: var(--space-xs); align-items: baseline; }
.ledger .now span::before {
  content: ""; flex: none; width: 1rem; height: 1rem; transform: translateY(0.15em);
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (min-width: 48rem) {
  .ledger { display: table; }
  .ledger thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .ledger tbody { display: table-row-group; }
  .ledger tr { display: table-row; padding: 0; border: 0; }
  .ledger th, .ledger td { display: table-cell; }
  .ledger td::before { content: none; }
  .ledger thead th { padding-block: var(--space-sm); color: var(--color-ink-2); font-size: var(--text-xs); font-weight: 500; text-align: left; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .ledger tbody th, .ledger td { padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .ledger tbody th { width: 22%; white-space: nowrap; }
  .ledger .was { width: 36%; }
}

/* ============ Founders ============ */
.founders { padding-block: var(--space-3xl); }
.founders-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
.founders-photos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); align-items: start; }
.founders-photos figure { margin: 0; }
.founders-photos figure:nth-child(2) { margin-top: var(--space-xl); }
.founders-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-stage); background: var(--color-paper-2); }
.founders-photos figcaption { margin-top: var(--space-xs); color: var(--color-ink-2); }
.founders-text { display: grid; gap: var(--space-md); align-content: center; }
.founders-text .h2 { max-width: 24ch; }
.founders-text p { max-width: 34rem; }
.founders-text p.small { color: var(--color-ink-2); margin-top: var(--space-xs); }
@media (min-width: 60rem) { .founders-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; } }

/* ============ Horizon ============ */
.horizon { padding-block: var(--space-2xl) var(--space-3xl); }
.h-track { position: relative; margin-top: var(--space-2xl); padding-inline-start: var(--space-lg); }
.h-line { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: var(--radius-pill); background: var(--color-rule); }
.h-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--color-accent); transform-origin: top center; transform: scaleY(1); }
.h-steps { display: grid; gap: var(--space-xl); }
.h-step { position: relative; display: grid; gap: var(--space-xs); }
.h-step::before { content: ""; position: absolute; top: 0.35em; left: calc(-1 * var(--space-lg) - 5px); width: 12px; height: 12px; border-radius: 50%; background: var(--color-paper); border: 2px solid var(--color-accent); }
.h-when { font-weight: 600; }
.h-step p:not(.h-when) { color: var(--color-ink-2); max-width: 28rem; }
.h-close { margin-top: var(--space-2xl); max-width: 30ch; font-size: var(--text-md); font-weight: 600; line-height: 1.3; letter-spacing: var(--track-head); }
@media (min-width: 60rem) {
  .h-track { padding: var(--space-lg) 0 0; }
  .h-steps { grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: var(--space-2xl); }
  .h-line { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; }
  .h-fill { transform-origin: left center; }
  .h-step::before { top: calc(-1 * var(--space-lg) - 5px); left: 0; }
}

/* ============ Pilot ============ */
.pilot { padding-block: 0 var(--space-3xl); }
.pilot-tile {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl);
  padding: clamp(1.75rem, 5vw, 4.5rem);
  background: var(--color-paper-2);
  border-radius: var(--radius-stage);
}
.pilot-text { display: grid; gap: var(--space-md); align-content: center; }
.pilot-text p { max-width: 34rem; color: var(--color-ink-2); }
.pilot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-sm); }
.spec-title { font-size: var(--text-md); font-weight: 600; letter-spacing: var(--track-head); padding-bottom: var(--space-sm); }
.spec > div { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); align-items: baseline; }
.spec dt { color: var(--color-ink-2); font-size: var(--text-xs); }
.spec dd { font-weight: 500; }
@media (min-width: 60rem) { .pilot-tile { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; } }

/* ============ Footer (Ft5 statement: one closing line, two link groups, a quiet base row) ============ */
.foot {
  background: var(--color-paper-2);
  color: var(--color-ink-2);
  padding-block: var(--space-3xl) calc(var(--space-sm) + env(safe-area-inset-bottom));
}
.foot-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
.foot-intro { display: grid; justify-items: start; align-content: start; gap: var(--space-sm); }
.foot-intro .link-chev + .link-chev { margin-top: calc(-1 * var(--space-sm)); }
.foot-line {
  max-width: 30ch;
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--track-head);
  color: var(--color-ink);
  text-wrap: pretty;
  overflow-wrap: anywhere;
  min-width: 0;
}
.foot-line span { color: var(--color-ink-2); }
.foot-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  gap: var(--space-xl) var(--space-2xl);
  font-size: var(--text-xs);
}
.foot-head { padding-bottom: var(--space-2xs); font-weight: 600; color: var(--color-ink); }
.foot-nav a, .foot-lang {
  display: inline-flex; align-items: center; min-height: 2rem;
  color: var(--color-ink-2); text-decoration: none; white-space: nowrap;
}
.foot-nav a[aria-current="page"] { color: var(--color-ink); font-weight: 500; }
@media (pointer: coarse) { .foot-nav a, .foot-lang { min-height: 44px; } }
@media (hover: hover) and (pointer: fine) {
  .foot-nav a:hover, .foot-lang:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 0.2em; }
}
.foot-nav a:active, .foot-lang:active { opacity: 0.6; }
.foot-base {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-lg);
  margin-top: var(--space-3xl); padding-top: var(--space-sm);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-xs);
}
.foot-logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.foot-logo svg { width: 6.5rem; }
@media (min-width: 60rem) {
  .foot-main { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3xl); }
  .foot-nav { grid-template-columns: repeat(2, max-content); gap: var(--space-3xl); }
}

/* ============ Motion pre-states (only when motion is on and GSAP is running) ============ */
.motion .stage .doc,
.motion .stage .sat,
.motion .doc-quote,
.motion .doc-item,
.motion .doc-foot > *,
.motion .stage-caption { opacity: 0; }
.motion .doc .memo-wave i { opacity: 0.22; }

/* Blur-to-sharp: words come into focus. Headlines and intros only; product shots,
 * video, cards and tables stay sharp. Scroll reveals are driven by home.js. */
.motion .reveal,
.motion .reveal-stagger > * { opacity: 0; }
@keyframes focus-in {
  from { opacity: 0; transform: translateY(var(--space-lg)); filter: blur(var(--blur-reveal)); }
}
.motion .hero .display > span,
.motion .hero-sub { animation: focus-in var(--dur-reveal) var(--ease-out) backwards; }
.motion .hero .display > span:nth-child(2) { animation-delay: 120ms; }
.motion .hero-sub { animation-delay: 240ms; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
