@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600;700&display=swap");

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0c0e;
  --bg-2: #111317;
  --surface: #15181d;
  --surface-2: #1b1f26;
  --line: #262b33;
  --line-2: #333a44;
  --text: #eceef1;
  --muted: #9aa3ad;
  --faint: #6b7480;
  --accent: #e7eef5;
  --rec: #ff4d4d;
  --warn: #ffb454;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 10px;
  --maxw: 880px;
  --xp-warn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23FFC000' stroke='%23C99000' stroke-width='1' stroke-linejoin='round' d='M16 3 28.5 28.5H3.5Z'/%3E%3Crect x='14.1' y='10.2' width='3.8' height='10.2' rx='1.2' fill='%23000'/%3E%3Ccircle cx='16' cy='24.4' r='2.35' fill='%23000'/%3E%3C/svg%3E");
  --xp-warn-icon-titlebar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%235C3D00' stroke='%232A1C00' stroke-width='1.2' stroke-linejoin='round' d='M16 3 28.5 28.5H3.5Z'/%3E%3Crect x='14.1' y='10.2' width='3.8' height='10.2' rx='1.2' fill='%23fff'/%3E%3Ccircle cx='16' cy='24.4' r='2.35' fill='%23fff'/%3E%3C/svg%3E");
  --xp-chrome-border: #9a7500;
  --xp-chrome-border-hi: #ffe566;
  --xp-chrome-title-shadow: #6b4e00;
  --scroll-hint-bottom: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.proces-lightbox-open { overflow: hidden; }

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

.hidden { display: none !important; }

/* ?ingang=1 — geen flits van deurmelding vóór JS (script in <head>) */
html.ingang-skip #doorbell-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  transition: none !important;
  pointer-events: none !important;
}
html.ingang-skip #app,
html.ingang-skip #app.hidden {
  display: flex !important;
}

a { color: inherit; }

/* Shared grain texture */
.feed__grain,
.doorbell__noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Status dots */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.dot--live { background: #3ad07a; box-shadow: 0 0 8px #3ad07a; }
.dot--rec { background: var(--rec); box-shadow: 0 0 8px var(--rec); animation: blink 1.3s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn .material-symbols-outlined {
  font-size: 1.2rem;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--text); color: #0b0c0e; }
.btn--primary:hover { background: #ffffff; }
.btn--ghost { background: transparent; color: var(--muted); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--text); border-color: var(--muted); }
.btn--line {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn--line:hover { background: rgba(255,255,255,0.1); border-color: var(--muted); }

/* ---------- 1. Doorbell intro ---------- */
.doorbell {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 50% 30%, #15181d 0%, #060708 70%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.doorbell.is-dismissed { opacity: 0; visibility: hidden; pointer-events: none; }
.doorbell__noise { position: absolute; inset: 0; opacity: 0.06; pointer-events: none; }

.doorbell__panel {
  position: relative;
  width: min(380px, 90vw);
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(21,24,29,0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}
.doorbell__status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em;
  color: var(--faint); margin-bottom: 1.75rem;
  position: relative;
  top: -10px;
}
.doorbell__icon {
  position: relative; display: inline-flex; color: var(--muted);
  margin-bottom: 1.5rem;
  margin-left: 30px;
}


.ping {
  position: absolute; inset: -10px; border: 1.5px solid #3ad07a;
  border-radius: 50%; opacity: 0; animation: ping 2.4s ease-out infinite;
}
.ping--2 { animation-delay: 1.2s; }
@keyframes ping {
  0% { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}
.doorbell__alert {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--warn); margin: 0 0 0.6rem;
}
.doorbell__question { font-size: 1.3rem; font-weight: 600; margin: 0 0 2rem; }
.doorbell__actions { display: flex; flex-direction: column; gap: 0.7rem; }
.doorbell__actions .btn { width: 100%; }
.doorbell__hint {
  font-family: var(--mono); font-size: 0.72rem; color: var(--faint);
  margin: 1.5rem 0 0; min-height: 1.2em;
}

/* ---------- App shell ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }

/* Standalone pages (o.a. over-mij.html voor SEO) */
.page-static .main { flex: 1; }
.page-static__main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.5rem 5rem;
}
.page-static__article {
  width: 100%;
}
.page-static__article .head__title {
  margin-bottom: 0.75rem;
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.6rem 1.25rem;
  background: rgba(11,12,14,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  color: var(--faint); white-space: nowrap;
  text-decoration: none;
}
.nav__brand:hover { color: var(--text); }
.nav__menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.15rem; margin-left: auto;
}
.nav-link {
  display: block; padding: 0.4rem 0.7rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--muted); text-decoration: none; border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--text); background: rgba(255,255,255,0.08); }
.nav__toggle {
  display: none; align-items: center; justify-content: center;
  margin-left: auto; padding: 0.45rem; background: none; border: none; cursor: pointer;
  color: var(--text);
}
.nav__toggle-icon {
  font-size: 1.5rem;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ---------- Sections ---------- */
.main { flex: 1; }
.section { display: none; }
.section--active { display: block; animation: fade 0.4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.wrap--narrow { max-width: 640px; }

.head { margin-bottom: 2.5rem; }
.head__tag {
  font-family: var(--mono); font-size: 0.72rem; color: var(--faint);
  display: block; margin-bottom: 0.5rem; letter-spacing: 0.1em;
}
.head__title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
.head--gold .head__tag,
.head--gold .head__title {
  color: #e8c547;
}
.obs-panel__tag,
.obs-panel__title {
  color: #e8c547;
}
.head__lead { color: var(--muted); margin: 0; max-width: 56ch; white-space: pre-line; }
.head--hero .head__title {
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.02em;
}

.scroll-hint {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  color: var(--faint);
  animation: obs-bounce 2s ease-in-out infinite;
}
.scroll-hint .material-symbols-outlined {
  font-size: 2.25rem;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}
.scroll-hint--section {
  position: fixed;
  bottom: var(--scroll-hint-bottom);
  right: 1.5rem;
  margin: 0;
  padding: 0;
  z-index: 25;
  pointer-events: none;
}

.prose--scroll {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding-right: 0.5rem;
}
#introductie .prose--scroll,
#methode .prose--scroll,
#reflectie .prose--scroll {
  max-height: none;
  overflow-y: visible;
  padding-right: 0;
}

.prose p { color: var(--muted); margin: 0 0 1.25rem; white-space: pre-line; }
.prose p:last-child { margin-bottom: 0; }
.artist-auto-link {
  color: var(--text);
  text-decoration: none;
}
.artist-auto-link:hover { color: var(--warn); }

.ref-auto-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(120, 180, 255, 0.55);
  text-underline-offset: 0.15em;
}
.ref-auto-link:hover { color: #8cb8ff; }

.refs__cite-mark--active {
  color: #8cb8ff;
  text-decoration: underline;
  text-decoration-color: rgba(120, 180, 255, 0.75);
  text-underline-offset: 0.12em;
  text-shadow:
    0 0 8px rgba(120, 180, 255, 0.85),
    0 0 18px rgba(120, 180, 255, 0.5);
  animation: ref-cite-glow 1.35s ease-in-out 3;
}
.refs__item--active {
  color: #8cb8ff;
  text-shadow:
    0 0 8px rgba(120, 180, 255, 0.55),
    0 0 16px rgba(120, 180, 255, 0.3);
}
.refs__item--active a {
  color: #8cb8ff;
}
@keyframes ref-cite-glow {
  0%, 100% {
    text-shadow:
      0 0 6px rgba(120, 180, 255, 0.6),
      0 0 14px rgba(120, 180, 255, 0.35);
  }
  50% {
    text-shadow:
      0 0 10px rgba(120, 180, 255, 1),
      0 0 22px rgba(120, 180, 255, 0.75),
      0 0 32px rgba(120, 180, 255, 0.45);
  }
}

/* ---------- 2. Home / live feed ---------- */
.home { padding: 0; }
.feed {
  position: relative;
  min-height: calc(100vh - 50px);
  overflow: hidden;
  background: #05070a;
}

/* Live camera feed */
.feed__scene { position: absolute; inset: 0; overflow: hidden; }
.feed__img,
.feed__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: contrast(0.94) saturate(0.88) brightness(1.4);
}

/* ---------- Webcam — Linux/GTK venster ---------- */
.linux-cam {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
}
.linux-cam:not(.hidden) {
  pointer-events: auto;
}
.linux-cam.hidden {
  display: none !important;
}

.linux-cam__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
}

