/* EnergyMasters — site styles
   Tokens first, then base, layout, components, pages. */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* colour */
  --paper: #ffffff;
  --mist: #f2f5f3;
  --mist-2: #e8eeea;
  --ink: #0b2a31;
  --ink-2: #4f6368;
  --line: #d9e1de;
  --green: #0e7a44;
  --green-deep: #0a6236;
  --green-soft: #e3f1e9;
  --petrol: #083945;
  --petrol-2: #0c4654;
  --on-dark: #eaf3f0;
  --on-dark-2: #a9c1bc;
  --on-dark-accent: #7ad6a2;
  --focus: #0e7a44;

  /* type */
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;            /* 17px */
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.3125rem, 1.2rem + 0.45vw, 1.625rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.2vw, 3.5rem);
  --fs-h1: clamp(2.625rem, 1.6rem + 4.6vw, 5.75rem);
  --fs-statement: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);

  /* space & shape */
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --max: 76rem;
  --max-text: 40rem;
  --section: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --r-lg: clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
  --r-md: 1.125rem;
  --r-sm: 0.75rem;
  --header-h: 3.75rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1.5rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--green-deep); }
strong { font-weight: 600; }
::selection { background: var(--green-soft); color: var(--ink); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--on-dark-accent); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 1rem; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(52rem + 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--mist { background: var(--mist); }
.section + .section--flush-top { padding-top: 0; }

.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-2); letter-spacing: -0.01em; max-width: var(--max-text); }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-small); }
.kicker { display: block; font-size: var(--fs-body); font-weight: 600; color: var(--green); margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.dark .kicker { color: var(--on-dark-accent); }

.head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .lead { margin-inline: auto; }
.head h2 + .lead, .head h1 + .lead { margin-top: 1.25rem; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.875rem; padding: 0.7rem 1.4rem; border-radius: 999px;
  font: 500 1rem/1.2 var(--font-text); letter-spacing: -0.005em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.dark .btn--ghost { color: var(--on-dark); border-color: rgba(234, 243, 240, 0.3); }
.dark .btn--ghost:hover { border-color: var(--on-dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn-row--center { justify-content: center; }

.more { display: inline-flex; align-items: center; gap: 0.35em; font-weight: 500; text-decoration: none; color: var(--green); }
.more::after {
  content: ""; width: 0.5em; height: 0.5em; border-right: 1.6px solid currentColor; border-top: 1.6px solid currentColor;
  transform: rotate(45deg); margin-left: 0.05em; transition: transform 0.25s var(--ease);
}
.more:hover { text-decoration: underline; }
.more:hover::after { transform: translateX(2px) rotate(45deg); }
.dark .more { color: var(--on-dark-accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: rgba(11, 42, 49, 0.08); }
.site-header__bar { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 6px; }
.brand img { width: 9.25rem; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 400;
  padding: 0.45rem 0.8rem; border-radius: 999px; opacity: 0.82;
  transition: opacity 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover { opacity: 1; background: rgba(11, 42, 49, 0.05); color: var(--ink); }
.nav a[aria-current="page"] { opacity: 1; font-weight: 500; }
.header-cta { min-height: 2.25rem; padding: 0.4rem 1rem; font-size: 0.9375rem; margin-left: 0.5rem; }
.menu-btn { display: none; }

@media (max-width: 56.24rem) {
  .nav, .header-cta { display: none; }
  .menu-btn {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 2.75rem; height: 2.75rem; margin-right: -0.5rem; border: 0; background: none; border-radius: 999px; cursor: pointer; color: var(--ink);
  }
  .menu-btn__icon { position: relative; width: 1.125rem; height: 0.75rem; }
  .menu-btn__icon::before, .menu-btn__icon::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px;
    transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
  }
  .menu-btn__icon::before { top: 0.125rem; }
  .menu-btn__icon::after { top: 0.5625rem; }
  .menu-open .menu-btn__icon::before { top: 0.34rem; transform: rotate(45deg); }
  .menu-open .menu-btn__icon::after { top: 0.34rem; transform: rotate(-45deg); }
}

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 1.5rem var(--gutter) 3rem; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-0.5rem);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out), visibility 0s; }
.mobile-menu nav { display: grid; gap: 0.25rem; }
.mobile-menu nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; padding: 0.5rem 0;
}
.mobile-menu nav a[aria-current="page"] { color: var(--green); }
.mobile-menu .btn { margin-top: 2rem; width: 100%; }
.menu-open { overflow: hidden; }
@media (min-width: 56.25rem) { .mobile-menu { display: none; } }

/* ---------- media ---------- */
.media > picture, .hero__frame > picture, .tile__media > picture { display: contents; }
.media { position: relative; overflow: hidden; background: var(--mist-2); border-radius: var(--r-lg); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

/* reveal: images ease in from a slight zoom, once. Text never animates. */
.js .reveal img { transform: scale(1.045); opacity: 0; transition: transform 1.4s var(--ease-out), opacity 0.9s var(--ease); }
.js .reveal.is-in img { transform: none; opacity: 1; }

/* ---------- hero (home) ---------- */
.hero { padding-top: clamp(3.5rem, 2rem + 6vw, 7.5rem); text-align: center; }
.hero h1 { max-width: 14ch; margin-inline: auto; }
.hero h1 span { display: block; }
.hero h1 .hero__second { color: var(--green); }
.hero .lead { margin: 1.5rem auto 0; max-width: 36rem; }
.hero .btn-row { margin-top: 2.25rem; justify-content: center; }
.hero__stage { margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero__frame {
  position: relative; margin-inline: auto; overflow: hidden; background: var(--mist-2);
  width: var(--frame-w, min(calc(100% - 2 * var(--gutter)), var(--max))); border-radius: var(--frame-r, var(--r-lg));
  aspect-ratio: 16 / 9;
  will-change: width, border-radius;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
@media (max-width: 40rem) { .hero__frame { aspect-ratio: 4 / 5; } }
.hero__caption { margin-top: 1rem; text-align: center; color: var(--ink-2); font-size: var(--fs-small); }

/* page hero (subpages) */
.page-hero { padding-top: clamp(3.5rem, 2rem + 5vw, 7rem); padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 1.5rem; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; }

/* ---------- home: disciplines bento ---------- */
.bento { display: grid; gap: clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem); grid-template-columns: repeat(12, 1fr); }
.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); background: var(--mist); color: var(--ink); text-decoration: none;
  min-height: 26rem;
}
.tile:hover { color: var(--ink); }
.tile__text { position: relative; z-index: 2; padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem); max-width: 30rem; }
.tile__text h3 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.1; }
.tile__text p { margin-top: 0.75rem; color: var(--ink-2); }
.tile__text .more { margin-top: 1.25rem; }
.tile__media { position: relative; flex: 1; min-height: 14rem; margin-top: auto; overflow: hidden; }
.tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile:hover .tile__media img { transform: scale(1.03); }
.tile--wide { grid-column: span 12; flex-direction: row; min-height: 30rem; }
.tile--wide .tile__text { align-self: center; flex: 1 1 22rem; }
.tile--wide .tile__media { flex: 1 1 26rem; margin: 0; min-height: auto; }
.tile--half { grid-column: span 6; }
.tile--third { grid-column: span 4; }
.tile--dark { background: var(--petrol); color: var(--on-dark); }
.tile--dark h3 { color: #fff; }
.tile--dark .tile__text p { color: var(--on-dark-2); }
.tile--dark .more { color: var(--on-dark-accent); }
@media (max-width: 56.24rem) {
  .tile--half, .tile--third { grid-column: span 12; }
  .tile--wide { flex-direction: column; }
  .tile--wide .tile__media { min-height: 18rem; flex-basis: auto; order: 2; }
}
@media (min-width: 56.25rem) and (max-width: 72rem) { .tile--third { grid-column: span 6; } .tile--third:last-child { grid-column: span 12; } }

/* ---------- statement ---------- */
.statement { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-statement); line-height: 1.15; letter-spacing: -0.028em; max-width: 22ch; text-wrap: balance; }
.statement__quiet { color: #6f8285; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.steps li::before { content: counter(step); display: block; font: 600 1rem/1 var(--font-text); color: var(--green); margin-bottom: 1.25rem; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.375rem; }
.steps p { margin-top: 0.5rem; color: var(--ink-2); }
.steps--plain > div { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.steps--plain p { margin-top: 0.5rem; color: var(--ink-2); }
@media (max-width: 48rem) { .steps { grid-template-columns: 1fr; } }

/* ---------- work strip (home) ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 22rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; overscroll-behavior-x: contain; }
.strip > * { scroll-snap-align: start; }
.strip figure { margin: 0; }
.strip figcaption { margin-top: 0.875rem; }
.strip figcaption strong { display: block; font-weight: 600; }
.strip figcaption span { color: var(--ink-2); }
.strip-wrap { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2)); }
.strip-wrap .strip { padding-right: var(--gutter); scroll-padding-left: 0; }

/* ---------- dark band ---------- */
.dark { background: var(--petrol); color: var(--on-dark); }
.dark h2, .dark h3 { color: #fff; }
.dark .lead, .dark .muted { color: var(--on-dark-2); }
.dark a:not(.btn) { color: var(--on-dark-accent); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: center; }
.split--flip > :first-child { order: 2; }
@media (max-width: 56.24rem) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }
.brands { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.brands li { padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.9375rem; border: 1px solid var(--line); color: var(--ink); }
.dark .brands li { border-color: rgba(234, 243, 240, 0.18); color: var(--on-dark); }
.note { margin-top: 2rem; padding: 1.25rem 1.5rem; border-radius: var(--r-md); background: var(--mist); font-size: 0.9375rem; color: var(--ink-2); }
.note strong { display: block; color: var(--ink); margin-bottom: 0.35rem; }
.dark .note { background: rgba(255, 255, 255, 0.06); color: var(--on-dark-2); }
.dark .note strong { color: var(--on-dark); }

/* ---------- person ---------- */
.checks { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.75rem; }
.checks li { position: relative; padding-left: 1.875rem; }
.checks li::before {
  content: ""; position: absolute; left: 0.125rem; top: 0.38em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%230e7a44' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/0.8rem no-repeat;
}
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.photo-pair > :last-child { margin-top: 3.5rem; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta .lead { margin: 1.25rem auto 0; }
.cta .btn-row { margin-top: 2rem; justify-content: center; }

/* ---------- diensten ---------- */
.service-index { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }
.service-index a { text-decoration: none; padding: 0.45rem 0.95rem; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: 0.9375rem; transition: background-color 0.2s var(--ease); }
.service-index a:hover { background: var(--mist-2); color: var(--ink); }
.gallery-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-4 figure { margin: 0; }
.gallery-4 figcaption { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--ink-2); }
@media (max-width: 48rem) { .gallery-4 { grid-template-columns: 1fr 1fr; } }
.service { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 1rem + 3vw, 5rem); padding-block: clamp(3rem, 2rem + 3vw, 5rem); border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; }
.service__no { display: block; font-size: var(--fs-small); color: var(--ink-2); margin-bottom: 0.75rem; font-variant-numeric: tabular-nums; }
.service h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem); letter-spacing: -0.025em; }
.service__body { max-width: var(--max-text); }
.service__body p { color: var(--ink-2); }
.service__body p:first-child { color: var(--ink); font-size: 1.1875rem; line-height: 1.5; }
@media (max-width: 48rem) { .service { grid-template-columns: 1fr; } }

