/* Generated by site/build.py from site/_src/css/. Do not edit by hand. */
/* ---------- Contact: the form that posts to /api/contact ----------
 * Markup: _src/pages/contact.html, behaviour: _src/js/contact.js. The shared form styles (.write, .field,
 * .field-error, .form-status) live in static/styles.css.
 */
/* Without JavaScript the mail form in <noscript> shows instead of this one. */
html:not(.js) .write-form--api { display: none; }

/* Name and address side by side where there is room */
.field-row { display: grid; gap: var(--space-lg); }
@media (min-width: 40rem) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The honeypot: off screen for people, present for bots */
.trap {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The server's answer. Empty it takes no room; a sent question gets the sage of the closing band. */
.form-status:empty { display: none; }
.form-status.is-success { border-color: var(--color-sage-2); background: var(--color-sage); --color-muted: var(--color-muted-sage); }
.form-status .link { white-space: normal; overflow-wrap: anywhere; }
.write-form[aria-busy="true"] .field-input { opacity: 0.7; }

/* What happens after a question: three numbered steps under the team address. The reset in
 * styles.css takes the numbers off lists; this one keeps them. */
.next-steps {
  display: grid; gap: var(--space-2xs); margin-top: var(--space-sm);
  padding-left: 1.25em; max-width: var(--measure); list-style: decimal;
}
.next-steps li::marker { color: var(--color-forest); font-weight: 650; }

/* ---------- Closing band: what happens after you write (home, diensten, werkwijze, over ons) ----------
 * Markup: _src/partials/cta.html. The band itself (.cta-band, .cta-inner, .cta-title) is in static/styles.css.
 * On phones and tablets the three steps follow under the button; from 60rem they fill the right half of
 * the band, level with the bottom of the question and its button.
 */
.cta-next { margin-top: var(--space-xl); max-width: var(--measure); }
.cta-next-title { font-size: var(--text-sm); font-weight: 650; color: var(--color-muted); }
.cta-next-list { margin-top: var(--space-xs); border-top: var(--rule-hair) solid var(--color-sage-2); }
.cta-next-list li { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-sage-2); text-wrap: pretty; }

@media (min-width: 60rem) {
  .cta-band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-lg); align-items: end; }
  .cta-inner { grid-column: 1 / 7; }
  .cta-next { grid-column: 8 / 13; margin-top: 0; }
}

/* ---------- Diensten: the services and their examples on one page, with a filter on top ----------
 * Markup: _src/pages/diensten.html, the examples come from {{flowgroup:id}} in build.py.
 * Behaviour: _src/js/diensten-filter.js. Without it the chips are plain links and everything shows.
 */

/* The filter bar: hairlines, the chosen service in forest */
.svc-filter {
  padding-block: var(--space-lg) var(--space-md);
  padding-inline: max(var(--gutter), calc((100% - var(--page-max)) / 2));
  background: var(--color-paper);
  border-bottom: var(--rule-hair) solid transparent;
}
.svc-filter-label { font-size: var(--text-sm); font-weight: 650; color: var(--color-muted); white-space: nowrap; }
.svc-chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-xs); }
.svc-chip {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--space-md);
  border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-sm);
  background: transparent; color: var(--color-ink);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 650; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.svc-chip:hover { border-color: var(--color-forest); }
.svc-chip[aria-pressed="true"] { background: var(--color-forest); border-color: var(--color-forest); color: var(--color-on-forest); }
.svc-chip[aria-pressed="true"]:hover { background: var(--color-forest-hover); border-color: var(--color-forest-hover); }
.svc-chip:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; border-radius: var(--radius-sm); }

/* Without the script on a phone the bar scrolls along: #voorbeelden lands on the bar itself
   (the html scroll-padding is --space-xl) */
.svc-page { scroll-margin-top: calc(-1 * var(--space-xl)); }

/* The bar stays under the top edge while you scroll through the services: with the script at every width
   (on phones and tablets as one row, below), without it from 60rem. Jumps land with the bar at the very
   top: #voorbeelden on the bar itself, a service right under the bar (--svc-bar is the bar's height,
   measured by the script). */