.linux-win--cam {
  position: relative;
  z-index: 1;
  width: min(520px, 94vw);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 16px 48px rgba(0, 0, 0, 0.55);
  border: 1px solid #3d3d3d;
  background: #1e1e1e;
  font-family: "Cantarell", "Ubuntu", system-ui, sans-serif;
  font-size: 13px;
  color: #e0e0e0;
  touch-action: none;
}
.linux-win--cam.is-dragging {
  user-select: none;
  cursor: grabbing;
}

.linux-win__hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px 0 12px;
  background: linear-gradient(180deg, #3d3d3d 0%, #303030 100%);
  border-bottom: 1px solid #1a1a1a;
  cursor: grab;
}
.linux-win__hdr:active {
  cursor: grabbing;
}

.linux-win__appicon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 4px;
  background:
    linear-gradient(135deg, #5e81ac 0%, #81a1c1 50%, #88c0d0 100%);
  border: 1px solid #2e3440;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.linux-win__title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.linux-win__dec {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.linux-win__dec-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: default;
  position: relative;
}
.linux-win__dec-btn--close {
  cursor: pointer;
  background: #ff5f57;
  transition: background 0.15s ease, transform 0.12s ease;
}
.linux-win__dec-btn--close:hover {
  background: #ff3b30;
  transform: scale(1.06);
}
.linux-win__dec-btn--close::before,
.linux-win__dec-btn--close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
  background: rgba(80, 0, 0, 0.55);
  border-radius: 1px;
}
.linux-win__dec-btn--close::before {
  transform: rotate(45deg);
}
.linux-win__dec-btn--close::after {
  transform: rotate(-45deg);
}

.linux-win__viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0a0a0a;
  overflow: hidden;
}

.linux-win__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  filter: contrast(1.02) saturate(0.92) brightness(0.95);
  display: none;
}
.linux-win__video.is-active {
  display: block;
}

.linux-win__nosignal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #6b7480;
  background: repeating-linear-gradient(
    0deg,
    #111 0 2px,
    #0d0d0d 2px 4px
  );
}
.linux-win__nosignal:not(.hidden) {
  display: flex;
}

