/* ===== Fonts (self-hosted) ===== */
@font-face { font-family: 'Sora'; src: url('/fonts/display-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/fonts/display-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/body-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/body-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

/* ===== Tokens ===== */
:root {
  --bg: #0e0f12;
  --ink: #f2f1ed;
  --ink-soft: #8a8d94;
  --line: #26282e;
  --accent: #0072ff;
  --grad: linear-gradient(100deg, #0072ff, #00c8ff);
  --font-display: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --sidebar-w: 250px;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }

/* Verloop-tekst (actief/hover-accent) */
.grad-text, .tile:hover .tile-client, .tile:focus-visible .tile-client,
.menu-cat-title.is-active, .menu-all.is-active,
.case-nav a:hover, .menu-foot a:hover {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Layout: sidebar + content ===== */
.content {
  margin-left: var(--sidebar-w);
  padding: 44px clamp(20px, 4vw, 64px) 64px;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  z-index: 30;
}
.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 34px;
  min-height: 100%;
  padding: 36px 30px 28px;
}
.menu-logo img { display: block; width: 54px; height: auto; }
.menu-nav { display: flex; flex-direction: column; gap: 26px; }
.menu-all, .menu-cat-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
}
.menu-cat-title { margin-bottom: 9px; }
.menu-cat ul { list-style: none; margin: 0; padding: 0; }
.menu-cat li a {
  display: block;
  padding: 3px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.menu-cat li a:hover { color: var(--ink); }
.menu-cat li a.is-active { color: var(--ink); font-weight: 500; }
.menu-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.menu-foot a.is-active { font-weight: 500; }
.menu-social { display: flex; gap: 14px; }
.menu-social a { display: inline-flex; color: var(--ink-soft); }
.menu-social a:hover { color: var(--accent); }
.menu-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Mobiele balk (verborgen op desktop) */
.mobile-bar { display: none; }

/* ===== No-JS fallback ===== */
html.no-js .sidebar { display: none; }
html.no-js .content { margin-left: 0; }
.noscript-nav {
  display: flex;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
}

/* ===== Werk-grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 26px;
  max-width: 1400px;
}
.tile { display: block; }
.tile[hidden] { display: none; }
.tile-media {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: var(--line);
}
.tile-media img { display: block; width: 100%; height: auto; }
.tile-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 10px;
}
.tile-client { font-family: var(--font-display); font-weight: 500; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; }
.tile-type { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }

/* ===== Case-pagina ===== */
.case-article { max-width: 980px; }
.case-article h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 20px;
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  margin: 0 0 26px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-meta > div { margin: 0; }
.case-meta dt {
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.case-meta dd { margin: 0; font-size: 14px; font-weight: 500; }
.case-intro { max-width: 640px; font-size: 15.5px; margin: 0 0 36px; }
div.case { width: 100%; max-width: 980px; margin: 0 0 26px; }
div.case img, div.case video { max-width: 100%; height: auto; }
.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.case-nav a { font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.case-nav a span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.case-nav-next { text-align: right; margin-left: auto; }

/* ===== Video-wrappers (bestaand gedrag behouden) ===== */
.video-responsive-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; }
.video-square-wrapper { position: relative; width: 100%; padding-bottom: 100%; height: 0; overflow: hidden; border-radius: 10px; }
.video-portrait-wrapper { position: relative; width: 100%; padding-bottom: 177.77%; height: 0; overflow: hidden; border-radius: 10px; }
.video-responsive-wrapper iframe, .video-square-wrapper iframe, .video-portrait-wrapper iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* Meerdere vierkante/portret-video's naast elkaar (bestaand gedrag) */
.video-container-horizontal { display: flex; flex-wrap: wrap; gap: 20px; }
.video-container-horizontal .case { flex: 1 1 100%; margin: 0 0 6px; min-width: 0; }
@media (min-width: 768px) {
  .video-container-horizontal .case { flex: 1 1 45%; }
}

/* ===== About ===== */
.about-hero {
  border-radius: 12px;
  width: 100%;
  max-width: 980px;
  height: auto;
  display: block;
  margin-bottom: 34px;
}

/* ===== Beweging (alleen zonder reduced-motion) ===== */
@media (prefers-reduced-motion: no-preference) {
  .tile-media img { transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
  .tile:hover .tile-media img, .tile:focus-visible .tile-media img { transform: scale(1.05); }
  .menu-cat li a, .menu-foot a, .menu-social a { transition: color .15s ease; }
  .grid .tile { opacity: 0; transform: translateY(12px); animation: tile-in .5s ease forwards; }
  .grid .tile:nth-child(1) { animation-delay: .04s; }
  .grid .tile:nth-child(2) { animation-delay: .09s; }
  .grid .tile:nth-child(3) { animation-delay: .14s; }
  .grid .tile:nth-child(4) { animation-delay: .19s; }
  .grid .tile:nth-child(5) { animation-delay: .24s; }
  .grid .tile:nth-child(6) { animation-delay: .29s; }
  .grid .tile:nth-child(n+7) { animation-delay: .34s; }
}
@keyframes tile-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 20px;
  }
  .mobile-bar img { display: block; width: 40px; height: auto; }
  .menu-toggle {
    width: 34px; height: 34px;
    border: 0; padding: 0;
    background: none;
    cursor: pointer;
    position: relative;
  }
  .menu-toggle::before, .menu-toggle::after {
    content: '';
    position: absolute;
    left: 4px; right: 4px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .25s ease, top .25s ease;
  }
  .menu-toggle::before { top: 12px; }
  .menu-toggle::after { top: 20px; }
  body.menu-open .menu-toggle::before { top: 16px; transform: rotate(45deg); }
  body.menu-open .menu-toggle::after { top: 16px; transform: rotate(-45deg); }
  .sidebar-inner { display: none; }
  body.menu-open .sidebar-inner {
    display: flex;
    position: fixed;
    top: 60px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    overflow-y: auto;
    z-index: 40;
  }
  body.menu-open { overflow: hidden; }
  .content { margin-left: 0; padding: 84px 20px 48px; }
  html.no-js .content { padding-top: 24px; }
  .case-nav a { font-size: 14px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}