.js .svc-filter { position: sticky; top: 0; z-index: calc(var(--z-raised) - 1); transition: border-color var(--dur-short) var(--ease-out); }
.js .svc-filter.is-stuck { border-bottom-color: var(--color-rule); }
/* Anchors land under the stuck bar, not behind it; the bar and a service as above */
html.js:has(body[data-page="diensten"]) { scroll-padding-top: calc(var(--svc-bar, 3.5rem) + var(--space-md)); }
.js .svc-page { scroll-margin-top: calc(-1 * (var(--svc-bar, 3.5rem) + var(--space-md))); }
.js .svc { scroll-margin-top: calc(-1 * var(--space-md)); }
/* The chips sit inside that scroll-padding; without this, focusing one (Tab) would scroll the page */
.js .svc-chip { scroll-margin-top: calc(-1 * (var(--svc-bar, 3.5rem) + var(--space-md))); }

/* Phones and tablets: one row of chips (about 56 px) that scrolls sideways, edge to edge, with a soft
   fade on the side where more chips wait. The label "Kies een dienst" is only read out there (the group
   keeps its name through aria-labelledby). The script keeps the chosen chip in view. */
@media (max-width: 59.99rem) {
  .js .svc-filter { padding-block: var(--space-3xs); }
  .js .svc-filter-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .js .svc-chips {
    flex-wrap: nowrap; margin-top: 0;
    margin-inline: calc(-1 * var(--gutter));
    padding: var(--space-2xs) var(--gutter); /* room for the focus ring, which the scroller would clip */
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-padding-inline: var(--space-xl); scroll-snap-type: x proximity; /* clear of the fade */
    scrollbar-width: none;
  }
  .js .svc-chips::-webkit-scrollbar { display: none; }
  .js .svc-chips > li { flex: none; scroll-snap-align: start; }
  .js .svc-chips.more-after { mask-image: linear-gradient(to left, transparent, var(--color-ink) var(--space-xl)); }
  .js .svc-chips.more-before { mask-image: linear-gradient(to right, transparent, var(--color-ink) var(--space-xl)); }
  .js .svc-chips.more-before.more-after {
    mask-image: linear-gradient(to right, transparent, var(--color-ink) var(--space-xl), var(--color-ink) calc(100% - var(--space-xl)), transparent);
  }
}

/* One service: a firm rule and its name open it, its examples follow under hairlines */
.svc { border-top: 2px solid var(--color-ink); }
.svc-head {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md);
  padding-block: var(--space-xl) var(--space-xl);
  padding-inline: max(var(--gutter), calc((100% - var(--page-max)) / 2));
}
/* The same size as section titles on the other pages, so it never matches the page's h1 */
.svc-name {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl);
  line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; overflow-wrap: anywhere; min-width: 0;
}
.svc-name:focus { outline: none; } /* focused by the script (tabindex -1) after "Volgende dienst" */
.svc-text { display: grid; gap: var(--space-xs); max-width: var(--measure); }
.svc-line { line-height: 1.45; text-wrap: pretty; }
.svc .flow-section:first-of-type { border-top: var(--rule-hair) solid var(--color-rule); }
.svc .flow-title { font-size: var(--text-md); line-height: 1.15; letter-spacing: 0; }

