/* ============================================
   FABIAN NEELEMAN — Base CSS
   ============================================ */

:root {
  --bg:          #F7F4F0;
  --bg-surface:  #EFEBE5;
  --text:        #1A1917;
  --text-muted:  #5C5650;
  --text-faint:  #8A8278;
  --accent:      #4A6580;
  --accent-light:#6B8FAD;
  --border:      rgba(26,25,23,0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #1A1917;
    --bg-surface:  #242220;
    --text:        #F7F4F0;
    --text-muted:  #C5BFB8;
    --text-faint:  #8A8278;
    --accent:      #6B8FAD;
    --accent-light:#8AAFC9;
    --border:      rgba(247,244,240,0.10);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ── Layout ─────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* ── Nav ─────────────────────────────────── */
nav#nav {
  position: fixed;
  top: var(--admin-bar--height, 0); left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s ease, border-color 0.3s ease;
}
nav#nav.scrolled {
  padding: 14px 0;
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-lang {
  display: flex;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.nav-lang a {
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-lang a:hover { color: var(--text); }
.nav-lang-active { color: var(--accent); font-weight: 500; }

/* ── Main content ───────────────────────── */
.main-content {
  padding-top: 80px;
  min-height: 80vh;
  padding-bottom: 100px;
}
.main-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 32px;
}

/* ── Gallery grid ───────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4px;
  margin-top: 40px;
}
.gallery-item {
  display: block;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  aspect-ratio: 3/4;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1), filter 0.4s ease;
  filter: saturate(0.9);
}
.gallery-item:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}
.gallery-item-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(to top, rgba(26,25,23,0.75) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gallery-item:hover .gallery-item-info { opacity: 1; }
.gallery-item-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: #F7F4F0;
  font-weight: 500;
}
.gallery-item-cat {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,244,240,0.7);
}
.gallery-item-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
}
.empty-state {
  color: var(--text-faint);
  margin-top: 40px;
  font-size: 15px;
}

/* ── Photo detail ───────────────────────── */
.photo-full {
  margin-bottom: 48px;
}
.photo-full img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}
.photo-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}
.photo-detail-main h1 { margin-bottom: 12px; }
.photo-captured {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 8px;
}
.photo-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--bg-surface);
  border-radius: 2px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meta-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.meta-value {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}
.back-link {
  display: inline-block;
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--accent); }

/* ── Footer ─────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--accent); }
.footer-socials {
  display: flex;
  gap: 20px;
}
.footer-socials a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.footer-socials a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .photo-detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ── Cursor (desktop only) ──────────────── */
#cursor, #cursor-ring { display: none; }

/* ── Footer herindeling ─────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  background: var(--bg);
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--accent); }
.footer-socials {
  display: flex;
  gap: 20px;
}
.footer-socials a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.footer-socials a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
}
.footer-privacy {
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.footer-privacy:hover { color: var(--accent); }

/* ── Gallery filter ─────────────────────── */
.gallery-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 40px;
}
@media (max-width: 900px) {
  .gallery-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 24px 4px;
    margin-left: -24px;
    margin-right: -24px;
    scrollbar-width: none;
  }
  .gallery-filter::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }
}
.filter-btn {
  padding: 7px 16px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ── Masonry grid ───────────────────────── */
.masonry-grid {
  columns: 3;
  column-gap: 4px;
}
@media (max-width: 900px) {
  .masonry-grid {
    columns: 2;
    column-gap: 12px;
  }
  .masonry-item {
    margin-bottom: 12px;
  }
}
@media (max-width: 500px) {
  .masonry-grid {
    columns: 2;
    column-gap: 12px;
  }
  .masonry-item {
    margin-bottom: 12px;
  }
}

.masonry-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-surface);
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1), filter 0.4s ease;
  filter: saturate(0.9);
}
.masonry-item:hover img {
  transform: scale(1.03);
  filter: saturate(1.05);
}
.masonry-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(to top, rgba(26,25,23,0.75) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: #F7F4F0;
  font-weight: 500;
  line-height: 1.2;
}
.masonry-cat {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,244,240,0.65);
}
.masonry-placeholder {
  width: 100%;
  padding-top: 75%;
  background: var(--bg-surface);
}