/* ---------- realisaties ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem); }
.gallery__item { margin: 0; }
.gallery__item--wide { grid-column: span 2; }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-lg); text-align: left; color: inherit; font: inherit; }
.gallery__btn .media { height: 100%; }
.gallery__item .media { aspect-ratio: 3 / 4; }
.gallery__item--wide .media { aspect-ratio: auto; height: 100%; }
.gallery__item--wide { display: flex; flex-direction: column; }
.gallery__item--wide .gallery__btn { flex: 1; }
.gallery__btn img { transition: transform 1.2s var(--ease-out); }
.gallery__btn:hover img { transform: scale(1.03); }
.gallery__item figcaption { margin-top: 0.875rem; }
.gallery__item figcaption strong { display: block; font-weight: 600; }
.gallery__item figcaption span { color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 56.24rem) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--wide .media { aspect-ratio: 4 / 3; height: auto; }
}
@media (max-width: 30rem) { .gallery { grid-template-columns: 1fr; } .gallery__item--wide { grid-column: auto; } }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filters button {
  font: 500 0.9375rem/1 var(--font-text); padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery__item[hidden] { display: none; }

/* lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: transparent; color: var(--on-dark); }
.lightbox::backdrop { background: rgba(4, 22, 27, 0.92); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__top { display: flex; justify-content: flex-end; padding: 1rem var(--gutter); gap: 0.5rem; }
.lightbox__stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm); }
.lightbox__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--gutter) 1.5rem; }
.lightbox__caption strong { display: block; color: #fff; font-weight: 600; }
.lightbox__caption span { color: var(--on-dark-2); font-size: 0.9375rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.1); color: #fff; transition: background-color 0.2s var(--ease);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.2); }
.icon-btn svg { width: 1.125rem; height: 1.125rem; }
.lightbox__nav { display: flex; gap: 0.5rem; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox__stage img { animation: lb-in 0.45s var(--ease-out); }
  @keyframes lb-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
}

/* ---------- tarieven ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.price-grid--2 { grid-template-columns: repeat(2, 1fr); }
.price { display: flex; flex-direction: column; padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); border-radius: var(--r-lg); background: var(--mist); }
.price h3 { font-size: 1.375rem; }
.price p { margin-top: 0.625rem; color: var(--ink-2); }
.price__amount { margin-top: auto; padding-top: 2rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.price__amount small { display: block; font-family: var(--font-text); font-weight: 400; font-size: 0.875rem; letter-spacing: 0; color: var(--ink-2); margin-top: 0.25rem; }
.price__amount--quiet { font-size: 1.5rem; }
.price .more { margin-top: 1rem; }
.section--mist .price { background: var(--paper); }
@media (max-width: 56.24rem) { .price-grid, .price-grid--2 { grid-template-columns: 1fr; } }
.factors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.factors li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 40rem) { .factors { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 6rem); align-items: start; }
@media (max-width: 56.24rem) { .contact-grid { grid-template-columns: 1fr; } }
.contact-facts { display: grid; gap: 1.75rem; margin-top: 2.5rem; }
.contact-facts h2 { font-family: var(--font-text); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); margin-bottom: 0.35rem; }
.contact-facts p, .contact-facts address { font-style: normal; font-size: 1.125rem; }
.form-card { background: var(--mist); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 3rem); }
.form-card h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
.form-card > p { margin-top: 0.75rem; color: var(--ink-2); }
.preview-flag { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1.5rem; padding: 1rem 1.125rem; border-radius: var(--r-sm); background: #fff6dc; color: #5a4300; font-size: 0.9375rem; }
.preview-flag svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.field { display: grid; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-text); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.8rem 0.95rem; min-height: 3rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%234f6368' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1rem; padding-right: 2.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14, 122, 68, 0.18); }
.field--check { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem; }
.field--check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0.15rem 0 0; accent-color: var(--green); }
.field--check label { font-weight: 400; color: var(--ink-2); }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__status { font-size: 0.9375rem; }
.form__status:empty { display: none; }
.form__status { padding: 0.875rem 1rem; border-radius: var(--r-sm); background: var(--green-soft); color: var(--ink); width: 100%; }
@media (max-width: 36rem) { .form { grid-template-columns: 1fr; } }

/* ---------- live demo ---------- */
.demo { border-radius: var(--r-lg); overflow: hidden; background: var(--petrol); color: var(--on-dark); }
.demo__gate { display: grid; place-items: center; text-align: center; padding: clamp(3rem, 2rem + 5vw, 6rem) var(--gutter); min-height: 28rem; }
.demo__gate h2 { color: #fff; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem); }
.demo__gate p { margin: 1rem auto 0; max-width: 32rem; color: var(--on-dark-2); }
.demo__gate .btn-row { margin-top: 2rem; justify-content: center; }
.demo iframe { width: 100%; height: min(80vh, 46rem); border: 0; background: #fff; }
.demo[data-state="loaded"] .demo__gate { display: none; }
.demo:not([data-state="loaded"]) iframe { display: none; }

/* ---------- legal pages (content kept as published) ---------- */
.legal { padding-bottom: var(--section); }
.legal-hero { padding-top: clamp(3.5rem, 2rem + 4vw, 6rem); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.legal-hero .container { width: 100%; max-width: calc(52rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.legal-hero h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 4rem); }
.legal-hero p { margin-top: 1.25rem; font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-2); max-width: 40rem; }
.legal .eyebrow { display: block; font-weight: 600; color: var(--green); margin-bottom: 0.75rem; }
.legal .container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.legal .container.narrow, .legal article.container, .legal .legal-content { max-width: calc(48rem + 2 * var(--gutter)); }
.legal h2 { font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); letter-spacing: -0.02em; margin-top: 2.75rem; margin-bottom: 0.875rem; }
.legal h3 { font-size: 1.1875rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.legal p, .legal li, .legal dd { color: #2c454b; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.4rem; }
.legal .text-link { color: var(--green); }
.legal .section-pad { padding-block: 1rem 0; }
.legal .legal-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.legal .legal-choice-card { background: var(--mist); border-radius: var(--r-lg); padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem); display: flex; flex-direction: column; }
.legal .legal-choice-card h2 { margin-top: 0; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.25rem); }
.legal .legal-choice-card p { margin-top: 0.75rem; }
.legal .legal-choice-card .button { margin-top: auto; align-self: flex-start; }
.legal .legal-choice-card .check-list { margin: 1.25rem 0 2rem; }
@media (max-width: 48rem) { .legal .legal-choice-grid { grid-template-columns: 1fr; } }
.legal .check-list { list-style: none; padding: 0; }
.legal .check-list li { position: relative; padding-left: 1.75rem; }
.legal .check-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%230e7a44' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/0.75rem no-repeat; }
.legal .button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.875rem; padding: 0.7rem 1.4rem; border-radius: 999px; font: 500 1rem/1.2 var(--font-text); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.legal .button-primary { background: var(--green); color: #fff; }
.legal .button-primary:hover { background: var(--green-deep); color: #fff; }
.legal .button-secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.legal .button-secondary:hover { border-color: var(--ink); }
.legal .legal-callout { margin-top: 2rem; padding: clamp(1.25rem, 1rem + 1vw, 2rem); border-radius: var(--r-md); background: var(--mist); }
.legal .legal-callout h2 { margin-top: 0; }
.legal .terms-layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: start; }
.legal .terms-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; font-size: 0.9375rem; padding-right: 0.5rem; }
.legal .terms-sidebar strong { display: block; margin: 1.5rem 0 0.75rem; }
.legal .terms-sidebar nav { display: grid; gap: 0.15rem; }
.legal .terms-sidebar nav a { color: var(--ink-2); text-decoration: none; padding: 0.3rem 0; line-height: 1.35; }
.legal .terms-sidebar nav a:hover { color: var(--ink); }
.legal .terms-back { color: var(--green); text-decoration: none; font-weight: 500; }
.legal .terms-document { max-width: 48rem; }
.legal .terms-section { padding-top: 0.5rem; }
.legal .terms-section h2 { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.legal .terms-version { padding: clamp(1.25rem, 1rem + 1vw, 2rem); border-radius: var(--r-md); background: var(--mist); }
.legal .terms-version h2 { margin-top: 0; }
.legal .terms-meta { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 1.25rem 0 0; }
.legal .terms-meta dt { font-weight: 600; }
.legal .terms-meta dd { margin: 0; }
.legal .model-form { padding: 1.5rem; border: 1px dashed var(--line); border-radius: var(--r-md); }
.legal .terms-form-line, .legal .terms-checkline { word-break: break-word; }
@media (max-width: 60rem) { .legal .terms-layout { grid-template-columns: 1fr; } .legal .terms-sidebar { position: static; max-height: none; } }
.legal .policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.legal .policy-card { background: var(--mist); border-radius: var(--r-md); padding: 1.5rem; }
.legal .policy-card h3 { margin-top: 0; }
.legal .policy-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; margin: 0.75rem 0 0; font-size: 0.9375rem; }
.legal .policy-card dt { font-weight: 600; }
.legal .policy-card dd { margin: 0; }
@media (max-width: 48rem) { .legal .policy-grid { grid-template-columns: 1fr; } .legal .policy-card dl { grid-template-columns: 1fr; } .legal .policy-card dd { margin-bottom: 0.5rem; } }
.legal .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.legal .contact-card, .legal .info-panel { background: var(--mist); border-radius: var(--r-md); padding: 1.5rem; }
.legal .contact-card h2, .legal .info-panel h2 { margin-top: 0; }
@media (max-width: 48rem) { .legal .grid-2 { grid-template-columns: 1fr; } }
.legal code { font-size: 0.9em; background: var(--mist); padding: 0.1em 0.35em; border-radius: 0.3em; word-break: break-all; }

/* ---------- footer ---------- */
.site-footer { background: var(--mist); color: var(--ink-2); font-size: 0.9375rem; padding: clamp(3rem, 2rem + 3vw, 5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand img { width: 9.25rem; }
.footer-brand p { margin-top: 1rem; max-width: 20rem; }
.footer-col h2 { font-family: var(--font-text); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: 0.875rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a, .footer-bottom a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.875rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.link-btn:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 56.24rem) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- cookie consent ---------- */
.consent {
  position: fixed; z-index: 60; left: 50%; bottom: 1rem; transform: translateX(-50%);
  width: min(calc(100% - 2rem), 44rem);
  background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(11, 42, 49, 0.08); border-radius: var(--r-md);
  box-shadow: 0 18px 50px -12px rgba(8, 57, 69, 0.28);
  padding: 1.25rem 1.375rem; display: grid; gap: 1rem;
}
.consent[hidden] { display: none; }
.consent h2 { font-family: var(--font-text); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.consent p { font-size: 0.9375rem; color: var(--ink-2); margin-top: 0.25rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.consent .btn { min-height: 2.5rem; padding: 0.5rem 1.05rem; font-size: 0.9375rem; }
@media (prefers-reduced-motion: no-preference) { .consent:not([hidden]) { animation: consent-in 0.6s var(--ease-out) 0.6s both; } @keyframes consent-in { from { opacity: 0; transform: translate(-50%, 1rem); } to { opacity: 1; transform: translate(-50%, 0); } } }
.consent-dialog { border: 0; border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); width: min(calc(100% - 2rem), 34rem); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(8, 57, 69, 0.4); }
.consent-dialog::backdrop { background: rgba(8, 26, 31, 0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.consent-dialog h2 { font-size: 1.5rem; }
.consent-dialog > p { margin-top: 0.5rem; color: var(--ink-2); }
.consent-dialog .icon-btn { position: absolute; top: 1rem; right: 1rem; background: var(--mist); color: var(--ink); }
.consent-dialog .icon-btn:hover { background: var(--mist-2); }
.pref { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.pref:first-of-type { margin-top: 1rem; border-top: 1px solid var(--line); }
.pref strong { display: block; }
.pref span { font-size: 0.875rem; color: var(--ink-2); }
.switch { position: relative; width: 3rem; height: 1.75rem; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #c7d2cf; transition: background-color 0.25s var(--ease); }
.switch i::after { content: ""; position: absolute; top: 0.1875rem; left: 0.1875rem; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.3s var(--ease-out); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(1.25rem); }
.switch input:disabled + i { opacity: 0.6; }
.switch input:focus-visible + i { outline: 2px solid var(--focus); outline-offset: 3px; }
.consent-dialog .btn-row { margin-top: 1.5rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal img { transform: none; opacity: 1; }
  .tile:hover .tile__media img, .gallery__btn:hover img { transform: none; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .consent, .menu-btn, .mobile-menu, .terms-sidebar { display: none !important; }
  body { font-size: 11pt; }
  .legal .terms-layout { display: block; }
}
.legal p, .legal li, .legal dd { overflow-wrap: anywhere; }
.legal .terms-layout > * { min-width: 0; }
.legal .terms-meta > div { display: contents; }
@media (max-width: 30rem) { .legal .terms-meta { grid-template-columns: 1fr; gap: 0.15rem; } .legal .terms-meta dd { margin-bottom: 0.6rem; } }
.legal-hero .container { max-width: calc(48rem + 2 * var(--gutter)); }
.legal:has(.terms-layout) .legal-hero .container, .legal:has(.legal-choice-grid) .legal-hero .container { max-width: calc(var(--max) + 2 * var(--gutter)); }

/* ---------- refinements after preview review ---------- */
.page-hero + .section--flush-top { padding-top: 0; }
.price .price__amount { margin-top: auto; }
.tile--dark .kicker { color: var(--on-dark-accent); }
.lightbox__stage img { max-height: calc(100dvh - 10rem); }
.brand img { width: 10rem; }