/* The end of a service: one call to action, and with a filter on, the way on to the next service */
.svc-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-md) var(--space-xl);
  padding-block: var(--space-lg) var(--space-xl);
  padding-inline: max(var(--gutter), calc((100% - var(--page-max)) / 2));
}
.svc-cta .link, .svc-next a { white-space: nowrap; }
.svc-next { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }
.svc-next-link {
  display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 2.75rem; padding: 0 var(--space-md);
  border: var(--rule-hair) solid var(--color-forest); border-radius: var(--radius-sm);
  color: var(--color-forest); font-size: var(--text-sm); font-weight: 650; line-height: 1; text-decoration: none;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.svc-next-link:hover { background: var(--color-paper-2); }
.svc-next-link .ico { flex: none; }
.svc-all { font-size: var(--text-sm); }

/* Wide screens: the label beside the chips in one row, the service name beside its text */
@media (min-width: 60rem) {
  .svc-filter { position: sticky; top: 0; z-index: calc(var(--z-raised) - 1); display: flex; align-items: center; gap: var(--space-lg); padding-block: var(--space-sm); }
  .svc-chips { margin-top: 0; }
  html:has(body[data-page="diensten"]) { scroll-padding-top: calc(var(--svc-bar, 4.25rem) + var(--space-md)); }
  .svc-page { scroll-margin-top: calc(-1 * (var(--svc-bar, 4.25rem) + var(--space-md))); }
  .svc-chip { scroll-margin-top: calc(-1 * (var(--svc-bar, 4.25rem) + var(--space-md))); }

  .svc-head {
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-lg); align-items: baseline;
    padding-block: var(--space-2xl) var(--space-xl);
  }
  .svc-name { grid-column: 1 / 5; }
  .svc-line { font-size: var(--text-md); line-height: 1.4; }
  .svc-text { grid-column: 6 / 13; }
  .svc .flow-section { padding-block: var(--space-2xl); }
  .svc-foot { padding-block: var(--space-xl) var(--space-2xl); }
}

/* Tighter chips on the smallest phones and on small desktops, where the label "Kies een dienst" is
   only read out (the bar keeps its name through aria-labelledby) */
@media (max-width: 23.99rem) {
  .svc-chip, .svc-next-link { padding: 0 var(--space-sm); }
}
@media (min-width: 60rem) and (max-width: 74.99rem) {
  .svc-chip { padding: 0 var(--space-sm); }
  .svc-filter-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-chip, .svc-filter, .svc-next-link { transition-duration: 1ms; }
}

/* Home, "Wat we bouwen": from 60rem the head of the section is sticky. At the end of the list,
   the list's bottom line wipes the head away from the bottom up (first the link, then the lede)
   until only the title is left; scrolling back brings it back. home-scroll.js sets --wipe-a (fully visible
   down to here) and --wipe-b (fully gone from here, the hairline itself), in px from the top of the
   head, and the classes. Mask only: no layout shift. Phones and reduced motion: nothing changes. */
@media screen and (min-width: 60rem) and (prefers-reduced-motion: no-preference) {
  /* Room for the wipe: the section's bottom space moves into the grid row, so the sticky head stays
     pinned while the list's bottom hairline climbs over it. The gap to the next section stays 9rem. */
  .js body[data-page="index"] .services { padding-bottom: 0; }
  .js body[data-page="index"] .services .service-list { margin-bottom: var(--space-4xl); }

  /* The mask only reads alpha: the ink token is simply an opaque stop. */
  body[data-page="index"] .services .services-head.is-wiping {
    -webkit-mask-image: linear-gradient(to bottom, var(--color-ink) var(--wipe-a, 100%), transparent var(--wipe-b, 100%));
    mask-image: linear-gradient(to bottom, var(--color-ink) var(--wipe-a, 100%), transparent var(--wipe-b, 100%));
  }
  /* A wiped-away link takes no mouse clicks it cannot show... */
  body[data-page="index"] .services .services-head.is-link-gone .section-more { pointer-events: none; }
  /* ...but stays reachable by keyboard: focus inside the head shows all of it again. */
  body[data-page="index"] .services .services-head.is-wiping:focus-within {
    -webkit-mask-image: none;
    mask-image: none;
  }
  body[data-page="index"] .services .services-head.is-link-gone:focus-within .section-more { pointer-events: auto; }
}

/* Home, "Wat we bouwen": the lede is a promise (small jobs are welcome), so it reads in ink */
body[data-page="index"] .services-head .section-lede { color: var(--color-ink); }

/* ---------- Privacy: a reading page ----------
 * Markup: _src/pages/privacy.html. One column of text at reading width, section titles in the display
 * face like the other pages, the concept notice in the sage of the closing bands.
 */