.linux-win__status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  background: #2a2a2a;
  border-top: 1px solid #1a1a1a;
  font-size: 11px;
  color: #9aa3ad;
}
.linux-win__status-rec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ff8a8a;
  font-weight: 600;
}
.linux-win__rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 8px var(--rec);
  animation: blink 1.3s steps(1) infinite;
}
.linux-win__status-msg {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.feed__dim {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 35%, rgba(0,0,0,0.65) 100%),
    radial-gradient(90% 70% at 50% 50%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
}

.feed__grain {
  position: absolute; inset: 0; opacity: 0.10; pointer-events: none; z-index: 6;
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-1.5%,1%); } }
.feed__scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 6;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,0.07) 3px 4px);
}
.feed__vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: radial-gradient(120% 120% at 50% 45%, transparent 45%, rgba(0,0,0,0.75) 100%);
}

/* HUD */
.hud {
  position: absolute; z-index: 8;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: #fff;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.hud--tl { top: 1rem; left: 1.1rem; }
.hud--tr { top: 1rem; right: 1.1rem; }
.hud--watch {
  top: 3.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--warn);
  border: 1px solid rgba(255, 180, 84, 0.4);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.hud--bl { bottom: 1rem; left: 1.1rem; color: rgba(255, 255, 255, 0.9); }
.hud--br { bottom: 1rem; right: 1.1rem; color: #ff8a8a; }

/* Hacker terminal over live feed — draggable, default centered */
.feed__caption {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9;
  width: min(680px, 92vw);
  margin: 0;
  text-align: left;
  touch-action: none;
}
.feed__caption.is-custom-position {
  transform: none;
}
.feed__caption.is-dragging {
  user-select: none;
  z-index: 12;
}

.term {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  background: rgba(4, 8, 6, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.term__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(180deg, #1a1f1c 0%, #121614 100%);
  border: none;
  cursor: move;
}
.term__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.term__dot--r { background: #ff5f57; }
.term__dot--y { background: #febc2e; }
.term__dot--g { background: #28c840; }
.term__label {
  margin-left: 0.35rem;
  font-size: 0.72rem;
  color: #5a8f6a;
  letter-spacing: 0.04em;
}

.term__screen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 1rem 1.1rem 1.15rem;
  color: #39ff7a;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 2px,
      rgba(0, 0, 0, 0.12) 2px 3px
    ),
    #050a07;
}

.term__line {
  margin: 0 0 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.term__line--dim {
  color: #2db85c;
  opacity: 0.75;
  text-shadow: none;
}
.term__line--wrap {
  white-space: pre-line;
  margin: 0.6rem 0 0.75rem;
  max-width: 58ch;
  color: #6dff9a;
  line-height: 1.65;
  opacity: 0.92;
}
.term__line--prompt {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.term__prompt {
  color: #ffb454;
}

.term__headline {
  font-family: var(--mono);
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 0.35rem 0 0.5rem;
  color: #7dffb0;
  letter-spacing: 0.01em;
}

.term__cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: #39ff7a;
  animation: term-blink 1s step-end infinite;
}
@keyframes term-blink {
  50% { opacity: 0; }
}

.term__cta {
  display: inline-flex;
  margin-top: 1rem;
  margin-left: auto;
  font-family: var(--mono);
  background: rgba(57, 255, 122, 0.08) !important;
  border: none !important;
  color: #7dffb0 !important;
}
.term__cta:hover {
  background: rgba(57, 255, 122, 0.16) !important;
  border: none !important;
  color: #b8ffd0 !important;
}
.term__cta .material-symbols-outlined {
  font-size: 1rem;
}

/* ---------- Observaties — full-page scroll ---------- */
.section--observaties.section--active {
  height: calc(100vh - 3.25rem);
  overflow: hidden;
}

.obs-scroll {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.obs-progress {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.section--observaties:not(.section--active) .obs-progress { display: none; }

.obs-progress__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-2);
  transition: transform 0.25s, background 0.25s;
}
.obs-progress__dot.is-active {
  background: var(--text);
  transform: scale(1.35);
}

.obs-panel {
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.obs-panel--intro {
  position: relative;
  place-content: center;
  text-align: center;
  padding: 3rem 2rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255,255,255,0.04) 0%, transparent 70%),
    var(--bg);
}
.obs-intro__target {
  position: relative;
  z-index: 1;
  display: inline-block;
  text-align: left;
  max-width: 42ch;
  margin-bottom: 2.5rem;
}
.obs-panel--intro .obs-panel__title {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.obs-panel--intro .obs-panel__lead {
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto;
  font-size: 1.05rem;
  white-space: pre-line;
}

/* Algorithm detection box — Observaties intro */
.det-box__frame {
  width: 100%;
  height: 100%;
  border: 2px solid #3b7dff;
  box-shadow: inset 0 0 0 1px #fff;
  background: transparent;
  pointer-events: none;
}
.det-box--low-conf .det-box__frame {
  border-color: #e53935;
  box-shadow: inset 0 0 0 1px rgba(255, 120, 120, 0.85);
}
.det-box--on-icon .det-box__frame {
  border-color: #ff8c00;
  box-shadow: inset 0 0 0 1px rgba(255, 190, 120, 0.9);
}
.det-box__type,
.det-box__id,
.det-box__conf {
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: #3dff3d;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: none;
  pointer-events: none;
}
.det-box__type {
  top: -1.15rem;
  opacity: 0;
  white-space: nowrap;
}
.det-box__id {
  top: -2.35rem;
  opacity: 0;
  white-space: nowrap;
}
.det-box__conf {
  bottom: -1.15rem;
  opacity: 0;
}
.det-box--float {
  position: absolute;
  z-index: 2;
  margin: 0;
  pointer-events: none;
  transition: none;
}
.det-box--float .det-box__type,
.det-box--float .det-box__conf {
  opacity: 1;
}
.det-box--float.det-box--on-target .det-box__id {
  opacity: 1;
}
.obs-intro__target .obs-panel__tag {
  display: block;
  margin-bottom: 0.75rem;
  color: #e8c547;
}
.obs-intro__target .obs-panel__title {
  text-align: left;
  margin-bottom: 0.75rem;
}
.obs-intro__target .obs-panel__lead {
  text-align: left;
  margin: 0;
}

/* Bevindingen intro — titel hoger, eerste bevinding deels zichtbaar */
#uitkomsten .obs-panel--intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 76%;
  padding: clamp(1rem, 4vh, 2.5rem) 2rem 3.25rem;
}

#uitkomsten .obs-intro__target {
  margin-bottom: 0;
}

#uitkomsten .obs-panel--intro .obs-scroll-hint {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  gap: 0.2rem;
  animation: none;
  color: var(--muted);
  z-index: 3;
}

#uitkomsten .obs-panel--intro .obs-scroll-hint .material-symbols-outlined {
  animation: obs-bounce 2s ease-in-out infinite;
}

.obs-scroll-hint__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
  white-space: nowrap;
}

.obs-panel__tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #e8c547;
  display: block;
  margin-bottom: 1.25rem;
}

