/*
Theme Name: Sizework
Theme URI: https://sizework.nl
Author: Sizework
Description: Maatwerk interieur theme – Schept Ruimte
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: sizework
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Rubik:wght@300;400;500&family=Oswald:wght@400;500;600&display=swap');

:root {
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Rubik', sans-serif;
  --font-accent:  'Oswald', sans-serif;

  --bg: #ededed;
  --bg-card: #e5e5e5;
  --fg: #696564;
  --fg-muted: #7a7a7a;
  --primary: #d8342f;
  --primary-fg: #ffffff;
  --border: #cfc9c1;
  --radius: 0.5rem;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; }

a { text-decoration: none; color: inherit; color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

/* ==================== NAVBAR ==================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 2rem;
  pointer-events: none;
}

/* Admin bar compensatie (32px desktop, 46px mobiel) */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* Logo */
.nav-brand {
  display: flex; align-items: center;
  pointer-events: all;
  z-index: 101; position: relative;
}
.nav-brand-img {
  height: 2rem; width: auto;
  transition: filter 0.4s ease;
}
.nav-open .nav-brand-img {
  filter: brightness(0) invert(1);
}

/* ---- Hamburger ---- */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; z-index: 101; position: relative;
  pointer-events: all;
}
.nav-toggle-bar {
  display: block;
  height: 2px; width: 28px;
  background: var(--fg);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform  0.45s cubic-bezier(0.23, 1, 0.32, 1),
    opacity    0.3s ease,
    width      0.3s ease,
    background 0.3s ease;
}
/* Open state: bars → × */
.nav-open .nav-toggle-bar { background: #fff; }
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; width: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Fullscreen overlay ---- */
.nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: #141414;
  display: flex; align-items: center;
  padding: 7rem 2rem 3rem;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity   0.5s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav-open .nav-overlay {
  opacity: 1; pointer-events: all; transform: translateY(0);
}

.nav-overlay-inner {
  max-width: 1400px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; height: 100%;
  justify-content: center;
}

/* ---- Overlay menu items ---- */
.nav-overlay-menu {
  list-style: none; margin: 0; padding: 0;
  counter-reset: nav-counter;
}

.nav-overlay-menu > .menu-item {
  counter-increment: nav-counter;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.nav-overlay-menu > .menu-item:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-overlay-menu > .menu-item > a {
  display: flex; align-items: center; gap: 1.25rem;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800; line-height: 1;
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 0;
  opacity: 0;
  transform: translateY(55px);
  transition:
    transform 0.65s cubic-bezier(0.23, 1, 0.32, 1),
    opacity   0.65s cubic-bezier(0.23, 1, 0.32, 1),
    color     0.25s ease;
}
.nav-open .nav-overlay-menu > .menu-item > a { opacity: 1; transform: translateY(0); }

/* Stagger per item */
.nav-open .nav-overlay-menu > .menu-item:nth-child(1) > a { transition-delay: 0.05s; }
.nav-open .nav-overlay-menu > .menu-item:nth-child(2) > a { transition-delay: 0.10s; }
.nav-open .nav-overlay-menu > .menu-item:nth-child(3) > a { transition-delay: 0.15s; }
.nav-open .nav-overlay-menu > .menu-item:nth-child(4) > a { transition-delay: 0.20s; }
.nav-open .nav-overlay-menu > .menu-item:nth-child(5) > a { transition-delay: 0.25s; }
.nav-open .nav-overlay-menu > .menu-item:nth-child(6) > a { transition-delay: 0.30s; }

/* Nummer via CSS counter */
.nav-overlay-menu > .menu-item > a::before {
  content: "0" counter(nav-counter);
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0; align-self: center;
  transition: color 0.25s ease;
}

/* Hover */
.nav-overlay-menu > .menu-item > a:hover { color: var(--primary); }
.nav-overlay-menu > .menu-item > a:hover::before { color: rgba(216,52,47,0.45); }

/* Active page */
.nav-overlay-menu .current-menu-item > a { color: var(--primary); }
.nav-overlay-menu .current-menu-item > a::before { color: rgba(216,52,47,0.45); }

/* ---- Overlay footer ---- */
.nav-overlay-footer {
  margin-top: 3rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; gap: 2.5rem; flex-wrap: wrap;
}
.nav-overlay-footer p,
.nav-overlay-footer a {
  font-size: 0.8rem; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-overlay-footer a:hover { color: rgba(255,255,255,0.7); }

/* ==================== HERO ==================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center;
}
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-video.is-ready {
  opacity: 1;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-content { position: relative; z-index: 10; }

.hero-logo,
.hero-subtitle,
.hero-text,
.hero-buttons {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-logo {
  height: 4rem; margin: 0 auto 2rem;
  animation: hero-fade 0.9s 0.2s forwards;
}

.hero-subtitle {
  font-family: var(--font-accent);
  font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
  animation: hero-rise 0.8s 0.55s forwards;
}

.hero-text {
  color: rgba(255,255,255,0.8); font-size: 1.125rem;
  max-width: 42rem; margin: 0 auto 2.5rem;
  animation: hero-rise 0.8s 0.8s forwards;
}

.hero-buttons {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: hero-rise 0.8s 1.05s forwards;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 2rem; background: var(--primary); color: var(--primary-fg);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.05em; border-radius: var(--radius); border: none; cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 2rem; background: transparent; color: #fff;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.05em; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.3); cursor: pointer; transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.hero-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; }
.hero-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 9999px;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: all 0.3s;
}
.hero-dot.active { background: var(--primary); width: 1.5rem; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
  background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer;
  font-size: 2.25rem; transition: color 0.2s; padding: 0.5rem;
}
.hero-arrow:hover { color: #fff; }
.hero-arrow.left { left: 1rem; }
.hero-arrow.right { right: 1rem; }

/* ── Mouse Scroll Indicator ─────────────────── */
.mouse-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  opacity: 0;
  animation: hero-fade 0.8s 1.4s forwards;
  cursor: pointer;
}
.mouse-scroll .mouse {
  height: 21px;
  width: 15px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.75);
}
.mouse-scroll .mouse-in {
  height: 5px;
  width: 1px;
  display: block;
  margin: 5px auto;
  background: #fff;
  animation: mouse-dot 1.2s ease infinite;
}
.mouse-scroll span {
  display: block;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  border-right: 2px solid rgba(255,255,255,0.75);
  border-bottom: 2px solid rgba(255,255,255,0.75);
  margin: 0 auto 3px;
  animation: mouse-arrows 1s infinite;
}
.mouse-scroll > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mouse-scroll .down-arrow-1 { margin-top: 6px; animation-delay: 0.1s; }
.mouse-scroll .down-arrow-2 { animation-delay: 0.2s; }
.mouse-scroll .down-arrow-3 { animation-delay: 0.3s; }
@keyframes mouse-dot {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(6px); }
}
@keyframes mouse-arrows {
  0%   { opacity: 0; }
  50%  { opacity: 0.5; }
  100% { opacity: 1; }
}

