/* Kleuren en lettertypes worden vanuit site.config.js gezet als CSS-variabelen. */
:root {
  --bg: #0E0E12;
  --surface: #18181F;
  --text: #F4F1EA;
  --muted: #8C8A93;
  --accent: #FF6A3D;
  --light: #F4F1EA;
  --light-text: #0E0E12;
  --radius: 22px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }
.grid-2 { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 96px); }
.center { text-align: center; margin-top: clamp(40px, 6vw, 80px); }
.muted { color: var(--muted); max-width: 46ch; }
.skip { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--accent); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1.2rem;
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--accent); }
.h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1;
  font-size: clamp(2.2rem, 5.4vw, 5.6rem); margin: 0 0 .5em;
}
.h2--xl { font-size: clamp(2.4rem, 7vw, 7.5rem); }
.lead { font-size: clamp(1.2rem, 2vw, 1.9rem); line-height: 1.35; max-width: 34ch; margin: 0 0 2rem; }

/* ---------- Light sections ---------- */
.light { background: var(--light); color: var(--light-text); border-radius: calc(var(--radius) * 2); margin: 0 clamp(6px, 1vw, 14px); }
.light .muted { color: color-mix(in srgb, var(--light-text) 60%, transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 1em 1.7em; border-radius: 999px; font-weight: 500; line-height: 1;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn--sm { padding: .8em 1.3em; font-size: .9rem; }
.btn--solid { background: var(--accent); color: var(--bg); }
.btn--ghost { border: 1px solid currentColor; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text);
  transform: translateY(101%); border-radius: 999px; transition: transform .5s var(--ease);
}
.btn:hover::after { transform: none; }
.btn--solid:hover { color: var(--bg); }
.btn--ghost:hover { color: var(--bg); border-color: var(--text); }
.light .btn::after { background: var(--light-text); }
.light .btn--ghost:hover { color: var(--light); }

.link-arrow { display: inline-flex; gap: .6em; align-items: center; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: .2em; }
.link-arrow::after { content: "→"; transition: transform .4s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }
.link-arrow--up::after { content: "↑"; }
.link-arrow--up:hover::after { transform: translateY(-4px); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; align-items: flex-end;
  justify-content: space-between; padding: var(--gutter); transition: transform 1s var(--ease) .1s;
}
.preloader__count { font-family: var(--font-display); font-size: clamp(5rem, 20vw, 18rem); line-height: .8; font-weight: 700; letter-spacing: -.05em; }
.preloader__count::after { content: "%"; font-size: .3em; vertical-align: top; color: var(--accent); }
.preloader__bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.preloader__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.preloader.is-done { transform: translateY(-100%); }
.no-preloader .preloader { display: none; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 90; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid color-mix(in srgb, var(--text) 50%, transparent);
  display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s, border-color .4s;
  mix-blend-mode: normal;
}
.cursor__label { font-size: .8rem; font-weight: 600; color: var(--bg); opacity: 0; transition: opacity .3s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--accent); }
.cursor.is-view .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: var(--accent); }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-view .cursor__dot { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .has-cursor, .has-cursor a, .has-cursor button { cursor: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center;
  padding: clamp(14px, 2vw, 26px) var(--gutter); mix-blend-mode: normal; transition: transform .6s var(--ease);
}
.header { transition: transform .6s var(--ease), color .4s; }
.header.on-light .logo { color: var(--light-text); }
.header.is-hidden { transform: translateY(-120%); }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.03em; }
.logo img { height: 32px; width: auto; }
.logo--big { font-size: clamp(2rem, 4vw, 3.4rem); display: block; margin-bottom: 1.4rem; }
.logo--big img { height: 56px; }
.header__right { display: flex; gap: 10px; align-items: center; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: .7em; padding: .8em 1.2em; border-radius: 999px; font-size: .9rem;
  background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.menu-toggle__label { display: block; }
.menu-toggle [data-close] { display: none; }
.menu-open .menu-toggle [data-open] { display: none; }
.menu-open .menu-toggle [data-close] { display: block; }
.menu-toggle__icon { width: 16px; height: 10px; position: relative; }
.menu-toggle__icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle__icon i:first-child { top: 0; }
.menu-toggle__icon i:last-child { top: 100%; }
.menu-open .menu-toggle__icon i:first-child { top: 50%; transform: rotate(45deg); }
.menu-open .menu-toggle__icon i:last-child { top: 50%; transform: rotate(-45deg); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--accent); color: var(--bg);
  clip-path: circle(0% at calc(100% - 60px) 40px); transition: clip-path .9s var(--ease);
  display: flex; flex-direction: column; justify-content: space-between; padding: 120px var(--gutter) var(--gutter);
  visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 60px) 40px); visibility: visible; }
