:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --text: #111111;
  --muted: #6d6d6a;
  --line: #d9d9d5;
  --dark: #111111;
  --placeholder: #dededb;
  --accent: #d9d9d5;;
  --radius: 2px;
  --max: 1320px;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}

/* Dark mode: automatisch via systeem, of handmatig via de toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0d;
    --surface: #161615;
    --text: #f2f2ef;
    --muted: #9a9a95;
    --line: #2a2a28;
    --dark: #050505;
    --placeholder: #1c1c1a;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0e0e0d;
  --surface: #161615;
  --text: #f2f2ef;
  --muted: #9a9a95;
  --line: #2a2a28;
  --dark: #050505;
  --placeholder: #1c1c1a;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; width: 100%; }
ol, ul { list-style: none; }

::selection {
  background: var(--accent);
  color: #fff;
}

/* Toegankelijkheid */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  font-size: .8rem;
  font-weight: 700;
  transition: top .25s ease;
}

.skip-link:focus { top: 16px; }

/* Voortgangsbalk */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1100;
  pointer-events: none;
}

/* Custom cursor (alleen op apparaten met muis) */
.cursor { display: none; }

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 10001;
    opacity: 0;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s ease;
  }

  .cursor.is-active { opacity: 1; }

  .cursor.is-hover {
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
  }
}

/* Loading */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  transition: clip-path 1s var(--ease), opacity .35s ease;
}

.loader.is-hidden {
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}

.loader__inner { width: min(90vw, 1320px); }

/* Titel precies in het midden; vaste hoogte, zodat niets verspringt als het lettertype wisselt */
.loader__stage {
  height: clamp(5rem, 14vw, 11rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader__slide {
  transform: translateY(110%);
  animation: loaderText .8s .1s var(--ease) forwards;
}

.loader__brand {
  display: inline-block;
  white-space: nowrap;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.5rem, 9vw, 8rem);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.1;
  letter-spacing: -.02em;
  transform-origin: center center; /* JS schaalt brede lettertypes zodat ze passen */
}

@keyframes loaderText { to { transform: translateY(0); } }

/* Tijdens het laden: niet scrollen en de hero-animatie nog even vasthouden */
body.is-loading { overflow: hidden; }

body.is-loading .hero__title span,
body.is-loading .hero__subtitle { animation-play-state: paused; }

/* Global */
.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section {
  padding: 150px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 86px;
}

.section__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 72px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background .4s ease;
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.04em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.nav__links a {
  position: relative;
  display: inline-block;
  padding: 7px 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  transition: color .3s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transition: right .35s var(--ease);
}

.nav__links a:hover,
.nav__links a.active { color: var(--text); }

.nav__links a:hover::after,
.nav__links a.active::after { right: 0; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Thema-knop */
.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: border-color .3s ease, transform .4s var(--ease);
}

.theme-toggle:hover { border-color: var(--text); transform: rotate(180deg); }

.theme-toggle__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--text) 50%, transparent 50%);
  border: 1px solid var(--text);
}

/* Menu-knop */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 1px;
  left: 12px;
  background: var(--text);
  transition: transform .3s var(--ease), top .3s var(--ease);
}

.menu-toggle span { top: 20px; }
.menu-toggle::before { top: 15px; }
.menu-toggle::after { top: 25px; }

.menu-toggle.open span { opacity: 0; }
.menu-toggle.open::before { top: 20px; transform: rotate(45deg); }
.menu-toggle.open::after { top: 20px; transform: rotate(-45deg); }

/* Hero */
.hero {
  min-height: 100svh;
  padding-top: 76px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 80px 0 46px;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(1.5); }
}

.hero__title {
  font-size: clamp(4.8rem, 14vw, 13.5rem);
  line-height: .78;
  letter-spacing: -.095em;
  font-weight: 700;
  max-width: 1250px;
  overflow: hidden;
}

.hero__title span {
  display: block;
  transform: translateY(110%);
  animation: heroUp 1.1s .3s var(--ease) forwards;
}

.hero__subtitle {
  margin-top: 34px;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -.02em;
  opacity: 0;
  transform: translateY(20px);
  animation: reveal .8s .65s var(--ease) forwards;
}

.scroll-indicator {
  position: absolute;
  right: 24px;
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
}