/* ==================== PROJECTS ==================== */
.projects { padding: 6rem 0; background: var(--bg-card); }
.section-label { font-family: var(--font-accent); font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem; }
.section-title { font-size: 3rem; font-weight: 700; color: var(--fg); margin-bottom: 0.75rem; line-height: 1.1; }
.section-subtitle { color: var(--fg-muted); font-size: 1.125rem; }
.section-header { margin-bottom: 4rem; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.project-card { cursor: pointer; }
.project-card-link { display: block; color: inherit; text-decoration: none; }
.project-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-top: 0.5rem; }
.project-meta p { font-size: 0.75rem; color: rgba(105,101,100,0.7); }
.project-meta .meta-label { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); margin-bottom: 0.1rem; }
.project-image-wrap {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 1; margin-bottom: 1rem;
}
.project-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-card:hover .project-image-wrap img { transform: scale(1.05); }
.project-badge {
  position: absolute; top: 1rem; left: 1rem;
  padding: 0.25rem 0.75rem; background: var(--primary); color: var(--primary-fg);
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.05em; border-radius: var(--radius);
}
.project-card h3 { font-size: 1.25rem; font-weight: 600; color: var(--fg); margin-bottom: 0.25rem; }
.project-card .desc { font-size: 0.875rem; color: var(--fg-muted); margin-bottom: 0.5rem; }
.project-card .client { font-size: 0.75rem; color: rgba(105,101,100,0.7); }

