/* Wat er kan · een boek met proefstukken.
   Grammatica: chaptered editorial. Elk hoofdstuk staat op zijn eigen grond,
   met een harde snede ertussen, en een folio in de marge. */

@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2C60-2C7F; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2C60-2C7F; }

:root {
  --sc-canvas:     #0A0B0D;
  --sc-surface:    #121417;
  --sc-ink:        #EFEEEB;
  --sc-ink-soft:   #969A9F;
  --sc-accent:     #FF6B3D;
  --sc-accent-ink: #0A0B0D;

  --sc-font-display: 'Geist', system-ui, sans-serif;
  --sc-font-text:    'Geist', system-ui, sans-serif;
  --sc-font-mono:    'Geist Mono', ui-monospace, monospace;

  --sc-shadow-color: 220 30% 2%;
  --t-folio: 15rem;
}

body { background: var(--sc-canvas); }
@media (min-width: 64rem) { body { padding-left: var(--t-folio); } }

/* ── folio in de marge: waar je bent in het boek ────────────────── */
.t-folio {
  position: fixed;
  z-index: 60;
  top: 0; left: 0;
  width: var(--t-folio);
  height: 100svh;
  padding: var(--sc-6) var(--sc-5);
  display: flex;
  flex-direction: column;
  gap: var(--sc-5);
  border-right: 1px solid var(--sc-hairline);
  background: var(--sc-canvas);
  font-family: var(--sc-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.t-folio__mark { display: block; color: var(--sc-ink); font-size: 0.72rem; letter-spacing: 0.22em; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .t-folio__mark:hover span { color: var(--sc-ink); } }
.t-folio__mark b { display: block; font-weight: 500; }
.t-folio__mark span { color: var(--sc-ink-soft); }
.t-index { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.t-index li + li { margin-top: 0.55rem; }
.t-index a {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.5rem;
  color: var(--sc-ink-soft);
  text-decoration: none;
  line-height: 1.35;
  transition: color 140ms var(--sc-ease-out);
}
.t-index a i { font-style: normal; opacity: 0.65; }
@media (hover: hover) and (pointer: fine) { .t-index a:hover { color: var(--sc-ink); } }
.t-index li.is-here a { color: var(--sc-ink); }
.t-index li.is-here a i { color: var(--sc-accent); opacity: 1; }
.t-folio__foot { color: var(--sc-ink-soft); line-height: 1.7; }
.t-folio__foot a { color: var(--sc-ink); }

/* ── titelpagina: type op papier, geen beeld boven de vouw ──────── */
.t-title {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: var(--sc-6);
  padding: var(--sc-9) var(--sc-gutter);
}
.t-title h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--sc-font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: var(--sc-track-tight);
}
.t-title h1 em { font-style: normal; color: var(--sc-accent); }
.t-title p { margin: 0; max-width: 52ch; color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.6; }
.t-title .t-meta { font-family: var(--sc-font-mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--sc-ink-soft); }

/* ── hoofdstuk ──────────────────────────────────────────────────── */
.t-ch { position: relative; padding-block: clamp(3.5rem, 8vh, 7rem); background: var(--sc-canvas); }
.t-ch--alt { background: var(--sc-surface); }
.t-ch--light {
  --sc-ink: #14161A;
  --sc-ink-soft: #5C6169;
  --sc-hairline: rgba(20, 22, 26, 0.14);
  --sc-accent: #C2451B;
  background: #EFEDE8;
  color: var(--sc-ink);
}
.t-head { display: grid; gap: var(--sc-3); margin-bottom: var(--sc-6); }
.t-num {
  font-family: var(--sc-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--sc-accent);
}
.t-ch h2 {
  margin: 0;
  font-family: var(--sc-font-display);
  font-weight: 450;
  font-size: var(--sc-t-2xl);
  line-height: 1.05;
  letter-spacing: var(--sc-track-snug);
  max-width: 18ch;
}
.t-says { display: grid; gap: var(--sc-4); margin-top: var(--sc-5); grid-template-columns: 1fr; max-width: 62rem; }
@media (min-width: 48rem) { .t-says { grid-template-columns: 1fr 1fr; gap: var(--sc-7); } }
.t-says div { border-top: 1px solid var(--sc-hairline); padding-top: var(--sc-3); }
.t-says dt {
  font-family: var(--sc-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--sc-ink-soft);
  margin-bottom: var(--sc-2);
}
.t-says dd { margin: 0; font-size: var(--sc-t-sm); line-height: 1.7; color: var(--sc-ink); max-width: 46ch; }
.t-says dd b { color: var(--sc-accent); font-weight: 450; }

/* een proefstuk dat aan de scroll hangt: hoge wikkel, plakkend paneel */
.t-scroll { position: relative; }
.t-scroll > .t-sticky { position: sticky; top: 7vh; }
.t-scroll > .t-sticky > .t-plate { margin-top: 0; }

/* het proefstuk zelf */
.t-plate {
  position: relative;
  margin-top: var(--sc-6);
  border-radius: var(--sc-r-md);
  overflow: hidden;
  background: #07080A;
  box-shadow: var(--sc-e2), var(--sc-edge);
}
.t-ch--light .t-plate { background: #E2DFD8; box-shadow: var(--sc-e1); }
.t-plate--tall { aspect-ratio: 16 / 10; }
@media (max-width: 47.99rem) { .t-plate--tall { aspect-ratio: 4 / 5; } }

/* ── 01 scrollfilm ──────────────────────────────────────────────── */
.t-film { position: relative; height: 100%; }
.t-film video, .t-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-readout {
  position: absolute;
  left: var(--sc-4); bottom: var(--sc-4);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--sc-r-pill);
  background: rgba(8, 9, 11, 0.72);
  color: #EFEEEB;
  font-family: var(--sc-font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}
.t-readout b { color: var(--sc-accent); font-weight: 500; }

/* ── 02 vast kader ──────────────────────────────────────────────── */
.t-pin { display: grid; place-items: center; height: 100%; padding: var(--sc-7) var(--sc-6); text-align: center; }
.t-pin p {
  grid-area: 1 / 1;
  margin: 0;
  max-width: 24ch;
  font-family: var(--sc-font-display);
  font-size: var(--sc-t-xl);
  line-height: 1.2;
  letter-spacing: var(--sc-track-snug);
}

/* ── 03 rail ────────────────────────────────────────────────────── */
.t-rail { display: flex; gap: var(--sc-4); align-items: center; height: 100%; padding-inline: var(--sc-5); }
.t-rail figure { flex: 0 0 auto; width: min(22rem, 74vw); margin: 0; }
.t-rail img { width: 100%; height: clamp(9rem, 22vh, 14rem); object-fit: cover; border-radius: var(--sc-r-sm); }
.t-rail figcaption { margin-top: var(--sc-3); font-family: var(--sc-font-mono); font-size: 0.64rem; letter-spacing: 0.1em; color: var(--sc-ink-soft); }

/* ── 04 veeg ────────────────────────────────────────────────────── */
.t-wipe { position: relative; height: 100%; }
.t-wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-wipe__top { will-change: clip-path; }

/* ── 05 tekst die zich opbouwt ──────────────────────────────────── */
.t-kin { display: grid; align-content: center; height: 100%; padding: var(--sc-7) var(--sc-6); }
.t-kin h3 {
  margin: 0;
  font-family: var(--sc-font-display);
  font-weight: 450;
  font-size: clamp(1.6rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: var(--sc-track-tight);
  max-width: 20ch;
}

/* ── 06 diepte ──────────────────────────────────────────────────── */
.t-depth { position: relative; height: 100%; overflow: hidden; }
.t-depth img { position: absolute; inset: -12% -6%; width: 112%; height: 124%; object-fit: cover; }
.t-depth__back { filter: blur(3px) saturate(0.85); opacity: 0.65; transform: scale(1.06); }
.t-depth__mid {
  position: absolute;
  right: 6%;
  top: 12%;
  width: min(32rem, 58%);
  margin: 0;
  border-radius: var(--sc-r-sm);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}
.t-depth__mid img { position: static; inset: auto; width: 100%; height: clamp(11rem, 32vh, 20rem); object-fit: cover; }
.t-depth__card {
  position: absolute;
  left: 6%; bottom: 10%;
  width: min(20rem, 62%);
  padding: var(--sc-5);
  border-radius: var(--sc-r-sm);
  background: rgba(10, 11, 13, 0.82);
  box-shadow: var(--sc-e3);
  color: #EFEEEB;
}
.t-depth__card p { margin: 0; font-size: var(--sc-t-sm); line-height: 1.6; }

/* ── 07 muis ────────────────────────────────────────────────────── */
.t-mouse { display: grid; gap: var(--sc-5); padding: var(--sc-6); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 48rem) { .t-mouse { grid-template-columns: 1fr 1fr 1fr; } }
.t-tilt {
  border-radius: var(--sc-r-sm);
  overflow: hidden;
  background: #0F1114;
  box-shadow: var(--sc-e2);
}
.t-tilt img { display: block; width: 100%; height: clamp(8rem, 18vh, 12rem); object-fit: cover; }
.t-tilt p { margin: 0; padding: var(--sc-4); font-family: var(--sc-font-mono); font-size: 0.64rem; letter-spacing: 0.1em; color: var(--sc-ink-soft); }
.t-light {
  position: relative;
  min-height: 12rem;
  border-radius: var(--sc-r-sm);
  background: #0F1114;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.t-light::after {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(22rem 22rem at var(--mx, 50%) var(--my, 50%), rgba(255, 107, 61, 0.35), transparent 62%);
  z-index: -1;
  transition: opacity 200ms var(--sc-ease-out);
}
.t-light span { font-family: var(--sc-font-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--sc-ink-soft); }
.t-magnet {
  justify-self: center;
  padding: 0.9rem 1.6rem;
  border: 0;
  border-radius: var(--sc-r-pill);
  background: var(--sc-accent);
  color: var(--sc-accent-ink);
  font: inherit;
  font-size: var(--sc-t-sm);
  font-weight: 500;
  cursor: pointer;
  will-change: transform;
}

/* ── 08 voor en na ──────────────────────────────────────────────── */
.t-ba { position: relative; height: 100%; touch-action: pan-y; user-select: none; }
.t-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-ba__after { clip-path: inset(0 0 0 var(--split, 50%)); }
.t-ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  background: var(--sc-accent);
  cursor: ew-resize;
}
.t-ba__handle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 2.6rem; height: 2.6rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--sc-accent);
  background: rgba(10, 11, 13, 0.7);
}
.t-ba__tag {
  position: absolute;
  top: var(--sc-4);
  padding: 0.3rem 0.7rem;
  border-radius: var(--sc-r-pill);
  background: rgba(8, 9, 11, 0.72);
  color: #EFEEEB;
  font-family: var(--sc-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}
.t-ba__tag--l { left: var(--sc-4); }
.t-ba__tag--r { right: var(--sc-4); }

/* ── 09 de opbouw ───────────────────────────────────────────────── */
.t-build { display: grid; place-items: center; height: 100%; padding: var(--sc-6); }
.t-build svg { width: 100%; max-width: 46rem; height: auto; }
.t-build [data-step] { opacity: 0; transition: opacity 420ms var(--sc-ease-out); }
.t-build [data-step].on { opacity: 1; }

/* ── 10 live gegevens ───────────────────────────────────────────── */
.t-live { display: grid; gap: var(--sc-5); padding: var(--sc-7) var(--sc-6); place-content: center; text-align: center; }
.t-live__state {
  margin: 0;
  font-family: var(--sc-font-display);
  font-size: var(--sc-t-xl);
  line-height: 1.2;
  letter-spacing: var(--sc-track-snug);
}
.t-live__state b { color: var(--sc-accent); font-weight: 450; }
.t-live__sub { margin: 0; font-family: var(--sc-font-mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--sc-ink-soft); }

/* ── 11 cijfers ─────────────────────────────────────────────────── */
.t-nums { display: grid; gap: var(--sc-6); padding: var(--sc-7) var(--sc-6); grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.t-nums div { border-top: 1px solid var(--sc-hairline); padding-top: var(--sc-3); }
.t-nums b {
  display: block;
  font-family: var(--sc-font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: var(--sc-track-tight);
  font-variant-numeric: tabular-nums;
}
.t-nums span { font-family: var(--sc-font-mono); font-size: 0.64rem; letter-spacing: 0.12em; color: var(--sc-ink-soft); }

/* ── 12 stap voor stap ──────────────────────────────────────────── */
.t-wiz { padding: var(--sc-6); display: grid; gap: var(--sc-5); }
.t-wiz__q { margin: 0; font-family: var(--sc-font-display); font-size: var(--sc-t-lg); letter-spacing: var(--sc-track-snug); }
.t-wiz__opts { display: flex; flex-wrap: wrap; gap: var(--sc-3); }
.t-wiz__opts button {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--sc-hairline-strong);
  border-radius: var(--sc-r-pill);
  background: transparent;
  color: var(--sc-ink);
  font: inherit;
  font-size: var(--sc-t-sm);
  cursor: pointer;
  transition: background 140ms var(--sc-ease-out), border-color 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .t-wiz__opts button:hover { border-color: var(--sc-accent); } }
.t-wiz__opts button:active { transform: translateY(1px); }
.t-wiz__opts button[aria-pressed="true"] { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink); }
.t-wiz__out {
  border-top: 1px solid var(--sc-hairline);
  padding-top: var(--sc-4);
  font-family: var(--sc-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--sc-ink-soft);
}
.t-wiz__out b { color: var(--sc-ink); font-weight: 400; }
.t-wiz__steps { display: flex; gap: 0.35rem; }
.t-wiz__steps i { flex: 1; height: 2px; background: var(--sc-hairline); }
.t-wiz__steps i.on { background: var(--sc-accent); }

/* ── 13 lopende band ────────────────────────────────────────────── */
.t-band { padding-block: var(--sc-6); overflow: hidden; }
.t-band__track { display: flex; gap: 3rem; width: max-content; will-change: transform; }
.t-band__track span {
  font-family: var(--sc-font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: var(--sc-track-tight);
  color: var(--sc-ink-soft);
  white-space: nowrap;
}
.t-band__track span b { color: var(--sc-ink); font-weight: 450; }

/* ── 14 galerij met filter ──────────────────────────────────────── */
.t-gal { padding: var(--sc-6); display: grid; gap: var(--sc-5); }
.t-gal__bar { display: flex; flex-wrap: wrap; gap: var(--sc-3); }
.t-gal__bar button {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--sc-hairline-strong);
  border-radius: var(--sc-r-pill);
  background: transparent;
  color: var(--sc-ink-soft);
  font: inherit;
  font-family: var(--sc-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.t-gal__bar button[aria-pressed="true"] { color: var(--sc-ink); border-color: var(--sc-accent); }
.t-gal__grid { display: grid; gap: var(--sc-4); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.t-gal__grid figure { margin: 0; border-radius: var(--sc-r-sm); overflow: hidden; background: #0F1114; transition: opacity 260ms var(--sc-ease-out), transform 260ms var(--sc-ease-out); }
.t-gal__grid figure[hidden] { display: none; }
.t-gal__grid img { display: block; width: 100%; height: clamp(8rem, 16vh, 11rem); object-fit: cover; }
.t-gal__grid figcaption { padding: var(--sc-3) var(--sc-4); font-family: var(--sc-font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--sc-ink-soft); }

/* ── 15 open hoofdstuk ─────────────────────────────────────────── */
.t-ask { display: grid; gap: var(--sc-4); padding: var(--sc-6); max-width: 44rem; }
.t-ask__lead { margin: 0; font-size: var(--sc-t-base); line-height: 1.7; color: var(--sc-ink); max-width: 46ch; }
.t-ask__label { font-family: var(--sc-font-mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--sc-ink-soft); }
.t-ask textarea {
  width: 100%;
  padding: var(--sc-4);
  border: 1px solid var(--sc-hairline-strong);
  border-radius: var(--sc-r-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--sc-ink);
  font: inherit;
  font-size: var(--sc-t-sm);
  line-height: 1.6;
  resize: vertical;
}
.t-ask textarea::placeholder { color: var(--sc-ink-soft); }
.t-ask textarea:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; border-color: transparent; }
.t-ask__send {
  justify-self: start;
  padding: 0.8rem 1.4rem;
  border-radius: var(--sc-r-sm);
  background: var(--sc-accent);
  color: var(--sc-accent-ink);
  font-size: var(--sc-t-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .t-ask__send:hover { background: color-mix(in oklab, var(--sc-accent) 88%, white); }
}
.t-ask__send:active { transform: translateY(1px); }
.t-ask__note { margin: 0; font-family: var(--sc-font-mono); font-size: 0.64rem; letter-spacing: 0.08em; line-height: 1.8; color: var(--sc-ink-soft); }

/* ── colofon ────────────────────────────────────────────────────── */
.t-colophon { padding: var(--sc-9) var(--sc-gutter); background: var(--sc-canvas); }
.t-colophon h2 { margin: 0 0 var(--sc-4); font-family: var(--sc-font-display); font-weight: 450; font-size: var(--sc-t-xl); letter-spacing: var(--sc-track-snug); max-width: 20ch; }
.t-colophon p { margin: 0 0 var(--sc-4); max-width: 54ch; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); line-height: 1.75; }
.t-colophon a.t-line { color: var(--sc-ink); text-decoration-color: var(--sc-accent); text-underline-offset: 0.3em; }
.t-small { font-family: var(--sc-font-mono); font-size: 0.64rem; letter-spacing: 0.08em; line-height: 1.9; color: var(--sc-ink-soft); }

/* ── telefoon ───────────────────────────────────────────────────── */
@media (max-width: 63.99rem) {
  .t-folio {
    position: sticky;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem var(--sc-gutter);
    border-right: 0;
    border-bottom: 1px solid var(--sc-hairline);
  }
  .t-index, .t-folio__foot { display: none; }
  .t-folio__here { font-size: 0.64rem; color: var(--sc-ink-soft); text-align: right; }
}
@media (min-width: 64rem) { .t-folio__here { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .t-band__track { transform: none !important; }
  .t-build [data-step] { opacity: 1; }
}
