/* ---------- Font: Allo by Josh Puckett (SIL Open Font License, see fonts/OFL.txt). Latin-subset, gewicht 400-760. ---------- */
@font-face {
  font-family: Allo;
  src: url(fonts/allo.woff2) format("woff2");
  font-weight: 400 760;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --background: #fafafa;
  --foreground: #0a0a0a;
  --muted: #737373;
  --body: #525252;      /* neutral-600 */
  --divider: #d4d4d4;   /* neutral-300 */
  --row-hover: #f5f5f5; /* neutral-100 */
  --tag-bg: #ececec;
  --logo-filter: brightness(0);
  --logo-opacity: 0.85;
  --show-light: block;
  --show-dark: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #0a0a0a;
    --foreground: #fafafa;
    --muted: #e5e5e5;
    --body: #a3a3a3;                     /* neutral-400 */
    --row-hover: rgba(38, 38, 38, 0.5);  /* neutral-800 / 50% */
    --tag-bg: #1f1f1f;
    --logo-filter: brightness(0) invert(1);
    --logo-opacity: 0.9;
    --brand-black-hover: #fff;
    --show-light: none;
    --show-dark: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --muted: #e5e5e5;
  --body: #a3a3a3;           /* neutral-400 */
  --row-hover: rgba(38, 38, 38, 0.5);  /* neutral-800 / 50% */
  --tag-bg: #1f1f1f;
  --logo-filter: brightness(0) invert(1);
  --logo-opacity: 0.9;
  --brand-black-hover: #fff;
  --show-light: none;
  --show-dark: block;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  line-height: 1.5;
}
html, body { max-width: 100vw; overflow-x: hidden; }
body {
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
::selection { color: #fff; background: #000; }

/* ---------- Layout ---------- */
main {
  max-width: 740px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px;
  font-family: Allo, system-ui, sans-serif;
  font-weight: 420;
}
@media (min-width: 768px) {
  main { padding: 96px; }
}

h1, h2 { font-size: 24px; font-weight: 600; }
h1 a { transition: opacity 0.15s ease; }
h1 a:hover { opacity: 0.6; }

.divider {
  width: 48px;
  height: 1px;
  background: var(--divider);
  border-radius: 1px;
  margin: 24px 0;
}

.bio p { color: var(--body); line-height: 1.625; }
.bio p + p { margin-top: 24px; }

section { margin-top: 72px; }

/* Rows: <a> rows get a hover background, <div> rows are static info. */
.list { margin: 0 -16px; }
.list > * {
  display: block;
  border-radius: 12px;
  padding: 14px 16px;
  line-height: 1.625;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) { .list > a:hover { background: var(--row-hover); } }
.list > * > span { display: block; }
.list > * > span:first-of-type { font-weight: 500; }
.list > * > span + span { color: var(--body); }
.list.compact > * { padding: 12px 16px; }
.list.compact > * + * { margin-top: 4px; }

/* Numbered steps: small muted number before the title. */
.list.steps { counter-reset: step; }
.list.steps > * { counter-increment: step; }
.list.steps > * > span:first-of-type::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  width: 32px;
  color: var(--body);
  font-variant-numeric: tabular-nums;
}
.list.steps > * > span + span { padding-left: 32px; }

/* Small status tag after a row title, e.g. "Offline" for retired projects. */
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  vertical-align: 1px;
  color: var(--body);
  background: var(--tag-bg);
}

/* "Coming soon": same pill with a small amber dot, so it reads apart from "Offline". */
.tag.soon::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #F59E0B;
  vertical-align: 1px;
}
h1 .tag { font-size: 12px; vertical-align: 4px; margin-left: 8px; }

/* ---------- Subpages ---------- */
.back {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--body);
  transition: color 0.15s ease;
}
.back:hover { color: var(--foreground); }

/* Product screenshot inside a page. */
.shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-top: 40px;
  border-radius: 12px;
}

/* Logo wall: monochrome so every brand reads on both themes. */
.logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 24px;
}
.logo {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--row-hover);
}
.logo img {
  height: var(--h, 28px);
  width: auto;
  max-width: 84%;
  object-fit: contain;
  filter: var(--logo-filter);
  opacity: var(--logo-opacity);
}
@media (max-width: 560px) {
  .logos { grid-template-columns: repeat(2, 1fr); }
}

/* A venture's own logo above its page title. */
.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  margin-bottom: 32px;
}

/* Inline text link used inside paragraphs (e.g. email). */
.text-link {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--divider);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Company links: brand color on hover ---------- */
.company-link {
  color: var(--foreground);
  transition: color 0.15s ease, filter 250ms ease-out, opacity 250ms ease-out;
}
.company-link:hover { color: var(--brand-color); }
.company-link.brand-black:hover { color: var(--brand-black-hover, var(--brand-color)); }