.privacy {
  display: grid; gap: var(--space-2xl);
  padding-block: var(--space-2xl) var(--space-3xl);
  padding-inline: max(var(--gutter), calc((100% - var(--page-max)) / 2));
}
.privacy-notice {
  display: grid; gap: var(--space-2xs);
  max-width: var(--measure); padding: var(--space-md) var(--space-lg);
  background: var(--color-sage); border-left: 4px solid var(--color-forest); border-radius: var(--radius-sm);
  --color-muted: var(--color-muted-sage);
}
.privacy-section { display: grid; gap: var(--space-md); max-width: var(--measure); }
.privacy-title {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); line-height: 1.06;
  letter-spacing: -0.012em; text-wrap: balance;
}
.privacy p { text-wrap: pretty; }
.privacy .link { white-space: normal; overflow-wrap: anywhere; }

@media (min-width: 60rem) {
  .privacy { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-lg); padding-block: var(--space-3xl); }
  .privacy-notice, .privacy-section { grid-column: 4 / 12; }
  .privacy-section { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Team: the three founders (home, contact, over ons) ----------
 * Replaces the hours calculator. Markup: _src/partials/team.html (head) + people.html (the list).
 * No placeholder avatars: until there are real photos, the name and the address carry each row
 * of a plain hairline list.
 */
.team-block {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl);
  padding-block: var(--space-2xl) var(--space-3xl);
  padding-inline: max(var(--gutter), calc((100% - var(--page-max)) / 2));
}
/* On the home page it follows the process line, which already leaves room below it.
 * On the contact page it follows the form: one gap between them, not two. On phones the gaps
 * around it stay as they were before the form moved up: 96 px above it, 104 px to the questions. */
.process + .team-block { padding-top: 0; }
.write + .team-block { padding-block: calc(var(--space-3xl) - var(--space-2xl)) var(--space-2xl); }

/* The list: on phones one row per person (name left, address right; the address drops below
 * the name when both do not fit), three columns from 48rem */
.people { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: var(--rule-hair) solid var(--color-rule); }
.person {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  column-gap: var(--space-md); row-gap: var(--space-3xs);
  padding-block: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.person-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.15; }
/* The address stays on one line where it fits; on very narrow screens it may break before the @ */
.person-mail { max-width: 100%; font-size: var(--text-sm); white-space: nowrap; }  /* an address never breaks (jury r5) */

.team-act { display: grid; gap: var(--space-2xs); }
.team-all { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); line-height: 1.3; text-wrap: balance; }

/* Over ons: the same list under its own heading, no extra block */
.founders { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }

@media (min-width: 48rem) {
  /* As many columns as fit a whole address: three when wide, fewer around 1024 px */
  .people { grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); column-gap: var(--space-lg); border-bottom: 0; }
  .person { flex-direction: column; align-items: flex-start; justify-content: flex-start; row-gap: var(--space-2xs); padding-block: var(--space-md) 0; }
  .team-act { padding-top: var(--space-md); }
}

@media (min-width: 60rem) {
  .team-block, .founders { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-lg); }
  .team-block { padding-block: var(--space-3xl); row-gap: var(--space-xl); }
  .process + .team-block { padding-top: 0; }
  .write + .team-block { padding-block: 0 var(--space-3xl); }
  .team-head { grid-column: 1 / 5; grid-row: 1 / span 2; align-self: start; }
  .team-block .people, .team-act { grid-column: 6 / 13; }
  .founders > .section-title { grid-column: 1 / 5; align-self: start; }
  .founders .people { grid-column: 6 / 13; }
}

/* ---------- Werkwijze: the phase tracker under "Vijf fases" ----------
 * Desktop only (from 60rem, where .services-head is sticky): the five names on a thin rail.
 * The phase at the reading line (25% down the viewport) is marked by werkwijze.js with
 * aria-current; the rail fills in forest up to it. Phones and tablets read the list itself.
 */
.phase-nav { display: none; }
.phase-change { margin-top: var(--space-2xs); }