.obs-scroll-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  pointer-events: none;
  animation: obs-bounce 2s ease-in-out infinite;
}
.obs-scroll-hint--fixed {
  position: fixed;
  bottom: var(--scroll-hint-bottom);
  right: 1.5rem;
  left: auto;
  margin: 0;
  z-index: 25;
  transform: none;
  flex-direction: row;
}
.obs-scroll-hint--fixed .obs-scroll-hint__label {
  display: none;
}
.obs-scroll-hint .material-symbols-outlined {
  font-size: 2.25rem;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}
@keyframes obs-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

.obs-panel--reverse .obs-panel__media { order: 2; }
.obs-panel--reverse .obs-panel__content { order: 1; }

.obs-panel__media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #0a0c0e;
}
.obs-panel__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
  pointer-events: none;
  opacity: 0.35;
}
.obs-panel--reverse .obs-panel__media::after {
  background: linear-gradient(270deg, var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}

.obs-panel__img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.9) brightness(0.88);
}
.obs-panel__img--crop-door { object-position: center 55%; }
.obs-panel__img--crop-cam { object-position: 75% 35%; }
.obs-panel__img--crop-empty { object-position: center 70%; filter: contrast(1.02) saturate(0.75) brightness(0.75); }
.obs-panel__img--crop-inside { object-position: 30% 45%; }

.obs-panel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  border-left: 1px solid var(--line);
}
.obs-panel--reverse .obs-panel__content {
  border-left: none;
  border-right: 1px solid var(--line);
}
.obs-panel--intro .obs-panel__content { border: none; }

.obs-panel__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--warn);
  margin-bottom: 1rem;
}
.obs-panel__heading {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}
.obs-panel__content p {
  white-space: pre-line;
  width: 100%;
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: calc(100% - 2rem);
}
.obs-panel__content p:last-of-type { margin-bottom: 0; }
.obs-panel__next { margin-top: 1.75rem; align-self: flex-start; }

@media (max-width: 860px) {
  .obs-panel {
    grid-template-columns: 1fr;
    grid-template-rows: 42vh auto;
  }
  .obs-panel--reverse .obs-panel__media,
  .obs-panel--reverse .obs-panel__content { order: unset; }
  .obs-panel__media { min-height: 0; }
  .obs-panel__media::after {
    background: linear-gradient(180deg, transparent 55%, var(--bg) 100%);
    opacity: 0.85;
  }
  .obs-panel__content {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--line);
    padding: 2rem 1.5rem 2.5rem;
  }
  .obs-progress { right: 0.75rem; }
  #uitkomsten .obs-panel--intro {
    min-height: 70%;
    padding: 1.25rem 1.5rem 3rem;
  }
}

/* ---------- Brede prose-secties ---------- */
#introductie .wrap--narrow,
#methode .wrap--narrow,
#observaties .wrap--narrow,
#bronvermelding .wrap--narrow { max-width: 900px; }

#over-mij .wrap--narrow,
#conclusie .wrap--narrow,
#reflectie .wrap--narrow,
.page-static__article.wrap--narrow { max-width: 960px; }

