/* =========================================
   SPATIAL ANCHOR — ONTWERPSTUDIE SHOWCASE
   Full Academic Document Styling
   ========================================= */

:root {
  --bg: #F7F6F3;
  --paper: #FFFFFF;
  --ink: #1A1A1A;
  --ink-body: #2F3437;
  --muted: #787774;
  --accent: #1B4D7A;
  --accent-light: rgba(27,77,122,0.07);
  --orange: #E8960C;
  --green: #00A846;
  --red: #C62828;
  --border: #EAEAEA;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* =========================================
   PAGE NAVIGATION
   ========================================= */
.page-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,246,243,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.nav-row {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-row::-webkit-scrollbar { display: none; }
.nav-row a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 12px 16px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}
.nav-row a:hover {
  color: var(--ink);
}
.nav-row a.nav-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =========================================
   PAGE FOOTER
   ========================================= */
.page-footer {
  padding: 40px 24px;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.page-footer p {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* =========================================
   HEADER
   ========================================= */
.showcase-header {
  padding: 80px 24px 60px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 28px;
}
.showcase-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.6;
}
.meta-row {
  display: flex; flex-wrap: wrap; gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}
.meta-row div { display: flex; flex-direction: column; gap: 4px; }
.meta-row strong { color: var(--ink); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* =========================================
   CHAPTERS
   ========================================= */
.chapter {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 48px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chapter h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.ch-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}
.alt-chapter .ch-num {
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  padding: 6px 14px;
}

.text-section { margin-bottom: 36px; }
.text-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}
.text-section p {
  color: var(--ink-body);
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.text-section blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 20px 0;
  background: var(--accent-light);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
  border-radius: 0 8px 8px 0;
}

/* Overview grid */
.overview-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 20px; }
.overview-grid.five-col {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.overview-grid.five-col .ov-card {
  min-width: 200px;
  flex: 0 0 calc((100% - 32px) / 3);
  scroll-snap-align: start;
}
.overview-grid.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ov-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ov-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.ov-letter {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.ov-info { display: flex; flex-direction: column; gap: 4px; }
.ov-info strong { font-size: 0.85rem; }
.ov-info span { font-size: 0.78rem; color: var(--muted); }
.ov-modality { font-family: var(--mono); font-size: 0.7rem !important; color: var(--accent) !important; }

/* Theory cards */
.theory-card {
  background: #FAFAF8;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: border-left-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease;
}
.theory-card:hover {
  border-left-color: var(--ink);
  background: #F5F5F2;
}
.theory-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}
.theory-card p { font-size: 0.9rem; color: var(--ink-body); margin: 0; }

/* Flow steps */
.flow-steps {
  padding-left: 0;
  list-style: none;
  counter-reset: flow;
}
.flow-steps li {
  position: relative;
  padding: 12px 0 12px 40px;
  border-left: 2px solid var(--border);
  margin-left: 16px;
  font-size: 0.9rem;
  color: #444;
}
.flow-steps li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 16px;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
}
.flow-steps li:last-child { border-left-color: transparent; }
.flow-steps li strong { color: var(--ink); }

/* Theory annotations in flow steps & captions */
.flow-theory {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(10,102,194,0.08);
  border: 1px solid rgba(10,102,194,0.2);
  border-radius: 4px;
  padding: 2px 7px;
  margin-top: 4px;
  margin-left: 0;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.sb-caption .flow-theory {
  display: block;
  margin-top: 5px;
  font-size: 0.6rem;
}

/* =========================================
   STORYBOARD (Horizontal scroll)
   ========================================= */
.storyboard {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 48px 32px;
  margin: 0 -48px 32px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.storyboard::-webkit-scrollbar { height: 6px; }
.storyboard::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 3px; }
.storyboard::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.sb-screen {
  flex: 0 0 180px;
  scroll-snap-align: start;
}
.sb-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  margin-bottom: 8px;
}
.sb-phone {
  width: 180px;
  height: 320px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  font-size: 0.6rem;
  padding: 8px;
}
.sb-phone.sb-dark { background: #111; color: #fff; }
.sb-phone.sb-dimmed-screen { background: #222; color: #888; }

.sb-statusbar {
  height: 16px;
  background: #f5f5f5;
  border-radius: 0 0 4px 4px;
  margin-bottom: 6px;
}
.sb-statusbar.light { background: #333; }

.sb-caption {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: 180px;
}
.sb-intro { font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* Wireframe elements */
.sb-img-placeholder { border-radius: 6px; margin-bottom: 8px; }
.sb-text-line { height: 6px; background: #e0e0e0; border-radius: 3px; margin-bottom: 5px; }
.sb-text-line.w80 { width: 80%; }
.sb-text-line.w60 { width: 60%; }
.sb-text-line.w40 { width: 40%; }
.sb-btn {
  background: var(--orange);
  color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.65rem;
  margin-top: 8px;
}
.sb-btn.ar-btn { background: var(--accent); }
.sb-nav-bar {
  background: #f0f0f0;
  padding: 6px 8px;
  font-weight: 600;
  font-size: 0.6rem;
  margin-bottom: 6px;
  border-radius: 4px;
}

/* Floorplan wireframe */
.sb-floorplan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 6px;
  flex: 1;
}
.sb-floorplan.small { font-size: 0.5rem; flex: 0; }
.sb-room {
  border: 1px dashed #bbb;
  padding: 8px 4px;
  text-align: center;
  font-size: 0.55rem;
  border-radius: 3px;
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sb-room.r1 { grid-column: span 2; min-height: 60px; }
.sb-room.highlight { border: 2px solid var(--orange); background: rgba(247,161,0,0.1); }
.sb-finger { font-size: 1.2rem; position: absolute; bottom: 2px; right: 4px; }
.sb-pin-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.sb-pin {
  position: absolute;
  top: 4px; right: 4px;
  font-size: 0.8rem;
}
.sb-input-area {
  padding: 6px;
  background: #f9f9f9;
  border-radius: 4px;
}
.sb-input-label { font-size: 0.5rem; font-weight: 600; margin-bottom: 3px; }
.sb-input-field {
  background: #fff;
  border: 1px solid #ccc;
  padding: 4px 6px;
  font-size: 0.55rem;
  border-radius: 3px;
  font-family: var(--sans);
}
.sb-keyboard {
  height: 60px;
  background: #ddd;
  border-radius: 0 0 16px 16px;
  margin: 6px -8px -8px;
}
.sb-toast-wire {
  position: absolute;
  bottom: 12px;
  left: 8px; right: 8px;
  background: #333;
  color: #fff;
  text-align: center;
  padding: 6px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 600;
}
.sb-toast-wire.light { background: #2d2d2d; }
.sb-bottom-bar {
  position: absolute;
  bottom: 8px;
  left: 8px; right: 8px;
  background: #f0f0f0;
  text-align: center;
  padding: 6px;
  border-radius: 4px;
  font-size: 0.55rem;
  color: var(--muted);
}

/* AR storyboard elements */
.sb-camera-view {
  position: absolute;
  top: 24px; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sb-camera-view.dimmed { background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%); }
.sb-ar-grid {
  position: absolute;
  top:0;left:0;right:0;bottom:0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.sb-crosshair {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.7);
  z-index: 2;
}
.sb-crosshair.green { color: var(--green); }
.sb-defect {
  position: absolute;
  top: 30%; left: 20%;
  background: rgba(200,180,100,0.3);
  border: 1px dashed rgba(200,180,100,0.6);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.55rem;
  color: rgba(255,255,255,0.6);
}
.sb-defect.tapped { border-color: var(--green); background: rgba(0,200,83,0.15); color: var(--green); }
.sb-haptic-label {
  position: absolute;
  bottom: 12px;
  left: 8px; right: 8px;
  text-align: center;
  font-size: 0.6rem;
  color: var(--orange);
  font-weight: 600;
}
.sb-radial {
  position: relative;
  width: 100px; height: 100px;
  z-index: 3;
}
.sb-rm-item {
  position: absolute;
  background: rgba(255,255,255,0.95);
  color: #333;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.55rem;
  font-weight: 600;
  white-space: nowrap;
}
.sb-rm-item.top { top: -10px; left: 50%; transform: translateX(-50%); }
.sb-rm-item.left { top: 50%; left: -20px; transform: translateY(-50%); }
.sb-rm-item.right { top: 50%; right: -20px; transform: translateY(-50%); }
.sb-anchor-icon {
  font-size: 1.5rem;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(0,100,255,0.4));
}

/* Voice storyboard elements */
.sb-fab {
  position: absolute;
  bottom: 20px;
  left: 50%; transform: translateX(-50%);
  width: 48px; height: 48px;
  background: #D50000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(213,0,0,0.3);
}
.sb-voice-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
}
.sb-mic-icon { font-size: 2rem; }
.sb-pulse {
  width: 60px; height: 60px;
  border: 2px solid var(--red);
  border-radius: 50%;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 1.5s ease infinite;
  opacity: 0.4;
}
@keyframes pulse { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.4; } 50% { transform: translate(-50%,-50%) scale(1.3); opacity: 0; } }
.sb-voice-label { font-size: 0.65rem; font-weight: 600; }
.sb-voice-sub { font-size: 0.5rem; color: #999; }

.sb-dim-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
}
.sb-dim-overlay.recording { background: rgba(213,0,0,0.1); }
.sb-dim-text { font-size: 0.6rem; color: #888; }
.sb-dim-icon { font-size: 1.5rem; }
.sb-waveform {
  display: flex; gap: 3px; align-items: center; justify-content: center;
}
.sb-waveform span {
  width: 3px;
  background: var(--red);
  border-radius: 2px;
  animation: wave 0.8s ease infinite alternate;
}
.sb-waveform span:nth-child(1) { height: 10px; animation-delay: 0s; }
.sb-waveform span:nth-child(2) { height: 18px; animation-delay: 0.1s; }
.sb-waveform span:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.sb-waveform span:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.sb-waveform span:nth-child(5) { height: 20px; animation-delay: 0.4s; }
.sb-waveform span:nth-child(6) { height: 12px; animation-delay: 0.5s; }
.sb-waveform span:nth-child(7) { height: 8px; animation-delay: 0.6s; }
@keyframes wave { 0% { height: 6px; } 100% { height: 24px; } }

/* Timeline */
.sb-timeline { padding: 6px; }
.sb-tl-card {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}
.sb-tl-time {
  font-family: var(--mono);
  font-size: 0.5rem;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 2px;
}
.sb-tl-content { flex: 1; }
.sb-tl-wave {
  height: 12px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 80%);
  border-radius: 3px;
  margin-bottom: 3px;
  opacity: 0.3;
}
.sb-tl-text { font-size: 0.5rem; color: #666; font-style: italic; }

/* =========================================
   WISSELWERKING STORYBOARD (Interaction Loop)
   Mens ↔ Product interactie-model (HAN)
   ========================================= */
.wisselwerking {
  margin: 0 0 32px;
  padding: 24px 0;
}
.wisselwerking-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #F9FAFB;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.ww-actor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ww-actor-icon {
  font-size: 2rem;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--accent);
}
.ww-actor-icon.product {
  background: rgba(247,161,0,0.1);
  border-color: var(--orange);
}
.ww-actor-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.ww-arrows-symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
}
.ww-arrows-symbol span {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--accent);
}

/* Individual loop */
.ww-loop {
  position: relative;
  margin-bottom: 4px;
}
.ww-loop-num {
  position: absolute;
  left: -8px;
  top: 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 2;
}
.ww-loop-content {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin-left: 18px;
}
.ww-loop-context {
  padding: 10px 16px 8px;
  background: #F9FAFB;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ww-loop-context .ww-where {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 4px;
}
.ww-loop-context .ww-when {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--muted);
  margin-left: auto;
}

