/* Van der Kolk — "graphite blueprint on warm vellum" */
:root {
  --canvas: #fafafa;
  --hairline: #e5e7eb;
  --card: #ededed;
  --divider: #dadada;
  --graphite: #242424;
  --ink: #171717;
  --pencil: #5c5c5c;
  --faint: #a3a3a3;

  /* Logokleuren */
  --navy: #002d5f;
  --navy-2: #0a3c78;
  --navy-ink: #0b2546;
  --orange: #d98933;
  --orange-light: #e8a24a;
  --orange-deep: #b8621a;
  --brand-gradient: linear-gradient(135deg, #f0a64a 0%, #d98933 45%, #b8621a 100%);

  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: 'Instrument Serif', ui-serif, Georgia, "Times New Roman", serif;
  --mono: 'Fragment Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-btn: 16px;
  --r-card: 24px;
  --r-pill: 9999px;
  --bevel: inset 0 4px 4px -2px rgba(255,255,255,.25), inset 0 -4px 4px -2px rgba(0,0,0,.25), inset -2px 0 2px -2px rgba(255,255,255,.1);

  --max: 1200px;
  --gutter: 24px;
  --section: 128px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 500 18px/1.33 var(--sans);
  letter-spacing: -0.025em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: -0.01em; color: var(--pencil); }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.025em; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px;
  border-radius: var(--r-btn);
  font: 500 14px/1 var(--sans); letter-spacing: -0.005em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--navy); color: var(--canvas); box-shadow: var(--bevel); }
.btn--dark:hover { background: var(--navy-2); }
.btn--ghost { border-color: var(--hairline); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange-deep); }
.btn--light { background: var(--canvas); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.3); color: var(--canvas); background: rgba(0,45,95,.4); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { border-color: var(--orange-light); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(250,250,250,.82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--hairline); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 32px; font-size: 14px; }
.nav__links a { color: var(--faint); transition: color .15s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--navy); }
.nav__links a.is-active { box-shadow: 0 2px 0 var(--orange); }
.nav__actions { display: flex; align-items: center; gap: 20px; }
.nav__tel { font-size: 14px; color: var(--pencil); }
.nav__tel:hover { color: var(--ink); }
.nav__toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--hairline); border-radius: var(--r-btn); background: transparent; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.nav__toggle span:first-child { top: 16px; } .nav__toggle span:last-child { top: 22px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--hairline); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 0; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; border-bottom: 1px solid var(--hairline); }