/* ---------- Sectie-koppelingen (onderaan pagina) ---------- */
.section-nav {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.section-nav__label {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.section-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}
.section-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.05rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.section-nav__link:hover {
  border-color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
}
.section-nav__link--current {
  border-color: #e8c547;
  color: #e8c547;
  cursor: default;
}
.section-nav--scroll-footer {
  scroll-snap-align: end;
  padding: 2.5rem 2rem 4rem;
  background: var(--bg);
}
.section-nav--discussie {
  flex-shrink: 0;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top-color: rgba(255, 255, 255, 0.12);
}
.section-nav--discussie .section-nav__label {
  color: rgba(236, 238, 241, 0.55);
}
.section-nav--discussie .section-nav__link {
  color: #eceef1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}
.section-nav--discussie .section-nav__link:hover {
  border-color: rgba(232, 197, 71, 0.65);
  color: #e8c547;
}
.section-nav--discussie .section-nav__link--current {
  border-color: #e8c547;
  color: #e8c547;
}
#proces .section-nav,
#reflectie .section-nav {
  margin-bottom: 1rem;
}

/* ---------- Uitkomsten — analyse scan ---------- */
.findings-stage {
  position: relative;
  margin-top: 0.5rem;
}
.findings-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.findings-hud__mode {
  color: var(--warn);
  text-transform: uppercase;
}
.findings-hud__stat {
  color: var(--text);
}
.findings-scanner {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border: none;
  transition: none;
}
.findings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.finding {
  position: relative;
  padding-left: 3rem;
  overflow: hidden;
  transition: opacity 0.35s ease;
}
.findings-stage.is-ready .finding {
  opacity: 0.38;
}
.findings-stage.is-ready:not(.is-scanning) .finding__title,
.findings-stage.is-ready:not(.is-scanning) .finding p,
.findings-stage.is-ready:not(.is-scanning) .finding__body p {
  color: var(--faint);
}
.findings-stage.is-ready:not(.is-scanning) .finding__num {
  color: var(--faint);
}
.findings-stage.is-scanning .finding {
  opacity: 0.28;
}
.findings-stage.is-scanning .finding.is-active {
  opacity: 1;
}
.finding__num {
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--faint);
  transition: color 0.35s ease;
}
.finding__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color 0.35s ease;
}
.finding p,
.finding__body p {
  white-space: pre-line;
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.65;
  transition: color 0.35s ease;
}
.finding__body p:last-child { margin-bottom: 0; }
.findings-stage.is-scanning .finding.is-active .finding__num {
  color: var(--warn);
}
.findings-stage.is-scanning .finding.is-active .finding__title,
.findings-stage.is-scanning .finding.is-active p {
  color: var(--text);
}
.findings-stage.is-scanning .finding.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--warn), transparent);
  box-shadow: 0 0 12px rgba(255, 180, 84, 0.45);
  animation: finding-scan 1.4s ease-out forwards;
  pointer-events: none;
}
@keyframes finding-scan {
  0% { top: 0; opacity: 0; }
  12% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.findings-stage.is-entering .finding {
  opacity: 0;
  transform: translateY(12px);
  animation: finding-enter 0.7s ease forwards;
}
.findings-stage.is-entering .finding:nth-child(1) { animation-delay: 0.1s; }
.findings-stage.is-entering .finding:nth-child(2) { animation-delay: 0.28s; }
.findings-stage.is-entering .finding:nth-child(3) { animation-delay: 0.46s; }
.findings-stage.is-entering .finding:nth-child(4) { animation-delay: 0.64s; }
@keyframes finding-enter {
  to { opacity: 0.38; transform: translateY(0); }
}

/* ---------- Archief ---------- */
.archive-table-wrap { overflow-x: auto; }
.prose--archive { margin-bottom: 2rem; max-width: 100%; }
.prose--proces { margin-bottom: 2rem; max-width: 100%; }
.archive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.archive-table thead th {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-align: left;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--line);
}
.archive-table thead th:nth-child(1) { width: 220px; }
.archive__row-cell {
  padding: 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.archive__row-link {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0 1rem;
  padding: 1rem 1rem 1rem 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.archive__row-link:hover .archive__name {
  color: var(--accent);
}
.archive__name { font-weight: 600; color: var(--text); }
.archive__note { color: var(--muted); line-height: 1.55; white-space: pre-line; }
.archive__text {
  margin: 0;
  padding: 0 0 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 72ch;
  white-space: pre-line;
}
.archive__text[hidden] { display: none; }

/* ---------- Bronvermelding (APA) ---------- */
.refs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.refs__item {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-left: 2rem;
  text-indent: -2rem;
  scroll-margin-top: 5rem;
  scroll-margin-bottom: 2rem;
}
.refs__item em { color: var(--text); font-style: italic; }
.refs__item a {
  color: var(--text);
  text-decoration: none;
}
.refs__item a:hover { color: var(--warn); }

.archive-preview {
  position: fixed;
  z-index: 300;
  pointer-events: none;
  width: min(300px, 42vw);
  opacity: 0;
  transform: translate(-8px, -8px);
  transition: opacity 0.2s ease;
}
.archive-preview.is-visible {
  opacity: 1;
}
.archive-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: none;
  border-radius: 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
  background: var(--surface);
}

/* ---------- Discussie — Windows XP systeemfout ---------- */
.section--discussie.section--active {
  height: calc(100vh - 3.25rem);
  overflow: hidden;
  background: rgba(11, 12, 14, 0.85);
}

.xp-desktop {
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  color: #000;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  position: relative;
  box-sizing: border-box;
}

.xp-page-head {
  flex-shrink: 0;
  text-align: center;
  margin-bottom: 0.75rem;
  color: #eceef1;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.75);
}
.xp-page-head__warn-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 0.65rem;
  margin-bottom:0px;
  background: var(--xp-warn-icon) center / contain no-repeat;
}
.xp-page-head__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.xp-page-head__title--gold {
  color: #e8c547;
}
.xp-page-head__lead { margin: 0; font-size: 12px; opacity: 0.95; }
.xp-page-head__lead strong { font-weight: 700; }