/* ── Active nav state ───────────────────── */
.nav-links a.active {
  color: var(--text);
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

/* ── Error page ─────────────────────────── */
.error-page {
  text-align: center;
  padding: 80px 0 120px;
}
.error-code {
  font-family: 'Playfair Display', serif;
  font-size: clamp(100px, 20vw, 180px);
  font-weight: 500;
  color: var(--border);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
}
.error-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.error-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 300;
}
.btn-home {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.btn-home:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Prose content (privacy, about) ─────── */
.prose {
  max-width: 720px;
  margin-top: 40px;
}
.prose h1,
.prose h2,
.prose h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 40px;
  margin-bottom: 14px;
  line-height: 1.2;
}
.prose h2 { font-size: clamp(22px, 3vw, 30px); }
.prose h3 { font-size: clamp(18px, 2.5vw, 24px); }
.prose p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 300;
}
.prose strong { color: var(--text); font-weight: 500; }
.prose em { font-style: italic; }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.contact-prose a:hover {
  color: var(--text);
}
.prose ul,
.prose ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
.prose li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 6px;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ══════════════════════════════════════════
   MOBILE NAVIGATION
   ══════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 400;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.nav-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.nav-overlay-link {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 8vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
  line-height: 1.1;
}
.nav-overlay.open .nav-overlay-link {
  opacity: 1;
  transform: translateY(0);
}
.nav-overlay.open .nav-overlay-link:nth-child(1) { transition-delay: 0.05s; }
.nav-overlay.open .nav-overlay-link:nth-child(2) { transition-delay: 0.10s; }
.nav-overlay.open .nav-overlay-link:nth-child(3) { transition-delay: 0.15s; }
.nav-overlay.open .nav-overlay-link:nth-child(4) { transition-delay: 0.20s; }
.nav-overlay-link:hover { color: var(--accent); }
.nav-overlay-link.active { color: var(--accent); }

.nav-overlay-footer {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 32px;
}
.nav-overlay-footer a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-overlay-footer a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-lang { display: none; }
  .nav-hamburger { display: flex; }
}
.nav-overlay-close {
  position: fixed;
  top: 14px;
  right: 24px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
  padding: 8px;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.nav-overlay-close:hover { color: var(--text); }

.nav-overlay-lang {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.nav-overlay-lang a {
  color: var(--text-faint);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.nav-overlay-lang a:hover { color: var(--text); }
.nav-overlay-lang-active {
  color: var(--accent);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   HOMEPAGE
   ══════════════════════════════════════════ */

/* ── Hero ───────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-bg-slide.active { opacity: 1; }
.hero-bg-slide:first-child { opacity: 1; }
.hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7);
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,25,23,0.82) 0%,
    rgba(26,25,23,0.55) 50%,
    rgba(26,25,23,0.2) 100%
  );
}
@media (prefers-color-scheme: light) {
  .hero-bg-overlay {
    background: linear-gradient(
      to right,
      rgba(247,244,240,0.88) 0%,
      rgba(247,244,240,0.65) 50%,
      rgba(247,244,240,0.2) 100%
    );
  }
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}
.hero-text { max-width: 580px; }
.hero-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-tagline {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 44px;
  max-width: 420px;
}
.hero-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-btn-primary {
  display: inline-block;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.25s ease, transform 0.2s ease;
}
.hero-btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}
.hero-btn-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, gap 0.2s ease;
}
.hero-btn-link:hover { color: var(--text); gap: 14px; }
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  margin: 0 auto;
  animation: scrollHint 2s ease infinite;
}
@keyframes scrollHint {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Section shared ─────────────────────── */
.section-projects,
.section-photos,
.section-skills {
  padding: 120px 0;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 24px;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}
.section-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
  align-self: flex-end;
}
.section-link:hover { color: var(--accent); border-color: var(--accent); }

/* ── Projects deck ──────────────────────── */
.projects-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.project-card-deck {
  display: block;
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  transform: rotate(calc(var(--i) * -0.4deg)) translateY(calc(var(--i) * -6px));
  transition: transform 0.5s cubic-bezier(0.23,1,0.32,1), box-shadow 0.4s ease;
  box-shadow: 0 2px 20px rgba(26,25,23,0.06);
}
.project-card-deck:hover {
  transform: rotate(0deg) translateY(-8px);
  box-shadow: 0 16px 48px rgba(26,25,23,0.14);
  z-index: 2;
}
.project-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1), filter 0.4s ease;
  filter: saturate(0.85);
}
.project-card-deck:hover .project-card-img img {
  transform: scale(1.04);
  filter: saturate(1);
}
.project-card-info {
  padding: 22px 24px 26px;
}
.project-card-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.project-card-meta span + span::before {
  content: '·';
  margin-right: 12px;
}
.project-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.project-card-skills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.skill-pill {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--border);
  color: var(--text-faint);
  border-radius: 2px;
}

