/* ---------- fonts ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets/fonts/archivo-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plex';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/plex-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --ink: #12171f;
  --ink-soft: #46536480;
  --muted: #47535f;
  --paper: #f6f7f8;
  --paper-2: #ffffff;
  --line: #d9dee3;
  --deep: #0e141b;
  --deep-2: #161f29;
  --blue: #1b4f9c;
  --blue-dark: #153f7d;
  --blue-light: #58b4e8;
  --shell: 1200px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --head-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-tap-highlight-color: rgba(27, 79, 156, .18);
}

/* de vaste balk mag een aangesprongen sectie niet afdekken */
[id] { scroll-margin-top: calc(var(--head-h) + 1.25rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 'Plex', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

a, button, input, textarea, summary, label { touch-action: manipulation; }

::selection { background: var(--blue); color: #fff; }
.band ::selection, .contact ::selection, .site-foot ::selection, .hero ::selection {
  background: var(--blue-light);
  color: #06131d;
}
input, textarea { caret-color: var(--blue-light); }



:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: max(var(--gut), env(safe-area-inset-left));
  padding-right: max(var(--gut), env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: .75rem 1.25rem;
  font-weight: 600;
}
.skip:focus { left: 0; }

.sec-title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  margin-bottom: 1.75rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.5rem;
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-ghost { background: rgba(14, 20, 27, .45); color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: #fff; color: var(--deep); border-color: #fff; }

.btn-accent { background: var(--blue-light); color: #06131d; border-color: var(--blue-light); }
.btn-accent:hover { background: #82c9f0; border-color: #82c9f0; }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn-sm { padding: .62rem 1.05rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--head-h);
  background: rgba(246, 247, 248, 0);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-head.is-stuck {
  background: rgba(246, 247, 248, .92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}

.head-inner {
  height: var(--head-h);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.brand { flex: none; display: block; }
.brand img { width: 168px; height: auto; }
.brand { text-decoration: none; }
.wordmark { display: inline-flex; flex-direction: column; font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; font-size: 1.7rem; line-height: .95; letter-spacing: -0.01em; text-transform: uppercase; color: var(--blue); white-space: nowrap; transition: color .2s var(--ease); }
.wordmark small { font-size: .52em; font-weight: 600; letter-spacing: .16em; color: #9a7f52; margin-top: .25em; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.nav a {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
  padding: .6rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s var(--ease);
}
.nav a:hover { border-bottom-color: var(--blue); }

/* header sits over the photo hero until scrolled */
.site-head:not(.is-stuck) .nav a { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.site-head:not(.is-stuck) .brand img { filter: brightness(0) invert(1); }
.site-head:not(.is-stuck) .wordmark, .site-head:not(.is-stuck) .wordmark small { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }

.head-cta { flex: none; }

.burger {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.site-head:not(.is-stuck) .burger span { background: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(92dvh, 860px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--head-h) + 3rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  background: var(--deep);
}
.hero-media {
  position: absolute;
  inset: -6% 0;
  z-index: 0;
  will-change: transform;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 13, 18, .72) 0%, rgba(8, 13, 18, .28) 34%, rgba(8, 13, 18, .82) 100%),
    linear-gradient(90deg, rgba(8, 13, 18, .6) 0%, rgba(8, 13, 18, 0) 62%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; }

.hero-title {
  font-size: clamp(2rem, 5.1vw, 3.9rem);
  font-weight: 900;
  letter-spacing: -0.032em;
  max-width: 26ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero-sub {
  margin-top: 1.25rem;
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: #eef2f5;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .5);
}
.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

/* ---------- intro ---------- */
.intro { padding: clamp(4rem, 9vw, 7rem) 0 0; }
.lede {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.9vw, 2.05rem);
  line-height: 1.32;
  letter-spacing: -0.021em;
  max-width: 34ch;
  text-wrap: pretty;
}

/* ---------- services bento ---------- */
.services { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.bento {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .bento { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
  .cell-lg { grid-row: span 2; }
  .bento .cell-lg .cell-img { flex: 1 1 auto; min-height: 0; }
  .bento .cell-lg .cell-img img { height: 100%; aspect-ratio: auto; }
}

.cell {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.cell:hover {
  transform: translateY(-4px);
  border-color: #b9c3cc;
  box-shadow: 0 18px 44px rgba(18, 23, 31, .12);
}
.cell-img { overflow: hidden; background: var(--deep-2); }
.cell-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform .6s var(--ease);
}
.cell-lg .cell-img img { aspect-ratio: 4 / 3; }
.cell:hover .cell-img img { transform: scale(1.045); }

.cell-body { padding: clamp(1.4rem, 2.4vw, 2rem); }
.cell-body h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: .65rem;
}
.cell-body h3::after {
  content: "";
  display: block;
  width: 62px;
  height: 3px;
  margin-top: .7rem;
  background: var(--blue);
  transform: scaleX(.548);
  transform-origin: left center;
  transition: transform .4s var(--ease);
}
.cell:hover .cell-body h3::after { transform: scaleX(1); }
.cell-body p { color: var(--muted); max-width: 52ch; }

/* ---------- band ---------- */
.band {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
  padding: clamp(4.5rem, 12vw, 8.5rem) 0;
}
.band-media { position: absolute; inset: -8% 0; z-index: 0; will-change: transform; }
.band-media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(14, 20, 27, .92) 0%, rgba(14, 20, 27, .6) 70%, rgba(14, 20, 27, .8) 100%);
}
.band-inner { position: relative; z-index: 2; }
.band-lead {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4.6vw, 3.2rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.band-body {
  margin-top: 1.5rem;
  max-width: 56ch;
  color: #cfd8e0;
  font-size: 1.03rem;
}

/* ---------- supply ---------- */
.supply { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.supply-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .supply-grid { grid-template-columns: 1fr 1fr; } }

.supply-group h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.chips li {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  padding: .6rem 1.1rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* ---------- work rail ---------- */
.work { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 7rem); }
.work-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 1.5rem; }
.work-head .sec-title { margin-bottom: 1.25rem; }

.rail {
  list-style: none;
  margin: 0;
  padding: 1.25rem max(var(--gut), env(safe-area-inset-right)) 1.25rem
           max(var(--gut), env(safe-area-inset-left), calc((100vw - var(--shell)) / 2 + var(--gut)));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(300px, 38vw, 560px);
  gap: clamp(.75rem, 1.5vw, 1.25rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
/* de band stuurt zichzelf, dus geen scrollbalk */
.rail::-webkit-scrollbar { width: 0; height: 0; display: none; }

.rail > li {
  position: relative;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.rail > li:hover,
.rail > li:focus-within {
  transform: scale(1.06);
  z-index: 2;
  box-shadow: 0 22px 50px rgba(18, 23, 31, .22);
}
.rail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--deep-2);
}

/* de strip loopt tot de schermrand door, vandaar het uitstappen uit .shell */
.rail.is-live { padding-right: 0; }

@media (max-width: 700px) {
  .rail { grid-auto-columns: 82vw; }
  .rail > li:hover { transform: none; box-shadow: none; }
}
@media (hover: none) {
  .rail > li:hover { transform: none; box-shadow: none; }
}

/* ---------- contact ---------- */
.contact {
  background: var(--deep);
  color: #fff;
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr .9fr; } }

.contact-title { color: #fff; }
.contact-lead { max-width: 40ch; color: #cfd8e0; font-size: 1.08rem; }
.contact-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}
.contact-address {
  margin-top: 2.25rem;
  font-style: normal;
  color: #aebac6;
  line-height: 1.8;
}

/* ---------- form ---------- */
.form {
  background: var(--deep-2);
  border: 1px solid #2b3846;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: .45rem; }
.field label {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 600;
  font-size: .88rem;
  color: #e4eaf0;
}
.field input,
.field textarea {
  font: inherit;
  color: #fff;
  background: #0b1219;
  border: 1px solid #5a6d81;
  border-radius: 0;
  padding: .75rem .9rem;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover,
.field textarea:hover { border-color: #7d92a8; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 1px; }

.form-note {
  min-height: 1.2rem;
  font-size: .92rem;
  color: #cfd8e0;
}
.form-note.is-on {
  color: #06131d;
  background: var(--blue-light);
  padding: .7rem .9rem;
  font-weight: 500;
}

/* ---------- footer ---------- */
.site-foot {
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  background: #0a1016;
  color: #9fb0bf;
  padding: 2.5rem 0;
  border-top: 1px solid #1c2733;
}
.foot-inner { display: grid; gap: .75rem; }
.foot-name {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: #fff;
}
.foot-meta { font-size: .95rem; line-height: 1.9; }
.foot-meta a {
  display: inline-block;
  padding: .55rem 0;
  color: #cfe3f4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.foot-meta a:hover { color: #fff; }

/* ---------- mobile nav ---------- */
@media (max-width: 860px) {
  .burger { display: block; margin-left: auto; }
  .head-cta { display: none; }
  .nav {
    position: fixed;
    inset: var(--head-h) 0 auto 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(18, 23, 31, .16);
    padding: .5rem var(--gut) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .site-head:not(.is-stuck) .nav a { color: var(--ink); text-shadow: none; }
  .nav a {
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav a:last-child { border-bottom: 0; }
  .site-head:has(.nav.is-open) {
    background: rgba(246, 247, 248, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .site-head:has(.nav.is-open) .brand img { filter: none; }
  .site-head:has(.nav.is-open) .wordmark { color: var(--blue); text-shadow: none; }
  .site-head:has(.nav.is-open) .wordmark small { color: #9a7f52; text-shadow: none; }
  .site-head:has(.nav.is-open) .burger span { background: var(--ink); }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- reveal (only when motion is welcome) ---------- */
.anim .reveal { opacity: 0; transform: translateY(22px); }
.anim .wipe { opacity: 0; clip-path: inset(0 0 105% 0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .wipe { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .cell-body h3::after { transform: scaleX(.548) !important; }
  .rail { scrollbar-width: auto; }
  .rail::-webkit-scrollbar { height: 10px; display: block; }
  .rail::-webkit-scrollbar-thumb { background: #9aa7b3; }
  .hero-media, .band-media { transform: none !important; }
  .btn, .cell, .cell-img img { transition: none; }
}