.xp-btn--reset {
  display: inline-block;
  margin-top: 0.75rem;
  min-width: auto;
  font-size: 11px;
  cursor: pointer;
}
.xp-btn--reset:hover {
  background: linear-gradient(180deg, #fff 0%, #f5f2ea 45%, #e8e4da 100%);
}

.xp-windows {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.xp-win {
  position: absolute;
  width: min(380px, 42vw);
  max-width: 400px;
  left: 0;
  top: 0;
  z-index: 10;
  border: 1px solid var(--xp-chrome-border);
  border-top-color: var(--xp-chrome-border-hi);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  background: #ece9d8;
  touch-action: none;
}
.xp-win.is-dragging {
  opacity: 0.96;
  box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.45);
}
.xp-win.is-open {
  z-index: 25;
}

.xp-titlebar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 4px 0 6px;
  background: linear-gradient(
    180deg,
    #ffe566 0%,
    #ffd54a 6%,
    #ffc000 50%,
    #f0b020 90%,
    #e8a010 96%,
    #c99000 100%
  );
  color: #1a1200;
  font-weight: 700;
  font-size: 11px;
  user-select: none;
  cursor: move;
}
.xp-titlebar__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fff 0%, #c0c0c0 100%);
  border: 1px solid #000;
  border-radius: 2px;
}
.section--discussie .xp-titlebar__icon:not(.xp-titlebar__icon--app) {
  width: 18px;
  height: 18px;
  background: var(--xp-warn-icon-titlebar) center / contain no-repeat;
  border: none;
  border-radius: 0;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.35));
}
.xp-titlebar__text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.xp-titlebar__controls {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.xp-ctrl {
  width: 21px;
  height: 21px;
  padding: 0;
  border: none;
  border-radius: 3px;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  color: #000;
  cursor: default;
  background: linear-gradient(180deg, #fff4c8 0%, #ffd54a 50%, #e8a810 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.xp-body {
  padding: 14px 16px 12px;
  background: #ece9d8;
  border-top: 1px solid var(--xp-chrome-border);
}

.xp-error-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.xp-error-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #ff9a9a 0%, #e03030 45%, #a01010 100%);
  border: 1px solid #800;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
  position: relative;
}
.xp-error-icon::before,
.xp-error-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 4px;
  margin: -2px 0 0 -9px;
  background: #fff;
  border-radius: 1px;
}
.xp-error-icon::before { transform: rotate(45deg); }
.xp-error-icon::after { transform: rotate(-45deg); }

/* Geel waarschuwingsdriehoek met uitroepteken (los van rode XP-foutcirkel) */
.xp-error-icon.xp-error-icon--warn {
  width: 32px;
  height: 32px;
  margin-top: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: var(--xp-warn-icon) center / 32px 32px no-repeat;
}
.xp-error-icon.xp-error-icon--warn::before,
.xp-error-icon.xp-error-icon--warn::after {
  display: none;
  content: none;
}

.xp-win--livebeeld {
  display: flex;
  flex-direction: column;
  width: 440px;
  height: 360px;
  min-width: 300px;
  min-height: 240px;
  max-width: none;
}
.xp-win--livebeeld.is-resizing {
  user-select: none;
}
.xp-titlebar__icon--app {
  background: linear-gradient(135deg, #1a1a1a 45%, #3a3a3a 55%);
  border-color: #333;
}
.xp-body--app {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  background: #ece9d8;
  overflow: hidden;
}
.xp-menubar {
  flex-shrink: 0;
  display: flex;
  gap: 14px;
  padding: 4px 8px;
  background: #ece9d8;
  border-bottom: 1px solid #aca899;
  font-size: 11px;
  color: #000;
}
.xp-viewport {
  position: relative;
  flex: 1;
  min-height: 120px;
  margin: 8px;
  background: #000;
  overflow: hidden;
  border: 2px solid;
  border-color: #808080 #dfdfdf #dfdfdf #808080;
  box-shadow: inset 1px 1px 0 #404040;
}
.xp-viewport__feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.85) contrast(1.05);
}
.xp-viewport__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.xp-resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  background: linear-gradient(
    135deg,
    transparent 0 45%,
    #aca899 45% 55%,
    #808080 55% 65%,
    transparent 65% 75%,
    #aca899 75% 85%,
    #808080 85% 100%
  );
}
.xp-viewport__noise {
  position: absolute;
  inset: -40%;
  z-index: 2;
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.xp-viewport__noise--a {
  animation: xp-static-a 0.12s steps(4) infinite;
}
.xp-viewport__noise--b {
  opacity: 0.35;
  animation: xp-static-b 0.18s steps(3) infinite reverse;
  mix-blend-mode: screen;
}
@keyframes xp-static-a {
  0% { transform: translate(0, 0) scale(1.1); }
  50% { transform: translate(2%, -2%) scale(1.08); }
  100% { transform: translate(0, 0) scale(1.1); }
}
@keyframes xp-static-b {
  0% { transform: translate(1%, 0) scale(1.15); }
  100% { transform: translate(1%, 0) scale(1.15); }
}
.xp-viewport__scanlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.12) 2px 3px);
  pointer-events: none;
}
.xp-viewport__roll {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  background-size: 100% 18%;
  animation: xp-roll 3s linear infinite;
  pointer-events: none;
  opacity: 0.6;
}
@keyframes xp-roll {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 200%; }
}
.xp-viewport__label {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.45);
  z-index: 5;
}
.xp-statusbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 8px;
  background: #ece9d8;
  border-top: 1px solid #dfdfdf;
  font-size: 11px;
}
.xp-statusbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #888;
}
.xp-statusbar__msg { flex: 1; }