/* ── Photo strip ────────────────────────── */
.section-photos { overflow: hidden; }
.photo-strip-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 48px;
  cursor: grab;
}
.photo-strip-wrap:active { cursor: grabbing; }
.photo-strip-wrap::-webkit-scrollbar { display: none; }
.photo-strip {
  display: flex;
  gap: 3px;
  width: max-content;
}
.photo-strip-item {
  display: block;
  height: 420px;
  flex-shrink: 0;
  overflow: hidden;
}
.photo-strip-item img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1), filter 0.4s ease;
  filter: saturate(0.85);
}
.photo-strip-item:hover img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.photo-grid-mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 3px;
  display: none;
}

.photo-grid-mobile .photo-grid-item:nth-child(1) { aspect-ratio: 3/4; }
.photo-grid-mobile .photo-grid-item:nth-child(2) { aspect-ratio: 3/4; }
.photo-grid-mobile .photo-grid-item:nth-child(3) { aspect-ratio: 16/9; grid-column: span 2; }
.photo-grid-mobile .photo-grid-item:nth-child(4) { aspect-ratio: 3/4; }
.photo-grid-mobile .photo-grid-item:nth-child(5) { aspect-ratio: 3/4; }
.photo-grid-mobile .photo-grid-item:nth-child(6) { aspect-ratio: 16/9; grid-column: span 2; }

.photo-grid-mobile .photo-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .photo-grid-mobile { display: grid; }
  .photo-strip-wrap { display: none; }
}

/* ── Skills ─────────────────────────────── */
.section-skills { background: var(--bg-surface); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.skill-block {
  padding: 40px 36px 44px;
  background: var(--bg);
  transition: background 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease calc(var(--i) * 0.15s),
              transform 0.6s ease calc(var(--i) * 0.15s),
              background 0.3s ease;
}
.skill-block.visible {
  opacity: 1;
  transform: translateY(0);
}
.skill-block:hover { background: var(--bg); }
.skill-title {
  position: relative;
  display: inline-block;
}
.skill-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.skill-block:hover .skill-title::after {
  width: 100%;
}
.skill-number {
  display: none;
}
.skill-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
}
.skill-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── Homepage responsive ────────────────── */
@media (max-width: 900px) {
  .projects-deck { grid-template-columns: 1fr; gap: 16px; }
  .project-card-deck { transform: none !important; }
  .skills-grid { grid-template-columns: 1fr; }
  .photo-strip-wrap { padding: 0 24px; }
  .photo-strip-item { height: 280px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}
/* ------------------------------------------
   PROJECTS OVERVIEW
   ------------------------------------------ */
.page-header {
  padding: 20px 0 24px;
  margin-bottom: 32px;
}
.page-header .section-label {
  margin-bottom: 12px;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 100px;
}
.project-grid-item {
  display: grid;
  grid-template-columns: 320px 1fr 40px;
  gap: 40px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  padding: 28px 0;
  border-top: 1px solid var(--border);
  transition: background 0.2s ease;
  position: relative;
}
.project-grid-item:last-child {
  border-bottom: 1px solid var(--border);
}
.project-grid-item:hover .project-grid-img img {
  transform: scale(1.04);
  filter: saturate(1);
}
.project-grid-item:hover .project-grid-arrow {
  color: var(--accent);
  transform: translateX(4px);
}
.project-grid-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-surface);
  border-radius: 2px;
}
.project-grid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.23,1,0.32,1), filter 0.4s ease;
  filter: saturate(0.85);
}
.project-grid-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
}
.project-grid-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-grid-meta {
  display: flex;
  gap: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  flex-wrap: wrap;
}
.project-grid-meta span + span::before {
  content: '�';
  margin: 0 10px;
  color: var(--text-faint);
}
.project-grid-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.project-grid-skills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.project-grid-arrow {
  font-size: 18px;
  color: var(--text-faint);
  transition: color 0.2s ease, transform 0.2s ease;
  text-align: right;
}