/* ---------- Pill group ---------- */
.pill-group {
  display: inline-flex; gap: 2px; padding: 4px;
  background: var(--navy); border-radius: var(--r-pill); box-shadow: var(--bevel);
}
.pill-group__item {
  padding: 8px 16px; border-radius: var(--r-pill); border: 0; background: transparent;
  color: #9fb0c6; font: 500 14px/1 var(--sans); letter-spacing: -0.005em; transition: color .15s, background .15s;
}
.pill-group__item:hover { color: var(--canvas); }
.pill-group__item.is-active { background: var(--brand-gradient); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.pill-group--sm .pill-group__item { padding: 7px 14px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { padding-top: 40px; padding-bottom: 32px; display: flex; flex-direction: column; align-items: center; }
.hero .viewer-frame { margin-top: 32px; width: 100%; }
.hero .hint { width: 100%; }
.hero__row { width: 100%; display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px 56px; align-items: end; }
.hero__left { display: flex; flex-direction: column; gap: 20px; }
.hero__title { font-weight: 700; font-size: clamp(40px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.05em; color: var(--navy-ink); }
.hero__title .serif { font-size: 1.2em; letter-spacing: -0.03em; line-height: .8; }
.hero__sub { max-width: 480px; color: var(--pencil); font-size: 17px; }
.hero__cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__cta--left { justify-content: flex-start; }

.strip { margin-top: 96px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.strip__label { font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.strip__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 64px; }
.strip__list li { font-weight: 700; font-size: 22px; letter-spacing: -0.04em; color: var(--faint); }

/* ---------- Sections ---------- */
.section { padding-top: var(--section); }
.section__head { max-width: 720px; display: flex; flex-direction: column; gap: 20px; margin-bottom: 56px; }
.section__head h2 { color: var(--navy-ink); }
.section__head h2, .contact h2 { font-weight: 700; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.045em; }
.section__head h2 .serif, .contact h2 .serif { font-size: 1.3em; line-height: .8; }
.section__head p { color: var(--pencil); max-width: 600px; }
.eyebrow { font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--orange-deep); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand-gradient); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card {
  background: var(--card); border-radius: var(--r-card); padding: 28px;
  min-height: 260px; display: flex; flex-direction: column;
  transition: background-color .2s ease;
}
.card { position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand-gradient); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.card:hover { background: #e9e7e4; }
.card:hover::after { transform: scaleX(1); }
.card h3 { color: var(--navy-ink); margin-top: auto; padding-top: 48px; font-weight: 600; font-size: 20px; letter-spacing: -0.03em; }
.card p { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--pencil); letter-spacing: -0.005em; }
.icon { width: 26px; height: 26px; fill: none; stroke: var(--orange-deep); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- Viewer ---------- */
.viewer-frame {
  position: relative; border: 1px solid var(--hairline); border-radius: var(--r-card);
  overflow: hidden; background: var(--card);
}
.viewer {
  position: relative; height: clamp(420px, calc(100svh - 330px), 760px);
  background: var(--card);
  cursor: grab; touch-action: none;
}
.viewer::before { /* blueprint dot grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(23,23,23,.12) 1px, transparent 1.3px);
  background-size: 24px 24px;
}
.viewer:active { cursor: grabbing; }
.viewer canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.viewer__overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(237,237,237,.55);
  transition: opacity .4s ease;
}
.viewer__overlay.is-hidden { opacity: 0; pointer-events: none; }
.progress { width: 200px; height: 2px; background: var(--divider); border-radius: 2px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--brand-gradient); transition: width .2s; }

.viewer__toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 14px 16px; background: var(--canvas); border-top: 1px solid var(--hairline);
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border: 1px solid var(--hairline); border-radius: var(--r-pill); background: transparent;
  font-size: 13px; color: var(--faint); transition: all .15s;
}
.chip .mono { font-size: 11px; color: inherit; }
.chip.is-on { color: var(--navy-ink); border-color: var(--navy); background: #fff; }
.slider { display: inline-flex; align-items: center; gap: 10px; }
.slider input { width: 140px; accent-color: var(--orange); }
.viewer__btns { display: flex; gap: 6px; margin-left: auto; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--hairline); border-radius: var(--r-btn); background: transparent; transition: all .15s;
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { border-color: var(--orange); }
.icon-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); box-shadow: var(--bevel); }
.icon-btn[aria-pressed="true"] svg { stroke: var(--canvas); }

.info {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 280px; max-height: calc(100% - 100px); overflow: auto;
  background: rgba(250,250,250,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--hairline); border-radius: var(--r-btn); padding: 16px 18px;
}
.info[hidden] { display: none; }
.info { border-left: 3px solid var(--orange); }
.info__head .mono { color: var(--orange-deep); }
.info__head { display: flex; justify-content: space-between; align-items: center; }
.info__close { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--pencil); padding: 0 2px; }
.info h4 { margin-top: 6px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; word-break: break-word; }
.info dl { margin: 12px 0 0; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 7px 12px; font-size: 13px; }
.info dt { color: var(--faint); font-family: var(--mono); font-size: 11px; padding-top: 2px; }
.info dd { margin: 0; overflow-wrap: anywhere; text-align: right; letter-spacing: -0.005em; }
.hint { margin-top: 16px; text-align: center; color: var(--faint); font-size: 12px; }

.viewer-frame:fullscreen { border-radius: 0; display: flex; flex-direction: column; }
.viewer-frame:fullscreen .viewer { flex: 1; height: auto; }

.viewer__top { padding: 10px; background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.model-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.model-tabs::-webkit-scrollbar { display: none; }
.model-tab {
  flex: 1 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 10px 16px; border-radius: var(--r-btn); border: 1px solid var(--hairline); background: transparent; text-align: left;
  transition: border-color .15s, background-color .15s;
}
.model-tab strong { font-weight: 600; font-size: 15px; color: var(--navy-ink); letter-spacing: -0.02em; }
.model-tab .mono { font-size: 11px; color: var(--faint); }
.model-tab:hover { border-color: var(--orange); }
.model-tab.is-active { background: var(--navy); border-color: var(--navy); box-shadow: var(--bevel); position: relative; }
.model-tab.is-active strong { color: #fff; }
.model-tab.is-active .mono { color: var(--orange-light); }
.viewer__badge { position: absolute; left: 16px; top: 14px; z-index: 1; font-size: 11px; color: var(--pencil); background: rgba(250,250,250,.8); padding: 6px 10px; border-radius: var(--r-pill); border: 1px solid var(--hairline); }
.viewer__badge:empty { display: none; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hairline); }
.steps li { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--hairline); }
.steps h3 { font-weight: 600; font-size: 20px; letter-spacing: -0.03em; margin-top: 24px; }
.steps p { font-size: 14px; line-height: 1.5; color: var(--pencil); letter-spacing: -0.005em; }

/* ---------- Projects ---------- */
.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.projects li {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: baseline; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--hairline);
  transition: padding .2s ease;
}
.projects li:hover { padding-left: 12px; }
.projects li:hover .mono { color: var(--orange-deep); }
.projects strong { color: var(--navy-ink); font-weight: 600; font-size: clamp(18px, 2.2vw, 26px); letter-spacing: -0.035em; }
.projects em { font-style: normal; color: var(--pencil); font-size: 15px; text-align: right; }
.projects em a { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--orange); }
.projects .mono { font-size: 14px; color: var(--faint); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about .section__head { margin-bottom: 0; }
.about__body { display: flex; flex-direction: column; gap: 20px; color: var(--pencil); padding-top: 36px; }
.about__body p:first-child { color: var(--navy-ink); font-size: 22px; line-height: 1.3; letter-spacing: -0.03em; }
.facts { margin: 16px 0 0; border-top: 1px solid var(--hairline); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.facts dd { margin: 0; color: var(--ink); font-size: 15px; text-align: right; }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--canvas); border-radius: var(--r-card);
  padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px;
  box-shadow: var(--bevel);
}
.contact::before { /* oranje schijf uit het logo */
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -170px; top: -230px; border-radius: 50%;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.08) 0 60px, transparent 60px 130px), var(--brand-gradient); opacity: .9;
}
.contact h2 { margin-top: 20px; }
.contact h2 .serif { background: none; color: var(--orange-light); }
.btn--light:hover { color: var(--navy); }
.contact p { margin-top: 20px; color: #b7c3d4; max-width: 440px; }
.eyebrow--light { color: var(--orange-light); }
.contact__list { margin: 0; display: flex; flex-direction: column; align-self: end; }
.contact__list div { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 16px; }
.contact__list div:first-child { border-top: 1px solid rgba(255,255,255,.14); }
.contact__list dt { color: #9fb0c6; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.contact__list dd { margin: 0; text-align: right; font-size: 16px; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 80px; padding-bottom: 48px; flex-wrap: wrap; }
.footer img { height: 34px; width: auto; }
.footer a.mono:hover { color: var(--ink); }

/* ---------- Reveal ---------- */


/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root { --section: 96px; }
  .nav__links, .nav__tel { display: none; }
  .nav__toggle { display: inline-block; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--hairline); margin-top: 28px; }
  .about, .contact { grid-template-columns: 1fr; }
  .hero__row { grid-template-columns: 1fr; }
  .about__body { padding-top: 0; }
  .viewer__btns { margin-left: 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --section: 80px; }
  .nav__actions .btn { display: none; }
  .nav__logo img { height: 28px; }
  .hero { padding-top: 24px; }
  .viewer { height: 64svh; min-height: 380px; }
  .model-tab { flex: 0 0 auto; padding: 8px 12px; }
  .pill-group__item { padding: 8px 11px; font-size: 13px; }
  .strip { margin-top: 72px; }
  .strip__list { gap: 12px 28px; }
  .strip__list li { font-size: 17px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card h3 { padding-top: 32px; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--hairline); margin-top: 28px; }
  .projects li { grid-template-columns: 44px 1fr; }
  .projects em { grid-column: 2; text-align: left; margin-top: -10px; }
  .slider { width: 100%; } .slider input { flex: 1; }
  .info { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 45%; }
  .contact__list div { flex-direction: column; gap: 4px; }
  .contact__list dd { text-align: left; }
  .footer { flex-direction: column; align-items: flex-start; }
}