.menu__links { list-style: none; margin: 0; padding: 0; }
.menu__links li { overflow: hidden; }
.menu__links a {
  display: inline-block; font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em;
  font-size: clamp(2.8rem, 9vh, 7rem); line-height: 1.02; transform: translateY(110%);
  transition: transform .8s var(--ease), letter-spacing .4s var(--ease);
}
.menu__links a:hover { letter-spacing: -.01em; }
.menu__links a span { font-size: .25em; vertical-align: top; margin-right: .6em; font-family: var(--font-body); letter-spacing: 0; }
.menu-open .menu__links a { transform: none; }
.menu__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: flex-end; }
.menu__foot p { margin: 0; font-size: 1.2rem; }
.menu__contacts { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.menu header { display: none; }
.menu-open .header .logo { color: var(--bg); }
.menu-open .header .btn--solid { background: var(--bg); color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__fallback { position: absolute; inset: 0; display: none; filter: blur(60px); opacity: .8; }
.no-webgl .hero__fallback { display: block; }
.hero__fallback i { position: absolute; width: 40vmax; height: 40vmax; border-radius: 50%; animation: drift 14s ease-in-out infinite alternate; }
.hero__fallback i:nth-child(1) { background: var(--blob1); left: 50%; top: 5%; }
.hero__fallback i:nth-child(2) { background: var(--blob2); left: 20%; top: 25%; animation-delay: -5s; }
.hero__fallback i:nth-child(3) { background: var(--blob3); left: 65%; top: 40%; animation-delay: -9s; width: 25vmax; height: 25vmax; }
@keyframes drift { to { transform: translate(-12vw, 8vh) scale(1.2); } }
.hero__inner { position: relative; z-index: 2; padding-bottom: clamp(28px, 5vw, 64px); pointer-events: none; }
.hero__inner a { pointer-events: auto; }
.hero__title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(2.4rem, 6.4vw, 7.2rem); margin: 0 0 clamp(28px, 4vw, 56px); max-width: 16ch;
}
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.word > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 40ms + .2s); }
.is-ready .hero__title .word > span { transform: none; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) .9s, transform 1s var(--ease) .9s; }
.is-ready .hero__bottom { opacity: 1; transform: none; }
.hero__buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__cue { display: flex; align-items: center; gap: 12px; font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.hero__cue-line { width: 1px; height: 48px; background: color-mix(in srgb, var(--text) 25%, transparent); position: relative; overflow: hidden; }
.hero__cue-line::after { content: ""; position: absolute; left: 0; right: 0; top: -50%; height: 50%; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.scrub .w { opacity: .15; transition: opacity .25s linear; }
.scrub .w.on { opacity: 1; }

/* ---------- Intro ---------- */
.intro { padding: clamp(80px, 12vw, 180px) 0 clamp(60px, 8vw, 120px); position: relative; z-index: 3; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: clamp(60px, 8vw, 120px); }
.stat { border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); padding-top: 20px; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 6rem); line-height: 1; letter-spacing: -.04em; }
.stat__label { margin-top: 8px; opacity: .7; }

/* ---------- Work ---------- */
.work { padding: clamp(100px, 14vw, 200px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.section-head .h2 { margin: 0; }
.section-head .muted { margin: 0; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 48px); }
.projects .card:nth-child(4n+2), .projects .card:nth-child(4n+3) { }
.projects .card:nth-child(even) { margin-top: clamp(0px, 10vw, 160px); }
.card { display: block; position: relative; text-align: left; width: 100%; }
.card__media {
  position: relative; aspect-ratio: 4 / 3.2; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease);
}
.card__media img, .card__gen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12) translateY(var(--py, 0)); transition: transform 1.2s var(--ease); }
.card:hover .card__media img, .card:hover .card__gen { transform: scale(1.04) translateY(var(--py, 0)); }
.card__gen { background:
    radial-gradient(60% 70% at var(--gx, 30%) var(--gy, 30%), var(--c) 0%, transparent 70%),
    radial-gradient(50% 60% at 80% 85%, color-mix(in srgb, var(--c) 50%, var(--accent)) 0%, transparent 70%),
    linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--c) 20%, var(--bg)));
}
.card__gen span {
  position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 9vw, 9rem); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--text) 55%, transparent);
}
.card__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; align-items: baseline; }
.card__title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; margin: 0; }
.card__year { color: var(--muted); font-size: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 0; list-style: none; }
.tags li { font-size: .75rem; padding: .35em .8em; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--text) 20%, transparent); color: var(--muted); }