/* ------------------------------------------
   PROJECT DETAIL
   ------------------------------------------ */
.project-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}
.project-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.project-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75);
}
.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,25,23,0.90) 0%,
    rgba(26,25,23,0.55) 50%,
    rgba(26,25,23,0.15) 100%
  );
}
@media (prefers-color-scheme: light) {
  .project-hero-overlay {
    background: linear-gradient(
      to top,
      rgba(247,244,240,0.95) 0%,
      rgba(247,244,240,0.7) 45%,
      rgba(247,244,240,0.1) 100%
    );
  }
}
.project-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  width: 100%;
  max-width: 900px;
}
.project-hero-meta {
  display: none;
}
.project-hero-meta span + span::before {
  content: '�';
  margin: 0 10px;
  color: var(--text-faint);
}
.project-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 20px;
}
.project-hero-intro {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 28px;
  max-width: 600px;
}
.project-hero-skills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.skill-pill--light {
  border-color: rgba(247,244,240,0.2);
  color: rgba(247,244,240,0.65);
}
@media (prefers-color-scheme: light) {
  .skill-pill--light {
    border-color: var(--border);
    color: var(--text-faint);
  }
}

/* -- Project blocks ----------------------- */
.project-sidenote {
  margin: 48px 0 80px;
  padding: 24px 28px;
  border-left: 2px solid var(--accent);
  background: var(--bg-surface);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
}

/* -- Responsive --------------------------- */
@media (max-width: 900px) {
  .project-grid-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .project-grid-arrow { display: none; }
  .block-photo-text-inner { grid-template-columns: 1fr; gap: 32px; }
  .block-photo-text.reverse .block-photo-text-inner { direction: ltr; }
  .block-photo-duo-inner { grid-template-columns: 1fr; }
  .block-photo-trio-inner { grid-template-columns: 1fr 1fr; }
}

/* ── Project hero zonder meta ───────────── */
.project-hero-content {
  padding-bottom: 80px;
}

/* ── Project footer meta ────────────────── */
.project-footer-meta {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  margin: 64px 0 48px;
}
.project-footer-meta-grid {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.project-footer-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-footer-meta-item .meta-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.project-footer-meta-item .meta-value {
  font-size: 16px;
  color: var(--text);
  font-weight: 400;
}

/* ── Project navigation ─────────────────── */
.project-nav {
  margin-bottom: 40px;
}
.project-nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.project-nav-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--bg-surface);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s ease;
}
.project-nav-link:hover {
  background: var(--border);
}
.project-nav-link--right {
  text-align: right;
  align-items: flex-end;
}
.project-nav-dir {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

@media (max-width: 900px) {
  .project-hero {
    min-height: 65vh;
    padding-bottom: 40px;
  }
  .project-hero-content {
    padding-top: 88px;
    padding-bottom: 0;
  }
  .project-hero-title {
    font-size: clamp(28px, 8vw, 48px);
    margin-bottom: 14px;
  }
  .project-hero-intro {
    font-size: 15px;
    margin-bottom: 20px;
    max-width: 100%;
  }
}

/* ══════════════════════════════════════════
   PROJECT BLOCKS — nieuw
   ══════════════════════════════════════════ */
.project-blocks {
  padding: 60px 0;
}
.block-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 48px;
}
.block-wrap + .block-wrap {
  margin-top: 32px;
}