/* ==================== ABOUT ==================== */
.about { padding: 6rem 0; background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text p { color: var(--fg-muted); margin-bottom: 1rem; line-height: 1.7; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.skill-card {
  background: var(--bg); border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--border);
}
.skill-icon { width: 2rem; height: 2rem; color: var(--primary); margin-bottom: 1rem; }
.skill-card h3 { font-weight: 600; color: var(--fg); margin-bottom: 0.5rem; }
.skill-card p { font-size: 0.875rem; color: var(--fg-muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 5rem; text-align: center; }
.stat-value { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.875rem; color: var(--fg-muted); margin-top: 0.25rem; }

/* ==================== WORKFLOW ==================== */
.workflow { padding: 6rem 0; background: var(--bg); }
.workflow-steps { display: flex; flex-direction: column; gap: 3rem; }
.workflow-step { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.workflow-step.reverse .step-image { order: 2; }
.workflow-step.reverse .step-text { order: 1; }
.step-image { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; }
.step-image img { width: 100%; height: 100%; object-fit: cover; }
.step-number {
  position: absolute; top: 1rem; left: 1rem; width: 3rem; height: 3rem;
  border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center;
  color: var(--primary-fg); font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem;
}
.step-label { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.step-label span { font-family: var(--font-accent); font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); }
.step-label svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.step-text h3 { font-size: 1.875rem; font-weight: 700; color: var(--fg); margin-bottom: 1rem; }
.step-text p { color: var(--fg-muted); font-size: 1.125rem; line-height: 1.7; }

/* ==================== CONTACT ==================== */
.contact { padding: 6rem 0; background: #f7f7f7; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius);
  background: rgba(216,52,47,0.1); display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.contact-label { font-size: 0.875rem; color: var(--fg-muted); }
.contact-value { font-weight: 500; color: var(--fg); }
.contact-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.contact-map iframe {
  display: block; width: 100%; height: 460px; border: 0;
  filter: grayscale(20%) contrast(1.05);
}
.contact-map-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  position: absolute; bottom: 1rem; right: 1rem;
  padding: 0.5rem 1rem;
  background: var(--fg); color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  border-radius: var(--radius); text-decoration: none;
  transition: background 0.2s;
}
.contact-map-link:hover { background: var(--primary); }

/* ==================== PROJECT DETAIL ==================== */

/* Hero */
.project-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  overflow: hidden;
}
.project-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.12) 40%,
    rgba(0,0,0,0.72) 100%
  );
}
.project-back-link {
  position: absolute; top: 6.5rem; left: 2rem; z-index: 10;
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-heading);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  transition: color 0.2s;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5), 0 2px 16px rgba(0,0,0,0.3);
}
.project-back-link:hover { color: #fff; }
.project-back-link svg { filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5)); }
.project-hero-content {
  position: relative; z-index: 10;
  padding: 0 2rem 8rem;
  max-width: 1400px; margin: 0 auto; width: 100%;
}
.project-hero-cat {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  background: var(--primary); color: #fff;
  font-family: var(--font-heading);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.project-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 7.5rem);
  font-weight: 800; line-height: 0.95;
  color: #fff; letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  animation: hero-rise 1s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45), 0 4px 32px rgba(0,0,0,0.25);
}
.project-hero-meta {
  display: flex; align-items: center; gap: 0.75rem;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-heading);
  font-size: 0.9rem; font-weight: 500;
  animation: hero-rise 1s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.project-hero-sep { color: rgba(255,255,255,0.3); }
.project-hero-credits { margin-top: 0.4rem; }
.project-hero-credits a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: color 0.2s, border-color 0.2s;
}
.project-hero-credits a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.6); }

/* Body */
.project-body { padding: 3rem 0; background: var(--bg); }
.project-body-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5rem; align-items: start;
}
.project-content {
  font-family: var(--font-body);
  font-size: 1.1rem; line-height: 1.85; color: var(--fg-muted);
}
.project-content p { margin-bottom: 1.25rem; }
.project-content p:last-child { margin-bottom: 0; }