/* ---------- Role hover: focus companies for a role, blur everything else ---------- */
.role-text {
  /* A real <button> that reads as part of the sentence. */
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: default;
  color: var(--foreground);
  transition: color 0.15s ease, filter 250ms ease-out, opacity 250ms ease-out;
}
.filler { transition: color 250ms ease-out, filter 250ms ease-out, opacity 250ms ease-out; }

.role-active .filler,
.role-active .role-text:not(.role-text-active),
.role-active .company-link:not(.role-highlighted) {
  color: var(--muted);
  opacity: 0.5;
  filter: blur(2px);
}

/* ---------- Work previews ---------- */
/* Touch screens: screenshot sits inside each row. */
.work .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--row-hover);
}
/* Mouse: screenshot floats next to the cursor instead. */
.preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
}
.preview.visible {
  opacity: 1;
  transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1);
  transition: opacity 0.2s ease, transform 0.08s linear;
}
@media (hover: hover) and (pointer: fine) {
  .work .thumb { display: none; }
}
@media not ((hover: hover) and (pointer: fine)) {
  .preview { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Focus ----------
   Keyboard focus ring with room around it, following each element's shape. */
:focus-visible { outline: 2px solid var(--foreground); outline-offset: 3px; border-radius: 4px; }
.list > a:focus-visible { outline-offset: 2px; border-radius: 12px; }
.back:focus-visible, .text-link:focus-visible, .company-link:focus-visible, .role-text:focus-visible { border-radius: 4px; }
@media (forced-colors: active) { :focus-visible { outline: 2px solid CanvasText; } }

/* Legal line: KvK and btw-id */
.legal {
  display: flex; flex-wrap: wrap; gap: 4px 20px;
  margin-top: 120px;
  font-size: 13px; line-height: 1.5; color: var(--body);
  font-variant-numeric: tabular-nums;
}
.legal span { white-space: nowrap; }
@media (max-width: 520px) { .legal span:first-child { flex-basis: 100%; } }

/* ---------- Theme toggle ---------- */
.brand-logo.on-light { display: var(--show-light); }
.brand-logo.on-dark { display: var(--show-dark); }

.theme-toggle {
  position: absolute; top: 20px; inset-inline-end: 20px;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--body); cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, scale 150ms ease-out;
}
@media (hover: hover) { .theme-toggle:hover { background: var(--row-hover); color: var(--foreground); } }
.theme-toggle:active { scale: 0.96; }
.theme-toggle:focus-visible { border-radius: 999px; outline-offset: 2px; }
.theme-toggle svg {
  grid-area: 1 / 1; width: 18px; height: 18px;
  transition: opacity 300ms cubic-bezier(0.2, 0, 0, 1), scale 300ms cubic-bezier(0.2, 0, 0, 1), filter 300ms cubic-bezier(0.2, 0, 0, 1);
}
/* Light mode shows the moon (switch to dark), dark mode shows the sun. */
.theme-toggle .sun { opacity: 0; scale: 0.25; filter: blur(4px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { opacity: 1; scale: 1; filter: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { opacity: 0; scale: 0.25; filter: blur(4px); }
}
:root[data-theme="dark"] .theme-toggle .sun { opacity: 1; scale: 1; filter: none; }
:root[data-theme="dark"] .theme-toggle .moon { opacity: 0; scale: 0.25; filter: blur(4px); }
@media (min-width: 768px) { .theme-toggle { top: 32px; inset-inline-end: 32px; } }

/* While the theme switches: no color transitions, and the new theme grows from the button. */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }
html.theme-reveal::view-transition-old(root),
html.theme-reveal::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Legal pages (privacy, terms, legal notice) ---------- */
/* Pages hold a Dutch and an English version; the head script sets data-lang. Without JS, English shows. */
:root:not([data-lang="en"]) [data-l="en"],
:root[data-lang="en"] [data-l="nl"] { display: none; }

.doc-meta { margin-top: 8px; color: var(--body); font-size: 15px; }
.doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }

.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tag-bg); }
.lang-switch button {
  font: inherit; font-size: 14px; font-weight: 500;
  min-width: 44px; padding: 6px 14px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--body); cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, scale 150ms ease-out;
}
.lang-switch button[aria-pressed="true"] { background: var(--background); color: var(--foreground); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.lang-switch button:not([aria-pressed="true"]):active { scale: 0.96; }
.lang-switch button:focus-visible { border-radius: 999px; outline-offset: 1px; }
.doc-actions .text-link { font-size: 15px; color: var(--body); }

.doc { counter-reset: art; }
.doc h2 { margin-top: 56px; font-size: 18px; line-height: 1.3; text-wrap: balance; }
.doc > p:first-child, .doc .lead { margin-top: 0; }
.doc h3 { margin-top: 24px; font-size: 16px; font-weight: 600; }
.doc p, .doc li { color: var(--body); line-height: 1.625; text-wrap: pretty; overflow-wrap: break-word; }
.doc p { margin-top: 16px; }
.doc ul, .doc ol { margin-top: 16px; padding-inline-start: 20px; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--foreground); font-weight: 500; }
.doc a { text-decoration: underline; text-decoration-color: var(--divider); text-underline-offset: 3px; }
@media (hover: hover) { .doc a:hover { text-decoration-color: currentColor; } }