.scroll-indicator::after {
  content: "";
  width: 1px;
  height: 45px;
  background: var(--text);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes heroUp { to { transform: translateY(0); } }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes scrollLine {
  0%, 100% { transform: scaleY(.3); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* Over mij */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
  align-items: start;
}

.about__portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--placeholder);
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.about__portrait:hover .about__image { transform: scale(1.04); }

.about__copy { padding-top: 3vw; }

.about__copy h3 {
  font-size: clamp(2rem, 3.5vw, 4rem);
  line-height: .98;
  letter-spacing: -.055em;
  margin-bottom: 34px;
}

.about__copy p {
  max-width: 570px;
  color: var(--muted);
  font-size: 1.04rem;
  margin-bottom: 24px;
}

.about__facts {
  margin-top: 52px;
  border-top: 1px solid var(--line);
}

.fact {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: .84rem;
}

.fact > span:first-child { color: var(--muted); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .74rem;
  transition: border-color .3s ease, background .3s ease, color .3s ease;
}

.tag:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* Link met cirkelpijl (CV, enz.) */
.cta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 340px;
  min-height: 72px;
  margin-top: 28px;
  font-size: .82rem;
  font-weight: 700;
}

.cta-link strong,
.contact__arrow strong {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform .4s var(--ease), background .3s ease, color .3s ease, border-color .3s ease;
}

.cta-link:hover strong {
  transform: translateY(4px);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Diensten */
.services { border-top: 1px solid var(--line); }

.service {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr) 48px;
  gap: 24px;
  align-items: center;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease), color .3s ease;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--accent);
  opacity: .08;
  transition: width .6s var(--ease);
}

.service:hover { padding-left: 18px; }
.service:hover::before { width: 100%; }

.service__num {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.service__title {
  font-size: clamp(1.6rem, 3.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.service__text {
  max-width: 420px;
  color: var(--muted);
  font-size: .95rem;
}

.service__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .45s var(--ease), background .3s ease, color .3s ease, border-color .3s ease;
}

.service:hover .service__arrow {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Projecten */
.work__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project {
  grid-column: span 6;
  min-width: 0;
}

.project:nth-child(2) { margin-top: 90px; }
.project:nth-child(3) { grid-column: 2 / span 5; }
.project:nth-child(4) { grid-column: 8 / span 5; margin-top: 90px; }
.project:nth-child(5) { grid-column: 4 / span 6; margin-top: 30px; }

.project__visual {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--placeholder);
}

.project__visual img,
.project__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.project__placeholder {
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%),
    linear-gradient(135deg, var(--placeholder), color-mix(in srgb, var(--text) 10%, var(--placeholder)));
}

.project__placeholder--alt {
  background:
    radial-gradient(circle at 70% 60%, color-mix(in srgb, var(--text) 20%, transparent), transparent 55%),
    linear-gradient(315deg, var(--placeholder), color-mix(in srgb, var(--accent) 18%, var(--placeholder)));
}

.project:hover .project__visual img,
.project:hover .project__placeholder { transform: scale(1.055); }

.project__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.2));
  opacity: 0;
  transition: opacity .5s ease;
}

.project:hover .project__overlay,
.project:focus-within .project__overlay { opacity: 1; }

.project__arrow {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  transform: translateY(15px);
  transition: transform .45s var(--ease);
}

.project:hover .project__arrow,
.project:focus-within .project__arrow { transform: translateY(0) rotate(-45deg); }

.project__info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 17px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.project__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.025em;
}

.project__category,
.project__year {
  color: var(--muted);
  font-size: .75rem;
}

.project__category { margin-top: 3px; }
.project__year { padding-top: 3px; }

/* Marquee */
.marquee-section {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.contact__marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  padding: 56px 0;
}

.contact__marquee-track {
  display: flex;
  width: max-content;
  animation: contactMarquee 28s linear infinite;
  will-change: transform;
}

.contact__marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 45px;
  padding-right: 45px;
}

.contact__marquee span {
  display: inline-block;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: .8;
  font-weight: 700;
  letter-spacing: -.075em;
  color: var(--text);
}

.contact__marquee span:nth-child(even) {
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 400;
  color: var(--accent);
}

@keyframes contactMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.contact__marquee:hover .contact__marquee-track { animation-play-state: paused; }

/* Contact */
.contact {
  min-height: 82vh;
  display: flex;
  align-items: center;
  position: relative;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 8vw;
  align-items: end;
}

.contact__main { min-width: 0; }

