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

:root {
  --bg: #0a0a0a;
  --surface: #111;
  --border: #1e1e1e;
  --text: #e0e0e0;
  --muted: #9E9E9E;
  --accent: #f0f0f0;
  --nav-w: 220px;
  --font: 'JetBrains Mono', 'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.04em;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── SIDEBAR ── */
nav.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--nav-w); height: 100vh;
  border-right: 1px solid var(--border);
  padding: 40px 28px;
  display: flex; flex-direction: column;
  z-index: 100; background: var(--bg);
}
.nav-name { font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 6px; }
.nav-role { font-size: 10px; color: var(--muted); letter-spacing: 0.12em; margin-bottom: 48px; }
.nav-section-label { font-size: 9px; color: var(--muted); letter-spacing: 0.2em; margin-bottom: 10px; }
.nav-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 11px; letter-spacing: 0.06em; transition: color 0.2s; display: flex; align-items: center; gap: 8px; opacity: 0.7; }
.nav-links a:hover { color: var(--accent); opacity: 1; text-transform: uppercase; letter-spacing: 0.1em; }
.nav-links a .icon { width: 14px; height: 14px; opacity: 0.5; flex-shrink: 0; }
.nav-contact { display: flex; flex-direction: column; gap: 8px; }
.nav-contact a { font-size: 10px; color: var(--muted); text-decoration: none; letter-spacing: 0.04em; line-height: 1.5; transition: color 0.2s; }
.nav-contact a:hover { color: var(--accent); text-transform: uppercase; }
.nav-bottom { margin-top: auto; font-size: 9px; color: #2a2a2a; letter-spacing: 0.1em; }

/* ── MOBILE HEADER ── */
.mobile-header {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; height: 48px;
  background: var(--bg); border-bottom: 1px solid var(--border);
  align-items: center; padding: 0 18px; z-index: 200;
}
.m-name-wrap { display: flex; flex-direction: column; gap: 1px; }
.m-name { font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 0.08em; line-height: 1; }
.m-role { font-size: 9px; color: var(--muted); letter-spacing: 0.12em; }

/* ── MOBILE FOOTER ── */
.mobile-footer {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: clamp(52px, 13vh, 80px);
  background: rgba(10,10,10,0.97); border-top: 1px solid var(--border);
  align-items: center; justify-content: space-between;
  padding: 0 18px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 200;
}
.mf-social { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.mf-social a { color: var(--muted); display: flex; align-items: center; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.mf-social a:active { color: var(--accent); }
.mf-social .icon { width: 18px; height: 18px; }
.mf-divider { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }
.mf-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }
.mf-contact a { font-size: 9px; color: var(--muted); text-decoration: none; letter-spacing: 0.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; line-height: 1.3; }
.mf-contact a:active { color: var(--accent); }

/* ── MAIN ── */
main { margin-left: var(--nav-w); flex: 1; padding: 40px 40px 80px; min-height: 100vh; }

/* ── GRID ── */
.grid { display: flex; gap: 12px; align-items: flex-start; }
.grid-col { display: flex; flex-direction: column; gap: 12px; flex: 1; }

.grid-item {
  position: relative; overflow: hidden;
  cursor: pointer; background: var(--surface);
  container-type: inline-size;
}
.grid-item[data-ratio="16:9"] { aspect-ratio: 16/9; }
.grid-item[data-ratio="1:1"]  { aspect-ratio: 1/1; }
.grid-item[data-ratio="4:5"]  { aspect-ratio: 4/5; }

/* ── SECURITY: blokkeer slepen en rechtermuisklik op media ── */
.grid-item img, .grid-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s; }
.slide.active { opacity: 1; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; }

/* ── OVERLAY ── */
.overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.82);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; opacity: 0;
  transition: opacity 0.3s ease; z-index: 5;
}
.grid-item:hover .overlay,
.grid-item.touch-active .overlay { opacity: 1; }
.grid-item:hover img, .grid-item:hover video,
.grid-item.touch-active img, .grid-item.touch-active video { transform: scale(1.04); }

.overlay-type { font-size: 9px; color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 4px; }
.overlay-title { font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 0.05em; margin-bottom: 8px; line-height: 1.2; }
.overlay-desc { font-size: 10px; color: #aaa; line-height: 1.7; letter-spacing: 0.03em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

@container (max-width: 180px) {
  .overlay { padding: 7px; background: rgba(0,0,0,0.78); }
  .overlay-type { font-size: 7px; margin-bottom: 2px; }
  .overlay-title { font-size: 9px; margin-bottom: 0; }
  .overlay-desc { display: none; }
}
@container (min-width: 181px) and (max-width: 280px) {
  .overlay { padding: 10px; }
  .overlay-type { font-size: 8px; }
  .overlay-title { font-size: 11px; margin-bottom: 4px; }
  .overlay-desc { display: none; }
}
@container (min-width: 281px) and (max-width: 400px) {
  .overlay { padding: 12px; }
  .overlay-title { font-size: 12px; }
  .overlay-desc { display: none; }
}
@container (min-width: 401px) {
  .overlay { padding: 18px; }
  .overlay-title { font-size: 14px; }
  .overlay-desc { display: -webkit-box; }
}

/* ── STORY BARS ── */
.story-bars {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; gap: 3px; padding: 18px 10px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  z-index: 10;
}
.story-bar { flex: 1; height: 2px; border-radius: 1px; overflow: hidden; cursor: pointer; background: var(--bar-track); position: relative; }
.story-bar-fill { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--bar-fill); border-radius: 1px; }

/* ── LOADER ── */
.sentinel { height: 1px; width: 100%; display: block; clear: both; }
.loading-indicator { text-align: center; padding: 40px; font-size: 10px; color: var(--muted); letter-spacing: 0.2em; display: none; }
.loading-indicator.visible { display: block; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #222; border-radius: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) { .grid { gap: 10px; } }

@media (max-width: 480px) {
  nav.sidebar { display: none; }
  .mobile-header { display: flex; }
  .mobile-footer { display: flex; }
  main {
    margin-left: 0;
    padding: 62px 8px calc(clamp(52px, 13vh, 80px) + env(safe-area-inset-bottom, 0px) + 12px);
  }
  .grid { gap: 6px; }
  .grid-col { gap: 6px; }
  .overlay { background: rgba(0,0,0,0.75); }
  .story-bar { height: 2.5px; }
}
@media (max-width: 400px) {
  .grid { gap: 4px; }
  .grid-col { gap: 4px; }
}
video::-webkit-media-controls { display: none !important; }
video::-webkit-media-controls-enclosure { display: none !important; }
video::-webkit-media-controls-panel { display: none !important; }
video::-webkit-media-controls-play-button { display: none !important; }
video::-webkit-media-controls-start-playback-button { display: none !important; }