/* Aside */
.project-aside { position: sticky; top: 7rem; }
.project-aside-block { padding: 1.25rem 0; border-top: 1px solid var(--border); }
.project-aside-block:first-child { border-top: none; padding-top: 0; }
.project-aside-label {
  font-family: var(--font-heading);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 0.4rem;
}
.project-aside-value { font-size: 0.95rem; font-weight: 500; color: var(--fg); }
.project-credits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.project-credits a {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.875rem; color: var(--fg); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.project-credits a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* Gallery */
.project-gallery-section { padding: 3rem 0 6rem; background: var(--bg-card); }
.project-gallery-heading {
  display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2.5rem;
}
.project-gallery-heading h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700; color: var(--fg);
}
.project-gallery-heading em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.875rem; color: var(--fg-muted);
}
.project-gallery-masonry { columns: 3; column-gap: 0.875rem; }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 0.875rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item a { display: block; position: relative; overflow: hidden; }
.gallery-item img {
  width: 100%; height: auto; display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item a:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(20,20,20,0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0;
  transition: background 0.4s ease, opacity 0.4s ease;
}
.gallery-item-overlay svg {
  transform: scale(0.75);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.gallery-item a:hover .gallery-item-overlay {
  background: rgba(20,20,20,0.45); opacity: 1;
}
.gallery-item a:hover .gallery-item-overlay svg { transform: scale(1); }

/* Project detail responsive */
@media (max-width: 1024px) {
  .project-body-grid { grid-template-columns: 1fr; gap: 3rem; }
  .project-aside { position: static; }
  .project-gallery-masonry { columns: 2; }
}
@media (max-width: 768px) {
  .project-hero-content { padding: 0 1.5rem 2.5rem; }
  .project-back-link { top: 5rem; left: 1.5rem; }
  .project-body { padding: 3rem 0; }
  .project-gallery-section { padding: 3rem 0 4rem; }
  .project-gallery-masonry { columns: 1; }
}

/* ==================== FOOTER ==================== */
.footer { padding: 3rem 0; background: var(--bg-card); border-top: 1px solid var(--border); }
.footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand-link { display: inline-block; }
.footer-logo { height: 1.75rem; width: auto; }
.footer-tagline { font-size: 0.875rem; color: var(--fg-muted); margin-top: 0.25rem; }
.footer-links { display: flex; align-items: center; }
.footer-links ul { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.footer-links li { display: flex; align-items: center; }
.footer-links li + li::before { content: '—'; font-size: 0.625rem; color: var(--border); margin: 0 0.75rem; }
.footer-links a { font-size: 0.875rem; color: var(--fg-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 0.75rem; color: var(--fg-muted); }

/* ==================== EDITORIAL (single.php / page.php) ==================== */
.editorial-single { padding-top: 0; }

.editorial-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background-color: #1a1a1a;
}

.editorial-hero-image {
  position: absolute;
  inset: 0;
}
.editorial-hero-image img {
  width: 100%; height: 100%; object-fit: cover;
}

.editorial-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.55) 60%,
    rgba(0,0,0,0.80) 100%
  );
}

.editorial-hero-content {
  position: relative;
  z-index: 10;
  padding: 0 2rem 8rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Light variant — geen featured image */
.editorial-hero--light {
  min-height: 0;
  background-color: var(--bg);
  padding: 10rem 0 5rem;
  border-bottom: 1px solid var(--border);
}
.editorial-hero--light .editorial-hero-content {
  padding-bottom: 0;
}
.editorial-hero--light .editorial-title {
  color: var(--fg);
  font-size: clamp(2.25rem, 5vw, 4rem);
}
.editorial-hero--light .editorial-title::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--primary);
  margin-bottom: 1.5rem;
}

.editorial-cat {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.editorial-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  max-width: 900px;
  margin-bottom: 1rem;
}

.editorial-meta {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

.editorial-body {
  padding: 5rem 0 6rem;
  background: #fff;
}

.editorial-content {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--fg);
}

.editorial-content h1,
.editorial-content h2,
.editorial-content h3,
.editorial-content h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #3a3636;
  margin: 2.5rem 0 0.75rem;
  line-height: 1.2;
}
.editorial-content h2 { font-size: 1.75rem; }
.editorial-content h3 { font-size: 1.375rem; }
.editorial-content p { margin-bottom: 1.5rem; }
.editorial-content a { color: var(--primary); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.editorial-content a:hover { border-bottom-color: var(--primary); }
.editorial-content ul,
.editorial-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.editorial-content li { margin-bottom: 0.5rem; }
.editorial-content img { border-radius: var(--radius); margin: 2rem 0; }
.editorial-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--fg-muted);
}

@media (max-width: 768px) {
  .editorial-hero { min-height: 65vh; }

  .page-projects-archive .editorial-hero { min-height: inherit; }
  .editorial-hero-content { padding: 0 1.5rem 6rem; }
  .editorial-body { padding: 3rem 0 4rem; }
}

/* ==================== TEAM GRID (page-teams.php) ==================== */
.page-teams .editorial-hero--light { margin-bottom: 0; border-bottom: none; }
.page-teams > .container { padding-bottom: 6rem; }
.page-teams .editorial-hero-content { text-align: center; }
.page-teams .editorial-hero--light .editorial-title { max-width: 640px; margin-left: auto; margin-right: auto; }
.page-teams .editorial-hero--light .editorial-title::before { margin-left: auto; margin-right: auto; }
.page-teams .teams-intro { margin-left: auto; margin-right: auto; }