.contact__title {
  margin: 70px 0 45px;
  max-width: 900px;
  font-size: clamp(5rem, 10.5vw, 11rem);
  line-height: .78;
  letter-spacing: -.095em;
  font-weight: 700;
}

.contact__side { padding-bottom: 4px; }

.contact__email {
  display: inline-block;
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 700;
  border-bottom: 1px solid var(--text);
  padding-bottom: 9px;
  overflow-wrap: anywhere;
  transition: color .3s ease, border-color .3s ease, transform .35s var(--ease);
}

.contact__email:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateX(5px);
}

.contact__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 42px;
}

.contact__socials a {
  position: relative;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  transition: color .3s ease;
}

.contact__socials a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: var(--accent);
  transition: right .35s var(--ease);
}

.contact__socials a:hover { color: var(--text); }
.contact__socials a:hover::after { right: 0; }

.contact__line {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 48px 0 0;
}

.contact__arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
}

.contact__arrow:hover strong {
  transform: rotate(-45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Footer */
footer {
  background: var(--dark);
  color: #fff;
  padding: 48px 0 28px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 65px;
}

.footer__brand {
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: .9;
}

.footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer__links a {
  color: #aaa;
  font-size: .78rem;
  transition: color .25s ease;
}

.footer__links a:hover { color: #fff; }
.footer__links .to-top:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid #333;
  color: #777;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), padding .5s var(--ease), color .3s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* Responsive */
@media (max-width: 500px) {
   .scroll-indicator { top: 100px; }
}

@media (max-width: 900px) {
  .container,
  .hero__inner { width: min(calc(100% - 32px), var(--max)); }

  .section { padding: 105px 0; }
  .section__head { grid-template-columns: 1fr; gap: 25px; margin-bottom: 52px; }

  .nav { height: 68px; }

  .nav__links {
    position: fixed;
    inset: 68px 0 auto 0;
    display: grid;
    gap: 0;
    margin-left: 0;
    padding: 15px 16px 25px;
    background: color-mix(in srgb, var(--bg) 98%, transparent);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .45s var(--ease);
  }

  .nav__links.open { transform: translateY(0); }
  .nav__links a { display: block; padding: 14px 0; font-size: 1rem; }
  .menu-toggle { display: block; }

  .hero { padding-top: 68px; }
  .hero__inner { padding-bottom: 36px; }
  .hero__meta { margin-bottom: 34px; }
  .scroll-indicator { right: 16px; bottom: 32px; }

  .about__grid { grid-template-columns: 1fr; gap: 45px; }
  .about__portrait { max-width: 620px; }

  .service { grid-template-columns: 56px 1fr 48px; }
  .service__text { grid-column: 2 / 3; grid-row: 2; }
  .service__arrow { grid-row: 1 / span 2; grid-column: 3; }

  .work__grid { grid-template-columns: 1fr 1fr; }
  .project,
  .project:nth-child(3),
  .project:nth-child(4),
  .project:nth-child(5) {
    grid-column: auto;
    margin-top: 0;
  }

  .project:nth-child(even) { margin-top: 55px; }

  .contact__grid { grid-template-columns: 1fr; gap: 70px; }
  .contact__title { margin-top: 55px; }
}

@media (max-width: 600px) {
  .container,
  .hero__inner { width: calc(100% - 28px); }

  .hero__title { font-size: clamp(4rem, 19vw, 7rem); }
  .hero__meta { font-size: .62rem; }
  .hero__meta span:last-child { display: none; }

  .section { padding: 86px 0; }

  .fact { grid-template-columns: 100px 1fr; }

  .work__grid { display: block; }
  .project { margin-bottom: 48px !important; }
  .project:last-child { margin-bottom: 0 !important; }

  .contact { min-height: auto; }
  .contact__grid { gap: 65px; }
  .contact__title { margin: 40px 0 32px; font-size: clamp(4rem, 18vw, 7rem); }
  .contact__email { font-size: clamp(1.35rem, 7vw, 2rem); }
  .contact__socials { margin-top: 35px; }
  .contact__line { margin-top: 40px; }

  .footer__top { display: grid; padding-bottom: 48px; }
  .footer__links { justify-content: flex-start; }
  .footer__bottom { gap: 20px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .loader { display: none; }
  .reveal { opacity: 1; transform: none; }
  .hero__title span,
  .hero__subtitle { opacity: 1; transform: none; }
  .contact__marquee-track { animation: none; }
}