:root{
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f2f3f6;
  --text: #111827;
  --muted: rgba(17, 24, 39, .62);
  --muted-2: rgba(17, 24, 39, .45);
  --border: rgba(17, 24, 39, .08);
  --shadow: 0 18px 50px rgba(17, 24, 39, .10);
  --shadow-soft: 0 10px 25px rgba(17, 24, 39, .08);
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 890px;
  /* Horizontale marge voor content (mobiel vriendelijk, schaalt mee met viewport). */
  --page-pad-x: clamp(16px, 5vw, 28px);
  --hero-title-bg-image: url("images/hdStj9whq0iunNA1Bl1DtD5NRDY.gif");
  /* Ruimte voor vaste header: top-offset + header-padding + nav-hoogte (ca.) */
  --site-header-stack: calc(14px + 14px + 8px + 56px);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
html{
  /* Ankers (#work, #contact, …) scrollen netjes onder de vaste header */
  scroll-padding-top: var(--site-header-stack);
  overflow-x: clip;
}
@supports not (overflow: clip){
  html{ overflow-x: hidden; }
}
body{
  margin: 0;
  font-family: var(--framer-font-family, Inter, "Inter Placeholder", sans-serif);
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
body.page-transition{
  opacity: 0;
  transition: opacity .24s ease;
}
body.page-transition.page-ready{
  opacity: 1;
}
body.page-transition.page-leaving{
  opacity: 0;
}
@supports not (overflow: clip){
  body{ overflow-x: hidden; }
}
#main{
  /* Voorkomt dat content onder de fixed header begint */
  padding-top: var(--site-header-stack);
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  width: min(100% - 2 * var(--page-pad-x), var(--container));
  margin-inline: auto;
}
@media (min-width: 1024px){
  .container{
    width: min(100% - 48px, var(--container));
  }
}
.container--wide{
  width: min(100% - 2 * var(--page-pad-x), 1100px);
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-soft);
}
.skip-link:focus{ left: 12px; z-index: 999; }

.site-header{
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px));
  left: env(safe-area-inset-left, 0px);
  right: env(safe-area-inset-right, 0px);
  z-index: 100;
  padding: 14px 0 8px;
  overflow: visible;
  /* Header-specific font stack (Framer-style) */
  font-family: var(--framer-font-family, Inter, "Inter Placeholder", sans-serif);
  max-width: 100%;
}