/* Input row (Mens → Product) */
.ww-input, .ww-output {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 76px;
}
.ww-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  gap: 4px;
}
.ww-side-icon { font-size: 1.3rem; }
.ww-side-label {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.ww-input .ww-side { background: rgba(10,102,194,0.04); }
.ww-output .ww-side { background: rgba(247,161,0,0.04); }

/* Arrow column */
.ww-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  position: relative;
}
.ww-arrow-line {
  flex: 1;
  width: 2px;
  position: relative;
}
.ww-input .ww-arrow-line {
  background: linear-gradient(180deg, var(--accent), rgba(10,102,194,0.3));
}
.ww-output .ww-arrow-line {
  background: linear-gradient(180deg, var(--orange), rgba(247,161,0,0.3));
}
.ww-arrow-dir {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 0;
}
.ww-input .ww-arrow-dir { color: var(--accent); }
.ww-output .ww-arrow-dir { color: var(--orange); }

/* Description column */
.ww-desc {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border-left: 1px solid var(--border);
}
.ww-input .ww-desc {
  border-left: 3px solid var(--accent);
}
.ww-output .ww-desc {
  border-left: 3px solid var(--orange);
}
.ww-desc-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}
.ww-desc-detail {
  font-size: 0.72rem;
  color: var(--ink-body);
  line-height: 1.45;
}
.ww-desc-detail strong { color: var(--ink); }
.ww-desc-detail em { color: var(--accent); font-style: normal; font-weight: 600; }