.xp-error-msg { flex: 1; min-width: 0; }
.xp-error-msg p { margin: 0; line-height: 1.45; color: #000; }
.xp-error-msg p + p { margin-top: 0.65em; }
.xp-error-code {
  font-weight: 700;
  margin-bottom: 6px !important;
}

.xp-detail {
  margin: 0 0 12px 46px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #7f9db9;
  font-size: 11px;
  line-height: 1.5;
}
.xp-detail:not([hidden]) { display: block; }
.xp-detail p { margin: 0; }

.xp-footer {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.xp-btn {
  min-width: 75px;
  padding: 4px 16px;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  color: #000;
  cursor: pointer;
  background: linear-gradient(180deg, #fff 0%, #f0eee8 45%, #dcd8ce 100%);
  border: 1px solid var(--xp-chrome-border);
  border-radius: 3px;
}
.xp-btn--details { min-width: 88px; }

.xp-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.xp-detail-overlay.hidden {
  display: none !important;
}
.xp-detail-overlay__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(8, 10, 12, 0.42);
  backdrop-filter: blur(5px) brightness(0.5) saturate(0.75);
  -webkit-backdrop-filter: blur(5px) brightness(0.5) saturate(0.75);
}
.xp-detail-overlay__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Crect width='4' height='4' fill='%2306080c' fill-opacity='.55'/%3E%3Crect x='4' y='4' width='4' height='4' fill='%2306080c' fill-opacity='.55'/%3E%3C/svg%3E");
  background-size: 8px 8px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 0.72;
  mix-blend-mode: multiply;
}
.xp-win--detail-popup {
  position: relative;
  z-index: 1;
  width: min(420px, 94vw);
  max-width: 440px;
  left: auto !important;
  top: auto !important;
}
.xp-error-row--detail {
  margin-bottom: 0;
}
.xp-error-row--detail .xp-error-msg p {
  line-height: 1.55;
}
.xp-ctrl--close {
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
}
.xp-ctrl--close:hover {
  background: linear-gradient(180deg, #e88 0%, #c44 50%, #a22 100%);
  color: #fff;
}

@media (max-width: 720px) {
  .xp-win {
    width: min(340px, 88vw);
  }
}

/* ---------- Proces & Eindwerk ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.shot--wide { grid-column: 1 / -1; }
.shot { margin: 0; }
.shot__ph {
  aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.02) 3px 4px),
    var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.78rem; color: var(--faint); letter-spacing: 0.1em;
}
.shot__ph--video { aspect-ratio: 4/3; position: relative; }
.shot__media {
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.shot__media--video {
  position: relative;
}
.shot__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot__media--video video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0c0f;
  pointer-events: none;
}
.shot__video-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  background: rgba(11, 12, 14, 0.88);
  border: 1px solid var(--line-2);
  color: #e8eaed;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.shot__video-badge .material-symbols-outlined {
  font-size: 0.95rem;
  color: var(--gold, #e8c547);
}
.shot__video-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.35));
}
.shot__video-play .material-symbols-outlined {
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  color: rgba(255, 255, 255, 0.94);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}
.shot--video .shot__media {
  border-color: rgba(232, 197, 71, 0.35);
}
.shot--wide .shot__media { aspect-ratio: 16/9; }
.shot figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); white-space: pre-line; }
.shot__text {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-line;
}
.shot--expandable { cursor: zoom-in; }
.shot--expandable .shot__media {
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: zoom-in;
}
.shot__expand {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: rgba(11, 12, 14, 0.82);
  color: #e8eaed;
  cursor: pointer;
  opacity: 1;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.shot__expand .material-symbols-outlined {
  font-size: 1.2rem;
}
.shot__expand:hover,
.shot__expand:focus-visible {
  border-color: #e8c547;
  color: #e8c547;
  background: rgba(11, 12, 14, 0.94);
}
.shot--expandable:hover .shot__media,
.shot--expandable:focus-visible .shot__media {
  border-color: var(--gold, #e8c547);
  box-shadow: 0 0 0 1px rgba(232, 197, 71, 0.25);
}
.shot--expandable:focus-visible {
  outline: 2px solid rgba(232, 197, 71, 0.55);
  outline-offset: 4px;
  border-radius: var(--radius);
}
.shot--expandable .shot__media img {
  cursor: zoom-in;
}

.proces-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.proces-lightbox.hidden {
  display: none;
}
.proces-lightbox:not(.hidden) {
  animation: proces-lightbox-in 0.2s ease;
}
@keyframes proces-lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.proces-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(5, 6, 8, 0.94);
  cursor: zoom-out;
}
.proces-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(21, 24, 29, 0.92);
  color: var(--text);
  cursor: pointer;
}
.proces-lightbox__close:hover {
  border-color: #e8c547;
  color: #e8c547;
}
.proces-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(21, 24, 29, 0.92);
  color: var(--text);
  cursor: pointer;
}
.proces-lightbox__nav:hover:not(:disabled) {
  border-color: #e8c547;
  color: #e8c547;
}
.proces-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.proces-lightbox__nav--prev { left: 1rem; }
.proces-lightbox__nav--next { right: 1rem; }
.proces-lightbox__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(1200px, 100%);
  max-height: calc(100vh - 2rem);
  gap: 1rem;
}
.proces-lightbox__stage {
  flex: 1 1 auto;
  min-height: 0;
  height: min(72vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0c0f;
  overflow: hidden;
}
.proces-lightbox__stage img,
.proces-lightbox__stage video {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.proces-lightbox__stage video {
  background: #000;
}
.proces-lightbox__meta {
  flex: 0 0 auto;
  text-align: center;
  padding: 0 0.5rem 0.25rem;
}
.proces-lightbox__tag {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8c547;
}
.proces-lightbox__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  white-space: pre-line;
}
.proces-lightbox__text {
  margin: 0.65rem auto 0;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
  white-space: pre-line;
}
.proces-lightbox__counter {
  margin: 0.75rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}
@media (max-width: 760px) {
  .proces-lightbox { padding: 0.5rem; }
  .proces-lightbox__nav--prev { left: 0.35rem; }
  .proces-lightbox__nav--next { right: 0.35rem; }
  .proces-lightbox__close { top: 0.5rem; right: 0.5rem; }
  .proces-lightbox__stage { height: min(58vh, 640px); }
}

.final {
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  padding: 2.5rem 2rem; text-align: center;
}
.eindwerk-blocks {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 auto 1.5rem;
  max-width: 960px;
  text-align: left;
}
.ew-block p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
  white-space: pre-line;
}
.ew-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.ew-split__text { display: flex; align-items: center; }
.ew-triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ew-figure { margin: 0; }
.ew-figure--expandable {
  cursor: zoom-in;
}
.ew-figure--expandable:focus-visible {
  outline: 2px solid rgba(232, 197, 71, 0.55);
  outline-offset: 4px;
  border-radius: var(--radius);
}
.ew-figure__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: zoom-in;
}
.ew-figure--expandable:hover .ew-figure__media,
.ew-figure--expandable:focus-visible .ew-figure__media {
  border-color: var(--gold, #e8c547);
  box-shadow: 0 0 0 1px rgba(232, 197, 71, 0.25);
}
.ew-figure img {
  display: block;
  width: 100%;
  border: none;
  border-radius: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ew-figure--expandable .ew-figure__media img {
  cursor: zoom-in;
}
.ew-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: pre-line;
}
.ew-figure__ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.02) 3px 4px),
    var(--surface);
  gap: 0.55rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.1em;
}
.ew-figure--hero img {
  aspect-ratio: 16 / 9;
}
.ew-figure--hero .ew-figure__media {
  border: none;
}
.ew-figure--hero .ew-figure__media img {
  aspect-ratio: 16 / 9;
}
.ew-figure__ph--soon {
  border: 1px dashed var(--line-2);
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(232, 197, 71, 0.08) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,0.02) 3px 4px),
    var(--surface);
}
.ew-figure__ph-icon {
  width: 2rem;
  height: 2rem;
  color: #e8c547;
  opacity: 0.9;
}
.ew-figure__ph-title {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8c547;
}
.ew-figure__ph-note {
  max-width: 26ch;
  font-family: var(--sans, inherit);
  font-size: 0.82rem;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
  white-space: pre-line;
}
.ew-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: pre-line;
}
.eindwerk-link { margin-top: 0.5rem; }
.eindwerk-link[hidden] { display: none !important; }
.eindwerk-presentatie-link[hidden] { display: none !important; }
.final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.page-presentatie__prose p {
  white-space: pre-line;
}
.page-presentatie__media {
  margin-top: 1.5rem;
}
.page-presentatie__gallery .ew-figure {
  margin: 0;
}
.page-presentatie__gallery .ew-figure__media {
  border-radius: var(--radius);
}
.page-presentatie__gallery .ew-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.ew-presentatie-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem 0 0.5rem;
}
.page-presentatie__back-wrap {
  margin-top: 2.5rem;
  text-align: center;
}
.prose--refs { margin-bottom: 2rem; }

@media (max-width: 720px) {
  .ew-split,
  .ew-triple {
    grid-template-columns: 1fr;
  }
}

/* ---------- Over mij ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
#over-mij .head,
.page-static__article .head {
  margin-bottom: 2rem;
}
#over-mij .head__lead,
.page-static__article .head__lead {
  max-width: 65ch;
}
.about .prose {
  min-width: 0;
}
.about .prose p {
  max-width: none;
  line-height: 1.75;
}
.about__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
  letter-spacing: 0.1em;
}
.about__photo--has-image { padding: 0; overflow: hidden; }
.about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.about__contact { color: var(--muted); }
.about__contact a { color: var(--text); }

/* ---------- Footer ---------- */
.foot {
  position: relative;
  z-index: 30;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.5rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.7rem; color: var(--faint);
  background: var(--bg-2);
}
.foot__status { display: inline-flex; align-items: center; gap: 0.45rem; }
.foot__download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.foot__download .material-symbols-outlined { font-size: 1rem; }
.foot__download:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--gold);
  background: rgba(232, 197, 71, 0.06);
}
.foot__download:disabled {
  opacity: 0.55;
  cursor: wait;
}
.foot__download.is-busy .material-symbols-outlined {
  animation: foot-download-spin 0.9s linear infinite;
}
@keyframes foot-download-spin {
  to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; }
  .nav__toggle { display: flex; }
  .nav__menu { display: none; width: 100%; flex-direction: column; margin: 0.5rem 0 0; gap: 0; }
  .nav__menu.is-open { display: flex; }
  .nav-link { padding: 0.7rem 0.5rem; border-radius: 0; }
  .archive-table thead { display: none; }
  .archive__row { display: block; }
  .archive__row-cell { display: block; border: none; }
  .archive__row-link {
    grid-template-columns: 1fr;
    padding: 1rem 0 0.75rem;
    gap: 0.35rem;
  }
  .archive-preview { width: min(240px, 70vw); }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 280px; }
}
@media (max-width: 860px) {
  #over-mij .about,
  .page-static__article .about {
    grid-template-columns: 1fr;
  }
  #over-mij .about__photo,
  .page-static__article .about__photo {
    max-width: 280px;
  }
}