.nav{
  /* At the top: hide the nav container background so it blends into the hero. */
  background-color: rgba(255,255,255,0);
  border: 1px solid rgba(17,24,39,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  box-shadow: none;

  /* Flat by default; becomes rounded after scrolling. */
  border-radius: 0px;
  transition:
    background-color .35s ease,
    border-color .35s ease,
    backdrop-filter .35s ease,
    -webkit-backdrop-filter .35s ease,
    box-shadow .35s ease,
    border-radius .35s ease;
  padding: 12px 14px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (min-width: 641px){
  .nav{
    padding: 16px;
  }
}

.site-header--visible .nav{
  background-color: rgba(255,255,255,.78);
  border: 1px solid rgba(17,24,39,.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 10px 28px rgba(17,24,39,.10),
    0 2px 8px rgba(17,24,39,.06);
}

.site-header--scrolled .nav{
  border-radius: 999px;
  box-shadow:
    0 14px 40px rgba(17,24,39,.14),
    0 4px 14px rgba(17,24,39,.08);
}

.brand{
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
  /* Ruimte voor avatar buiten de flex-flow: nav-rijhoogte blijft gelijk */
  padding-left: calc(32px + 12px);
}
.avatar{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 62px;
  height: 62px;
  max-width: none;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}
.brand__text{
  display: grid;
  line-height: 19px;
  min-width: 0;
}
.brand__name,
.brand__role{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(200px, 42vw);
}
@media (min-width: 400px){
  .brand__name,
  .brand__role{
    max-width: min(220px, 52vw);
  }
}
.brand__name{ font-weight: 550; font-size: 14px; color: #50504E; }
.brand__role{ font-size: 12px; color: #898887; font-weight: 500; }

.nav__actions{
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(17,24,39,.07);
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.nav__toggle-line{
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #50504e;
  transition: transform .25s ease, opacity .2s ease;
}
.site-header.is-nav-open .nav__toggle-line:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-nav-open .nav__toggle-line:nth-child(2){
  opacity: 0;
}
.site-header.is-nav-open .nav__toggle-line:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}
.nav__menu{
  display: flex;
  align-items: center;
}
.nav__links{
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}
/* Geen overflow:hidden hier: dat duwt de pagina vaak naar boven bij open menu.
   Scroll-lock gebeurt in script.js (body position:fixed + scroll-positie bewaren). */
html.nav-open{
  overscroll-behavior: none;
}
.nav__link{
  font-size: 16px;
  font-weight: 500;
  color: #898887;
  padding: 8px 6px;
  border-radius: 10px;
  transition: color .2s ease;
}
.nav__link:hover{
  color: var(--primary);
}
.nav__link--active{ color: rgba(17,24,39,.92); font-weight: 600; }

.nav__socials-label{
  display: none;
}
.nav__socials{
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.nav__social{
  font-size: 13px;
  font-weight: 600;
  color: #898887;
  padding: 7px 12px;
  border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
}
.nav__social:hover{
  color: var(--primary);
  background: rgba(37,99,235,.08);
}
.nav__social:active{
  background: rgba(37,99,235,.12);
}

/* Desktop: Work/About gewone links; alleen LinkedIn als blauwe button. Dribbble/IG alleen mobiel. */
@media (min-width: 1025px){
  .nav__social--extra{
    display: none;
  }
  .nav__links{
    gap: 18px;
    flex-wrap: nowrap;
  }
  .nav__social:not(.nav__social--extra){
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: 1px solid transparent;
    box-shadow: 0 10px 22px rgba(17,24,39,.08);
    transition:
      transform .18s ease,
      box-shadow .18s ease,
      background-color .18s ease,
      color .2s ease;
  }
  .nav__social:not(.nav__social--extra):hover{
    color: #fff;
    background: var(--primary-2);
    box-shadow: 0 14px 26px rgba(37,99,235,.22);
    transform: translateY(-2px);
  }
  .nav__social:not(.nav__social--extra):active{
    transform: translateY(1px);
    background: var(--primary-2);
  }
  .nav__social:not(.nav__social--extra):focus-visible{
    outline: 2px solid rgba(37,99,235,.45);
    outline-offset: 3px;
  }
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  box-shadow: 0 10px 22px rgba(17,24,39,.08);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  user-select: none;
}
.btn:hover{
  transform: translateY(-3px);
}
.btn:active{ transform: translateY(1px); }
.btn:hover:active{ transform: translateY(-1px); }
.btn--primary{
  background: var(--primary);
  color: white;
}
.btn--primary:hover{
  background: var(--primary-2);
  box-shadow: 0 14px 26px rgba(37,99,235,.22);
}
.btn--ghost{
  background: rgba(255,255,255,.9);
  border-color: rgb(177, 176, 175);
  color: rgb(30, 68, 175);
}
.btn--ghost:hover{
  background: #fff;
  border-color: rgb(177, 176, 175);
}
.btn--small{ padding: 10px 16px; font-size: 14px; }
.btn--nav{ padding: 10px 14px;  font-size: 16px;
  font-weight: 500;
  color: #ffffff; }

.hero{
  padding: clamp(40px, 9vw, 70px) 0 clamp(28px, 7vw, 36px);
}
.hero--compact{
  padding: 46px 0 28px;
}
.hero__title--about{
  font-size: clamp(42px, 6vw, 72px);
  margin-bottom: 12px;
  background-image: none;
  background-clip: unset;
  -webkit-background-clip: unset;
  color: var(--text);
  -webkit-text-fill-color: unset;
}
.hero__title--about .hero__dot{ color: #dc2626; }
.hero__inner{
  display: grid;
  gap: 24px;
}
.hero__content{ max-width: 820px; }
.hero__title{
  font-size: clamp(56px, 7.6vw, 94px);
  line-height: .92;
  margin: 0 0 18px;
  letter-spacing: -0.04em;
  font-weight: 800;
  /* Set --hero-title-bg-image: url("...gif") to fill the title with an image/GIF */
  background-image: var(--hero-title-bg-image), linear-gradient(#dc2626, #dc2626);
  background-size: cover, 100% 100%;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero__dot{ color: #dc2626; }
.hero__headline{
  font-size: clamp(20px, 5.2vw, 28px);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: #5E5D5C;
}
.hero__copy{
  margin: 0 0 12px;
  color: #898887;
  font-size: clamp(16px, 4.2vw, 18px);
  font-weight: 500;
  line-height: 1.7;
  max-width: 72ch;
}
.hero__actions{
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.clients{
  padding: 6px 0 clamp(32px, 8vw, 40px);
}
.clients__label{
  text-align: center;
  color: var(--muted-2);
  font-size: 14px;
  margin: 0 0 14px;
  color: #50504E;
  font-weight: 500;
}
.marquee{
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.08);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.marquee__track{
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  width: max-content;
}
.logo-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255,255,255,.96), rgba(246,248,255,.92));
  border: 1px solid rgba(17,24,39,.08);
  color: rgba(17,24,39,.72);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 10px 18px rgba(17,24,39,.08);
}
.logo{
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(17,24,39,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.logo-text{ opacity: .9; }

.work{
  padding: clamp(28px, 6vw, 36px) 0 clamp(40px, 9vw, 50px);
}
.section-head{
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.section-title{
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.section-sub{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.work-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.work-card{
  display: flex;
  flex-direction: column;
  gap: 14px; /* constant spacing between image + body */
  align-items: stretch;
  background: transparent;
}
.work-card--link{
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 0;
}
.work-card--link:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 6px;
  border-radius: 8px;
}
.work-card--link:hover .work-card__title{
  color: rgba(17,24,39,.55);
}

.work-card1{
  display: grid;
  gap: 14px;
  background: transparent;
}

.work-card2{
  display: grid;
  gap: 14px;
  background: transparent;
}
.work-card3{
  display: grid;
  gap: 14px;
  background: transparent;
}

.work-card__media{
  border-radius: var(--radius-xl);
  overflow: hidden; /* ensures the image itself clips to the rounded corners */
  border: 1px solid rgba(17,24,39,.06);
  box-shadow: 0 16px 36px rgba(17,24,39,.08);
  aspect-ratio: var(--work-media-aspect, 16/9);
}

.work-card__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
  transform: scale(1.01);
}

.work-card:hover .work-card__img{
  transform: scale(1.06);
}

.work-card__body{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 20px;
  align-items: start;
  padding-top: 4px;
  background: transparent;
  padding: 10px;
}

.work-card__content{
  display: grid;
  gap: 6px;
  min-width: 0;
}

.work-card__aside{
  flex-shrink: 0;
  text-align: right;
  padding-top: 2px;
}

.work-card__tag{
  font-size: 13px;
  font-weight: 600;
  color: rgba(17,24,39,.52);
  letter-spacing: -0.01em;
}

.work-card__year{
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #B1B0AF;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.work-card__title{
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #B1B0AF;
}

.work-card__desc{
  margin: 4px 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  color: #50504E;
}

/* Project case study — minimal wide layout (reference case page) */
.page-project{
  background: #fff;
  /* Beelden mogen breder dan de tekst-container (890px), tot 1080px. */
  --project-media-max: 1080px;
}
.project-case{
  padding: 28px 0 clamp(72px, 12vw, 120px);
}
.project-case__inner{
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 44px);
}
.project-case__hero{
  padding-top: 8px;
}
.project-case__back{
  display: inline-flex;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #6b6f76;
  transition: color .2s ease;
}
.project-case__back:hover{
  color: #1f2937;
}
.project-case__eyebrow{
  margin: 50px 0 14px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #898887;
}
.project-case__title{
  margin: 0 0 18px;
  max-width: min(100%, 22em);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.05;
  color: #50504E;
}
.project-case__lede{
  margin: 0;
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.65;
  font-weight: 500;
  color: #898887;
}
.project-case__hero-media{
  margin: 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--project-media-max), 100vw - 2 * var(--page-pad-x));
  border-radius: clamp(20px, 2.4vw, 28px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(145deg, #fce7f3, #fbcfe8 45%, #fdf2f8),
    radial-gradient(80% 120% at 20% 0%, rgba(244,114,182,.35), transparent 55%);
  box-shadow: 0 24px 60px rgba(17,24,39,.1);
}
.project-case__hero-media img{
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background-color: white;
}
.project-case__meta{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px) clamp(20px, 3vw, 40px);
  padding: clamp(8px, 2vw, 12px) 0 0;
}
.project-case__meta-col{
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 32px);
}
.project-case__meta-block{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-case__meta-label{
  font-size: 18px;
  font-weight: 600;
  color: #50504E;

}
.project-case__meta-value{
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  color: #898887;
}
.project-case__intro{
  padding: clamp(12px, 2vw, 20px) 0 0;
}
.project-case__intro-heading{
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 600;
  color: #50504E;
}
.project-case__intro-body{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.project-case__intro-body p{
  margin: 0;
  font-size: 18px;
  line-height: 1.72;
  font-weight: 500;
  color: #898887;
}
.project-case__gallery{
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
  padding-top: clamp(8px, 2vw, 16px);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--project-media-max), 100vw - 2 * var(--page-pad-x));
}
.project-case__gallery-split{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}
.project-case__figure{
  margin: 0;
  border-radius: clamp(20px, 2.4vw, 28px);
  overflow: hidden;
  background: #dfe1e6;
  aspect-ratio: 1;
  box-shadow: 0 18px 44px rgba(17,24,39,.08);
}
.project-case__figure--wide{
  aspect-ratio: 16 / 9;
}
.project-case__figure img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-end{
  margin-top: clamp(36px, 7vw, 64px);
  width: 100%;
  background: #050608;
  color: #e8eaee;
}
.project-end__panel{
  width: 100%;
  margin: 0;
  padding: clamp(56px, 10vw, 88px) 0 clamp(44px, 8vw, 62px);
  position: relative;
  overflow: hidden;
  background: transparent;
}
.project-end__panel::before{
  content: "";
  position: absolute;
  inset: auto -18% -42% 28%;
  height: clamp(180px, 26vw, 300px);
  background: radial-gradient(closest-side, rgba(255,255,255,.14), rgba(255,255,255,0));
  pointer-events: none;
}
.project-end__panel::after{
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 10% 20%, rgba(255,255,255,.07), transparent 50%),
    radial-gradient(ellipse 90% 60% at 90% 80%, rgba(255,255,255,.05), transparent 45%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(255,255,255,.018) 18px,
      rgba(255,255,255,.018) 19px
    );
  mix-blend-mode: soft-light;
}
.project-end__grid{
  position: relative;
  z-index: 1;
  width: min(var(--project-media-max, 1080px), 100vw - 2 * var(--page-pad-x));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.project-end__title{
  margin: 0;
  max-width: 16ch;
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #f2f4f7;
}
.project-end__copy{
  max-width: 46ch;
  color: rgba(232,234,238,.74);
  font-size: clamp(15px, 2.2vw, 20px);
  line-height: 1.62;
  margin-top: 0px;
}
.project-end__mail{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f2f4f7;
  font-weight: 600;
  font-size: 18px;
}
.project-end__mail::after{
  content: ">";
  color: rgba(232,234,238,.64);
}
.project-end__mail-text{
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .24s ease, transform .24s ease;
}
.project-end__mail--external::after{
  content: "↗";
  font-size: 0.95em;
  text-decoration: none;
  transition: color .24s ease, transform .24s ease;
}
.project-end__mail:hover{
  color: #ffffff;
}
.project-end__mail:hover .project-end__mail-text{
  color: #2563eb;
  transform: translateX(1px);
}
.project-end__mail:hover::after{
  color: #2563eb;
  transform: translate(2px, -2px);
}

.page-project .footer{
  margin-top: 0;
  background: #000;
}
.page-project .footer__inner{
  width: min(var(--project-media-max, 1080px), 100vw - 2 * var(--page-pad-x));
}

@media (max-width: 900px){
  .project-case__meta{
    grid-template-columns: 1fr 1fr;
  }
  .project-case__meta-col:last-child{
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 22px 32px;
  }
  .project-end__panel{
    padding: clamp(44px, 12vw, 62px) 0 clamp(34px, 9vw, 48px);
  }
  .project-end__grid{
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .project-end__title{
    max-width: none;
  }
}
@media (max-width: 640px){
  .project-case__meta{
    grid-template-columns: 1fr;
  }
  .project-case__meta-col:last-child{
    flex-direction: column;
  }
  .project-case__gallery-split{
    grid-template-columns: 1fr;
  }
  .project-case__hero-media,
  .project-case__gallery{
    width: 100vw;
    max-width: 100vw;
  }
  .project-case__hero-media,
  .project-case__figure{
    border-radius: 0;
  }
  .project-case__figure{
    aspect-ratio: 4 / 3;
  }
  .project-case__figure--wide{
    aspect-ratio: 16 / 10;
  }
  .project-case__hero-media{
    aspect-ratio: 16 / 10;
  }
}

.card{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(17,24,39,.04);
  box-shadow: 0 16px 36px rgba(17,24,39,.08);
  overflow: hidden;
  transform: translateZ(0);
}
.card__link{
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
}
.card__media{
  min-height: 320px;
  display: grid;
  place-items: start center;
  padding: 26px 0 0;
  position: relative;
}

.card--mint{ background: #dfeee0; }
.card--sky{ background: #d9e7f3; }
.card--peach{ background: #fde9e4; }
.card--stone{ background: #e7e7ea; }

.device{
  width: min(250px, 72%);
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  background:
    radial-gradient(140px 90px at 60% 28%, rgba(255, 64, 64, .95), transparent 60%),
    radial-gradient(160px 110px at 55% 52%, rgba(255, 90, 170, .55), transparent 65%),
    radial-gradient(180px 120px at 52% 74%, rgba(255, 90, 90, .40), transparent 70%),
    linear-gradient(180deg, rgba(20,20,22,.96), rgba(20,20,22,.92));
  box-shadow: 0 26px 50px rgba(17,24,39,.18);
  position: relative;
  border: 10px solid rgba(255,255,255,.86);
}
.device::before{
  content:"";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 18px;
  border-radius: 999px;
  background: rgba(0,0,0,.30);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.device--glow{
  box-shadow: 0 26px 60px rgba(37,99,235,.18), 0 26px 50px rgba(17,24,39,.16);
}
.device--soft{
  background:
    radial-gradient(160px 120px at 55% 42%, rgba(255, 210, 110, .55), transparent 65%),
    radial-gradient(180px 130px at 48% 70%, rgba(59, 130, 246, .35), transparent 70%),
    linear-gradient(180deg, rgba(24,24,28,.96), rgba(24,24,28,.92));
}
.device--tablet{
  width: min(320px, 85%);
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  border-width: 12px;
  background:
    radial-gradient(200px 140px at 50% 45%, rgba(34,211,238,.30), transparent 70%),
    radial-gradient(220px 160px at 55% 62%, rgba(168,85,247,.30), transparent 70%),
    linear-gradient(180deg, rgba(20,20,22,.96), rgba(20,20,22,.92));
}
.device--tablet::before{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  top: 14px;
  left: 18px;
  transform: none;
}

.card:hover{
  box-shadow: 0 26px 70px rgba(17,24,39,.14);
}

.work-caption{
  /* Geen harde witte balk, wel een subtiele glass-to-solid overgang */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.20) 55%,
    rgba(255,255,255,.28) 100%
  );
  border-top: 0;
  padding: 16px 18px 18px;
}
.work-caption__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.work-caption__tag{
  font-weight: 600;
  font-size: 13px;
  color: rgba(17,24,39,.55);
}
.work-caption__year{
  font-weight: 600;
  color: rgba(17,24,39,.42);
  font-size: 12px;
}
.work-caption__title{
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: rgba(17,24,39,.9);
}

.cta{
  padding: clamp(16px, 4vw, 18px) 0 clamp(24px, 7vw, 32px);
  width: 100%;
}
.cta__panel{
  width: min(100% - 2 * var(--page-pad-x), var(--container));
  margin-inline: auto;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 14vw, 110px) clamp(22px, 7vw, 58px);
  background-image: url('img/Image.png');
  background-size: cover;
  color: rgba(255,255,255,.92);
  text-align: center;
  box-shadow: 0 26px 60px rgba(17,24,39,.24);
  position: relative;
  overflow: hidden;
}
.cta__panel::after{
  content:"";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 220px;
  background: radial-gradient(closest-side, rgba(255,255,255,.20), transparent 70%);
  filter: blur(10px);
  opacity: .6;
}
.cta__title{
  margin: 0 0 10px;
  font-size: clamp(26px, 7.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.cta__copy{
  margin: 0 auto 18px;
  max-width: 70ch;
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  font-size: clamp(16px, 4vw, 18px);
}

.about, .cv{
  padding: 34px 0 46px;
}
.about__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.about__card{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
}
.about__card h3{
  margin: 0 0 8px;
  font-size: 14px;
}
.about__card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.cv__list{
  display: grid;
  gap: 10px;
}
.cv__item{
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(17,24,39,.08);
  box-shadow: var(--shadow-soft);
}
.cv__role{ font-weight: 650; font-size: 14px; }

/* About me – two-column layout */
.about-me{
  padding: 48px 0 72px;
}
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-col{
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.about-photo{
  margin: 0;
  border-radius: 40px;
  overflow: hidden;
}
.about-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-photo--tall{
  aspect-ratio: 4 / 5;
  min-height: 360px;
}
.about-photo--large{
  aspect-ratio: 1 / 1;
  min-height: 400px;
}
.about-block{
  padding: 0;
}
.about-block__title{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #374151;
}
.about-block__text{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

@media (max-width: 900px){
  .about-grid{
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-col{
    gap: 32px;
  }
  .about-photo--tall{
    min-height: 320px;
  }
  .about-photo--large{
    min-height: 340px;
  }
}

@media (max-width: 520px){
  .about-me{
    padding: 32px 0 56px;
  }
  .about-photo{
    border-radius: 28px;
  }
}

.cv__company{ color: var(--muted); font-size: 14px; }
.cv__year{ color: rgba(17,24,39,.45); font-size: 13px; }

/* About page – two-column staggered layout */
body.page-about{
  background: #ffffff;
}
.about-page{
  padding: clamp(32px, 8vw, 48px) 0 clamp(48px, 12vw, 72px);
}
.about-page__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-page__col{
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.about-page__col--right{
  padding-top: 180px;
}
.about-page__photo{
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  background: #e8e6e3;
}
.about-page__photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 6;
}
.about-page__block{
  padding: clamp(14px, 3.5vw, 20px);
}
.about-page__title{
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #555555;
}
.about-page__text{
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 500;
  color: #898887;
}
.about-page__text:last-child{
  margin-bottom: 0;
}

.about-stats{
  padding: clamp(8px, 3vw, 12px) 0 clamp(40px, 12vw, 64px);
}
.about-stats__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.about-stats__item{
  display: grid;
  gap: 8px;
}
.about-stats__value{
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #555555;
}
.about-stats__label{
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: #898887;
  font-weight: 500;
}

.about-experience{
  padding: clamp(4px, 2vw, 8px) 0 clamp(48px, 14vw, 84px);
}
.about-experience__eyebrow{
  margin: 0 0 56px;
  font-size: 14px;
  font-weight: 500;
  color: #9f9f9f;
}
.about-experience__list{
  display: grid;
  gap: 76px;
}
.about-experience__row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.about-experience__row--block{
  padding: clamp(18px, 4vw, 24px) clamp(18px, 4vw, 26px);
  border-radius: 20px;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(17,24,39,.05);
}
.about-experience__row--blue{
  background: linear-gradient(180deg, rgba(37,99,235,.09), rgba(37,99,235,.04));
  border-color: rgba(37,99,235,.16);
}
.about-experience__row--violet{
  background: linear-gradient(180deg, rgba(124,58,237,.09), rgba(124,58,237,.04));
  border-color: rgba(124,58,237,.15);
}
.about-experience__row--mint{
  background: linear-gradient(180deg, rgba(16,185,129,.09), rgba(16,185,129,.04));
  border-color: rgba(16,185,129,.15);
}
.about-experience__row--peach{
  background: linear-gradient(180deg, rgba(245,158,11,.10), rgba(245,158,11,.04));
  border-color: rgba(245,158,11,.16);
}
.about-experience__row--sky{
  background: linear-gradient(180deg, rgba(14,165,233,.10), rgba(14,165,233,.04));
  border-color: rgba(14,165,233,.16);
}
.about-experience__group--fontys{
  display: grid;
  gap: 56px;
  padding: 6px 0;
}
.about-experience__company{
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #5f5f5f;
}
.about-experience__meta{
  display: grid;
  gap: 12px;
}
.about-experience__role{
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 500;
  color: #656565;
}
.about-experience__year{
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 600;
  color: #878787;
}
.about-experience__desc{
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  color: #898887;
}

@media (max-width: 900px){
  .about-page__grid{
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-page__col--right{
    padding-top: 0;
  }
  .about-page__col{
    gap: 32px;
  }
  .about-stats > .container{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .about-stats .about-experience__eyebrow{
    text-align: left;
    width: 100%;
  }
  .about-stats__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    width: 100%;
    max-width: min(100%, 520px);
    margin-inline: auto;
    justify-items: center;
  }
  .about-stats__item{
    text-align: center;
    max-width: 240px;
  }
  .about-experience{
    padding: 4px 0 68px;
  }
  .about-experience__eyebrow{
    margin-bottom: 36px;
    font-size: 15px;
  }
  .about-experience__list{
    gap: 48px;
  }
  .about-experience__row{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .about-experience__group--fontys{
    gap: 48px;
    padding: 0;
  }
}

@media (max-width: 520px){
  .about-page{
    padding: 32px 0 56px;
  }
  .about-page__photo{
    border-radius: 24px;
  }
  .about-stats{
    padding: 6px 0 48px;
  }
  .about-stats__grid{
    grid-template-columns: 1fr;
    max-width: min(100%, 360px);
    justify-items: center;
  }
  .about-stats__item{
    max-width: min(100%, 320px);
  }
  .about-stats__label{
    font-size: 16px;
  }
  .about-experience{
    padding: 0 0 54px;
  }
  .about-experience__company{
    font-size: clamp(22px, 6.2vw, 28px);
  }
  .about-experience__role{
    font-size: clamp(16px, 4.4vw, 20px);
  }
  .about-experience__year{
    font-size: 15px;
  }
  .about-experience__desc{
    font-size: 16px;
    line-height: 1.55;
  }
}

.footer{
  padding: clamp(20px, 5vw, 24px) 0 max(28px, env(safe-area-inset-bottom, 0px));
  color: #B1B0AF;
  font-size: 14px;
}
.footer__inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 1024px){
  .footer{
    text-align: center;
  }
  .footer__inner{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }
  .footer__links{
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer__copy{
    width: 100%;
  }
}
.footer__links{
  display: flex;
  gap: 25px;
}
.footer__links a{
  font-size: 16px;
  color: #B1B0AF;
  transition: color .2s ease, transform .2s ease;
  font-weight: 500;
}
.footer__links a:hover{
  color: #2563eb;
  transform: translateY(-2px);
}
.footer__links a:focus-visible{
  color: rgba(17,24,39,.88);
  outline: 2px solid rgba(37,99,235,.45);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 1024px){
  /* Hogere header door 62px-avatar + nav-padding (ankers / sticky offset). */
  :root{
    --site-header-stack: calc(14px + 14px + 8px + 86px);
  }
  .site-header--scrolled .nav{
    border-radius: 22px;
  }
  .nav{
    flex-wrap: nowrap;
  }
  .nav__toggle{
    display: inline-flex;
    position: relative;
    z-index: 120;
    touch-action: manipulation;
  }
  /* Volledig scherm-menu: header blijft boven het overlay én leesbaar (geen doorzichtige nav). */
  .site-header.is-nav-open{
    z-index: 10001;
    pointer-events: auto;
  }
  .site-header.is-nav-open .nav{
    background-color: rgba(255,255,255,.94);
    border: 1px solid rgba(17,24,39,.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
      0 12px 32px rgba(17,24,39,.14),
      0 2px 10px rgba(17,24,39,.08);
  }
  .site-header.is-nav-open.site-header--scrolled .nav{
    border-radius: 22px;
  }
  .site-header.is-nav-open:not(.site-header--scrolled) .nav{
    border-radius: 18px;
  }
  /* Zit op mobiel vaak onder <body> (JS) zodat backdrop-filter op .nav het niet clipt. */
  #site-nav-menu.nav__menu{
    position: fixed;
    inset: 0;
    min-height: 100dvh;
    min-height: 100vh;
    z-index: 10000;
    margin: 0;
    padding: calc(var(--site-header-stack) + 16px) max(10px, env(safe-area-inset-left, 0px)) 36px
      max(10px, env(safe-area-inset-right, 0px));
    padding-bottom: max(36px, env(safe-area-inset-bottom, 0px));
    background: linear-gradient(
      165deg,
      rgba(241,245,249,.72) 0%,
      rgba(255,255,255,.38) 50%,
      rgba(248,250,252,.55) 100%
    );
    backdrop-filter: blur(22px) saturate(1.06);
    -webkit-backdrop-filter: blur(22px) saturate(1.06);
    align-items: center;
    justify-content: center;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .26s ease, visibility .26s ease;
  }
  #site-nav-menu.nav__menu.nav__menu--open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  /* Vult de overlay bijna volledig: geen 890px-cap, smallere zij-marges = groter wit vlak. */
  .nav__links{
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    gap: 0;
    padding: 0;
    background: #fff;
    border: 1px solid rgba(17,24,39,.07);
    border-radius: clamp(28px, 6vw, 38px);
    box-shadow:
      0 40px 80px rgba(17,24,39,.14),
      0 16px 32px rgba(17,24,39,.07),
      0 0 0 1px rgba(255,255,255,.85) inset;
    justify-content: flex-start;
    overflow: hidden;
    min-height: min(68dvh, 720px);
  }
  .nav__link{
    padding: clamp(22px, 5vw, 30px) clamp(26px, 6vw, 36px);
    font-size: clamp(19px, 4.8vw, 22px);
    font-weight: 650;
    letter-spacing: -0.025em;
    border-radius: 0;
    text-align: left;
    width: 100%;
    max-width: none;
    color: #50504e;
    border-bottom: 1px solid rgba(17,24,39,.07);
    transition: background-color .18s ease, color .18s ease;
  }
  .nav__link:last-of-type{
    border-bottom: none;
  }
  .nav__link:hover{
    color: var(--primary);
    background: rgba(37,99,235,.04);
  }
  .nav__link:active{
    background: rgba(37,99,235,.07);
  }
  .nav__socials-label{
    display: block;
    width: 100%;
    margin: 0;
    margin-top: auto;
    padding: clamp(20px, 4.5vw, 26px) clamp(26px, 6vw, 36px) 12px;
    text-align: left;
    font-size: clamp(12px, 2.8vw, 13px);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #898887;
    background: linear-gradient(180deg, rgba(248,250,252,.95) 0%, #f4f4f3 100%);
    border-top: 1px solid rgba(17,24,39,.07);
  }
  .nav__socials{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 3vw, 16px);
    width: 100%;
    margin: 0;
    padding: 0 clamp(18px, 5vw, 26px) clamp(22px, 4vw, 28px);
    background: #f4f4f3;
    border: 0;
  }
  .nav__social{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(52px, 12vw, 58px);
    padding: 12px 10px;
    font-size: clamp(14px, 3.4vw, 16px);
    font-weight: 650;
    letter-spacing: -0.01em;
    border-radius: clamp(14px, 3vw, 18px);
    color: #50504e;
    background: #fff;
    border: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 6px 16px rgba(17,24,39,.06);
    transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
  }
  .nav__social:hover{
    color: var(--primary);
    border-color: rgba(37,99,235,.35);
    box-shadow: 0 8px 22px rgba(37,99,235,.14);
  }
  .nav__social:active{
    background: rgba(37,99,235,.06);
  }
}

@media (max-width: 860px){
  .work-grid{
    grid-template-columns: 1fr;
    gap: clamp(16px, 4vw, 18px);
  }
  .card__media{ min-height: 300px; }
  .about__grid{ grid-template-columns: 1fr; }
  .cv__item{ grid-template-columns: 1fr; gap: 6px; }
  .cta__panel{
    padding: clamp(36px, 10vw, 56px) clamp(18px, 5vw, 28px);
    width: min(100% - 2 * var(--page-pad-x), var(--container));
  }
  .hero__actions{
    justify-content: flex-start;
  }
  .hero__actions .btn{
    flex: 0 0 auto;
    min-width: 0;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
  }
}

@media (max-width: 600px){
  .project-case{
    padding-top: 16px;
  }
  .about-page__block{
    padding: clamp(12px, 3vw, 16px) 0;
  }
  .about-page__text{
    font-size: clamp(16px, 4.2vw, 18px);
  }
}

@media (max-width: 640px){
  .marquee__track{
    gap: 16px;
    padding: 14px 14px;
  }
  .logo-pill{
    padding: 9px 12px;
    font-size: 12px;
  }
  .work-card__body{
    padding: 12px 2px 10px;
  }
  .project-case{
    padding-bottom: clamp(56px, 16vw, 96px);
  }
  .project-case__back{
    font-size: 12px;
  }
  .project-case__eyebrow{
    margin: 26px 0 10px;
    font-size: 20px;
  }
  .project-case__title{
    font-size: clamp(30px, 8.2vw, 32px);
    line-height: 1.1;
  }
  .project-case__lede{
    font-size: 18px;
    line-height: 1.6;
  }
  .project-case__meta-label{
    font-size: 14px;
  }
  .project-case__meta-value{
    font-size: 14px;
  }
  .project-case__intro-heading{
    font-size: 14px;
  }
  .project-case__intro-body p{
    font-size: 18px;
    line-height: 1.62;
  }
  .project-end__title{
    font-size: clamp(30px, 10.5vw, 32px);
    line-height: 1.2;
  }
  .project-end__panel{
    padding: 100px 30px 100px 30px;
  }
  .project-end__copy{
    font-size: 20px;
    margin-bottom: 35px;
  }
  .project-end__mail{
    font-size: 20px;
  }
  .page-project .footer{
    font-size: 13px;
  }
  .page-project .footer__links a{
    font-size: 15px;
  }
  .btn{
    min-height: 44px;
  }
  .cta__copy{
    padding: 13px;
  }
}

@media (max-width: 480px){
  .brand__name,
  .brand__role{
    max-width: min(170px, calc(100vw - 132px));
  }
  .footer__links{
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .footer__links a{
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
  }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