.teams-intro {
  max-width: 640px;
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg-muted);
}

/* Grid — 3 kolommen */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(260px, 28vw, 480px);
  grid-auto-flow: dense;
  gap: 2rem;
}

/* ── Afbeeldingen ── */
.team-item {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
}

.team-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-item:hover img {
  transform: scale(1.04);
}

/* Grote afbeelding: 2 kolommen breed */
.team-item--image-large {
  grid-column: span 2;
}

/* Kleine afbeelding: 1 kolom */
.team-item--image-small {
  grid-column: span 1;
}

/* Video: zelfde breedte als image_large */
.team-item--movie-large {
  grid-column: span 2;
}

.team-item--movie-large video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Quote tegels ── */
.team-item--quote-large-with-name,
.team-item--quote-small-with-name,
.team-item--quote-large-no-name {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grote quote met naam: 1 kolom, witte achtergrond */
.team-item--quote-large-with-name {
  grid-column: span 1;
  background: #fff;
  color: var(--fg);
}

/* Kleine quote met naam: 1 kolom, achtergrond --bg */
.team-item--quote-small-with-name {
  grid-column: span 1;
  background: var(--bg);
  color: var(--fg);
}

/* Grote quote zonder naam: 1 kolom, rode achtergrond */
.team-item--quote-large-no-name {
  grid-column: span 1;
  background: var(--primary);
  color: #fff;
}

.team-quote-inner {
  padding: 10%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.team-quote-text {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  quotes: none;
}

/* Groot — in 2-kolom tegel */
.team-item--quote-large-with-name .team-quote-text {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
}

/* Klein — in 1-kolom tegel */
.team-item--quote-small-with-name .team-quote-text {
  font-size: clamp(1rem, 1.5vw, 1.4rem);
}

/* Groot zonder naam — grote statement tekst */
.team-item--quote-large-no-name .team-quote-text {
  font-family: var(--font-heading);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  line-height: 1.1;
}

.team-quote-person {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--font-heading);
}

.team-quote-name {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-quote-function {
  font-weight: 400;
  font-size: 0.8rem;
  opacity: 0.65;
}

/* Scheidingslijn boven naam */
.team-item--quote-large-with-name .team-quote-person::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--border);
  margin: 0 auto 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(200px, 45vw, 340px);
  }
  .team-item--image-large,
  .team-item--movie-large { grid-column: span 2; }
  .team-item--image-small,
  .team-item--quote-small-with-name,
  .team-item--quote-large-no-name   { grid-column: span 1; }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: clamp(240px, 70vw, 400px);
  }
  .team-item--image-large,
  .team-item--movie-large,
  .team-item--quote-large-with-name { grid-column: span 1; }
}

/* ==================== PROJECTS ARCHIVE (page-projecten.php) ==================== */
.page-projects-archive .editorial-hero--light { margin-bottom: 0; border-bottom: none; }
.page-projects-archive > .container { padding: 4rem 0 6rem; }

.projects-archive-count {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}
.projects-archive-page {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.project-image-placeholder {
  width: 100%; height: 100%;
  background: var(--border);
}

/* ── Paginering ── */
.projects-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.projects-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.projects-pagination .page-numbers:hover {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}

.projects-pagination .page-numbers.current {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

.projects-pagination .page-numbers.dots {
  border-color: transparent;
  min-width: auto;
  padding: 0 0.25rem;
  pointer-events: none;
}

.projects-pagination .prev,
.projects-pagination .next {
  min-width: auto;
  padding: 0 1.1rem;
  letter-spacing: 0.06em;
}

/* ==================== 404 ==================== */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.not-found-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
}

.not-found-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.not-found-code {
  font-family: var(--font-heading);
  font-size: clamp(8rem, 25vw, 22rem);
  font-weight: 800;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px var(--border);
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
}

.not-found-message {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 380px;
  line-height: 1.7;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .workflow-step { grid-template-columns: 1fr; }
  .workflow-step.reverse .step-image, .workflow-step.reverse .step-text { order: unset; }
}
@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 2.4rem; }
  .hero-logo { height: 3rem; }
  .nav-overlay { padding: 6rem 1.5rem 2.5rem; }
  .site-header { padding: 1.25rem 1.5rem; }
}

html { scroll-behavior: smooth; interpolate-size: allow-keywords; }