@media (min-width: 60rem) {
  .phase-nav { display: block; margin-top: var(--space-xl); }
  .phase-rail {
    --dot: 0.75rem; --row: 2.75rem; --line: 2px;
    position: relative; display: grid;
  }
  /* The rail runs from the first dot to the last; ::after is the forest part up to the current phase */
  .phase-rail::before, .phase-rail::after {
    content: ""; position: absolute;
    left: calc(var(--dot) / 2 - var(--line) / 2);
    top: calc(var(--row) / 2); bottom: calc(var(--row) / 2);
    width: var(--line); background: var(--color-rule);
  }
  .phase-rail > li { display: flex; } /* the link hugs its name, so the focus ring does too */
  .phase-rail::after {
    background: var(--color-forest);
    transform-origin: top center; transform: scaleY(var(--progress, 0));
    transition: transform var(--dur-long) var(--ease-out);
  }
  .phase-link {
    position: relative; display: flex; align-items: center;
    min-height: var(--row); padding-left: calc(var(--dot) + var(--space-md));
    color: var(--color-ink); text-decoration: none; white-space: nowrap;
    transition: color var(--dur-short) var(--ease-out);
  }
  .phase-link::before {
    content: ""; position: absolute; left: 0; top: 50%; z-index: var(--z-base);
    width: var(--dot); height: var(--dot); margin-top: calc(var(--dot) / -2);
    border: 2px solid var(--color-rule); border-radius: 50%; background: var(--color-paper);
    transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
  }
  .phase-link:hover { color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
  .phase-link:focus-visible { outline-offset: 2px; }
  /* With the script running, only the current phase is in ink */
  .phase-nav.is-live .phase-link { color: var(--color-muted); }
  .phase-nav.is-live .phase-link:hover,
  .phase-nav.is-live .phase-link[aria-current] { color: var(--color-ink); }
  .phase-nav.is-live .phase-link[aria-current] { font-weight: 650; }
  .phase-nav.is-live .phase-link[aria-current]::before { background: var(--color-forest); border-color: var(--color-forest); }
  /* Phases above the current one sit on the forest part of the rail: a forest ring */
  .phase-nav.is-live li:has(~ li > [aria-current]) > .phase-link::before { border-color: var(--color-forest); }

  /* A clicked phase lands just above the reading line, so it is the one the tracker marks */
  .phases .service { scroll-margin-top: max(0px, calc(25vh - var(--space-xl) - var(--space-lg))); }
}

@media (prefers-reduced-motion: reduce) {
  .phase-rail::after, .phase-link, .phase-link::before { transition: none; }
}

/* Wordmark letters, split at runtime by _src/js/wordmark.js so each can hop on its own.
   inline-block only gives a letter a box that takes a transform; at rest it sits exactly where the
   unbroken word had it (wordmark.js corrects the kerning), so nothing shifts. */
.wm-letter { display: inline-block; }
/* A hidden copy of the word, measured and removed in the same task, never painted. */
.wm-probe { position: absolute; visibility: hidden; white-space: pre; pointer-events: none; }

/* Leaving a page through the header wordmark while letters are in the air: wordmark.js names each
   one (class wm-hop) and tags its height (wm-yN: N% of the letter's own height). Here, on the next
   page, the letter lands during the crossfade and covers its resting twin until it is there. */
::view-transition-group(*.wm-hop) { animation: wm-land var(--dur-short) var(--ease-out) both; }
::view-transition-old(*.wm-hop) { animation: none; }
@keyframes wm-land { to { translate: 0 var(--wm-y, 0%); } }
::view-transition-group(*.wm-y2)  { --wm-y: 2%; }
::view-transition-group(*.wm-y4)  { --wm-y: 4%; }
::view-transition-group(*.wm-y6)  { --wm-y: 6%; }
::view-transition-group(*.wm-y8)  { --wm-y: 8%; }
::view-transition-group(*.wm-y10) { --wm-y: 10%; }
::view-transition-group(*.wm-y12) { --wm-y: 12%; }
::view-transition-group(*.wm-y14) { --wm-y: 14%; }
::view-transition-group(*.wm-y16) { --wm-y: 16%; }
::view-transition-group(*.wm-y18) { --wm-y: 18%; }
::view-transition-group(*.wm-y20) { --wm-y: 20%; }
::view-transition-group(*.wm-y22) { --wm-y: 22%; }
::view-transition-group(*.wm-y24) { --wm-y: 24%; }