/* Spec tags */
.ww-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.ww-spec {
  font-family: var(--mono);
  font-size: 0.55rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f0f0f0;
  color: var(--muted);
  white-space: nowrap;
}
.ww-spec.time { background: rgba(0,200,83,0.1); color: #00873c; }
.ww-spec.modality { background: rgba(10,102,194,0.08); color: var(--accent); }
.ww-spec.theory { background: rgba(247,161,0,0.1); color: #b67a00; }
.ww-spec.warn { background: rgba(213,0,0,0.08); color: var(--red); }

/* Phone mockup column */
.ww-phone-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #fafafa;
  border-left: 1px solid var(--border);
}
.ww-phone-mini {
  width: 72px;
  height: 128px;
  background: #fff;
  border: 1.5px solid #444;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  font-size: 0.4rem;
  padding: 4px;
}
.ww-phone-mini.dark { background: #111; color: #eee; }
.ww-phone-mini.dimmed { background: #222; color: #888; }
.ww-phone-mini .mini-status {
  height: 8px;
  background: #eee;
  border-radius: 0 0 2px 2px;
  margin-bottom: 3px;
}
.ww-phone-mini.dark .mini-status,
.ww-phone-mini.dimmed .mini-status { background: #333; }
.ww-phone-mini .mini-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100% - 14px);
  gap: 3px;
  text-align: center;
  font-size: 0.35rem;
  line-height: 1.3;
}
.ww-phone-mini .mini-icon { font-size: 0.8rem; }
.ww-phone-mini .mini-room {
  border: 1px dashed #ccc;
  padding: 2px;
  font-size: 0.3rem;
  border-radius: 2px;
  width: 90%;
  text-align: center;
}
.ww-phone-mini.dark .mini-room { border-color: #555; }

/* Connector between loops */
.ww-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  margin-left: 28px;
}
.ww-connector-line {
  width: 2px;
  height: 20px;
  background: var(--border);
  position: relative;
}
.ww-connector-line::after {
  content: '↓';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--muted);
}

/* Loop repeat indicator */
.ww-repeat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10,102,194,0.06);
  border: 1px dashed var(--accent);
  border-radius: 8px;
  padding: 8px 16px;
  margin: 8px 0 8px 28px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}