/* Terms: articles numbered 1, 2, 3 and clauses 1.1, 1.2 so they can be cited. */
.doc.numbered h2 { counter-increment: art; counter-reset: cl; }
.doc.numbered h2::before { content: counter(art) ". "; }
.doc.numbered ol.clauses { list-style: none; padding-inline-start: 0; }
.doc.numbered ol.clauses > li { counter-increment: cl; position: relative; padding-inline-start: 44px; }
.doc.numbered ol.clauses > li::before {
  content: counter(art) "." counter(cl);
  position: absolute; inset-inline-start: 0;
  color: var(--foreground); font-weight: 500; font-variant-numeric: tabular-nums;
}
.doc ol.clauses ol { list-style: lower-alpha; margin-top: 8px; }

.doc dl { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 8px 20px; }
.doc dt { color: var(--foreground); font-weight: 500; }
.doc dd { color: var(--body); line-height: 1.625; }
@media (max-width: 520px) { .doc dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .doc dd + dt { margin-top: 12px; } }

.doc .form-box { margin-top: 16px; padding: 20px; border-radius: 12px; background: var(--tag-bg); }
.doc .form-box p:first-child { margin-top: 0; }

/* Footer links to the legal pages */
.legal nav { display: flex; gap: 20px; }
.legal nav a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color 0.15s ease, text-decoration-color 0.15s ease; }
@media (hover: hover) { .legal nav a:hover { color: var(--foreground); text-decoration-color: currentColor; } }
.legal nav a[aria-current="page"] { color: var(--foreground); }
.legal nav { flex-basis: 100%; margin-top: 4px; }

/* Print: the legal pages print (and save to PDF) as a clean black-on-white document. */
@media print {
  :root, :root[data-theme] { --background: #fff; --foreground: #000; --body: #222; --divider: #bbb; --tag-bg: #f2f2f2; color-scheme: light; }
  .theme-toggle, .back, .doc-actions, .legal nav, .preview { display: none !important; }
  main { max-width: none; min-height: 0; padding: 0; }
  .doc h2 { break-after: avoid; }
  .doc li, .doc p { break-inside: avoid; }
  .legal { margin-top: 48px; }
  .brand-logo.on-light { display: block !important; }
  .brand-logo.on-dark { display: none !important; }
}
.doc.numbered h2.annex { counter-increment: none; }
.doc.numbered h2.annex::before { content: none; }
.doc > h2:first-child { margin-top: 0; }

/* NL/EN switch in the top corner, next to the theme toggle. */
.lang-switch.corner { position: absolute; top: 21px; inset-inline-end: 68px; font-family: Allo, system-ui, sans-serif; }
@media (max-width: 767px) { .lang-switch.corner ~ main { padding-top: 80px; } }
.lang-switch.corner button { min-width: 40px; padding: 5px 10px; font-size: 13px; }
@media (min-width: 768px) { .lang-switch.corner { top: 33px; inset-inline-end: 80px; } }

/* ---------- pitchplek: aanvullingen op de etienne.works-stijl ---------- */
:root { --pitch: #16B364; --pitch-text: #0B7A45; --oranje: #E8762C; --geel: #FFD23F; --asfalt: #11201A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pitch-text: #4ED692; } }
:root[data-theme="dark"] { --pitch-text: #4ED692; }

/* Logo: pin + woordmerk, volgt de tekstkleur zodat het in beide thema's werkt. */
.pp-logo { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; color: var(--foreground); }
.pp-logo svg { width: 30px; height: 35px; }
.pp-logo .wm { font-size: 30px; line-height: 1; letter-spacing: -0.04em; font-weight: 760; }
.pp-logo .wm span { font-weight: 560; }

/* Knoppen */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--foreground); color: var(--background);
  font-weight: 500; line-height: 1.2;
  transition: opacity 0.15s ease, scale 150ms ease-out;
}
.cta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pitch); }
@media (hover: hover) { .cta:hover { opacity: 0.85; } }
.cta:active { scale: 0.97; }
.cta:focus-visible { border-radius: 999px; }
.small-note { font-size: 14px; color: var(--body); }

/* Status-tags met gekleurde stip, zoals .tag.soon */
.tag.dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; background: var(--c); }
.tag.ok { --c: var(--pitch); } .tag.priv { --c: var(--oranje); } .tag.unk { --c: var(--geel); }

/* Screenshot in licht en donker */
.shot { aspect-ratio: 16 / 9; overflow: hidden; box-shadow: 0 0 0 1px var(--divider); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot.on-light { display: var(--show-light); }
.shot.on-dark { display: var(--show-dark); }
.caption { margin-top: 12px; font-size: 13px; color: var(--body); }

.bio p strong { color: var(--foreground); font-weight: 500; }