/* ---------- Services ---------- */
.services { padding: clamp(100px, 12vw, 180px) 0; }
.services__body { margin-top: clamp(40px, 6vw, 80px); }
.services__body p { margin: 0 0 1.2em; max-width: 42ch; font-size: 1.1rem; }
.services__list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.services__list li {
  counter-increment: s; display: grid; grid-template-columns: 60px 1fr 1fr; gap: 16px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); position: relative;
  transition: padding .5s var(--ease);
}
.services__list li:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.services__list li::before { content: "0" counter(s); font-size: .85rem; opacity: .5; }
.services__list li:hover { padding-left: 18px; }
.services__list h3 { margin: 0; font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 2.2rem); letter-spacing: -.02em; }
.services__list p { margin: 0; opacity: .7; font-size: 1rem; }

/* ---------- Marquee ---------- */
.marquee { padding: clamp(80px, 10vw, 160px) 0; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-speed, 40s) linear infinite; transform: skewX(var(--skew, 0deg)); }
.marquee__item {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(3.5rem, 11vw, 12rem); letter-spacing: -.045em; line-height: 1;
  white-space: nowrap; padding-right: .5em; display: flex; align-items: center; gap: .5em;
}
.marquee__item:nth-child(odd) { -webkit-text-stroke: 1.5px var(--text); color: transparent; }
.marquee__item::after { content: "✺"; color: var(--accent); font-size: .5em; -webkit-text-stroke: 0; }
@keyframes marquee { to { translate: -50% 0; } }

/* ---------- CTA ---------- */
.cta { padding: clamp(60px, 8vw, 120px) 0 clamp(100px, 14vw, 200px); text-align: center; }
.cta__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-size: clamp(2.4rem, 7vw, 7.5rem); margin: 0 auto clamp(40px, 6vw, 80px); max-width: 16ch; }
.cta__btn {
  display: inline-grid; place-items: center; width: clamp(160px, 18vw, 240px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); color: var(--bg); font-weight: 600; font-size: 1.05rem; padding: 20px; text-align: center;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.cta__btn:hover { background: var(--text); }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-radius: calc(var(--radius) * 2) calc(var(--radius) * 2) 0 0; padding: clamp(60px, 8vw, 110px) 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.footer address { font-style: normal; color: var(--muted); }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
.footer__contact { margin-bottom: 20px; }
.footer__contact a:hover, .footer__socials a:hover { color: var(--accent); }
.footer__socials { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.newsletter__title { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.newsletter__row { display: flex; gap: 8px; border-bottom: 1px solid color-mix(in srgb, var(--text) 30%, transparent); padding-bottom: 8px; }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; padding: 8px 0; }
.newsletter input:focus { outline: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(60px, 8vw, 120px); padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); color: var(--muted); font-size: .9rem; flex-wrap: wrap; }

/* ---------- Project dialog ---------- */
.project {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--text); overflow: hidden;
}
.project::backdrop { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(8px); }
.project__inner {
  position: absolute; inset: clamp(0px, 2vw, 24px); background: var(--bg); border-radius: calc(var(--radius) * 1.5);
  overflow-y: auto; transform: translateY(100%); transition: transform .9s var(--ease); overscroll-behavior: contain;
}
.project.is-open .project__inner { transform: none; }
.project:focus, .project__inner:focus { outline: none; }
.project__close { position: fixed; top: calc(clamp(0px, 2vw, 24px) + 18px); right: calc(clamp(0px, 2vw, 24px) + 18px); z-index: 3; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); font-size: 1.1rem; }
.project__hero { aspect-ratio: 21 / 9; position: relative; overflow: hidden; }
.project__hero img, .project__hero .card__gen { transform: none; }
.project__body { padding: clamp(32px, 5vw, 80px) var(--gutter); display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.project__body h2 { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 6rem); letter-spacing: -.04em; line-height: 1; margin: 0 0 .4em; grid-column: 1 / -1; }
.project__facts { list-style: none; padding: 0; margin: 0; }
.project__facts li { padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); }
.project__facts span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.project__desc { font-size: clamp(1.1rem, 1.6vw, 1.5rem); line-height: 1.45; margin: 0 0 1.5em; max-width: 40ch; }
.project__gallery { display: grid; gap: 20px; padding: 0 var(--gutter) var(--gutter); }
.project__gallery img { border-radius: var(--radius); width: 100%; }
.project__next { display: block; padding: clamp(40px, 6vw, 80px) var(--gutter); border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); width: 100%; text-align: left; }
.project__next span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; }
.project__next strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4.5rem); letter-spacing: -.04em; transition: color .3s; }
.project__next:hover strong { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .section-head, .project__body { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .services__list li { grid-template-columns: 40px 1fr; }
  .services__list li p { grid-column: 2; }
}
@media (max-width: 640px) {
  .projects { grid-template-columns: 1fr; }
  .projects .card:nth-child(even) { margin-top: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .header .btn--sm { display: none; }
  .project__hero { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