.ww-repeat-badge .ww-repeat-icon {
  font-size: 1rem;
}

/* Summary row */
.ww-summary {
  margin: 16px 0 0 18px;
  padding: 14px 18px;
  background: #FAFAF8;
  border: 1px solid var(--border);
  border-left: 3px solid var(--ink);
  border-radius: 0 8px 8px 0;
  font-size: 0.78rem;
  color: var(--ink-body);
  line-height: 1.5;
}
.ww-summary strong { color: var(--ink); }
.ww-summary .ww-total-time {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .ww-input, .ww-output {
    grid-template-columns: 60px 1fr;
  }
  .ww-phone-col { display: none; }
  .wisselwerking-header { gap: 20px; }
}

/* =========================================
   PROTOTYPES
   ========================================= */
.proto-wrapper {
  background: #F0F2F5;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.proto-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.proto-controls button {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease;
}
.proto-controls button:disabled { opacity: 0.3; cursor: not-allowed; }
.proto-controls button:hover:not(:disabled) { background: #333; }
.proto-controls button:active:not(:disabled) { transform: scale(0.97); }
.proto-dots {
  display: flex; gap: 6px;
}
.proto-dot {
  width: 8px; height: 8px;
  background: #ccc;
  border-radius: 50%;
  transition: background 0.2s;
}
.proto-dot.active { background: var(--accent); }

/* Proto A: click-through phone */
.proto-phone {
  width: 240px;
  height: 480px;
  background: #fff;
  border: 3px solid #222;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}
.proto-phone { display: flex; flex-direction: column; }
.proto-screen {
  position: relative;
  flex: 1;
  display: none;
  padding: 12px;
  font-size: 0.75rem;
}
.proto-screen.active { display: flex; flex-direction: column; }

/* Proto A screen content */
.pa-listing-img { height: 40%; background: #e8e8e8; border-radius: 8px; margin-bottom: 8px; }
.pa-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 4px; }
.pa-price { color: var(--orange); font-weight: 700; font-size: 0.8rem; margin-bottom: 4px; }
.pa-detail { color: #999; font-size: 0.65rem; margin-bottom: 12px; }
.pa-btn {
  background: var(--orange); color: #fff; text-align: center; padding: 10px;
  border-radius: 8px; font-weight: 700; cursor: pointer; margin-top: auto;
}
.pa-nav { background: #f5f5f5; padding: 8px; font-weight: 600; font-size: 0.7rem; margin: -12px -12px 8px; border-radius: 0; }
.pa-floorplan {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; flex: 1;
}
.pa-room {
  border: 1.5px dashed #ccc; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; position: relative; cursor: pointer;
  transition: all 0.2s;
}
.pa-room:hover { border-color: var(--orange); background: rgba(247,161,0,0.05); }
.pa-room.big { grid-column: span 2; min-height: 80px; }
.pa-room .pin { position: absolute; top: 4px; right: 4px; font-size: 0.9rem; }
.pa-input-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid #eee;
  padding: 12px; z-index: 5;
}
.pa-input-overlay label { font-size: 0.65rem; font-weight: 600; display: block; margin-bottom: 4px; }
.pa-input-overlay input {
  width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 6px;
  font-size: 0.7rem; font-family: var(--sans);
}
.pa-input-overlay .pa-btn { margin-top: 8px; font-size: 0.7rem; padding: 8px; }
.pa-kbd { height: 80px; background: #e5e5e5; margin: 8px -12px -12px; }
.pa-toast {
  position: absolute; bottom: -50px; left: 12px; right: 12px;
  background: #333; color: #fff; text-align: center; padding: 10px;
  border-radius: 8px; font-weight: 600; font-size: 0.7rem;
  transition: bottom 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
  z-index: 10;
}
.pa-toast.visible { bottom: 16px; }

/* Proto B: AR sandbox */
.proto-phone-ar { /* uses device-frame from below */ }
.proto-ar-instruction {
  font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 16px;
}

/* Device Frame (shared between B proto and sandbox) */
.device-frame {
  width: 260px; height: 520px;
  background: #000; border-radius: 32px; border: 8px solid #111;
  position: relative; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  cursor: crosshair;
}
.cam-env {
  position: absolute; top: -20%; left: -20%; width: 140%; height: 140%;
  background: url('https://images.unsplash.com/photo-1513694203232-719a280e022f?q=80&w=2669&auto=format&fit=crop') center/cover no-repeat;
  transition: transform 0.1s ease-out;
}
.cam-grid {
  position: absolute; top:0;left:0;width:100%;height:100%;
  background-image: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}
.cam-crosshair {
  position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
}
.cam-crosshair span {
  position: absolute;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.cam-crosshair span:nth-child(1) { top: -10px; left: 19px; width: 2px; height: 10px; }
.cam-crosshair span:nth-child(2) { bottom: -10px; left: 19px; width: 2px; height: 10px; }
.cam-crosshair span:nth-child(3) { left: -10px; top: 19px; width: 10px; height: 2px; }
.cam-crosshair span:nth-child(4) { right: -10px; top: 19px; width: 10px; height: 2px; }

.device-frame.focus-state::after {
  content: ''; position: absolute; top:0;left:0;right:0;bottom:0;
  background: rgba(0,0,0,0.55); pointer-events: none;
  animation: dimIn 0.3s ease forwards; z-index: 1;
}
@keyframes dimIn { 0% { opacity: 0; } 100% { opacity: 1; } }
.device-frame.focus-state .cam-crosshair span { background: var(--green); }

.cam-menu {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 160px; height: 160px;
  pointer-events: none; opacity: 0; z-index: 10;
}
.cam-menu.active { pointer-events: auto; opacity: 1; }
.rm-item {
  position: absolute; width: 48px; height: 48px;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer; transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
}
.rm-icon { font-size: 1.1rem; }
.rm-label {
  position: absolute; bottom: -22px;
  font-size: 0.65rem; color: #fff; font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  opacity: 0; transition: opacity 0.2s 0.1s; white-space: nowrap;
}
.cam-menu.active .rm-item { transform: scale(1); }
.cam-menu.active .rm-label { opacity: 1; }
.rm-item:hover { transform: scale(1.15) !important; background: var(--orange); }
.rm-item.is-1 { top: 0; left: 55px; transition-delay: 0.05s; }
.rm-item.is-2 { top: 85px; left: 5px; transition-delay: 0.1s; }
.rm-item.is-3 { top: 85px; right: 5px; transition-delay: 0.15s; }
.rm-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 10px; height: 10px; background: var(--green); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0,200,83,0.3);
}
.sb-toast {
  position: absolute; bottom: -60px; left: 16px; right: 16px;
  background: #333; color: #fff; padding: 10px 14px;
  border-radius: 8px; font-size: 0.75rem; font-weight: 600; text-align: center;
  transition: bottom 0.3s cubic-bezier(0.175,0.885,0.32,1.275); z-index: 20;
}
.sb-toast.visible { bottom: 16px; }

/* Proto C: Voice */
.proto-phone-voice { /* wrapper */ }
.device-frame-voice {
  background: #fafafa;
  cursor: pointer;
}
.voice-screen {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.hidden { display: none !important; }

.voice-idle {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.voice-fab {
  width: 72px; height: 72px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 20px rgba(213,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s;
}
.voice-fab:hover { transform: scale(1.1); }
.voice-fab-label { font-size: 0.7rem; color: var(--muted); }

.voice-active {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  position: relative;
}
.voice-mic-big {
  font-size: 3rem;
  cursor: pointer;
  z-index: 2;
}
.voice-pulse-ring {
  position: absolute;
  width: 100px; height: 100px;
  border: 2px solid var(--red);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  animation: pulse 1.5s ease infinite;
}
.voice-status { font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.voice-hint { font-size: 0.65rem; color: var(--muted); }

.voice-recording {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 20px;
}
.voice-wave-anim {
  display: flex; gap: 4px; align-items: center;
}
.voice-wave-anim span {
  width: 4px; background: var(--red); border-radius: 2px;
  animation: wave 0.6s ease infinite alternate;
}
.voice-wave-anim span:nth-child(1) { height: 12px; animation-delay: 0s; }
.voice-wave-anim span:nth-child(2) { height: 24px; animation-delay: 0.1s; }
.voice-wave-anim span:nth-child(3) { height: 32px; animation-delay: 0.15s; }
.voice-wave-anim span:nth-child(4) { height: 20px; animation-delay: 0.2s; }
.voice-wave-anim span:nth-child(5) { height: 28px; animation-delay: 0.25s; }
.voice-rec-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.voice-timeline {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  padding: 16px;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.voice-tl-title {
  font-weight: 700; font-size: 0.85rem; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid #eee;
}
.voice-tl-card {
  display: flex; gap: 8px; padding: 10px 0;
  border-bottom: 1px solid #f0f0f0; align-items: flex-start;
}
.voice-tl-time {
  font-family: var(--mono); font-size: 0.65rem; color: var(--accent);
  flex-shrink: 0; padding-top: 2px;
}
.voice-tl-content { flex: 1; }
.voice-tl-waveform {
  height: 16px; border-radius: 4px; margin-bottom: 4px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(213,0,0,0.2) 100%);
  opacity: 0.3;
}
.voice-tl-text { font-size: 0.7rem; color: #666; font-style: italic; }

/* =========================================
   ALT C: FOTO & TAG
   ========================================= */
.sb-fab-cam {
  background: var(--accent);
  width: 40px; height: 40px;
  font-size: 1rem;
  position: absolute;
  bottom: 12px; right: 8px;
}
.sb-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 0.45rem;
  font-weight: 700;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.sb-cam-shutter {
  position: absolute;
  bottom: 12px;
  left: 50%; transform: translateX(-50%);
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 2;
}
.sb-tag-bar {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sb-tag-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.sb-chip {
  font-size: 0.5rem;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.sb-chip.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.sb-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding: 6px;
  flex: 1;
}
.sb-photo-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-photo-room-label {
  font-size: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.sb-photo-thumb {
  border-radius: 4px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* =========================================
   ALT E: SHAKE & MARK
   ========================================= */
.sb-shake-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
}
.sb-shake-icon { font-size: 2.5rem; }
.sb-shake-label { font-size: 0.7rem; font-weight: 700; color: var(--ink); }
.sb-shake-sub { font-size: 0.5rem; color: var(--muted); }

.sb-audio-buffer-bar {
  width: 80%;
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.sb-audio-buffer-fill {
  width: 60%;
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  animation: bufferSlide 3s linear infinite;
}
@keyframes bufferSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(220%); }
}
.sb-shake-anim {
  font-size: 2rem;
  animation: shakeAnim 0.3s ease infinite;
}
@keyframes shakeAnim {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px) rotate(-5deg); }
  75% { transform: translateX(6px) rotate(5deg); }
}


/* =========================================
   FIELD NOTES
   ========================================= */
.fn-form {
  background: #F9FAFB;
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 8px;
  margin-top: 16px;
}
.fn-form label {
  display: block; font-weight: 600; font-size: 0.85rem;
  margin-bottom: 8px; color: var(--ink); margin-top: 20px;
}
.fn-form label:first-child { margin-top: 0; }
.fn-input {
  width: 100%;
  border: 1px dashed #bbb;
  border-radius: 6px;
  padding: 14px;
  background: #fff;
  color: #aaa;
  font-family: var(--serif);
  font-size: 0.9rem;
  min-height: 60px;
}
.fn-input.big { min-height: 100px; }

/* =========================================
   COMPARISON TABLE
   ========================================= */
.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 900px;
}
.comparison-table thead {
  background: var(--ink);
  color: #fff;
}
.comparison-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.comparison-table th:first-child {
  border-radius: 7px 0 0 0;
}
.comparison-table th:last-child {
  border-radius: 0 7px 0 0;
}
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
  line-height: 1.5;
}
.comparison-table tbody tr:hover {
  background: #f9fafb;
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
  white-space: nowrap;
}
.tag-good {
  background: rgba(0,200,83,0.12);
  color: #00873c;
}
.tag-warn {
  background: rgba(247,161,0,0.12);
  color: #b67a00;
}
.tag-neutral {
  background: rgba(10,102,194,0.08);
  color: var(--accent);
}

/* =========================================
   PEER REVIEW PROTOCOL
   ========================================= */

/* Editable table cells */
.pr-editable {
  min-width: 120px;
  outline: none;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.pr-editable:empty::before {
  content: attr(data-placeholder);
  color: #bbb;
  font-style: italic;
  font-size: 0.78rem;
}
.pr-editable:focus {
  background: var(--accent-light);
}

/* Question preview list */
.pr-question-preview {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.pr-q-item {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.pr-q-item:last-child { border-bottom: none; }
.pr-q-item:hover { background: #fafafa; }
.pr-q-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.pr-q-text {
  font-size: 0.88rem;
  color: var(--ink-body);
  line-height: 1.5;
}
.pr-q-text strong { color: var(--ink); }
.pr-q-text em { color: var(--accent); font-style: normal; }

/* Alternative assessment blocks */
.pr-alt-block {
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.pr-alt-block:hover {
  border-color: rgba(27,77,122,0.3);
}
.pr-alt-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #F9FAFB;
  border-bottom: 1px solid var(--border);
}
.pr-alt-letter {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.pr-alt-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

/* Response items */
.pr-responses {
  padding: 0;
}
.pr-response-item {
  padding: 12px 18px;
  border-bottom: 1px solid #f5f5f5;
}
.pr-response-item:last-child { border-bottom: none; }
.pr-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.pr-answer {
  min-height: 56px;
  padding: 12px 14px;
  background: #FAFAF8;
  border: 1px dashed #ccc;
  border-radius: 6px;
  font-family: var(--serif);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-body);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pr-answer:empty::before {
  content: attr(data-placeholder);
  color: #bbb;
  font-style: italic;
}
.pr-answer:focus {
  border-color: var(--accent);
  border-style: solid;
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* Ranking */
.pr-ranking-block {
  margin-top: 20px;
  padding: 20px 18px;
  background: #F9FAFB;
  border-top: 2px solid var(--ink);
  border-radius: 0 0 10px 10px;
}
.pr-ranking-block h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.pr-ranking-instruction {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.pr-ranking-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pr-rank-slot {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.pr-rank-num {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.pr-rank-slot:nth-child(1) .pr-rank-num { background: #C6930A; }
.pr-rank-slot:nth-child(2) .pr-rank-num { background: #8A8A8A; }
.pr-rank-slot:nth-child(3) .pr-rank-num { background: #A0522D; }
.pr-rank-answer {
  flex: 1;
  min-height: 40px;
  padding: 10px 14px;
  background: #fff;
  border: 1px dashed #ccc;
  border-radius: 6px;
  font-family: var(--serif);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-body);
  outline: none;
}
.pr-rank-answer:empty::before {
  content: attr(data-placeholder);
  color: #bbb;
  font-style: italic;
}
.pr-rank-answer:focus {
  border-color: var(--accent);
  border-style: solid;
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* Synthesis placeholder */
.pr-synthesis-placeholder {
  padding: 24px;
  background: #FAFAF8;
  border: 1px dashed var(--border);
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
}
.pr-synthesis-placeholder .pr-synthesis-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.pr-synthesis-placeholder p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.pr-synthesis-placeholder ul {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}
.pr-synthesis-placeholder li {
  font-size: 0.82rem;
  color: var(--ink-body);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}
.pr-synthesis-placeholder li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Decision box */
.pr-decision-box {
  border: 2px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 16px;
}
.pr-decision-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.pr-decision-icon { font-size: 1.2rem; }
.pr-decision-content {
  min-height: 100px;
  padding: 20px;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-body);
  outline: none;
}
.pr-decision-content:empty::before {
  content: attr(data-placeholder);
  color: #bbb;
  font-style: italic;
  font-size: 0.88rem;
}
.pr-decision-content:focus {
  background: var(--accent-light);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .chapter { padding: 24px; }
  .storyboard { padding: 16px 24px; margin: 0 -24px 24px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-grid.five-col { grid-template-columns: 1fr; }
  .showcase-header { padding: 48px 24px 40px; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .overview-grid.five-col { grid-template-columns: repeat(3,1fr); }
}

/* =========================================
   SCROLL-REVEAL ANIMATIONS (scroll-experience + design-spells)
   Driven by IntersectionObserver in app.js
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for grid children */
.ov-card.reveal { transition-delay: calc(var(--i, 0) * 80ms); }
.theory-card.reveal { transition-delay: calc(var(--i, 0) * 60ms); }
.ww-loop.reveal { transition-delay: calc(var(--i, 0) * 100ms); }

/* Wisselwerking loop hover */
.ww-loop-content {
  transition: border-color 0.2s ease;
}
.ww-loop:hover .ww-loop-content {
  border-color: var(--accent);
}

/* Subtle chapter hover (design-spells micro-interaction) */
.chapter:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* =========================================
   REFERENCES LIST (Convergentie page)
   ========================================= */
.references-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.references-list li {
  font-size: 0.82rem;
  line-height: 1.65;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  text-indent: -1.4em;
  padding-left: 1.4em;
}
.references-list li:last-child {
  border-bottom: none;
}
.references-list li em {
  color: var(--muted);
}
.references-list li a {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.72rem;
}
.references-list li a:hover {
  text-decoration: underline;
}
.ref-legend {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 8px 12px;
  background: rgba(0,80,120,0.04);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}
.ref-local {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
  opacity: 0.7;
}
.ref-local code {
  font-family: var(--mono);
  font-size: 0.65rem;
  background: rgba(0,0,0,0.04);
  padding: 1px 4px;
  border-radius: 3px;
}

/* =========================================
   PRINT STYLES — PDF EXPORT
   ========================================= */
@media print {
  /* Reset page-breaking layout */
  body { background: #fff; }
  .page-nav { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .showcase-header { padding: 40px 0 30px; margin-bottom: 24px; }

  /* Chapters: remove card styling so content flows across pages */
  .chapter, .alt-chapter {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 24px 0;
    margin-bottom: 16px;
    background: transparent;
    break-inside: auto;
  }

  /* Allow content to break across pages */
  .text-section { break-inside: auto; }
  .theory-card { break-inside: avoid; }
  .flow-steps li { break-inside: avoid; }
  .wisselwerking { break-inside: auto; }
  .ww-loop { break-inside: avoid; }
  .comparison-table-wrap { break-inside: avoid; }
  .proto-wrapper { break-inside: avoid; }

  /* Hide interactive elements not useful in print */
  .proto-controls { display: none; }
  .proto-ar-instruction { display: none; }

  /* Prevent overflow issues */
  .wrap { max-width: 100%; }
  * { overflow: visible !important; }

  /* Fix sticky elements */
  .page-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  /* Reduce spacing for print */
  h2 { page-break-after: avoid; }
  h3 { page-break-after: avoid; }

  /* Table fixes */
  .comparison-table { font-size: 0.75rem; }
  .comparison-table th, .comparison-table td { padding: 6px 8px; }

  /* Overview grid: stack for print */
  .overview-grid, .overview-grid.three-col, .overview-grid.five-col {
    display: block !important;
  }
  .ov-card {
    display: flex !important;
    margin-bottom: 12px;
    break-inside: avoid;
  }

  /* Force ALL animations off AND make reveal elements visible */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Hide prototypes entirely */
  .proto-wrapper { display: none !important; }
  .pr-submit-block { display: none !important; }
}

/* =========================================
   PEER REVIEW FORM COMPONENTS
   ========================================= */

/* Alt block container */
.pr-alt-block {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.pr-alt-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.pr-alt-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-family: var(--mono);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pr-alt-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

/* Response items */
.pr-responses {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pr-response-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pr-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.pr-answer {
  min-height: 56px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-body);
  font-family: var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #FAFAF9;
  outline: none;
}

.pr-answer:hover {
  border-color: #ccc;
}

.pr-answer:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 77, 122, 0.1);
  background: #fff;
}

.pr-answer:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  font-style: italic;
  font-size: 0.82rem;
  pointer-events: none;
}

/* Ranking block */
.pr-ranking-block {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

.pr-ranking-block h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.pr-ranking-instruction {
  font-size: 0.85rem;
  color: var(--ink-body);
  margin-bottom: 16px;
  line-height: 1.6;
}

.pr-ranking-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pr-rank-slot {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pr-rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 700;
  font-family: var(--mono);
  font-size: 0.85rem;
  flex-shrink: 0;
  color: #fff;
}

.pr-rank-slot:nth-child(1) .pr-rank-num { background: #C9A000; }
.pr-rank-slot:nth-child(2) .pr-rank-num { background: #8A8A8A; }
.pr-rank-slot:nth-child(3) .pr-rank-num { background: #A0522D; }

.pr-rank-answer {
  flex: 1;
  min-height: 36px;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-body);
  font-family: var(--sans);
  background: #FAFAF9;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pr-rank-answer:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 77, 122, 0.1);
  background: #fff;
}

.pr-rank-answer:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  font-style: italic;
  font-size: 0.82rem;
  pointer-events: none;
}

/* Submit button */
.pr-submit-block {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
  text-align: center;
}

.pr-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), #264e70);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.3s;
  box-shadow: 0 4px 14px rgba(27, 77, 122, 0.25);
}

.pr-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 77, 122, 0.35);
}

.pr-submit-btn:active {
  transform: translateY(0);
}

.pr-submit-btn.sent {
  background: linear-gradient(135deg, var(--green), #00834a);
  pointer-events: none;
}

.pr-submit-icon {
  font-size: 1.15rem;
}

.pr-submit-hint {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

/* Warning box (WC-Eend disclaimer) */
.pr-warning-box {
  background: #FFFBE6;
  border: 1px solid #F5E6A3;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0 24px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-body);
}

/* Theory card inside peer review */
.pr-theory-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
}

.pr-theory-card h4 {
  font-size: 0.9rem;
  color: var(--accent);
  font-family: var(--mono);
  margin-bottom: 4px;
}

/* Synthesis & Decision sections */
.pr-decision-box {
  background: var(--paper);
  border: 2px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
}

.pr-decision-header {
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.pr-decision-icon {
  font-size: 1.2rem;
}

.pr-decision-content {
  padding: 20px;
  min-height: 100px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-body);
  outline: none;
}

.pr-decision-content:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  font-style: italic;
}

.pr-synthesis-placeholder {
  background: var(--accent-light);
  border: 1px dashed var(--accent);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}

.pr-synthesis-placeholder .pr-synthesis-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.pr-synthesis-placeholder ul {
  text-align: left;
  margin: 12px auto;
  max-width: 480px;
  padding-left: 20px;
}

.pr-synthesis-placeholder li {
  font-size: 0.85rem;
  margin-bottom: 6px;
}

/* Mail toast notification */
.pr-mail-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1B4D7A;
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--sans);
}

.pr-mail-toast.visible {
  transform: translateX(-50%) translateY(0);
}
. w w - p h o n e - m i n i . s k e t c h - b g   {   b a c k g r o u n d - s i z e :   c o v e r ;   b a c k g r o u n d - p o s i t i o n :   c e n t e r   t o p ;   b a c k g r o u n d - r e p e a t :   n o - r e p e a t ;   b o r d e r :   n o n e ;   b o x - s h a d o w :   0   0   0   1 p x   i n s e t   r g b a ( 0 , 0 , 0 , 0 . 1 ) ;   }  
 