/* Heading */
.block-heading h2,
.block-heading h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 8px;
}
.block-heading h2 { font-size: clamp(24px, 3vw, 36px); }
.block-heading h3 { font-size: clamp(20px, 2.5vw, 28px); }

/* Text */
.block-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 16px;
}
.block-text p:last-child { margin-bottom: 0; }
.block-text strong { color: var(--text); font-weight: 500; }
.block-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Image */
.block-wrap.block-image {
  padding-left: 0;
  padding-right: 0;
}
.block-image {
  margin: 0;
}
.block-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.block-image figcaption {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}

/* Columns — frontend gebruikt .grid en .column met --columns span */
.block-wrap.block-columns {
  max-width: 1100px;
}
.block-columns .grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 48px;
}
.block-columns .column {
  grid-column: span var(--columns);
  min-width: 0;
  overflow: hidden;
}
.block-columns .blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Typografie binnen kolom-blokken (.blocks = column content wrapper) */
.blocks p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
}
.blocks p:last-child { margin-bottom: 0; }
.blocks strong { color: var(--text); font-weight: 500; }
.blocks em { font-style: italic; }
.blocks a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.blocks h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
.blocks h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
.blocks ul,
.blocks ol { padding-left: 24px; }
.blocks li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
}
.blocks figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.blocks figcaption {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 10px;
  font-style: italic;
  text-align: center;
}

/* Quote */
.project-quote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 0;
}
.project-quote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 12px;
}
.project-quote cite {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-style: normal;
}

/* Divider */
.block-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

@media (max-width: 900px) {
  /* Block wrapper padding */
  .block-wrap { padding: 0 24px; }
  .block-wrap + .block-wrap { margin-top: 24px; }
  .block-wrap.block-columns { max-width: 100%; }
  /* Columns → stack: display:block voorkomt implicit grid columns */
  .block-columns .grid { display: block; }
  .block-columns .column { margin-bottom: 32px; }
  .block-columns .column:last-child { margin-bottom: 0; }
  /* Blocks vertical spacing */
  .project-blocks { padding: 40px 0; }
  /* Sidenote */
  .project-sidenote { margin: 32px 0 40px; }
  /* Footer meta */
  .project-footer-meta { padding: 24px 0; margin: 40px 0 32px; }
  .project-footer-meta-grid { gap: 20px; }
  /* Prev/next nav */
  .project-nav-inner { grid-template-columns: 1fr; }
  .project-nav-link--right { text-align: left; align-items: flex-start; }
}

/* ══════════════════════════════════════════
   ABOUT PAGE
   ══════════════════════════════════════════ */
.about-text {
  max-width: 640px;
}

/* ══════════════════════════════════════════
   CONTACT PAGE
   ══════════════════════════════════════════ */
.contact-layout {
  max-width: 640px;
}
.contact-intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 56px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-link {
  display: grid;
  grid-template-columns: 120px 1fr 24px;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: gap 0.2s ease;
}
.contact-link:last-child {
  border-bottom: 1px solid var(--border);
}
.contact-link:hover {
  gap: 32px;
}
.contact-link:hover .contact-link-arrow {
  color: var(--accent);
  transform: translateX(4px);
}
.contact-link-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact-link-value {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.2s ease;
}
.contact-link:hover .contact-link-value {
  color: var(--accent);
}
.contact-link-arrow {
  font-size: 18px;
  color: var(--text-faint);
  transition: color 0.2s ease, transform 0.2s ease;
  text-align: right;
}

/* ══════════════════════════════════════════
   CONTACT SIMPLE
   ══════════════════════════════════════════ */
.contact-simple {
  max-width: 580px;
}
.contact-prose p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 16px;
}
.contact-email-link {
  display: inline-block;
  margin-top: 32px;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  letter-spacing: -0.01em;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-email-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.admin-bar {
  --admin-bar--background-color: var(--text);
  --admin-bar--color: var(--bg);
  --admin-bar--border-color: rgba(247,244,240,0.1);
}
.admin-bar a {
  color: var(--bg) !important;
}
